/* KALERA DASHBOARD VISUAL CORRECTION — 26 OCT 2026
   Scoped exclusively to the dashboard subtree. NO sidebar, shared navigation,
   accounting, API, storage or other pages are altered by this stylesheet.
   Desktop reference: approved Kalera Filling Station dashboard image.
*/
.app-shell.dashboard-active .admin-dashboard {
  --kd-ink:#142f4c;--kd-muted:#61738b;--kd-line:#e1eaf0;
  --kd-green:#008357;--kd-blue:#247fea;--kd-orange:#ef982a;--kd-purple:#8951d5;
  --kd-shadow:0 6px 18px rgba(28,59,83,.075);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--kd-ink);font-size:13px;line-height:1.42;
  width:100%;max-width:none;min-width:0;gap:12px;
  font-variant-numeric:tabular-nums;
}
.app-shell.dashboard-active .admin-dashboard *,
.app-shell.dashboard-active .admin-dashboard *::before,
.app-shell.dashboard-active .admin-dashboard *::after { box-sizing:border-box }
.app-shell.dashboard-active .admin-dashboard button {font-family:inherit}
/* Hero like approved mockup, with existing greeting/date and working header controls untouched. */
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero {min-height:57px;padding:4px 7px 7px;gap:16px;align-items:center}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero h1 {font-size:23px;font-weight:800;letter-spacing:-.45px;color:#123c37}
.app-shell.dashboard-active .admin-dashboard .admin-dash-hero p {font-size:12px;line-height:1.45;gap:10px;flex-wrap:wrap}
.app-shell.dashboard-active .admin-dashboard .admin-dash-sun{font-size:32px;color:#ff9b00}
.app-shell.dashboard-active .admin-dashboard .admin-dash-tagline{padding:10px 16px;background:#e8f7ef;border-radius:9px;color:#0a694d;font-size:12px;font-weight:700}
/* Exact same six content blocks, but readable at desktop width. */
.app-shell.dashboard-active .admin-dashboard .admin-summary-tiles {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:0}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile {min-height:76px;gap:11px;padding:11px 12px;border:1px solid var(--kd-line);border-radius:11px;background:#fff;box-shadow:var(--kd-shadow);align-items:center;transition:box-shadow .14s ease,transform .14s ease}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile:hover{transform:translateY(-1px);box-shadow:0 9px 24px rgba(28,59,83,.13)}
.app-shell.dashboard-active .admin-dashboard .admin-summary-icon{width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:#dff5ec;color:#00845b}
.app-shell.dashboard-active .admin-dashboard .admin-summary-icon svg{width:23px;height:23px;stroke-width:2.1}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile.tone-blue .admin-summary-icon{background:#dcedff;color:#227bef}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile.tone-orange .admin-summary-icon{background:#fff0df;color:#f08722}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile.tone-purple .admin-summary-icon{background:#f1e6ff;color:#8e4cda}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile.tone-mint .admin-summary-icon{background:#e0f4ed;color:#118b65}
.app-shell.dashboard-active .admin-dashboard .admin-summary-tile.tone-violet .admin-summary-icon{background:#eee9ff;color:#7455cd}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy{gap:3px}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy small{font-size:11px;color:var(--kd-muted);line-height:1.18}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy strong{font-size:clamp(16px,1.19vw,22px);line-height:1.15;font-weight:800;color:#152f4c;letter-spacing:-.3px;white-space:normal;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-summary-copy em{font-size:10.5px;color:#10835e;line-height:1.2;white-space:normal;overflow-wrap:normal;word-break:normal}
/* Reference's six coloured-header KPI cards. Keep all original dip, density,
   account, collection and supplier data — no fake dashboard values. */
.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"]{display:flex;align-items:flex-start;min-height:248px;height:auto;padding:13px 10px 12px;gap:0;border:1px solid var(--kd-line);border-top:3px solid var(--kd-green);border-radius:12px;background:#fff;box-shadow:var(--kd-shadow)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(2){border-top-color:var(--kd-blue)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(3){border-top-color:var(--kd-orange)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(4){border-top-color:var(--kd-blue)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(5){border-top-color:var(--kd-green)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(6){border-top-color:var(--kd-purple)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi>div:last-child{min-width:0;width:100%}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-icon,
.app-shell.dashboard-active .admin-dashboard .admin-kpi.has-badge .admin-kpi-icon,
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="dip"] .admin-kpi-icon,
.app-shell.dashboard-active .admin-dashboard .admin-kpi[data-kind="density"] .admin-kpi-icon{
  position:absolute;left:10px;top:11px;right:auto;display:grid;place-items:center;
  width:39px;height:39px;border-radius:11px;background:#008b62;color:white;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(2) .admin-kpi-icon{background:var(--kd-blue)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(3) .admin-kpi-icon{background:#f6a23c;color:#fff}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(4) .admin-kpi-icon{background:#e4f1ff;color:var(--kd-blue)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(5) .admin-kpi-icon{background:#dff5ec;color:var(--kd-green)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi:nth-child(6) .admin-kpi-icon{background:#f0e6fd;color:var(--kd-purple)}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-icon .nav-svg,
.app-shell.dashboard-active .admin-dashboard .admin-kpi-icon svg{width:22px;height:22px;stroke-width:2}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-icon .custom-brand-icon{width:25px;height:25px;object-fit:contain}
.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;justify-content:center;align-items:flex-start;
  padding:0 2px 0 48px;min-height:39px;margin:0 0 11px;
  font-size:14px;line-height:1.13;letter-spacing:0;text-transform:none;font-weight:800;color:#153451;
  overflow-wrap:normal;word-break:normal;
}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-subtitle{font-size:10px;line-height:1.3;margin-top:3px;color:#74849a;letter-spacing:0}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-badge{top:13px;right:8px;max-width:calc(100% - 63px);padding:3px 5px;font-size:9.5px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-breakdown{margin-top:8px;gap: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 #e4eaf0;border-radius:9px;overflow:hidden;margin:0;background:#edf8f1}
.app-shell.dashboard-active .admin-dashboard .admin-dip-product[data-product="HSD"],
.app-shell.dashboard-active .admin-dashboard .admin-density-product[data-product="HSD"]{background:#e9f3ff}
.app-shell.dashboard-active .admin-dashboard .admin-dip-product h3,
.app-shell.dashboard-active .admin-dashboard .admin-density-product h3{margin:0;padding:6px 8px;font-size:12px;line-height:1.25}
.app-shell.dashboard-active .admin-dashboard .admin-dip-product h3 small,
.app-shell.dashboard-active .admin-dashboard .admin-density-product h3 small{font-size:10px}
.app-shell.dashboard-active .admin-dashboard .admin-dip-readings{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px 8px;gap:5px 8px}
.app-shell.dashboard-active .admin-dashboard .admin-dip-readings span{font-size:10.5px;line-height:1.23;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-dip-readings strong{font-size:12px;line-height:1.3;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-density-current,
.app-shell.dashboard-active .admin-dashboard .admin-density-reading{font-size:11px;line-height:1.33;padding:5px 8px;gap:4px}
.app-shell.dashboard-active .admin-dashboard .admin-density-current strong,
.app-shell.dashboard-active .admin-dashboard .admin-density-reading strong{font-size:12px;white-space:normal}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-last-test{margin-top:5px;padding:5px 7px;font-size:10.5px;gap:5px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-last-test time{font-size:11px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-row{padding:8px 0;min-height:34px;gap:5px;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-row span{font-size:11px;overflow-wrap:normal;word-break:normal;min-width:0}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-row strong{font-size:11px;font-weight:800;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-kpi .dashboard-trend{font-size:9px;padding:3px 4px}
.app-shell.dashboard-active .admin-dashboard .dashboard-kpi-value{min-width:0;justify-content:flex-end;gap:3px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-total{margin-top:9px;padding:9px 0;font-size:12px}
.app-shell.dashboard-active .admin-dashboard .admin-kpi-total strong{font-size:13px}
/* Narrow financial stripe, one independent card per item. */
.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;padding:0;border:0;background:none;box-shadow:none}
.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip .admin-kpi-row{min-height:49px;padding:9px 13px;border:1px solid var(--kd-line);border-radius:10px;background:#fff;box-shadow:var(--kd-shadow)}
.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip .admin-kpi-row span{font-size:12px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip .admin-kpi-row strong{font-size:13px}
/* Middle: three full information panels. */
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1.03fr) minmax(0,1.12fr);align-items:stretch;gap:11px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel{min-width:0;border:1px solid var(--kd-line);border-radius:11px;background:#fff;box-shadow:var(--kd-shadow);overflow:hidden}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid>.admin-dash-panel{min-height:290px;height:auto}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-head{min-height:51px;padding:10px 13px;border-bottom:1px solid #e9eff3}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-head h2{margin:0;font-size:15px;font-weight:800;line-height:1.28;color:var(--kd-ink)}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-head p{margin:3px 0 0;font-size:11px;line-height:1.32;color:var(--kd-muted)}
.app-shell.dashboard-active .admin-dashboard .admin-dash-panel-body{padding:11px 13px;min-width:0}
.app-shell.dashboard-active .admin-dashboard .admin-product-row{padding:7px 0}
.app-shell.dashboard-active .admin-dashboard .admin-tank{padding:8px 10px;border-radius:8px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-grid .admin-dash-panel:last-child>.admin-dash-panel-body{max-height:none;overflow:visible}
.app-shell.dashboard-active .admin-dashboard .purchase-receipt-history-panel>.admin-dash-panel-body{height:auto;overflow:visible}
.app-shell.dashboard-active .admin-dashboard .purchase-receipt-history-panel .admin-receipt-history{max-height:none;overflow:visible;height:auto}
.app-shell.dashboard-active .admin-dashboard .purchase-receipt-history-panel .admin-receipt-history-row{min-height:44px;padding:7px 4px;font-size:11px}
/* Bottom layout: same reference 3 visual columns, but tables MUST be scrollable
   horizontally rather than destroying words with 'overflow-wrap:anywhere'. */
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom{display:grid;grid-template-columns:minmax(290px,.95fr) minmax(380px,1.35fr) minmax(290px,1.05fr);align-items:start;gap:11px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom>.admin-dash-panel,
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom>.admin-dash-side-stack>.admin-dash-panel{min-width:0;margin:0}
.app-shell.dashboard-active .admin-dashboard .admin-dash-side-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:11px}
.app-shell.dashboard-active .admin-dashboard .admin-operations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.app-shell.dashboard-active .admin-dashboard .admin-operation{display:flex;align-items:flex-start;gap:7px;min-height:83px;padding:10px 8px;border:1px solid var(--kd-line);border-radius:9px;background:#fff}
.app-shell.dashboard-active .admin-dashboard .admin-operation>.admin-kpi-icon{display:grid;place-items:center;flex:0 0 29px;position:static;left:auto;top:auto;width:29px;height:29px;border-radius:8px;background:#e2f5ed;color:var(--kd-green);font-size:15px}
.app-shell.dashboard-active .admin-dashboard .admin-operation>span:nth-child(2){min-width:0;flex:1}
.app-shell.dashboard-active .admin-dashboard .admin-operation small{white-space:normal;overflow-wrap:normal;word-break:normal;font-size:11px;line-height:1.22}
.app-shell.dashboard-active .admin-dashboard .admin-operation b{font-size:12px;line-height:1.28;white-space:normal;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-operation>i:last-child{display:none}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals>div{padding:9px 8px}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals small{font-size:11px;line-height:1.2;white-space:normal}
.app-shell.dashboard-active .admin-dashboard .admin-recon-totals b{font-size:16px;white-space:normal;overflow-wrap:normal;word-break:normal}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-panel-body{max-height:none;overflow:visible}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom div.admin-dash-table,
.app-shell.dashboard-active .admin-dashboard .admin-reconciliation .table-wrap,
.app-shell.dashboard-active .admin-dashboard .admin-recent .table-wrap {display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:visible;scrollbar-width:thin}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom table.admin-dash-table,
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-panel table,
.app-shell.dashboard-active .admin-dashboard .admin-recent table{
  display:table;width:max-content;min-width:850px;table-layout:auto;border-collapse:collapse;
  font-size:12px;
}
.app-shell.dashboard-active .admin-dashboard .admin-recent table{min-width:950px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-panel th,
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-dash-panel td,
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-reconciliation th,
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom .admin-reconciliation td{
  min-width:72px;max-width:230px;padding:9px 10px;
  font-size:12px;line-height:1.35;white-space:nowrap!important;
  word-break:keep-all!important;overflow-wrap:normal!important;
}
.app-shell.dashboard-active .admin-dashboard .admin-dash-bottom th{color:#50657a;background:#f1f6f8;font-weight:750}
.app-shell.dashboard-active .admin-dashboard .admin-dash-note{font-size:11.5px;line-height:1.4}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alerts{margin:0;border:1px solid #f2d69b;border-radius:11px;background:#fffaf0;padding:13px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alerts h2{font-size:15px;font-weight:800;margin-bottom:8px;color:#9a5b0c}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alert{font-size:12px;line-height:1.4;gap:8px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alert b{font-size:10px}
.app-shell.dashboard-active .admin-dashboard .admin-dash-alert button{font-size:11px;padding:6px 9px}
.app-shell.dashboard-active .admin-dashboard .admin-recent-tabs{display:flex;flex-wrap:wrap;gap:6px}
.app-shell.dashboard-active .admin-dashboard .admin-recent-tabs button{font-size:11px;border-radius:18px;padding:7px 10px}
.app-shell.dashboard-active .admin-dashboard .admin-recent .admin-dash-panel-body{min-width:0}
/* All dashboard actions retain their existing click handlers. */
.app-shell.dashboard-active .admin-dashboard button:focus-visible,
.app-shell.dashboard-active .admin-dashboard [role="button"]:focus-visible{outline:3px solid #2b8df2;outline-offset:2px}
@container (max-width:1120px){
 .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-kpi{min-height:210px}
 .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-dash-grid{grid-template-columns:1fr}
 .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 .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-tagline{display:none}
}
@container (max-width:540px){
 .app-shell.dashboard-active .admin-dashboard .admin-summary-tiles,.app-shell.dashboard-active .admin-dashboard .admin-kpis{grid-template-columns:1fr}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-financial-strip{grid-template-columns:1fr}
 .app-shell.dashboard-active .admin-dashboard .admin-operations{grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-shell.dashboard-active .admin-dashboard .admin-dash-hero{align-items:flex-start;flex-direction:column}
}
/* Print: keep content legible; print styles do not alter transaction logic. */
@media print{
 .app-shell.dashboard-active .admin-dashboard{font-size:11px}
 .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 .admin-dash-side-stack{grid-template-columns:1fr}
}
