/* Compact ERP overview: consistent spacing, neutral surfaces, metric accents. */
html[data-agan-theme="calm"][data-agan-page="overview"]{--home-gap:10px;--home-pad:12px;--calm-paper:#f1f3f7;--calm-ink:#283446;--calm-muted:#7d8a9d;--calm-line:#e6ebf2;--calm-soft:#f5f8fe;--calm-accent:#1677ff;--calm-chart:#1677ff;--calm-danger:#e25d71;--paper:#f1f3f7;--line:#e6ebf2;--green:#19a974;--red:#e35b70}
html[data-agan-page="overview"] .content{padding:0 14px 16px;max-width:none}
html[data-agan-page="overview"] .topbar{min-height:36px;padding:4px 1px;border-bottom:0;font-size:10px;gap:10px}
.overview-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}.overview-actions .account{margin-left:5px;gap:7px}.overview-actions .button{padding:5px 10px;min-height:27px;font-size:10px}.overview-actions .avatar{width:23px;height:23px;font-size:10px}
html[data-agan-page="overview"] :is(.tabs button[aria-pressed=true],.table-tabs button[aria-pressed=true],.home-grid button[aria-pressed=true],.preset[aria-pressed=true],.chip){color:#1677ff;background:#eff6ff;border-color:#c2daff}
html[data-agan-page="overview"] :is(.up,.positive){color:#16a085 !important}html[data-agan-page="overview"] :is(.down,.negative){color:#e45b70 !important}
html[data-agan-page="overview"] .panel{margin:0 0 var(--home-gap);border:1px solid #e7ebf2;border-radius:5px;box-shadow:none;background:#fff;scroll-margin-top:68px}
html[data-agan-page="overview"] .panel-heading,html[data-agan-page="overview"] .section-line{display:flex;align-items:center;gap:8px;min-height:38px;margin:0;padding:9px var(--home-pad);border-bottom:1px solid #edf1f7;flex-wrap:wrap}
html[data-agan-page="overview"] .panel-heading h2,html[data-agan-page="overview"] .section-line h2{font-size:13px;font-weight:550 !important;margin:0;line-height:1.4;white-space:nowrap}
.section-line p{font-size:10px;flex:1;text-align:right;margin:0;color:#8a96a8}.panel-heading p{font-size:10px;margin:0}
html[data-agan-page="overview"] .home-grid{gap:var(--home-gap);margin:0 0 var(--home-gap);align-items:stretch}.home-grid>.panel{margin:0 !important;min-width:0}.home-grid[data-visible-count="0"],.home-finance-row[data-visible-count="0"]{display:none !important}.home-grid[data-visible-count="1"]{grid-template-columns:minmax(0,1fr) !important}.home-grid[data-visible-count="1"]>.panel{grid-column:auto !important}.home-grid.three[data-visible-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.home-grid.three[data-visible-count="2"]>.panel{grid-column:auto !important}
/* Filter controls remain above every report and retain the multi-select menus. */
html[data-agan-page="overview"] .filter-panel{position:relative;margin-bottom:var(--home-gap);padding:8px 12px 9px;background:#fff;border:1px solid #e7ebf2;border-radius:5px;scroll-margin-top:68px}
.module-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0 2px;min-height:27px}.module-head h2{font-size:11px !important;margin:0;color:#6d7a8d !important;font-weight:500}
html[data-agan-page="overview"] .filter-panel>.module-head{position:absolute;top:10px;right:9px;min-height:0;padding:0;z-index:2}.filter-panel>.module-head h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-agan-page="overview"] .filter-top{gap:8px;padding:0 48px 7px 0;margin-bottom:7px}.filter-top .tabs{gap:4px}.filter-top .tabs button,.platform-choice{font-size:11px;padding:6px 10px}.platform-choice{display:inline-flex;align-items:center;gap:6px;color:#738198;cursor:pointer}.platform-choice:has(input:checked){color:#1677ff;background:#f4f8ff;border-radius:3px}.platform-choice input{margin:0;width:12px;height:12px}
html[data-agan-page="overview"] .filter-bottom{gap:8px;padding:0}.filter-bottom .field,.range input{min-height:31px;padding:6px 9px;font-size:11px}.range{gap:7px}.range input{max-width:135px}.range .preset{font-size:11px;padding:5px 7px}.filter-bottom .compare{font-size:10px;gap:6px}.active-filters{margin-top:7px;gap:6px}.chip{font-size:10px;padding:4px 7px}
.multi-filter{position:relative;flex:0 1 190px;min-width:140px;color:#526176}.multi-filter summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;border:1px solid #dce3ec;border-radius:3px;padding:7px 10px;cursor:pointer;background:#fff;font-size:11px;min-height:31px}.multi-filter summary::-webkit-details-marker{display:none}.multi-filter summary [data-selection]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-filter[open] summary{border-color:#8dbbff;box-shadow:0 0 0 2px #1677ff0c}.multi-filter-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:70;min-width:260px;width:max(100%,260px);max-width:85vw;background:#fff;border:1px solid #dfe6f0;border-radius:5px;padding:9px;box-shadow:0 8px 25px #263f6220}.multi-filter-menu input[type=search]{width:100%;min-width:0;padding:7px 8px;border:1px solid #e1e7ef;border-radius:3px}.multi-filter-actions,.multi-filter-foot{display:flex;align-items:center;gap:12px;padding:8px 2px}.multi-filter-actions button,.multi-filter-foot [data-cancel]{border:0;background:none;color:#1677ff;font-size:11px;cursor:pointer}.multi-filter-actions span{margin-left:auto;font-size:10px;color:#8996a9}.multi-filter-options{max-height:228px;overflow-y:auto;border-block:1px solid #edf1f7;padding:4px 0}.multi-filter-options label{display:flex;align-items:center;gap:8px;padding:7px 5px;cursor:pointer;font-size:12px}.multi-filter-options label:hover{background:#f3f8ff}.multi-filter-options input{flex:0 0 auto;margin:0}.multi-filter-foot{justify-content:flex-end;padding-bottom:0}.multi-filter-foot button{font-size:11px;padding:6px 12px}.multi-filter-error:empty{display:none}.multi-filter-error{font-size:10px;color:#e25d71}
/* Both snapshots have the same compact visual rhythm. */
html[data-agan-page="overview"] .home-snapshot-row .metrics{grid-template-columns:repeat(4,minmax(0,1fr));padding:10px 4px 9px;gap:0;margin:0;border:0;background:#fff}
.home-snapshot-row .metric{padding:0 12px;border:0;border-right:1px solid #edf1f7;border-radius:0;background:#fff}.home-snapshot-row .metric:last-child{border-right:0}.home-snapshot-row .metric-label{font-size:11px;min-height:28px;line-height:1.4}.home-snapshot-row .metric-label>span{display:none}.home-snapshot-row .metric-value{font-size:22px;line-height:1.3;margin:4px 0 6px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.home-snapshot-row .metric-value small{font-size:11px;margin-right:4px}.home-snapshot-row .metric-foot{font-size:9px;line-height:1.65}.home-snapshot .metric:nth-child(1) .metric-value{color:#1677ff}.home-snapshot .metric:nth-child(2) .metric-value{color:#16a085}.home-snapshot .metric:nth-child(3) .metric-value{color:#9764d8}.home-snapshot .metric:nth-child(4) .metric-value{color:#d38a27}
.ad-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:15px 4px 2px}.ad-metrics article{min-width:0;padding:0 11px;border-right:1px solid #edf1f7}.ad-metrics article:last-child{border-right:0}.ad-metrics span{font-size:11px;color:#738198;white-space:nowrap}.ad-metrics strong{display:block;margin:11px 0 8px;font-size:22px;font-weight:500;color:var(--metric-colour);white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.home-ad-snapshot .home-caption{margin:0;padding:3px 15px 10px;font-size:9px}
.home-alerts.is-empty{display:none !important}.home-alerts .anomalies{padding:8px 0;margin:0;border:0}.home-alerts .anomaly{background:#fffafb;border-color:#f1dce1;padding:3px 12px;margin:0}.home-alerts .anomaly b{color:#b85a6d;font-size:11px}
/* Dense, readable tables; scroll contains large datasets inside each module. */
html[data-agan-page="overview"] .home-toolbar{gap:7px;padding:7px 12px;font-size:11px}.panel-heading .home-toolbar{padding:0 !important}.home-toolbar label{font-size:11px}.home-toolbar .button,.home-toolbar :is(input,select){padding:5px 8px;font-size:11px;min-height:27px}.home-rank .table-scroll{max-height:300px}.home-rank th,.home-rank td{padding:8px 10px;font-size:11px}.home-rank thead th{background:#f3f6fb;color:#5d6b80;white-space:nowrap}.home-rank th:first-child,.home-rank td:first-child{width:38px}.home-rank th:nth-child(2),.home-rank td.rank-title-cell{width:185px;min-width:140px;max-width:200px;text-align:left}.rank-title{width:180px;max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.rank-title-cell small{max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-rank td small{margin-top:3px;font-size:10px}.home-rank th:last-child,.home-rank td:last-child{width:45px}.home-rank td a{color:#1677ff}.home-rank tbody tr:hover,.home-grid tbody tr:hover{background:#f8fbff}
.home-grid .home-kpis{gap:8px;padding:10px 12px}.home-grid .home-kpis article,.home-grid .home-kpis>a{padding:10px;background:#f7f9fd;border:1px solid #edf1f7;border-radius:3px}.home-kpis span{font-size:11px;color:#738198}.home-kpis strong{font-size:20px;margin-top:6px;line-height:1.3}.home-kpis>:nth-child(4n+1) strong{color:#1677ff}.home-kpis>:nth-child(4n+2) strong{color:#18a07c}.home-kpis>:nth-child(4n+3) strong{color:#ab6cd8}.home-kpis>:nth-child(4n+4) strong{color:#e8657d}.home-caption{font-size:10px;color:#8b97a8;line-height:1.5;margin:0;padding:4px 12px 9px}.home-grid :is(th,td){padding:8px 10px;font-size:11px}.home-grid .table-scroll{max-height:210px}.home-grid .panel-heading label{font-size:10px}.home-grid .panel-heading input{width:70px;padding:4px}.home-bars{padding:5px 12px 9px}.home-bars>div{padding:5px 0 7px;margin:4px 0;border-bottom-width:2px;font-size:11px}.home-bars i{height:2px;bottom:-2px;background:#4f9aff}.home-bars>div:nth-child(3n+2) i{background:#36b6a3}.home-bars>div:nth-child(3n+3) i{background:#b38ae6}.home-week{padding:6px 12px;gap:4px}.home-week button{padding:3px;line-height:1.4;font-size:10px}.home-notes{padding:5px 12px;min-height:60px;max-height:130px;font-size:11px}.home-notes article{padding:6px 0}.home-notes p{margin:5px 0}.home-notes small{font-size:10px;margin:5px 0}.home-task-row .panel-heading input[type=date]{width:122px;margin:0}.home-task-row>.panel{display:flex;flex-direction:column;height:258px}.home-task-row .home-kpis{flex:1;min-height:0}.home-task-row .home-notes{flex:1;min-height:25px;max-height:none}.home-task-row .home-caption{flex:0 0 auto;font-size:9px}.home-task-row .home-toolbar{flex:0 0 auto}.home-bottom-row .home-bars{max-height:190px;overflow:auto}
/* The distribution, performance and review panels share one exact height. */
.home-grid.home-compact-row{align-items:stretch}.home-compact-row>.panel{display:flex;flex-direction:column;height:282px;min-height:0}.home-compact-row .panel-heading{flex:0 0 auto}.home-compact-row .home-toolbar{flex:0 0 auto;gap:5px}.home-compact-row .home-toolbar .button,.home-compact-row .home-toolbar select{padding:4px 7px;font-size:10px}.home-compact-row .table-scroll{flex:1;min-height:0;max-height:none}.home-compact-row td:first-child{max-width:115px;overflow:hidden;text-overflow:ellipsis}.home-compact-row [data-reviews]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));flex:1;min-height:0}.home-compact-row [data-reviews] article{display:flex;flex-direction:column;justify-content:center;padding:9px 10px}.home-compact-row [data-reviews] strong{font-size:21px;margin-top:6px}.home-compact-row [data-reviews] span{font-size:10px}.home-compact-row .home-caption{flex:0 0 auto;font-size:9px;line-height:1.45;padding-top:5px}.home-pie-layout{position:relative;display:flex;align-items:center;gap:12px;padding:2px 12px 7px;min-height:0;flex:1}.home-pie{flex:0 0 142px;width:142px;height:142px;overflow:visible}.home-pie-legend{flex:1;min-width:0;max-height:151px;overflow-y:auto;scrollbar-width:thin}.home-pie-legend>div{display:flex;align-items:center;gap:6px;padding:0 3px;border-radius:3px;font-size:10px;line-height:2.5;cursor:default}.home-pie-legend i{width:7px;height:7px;border-radius:2px;flex:0 0 7px}.home-pie-legend span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-pie-legend b{font-weight:500;font-variant-numeric:tabular-nums}.home-pie-legend small{width:37px;text-align:right;color:#8996a9;font-size:9px}.home-pie-legend>div.is-active{background:#edf5ff;color:#1677ff}.home-pie-slice{transition:opacity .12s;outline-offset:1px;cursor:default}.home-pie-layout:has(.is-active) .home-pie-slice:not(.is-active){opacity:.5}.home-pie-slice.is-active{filter:brightness(1.05)}.home-pie-empty{width:100%;display:flex;align-items:center;gap:12px;color:#96a1b1;font-size:11px}.home-pie-empty svg{width:125px;height:125px;flex:0 0 125px}.home-pie-tooltip{position:absolute;z-index:10;pointer-events:none;min-width:170px;max-width:260px;padding:10px 12px;background:#fff;border:1px solid #dfe7f3;border-radius:5px;box-shadow:0 4px 18px #263f6220;font-size:11px}.home-pie-tooltip>b{display:flex;align-items:center;gap:7px;max-width:220px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}.home-pie-tooltip i{width:7px;height:7px;border-radius:2px;flex:0 0 7px}.home-pie-tooltip>div{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:5px}.home-pie-tooltip span{color:#8492a6}.home-pie-tooltip strong{font-weight:500}.home-pie-tooltip .home-pie-share{font-size:16px;color:#1677ff}
/* Keep secondary details compact below the main dashboard modules. */
.home-product-detail .row-link{max-width:210px;overflow:hidden}.home-product-detail .row-link :is(b,small){display:block;max-width:200px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-product-detail .table-scroll{max-height:295px}.home-product-detail td,.home-product-detail th{padding:8px 12px;font-size:11px}.home-product-detail .table-footer{padding:8px 12px;font-size:10px}.home-product-detail .button.small{padding:4px 8px;min-height:26px}.home-product-detail .field{padding:5px 8px;min-height:29px;font-size:11px}
html[data-agan-page="overview"] .home-finance-row{margin:0 0 var(--home-gap)}.home-finance-row .finance-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 12px;gap:14px}.home-finance-row .finance-item{display:block;padding:5px 0;border:0}.home-finance-row .finance-item strong{display:block;margin-top:7px;color:#1677ff;font-size:21px}.home-finance-row .panel-note{font-size:9px;padding:5px 12px 9px;color:#8a96a8}.home-sources .health{padding:9px 12px;margin:0;gap:8px;max-height:160px;overflow:auto}.home-sources .health-item{padding:8px 10px;font-size:10px}.home-basis{margin:0 12px 9px;color:#8490a2;font-size:10px}.home-basis summary{cursor:pointer;width:max-content}.home-basis p{line-height:1.65;margin-top:8px}
/* Hidden modules occupy only the slim restore rail. */
.module-collapse{display:flex;align-items:center;gap:3px;flex:0 0 auto;margin-left:auto;background:transparent;border:0;color:#8c99ac;padding:3px 4px;font-size:10px;font-weight:400;font-family:inherit;cursor:pointer;border-radius:3px}.module-collapse:hover,.module-collapse:focus-visible{color:#1677ff;background:#edf5ff}.module-collapse svg{width:11px;height:11px;stroke:currentColor;stroke-width:1.3;fill:none}.perf-head>.module-collapse{margin-left:0}.module-dock{position:fixed;right:3px;top:65px;bottom:10px;z-index:65;width:37px;display:flex;flex-direction:column;gap:5px;overflow-y:auto;scrollbar-width:thin;padding:2px}.module-dock-head{display:flex;flex-direction:column;gap:3px;align-items:center;background:#fff;border:1px solid #e4eaf3;border-radius:4px;padding:5px 0;color:#8b9ab0;font-size:10px;flex:0 0 auto}.module-dock-head button{font-size:10px;border:0;background:none;color:#1677ff;cursor:pointer;padding:2px}.module-dock nav{display:flex;flex-direction:column;gap:5px}.module-restore{writing-mode:vertical-rl;text-orientation:upright;display:flex;align-items:center;justify-content:center;min-height:69px;max-height:120px;width:29px;padding:8px 5px;background:#fff;border:1px solid #dce6f3;border-radius:4px;color:#5c769b;font-size:10px;letter-spacing:1px;cursor:pointer;flex:0 0 auto}.module-restore:hover,.module-restore:focus-visible{background:#edf5ff;border-color:#9cc5ff;color:#1677ff}.has-collapsed-modules .content{padding-right:49px !important}
@media(min-width:1101px){.home-grid.home-compact-row{grid-template-columns:1.2fr 1fr 1fr}}
@media(max-width:1250px) and (min-width:751px){.home-snapshot-row .metric{padding:0 8px}.home-snapshot-row .metric-value,.ad-metrics strong{font-size:19px}.ad-metrics article{padding:0 7px}.ad-metrics span{font-size:10px}.home-compact-row .home-pie-layout{gap:7px}.home-compact-row .home-pie{flex-basis:126px;width:126px;height:126px}.home-compact-row .home-pie-legend{font-size:9px}}
@media(max-width:750px){html[data-agan-page="overview"] .content{padding-left:9px;padding-right:9px}.overview-actions .account{margin-left:0;gap:5px}.overview-actions .button{font-size:10px;padding:4px 7px}.home-grid.three[data-visible-count="2"]{grid-template-columns:1fr}.home-snapshot-row .metric-value{font-size:18px}.home-snapshot-row .metric{padding:0 7px}.home-snapshot-row .metric-foot{font-size:9px}.multi-filter{flex:1 1 calc(50% - 8px);min-width:130px}.platform-choice{padding:6px 8px;font-size:11px}.home-grid.home-compact-row{grid-template-columns:1fr}.home-compact-row .home-pie{flex-basis:140px;width:140px;height:140px}.ad-metrics strong{font-size:19px}.ad-metrics article{padding:0 8px}.home-finance-row .finance-items{grid-template-columns:1fr;gap:5px}.module-dock{top:110px;right:1px;width:32px}.module-restore{width:26px}.has-collapsed-modules .content{padding-right:39px !important}.home-rank th:nth-child(2),.home-rank td.rank-title-cell{max-width:165px;min-width:140px}.rank-title{width:145px;max-width:145px}.rank-title-cell small{max-width:145px}.home-task-row>.panel{height:270px}}

/* Freeze headings inside each table viewport while rows scroll. */
html[data-agan-page="overview"] .table-scroll{position:relative;isolation:isolate}
html[data-agan-page="overview"] .table-scroll thead th{position:sticky;top:0;z-index:3;background:#f5f7fb !important;box-shadow:0 1px #e5eaf2}

/* Snapshot and module footnotes are hover descriptions, so values stay compact. */
.home-snapshot-row .metric-value{margin-bottom:0}.ad-metrics{padding-bottom:10px}.home-notes .home-record-state{display:inline-block;margin-left:8px;font-size:10px;color:#7d8a9d;vertical-align:middle}.home-rank .rank-title-cell{vertical-align:middle}
