/* BASU Reports & Analytics Center — scoped to Reports route */
body.route-reports { --ra-blue:#0b63e5; --ra-navy:#072e63; --ra-ink:#10213e; --ra-muted:#687895; --ra-border:#dfe7f1; --ra-bg:#f5f8fc; --ra-green:#149657; --ra-orange:#e88416; --ra-red:#d94343; --ra-purple:#7b46e8; }
body.route-reports .page-body { background:var(--ra-bg); }
body.route-reports .reports-center { display:grid; gap:14px; }
body.route-reports .reports-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
body.route-reports .reports-heading h1 { color:var(--ra-ink); font-size:1.7rem; font-weight:900; margin:0; }
body.route-reports .reports-heading p { color:var(--ra-muted); margin:.2rem 0 0; }
body.route-reports .reports-generated { color:var(--ra-muted); font-size:.78rem; text-align:right; }
body.route-reports .report-filter-card,body.route-reports .ra-card { background:#fff; border:1px solid var(--ra-border); border-radius:15px; box-shadow:0 8px 26px rgba(12,42,86,.05); }
body.route-reports .report-filter-card { padding:13px; display:grid; grid-template-columns:repeat(2,minmax(125px,.75fr)) minmax(160px,1fr) minmax(170px,1fr) minmax(180px,1.2fr) auto; gap:10px; align-items:end; }
body.route-reports .report-filter-card label { display:block; color:#40506d; font-size:.65rem; font-weight:850; text-transform:uppercase; letter-spacing:.04em; margin:0 0 5px; }
body.route-reports .report-filter-card .form-control,body.route-reports .report-filter-card .form-select { min-height:39px; border-radius:9px; border-color:#d8e2ef; font-size:.78rem; box-shadow:none; }
body.route-reports .report-filter-actions { display:flex; gap:7px; align-items:center; white-space:nowrap; }
body.route-reports .report-filter-actions .btn { min-height:39px; border-radius:9px; font-size:.74rem; font-weight:800; display:inline-flex; align-items:center; gap:5px; }
body.route-reports .ra-single-store { color:#75849c; font-size:.66rem; margin-top:4px; }
body.route-reports .ra-kpis { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:9px; }
body.route-reports .ra-kpi { padding:12px; min-width:0; }
body.route-reports .ra-kpi-top { display:flex; gap:8px; align-items:center; }
body.route-reports .ra-kpi-icon { width:35px; height:35px; border-radius:11px; display:grid; place-items:center; flex:0 0 auto; font-size:1rem; }
body.route-reports .ra-kpi-icon.blue{background:#eaf2ff;color:#1464d9}.ra-kpi-icon.green{background:#e8f8ef;color:#0e9250}.ra-kpi-icon.purple{background:#f0eaff;color:#7440e5}.ra-kpi-icon.orange{background:#fff1df;color:#dc7a09}.ra-kpi-icon.teal{background:#e7f7f9;color:#168a9d}.ra-kpi-icon.red{background:#feecef;color:#d94255}.ra-kpi-icon.yellow{background:#fff6dc;color:#c88a00}
body.route-reports .ra-kpi-label { color:#657590; font-size:.62rem; font-weight:850; text-transform:uppercase; letter-spacing:.035em; line-height:1.2; }
body.route-reports .ra-kpi-value { margin-top:7px; font-weight:900; color:var(--ra-ink); font-size:1rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.route-reports .ra-kpi-note { margin-top:4px; color:var(--ra-muted); font-size:.65rem; min-height:16px; }
body.route-reports .ra-trend-up{color:var(--ra-green)} body.route-reports .ra-trend-down{color:var(--ra-red)} body.route-reports .ra-trend-flat{color:#718096}
body.route-reports .ra-analytics-grid { display:grid; grid-template-columns:1.15fr 1.15fr 1fr 1fr; gap:10px; }
body.route-reports .ra-chart-card { padding:12px; min-height:235px; overflow:hidden; }
body.route-reports .ra-card-title { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; margin-bottom:9px; }
body.route-reports .ra-card-title h2 { font-size:.86rem; font-weight:900; color:var(--ra-ink); margin:0; }
body.route-reports .ra-card-title small { display:block; color:var(--ra-muted); font-size:.62rem; margin-top:2px; }
body.route-reports .ra-chart-wrap { position:relative; height:155px; }
body.route-reports .ra-chart-metrics { display:flex; gap:18px; border-top:1px solid #edf1f6; padding-top:7px; margin-top:5px; font-size:.65rem; color:var(--ra-muted); }
body.route-reports .ra-chart-metrics strong { display:block; color:var(--ra-ink); font-size:.8rem; }
body.route-reports .ra-report-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
body.route-reports .ra-shortcut { display:flex; gap:10px; align-items:center; min-height:50px; padding:8px 10px; text-decoration:none; color:inherit; transition:.16s; }
body.route-reports .ra-shortcut:hover { border-color:#abc7ed; transform:translateY(-1px); box-shadow:0 9px 20px rgba(25,77,145,.08); }
body.route-reports .ra-shortcut-icon { width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#edf4ff;color:#1766d8;flex:0 0 auto; }
body.route-reports .ra-shortcut strong { display:block; color:var(--ra-ink); font-size:.72rem; }
body.route-reports .ra-shortcut small { display:block; color:var(--ra-muted); font-size:.6rem; margin-top:1px; }
body.route-reports .ra-bottom-grid { display:grid; grid-template-columns:.7fr 1.25fr 1.45fr; gap:10px; }
body.route-reports .ra-table-card { padding:10px; overflow:hidden; }
body.route-reports .ra-table-scroll { overflow:auto; }
body.route-reports .ra-table { width:100%; margin:0; font-size:.67rem; }
body.route-reports .ra-table th { color:#52627d; font-size:.57rem; font-weight:900; text-transform:uppercase; letter-spacing:.035em; background:#f8fbff; white-space:nowrap; }
body.route-reports .ra-table td,.ra-table th { padding:.42rem .45rem; border-color:#e9eef5; vertical-align:middle; }
body.route-reports .ra-money { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
body.route-reports .ra-link { color:#1766d8; text-decoration:none; font-weight:800; }
body.route-reports .ra-badge { display:inline-flex; align-items:center; border-radius:999px; padding:3px 7px; font-size:.56rem; font-weight:900; text-transform:uppercase; }
body.route-reports .ra-badge.pass,.ra-badge.paid,.ra-badge.active { background:#e5f7ec;color:#137b45; } body.route-reports .ra-badge.review,.ra-badge.partial,.ra-badge.warning { background:#fff2d5;color:#9a6500; } body.route-reports .ra-badge.fail,.ra-badge.unpaid,.ra-badge.voided { background:#fde9e9;color:#b83232; }
body.route-reports .ra-alert-list { display:grid; gap:7px; }
body.route-reports .ra-alert-item { display:flex; gap:8px; align-items:flex-start; padding:7px 0; border-bottom:1px solid #edf1f6; }
body.route-reports .ra-alert-item:last-child { border-bottom:0; }
body.route-reports .ra-alert-icon { width:29px;height:29px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto;background:#fff2dd;color:#cf7a00; }
body.route-reports .ra-alert-item strong { display:block; font-size:.66rem;color:var(--ra-ink); } body.route-reports .ra-alert-item small { display:block;color:var(--ra-muted);font-size:.58rem;margin-top:1px; }
body.route-reports .ra-checks { padding:10px; }
body.route-reports .ra-detail { padding:12px; }
body.route-reports .ra-detail-header { display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px; }
body.route-reports .ra-detail-header h2 { margin:0;font-size:1rem;font-weight:900;color:var(--ra-ink); }
body.route-reports .ra-empty { min-height:100px;display:grid;place-content:center;text-align:center;color:var(--ra-muted);font-size:.75rem; }
body.route-reports .ra-empty i { font-size:1.4rem;margin-bottom:5px;color:#91a1b8; }
body.route-reports .ra-donut-legend { display:grid;gap:4px;font-size:.58rem;color:#52627d;margin-top:4px; }
body.route-reports .ra-donut-legend span { display:flex;justify-content:space-between;gap:8px; }
body.route-reports .ra-report-note { background:#edf5ff;border:1px solid #cfe0f8;color:#405775;border-radius:10px;padding:8px 10px;font-size:.65rem; }
@media(max-width:1500px){ body.route-reports .ra-kpis{grid-template-columns:repeat(4,1fr)} body.route-reports .ra-analytics-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:1200px){ body.route-reports .report-filter-card{grid-template-columns:repeat(3,1fr)} body.route-reports .report-filter-actions{grid-column:1/-1;flex-wrap:wrap} body.route-reports .ra-report-shortcuts{grid-template-columns:repeat(3,1fr)} body.route-reports .ra-bottom-grid{grid-template-columns:1fr 1fr}.ra-bottom-grid>.ra-card:last-child{grid-column:1/-1} }
@media(max-width:800px){ body.route-reports .reports-heading{flex-direction:column} body.route-reports .report-filter-card{grid-template-columns:1fr 1fr} body.route-reports .ra-kpis{grid-template-columns:repeat(2,1fr)} body.route-reports .ra-analytics-grid{grid-template-columns:1fr} body.route-reports .ra-report-shortcuts{grid-template-columns:1fr 1fr} body.route-reports .ra-bottom-grid{grid-template-columns:1fr}.ra-bottom-grid>.ra-card:last-child{grid-column:auto} }
@media(max-width:520px){ body.route-reports .report-filter-card{grid-template-columns:1fr} body.route-reports .ra-kpis{grid-template-columns:1fr} body.route-reports .ra-report-shortcuts{grid-template-columns:1fr} }
@media print { body.route-reports .sidebar,body.route-reports .topbar,body.route-reports .report-filter-card,body.route-reports .ra-report-shortcuts,body.route-reports .no-print{display:none!important} body.route-reports .content{margin:0!important} body.route-reports .page-body{padding:0!important;background:#fff} body.route-reports .ra-card{box-shadow:none;break-inside:avoid} body.route-reports .ra-analytics-grid{grid-template-columns:1fr 1fr} }
