/* KALERA — APPROVED REFERENCE MAIN DASHBOARD · Oct 2026
   Scoped to dashboard only. Keeps real data, calculations, tabs, and links.
   Reference: user approved "Kalera Filling Station Dashboard(6).png".
 */
.app-shell.dashboard-active .page-content{padding:10px 16px 36px;background:#f5f9f7;min-width:0}
.app-shell.dashboard-active .admin-dashboard{
  --kd-ink:#142f46;--kd-line:#dbe9e5;--kd-muted:#627a87;--kd-green:#008b63;
  display:flex;flex-direction:column;gap:10px;max-width:none;min-width:0;
  font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:12px;line-height:1.4;color:var(--kd-ink);
}
.app-shell.dashboard-active .admin-dashboard button{font-family:inherit}
/* Greeting: icon only here. Moon icon changes with phase; no phase widget. */
.app-shell.dashboard-active .admin-dashboard .dashboard-moon-phase{display:none!important}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero{min-height:49px;gap:10px;padding:3px 7px;margin:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero-copy{gap:10px;align-items:center}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero .admin-dash-sun{display:inline-grid;place-items:center;font-size:28px!important;line-height:1;color:#fba51d;flex:0 0 30px;filter:none!important}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero[data-time="moon"] .admin-dash-sun{font-size:27px!important;color:#d6b55a}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero h1{margin:0;color:#073d32;font-size:19px;font-weight:800;line-height:1.1;letter-spacing:-.45px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero p{margin:4px 0 0;font-size:10px;color:#667991;gap:9px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero p strong{font-size:10px;font-weight:600}
.app-shell.dashboard-active .admin-dashboard .admin-dash-tagline{display:flex!important;align-items:center;gap:8px;background:#eaf8f0;border-radius:7px;padding:10px 15px;color:#076b50;font-size:11px;font-weight:700;box-shadow:none}
.app-shell.dashboard-active .admin-dashboard .admin-dash-tagline span{font-size:16px}
/* 6 narrow cards in ONE row like the supplied mockup, not a new 3-card grid. */
.app-shell.dashboard-active .admin-dashboard .admin-summary-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0;align-items:stretch}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile{min-width:0;min-height:67px;height:auto;padding:10px 9px;gap:8px;border:1px solid #dae6e9;background:#fff;border-radius:10px;box-shadow:0 3px 12px #174e5420;transition:transform .15s ease}
.app-shell.dashboard-active .admin-dashboard .admin-summary-icon{width:37px;height:40px;flex:0 0 37px;border-radius:10px}
.app-shell.dashboard-active .admin-dashboard .admin-summary-icon svg,.app-shell.dashboard-active .admin-dashboard .admin-summary-icon .dashboard-lucide-icon{width:21px;height:21px}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy{min-width:0;gap:2px}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy small{font-size:9px!important;white-space:normal;line-height:1.2}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy strong{font-size:clamp(12px,1.04vw,17px)!important;white-space:normal;word-break:normal!important;overflow-wrap:normal!important;letter-spacing:-.2px;line-height:1.13!important}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy em{font-size:9px!important;white-space:normal;line-height:1.16}
/* Six adjacent original operational widgets */
.app-shell.dashboard-active .admin-dashboard .admin-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:9px;margin:0;}
.app-shell.dashboard-active .admin-dashboard .admin-kpi,
.app-shell.dashboard-active .admin-dashboard .admin-kpi.has-badge,
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="dip"],
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"]{
 position:relative;display:flex;align-items:flex-start;min-width:0;min-height:240px;height:auto;
 padding:10px 8px 11px;border:1px solid #dce9e7;border-top:2px solid var(--kd-green);border-radius:10px;
 background:linear-gradient(155deg,#fff 0%,#fff 75%,#fdfefd 100%);box-shadow:0 5px 15px #1b604a16;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(2){border-top-color:#2d8df3}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(3){border-top-color:#f8a022}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(4){border-top-color:#4b9df0}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(5){border-top-color:#0a9770}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(6){border-top-color:#8244d0}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-icon,.app-shell.dashboard-active .admin-dashboard .admin-kpi.has-badge .admin-kpi-icon{
 position:absolute;top:10px;left:9px;right:auto;width:38px;height:38px;border-radius:10px;
 display:grid;place-items:center;background:#008b61;color:#fff;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(2) .admin-kpi-icon{background:#2d8bf0;color:#fff}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(3) .admin-kpi-icon{background:#fff1de;color:#e98e23}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(4) .admin-kpi-icon{background:#e7f3ff;color:#2487ec}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(5) .admin-kpi-icon{background:#e5f7f0;color:#0b9466}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(6) .admin-kpi-icon{background:#f1e9ff;color:#813ed1}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-icon svg,.app-shell.dashboard-active .admin-dashboard .admin-kpi-icon .dashboard-lucide-icon{width:20px;height:20px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi>div:last-child>h2,
.app-shell.dashboard-active .admin-dashboard .admin-kpi.has-badge>div:last-child>h2,
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="dip"]>div:last-child>h2,
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"]>div:last-child>h2{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:38px;
 padding:0 3px 0 46px;margin:0 0 8px;font-size:13px;line-height:1.12;font-weight:800;color:#193b4e;
 white-space:normal;word-break:normal;overflow-wrap:normal;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-subtitle{font-size:9px;line-height:1.2;margin-top:3px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-badge{top:11px;right:7px;padding:2px 4px;max-width:calc(100% - 52px);font-size:8px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-breakdown{gap:5px;margin-top:6px;min-width:0}
.app-shell.dashboard-active .admin-dashboard .admin-dip-product,.app-shell.dashboard-active .admin-dashboard .admin-density-product{border:1px solid #e0eae9;border-radius:8px;margin:0;overflow:hidden}
.app-shell.dashboard-active .admin-dashboard .admin-dip-product h3,.app-shell.dashboard-active .admin-dashboard .admin-density-product h3{font-size:11px;line-height:1.25;padding:5px 7px;margin:0}
.app-shell.dashboard-active .admin-dashboard .admin-dip-product h3 small,.app-shell.dashboard-active .admin-dashboard .admin-density-product h3 small{font-size:9px}
.app-shell.dashboard-active .admin-dashboard .admin-dip-readings{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 6px;padding:5px 7px}
.app-shell.dashboard-active .admin-dashboard .admin-dip-readings span{font-size:9px;line-height:1.25;word-break:normal;overflow-wrap:normal}
.app-shell.dashboard-active .admin-dashboard .admin-dip-readings strong{font-size:11px;line-height:1.15;word-break:normal;overflow-wrap:normal}
.app-shell.dashboard-active .admin-dashboard .admin-density-current,.app-shell.dashboard-active .admin-dashboard .admin-density-reading{padding:5px 7px;gap:5px;line-height:1.3;font-size:10px}
.app-shell.dashboard-active .admin-dashboard .admin-density-current strong,.app-shell.dashboard-active .admin-dashboard .admin-density-reading strong{font-size:11px;line-height:1.15;white-space:normal;overflow-wrap:normal}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-last-test{margin-top:5px;padding:5px 7px;font-size:9px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-last-test time{font-size:10px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-row{padding:7px 0;min-height:28px;gap:5px;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-row span{font-size:10px;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-row strong{font-size:10px;font-weight:800;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-total{font-size:11px;padding-top:6px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-total strong{font-size:13px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi .dashboard-trend{font-size:9px;padding:3px 4px}
/* Three compact discount/expenses summaries */
.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip .admin-kpi-row{min-height:38px;padding:6px 10px;background:#fff;border:1px solid #e2ecea;border-radius:9px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip .admin-kpi-row span,.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip .admin-kpi-row strong{font-size:10px}
/* Fuel, tank stock, and purchase panels share a single row, 3 balanced columns */
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1.02fr) minmax(0,1.04fr);gap:9px;align-items:stretch}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel{background:#fff;border:1px solid #deebe7;border-radius:10px;box-shadow:0 4px 13px #184d4112;min-width:0}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-head{min-height:40px;padding:8px 10px;border-bottom:1px solid #e6efed}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-head h2{font-size:13px;line-height:1.18;font-weight:800}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-head p{font-size:10px;line-height:1.3;margin-top:3px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-body{padding:9px 10px}
.app-shell.dashboard-active .admin-dashboard .admin-tank{padding:7px 8px;margin:0 0 6px;border-radius:9px}
.app-shell.dashboard-active .admin-dashboard .admin-tank-label b,.app-shell.dashboard-active .admin-dashboard .admin-tank-label strong{font-size:11px;line-height:1.25}
.app-shell.dashboard-active .admin-dashboard .admin-tank-capacity{font-size:9px}
.app-shell.dashboard-active .admin-dashboard .admin-tank-meta{font-size:9px}
.app-shell.dashboard-active .admin-dashboard .purchase-receipt-history-panel .admin-receipt-history-row{min-height:36px;padding:5px 4px;font-size:10px;line-height:1.3;gap:6px}
.app-shell.dashboard-active .admin-dashboard .purchase-receipt-history-panel .admin-receipt-history-row b{font-size:10px}
/* Bottom row: Operations | Shift summary | Alerts above Recent Transactions. */
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.20fr) minmax(0,1.07fr);align-items:start;gap:9px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom>.admin-dash-panel{min-width:0}
.app-shell.dashboard-active .admin-dashboard .admin-dash-side-stack{display:grid;grid-template-columns:1fr;gap:8px;min-width:0}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-panel-body{padding:9px 10px;max-height:none;overflow:visible}
.app-shell.dashboard-active .admin-dashboard .admin-operations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.app-shell.dashboard-active .admin-dashboard .admin-operation{min-height:67px;padding:8px 6px;gap:5px;border:1px solid #e2ebe7;border-radius:9px;align-items:center}
.app-shell.dashboard-active .admin-dashboard .admin-operation>.admin-kpi-icon{position:static;display:grid;flex:0 0 24px;width:24px;height:27px;border-radius:7px}
.app-shell.dashboard-active .admin-dashboard .admin-operation>.admin-kpi-icon svg{width:14px;height:14px}
.app-shell.dashboard-active .admin-dashboard .admin-operation small{font-size:9px;line-height:1.25;word-break:normal;overflow-wrap:normal}
.app-shell.dashboard-active .admin-dashboard .admin-operation b{font-size:11px;line-height:1.2;word-break:normal;overflow-wrap:normal}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alerts{padding:11px;border:1px solid #f1dcba;background:#fffaf2;border-radius:10px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alerts h2{font-size:13px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alert{padding:7px 0;gap:7px;font-size:10px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alert b{font-size:9px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alert button{font-size:9px;padding:5px 7px}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:6px}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals>div{padding:6px 7px}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals small{font-size:9px;line-height:1.25;white-space:normal}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals b{font-size:14px;white-space:normal;overflow-wrap:normal;word-break:normal}
/* Tables scroll ONLY horizontally when needed; words never split letter by letter. */
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .table-wrap{display:block;max-width:100%;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:thin}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom table.admin-dash-table{width:100%!important;min-width:940px!important;max-width:none!important;table-layout:auto!important;border-collapse:collapse}
.app-shell.dashboard-active .admin-dashboard .admin-recent table.admin-dash-table{min-width:1200px!important}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-table th,.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-table td{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.3!important;padding:8px 9px!important;font-size:10px!important;vertical-align:middle}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-table th{font-size:10px!important;font-weight:750}
.app-shell.dashboard-active .admin-dashboard .admin-recent-tabs{display:flex;flex-wrap:wrap;gap:5px}
.app-shell.dashboard-active .admin-dashboard .admin-recent-tabs button{font-size:10px;padding:5px 9px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-note{font-size:10px;line-height:1.35}
.app-shell.dashboard-active .admin-dashboard .admin-panel-link{font-size:10px}
/* Extra enhancements preserved but placed AFTER the approved-reference sections. */
.app-shell.dashboard-active .admin-dashboard .dashboard-insights{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr) minmax(0,1fr);gap:9px;margin-top:4px}
.app-shell.dashboard-active .admin-dashboard .dashboard-insights .admin-dash-panel-head{min-height:45px}
.app-shell.dashboard-active .admin-dashboard .dashboard-insights .admin-dash-panel-body{padding:10px}
.app-shell.dashboard-active .admin-dashboard .dashboard-trend-svg{height:115px}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button{min-height:60px;padding:7px 4px;gap:3px}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button strong{font-size:10px}
.app-shell.dashboard-active .admin-dashboard .dashboard-quick-actions>button svg{width:18px;height:18px}
.app-shell.dashboard-active .admin-dashboard .dashboard-shift-status{padding:7px 9px}
/* Larger natural screens still use one row; smaller screens reflow instead of clipping */
@container (max-width:1330px){
 .app-shell.dashboard-active .admin-dashboard .admin-summary-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
 .app-shell.dashboard-active .admin-dashboard .admin-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-side-stack{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:900px){
 .app-shell.dashboard-active .admin-dashboard .admin-summary-tiles,.app-shell.dashboard-active .admin-dashboard .admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-grid,.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom{grid-template-columns:1fr}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-side-stack{grid-column:auto;grid-template-columns:1fr}
 .app-shell.dashboard-active .admin-dashboard .dashboard-insights{grid-template-columns:1fr}
}
@container (max-width:560px){
 .app-shell.dashboard-active .admin-dashboard .admin-summary-tiles,.app-shell.dashboard-active .admin-dashboard .admin-kpis,.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip{grid-template-columns:1fr}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-hero{flex-wrap:wrap}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-tagline{display:none!important}
}
@media print{
 .app-shell.dashboard-active .admin-dashboard .admin-summary-tiles,.app-shell.dashboard-active .admin-dashboard .admin-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-bottom{grid-template-columns:1fr}
 .app-shell.dashboard-active .admin-dashboard .dashboard-insights{display:none}
}
