/* Generated from the akaysha-whse-react reference, scoped under .whse so it cannot affect the rest of the app. */
@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600&display=swap");

/* ===== Reference dashboard (akaysha-whse-react src/styles/app.css) ===== */
/* Layout: SureWorx app shell (white sidebar card with nav pills, greeting header, filter card, 12px cards on a cool grey page).
   Tokens mirror dev-app.sureworx.io: General Sans, #16823e primary, #f7f8f9 page, #e3e7ea borders, slate ink, tinted status chips. */
.whse{
  color-scheme:light;
  --font:"General Sans","DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --primary:#16823e; --primary-hover:#136f35; --primary-tint:#e8f3eb; --primary-glow:rgba(22,130,62,.3); --on-primary:#ffffff;
  --page:#f7f8f9; --panel:#ffffff; --panel2:#f3f5f6; --line:#e3e7ea; --hair:#eef1f3;
  --ink:#0f2333; --ink2:#1e293b; --ink3:#5f6b75; --muted:#8a949c; --title:#1e293b; --navy:#16823e; --navy-ink:#ffffff;
  --success:#16a34a; --success-bg:#f0fdf4; --warning:#d97706; --warning-bg:#fffbeb; --danger:#dc2626; --danger-bg:#fef2f2; --info:#2563eb; --info-bg:#eff6ff;
  --worse:#d9442f; --worse-soft:#fde3df; --better:#16823e; --better-soft:#dcefe3; --ref:#d3d9de; --ref-ink:#8a949c; --accent:#16823e;
  --sev1:#991b1b; --sev2:#dc2626; --sev3:#f87171;
  --heat0:#fdf6ea; --heat1:#fde8b8; --heat2:#fbcf7a; --heat3:#f5a93c; --heat4:#e07b12; --heat5:#b45309;
  --zh-blue:#e8f3eb; --zh-blue-ink:#16823e;
  --good:#16a34a; --warn:#d97706; --bad:#dc2626; --na:#9aa3ab;
  --good-bg:#f0fdf4; --warn-bg:#fffbeb; --bad-bg:#fef2f2; --na-bg:#f1f3f5;
  --shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px -1px rgba(0,0,0,.06); --shadow-lg:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
  --radius:12px; --radius-sm:8px; --radius-lg:16px;
}
.whse[data-theme="dark"]{
  color-scheme:dark;
  --primary:#22a06b; --primary-hover:#2bb57a; --primary-tint:#173426; --primary-glow:rgba(34,160,107,.35); --on-primary:#ffffff;
  --page:#111417; --panel:#1a1f23; --panel2:#22282d; --line:#2d343a; --hair:#272d33;
  --ink:#e6eaee; --ink2:#dde3e8; --ink3:#aab3bb; --muted:#8a949c; --title:#e6eaee; --navy:#22a06b; --navy-ink:#ffffff;
  --success:#3fbf74; --success-bg:#16311f; --warning:#e9b23c; --warning-bg:#3d2f10; --danger:#f06a6a; --danger-bg:#3f1d1d; --info:#6ea2d9; --info-bg:#1e3350;
  --worse:#e05a3c; --worse-soft:#4a2419; --better:#22a06b; --better-soft:#173426; --ref:#454d55; --ref-ink:#a9b0b8; --accent:#22a06b;
  --sev1:#fca5a5; --sev2:#ef6a6a; --sev3:#9f2f2f;
  --heat0:#262b2f; --heat1:#4a3418; --heat2:#7a4f1c; --heat3:#a86a22; --heat4:#cf8a35; --heat5:#f0b060;
  --zh-blue:#173426; --zh-blue-ink:#8fd3ae;
  --good:#3fbf74; --warn:#e9b23c; --bad:#f06a6a; --na:#5c6670;
  --good-bg:#16311f; --warn-bg:#3d2f10; --bad-bg:#3f1d1d; --na-bg:#2a2f34;
  --shadow:none; --shadow-lg:0 10px 24px rgba(0,0,0,.4);
}
.whse,.whse *{box-sizing:border-box;margin:0;padding:0}
.whse,.whse{background:transparent;color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
.whse button,.whse select,.whse input{font:inherit;color:inherit}
.whse a{color:var(--primary)}
.whse svg.ic{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* ---------- app shell ---------- */
.whse .shell{display:grid;grid-template-columns:232px minmax(0,1fr);gap:20px;max-width:none;margin:0;padding:0 0 40px}
.whse .shell.full{grid-template-columns:minmax(0,1fr);gap:0}
@media (max-width:980px){.whse .shell{grid-template-columns:minmax(0,1fr)}}
.whse .side{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 12px;align-self:start;position:sticky;top:calc(var(--page-header-height, 168px) + 8px);max-height:calc(100dvh - var(--page-header-height, 168px) - 7rem);overflow:auto;display:flex;flex-direction:column;gap:4px;z-index:20}
@media (max-width:980px){.whse .side{position:static;max-height:none}.whse .side nav{display:flex;flex-wrap:wrap;gap:4px}.whse .side nav .sec{width:100%}}
.whse .brand{display:flex;align-items:center;gap:10px;padding:6px 8px 14px;border-bottom:1px solid var(--hair);margin-bottom:8px}
.whse .brand .mark{width:34px;height:34px;border-radius:9px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;font-weight:700;letter-spacing:.5px;font-size:13px}
.whse .brand .wm{font-weight:600;letter-spacing:2.5px;font-size:14px;text-transform:lowercase;color:var(--ink)}
.whse .brand .wm small{display:block;letter-spacing:.2px;font-weight:400;font-size:11px;color:var(--muted);text-transform:none;margin-top:1px}
.whse .side .sec{font-size:10.5px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);padding:12px 10px 6px;font-weight:600}
.whse .side nav a,.whse .side nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:1px solid transparent;border-radius:var(--radius-sm);padding:8px 10px;color:var(--ink);cursor:pointer;font-size:13.5px;text-decoration:none;transition:background .12s}
.whse .side nav button:hover{background:var(--panel2)}
.whse .side nav button.on{background:var(--primary);color:var(--on-primary);box-shadow:0 4px 12px var(--primary-glow);font-weight:500}
.whse .side .foot{margin-top:auto;padding:14px 10px 4px;font-size:11px;color:var(--muted);line-height:1.55;border-top:1px solid var(--hair)}
.whse .side .foot b{color:var(--ink3);font-weight:500}
.whse .main{min-width:0;display:flex;flex-direction:column;gap:16px}

/* ---------- greeting header ---------- */
.whse .top{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.whse .greet{display:flex;align-items:center;gap:12px;min-width:0}
.whse .greet .mark{width:38px;height:38px;border-radius:10px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;flex:0 0 auto}
.whse h1{font-size:18px;font-weight:500;letter-spacing:-.2px;color:var(--ink);line-height:1.2}
.whse .greet .sub{color:var(--ink3);font-size:13px;margin-top:2px}
.whse .topright{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.whse .badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font-size:11.5px;font-weight:500;border:1px solid var(--line);background:var(--panel);color:var(--ink3)}
.whse .badge.live{background:var(--success-bg);color:var(--success);border-color:transparent}
.whse .badge.snap{background:var(--primary-tint);color:var(--primary);border-color:transparent}
.whse .btn{display:inline-flex;align-items:center;gap:8px;background:var(--primary);color:var(--on-primary);border:none;border-radius:var(--radius-sm);padding:8px 14px;font-weight:500;font-size:13px;cursor:pointer;transition:background .12s}
.whse .btn:hover{background:var(--primary-hover)}
.whse .btn:disabled{opacity:.55;cursor:progress}
.whse .btn.ghost{background:var(--panel);color:var(--ink3);border:1px solid var(--line);font-weight:500}
.whse .btn.ghost:hover{background:var(--panel2)}
.whse .btn.icon{padding:9px;border-radius:var(--radius-sm)}
.whse .btn.tint{background:var(--primary-tint);color:var(--primary)}
.whse .btn.tint:hover{background:var(--better-soft)}
.whse .note{font-size:11.5px;color:var(--muted);margin-top:8px;line-height:1.5}
.whse .note i{font-style:italic}
.whse .progress{height:4px;background:var(--panel2);border-radius:2px;overflow:hidden;margin-top:6px;display:none;width:100%}
.whse .progress i{display:block;height:100%;width:0;background:var(--primary);transition:width .3s}

/* ---------- header card (title + filter row) ---------- */
.whse .hcard{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 20px 16px;display:flex;flex-direction:column;gap:14px}
.whse .hcard .row{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.whse .hcard .ttl{display:flex;align-items:center;gap:12px;min-width:0}
.whse .hcard .ttl .mark{width:44px;height:44px;border-radius:9px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;flex:0 0 auto}
.whse .hcard h2{font-size:16px;font-weight:500;color:var(--ink);line-height:1.2}
.whse .hcard .ttl .sub{color:var(--muted);font-size:13px;margin-top:2px}
.whse .filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;border-top:1px solid var(--hair);padding-top:14px}
.whse .filters .whse-select{min-width:220px;flex:1 1 220px;max-width:280px}
.whse .filters .whse-select label{color:var(--muted)!important;font-size:11.5px!important;font-weight:500}
.whse .filters .whse-select .MuiOutlinedInput-root{background:var(--panel);font-size:13px;min-height:38px}
.whse .filters .whse-select .MuiOutlinedInput-notchedOutline{border-color:var(--line)!important}
.whse .filters .whse-select .MuiAutocomplete-popupIndicator,.whse .filters .whse-select .MuiAutocomplete-clearIndicator{color:var(--muted)!important}
.whse .whse-select .MuiAutocomplete-input{caret-color:transparent;cursor:pointer;user-select:none}
.whse .whse-select input,.whse .whse-select input:focus,.whse .whse-select input:focus-visible{outline:none!important;box-shadow:none!important}
.whse .whse-select .MuiAutocomplete-input::selection{background:transparent;color:inherit}
.whse .whse-select .MuiOutlinedInput-root.Mui-focused fieldset{border-color:var(--line)!important;box-shadow:none!important}
.whse .whse-select.summary .MuiOutlinedInput-root{flex-wrap:nowrap}
.whse .whse-select.summary .MuiAutocomplete-input{width:0!important;min-width:0!important;padding:0!important}
.whse .param{display:flex;flex-direction:column;gap:5px;min-width:0}
.whse .param label{font-size:11.5px;color:var(--muted);font-weight:500}
.whse .param select,.whse .param button.sel,.whse .param .val{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-sm);padding:8px 12px;min-width:170px;text-align:left;cursor:pointer;font-size:13px;color:var(--ink);display:flex;align-items:center;gap:8px;height:38px}
.whse .param .val{cursor:default;color:var(--ink3)}
.whse .param button.sel:after{content:"";margin-left:auto;width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg) translateY(-2px)}
.whse .param select:focus-visible,.whse .param button.sel:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
.whse .popover{position:absolute;z-index:40;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);padding:10px 12px;min-width:280px;display:none;margin-top:4px}
.whse .popover.open{display:block}
.whse .popover label{display:flex;align-items:center;gap:8px;padding:5px 4px;font-size:13px;cursor:pointer;border-radius:6px}
.whse .popover label:hover{background:var(--panel2)}
.whse .popover .row{display:flex;gap:8px;margin-top:8px;border-top:1px solid var(--hair);padding-top:8px}
.whse .popover .row button{flex:1;justify-content:center}
.whse .popover .pill{font-size:10.5px;color:var(--muted);margin-left:auto}
.whse .periodline{font-size:13px;color:var(--ink3);display:flex;flex-wrap:wrap;gap:6px 0;align-items:center}
.whse .periodline b{color:var(--ink);font-weight:500}
.whse .periodline .sep{color:var(--line);margin:0 8px}

/* ---------- layout ---------- */
.whse .grid{display:grid;gap:16px}
.whse .g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.whse .g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.whse .g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.whse .g32{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}
.whse .g23{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
.whse .g12{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.whse .g21{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.whse .g2a{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.whse .g-home{grid-template-columns:minmax(0,1.05fr) minmax(520px,0.95fr)}
.whse .col{display:flex;flex-direction:column;gap:16px;min-width:0}
@media (max-width:1180px){.whse .g3,.whse .g4,.whse .g32,.whse .g23,.whse .g12,.whse .g21,.whse .g-home{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.whse .g2,.whse .g3,.whse .g4,.whse .g32,.whse .g23,.whse .g12,.whse .g21,.whse .g-home{grid-template-columns:minmax(0,1fr)}}
.whse .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 20px 16px;min-width:0;position:relative}
.whse .panel h3{font-size:16px;font-weight:500;color:var(--ink2);margin-bottom:12px;padding-right:72px;line-height:1.3;text-wrap:balance}
.whse .panel h3 small{display:block;font-size:12.5px;font-weight:400;color:var(--muted);margin-top:2px}
.whse .panel .pacts{position:absolute;top:14px;right:14px;display:flex;gap:6px;align-items:center}
.whse .panel .pacts .tbl-btn{position:static}
.whse .panel.has-acts h3{padding-right:168px}
.whse .panel .tbl-btn,.whse .panel .pacts .ibtn{background:var(--panel2);border:1px solid transparent;border-radius:6px;color:var(--ink3);cursor:pointer;font-size:12px;line-height:1;padding:5px 6px;display:inline-flex;align-items:center;gap:4px}
.whse .panel .tbl-btn:hover,.whse .panel .pacts .ibtn:hover{border-color:var(--line);color:var(--ink);background:var(--panel)}
.whse .sectionh{font-size:16px;font-weight:500;color:var(--ink2);margin:4px 0 -4px}
.whse .band{background:var(--panel2);color:var(--ink3);text-align:center;font-size:11px;letter-spacing:.6px;text-transform:uppercase;padding:6px 8px;border-radius:6px;margin-bottom:10px;font-weight:500}
.whse .empty{color:var(--muted);font-size:13px;padding:22px 0;text-align:center}
.whse .tscroll{overflow-x:auto;max-width:100%}
.whse details.acc{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.whse details.acc summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:16px 20px;font-size:16px;font-weight:500;color:var(--ink2)}
.whse details.acc summary::-webkit-details-marker{display:none}
.whse details.acc summary .mark{width:30px;height:30px;border-radius:8px;background:var(--primary-tint);color:var(--primary);display:grid;place-items:center}
.whse details.acc summary .chev{margin-left:auto;width:8px;height:8px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.whse details.acc[open] summary .chev{transform:rotate(-135deg)}
.whse details.acc .body{padding:0 20px 18px}

/* ---------- stat cards & tiles ---------- */
.whse .tiles{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.whse .tile{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px 16px 14px;min-height:118px;overflow:hidden;display:flex;flex-direction:column;gap:6px}
.whse .panel .tile{border-color:var(--hair);background:var(--panel)}
.whse .tile .ico{position:absolute;top:13px;right:13px;width:36px;height:36px;border-radius:9px;display:grid;place-items:center;color:#fff;background:var(--primary)}
.whse .tile .ico.good{background:var(--primary)}.whse .tile .ico.bad{background:var(--danger)}.whse .tile .ico.warn{background:#f59e0b}.whse .tile .ico.info{background:var(--info)}.whse .tile .ico.neutral{background:var(--ink3)}
.whse .tile .ico.soft{background:var(--primary-tint);color:var(--primary)}
.whse .tile .l{font-size:12.5px;font-weight:500;color:var(--ink3);padding-right:46px;line-height:1.3}
.whse .tile .v{font-size:28px;font-weight:500;color:var(--ink2);line-height:1.1;letter-spacing:-.3px;margin-top:2px}
.whse .tile .v .tri{font-size:14px;margin-right:6px;vertical-align:3px}
.whse .tile .v .tri.worse{color:var(--worse)}.whse .tile .v .tri.better{color:var(--better)}.whse .tile .v .tri.flat{color:var(--ref-ink)}
.whse .tile .v.good{color:var(--success)}.whse .tile .v.bad{color:var(--danger)}.whse .tile .v.warn{color:var(--warning)}
.whse .tile .d{margin-top:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11.5px;color:var(--muted)}
.whse .tile .d b{font-weight:500}
.whse .chipd{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:500;background:var(--panel2);color:var(--ink3);white-space:nowrap}
.whse .chipd.worse{background:var(--danger-bg);color:var(--danger)}.whse .chipd.better{background:var(--success-bg);color:var(--success)}.whse .chipd.flat{background:var(--panel2);color:var(--ink3)}
.whse .tile svg.spark{position:absolute;left:0;right:0;bottom:0;width:100%;height:44px;opacity:.9;pointer-events:none}
.whse .tile.sm{min-height:96px;padding:12px 14px}.whse .tile.sm .v{font-size:22px}.whse .tile.sm .ico{width:34px;height:34px;top:12px;right:12px}
.whse .tile.hero .v{font-size:36px}
.whse .mini-kpis{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(215px,1fr))}
.whse .mk{display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px}
.whse .mk .ic-chip{width:34px;height:34px;border-radius:8px;background:var(--primary-tint);color:var(--primary);display:grid;place-items:center;flex:0 0 auto}
.whse .mk .ic-chip.bad{background:var(--danger-bg);color:var(--danger)}.whse .mk .ic-chip.warn{background:var(--warning-bg);color:var(--warning)}
.whse .mk .t{font-size:12.5px;font-weight:500;color:var(--ink);line-height:1.25;min-width:0;flex:1 1 auto}
.whse .mk .t small{display:block;font-weight:400;color:var(--muted);font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.whse .mk .n{margin-left:auto;font-size:20px;font-weight:500;color:var(--ink2)}
.whse .mk .n.bad{color:var(--danger)}.whse .mk .n.good{color:var(--success)}.whse .mk .n.warn{color:var(--warning)}

/* ---------- row bar tables ---------- */
.whse table.rows{width:100%;border-collapse:collapse;font-size:12.5px}
.whse table.rows th{font-weight:500;color:var(--ink3);font-size:11px;letter-spacing:.5px;text-transform:uppercase;background:var(--panel2);padding:6px 8px;text-align:center;border-radius:6px}
.whse table.rows th.lbl{text-align:left;background:none;color:var(--muted);font-weight:400;text-transform:none;letter-spacing:0;font-size:11px}
.whse table.rows td{padding:5px 8px;border-bottom:1px solid var(--hair);vertical-align:middle;white-space:nowrap}
.whse table.rows tr:last-child td{border-bottom:none}
.whse table.rows td.lbl{color:var(--ink);max-width:var(--lblw,170px);overflow:hidden;text-overflow:ellipsis}
.whse table.rows td.lbl small{color:var(--muted);margin-left:4px}
.whse table.rows td.bar{width:100%;min-width:48px}
.whse table.rows td.num{text-align:right;color:var(--ink2);font-variant-numeric:tabular-nums;font-weight:500}
.whse table.rows td.delta{text-align:left;font-variant-numeric:tabular-nums;color:var(--ink2);font-size:12px}
.whse table.rows tr.dim td{color:var(--muted)}
.whse table.rows tr.dim .hb-ref{background:var(--ref-ink);opacity:.6}
.whse .bar-wrap{display:flex;align-items:center;gap:8px}
.whse .bar-wrap .val{font-size:12px;color:var(--ink2);font-variant-numeric:tabular-nums;min-width:28px;text-align:right;font-weight:500}
.whse .map{height:330px;border-radius:8px;background:var(--panel2);overflow:hidden;z-index:0}
.whse .map .leaflet-control-zoom a{width:30px;height:30px;line-height:30px}
.whse .hb{position:relative;height:12px;background:var(--panel2);border-radius:4px;min-width:40px;width:100%}
.whse .hb-fill{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--ref)}
.whse .hb-fill.worse{background:#e7a8a4}.whse .hb-fill.better{background:#8ec9a8}.whse .hb-fill.flat{background:var(--ref)}.whse .hb-fill.accent{background:#62b888}
.whse .hb-ref{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:var(--ink2);border-radius:1px}
.whse .stack{display:flex;gap:2px;width:100%;height:20px;align-items:stretch}
.whse .stack .seg{position:relative;min-width:3px;border-radius:4px;background:var(--ref);overflow:hidden;box-sizing:border-box}
.whse .stack .seg.worse{background:var(--worse)}.whse .stack .seg.better{background:var(--better)}.whse .stack .seg.flat{background:var(--ref)}
.whse .stack .seg span{position:absolute;left:6px;top:50%;transform:translateY(-50%);font-size:11px;white-space:nowrap;color:#fff;visibility:hidden;pointer-events:none}
.whse .stack .seg.flat span{color:var(--ink)}
.whse .axis-note{display:flex;justify-content:space-around;color:var(--muted);font-size:10.5px;margin-top:6px}
.whse .foot{color:var(--muted);font-size:11px;text-align:center;margin-top:10px}
.whse .foot i{font-style:italic}

/* ---------- legends ---------- */
.whse .legend{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--muted);font-size:11px;margin-top:10px;align-items:center}
.whse .legend span{display:inline-flex;align-items:center;gap:5px}
.whse .sw{display:inline-block;width:10px;height:10px;border-radius:3px}
.whse .sw.worse{background:var(--worse)}.whse .sw.better{background:var(--better)}.whse .sw.ref{background:var(--ref)}.whse .sw.flat{background:var(--ref)}
.whse .sw.line{width:14px;height:0;border-top:2px dashed var(--ink2);border-radius:0}
.whse .dot{display:inline-block;width:10px;height:10px;border-radius:50%}
.whse .dot.g{background:var(--good)}.whse .dot.a{background:var(--warn)}.whse .dot.r{background:var(--bad)}.whse .dot.x{background:var(--na)}

/* ---------- heat grids ---------- */
.whse table.heat{border-collapse:separate;border-spacing:3px;font-size:11px;width:100%}
.whse table.heat th{font-weight:400;color:var(--muted);font-size:10px;padding:2px 2px;white-space:nowrap}
.whse table.heat th.row{text-align:left;color:var(--ink);font-size:12px;padding-right:8px;white-space:nowrap}
.whse table.heat td{text-align:center;padding:5px 1px;border-radius:5px;min-width:26px;color:var(--ink);font-variant-numeric:tabular-nums;background:var(--heat0)}
.whse table.heat td.h4,.whse table.heat td.h5{color:#fff}
.whse table.heat td.zh{background:var(--zh-blue);color:var(--zh-blue-ink)}
.whse table.heat td.none{background:var(--panel2);color:var(--muted)}
.whse .heat-scroll{overflow-x:auto}

/* ---------- compliance matrix ---------- */
.whse table.matrix{width:100%;border-collapse:collapse;font-size:12.5px}
.whse table.matrix th{font-size:10.5px;color:var(--muted);font-weight:500;text-transform:uppercase;letter-spacing:.4px;padding:8px 6px;text-align:center;border-bottom:1px solid var(--line)}
.whse table.matrix th:first-child{text-align:left}
.whse table.matrix td{padding:7px 6px;text-align:center;border-bottom:1px solid var(--hair)}
.whse table.matrix td:first-child{text-align:left;white-space:nowrap}
.whse table.matrix td .cv{display:inline-flex;align-items:center;gap:6px;justify-content:center;min-width:54px;padding:3px 9px;border-radius:999px;font-weight:500;font-size:12px}
.whse .cv.g{background:var(--good-bg);color:var(--good)}.whse .cv.a{background:var(--warn-bg);color:var(--warn)}.whse .cv.r{background:var(--bad-bg);color:var(--bad)}.whse .cv.x{background:var(--na-bg);color:var(--muted)}
.whse .chip{display:inline-block;font-size:10.5px;padding:2px 8px;border-radius:999px;background:var(--panel2);color:var(--muted);margin-left:6px;vertical-align:1px;font-weight:500}

/* ---------- home ---------- */
.whse .home{display:flex;flex-direction:column;gap:16px}
.whse .home-hero{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center}
@media (max-width:860px){.whse .home-hero{grid-template-columns:minmax(0,1fr)}}
.whse .home-hero h2{font-size:16px;font-weight:500;color:var(--ink);letter-spacing:-.2px}
.whse .home-hero .sub{color:var(--ink3);font-size:13.5px;margin-top:4px}
.whse .home-hero .facts{display:flex;gap:10px;flex-wrap:wrap}
.whse .fact{background:var(--panel2);border-radius:var(--radius-sm);padding:8px 12px;font-size:12px;color:var(--ink3);min-width:120px}
.whse .fact b{display:block;color:var(--ink);font-weight:500;font-size:13px;margin-top:1px}
.whse .kpi-bands{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:720px){.whse .kpi-bands{grid-template-columns:1fr}}
.whse .panel.want-panel{padding:20px 22px 22px}
.whse .panel.want-panel h3{margin-bottom:18px;padding-right:0;color:var(--ink);font-size:16px;font-weight:500}
.whse .want{display:flex;flex-direction:column;gap:14px}
.whse .want .q{color:var(--ink3);font-size:13px}
.whse .want .wrow{display:grid;grid-template-columns:148px minmax(0,1fr);column-gap:16px;row-gap:10px;align-items:center}
.whse .want .wrow .k{grid-column:1;grid-row:1;color:var(--ink);font-size:14px;font-weight:500;line-height:1.3;padding-top:0}
.whse .want .opts{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.whse .want .opts.lone{grid-row:2;display:flex;justify-content:center}
.whse .want .opts.lone button{width:calc((100% - 10px) / 2)}
.whse .want .opts button{appearance:none;background:var(--primary);color:var(--on-primary);border:none;border-radius:12px;padding:14px 12px 13px;min-height:76px;cursor:pointer;font-size:13px;font-weight:600;line-height:1.25;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;transition:background .12s;box-shadow:none}
.whse .want .opts button svg.ic{width:18px;height:18px}
.whse .want .opts button:hover{background:var(--primary-hover)}
.whse .want .opts button.alt{background:var(--primary-tint);color:var(--primary)}
.whse .want .opts button.alt:hover{background:var(--better-soft)}

/* ---------- misc ---------- */
.whse .donut-wrap{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.whse .donut-wrap .dl{font-size:12.5px;color:var(--ink3);display:flex;flex-direction:column;gap:6px}
.whse .donut-wrap .dl span{display:flex;align-items:center;gap:6px}
.whse .donut-wrap .dl b{color:var(--ink);font-weight:500}
.whse .body-wrap{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start;max-width:420px;margin:0 auto}
.whse .body-wrap svg{width:100%;height:auto}
.whse .inline-input{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink3)}
.whse .inline-input input{width:130px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:7px 10px;background:var(--panel);color:var(--ink)}
.whse .list{font-size:12.5px;display:flex;flex-direction:column;gap:6px;max-height:300px;overflow:auto}
.whse .list .it{display:grid;grid-template-columns:78px 1fr auto;gap:10px;padding:8px 10px;border:1px solid var(--hair);background:var(--panel);border-radius:var(--radius-sm);align-items:center;border-left-width:3px}
.whse .list .it.warn{border-left-color:var(--warning)}.whse .list .it.bad{border-left-color:var(--danger)}
.whse .list .it small{color:var(--muted)}
.whse .method p{margin:6px 0;color:var(--ink3);max-width:980px}
.whse .method table{border-collapse:collapse;width:100%;font-size:12.5px;margin:8px 0}
.whse .method th,.whse .method td{border-bottom:1px solid var(--hair);padding:7px 8px;text-align:left;vertical-align:top}
.whse .method th{color:var(--muted);font-weight:500;font-size:11px;text-transform:uppercase;letter-spacing:.5px}
.whse .method code{font-family:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;background:var(--panel2);padding:1px 6px;border-radius:4px}
.whse .method table,.whse .method .tscroll{display:block;overflow-x:auto}
.whse .map{height:330px;border-radius:var(--radius-sm);background:var(--panel2)}
.whse .map-fallback{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--ink2)}
.whse #tip{position:fixed;z-index:60;pointer-events:none;background:var(--ink2);color:#fff;padding:7px 10px;border-radius:8px;font-size:11.5px;line-height:1.4;max-width:300px;display:none;box-shadow:var(--shadow-lg);white-space:pre-line}
.whse #toast{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom,0px));right:calc(18px + env(safe-area-inset-right,0px));z-index:70;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow-lg);padding:12px 14px;border-radius:var(--radius);max-width:460px;font-size:12.5px;display:none;color:var(--ink)}
.whse #modal{position:fixed;inset:0;z-index:200;background:rgba(15,35,51,.45);display:none;align-items:center;justify-content:center;padding:calc(24px + env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}
.whse #modal.open{display:flex}
.whse #modal .box{background:var(--panel);border-radius:var(--radius);max-width:1100px;width:100%;max-height:85vh;display:flex;flex-direction:column;box-shadow:var(--shadow-lg)}
.whse #modal .mh{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);font-weight:500;font-size:15px}
.whse #modal .mb{overflow:auto;padding:12px 18px}
.whse #modal table{border-collapse:collapse;width:100%;font-size:12.5px;font-variant-numeric:tabular-nums}
.whse #modal th,.whse #modal td{border-bottom:1px solid var(--hair);padding:6px 8px;text-align:right;white-space:nowrap}
.whse #modal th:first-child,.whse #modal td:first-child{text-align:left}
.whse #modal th{position:sticky;top:0;background:var(--panel);color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:500}
.whse .sr{position:absolute;left:-9999px}
.whse button:focus-visible,.whse select:focus-visible,.whse input:focus-visible,.whse [tabindex]:focus-visible,.whse summary:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.whse,.whse *{transition:none!important}}
@media print{.whse .side,.whse .topright,.whse .filters,.whse .tbl-btn{display:none!important}.whse .shell{grid-template-columns:minmax(0,1fr)}.whse .panel{box-shadow:none}}


/* ===== Training matrix (akaysha-whse-react src/training/training.css) ===== */
/* Training matrix: SureWorx tokens and components come from ../styles/app.css; this file adds the matrix grid, status chips and the page frame. */
.whse .tm { display: flex; flex-direction: column; gap: 16px; padding: 0 0 24px; min-height: 100%; width: 100% }
.whse .tm .hcard .filters .param select, .whse .tm .hcard .filters .param input { min-width: 150px }
.whse .tm .param button.sel.on { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); font-weight: 500 }
.whse .tm .param input[type="search"] { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; color: var(--ink) }
.whse .tm .popover input[type="search"] { width: 100%; min-width: 0 }
.whse .tm .param .val label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); cursor: pointer }
.whse .tm .param .val label input { margin: 0 }
.whse .tm .popover label .pill { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.whse .tm .hcard .filters .param input[type="search"] { width: 220px }
.whse .tm .colset { display: flex; gap: 6px; flex-wrap: wrap }
.whse .tm .colset .btn { padding: 5px 10px; font-size: 12px }
.whse .tm .pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink3) }
.whse .tm .pager .btn { padding: 4px 9px; font-size: 12px }
.whse .tm .toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px }

/* status chips (person) and state chips (record) */
.whse .chip.compliant { background: var(--good-bg); color: var(--good) } .whse .chip.atrisk { background: var(--warn-bg); color: var(--warn) } .whse .chip.noncompliant { background: var(--bad-bg); color: var(--bad) } .whse .chip.none { background: var(--na-bg); color: var(--muted) }
.whse .chip.valid, .whse .chip.done { background: var(--good-bg); color: var(--good) } .whse .chip.exp90, .whse .chip.assigned { background: var(--warn-bg); color: var(--warn) } .whse .chip.exp30, .whse .chip.progress { background: var(--warn-bg); color: var(--warn) } .whse .chip.expired, .whse .chip.overdue { background: var(--bad-bg); color: var(--bad) } .whse .chip.pending, .whse .chip.rejected { background: var(--na-bg); color: var(--muted) }
.whse .chip.progress { background: var(--info-bg); color: var(--info) }

/* matrix grid */
.whse .mx-scroll { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel) }
.whse table.mx { border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; table-layout: fixed; width: calc(670px + var(--mx-cols, 0) * 26px) }
.whse table.mx col.c-name { width: 220px } .whse table.mx col.c-org { width: 170px } .whse table.mx col.c-role { width: 130px } .whse table.mx col.c-status { width: 150px } .whse table.mx col.c-cc { width: 26px }
.whse table.mx th, .whse table.mx td { border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); background: var(--panel) }
.whse table.mx thead th { position: sticky; top: 0; z-index: 3; background: var(--panel2); color: var(--ink3); font-weight: 500; font-size: 11px; vertical-align: bottom }
.whse table.mx thead tr.grp th { top: 0; z-index: 5; height: 26px; max-height: 26px; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; text-align: left; padding: 0; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--panel2); white-space: nowrap; overflow: hidden }
.whse table.mx thead tr.grp th.id { left: 0; z-index: 7; background-color: var(--panel2); box-shadow: 2px 0 0 var(--line) }
.whse table.mx thead tr.grp th .gl { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px 0 4px; line-height: 26px; box-sizing: border-box; vertical-align: top; will-change: transform }
.whse table.mx thead tr.grp.cat th.LICENSE { box-shadow: inset 0 -3px 0 var(--primary) } .whse table.mx thead tr.grp.cat th.CERTIFICATE { box-shadow: inset 0 -3px 0 var(--info) } .whse table.mx thead tr.grp.cat th.INDUCTION { box-shadow: inset 0 -3px 0 var(--sev2) } .whse table.mx thead tr.grp.cat th.VOC { box-shadow: inset 0 -3px 0 var(--voc, #d97706) } .whse table.mx thead tr.grp.cat th.AUTHORIZATION { box-shadow: inset 0 -3px 0 var(--auth, #7c3aed) } .whse table.mx thead tr.grp.cat th.OTHER, .whse table.mx thead tr.grp.cat th.QUALIFICATION { box-shadow: inset 0 -3px 0 var(--na) }
.whse table.mx thead tr.grp.sub th { top: 26px; z-index: 5; height: 22px; max-height: 22px; text-transform: none; letter-spacing: 0; font-size: 10.5px; color: var(--ink3); background: var(--panel) }
.whse table.mx thead tr.grp.sub th .gl { line-height: 22px; padding: 0 1px 0 3px }
.whse table.mx thead tr.grp.sub th.id { left: 0; z-index: 7; background-color: var(--panel2) }
.whse table.mx thead tr.grp.sub th.LICENSE:not(.blank) { border-left: 1px solid var(--line) }
.whse table.mx thead tr.grp.sub th.blank { border-right: 0; box-shadow: none }
.whse table.mx thead tr.cols th { top: 26px }
.whse table.mx th.cc { width: 26px; min-width: 26px; max-width: 26px; height: var(--hh, 176px); padding: 0; position: sticky }
.whse table.mx th.cc .rot { height: var(--hh, 176px); width: 26px; position: relative; overflow: hidden }
.whse table.mx th.cc .rot span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: normal; max-height: calc(var(--hh, 176px) - 14px); max-width: 25px; line-height: 12px; font-weight: 500; color: var(--ink2); letter-spacing: .1px; overflow: hidden }
.whse table.mx th.id, .whse table.mx td.id { position: sticky; z-index: 2; text-align: left; padding: 6px 10px; white-space: nowrap; background-color: #ffffff }
.whse table.mx thead th.id { z-index: 4; background-color: var(--panel2) }
.whse table.mx tbody tr:hover td.id { background-color: var(--panel2) }
.whse[data-theme="dark"] table.mx th.id, .whse[data-theme="dark"] table.mx td.id { background-color: var(--panel) }
.whse table.mx .id.name { left: 0; width: 220px; min-width: 220px; max-width: 220px; overflow: hidden; text-overflow: ellipsis }
.whse table.mx .id.org { left: 220px; width: 170px; min-width: 170px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; color: var(--ink3) }
.whse table.mx .id.role { left: 390px; width: 130px; min-width: 130px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; color: var(--ink3) }
.whse table.mx .id.status { left: 520px; width: 150px; min-width: 150px; max-width: 150px; box-shadow: 2px 0 0 var(--line) }
.whse table.mx thead th.id.name { left: 0 } .whse table.mx thead th.id:nth-child(2) { left: 220px; width: 170px; min-width: 170px } .whse table.mx thead th.id:nth-child(3) { left: 390px; width: 130px; min-width: 130px } .whse table.mx thead th.id:nth-child(4) { left: 520px; width: 150px; min-width: 150px; box-shadow: 2px 0 0 var(--line) }
.whse table.mx td.id.name b, .whse table.mx td.id.name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100% }
.whse table.mx td.id.org, .whse table.mx td.id.role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.whse table.mx td.id.name b { font-weight: 500; color: var(--ink) }
.whse table.mx td.id small { display: block; color: var(--muted); font-size: 10.5px }
.whse table.mx td.id.status .chip { margin-left: 0 }
.whse table.mx td.id .dim { color: var(--muted) }
.whse table.mx tbody tr { cursor: pointer }
.whse table.mx tbody tr:hover td { background: var(--panel2) }
.whse table.mx tbody tr:focus-visible td { outline: 2px solid var(--primary); outline-offset: -2px }
.whse table.mx td.c { width: 26px; min-width: 26px; height: 26px; text-align: center; font-size: 10.5px; font-weight: 600; padding: 0; color: #fff }
.whse table.mx td.c.none { background: var(--panel) }
.whse table.mx td.c.valid, .whse table.mx td.c.done, .whse table.mx tbody tr:hover td.c.valid, .whse table.mx tbody tr:hover td.c.done, .whse .mx-legend .c.valid, .whse .mx-legend .c.done { background: #8ec9a8; color: #1f6b42 }
.whse .mx .c.exp90, .whse .mx-legend .c.exp90 { background: #f5c45c; color: #4a2e00 }
.whse .mx .c.exp30, .whse .mx-legend .c.exp30 { background: var(--warn) }
.whse table.mx td.c.expired, .whse table.mx td.c.overdue, .whse table.mx tbody tr:hover td.c.expired, .whse table.mx tbody tr:hover td.c.overdue, .whse .mx-legend .c.expired, .whse .mx-legend .c.overdue { background: #e7a8a4; color: #8f3330 }
.whse .mx .c.pending, .whse .mx-legend .c.pending, .whse .mx .c.rejected, .whse .mx-legend .c.rejected { background: var(--na-bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--na) }
.whse .mx .c.progress, .whse .mx-legend .c.progress { background: var(--info) }
.whse .mx .c.assigned, .whse .mx-legend .c.assigned { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn) }
.whse table.mx td.c.failed, .whse table.mx tbody tr:hover td.c.failed, .whse .mx-legend .c.failed { background: #e7a8a4; color: #8f3330 }
.whse table.mx td.c.signedoff, .whse table.mx tbody tr:hover td.c.signedoff, .whse .mx-legend .c.signedoff { background: #8ec9a8; color: #1f6b42 }
.whse .mx .c.signedon, .whse .mx-legend .c.signedon { background: var(--info) }
.whse table.mx td.c.active, .whse table.mx tbody tr:hover td.c.active, .whse .mx-legend .c.active { background: #8ec9a8; color: #1f6b42 }
.whse table.mx td.c.revoked, .whse table.mx tbody tr:hover td.c.revoked, .whse .mx-legend .c.revoked { background: #e7a8a4; color: #8f3330 }
/* VOC lifecycle states (real statuses, same vocabulary as the VOC page) */
.whse table.mx td.c.passed, .whse table.mx tbody tr:hover td.c.passed, .whse .mx-legend .c.passed { background: #8ec9a8; color: #1f6b42 }
.whse .mx .c.voc_exp90, .whse .mx-legend .c.voc_exp90 { background: #f5c45c; color: #4a2e00 }
.whse .mx .c.voc_exp30, .whse .mx-legend .c.voc_exp30 { background: var(--warn) }
.whse table.mx td.c.voc_expired, .whse table.mx tbody tr:hover td.c.voc_expired, .whse .mx-legend .c.voc_expired, .whse table.mx td.c.cancelled, .whse .mx-legend .c.cancelled { background: #e7a8a4; color: #8f3330 }
.whse .mx .c.ready_for_assessment, .whse .mx-legend .c.ready_for_assessment, .whse .mx .c.assessment_in_progress, .whse .mx-legend .c.assessment_in_progress, .whse .mx .c.pending_outcome, .whse .mx-legend .c.pending_outcome, .whse .mx .c.induction_in_progress, .whse .mx-legend .c.induction_in_progress, .whse .mx .c.induction_complete, .whse .mx-legend .c.induction_complete { background: var(--info) }
.whse .mx .c.pending_induction, .whse .mx-legend .c.pending_induction, .whse .mx .c.draft, .whse .mx-legend .c.draft { background: var(--na-bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--na) }
.whse table.mx td.empty { text-align: center; padding: 24px; color: var(--muted) }
.whse .mx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ink3); margin-top: 8px }
.whse .mx-legend i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-style: normal; font-size: 9.5px; font-weight: 600; margin-right: 5px; vertical-align: middle; color: #fff }
.whse .mx-legend i.none { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line) }

/* stacked bars reused in coverage and groups */
.whse table.rows.stk .bar .stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--hair) }
.whse table.rows.stk .bar .stack .seg { height: 100% }
.whse table.rows.stk .bar .hb { height: 12px; background: transparent }

.whse .panel.cover .tscroll{max-height:380px;overflow:auto}
.whse .analysis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start }
@media (max-width: 980px) { .whse .analysis { grid-template-columns: minmax(0, 1fr) } .whse table.mx .id.org, .whse table.mx .id.role, .whse table.mx thead th.id:nth-child(2), .whse table.mx thead th.id:nth-child(3) { display: none } .whse table.mx .id.status, .whse table.mx thead th.id:nth-child(4) { left: 220px } }
@media (max-width: 600px) { .whse table.mx .id.name { width: 150px; min-width: 150px; max-width: 150px } .whse table.mx .id.status, .whse table.mx thead th.id:nth-child(4) { left: 150px; min-width: 120px } .whse .tm .hcard .filters .param input[type="search"] { width: 100% } }

/* full-screen matrix */
.whse.mxfull-root { position: relative; z-index: 400 }
.whse #mxfull { position: fixed; inset: 0; z-index: 50; background: var(--page); display: flex; flex-direction: column; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)) }
.whse #mxfull .fhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.whse #mxfull .fhead h2 { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.2 }
.whse #mxfull .fhead .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px }
.whse #mxfull .fhead .spacer { flex: 1 }
.whse #mxfull .hcard { padding: 12px 16px 10px; gap: 8px; flex: 0 0 auto }
.whse #mxfull .hcard .filters { border-top: 0; padding-top: 0 }
.whse #mxfull .fbody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px }
.whse #mxfull .fbody .toolbar { margin-bottom: 0; flex: 0 0 auto }
.whse #mxfull .fbody .mx-scroll { flex: 1; min-height: 0; max-height: none }
.whse #mxfull .fbody .mx-legend { margin-top: 0; flex: 0 0 auto }
.whse #mxfull .btn.ghost.on { background: var(--primary-tint); color: var(--primary); border-color: transparent }
body.mxfull-open { overflow: hidden }
@media (max-width: 600px) { .whse #mxfull .fhead h2 { font-size: 16px } }
@media (max-width: 900px) { .whse #mxfull { overflow: auto } .whse #mxfull .fbody { flex: 1 0 auto } .whse #mxfull .fbody .mx-scroll { min-height: 60vh; max-height: 75vh } }

/* person drawer (same look as the table modal) */
.whse #drawer{position:fixed;inset:0;z-index:80;background:rgba(15,35,51,.45);display:flex;align-items:center;justify-content:center;padding:calc(24px + env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}
.whse #drawer{display:flex}
.whse #drawer .box{background:var(--panel);border-radius:var(--radius);max-width:1100px;width:100%;max-height:85vh;display:flex;flex-direction:column;box-shadow:var(--shadow-lg)}
.whse #drawer .mh{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line);font-weight:500;font-size:15px}
.whse #drawer .mb{overflow:auto;padding:12px 18px}
.whse #drawer table{border-collapse:collapse;width:100%;font-size:12.5px;font-variant-numeric:tabular-nums}
.whse #drawer th,.whse #drawer td{border-bottom:1px solid var(--hair);padding:6px 8px;text-align:right;white-space:nowrap}
.whse #drawer th:first-child,.whse #drawer td:first-child{text-align:left}
.whse #drawer th{position:sticky;top:0;background:var(--panel);color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px;font-weight:500}
.whse #drawer .mb .legend{font-size:12px}
.whse #drawer .chip{margin-left:0}


/* ===== Embedding in the SureWorx dashboard ===== */
.whse { position: relative; }
.whse .main > .tm { padding: 0; min-height: 0; }
.whse .whse-state { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 50vh; text-align: center; color: var(--ink3); }
.whse .whse-state h3 { font-size: 16px; font-weight: 500; color: var(--ink); margin: 0; }
.whse .whse-state h3 + div { margin-top: 0; }
.whse .intel {
  color-scheme: light;
  --font: "General Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --mono: "General Sans", "DM Sans", system-ui, sans-serif; --cond: "General Sans", "DM Sans", system-ui, sans-serif;
  --bg: #f7f8f9; --bg2: #f3f5f6; --panel: #ffffff; --panel2: #f3f5f6; --panel3: #ffffff; --line: #e3e7ea; --hair: #eef1f3;
  --ink: #0f2333; --ink2: #1e293b; --ink3: #5f6b75; --muted: #8a949c;
  --accent: #16823e; --accent2: #136f35; --accent-dim: #e8f3eb; --accent-glow: rgba(22, 130, 62, .3); --on-accent: #ffffff;
  --amber: #d97706; --red: #dc2626; --green: #16a34a; --violet: #7c3aed; --orange: #ea580c; --na: #9aa3ab;
  --crit: #dc2626; --critical: #dc2626; --high: #ea580c; --med: #d97706; --medium: #d97706; --info: #2563eb; --low: #16a34a;
  --crit-bg: #fef2f2; --high-bg: #fff7ed; --med-bg: #fffbeb; --info-bg: #eff6ff; --low-bg: #f0fdf4;
  --lane-inj: #dc2626; --lane-nm: #d97706; --lane-asset: #2563eb; --lane-other: #b8c2cb; --lead-line: #7c3aed;
  --node-site: #16823e; --node-energy: #d97706; --node-class: #7c3aed; --heat-rgb: 217, 119, 6;
  --eye-bg: #ffffff; --eye-ocean1: #e9f0f4; --eye-ocean2: #d6e2ea; --eye-land: #c9d5dd; --eye-land-line: #9fb0bd; --eye-grat: rgba(22, 130, 62, .12); --eye-rim: rgba(22, 130, 62, .45); --eye-sweep: rgba(22, 130, 62, .25); --eye-label: #1e293b; --eye-label-bg: rgba(255, 255, 255, .8); --eye-pulse: 220, 38, 38;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px -1px rgba(0, 0, 0, .06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --head-bg: #ffffff; --h1-transform: none; --h1-spacing: 0; --lbl-spacing: .8px; --lbl-weight: 600;
}.whse .intel[data-theme="dark"] {
  color-scheme: dark;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  --bg: #070a0e; --bg2: #0a0e14; --panel: #0d131b; --panel2: #121a24; --panel3: #182230; --line: #1f2b39; --hair: #16202b;
  --ink: #e1e8f0; --ink2: #aab6c4; --ink3: #aab6c4; --muted: #67778b;
  --accent: #3dd1ff; --accent2: #9fe8ff; --accent-dim: rgba(61, 209, 255, .14); --accent-glow: rgba(61, 209, 255, .35); --on-accent: #061016;
  --amber: #f5b041; --red: #ff5c5c; --green: #35d39b; --violet: #a78bfa; --orange: #ff8f3d; --na: #4b5a6b;
  --crit: #ff5c5c; --critical: #ff5c5c; --high: #ff8f3d; --med: #f5b041; --medium: #f5b041; --info: #3dd1ff; --low: #35d39b;
  --crit-bg: rgba(255, 92, 92, .12); --high-bg: rgba(255, 143, 61, .12); --med-bg: rgba(245, 176, 65, .12); --info-bg: rgba(61, 209, 255, .12); --low-bg: rgba(53, 211, 155, .12);
  --lane-inj: #ff5c5c; --lane-nm: #f5b041; --lane-asset: #3dd1ff; --lane-other: #3a4a5c; --lead-line: #a78bfa;
  --node-site: #3dd1ff; --node-energy: #f5b041; --node-class: #a78bfa; --heat-rgb: 61, 209, 255;
  --eye-bg: #070a0e; --eye-ocean1: #13202d; --eye-ocean2: #070b10; --eye-land: #17242f; --eye-land-line: rgba(61, 209, 255, .38); --eye-grat: rgba(61, 209, 255, .10); --eye-rim: rgba(61, 209, 255, .55); --eye-sweep: rgba(61, 209, 255, .35); --eye-label: #c3cdd8; --eye-label-bg: rgba(7, 10, 14, .72); --eye-pulse: 255, 92, 92;
  --radius: 0px; --radius-sm: 0px; --shadow: none; --shadow-lg: 0 10px 24px rgba(0, 0, 0, .5);
  --head-bg: linear-gradient(180deg, #121a24, #0d131b); --h1-transform: uppercase; --h1-spacing: 2.4px; --lbl-spacing: 1.4px; --lbl-weight: 600;
}.whse .intel .mono { font-family: var(--mono); font-variant-numeric: tabular-nums }.whse .intel .lbl { font-family: var(--cond); font-size: 10.5px; letter-spacing: var(--lbl-spacing); text-transform: uppercase; color: var(--muted); font-weight: var(--lbl-weight) }.whse .intel .console { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100%; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); padding-block: 12px 18px; gap: 12px }.whse .intel .cmd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20 }.whse .intel[data-theme="dark"] .cmd { background: linear-gradient(90deg, var(--panel), var(--bg2)) }.whse .intel .cmd .brand { display: flex; align-items: center; gap: 10px; min-width: 0 }.whse .intel .cmd .brand .mark { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; box-shadow: 0 4px 12px var(--accent-glow) }.whse .intel[data-theme="dark"] .cmd .brand .mark { background: none; border: 1px solid var(--accent); color: var(--accent); box-shadow: inset 0 0 12px var(--accent-dim), 0 0 14px var(--accent-dim) }.whse .intel .cmd .brand h1 { font-family: var(--cond); font-size: 17px; letter-spacing: var(--h1-spacing); text-transform: var(--h1-transform); font-weight: 500; color: var(--ink); white-space: nowrap; line-height: 1.2 }.whse .intel[data-theme="dark"] .cmd .brand h1 { font-size: 15px; font-weight: 600 }.whse .intel .cmd .brand h1 span { color: var(--accent) }.whse .intel .cmd .brand small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .3px }.whse .intel[data-theme="dark"] .cmd .brand small { font-size: 10px; text-transform: uppercase; letter-spacing: .5px }.whse .intel .cmd .spacer { flex: 1 }.whse .intel .cmd .stat { display: flex; flex-direction: column; gap: 2px; min-width: 0 }.whse .intel .cmd .stat .v { font-family: var(--mono); font-size: 12.5px; color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums }.whse .intel .cmd .stat .v.live { color: var(--green) }.whse .intel .cmd select, .whse .intel .cmd input { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 6px 9px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 12.5px; min-width: 0 }.whse .intel .cmd input { width: 200px }.whse .intel .btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink2); padding: 6px 11px; border-radius: var(--radius-sm); font-family: var(--cond); font-size: 12px; letter-spacing: var(--lbl-spacing); text-transform: uppercase; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; transition: border-color .12s, background .12s, color .12s }.whse .intel[data-theme="dark"] .btn { background: var(--panel2); font-size: 11.5px }.whse .intel .btn:hover { border-color: var(--accent); color: var(--accent) }.whse .intel .btn.on { border-color: var(--accent); background: var(--accent-dim); color: var(--accent) }.whse .intel .btn.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 12px var(--accent-glow) }.whse .intel[data-theme="dark"] .btn.primary { background: var(--accent-dim); color: var(--accent2); box-shadow: none }.whse .intel .btn.primary:hover { color: var(--on-accent); filter: brightness(1.06) }.whse .intel .btn:disabled { opacity: .5; cursor: default }.whse .intel .btn:focus-visible, .whse .intel select:focus-visible, .whse .intel input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }.whse .intel .progress { height: 3px; background: var(--hair); width: 100%; overflow: hidden; border-radius: 2px }.whse .intel .progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s }.whse .intel .ops { display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; gap: 12px; align-items: start }.whse .intel .analysis { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start }@media (max-width: 1280px) {.whse .intel .ops { grid-template-columns: 260px minmax(0, 1fr) 320px }.whse .intel .analysis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }}@media (max-width: 1000px) {.whse .intel .ops, .whse .intel .analysis { grid-template-columns: minmax(0, 1fr) }}.whse .intel .rail { display: flex; flex-direction: column; gap: 12px; min-width: 0 }.whse .intel .pn { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; position: relative; overflow: hidden }.whse .intel .pn > header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--hair); background: var(--head-bg) }.whse .intel .pn > header h2 { font-family: var(--cond); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }.whse .intel[data-theme="dark"] .pn > header h2 { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; color: var(--ink2) }.whse .intel[data-theme="dark"] .pn > header h2::before { content: "//"; color: var(--accent); margin-right: 7px; font-family: var(--mono) }.whse .intel .pn > header .right { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end }.whse .intel .pn > header .tag { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--panel2); border: 1px solid transparent; border-radius: 999px; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; max-width: 55% }.whse .intel[data-theme="dark"] .pn > header .tag { background: none; border-color: var(--hair); border-radius: 0; font-size: 10.5px }.whse .intel .pn .body { padding: 12px 14px }.whse .intel .pn .corner::before, .whse .intel .pn .corner::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: var(--accent); border-style: solid; opacity: .7; display: none }.whse .intel[data-theme="dark"] .pn .corner::before, .whse .intel[data-theme="dark"] .pn .corner::after { display: block }.whse .intel .pn .corner::before { top: -1px; left: -1px; border-width: 1px 0 0 1px }.whse .intel .pn .corner::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0 }.whse .intel .chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--ink2) }.whse .intel .chip.critical { color: var(--crit); background: var(--crit-bg) }.whse .intel .chip.high { color: var(--high); background: var(--high-bg) }.whse .intel .chip.medium { color: var(--med); background: var(--med-bg) }.whse .intel .chip.info { color: var(--info); background: var(--info-bg) }.whse .intel .chip.low { color: var(--low); background: var(--low-bg) }.whse .intel .chips { display: flex; gap: 6px; flex-wrap: wrap }.whse .intel .chips .btn { padding: 3px 9px; font-size: 11px }.whse .intel .empty { color: var(--muted); font-family: var(--mono); font-size: 12px; padding: 18px 0; text-align: center }.whse .intel .note { color: var(--muted); font-size: 11.5px; margin-top: 8px; line-height: 1.5 }.whse .intel .note b { color: var(--ink2); font-weight: 500 }.whse .intel .wl { display: flex; flex-direction: column }.whse .intel .wl .row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 70px; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--hair); cursor: pointer; transition: background .12s; text-align: left; width: 100% }.whse .intel .wl .row:hover { background: var(--panel2) }.whse .intel .wl .row.on { background: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent) }.whse .intel .wl .row.dim { opacity: .55 }.whse .intel .wl .ring { width: 44px; height: 44px }.whse .intel .wl .ring text { font-family: var(--mono); font-size: 13px; fill: var(--ink); font-weight: 600 }.whse .intel .wl .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }.whse .intel .wl .name small { color: var(--muted); font-family: var(--mono); margin-left: 5px; font-weight: 400 }.whse .intel .wl .kv { display: flex; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; letter-spacing: .3px }.whse .intel .wl .kv b { color: var(--ink2); font-weight: 600 }.whse .intel .wl .kv b.bad { color: var(--red) }.whse .intel .wl .kv b.warn { color: var(--amber) }.whse .intel .wl .spark { width: 70px; height: 26px; display: block }.whse .intel .eye { position: relative; background: var(--eye-bg); overflow: hidden }.whse .intel[data-theme="dark"] .eye { background: radial-gradient(ellipse at 50% 45%, #0e1823 0%, #070a0e 70%) }.whse .intel .eye canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none }.whse .intel .eye canvas:active { cursor: grabbing }.whse .intel .eye .hud { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 5px; pointer-events: none; max-width: 60% }.whse .intel .eye .hud .lbl { color: var(--accent) }.whse .intel .eye .hud .v { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); background: var(--eye-label-bg); display: inline-block; padding: 1px 4px; border-radius: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }.whse .intel .eye .legend { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); pointer-events: none; flex-wrap: wrap; justify-content: flex-end; background: var(--eye-label-bg); padding: 2px 6px; border-radius: 3px }.whse .intel .eye .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle }.whse .intel .eye .ring-lbl { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); pointer-events: none; background: var(--eye-label-bg); padding: 2px 6px; border-radius: 3px }.whse .intel .eye .ctl { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end }.whse .intel .eye .ctl .btn { padding: 4px 9px; font-size: 11px; background: var(--panel); box-shadow: var(--shadow) }.whse .intel[data-theme="dark"] .eye .ctl .btn { background: rgba(13, 19, 27, .85); box-shadow: none }.whse .intel .tl svg { display: block; width: 100%; overflow: visible }.whse .intel .tl .legend { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 6px }.whse .intel .tl .legend i { display: inline-block; width: 10px; height: 8px; margin-right: 5px; vertical-align: middle; border-radius: 2px }.whse .intel .tl .legend i.line { height: 0; border-top: 2px dashed var(--lead-line); border-radius: 0 }.whse .intel .sig { display: flex; flex-direction: column; max-height: 560px; overflow: auto }.whse .intel .sig .it { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 10px; padding: 9px 14px 9px 10px; border-bottom: 1px solid var(--hair); cursor: pointer; width: 100%; text-align: left }.whse .intel .sig .it:hover { background: var(--panel2) }.whse .intel .sig .it.on { background: var(--accent-dim) }.whse .intel .sig .it i { display: block; align-self: stretch; background: var(--muted); border-radius: 2px }.whse .intel .sig .it.critical i { background: var(--crit) }.whse .intel .sig .it.high i { background: var(--high) }.whse .intel .sig .it.medium i { background: var(--med) }.whse .intel .sig .it.info i { background: var(--info) }.whse .intel[data-theme="dark"] .sig .it.critical i { box-shadow: 0 0 8px var(--crit) }.whse .intel .sig .it .t { font-weight: 500; color: var(--ink); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap }.whse .intel .sig .it .t small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px }.whse .intel .sig .it .e { color: var(--ink3); font-size: 12px; margin-top: 2px }.whse .intel .sig .it .w { color: var(--muted); font-family: var(--mono); font-size: 10.5px; margin-top: 3px }.whse .intel .sig .it .site { color: var(--accent) }.whse .intel .insp .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }.whse .intel .insp .score { font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums }.whse .intel .insp .score.critical { color: var(--crit) }.whse .intel .insp .score.high { color: var(--high) }.whse .intel .insp .score.medium { color: var(--med) }.whse .intel .insp .score.low { color: var(--low) }.whse .intel .insp .ttl { font-size: 16px; font-weight: 500 }.whse .intel .insp .ttl small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; margin-top: 2px }.whse .intel .kri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px }.whse .intel .kri .k { border: 1px solid var(--hair); background: var(--bg2); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0 }.whse .intel .kri .k .lbl { font-size: 9.5px; letter-spacing: .8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }.whse .intel .kri .k .n { font-family: var(--mono); font-size: 18px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums }.whse .intel .kri .k .n.bad { color: var(--red) }.whse .intel .kri .k .n.warn { color: var(--amber) }.whse .intel .kri .k .n.good { color: var(--green) }.whse .intel .kri .k small { color: var(--muted); font-family: var(--mono); font-size: 10px }.whse .intel .drv { margin-top: 12px; display: flex; flex-direction: column; gap: 5px }.whse .intel .drv .d { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink2) }.whse .intel .drv .d .bar { height: 6px; background: var(--hair); position: relative; border-radius: 3px; overflow: hidden }.whse .intel .drv .d .bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), var(--orange)) }.whse .intel .drv .d .n { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: right }.whse .intel .mix { display: flex; flex-direction: column; gap: 4px; margin-top: 8px }.whse .intel .mix .m { display: grid; grid-template-columns: 110px minmax(0, 1fr) 28px; gap: 8px; align-items: center; font-size: 11.5px }.whse .intel .mix .m .bar { height: 8px; background: var(--hair); border-radius: 4px; overflow: hidden }.whse .intel .mix .m .bar i { display: block; height: 100%; background: var(--node-energy) }.whse .intel .mix .m.cls .bar i { background: var(--node-class) }.whse .intel .mix .m .n { font-family: var(--mono); font-size: 10.5px; text-align: right; color: var(--ink2) }.whse .intel .recent { margin-top: 10px; display: flex; flex-direction: column; gap: 4px }.whse .intel .recent .r { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; font-size: 11.5px; padding: 5px 8px; border: 1px solid var(--hair); background: var(--bg2); border-radius: var(--radius-sm); align-items: center }.whse .intel .recent .r small { font-family: var(--mono); color: var(--muted); font-size: 10.5px }.whse .intel .recent .r span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }.whse .intel .recent .r.inj { border-left: 3px solid var(--red) }.whse .intel .recent .r.hipo { border-left: 3px solid var(--orange) }.whse .intel .section { margin-top: 14px }.whse .intel .graph svg { display: block; width: 100%; height: auto }.whse .intel .graph text { font-family: var(--mono); font-size: 9.5px; fill: var(--ink2); pointer-events: none }.whse .intel .graph .legend { display: flex; gap: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap }.whse .intel .graph .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle }.whse .intel .anom svg { display: block; width: 100%; overflow: visible }.whse .intel .anom .list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 200px; overflow: auto }.whse .intel .anom .list .a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; font-size: 11.5px; padding: 5px 8px; border: 1px solid var(--hair); background: var(--bg2); border-radius: var(--radius-sm); align-items: center }.whse .intel .anom .list .a small { font-family: var(--mono); color: var(--muted) }.whse .intel .anom .list .a b { font-family: var(--mono); color: var(--orange); font-weight: 600 }.whse .intel .heat { border-collapse: separate; border-spacing: 2px; font-family: var(--mono); font-size: 10px; width: 100% }.whse .intel .heat th { color: var(--muted); font-weight: 500; padding: 2px; text-align: center; white-space: nowrap }.whse .intel .heat th.row { text-align: right; padding-right: 6px }.whse .intel .heat td { height: 20px; text-align: center; color: var(--ink); background: var(--hair); border-radius: 3px }.whse .intel .heat td.hot { color: #fff; font-weight: 600 }.whse .intel[data-theme="dark"] .heat td.hot { color: #061016 }.whse .intel .heat-scroll { overflow-x: auto }.whse .intel .onto { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px }.whse .intel .onto .o { border: 1px solid var(--hair); background: var(--bg2); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0 }.whse .intel .onto .o .n { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums }.whse .intel .method { color: var(--ink2); font-size: 12.5px; line-height: 1.6; max-width: 980px }.whse .intel .method h3 { font-family: var(--cond); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); margin: 12px 0 4px }.whse .intel .method code { font-family: var(--mono); font-size: 11.5px; background: var(--bg2); padding: 1px 5px; border: 1px solid var(--hair); border-radius: 4px }.whse .intel .method ul { padding-left: 18px }.whse .intel #tip { position: fixed; z-index: 90; background: var(--panel3); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 10px; font-family: var(--mono); font-size: 11.5px; max-width: 320px; white-space: pre-line; pointer-events: none; display: none; box-shadow: var(--shadow-lg) }.whse .intel[data-theme="dark"] #tip { border-color: var(--accent); box-shadow: 0 0 18px rgba(0, 0, 0, .6), 0 0 12px var(--accent-dim) }.whse .intel #toast { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); z-index: 70; background: var(--panel3); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; max-width: 460px; font-size: 12.5px; display: none; box-shadow: var(--shadow-lg) }@media (prefers-reduced-motion: reduce) {.whse .intel * { transition: none !important; animation: none !important }}@media (max-width: 720px) {.whse .intel .kri { grid-template-columns: repeat(2, minmax(0, 1fr)) }.whse .intel .cmd input { width: 100% }.whse .intel .cmd .brand h1, .whse .intel .cmd .stat .v { white-space: normal }.whse .intel .cmd .stat { max-width: 100% }.whse .intel .drv .d { grid-template-columns: 110px minmax(0, 1fr) 36px }.whse .intel .pn > header .tag { display: none }}.whse .intel .forms .kinds { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px }.whse .intel .forms .kind { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius-sm); padding: 5px 10px; font-size: 12px; color: var(--ink2) }.whse .intel .forms .kind:hover { border-color: var(--accent) }.whse .intel .forms .kind.on { border-color: var(--accent); background: var(--accent-dim) }.whse .intel .forms .kind i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; align-self: center }.whse .intel .forms .kind b { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink) }.whse .intel .forms .kind small { font-family: var(--mono); font-size: 10px; color: var(--muted) }.whse .intel .forms .q { margin-left: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px 9px; font-family: var(--mono); font-size: 12px; color: var(--ink); min-width: 0; width: 200px }.whse .intel .forms .tscroll { overflow-x: auto }.whse .intel table.ft { border-collapse: collapse; width: 100%; font-size: 12px; min-width: 760px }.whse .intel table.ft th { font-family: var(--cond); font-size: 10px; letter-spacing: var(--lbl-spacing); text-transform: uppercase; color: var(--muted); font-weight: var(--lbl-weight); padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap }.whse .intel table.ft th.barh, .whse .intel table.ft th.sites { text-align: left }.whse .intel table.ft th .sortbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 0 }.whse .intel table.ft th .sortbtn.on { color: var(--accent) }.whse .intel table.ft td { padding: 5px 8px; border-bottom: 1px solid var(--hair); vertical-align: middle; white-space: nowrap }.whse .intel table.ft td.name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; color: var(--ink) }.whse .intel table.ft td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink) }.whse .intel table.ft td.num.muted { color: var(--muted) }.whse .intel table.ft td.bar { width: 26%; min-width: 150px }.whse .intel table.ft td.bar .hb { position: relative; height: 10px; background: var(--hair); border-radius: 5px; display: inline-block; width: calc(100% - 44px); vertical-align: middle; overflow: visible }.whse .intel table.ft td.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; opacity: .85 }.whse .intel table.ft td.bar .ref { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink2) }.whse .intel table.ft td.bar .delta { display: inline-block; width: 40px; text-align: right; font-family: var(--mono); font-size: 10.5px; color: var(--muted); vertical-align: middle }.whse .intel table.ft td.bar .delta.up { color: var(--green) }.whse .intel table.ft td.bar .delta.down { color: var(--red) }.whse .intel table.ft td.sites { color: var(--muted); font-size: 11.5px; max-width: 320px; overflow: hidden; text-overflow: ellipsis }.whse .intel table.ft tfoot td { border-bottom: 0; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono) }.whse .intel table.ft .kchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink2) }.whse .intel table.ft .kchip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block }.whse .intel table.ft td.empty { text-align: center }@media (max-width: 720px) {.whse .intel .forms .q { margin-left: 0; width: 100% }}

.whse .intel .cmd { top: var(--page-header-height, 0px); }
.whse .intel .cmd .btn svg.ic { width: 14px; height: 14px; }
.whse .intel .cmd .brand .mark { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 12px var(--primary-glow); }
.whse .intel .cmd .btn.primary { border-color: var(--primary); background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 12px var(--primary-glow); }
.whse .intel .cmd .btn.primary:hover { background: var(--primary-hover); color: var(--on-primary); filter: none; }
.whse .intel .wl .row { grid-template-columns: 46px minmax(0, 1fr) 74px; gap: 12px; padding: 10px 14px; background: transparent; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; appearance: none; box-shadow: none; outline: none; }
.whse .intel .wl .ring { border: 0; outline: none; box-shadow: none; background: none; }
.whse .intel .wl .ring text { font-size: 14px; font-weight: 600; }
.whse .intel .wl .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.whse .intel .wl .kv { gap: 10px 12px; font-size: 10.5px; letter-spacing: .2px; }
.whse .intel .wl .kv b { color: #3d4c59; font-weight: 600; }
.whse .intel .wl .kv b.alert { color: #e7a98a; }
.whse .intel .wl .spark { width: 74px; height: 28px; }

/* Dossier sits 2px under the timeline and ends on the timeline's right edge. */
.whse .intel .ops > .rail:nth-child(2) { position: relative; z-index: 2; }
.whse .intel .pn.dossier { width: 100%; margin-top: 4px; }
.whse .intel .ops > .rail:nth-child(2) > .pn.dossier { margin-top: calc(4px - 12px); }
.whse .intel .pn.dossier .kri { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.whse .intel .pn.dossier .drv .d { grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) 36px; }


