:root{--brand-primary:#126644;--brand-sidebar:#103d30;--brand-accent:#d5ef82;--brand-selected:#275b44}
.app-shell .btn.primary{background:var(--brand-primary);border-color:var(--brand-primary);color:#fff}.app-shell .admin-dashboard .admin-dash-head{background:linear-gradient(110deg,var(--brand-sidebar),var(--brand-primary))}.app-shell .admin-dashboard .admin-dash-head .btn.primary{background:var(--brand-accent);border-color:var(--brand-accent);color:#123726}
.app-shell .sidebar{width:262px;background:var(--brand-sidebar);transition:width .2s ease;padding:12px 9px;overflow-x:hidden}
.app-shell .main-area{margin-left:262px;transition:margin-left .2s ease}
.app-shell.nav-collapsed .sidebar{width:68px}
.app-shell.nav-collapsed .main-area{margin-left:68px}
.sidebar .brand{min-height:48px;padding:2px 7px 12px;gap:11px;white-space:nowrap}
.sidebar .brand-mark{flex:0 0 38px;overflow:hidden}
.sidebar .brand-mark img{width:100%;height:100%;object-fit:contain}
.sidebar .brand-copy{min-width:0;overflow:hidden}
.app-shell.nav-collapsed .brand-copy,.app-shell.nav-collapsed .station-switch #stationLabel,.app-shell.nav-collapsed .station-switch .chevron,.app-shell.nav-collapsed .nav-heading .nav-heading-text,.app-shell.nav-collapsed .nav-section-chevron,.app-shell.nav-collapsed .nav-section-items,.app-shell.nav-collapsed .sidebar-bottom .cloud-status,.app-shell.nav-collapsed .sidebar-bottom .nav-link span:last-child{display:none}
.sidebar .station-switch{width:100%;height:42px;margin:0 0 9px;padding:0 11px;justify-content:flex-start;white-space:nowrap;color:#e3f0e7;text-align:left}
.sidebar .workspace-icon{flex:0 0 30px;text-align:center;font-size:20px}
.app-shell.nav-collapsed .station-switch{width:48px;margin-left:1px;padding:0 7px}
.app-shell .nav-heading{display:flex;align-items:center;gap:12px;width:100%;min-height:39px;border:0;border-radius:9px;background:transparent;text-align:left;color:#c7d9cd;padding:6px 10px;cursor:pointer;font-size:11px;letter-spacing:.02em;text-transform:none}
.app-shell .nav-heading:hover,.app-shell .nav-heading[aria-expanded="true"]{background:#ffffff14;color:#fff}
.app-shell .nav-group-icon,.app-shell .nav-dashboard .nav-icon{width:28px;flex:0 0 28px;text-align:center;font-size:18px;line-height:1}
.app-shell .nav-heading-text{min-width:0;flex:1}
.app-shell .nav-section-chevron{margin-left:auto;font-size:17px}
.app-shell .nav-group{margin:3px 0}
.app-shell .nav-item{min-height:34px;margin:1px 0 1px 10px;padding:0 8px;font-size:11px}
.app-shell .nav-dashboard .nav-item{height:40px;margin:0 0 7px;padding:0 10px}
.app-shell.nav-collapsed .nav-dashboard .nav-item{width:48px;overflow:hidden;font-size:0}
.app-shell.nav-collapsed .nav-dashboard .nav-icon{font-size:19px}
.app-shell.nav-collapsed .nav-group{width:48px}
.app-shell.nav-collapsed .nav-heading{width:48px;padding:6px 10px}
.app-shell.nav-collapsed .sidebar-bottom .nav-link{width:48px;min-height:40px}
.app-shell .nav-item.active{background:var(--brand-selected);color:#fff}
.app-shell .topbar{gap:15px;padding-left:18px;padding-right:18px}
.header-brand-logo[hidden]{display:none}.header-brand-logo{width:38px;height:38px;object-fit:contain}.login-mark img{max-width:100%;max-height:100%;object-fit:contain}
.app-shell .mobile-menu{display:block;flex:0 0 36px;height:36px;border:1px solid #d8e5dc;border-radius:8px;background:#fff;font-size:18px}
.top-title{min-width:110px;max-width:175px}
.top-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-search{position:relative;display:flex;align-items:center;flex:1;max-width:620px;min-width:0;height:38px;border:1px solid #d9e6dd;border-radius:9px;background:#f8fbf9;color:#60776b;padding:0 10px;z-index:7}
.global-search:focus-within{border-color:var(--brand-primary);box-shadow:0 0 0 3px #1d8f5e1d}
.global-search>span{font-size:20px;margin-right:8px}
.global-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#183c2c;font-size:12px}
.global-search-results{position:absolute;left:0;right:0;top:calc(100% + 5px);max-height:min(66vh,570px);overflow:auto;padding:8px;background:#fff;border:1px solid #d9e6dd;border-radius:11px;box-shadow:0 18px 42px #0a2a1b30;z-index:40}
.global-search-results[hidden]{display:none}
.global-search-results h3{margin:7px 8px 3px;font-size:10px;color:#547466;text-transform:uppercase;letter-spacing:.06em}
.global-search-result{display:flex;justify-content:space-between;gap:8px;width:100%;padding:8px 9px;border:0;border-radius:7px;background:transparent;text-align:left;color:#173b2b}
.global-search-result:hover,.global-search-result:focus{background:#eaf6ed;outline:0}
.global-search-result span{min-width:0}.global-search-result strong,.global-search-result small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.global-search-result strong{font-size:11px}.global-search-result small{font-size:10px;color:#60776b;margin-top:2px}.global-search-result em{font-size:10px;color:var(--brand-primary);font-style:normal;white-space:nowrap}
.global-search-empty{padding:15px 9px;color:#64796d;font-size:11px}
.workspace-panel[hidden]{display:none}.workspace-panel{position:fixed;top:67px;left:68px;width:min(330px,calc(100vw - 75px));max-height:calc(100vh - 75px);overflow:auto;padding:14px;background:#fff;border:1px solid #d9e6dd;border-radius:0 13px 13px 0;box-shadow:8px 12px 38px #0b2a1b32;z-index:20}
.app-shell:not(.nav-collapsed) .workspace-panel{left:262px}.workspace-panel img{display:block;width:100%;max-height:145px;object-fit:cover;border-radius:9px;margin-bottom:12px}.workspace-panel h2{margin:0 0 9px;font-size:15px}.workspace-panel dl{display:grid;grid-template-columns:95px 1fr;gap:7px;margin:0;font-size:11px}.workspace-panel dt{color:#678073}.workspace-panel dd{margin:0;font-weight:700;color:#1d3c2b;overflow-wrap:anywhere}.workspace-panel .workspace-current{margin-top:12px;padding:8px;border-radius:8px;background:#e9f4ec;color:#17613d;font-size:11px;font-weight:700}
.admin-kpi-main{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere;font-size:clamp(16px,1.6vw,25px)!important}
.admin-kpi-breakdown{min-width:0}.admin-kpi-breakdown span,.admin-kpi-breakdown em{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere}
.admin-kpi[data-kind="fuel-sold"] .admin-kpi-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.admin-kpi[data-kind="fuel-sold"] .admin-kpi-breakdown span{min-width:0}
.admin-dash-alerts{margin:14px 0;padding:13px;border:1px solid #e9d79b;border-radius:11px;background:#fffaf0}.admin-dash-alerts h2{margin:0 0 8px;font-size:14px}.admin-dash-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #f0e4c7;font-size:11px}.admin-dash-alert:first-of-type{border-top:0}.admin-dash-alert span{flex:1}.admin-dash-alert b{font-size:9px;text-transform:uppercase;color:#9b620d}.admin-dash-alert button,.dash-breakup{border:1px solid #c5dcca;border-radius:7px;background:#fff;color:#17613d;padding:5px 8px;font-size:10px;font-weight:700;white-space:nowrap}
.dash-breakup-panel{padding:10px 15px;background:#eef7f0}.dash-breakup-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.dash-breakup-grid span{font-size:10px}.dash-breakup-grid b{display:block;margin-top:3px;font-size:11px}
.dash-breakup-row[hidden]{display:none!important}.admin-dash-alert small{display:block;color:#68736d;margin-top:3px}.admin-dash-alerts{border-radius:12px;border:1px solid #e7d7ab;background:#fffaf0;padding:12px 16px;margin:12px 0}.admin-dash-alert b{min-width:58px}
.expanded-brand-logo{max-width:150px;max-height:32px;object-fit:contain;display:block;margin-bottom:5px}.expanded-brand-logo[hidden]{display:none!important}.branding-page{display:grid;gap:12px;max-width:1280px}.branding-page .panel-body{padding:15px}.branding-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.branding-asset{border:1px solid #dbe7df;border-radius:10px;padding:10px;display:grid;gap:8px;font-size:12px}.branding-preview{height:80px;background:#f4f7f5;border-radius:8px;display:grid;place-items:center;color:#718179}.branding-preview img{max-width:100%;max-height:76px;object-fit:contain}.branding-asset input{width:100%;font-size:11px}.branding-asset .btn{width:max-content}.branding-actions{display:flex;gap:8px;flex-wrap:wrap;position:sticky;bottom:8px;background:#ffffffef;padding:10px;border-radius:10px;box-shadow:0 4px 22px #0b38231c}.branding-page h3{font-size:13px;margin:14px 0 8px}.branding-page [hidden]{display:none!important}
.custom-brand-icon{display:inline-block;width:21px;height:21px;max-width:100%;object-fit:contain;vertical-align:middle}.admin-kpi-icon .custom-brand-icon{width:24px;height:24px}.branding-custom-icons{margin-top:14px}.branding-custom-icons summary{cursor:pointer;font-weight:700;color:#175b3b;margin-bottom:9px}
@media(max-width:980px){.branding-assets{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.branding-assets{grid-template-columns:1fr}}
.dash-status{display:inline-block;padding:4px 7px;border-radius:6px;font-size:9px;font-weight:800;white-space:nowrap}.dash-status.matched{background:#e5f5e9;color:#14673e}.dash-status.short{background:#ffe7e4;color:#ad2828}.dash-status.gain{background:#e2f4e8;color:#187341}.dash-status.incomplete{background:#fff0d7;color:#915c08}.dash-status.no-entry{background:#eef1f3;color:#59666c}
.admin-dashboard .admin-dash-table td,.admin-dashboard .admin-dash-table th{white-space:nowrap}.admin-dashboard .admin-recon-totals b{overflow-wrap:anywhere}
.branding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.branding-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700}.branding-grid input,.branding-grid select{width:100%;height:34px;border:1px solid #d7e3d9;border-radius:7px;padding:5px;background:#fff}.branding-preview{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px;border:1px dashed #c7d8cb;border-radius:8px;font-size:10px;color:#547060}.branding-preview img{max-width:120px;max-height:55px;object-fit:contain}.branding-icon-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:7px}.branding-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.branding-actions button{font-size:11px}
@media(max-width:760px){.app-shell .sidebar{width:262px;transform:translateX(-100%);z-index:32}.app-shell .sidebar.open{transform:translateX(0)}.app-shell.nav-collapsed .sidebar{width:262px}.app-shell .main-area,.app-shell.nav-collapsed .main-area{margin-left:0}.app-shell.nav-collapsed .brand-copy,.app-shell.nav-collapsed .station-switch #stationLabel,.app-shell.nav-collapsed .station-switch .chevron,.app-shell.nav-collapsed .nav-heading .nav-heading-text,.app-shell.nav-collapsed .nav-section-chevron,.app-shell.nav-collapsed .nav-section-items,.app-shell.nav-collapsed .sidebar-bottom .cloud-status,.app-shell.nav-collapsed .sidebar-bottom .nav-link span:last-child{display:initial}.app-shell.nav-collapsed .nav-section-items[hidden]{display:none}.app-shell.nav-collapsed .nav-group,.app-shell.nav-collapsed .nav-heading,.app-shell.nav-collapsed .station-switch,.app-shell.nav-collapsed .nav-dashboard .nav-item{width:100%}.app-shell.nav-collapsed .nav-dashboard .nav-item{font-size:11px}.app-shell .top-title{display:none}.global-search{max-width:none}.workspace-panel,.app-shell:not(.nav-collapsed) .workspace-panel{left:8px;top:69px}.dash-breakup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.app-shell .topbar{gap:7px;padding:0 9px}.global-search input{font-size:10px}.app-shell .top-actions .help-btn{display:none}.admin-dash-alert{flex-wrap:wrap}.branding-grid{grid-template-columns:1fr}}

/* Final Dashboard layout: six readable main cards, followed by a slim discount/expense strip. */
.app-shell:has(.admin-dashboard) .topbar{height:62px}
.app-shell:has(.admin-dashboard) .topbar .top-title{display:none}
.app-shell:has(.admin-dashboard) .global-search{max-width:420px;min-width:280px}
.app-shell:has(.admin-dashboard) .profile-name{display:none}
.app-shell:has(.admin-dashboard) .page-content{padding-top:15px}
.admin-dash-head{align-items:center;gap:14px;margin-bottom:12px;padding:0;background:none;box-shadow:none}
.admin-dash-head::after{display:none}
.admin-dash-heading{min-width:0}
.admin-dash-greeting{margin:0 0 2px!important;color:#16804d!important;font-size:11px!important;font-weight:800;letter-spacing:.02em}
.admin-dash-head h1{font-size:22px!important;line-height:1.15!important}
.admin-dash-head .admin-dash-heading>p:last-child{margin:4px 0 0!important;font-size:11px!important}
.admin-dash-controls{align-items:center;gap:6px;max-width:none}
.admin-dash-controls label{min-width:0;gap:0;font-size:0}
.admin-dash-controls label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.admin-dash-controls input,.admin-dash-controls select{height:34px;min-width:0;width:135px;padding:0 8px;font-size:12px}
.admin-dash-controls label>.date-display-control{position:relative;width:145px;min-width:145px;height:34px;min-height:34px;overflow:visible;clip-path:none}
.admin-dash-controls .date-display-control{display:inline-flex;flex:0 0 145px;align-self:center}
.admin-dash-controls .date-display-control .date-display-text{height:34px;min-height:34px}
.admin-dash-controls select{width:112px}
.admin-dash-controls button{height:34px;min-width:36px;padding:0 9px;font-size:11px}
.admin-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 9px}
.app-shell .admin-dashboard .admin-kpi{min-height:190px;padding:12px}
.app-shell .admin-dashboard .admin-kpi[data-kind="dip"],.app-shell .admin-dashboard .admin-kpi[data-kind="density"]{min-height:210px}
.app-shell .admin-dashboard .admin-kpi[data-kind="collection"],.app-shell .admin-dashboard .admin-kpi[data-kind="bank-accounts"],.app-shell .admin-dashboard .admin-kpi[data-kind="cash-position"],.app-shell .admin-dashboard .admin-kpi[data-kind="vendor-balances"]{min-height:210px}
.admin-kpi[data-kind="collection"] .admin-kpi-breakdown,.admin-kpi[data-kind="bank-accounts"] .admin-kpi-breakdown,.admin-kpi[data-kind="cash-position"] .admin-kpi-breakdown,.admin-kpi[data-kind="vendor-balances"] .admin-kpi-breakdown{display:flex;flex-direction:column;gap:0;margin-top:8px}
.admin-kpi-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0;min-height:28px;padding:4px 2px;border:0;border-bottom:1px solid #e8eee9;background:transparent;color:#344b3d;text-align:left;font:inherit;cursor:pointer}
.admin-kpi-row:last-child{border-bottom:0}
.admin-kpi-row:not(.is-static):hover{color:#126644;background:#f3faf5}
.admin-kpi-row:focus-visible{outline:2px solid #188453;outline-offset:1px;border-radius:5px}
.admin-kpi-row span{min-width:0;font-size:11px;font-weight:650;overflow-wrap:anywhere}
.admin-kpi-row strong{flex:0 0 auto;color:#182b23;font-size:12px;font-variant-numeric:tabular-nums;text-align:right}
.admin-kpi-total{display:flex;justify-content:space-between;gap:8px;margin-top:auto;padding:7px 2px 0;border-top:1px solid #b9d6c3;color:#244536;font-size:13px;font-weight:800}
.admin-kpi-total strong{font-size:15px;font-variant-numeric:tabular-nums}
.admin-kpi-empty{padding:12px 2px;color:#74837a;font-size:12px;font-weight:700}
.admin-dash-financial-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:0;min-height:64px;margin:0 0 12px;padding:5px 10px;border:1px solid var(--admin-line);border-radius:10px;background:#fff;box-shadow:var(--admin-shadow)}
.app-shell .admin-dashboard>.admin-dash-financial-strip{grid-column:1/-1;width:100%;min-width:0}
.admin-dash-financial-strip .admin-kpi-row{min-height:50px;padding:5px 14px;border-bottom:0;border-right:1px solid #e5ece7}
.admin-dash-financial-strip .admin-kpi-row:last-child{border-right:0}
.admin-dash-financial-strip .admin-kpi-row span{font-size:12px}
.admin-dash-financial-strip .admin-kpi-row strong{font-size:14px}
.admin-dash-grid{align-items:stretch}
.admin-dash-grid>.admin-dash-panel{min-height:335px}
.admin-dash-grid>.admin-dash-panel>.admin-dash-panel-body{min-height:0}
.admin-dash-grid>.admin-dash-panel:last-child>.admin-dash-panel-body{max-height:290px;overflow:auto}
.admin-receipt{align-items:stretch;flex-direction:column;gap:0;padding:5px 0}
.admin-receipt .admin-kpi-row{min-height:42px;padding:5px 3px}
.admin-receipt .admin-kpi-row span{font-size:10px}
.admin-receipt .admin-kpi-row strong{font-size:11px}
.admin-dash-panel.admin-reconciliation{margin-top:12px}
@media(max-width:1050px){.app-shell:has(.admin-dashboard) .global-search{min-width:180px;max-width:360px}.app-shell .admin-dashboard .admin-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-dash-head{align-items:flex-start;flex-direction:column}.admin-dash-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}.admin-dash-controls input{flex:0 0 135px}.admin-dash-controls select{flex:0 0 112px}}
@media(max-width:760px){.app-shell:has(.admin-dashboard) .topbar{height:58px}.app-shell:has(.admin-dashboard) .global-search{min-width:0;max-width:none}.admin-dash-head{align-items:flex-start;flex-direction:column}.admin-dash-controls{width:100%;justify-content:flex-start}.admin-dash-controls input{flex:1;width:auto}.app-shell .admin-dashboard .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-dash-grid>.admin-dash-panel{min-height:0}.admin-dash-financial-strip{grid-template-columns:1fr}.admin-dash-financial-strip .admin-kpi-row{border-right:0;border-bottom:1px solid #e5ece7}.admin-dash-financial-strip .admin-kpi-row:last-child{border-bottom:0}}
@media(max-width:480px){.admin-kpis{grid-template-columns:1fr}.app-shell .admin-dashboard .admin-kpi,.app-shell .admin-dashboard .admin-kpi[data-kind="dip"],.app-shell .admin-dashboard .admin-kpi[data-kind="density"]{min-height:0}.admin-dash-head h1{font-size:20px!important}.admin-dash-controls{flex-wrap:wrap}.admin-dash-controls label{flex:1}.admin-dash-controls select{width:100%}}

/* Dashboard routes and independent purchase/receipt history */
.admin-kpi[data-go]{cursor:pointer}.admin-kpi[data-go]:hover{box-shadow:0 3px 14px #173e2d33}
.admin-kpi[data-go]:focus-visible,.admin-panel-link:focus-visible{outline:3px solid #188453;outline-offset:3px}
.app-shell .admin-dashboard .admin-kpi.has-badge{min-height:124px}
.admin-kpi.has-badge .admin-kpi-icon{left:10px;right:auto;top:10px}
.admin-kpi.has-badge>div:last-child>h2{min-height:33px;padding:2px 0 0 39px;font-size:12px;line-height:1.2;overflow-wrap:anywhere}
.admin-kpi-badge{position:absolute;top:10px;right:9px;max-width:calc(100% - 56px);padding:3px 6px;border-radius:6px;background:#eef1f2;color:#55626b;font-size:9px;font-weight:800;line-height:1.15;white-space:nowrap}
.admin-kpi-badge[data-status="up"],.admin-kpi-badge[data-status="new"],.admin-kpi-badge[data-status="complete"],.admin-kpi-badge[data-status="recorded"]{background:#e3f4e8;color:#146b3d}
.admin-kpi-badge[data-status="down"]{background:#ffe9e7;color:#b23535}
.admin-kpi-badge[data-status="incomplete"]{background:#fff0d8;color:#91600d}
.admin-kpi[data-kind="operational"] .admin-kpi-breakdown{display:grid;grid-template-columns:1fr;gap:2px;margin-top:2px}
.app-shell .admin-dashboard .admin-kpi[data-kind="density"]{min-height:202px}
.admin-kpi[data-kind="density"] .admin-kpi-icon{width:42px;height:42px;border-radius:11px;background:var(--admin-blue);color:#fff;font-size:20px}
.admin-kpi[data-kind="density"] .admin-kpi-icon .custom-brand-icon{width:32px;height:32px}
.admin-kpi[data-kind="density"]>div:last-child>h2{padding:0 67px 0 52px;min-height:42px;display:block;color:#18345d;font-size:13px;line-height:1.1;letter-spacing:.035em;text-transform:uppercase}
.admin-kpi-subtitle{display:block;margin-top:3px;color:#71829b;font-size:10px;font-weight:600;line-height:1.2;letter-spacing:0;text-transform:none}
.admin-kpi[data-kind="density"] .admin-kpi-breakdown{display:grid;grid-template-columns:1fr;gap:4px;margin-top:4px}
.app-shell .admin-dashboard .admin-kpi[data-kind="dip"]{min-height:202px}
.admin-kpi[data-kind="dip"] .admin-kpi-icon{width:42px;height:42px;border-radius:11px;background:var(--admin-green-700);color:#fff;font-size:20px}
.admin-kpi[data-kind="dip"] .admin-kpi-icon .custom-brand-icon{width:32px;height:32px}
.admin-kpi[data-kind="dip"]>div:last-child>h2{padding:0 67px 0 52px;min-height:42px;display:flex;align-items:center;color:#183d2b;font-size:14px;line-height:1.1}
.admin-kpi[data-kind="dip"] .admin-kpi-breakdown{display:grid;grid-template-columns:1fr;gap:4px;margin-top:4px}
.admin-dip-product{overflow:hidden;border:1px solid #dce8e0;border-radius:9px;background:#fff}
.admin-dip-product h3{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:0;padding:5px 8px;background:#e8f5ec;color:#16773a;font-size:11px;font-weight:800}
.admin-dip-product[data-product="HSD"] h3{background:#e9f2ff;color:#155ab6}
.admin-dip-product h3 small{color:#88610c;font-size:9px;font-weight:800;white-space:nowrap}
.admin-dip-readings{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;padding:5px 8px}
.admin-dip-readings>div{display:grid;gap:2px;min-width:0;padding:1px 0}
.admin-dip-readings span,.admin-dip-variance span{color:#586c61;font-size:10px;line-height:1.2;font-weight:650}
.admin-dip-readings strong{color:#182d59;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.admin-dip-readings>div:nth-child(even){text-align:right}
.admin-dip-readings>div:nth-child(n+3){border-top:1px solid #edf1ee;padding-top:4px}
.admin-kpi-badge[data-status="complete"]{background:#e7f6eb;color:#16773a}
.admin-kpi-badge[data-status="incomplete"]{background:#fff4d8;color:#8a5b00}
.admin-density-product{overflow:hidden;border:1px solid #dce8e0;border-radius:9px;background:#fff}
.admin-density-product h3{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:0;padding:5px 8px;background:#e8f5ec;color:#16773a;font-size:11px;font-weight:800}
.admin-density-product h3 small{font-size:9px;font-weight:800;color:#66756c;white-space:nowrap}.admin-density-product h3 small[data-status="recorded"]{color:#16803d}.admin-density-product h3 small[data-status="pending"]{color:#96640c}
.admin-density-product[data-product="HSD"] h3{background:#e9f2ff;color:#155ab6}
.admin-density-current,.admin-density-reading{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:4px 7px;color:#415348;font-size:10px;line-height:1.2}
.admin-density-current{background:#f7fbf8}.admin-density-reading{border-top:1px solid #edf1ee}.admin-density-current>span,.admin-density-reading>span{font-weight:650}.admin-density-current strong,.admin-density-reading strong{color:#182d59;font-size:11px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.admin-density-reading>span small{color:#6a7b70;font-size:9px;font-weight:600}.admin-density-reading.is-pending>strong{color:#96640c}.admin-density-at15{display:block;color:#63766a;font-size:9px;font-weight:600;line-height:1.15}
.density-view-tabs{display:flex;gap:4px;margin:0 0 10px;padding:3px;width:max-content;border:1px solid #dce8e0;border-radius:9px;background:#f4f8f5}.density-view-tabs button{min-width:92px;padding:7px 12px;border:0;border-radius:7px;background:transparent;color:#536b5d;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.density-view-tabs button[aria-selected="true"]{background:#fff;color:#176143;box-shadow:0 1px 4px #163a291a}.density-view-tabs button:disabled{opacity:.5;cursor:not-allowed}
.admin-kpi-last-test{display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:8px;background:#f1f5fa;color:#64748b;font-size:10px}
.admin-kpi-last-test>span{font-size:14px}
.admin-kpi-last-test strong{color:#53647b;font-weight:700}
.admin-kpi-last-test time{margin-left:auto;color:#223963;font-size:11px;font-weight:800}
.admin-kpi-reading{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:start;gap:3px;padding:2px 0;border-top:1px solid #e6ede8;color:#344b3d;font-size:10px;line-height:1.2}
.admin-kpi-reading:first-child{border-top:0}
.admin-kpi-reading b{color:var(--tone);font-size:10px;white-space:nowrap}
.admin-kpi-reading span,.admin-kpi-reading em{min-width:0;overflow-wrap:anywhere}
.admin-kpi-reading em{font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.admin-kpi-reading em small{display:block;color:#687c71;font-size:9px;font-weight:600}
.admin-panel-link{cursor:pointer;border:0;background:transparent;color:#176143;padding:6px 0;margin-right:12px;font:inherit;text-align:left}
@media print{.admin-panel-link{display:none}}

/* Keep the three operational cards as one balanced dashboard row. */
@media (min-width: 881px) {
  .admin-dashboard .admin-dash-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .95fr);
    align-items: stretch;
  }

  .admin-dashboard .admin-dash-grid > .admin-dash-panel:first-child {
    grid-column: auto;
  }

  .admin-dashboard .admin-dash-grid > .admin-dash-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .admin-dashboard .admin-dash-grid > .admin-dash-panel > .admin-dash-panel-body {
    flex: 1 1 auto;
    min-height: auto;
  }
}
