/* ============================================
   DROP ACADEMY CRM — Styles globaux
   ============================================ */

:root {
    --primary: #c89230;
    --primary-light: #f5c85a;
    --primary-dark: #8a6010;
    --secondary: #1e1200;
    --accent: #e0a83a;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --transition: .2s ease;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* === LAYOUT === */
.app { display: flex; min-height: 100vh; }
.main-content { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; overflow-x: hidden; }
.content-area { padding: 24px; flex: 1; }

/* === SIDEBAR === */
.sidebar {
    width: var(--sidebar-w); height: 100vh; position: fixed; left: 0; top: 0; z-index: 100;
    background: linear-gradient(160deg, #3d2200 0%, #7a4800 40%, #c89230 100%); color: #fff; display: flex; flex-direction: column;
    transition: width var(--transition);
}
.sidebar-header {
    padding: 20px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--primary-light); display: block; line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text-light); display: block; }
.sidebar-toggle { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; padding: 6px; border-radius: var(--radius-sm); display: flex; align-items: center; transition: var(--transition); }
.sidebar-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-toggle svg { width: 18px; height: 18px; }

.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 11px; padding: 9px 14px; border-radius: var(--radius);
    color: rgba(255,255,255,.65); font-weight: 500; transition: all var(--transition); position: relative; font-size: 13.5px;
    text-decoration: none; letter-spacing: .01em;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.15); box-shadow: inset 3px 0 0 var(--primary-light); }
.nav-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: .6; }
.nav-item:hover .nav-icon { opacity: .9; }
.nav-item.active .nav-icon { opacity: 1; color: var(--primary-light); }
.nav-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-badge {
    position: absolute; right: 10px; background: var(--danger); color: #fff; font-size: 11px;
    font-weight: 700; padding: 2px 7px; border-radius: 99px; line-height: 1.4;
}
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.user-info { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 4px; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: var(--text-light); }
.logout-btn { color: rgba(255,255,255,.5) !important; font-size: 12.5px; }
.logout-btn:hover { color: var(--danger) !important; }

/* === TOPBAR === */
.topbar {
    height: var(--topbar-h); padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
    background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.page-title { font-size: 20px; font-weight: 700; color: var(--text); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* === SEARCH === */
.search-global { position: relative; }
.search-global input {
    width: 280px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 99px;
    font-size: 13px; background: var(--surface-alt); transition: all var(--transition); font-family: var(--font);
}
.search-global input:focus { outline: none; border-color: var(--primary); width: 340px; box-shadow: 0 0 0 3px rgba(232,89,12,.1); }
.search-results {
    position: absolute; top: 100%; right: 0; width: 380px; background: var(--surface);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    display: none; max-height: 400px; overflow-y: auto; z-index: 200; margin-top: 6px;
}
.search-results.show { display: block; }
.search-result-item {
    padding: 10px 14px; border-bottom: 1px solid var(--border-light); cursor: pointer;
    display: flex; align-items: center; gap: 10px;
}
.search-result-item:hover { background: var(--surface-alt); }
.search-result-item .name { font-weight: 600; font-size: 13px; }
.search-result-item .meta { font-size: 11px; color: var(--text-muted); }

/* === FLASH MESSAGES === */
.flash-message {
    margin: 16px 24px 0; padding: 12px 16px; border-radius: var(--radius); font-size: 13px;
    display: flex; justify-content: space-between; align-items: center; font-weight: 500;
    animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.flash-close { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; opacity: .7; }

/* === CARDS & PANELS === */
.card {
    background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border);
    box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.card-header h2, .card-header h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }

/* === STATS GRID === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
    background: var(--surface); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border-light);
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: linear-gradient(135deg, rgba(200,146,48,.12), rgba(200,146,48,.04)); flex-shrink: 0; color: var(--primary); }
.stat-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* === TABLE === */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted);
    background: var(--surface-alt); border-bottom: 2px solid var(--border); white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: 13px; }
tbody tr:hover { background: var(--surface-alt); }

/* === BADGES === */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px;
    font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-nouveau { background: #dbeafe; color: #1e40af; }
.badge-contacte { background: #ede9fe; color: #5b21b6; }
.badge-en_qualification { background: #fef3c7; color: #92400e; }
.badge-devis_envoye { background: #ffedd5; color: #c2410c; }
.badge-inscrit { background: #d1fae5; color: #065f46; }
.badge-en_formation { background: #cffafe; color: #155e75; }
.badge-en_attente_examen { background: #fef9c3; color: #854d0e; }
.badge-diplome { background: #bbf7d0; color: #166534; }
.badge-abandonne { background: #fecaca; color: #991b1b; }
.badge-perdu { background: #e2e8f0; color: #475569; }

.badge-paye { background: #d1fae5; color: #065f46; }
.badge-en_attente { background: #fef3c7; color: #92400e; }
.badge-impaye { background: #fecaca; color: #991b1b; }
.badge-paye_partiellement { background: #ffedd5; color: #c2410c; }
.badge-rembourse { background: #e2e8f0; color: #475569; }

.badge-planifiee { background: #dbeafe; color: #1e40af; }
.badge-en_cours { background: #d1fae5; color: #065f46; }
.badge-terminee { background: #e2e8f0; color: #475569; }
.badge-annulee { background: #fecaca; color: #991b1b; }

.badge-haute { background: #fecaca; color: #991b1b; }
.badge-normale { background: #fef3c7; color: #92400e; }
.badge-basse { background: #dbeafe; color: #1e40af; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: all var(--transition); font-family: var(--font); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-alt); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.btn-icon:hover { background: var(--surface-alt); }

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-family: var(--font); transition: border-color var(--transition);
    background: var(--surface);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,89,12,.1);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

/* === FILTERS BAR === */
.filters-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px;
    background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border);
    margin-bottom: 16px;
}
.filters-bar select, .filters-bar input {
    padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-family: var(--font); background: var(--surface);
}
.filters-bar select:focus, .filters-bar input:focus { outline: none; border-color: var(--primary); }

/* === KANBAN === */
.kanban-board { display: flex; gap: 8px; padding-bottom: 16px; min-height: 500px; width: 100%; overflow: hidden; }
.kanban-column {
    flex: 1; min-width: 0; background: var(--surface-alt); overflow: hidden;
    border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; flex-direction: column;
}
.kanban-column-header {
    padding: 14px 16px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.kanban-column-header .count { font-size: 11px; background: var(--border); padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.kanban-cards { flex: 1; padding: 8px; min-height: 100px; overflow-y: auto; }
.kanban-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px; margin-bottom: 8px; cursor: grab; transition: all var(--transition);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card.dragging { opacity: .5; }
.kanban-card .card-name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.kanban-card .card-meta { font-size: 11px; color: var(--text-muted); }
.kanban-card .card-tags { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.kanban-card .tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

/* === TABS === */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 0; }
.tab {
    padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text-muted);
    border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; transition: all var(--transition);
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === MODAL === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal-content {
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.modal-header {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; }

/* === DETAIL PAGE (contact/formateur) === */
.detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.detail-sidebar { position: sticky; top: calc(var(--topbar-h) + 16px); }
.detail-sidebar .card { overflow: hidden; }
.detail-main { min-width: 0; }

/* === CHARTS === */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); }
.chart-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.chart-card canvas { max-height: 260px; }

/* === EMARGEMENT === */
.emargement-grid { }
.emargement-table th, .emargement-table td { text-align: center; padding: 10px 8px; }
.emargement-table .present-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); cursor: pointer; font-size: 16px; transition: all var(--transition); }
.emargement-table .present-btn.checked { background: var(--success); border-color: var(--success); color: #fff; }
.emargement-table .present-btn.absent { background: var(--danger); border-color: var(--danger); color: #fff; }

/* === PAGINATION === */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 20px; }
.pagination a, .pagination span {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
}
.pagination a:hover { background: var(--surface-alt); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* === PDF PRINT === */
.print-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--secondary);
    padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; color: #fff;
}
@media print {
    .print-bar, .no-print { display: none !important; }
    body { background: #fff; font-size: 12px; }
    .print-content { margin: 0; padding: 20px; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .charts-grid { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); position: fixed; z-index: 1000; }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: block; }
    .kanban-board { flex-direction: column; }
    .kanban-column { min-width: 100%; max-width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .search-global input { width: 200px; }
    .search-global input:focus { width: 200px; }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.font-mono { font-family: var(--font-mono); }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state .icon { margin-bottom: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-light); }
.empty-state .icon svg { width: 40px; height: 40px; stroke-width: 1.2; }

/* === INLINE SVG ICONS === */
h3 svg, .card-header svg { vertical-align: -3px; margin-right: 6px; color: var(--primary); opacity: .8; }
.btn svg, .btn-sm svg { vertical-align: -2px; }
.btn-group .btn svg { width: 14px; height: 14px; }
.btn-icon svg { width: 16px; height: 16px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 16px; padding: 12px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; text-decoration: none; transition: var(--transition); }
.pagination a { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border: 1px solid var(--primary); font-weight: 700; }

/* === FORM ROWS === */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* === ADDITIONAL BADGES === */
.badge-paye { background: #dcfce7; color: #166534; }
.badge-en_attente { background: #fef3c7; color: #92400e; }
.badge-paye_partiellement { background: #dbeafe; color: #1e40af; }
.badge-impaye { background: #fee2e2; color: #991b1b; }
.badge-rembourse { background: #f3e8ff; color: #7c3aed; }
.badge-pre_inscription { background: #e0f2fe; color: #0c4a6e; }
.badge-dossier_en_cours { background: #fef3c7; color: #92400e; }
.badge-dossier_complet { background: #d1fae5; color: #065f46; }
.badge-formation_terminee { background: #dcfce7; color: #166534; }
.badge-en_attente_examen { background: #fef9c3; color: #854d0e; }
.badge-examen_passe { background: #bbf7d0; color: #14532d; }
.badge-attestation_delivree { background: #a7f3d0; color: #064e3b; }
.badge-abandonnee { background: #fee2e2; color: #991b1b; }

/* === CARD BODY === */
.card-body { padding: 16px; }

/* === FLASH MESSAGES === */
.flash-message { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.flash-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.flash-close { background: none; border: none; font-size: 18px; cursor: pointer; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* === BTN ICON === */
.btn-icon { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: var(--radius-sm); transition: var(--transition); }
.btn-icon:hover { background: var(--border-light); }

/* === FORM CHECK === */
.form-check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); background: var(--surface-alt); border: 1px solid var(--border); }
.form-check input[type="checkbox"] { margin: 0; }

/* === CHARTS GRID === */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.chart-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.chart-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* === FILTERS BAR === */
.filters-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.filters-bar input, .filters-bar select { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font); background: var(--surface); }
.filters-bar input:focus, .filters-bar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(200,146,48,.15); }

@media (max-width: 768px) {
    .charts-grid { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}
