* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; min-height: 100vh; }
.container { max-width: 1900px; margin: 0 auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; text-align: center; }
/* logo no topo */
.header .logo { height: 48px; display: block; margin: 0 auto 8px auto; }
.header h1 { font-size: 28px; margin-bottom: 10px; }
.header p { font-size: 14px; opacity: 0.9; }
.controls { padding: 20px 30px; background: #f8f9fa; display: flex; gap: 15px; flex-wrap: wrap; align-items: center; border-bottom: 2px solid #e0e0e0; }
.controls button { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.3s; font-size: 14px; }
.btn-add { background: #10b981; color: white; }
.btn-add:hover { background: #059669; }
.btn-export { background: #3b82f6; color: white; }
.btn-config { background: #8b5cf6; color: white; }
.filter-group { display: flex; gap: 10px; align-items: center; }
.filter-group select, .filter-group input { padding: 8px 12px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 14px; }
.stats { padding: 20px 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; background: #f8f9fa; }
.stat-card { background: white; padding: 15px; border-radius: 8px; border-left: 4px solid; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.stat-card.total { border-color: #3b82f6; }
.stat-card.pending { border-color: #f59e0b; }
.stat-card.serasa { border-color: #ef4444; }
.stat-card.recovered { border-color: #10b981; }
.stat-card h3 { font-size: 12px; color: #64748b; margin-bottom: 8px; text-transform: uppercase; }
.stat-card p { font-size: 20px; font-weight: bold; color: #1e293b; }
.table-container { overflow-x: auto; padding: 30px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
thead { background: #1e293b; color: white; }
th { padding: 10px 6px; text-align: left; font-weight: 600; font-size: 10px; text-transform: uppercase; }
td { padding: 10px 6px; border-bottom: 1px solid #e5e7eb; font-size: 11px; }
tbody tr:hover { background: #f1f5f9; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.badge.baixo { background: #d1fae5; color: #065f46; }
.badge.medio { background: #fef3c7; color: #92400e; }
.badge.alto { background: #fee2e2; color: #991b1b; }
.badge.fase1 { background: #dbeafe; color: #1e40af; }
.badge.fase2 { background: #fef3c7; color: #92400e; }
.badge.fase3 { background: #fed7aa; color: #9a3412; }
.badge.fase4 { background: #fecaca; color: #991b1b; }
.badge.serasa-sim { background: #fee2e2; color: #991b1b; }
.badge.serasa-nao { background: #d1fae5; color: #065f46; }
.badge.reincidente { background: #fecaca; color: #991b1b; font-weight: 700; }
.badge.consignado { background: #e0e7ff; color: #3730a3; }
.badge.adiantamento { background: #f3e8ff; color: #6b21a8; }
.actions { display: flex; gap: 3px; }
.btn-action { padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer; font-size: 10px; font-weight: 600; }
.btn-email { background: #3b82f6; color: white; }
.btn-whatsapp { background: #10b981; color: white; }
.btn-edit { background: #f59e0b; color: white; }
.btn-delete { background: #ef4444; color: white; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: white; padding: 30px; border-radius: 12px; max-width: 700px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-content.large { max-width: 1000px; }
.modal-header { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 24px; color: #1e293b; }
.close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #64748b; }
.form-group { margin-bottom: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #475569; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 14px; }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-actions button { flex: 1; padding: 12px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; }
.btn-save { background: #10b981; color: white; }
.btn-cancel { background: #64748b; color: white; }
.highlight-serasa { background: #fee2e2; }
.days-badge { display: inline-block; padding: 3px 6px; border-radius: 8px; font-size: 10px; font-weight: 600; }
.days-0-15 { background: #d1fae5; color: #065f46; }
.days-16-30 { background: #fef3c7; color: #92400e; }
.days-31-90 { background: #fed7aa; color: #9a3412; }
.days-90plus { background: #fecaca; color: #991b1b; }
.alert { padding: 12px; border-radius: 6px; margin-bottom: 15px; }
.alert.info { background: #dbeafe; color: #1e40af; border: 1px solid #3b82f6; }
.alert.success { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
.preview-content { background: #f8f9fa; padding: 15px; border-radius: 6px; border-left: 4px solid #3b82f6; margin-top: 10px; }
.preview-content pre { white-space: pre-wrap; font-size: 13px; line-height: 1.5; }
.strategy-info { background: #e0f2fe; border: 1px solid #0284c7; padding: 10px; border-radius: 6px; margin-bottom: 15px; font-size: 12px; }
.section-title { background: #f1f5f9; padding: 10px 15px; margin: 20px 0 15px 0; border-left: 4px solid #3b82f6; font-weight: 600; color: #1e293b; }