/* Institutional intelligence — reference-inspired live dashboard */
body { background: radial-gradient(ellipse at 50% 0%, #e4edff 0, #f5f8ff 44%, #f8faff 100%); color: #101935; }
.erp-page-topbar, .erp-page-purpose { max-width: 1500px; margin-inline: auto; }
.erp-page-purpose h1 { font-size: 27px; letter-spacing: -.7px; }
.erp-page-purpose__actions .erp-nav-chip { background: linear-gradient(135deg,#078cff,#0349ed); color: white; border: 1px solid #89b8ff; box-shadow: 0 4px 10px #0763ff25; }
.app-container { width: min(1500px,calc(100% - 56px)); gap: 15px; }
.glass-panel { background: linear-gradient(120deg,#ffffffef,#f5f9ffed); border: 1px solid #d3dff5; border-radius: 15px; box-shadow: 0 3px 7px #1c458510,0 1px 2px #1c458509; }
.stats-filter-bar { grid-template-columns: repeat(4,minmax(120px,1fr)) auto auto; padding: 14px !important; gap: 14px; }
.stats-filter-bar .control-group label { text-transform: none; color: #15203e; font-size: 12px; }
.stats-filter-bar select,.stats-compact-toggle { min-height: 36px; background:#f9fbff; border-color:#cbd8f2; }
.stats-tabs { flex-wrap: nowrap; gap: 3px; padding: 5px !important; overflow-x:auto; }
.stats-tabs .tab-btn { white-space:nowrap; padding:12px 13px; font-size:12px; color:#263c71; width:auto; }
.stats-tabs .tab-btn.active { color:white; background:linear-gradient(120deg,#008dff,#063ded); }
#tab-dashboard > .subtabs { display:none; }
.overview-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:15px 12px 12px; }
.overview-heading h2 { font-size:19px; margin:0 0 3px; letter-spacing:-.4px; }
.overview-heading h2 i { color:#0786ff; margin-right:9px; }
.overview-heading p,.overview-insights > p { margin:0; color:#47618b; font-size:12px; }
#overview-updated { font-size:11px; padding:7px 11px; border:1px solid #c9daff; border-radius:24px; color:#294b86; background:#f1f6ff; }
#overview-error:not(:empty) { padding:14px; color:#a12437; background:#fff0f1; border-radius:10px; }
#dashboard-summary > .stats-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }
#dashboard-summary .card { padding:13px; gap:14px; min-height:86px; border-radius:13px; }
#dashboard-summary .card-icon { width:48px; height:48px; min-width:48px; border-radius:15px; display:grid; place-items:center; font-size:28px; background:color-mix(in srgb,currentColor 8%,white); }
.card-details h4 { font-size:25px; line-height:1.2; letter-spacing:-.7px; margin:0; color:#10172e; }
.card-details span { font-size:12px; color:#344e80; font-weight:600; }
.card-details small { display:block; margin-top:5px; font-size:10px; color:#607496; line-height:1.4; }
#dashboard-summary .stats-grid .card:nth-child(5) { order:10; }
#dashboard-summary .stats-grid .card:nth-child(6) { order:9; }
#dashboard-summary .stats-grid .card:nth-child(11) { display:none; }
.overview-kpis { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:9px; margin:10px 0 15px; }
#overview-kpis .card { padding:12px 9px; gap:8px; align-items:flex-start; }
#overview-kpis .card-icon { width:30px; height:30px; min-width:30px; border-radius:9px; font-size:21px; }
#overview-kpis h4 { font-size:20px; }
#overview-kpis .card-details span { font-size:10px; }
.overview-snapshots,.overview-bottom { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:15px; }
.snapshot { display:flex; align-items:flex-start; gap:15px; padding:18px; }
.snapshot > i { font-size:28px; color:#0869ff; padding:7px; background:#edf4ff; border-radius:12px; }
.snapshot h3 { font-size:13px; margin:0 0 7px; }
.snapshot strong { font-size:19px; letter-spacing:-.3px; }
.snapshot p { font-size:11px; line-height:1.5; color:#52658b; margin:6px 0 0; }
.dashboard-row--charts { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
#dashboard-summary h3 { font-size:14px; margin-top:0; }
#dashboard-summary h3 i { color:#6047ff; margin-right:7px; }
#dashboard-summary .dashboard-row > section,#dashboard-summary .dashboard-row > div { min-height:235px; }
.overview-analysis { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-top:15px; }
.overview-analysis > section { padding:20px; }
.overview-chart { height:180px; }
.quality-head { display:flex; align-items:center; gap:15px; padding:13px 0; }
.quality-head strong { font-size:30px; color:#00a678; }
.quality-head span { font-size:12px; color:#56708b; }
.quality-line { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #e7edf8; font-size:12px; text-transform:capitalize; }
.quality-line b { color:#127459; }
.distribution-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.distribution-card { padding:12px; min-width:0; }
.distribution-card--wide { display:none; }
.stats-data-grid { height:145px; min-height:145px; }
.distribution-card h3 { font-size:12px !important; }
.mini-badge { font-size:10px; white-space:nowrap; }
.overview-insights { margin:15px 0; padding:18px; background:linear-gradient(115deg,#f4faff,#f1edff); }
#overview-insights { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:14px; }
#overview-insights .snapshot { padding:15px; }
#overview-insights strong { font-size:16px; }
.overview-bottom .snapshot { flex-wrap:wrap; }
.overview-bottom .btn { margin-left:50px; font-size:12px; }
.stats-compact #dashboard-summary .card { min-height:65px; padding:8px; }
@media(max-width:1250px) { .overview-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); } .distribution-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } #overview-insights { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { .app-container { width:calc(100% - 24px); } #dashboard-summary > .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .stats-filter-bar { grid-template-columns:1fr 1fr; } .overview-heading { align-items:flex-start; flex-direction:column; } .overview-snapshots,.overview-bottom,.overview-analysis,.dashboard-row--charts { grid-template-columns:1fr; } .overview-kpis,.distribution-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:460px) { #overview-insights { grid-template-columns:1fr; } .distribution-grid { grid-template-columns:1fr; } .card-details h4 { font-size:21px; } }
@media print { .stats-tabs,.stats-filter-bar,.erp-page-purpose__actions { display:none; } .glass-panel { break-inside:avoid; box-shadow:none; } }
#tab-dashboard > .subtabs { display:flex; padding:5px !important; margin-bottom:6px; width:fit-content; }
#tab-dashboard > .subtabs .subtab-btn { font-size:11px; padding:6px 12px; }
.stats-filter-bar select:disabled { opacity:.75; cursor:help; }
