/* ============================================================================
   Dashboard (Operations overview) — professional multi-widget layout.
   Additive + scoped under #dashboard. Reuses the app's teal-blue palette
   (#075985 / #0ea5e9 / #04375a, borders #dbeafe/#e2e8f0). Desktop shows the
   full tiered grid; on mobile (<=1180px) the KPI band is hidden because the
   existing .rk-home block already renders those headline numbers.
   ========================================================================== */

#dashboard .dash { display:flex; flex-direction:column; gap:22px; margin-top:4px; }

/* Desktop: lift the small Repark wordmark up into the bare topbar band (Back is hidden
   on the dashboard, so the top-left is free). Reset on mobile, where .rk-home shows the
   Dashboard title and the brand/hero are hidden. */
#dashboard .repark-brand { margin-top:-40px; }
@media (max-width:1180px){ #dashboard .repark-brand { margin-top:0; } }

/* The teal hero banner IS the dashboard header: big "Dashboard" title + subtitle, with a
   subtle Live accent on the right. Extends the app's existing .hero-card gradient. */
#dashboard .dash-hero { position:relative; overflow:hidden; }
#dashboard .dash-hero::after {
  content:""; position:absolute; right:-40px; top:-70px; width:240px; height:240px; border-radius:50%;
  background:radial-gradient(circle at center, rgba(255,255,255,.14), rgba(255,255,255,0) 70%); pointer-events:none;
}
#dashboard .dash-hero-txt { position:relative; z-index:1; }
#dashboard .dash-hero-title { margin:0; color:#fff; font-size:32px; font-weight:950; letter-spacing:-.01em; line-height:1; }
#dashboard .dash-hero-sub { margin:8px 0 0; color:rgba(255,255,255,.82); font-size:14px; }
#dashboard .dash-hero-live {
  position:relative; z-index:1; flex:0 0 auto; display:inline-flex; align-items:center; gap:8px;
  color:#fff; font-weight:800; font-size:12px; background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22); padding:7px 13px; border-radius:999px;
}
#dashboard .dash-hero-dot { width:8px; height:8px; border-radius:50%; background:#4ade80; box-shadow:0 0 0 4px rgba(74,222,128,.25); }
@media (max-width:720px){ #dashboard .dash-hero-title { font-size:26px; } }

/* Section grouping labels — quiet, uppercase, establish hierarchy */
#dashboard .dash-section-label {
  font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  color:#64748b; margin:2px 0 -8px;
}

/* ── Tier 1: primary KPI tiles (reuse existing .stat look) ─────────────────── */
#dashboard .dash-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
#dashboard .dash-kpis .stat { padding:18px 20px; }
#dashboard .dash-kpi-ico { display:inline-flex; color:#94a3b8; }
#dashboard .dash-kpi-ico svg { width:20px; height:20px; }
#dashboard .dash-kpi-sub { font-size:11px; color:#64748b; font-weight:700; margin-top:5px; opacity:.85; }

/* ── Tier 2: secondary supporting metrics — visually quieter than the KPIs ─── */
#dashboard .dash-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
#dashboard .dash-metric {
  background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:14px 16px;
  box-shadow:0 6px 18px rgba(15,23,42,.05);
}
#dashboard .dash-metric-top { display:flex; align-items:center; gap:7px; margin-bottom:9px; }
#dashboard .dash-metric-ico { display:inline-flex; line-height:1; color:#94a3b8; }
#dashboard .dash-metric-ico svg { width:16px; height:16px; }
#dashboard .dash-metric-label {
  font-size:11px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color:#64748b;
}
#dashboard .dash-metric-num { font-size:22px; font-weight:900; color:#0f172a; line-height:1.1; }
#dashboard .dash-metric-sub { font-size:11px; color:#94a3b8; font-weight:600; margin-top:4px; }
#dashboard .dash-gbp { color:#075985; font-weight:800; }   /* £ approx — reads as a real figure, still secondary to RMB */

/* ── Tier 3: working widget cards ─────────────────────────────────────────── */
#dashboard .dash-widgets { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
#dashboard .dash-activity { grid-column:1 / -1; }            /* recent activity spans full width */
#dashboard .dash-card { padding:18px 20px; }
#dashboard .dash-card-head {
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px;
}
#dashboard .dash-card-head h3 { margin:0; font-size:15px; color:#0f172a; }
#dashboard .dash-subtle { font-size:12px; color:#64748b; font-weight:700; }
#dashboard .dash-badge {
  font-size:12px; font-weight:800; background:#fee2e2; color:#b91c1c; padding:3px 10px; border-radius:999px;
}
#dashboard .dash-empty { color:#94a3b8; font-size:13px; padding:18px 8px; text-align:center; }
#dashboard .dash-ok {
  background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; font-weight:800;
  padding:14px; border-radius:12px; text-align:center; font-size:13px;
}

/* Low stock list */
#dashboard .dash-lowlist { display:flex; flex-direction:column; gap:8px; max-height:330px; overflow-y:auto; }
/* Explicit areas: the qty used to be grid-row:1/span 2, which ate BOTH rows of
   column 2 and left "on hand" with no cell — it got auto-placed into a stray
   third row and wrapped to "on"/"hand". Named areas pin all four parts. */
#dashboard .dash-low-row {
  display:grid; grid-template-columns:1fr auto; gap:2px 12px; align-items:center;
  grid-template-areas:"name qty" "meta th";
  padding:10px 13px; border-radius:12px; background:#fef2f2; border:1px solid #fecaca;
}
#dashboard .dash-low-name { grid-area:name; font-weight:800; color:#0f172a; font-size:13px;
  min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#dashboard .dash-low-meta { grid-area:meta; font-size:11px; color:#64748b; }
#dashboard .dash-low-qty { grid-area:qty; font-weight:900; color:#dc2626; font-size:15px;
  text-align:right; align-self:end; line-height:1.1; }
#dashboard .dash-low-th { grid-area:th; font-size:11px; color:#94a3b8;
  text-align:right; white-space:nowrap; }

/* Purchase-order workflow — horizontal bars */
#dashboard .dash-bars { display:flex; flex-direction:column; gap:12px; padding-top:2px; }
#dashboard .dash-bar-row { display:grid; grid-template-columns:130px 1fr 36px; align-items:center; gap:10px; }
#dashboard .dash-bar-label {
  font-size:12px; font-weight:700; color:#475569; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#dashboard .dash-bar-track { height:12px; background:#eef2f7; border-radius:999px; overflow:hidden; }
#dashboard .dash-bar-fill { height:100%; min-width:3px; border-radius:999px; width:0; transition:width .55s cubic-bezier(.4,0,.2,1); }
#dashboard .dash-bar-count { font-size:13px; font-weight:800; color:#0f172a; text-align:right; }

/* Recent activity feed */
#dashboard .dash-feed { display:flex; flex-direction:column; }
#dashboard .dash-feed-row { display:flex; align-items:center; gap:12px; padding:10px 2px; border-bottom:1px solid #eef2f7; }
#dashboard .dash-feed-row:last-child { border-bottom:none; }
#dashboard .dash-feed-ico {
  width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-size:15px; flex:0 0 auto;
}
#dashboard .dash-feed-ico.po { background:#e0f2fe; color:#0369a1; }
#dashboard .dash-feed-ico.container { background:#eef2ff; color:#4338ca; }
#dashboard .dash-feed-ico svg { width:17px; height:17px; }
#dashboard .dash-feed-main { flex:1; min-width:0; }
#dashboard .dash-feed-title { font-size:13px; font-weight:800; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#dashboard .dash-feed-sub { font-size:11px; color:#64748b; }
#dashboard .dash-feed-time { font-size:11px; color:#94a3b8; white-space:nowrap; flex:0 0 auto; }
#dashboard .dash-pill { display:inline-block; font-size:10px; font-weight:800; padding:2px 8px; border-radius:999px; text-transform:capitalize; }

/* Subtle per-widget loading shimmer */
#dashboard .dash-skel { position:relative; color:transparent !important; border-radius:8px;
  background:var(--rms-skel-fill); background-size:400% 100%;
  animation:rms-shimmer var(--t-shimmer) var(--e-in-out) infinite; }

/* ── Responsive: <=1180px = mobile app-shell skin (rk-home owns the KPI band) ─ */
@media (max-width:1180px){
  #dashboard .dash-ov-label, #dashboard .dash-kpis { display:none; }
  #dashboard .dash-metrics { grid-template-columns:repeat(2,1fr); gap:10px; }
  #dashboard .dash-widgets { grid-template-columns:1fr; gap:12px; }
  #dashboard .dash { gap:16px; }
  #dashboard .dash-metric-num { font-size:20px; }
}
@media (max-width:520px){
  #dashboard .dash-bar-row { grid-template-columns:92px 1fr 30px; }
  #dashboard .dash-metric { padding:12px 13px; }
}

/* ── Dark mode (html[data-theme="dark"]) ──────────────────────────────────── */
html[data-theme="dark"] #dashboard .dash-metric { background:#0f1e2e; border-color:rgba(255,255,255,.08); box-shadow:none; }
html[data-theme="dark"] #dashboard .dash-metric-num { color:#e2e8f0; }
html[data-theme="dark"] #dashboard .dash-gbp { color:#7dd3fc; }
html[data-theme="dark"] #dashboard .dash-metric-label,
html[data-theme="dark"] #dashboard .dash-section-label { color:#94a3b8; }
html[data-theme="dark"] #dashboard .dash-card-head h3 { color:#e2e8f0; }
html[data-theme="dark"] #dashboard .dash-bar-track { background:rgba(255,255,255,.09); }
html[data-theme="dark"] #dashboard .dash-bar-count,
html[data-theme="dark"] #dashboard .dash-feed-title { color:#e2e8f0; }
html[data-theme="dark"] #dashboard .dash-feed-row { border-color:rgba(255,255,255,.06); }
html[data-theme="dark"] #dashboard .dash-feed-ico.po { background:rgba(14,165,233,.18); }
html[data-theme="dark"] #dashboard .dash-feed-ico.container { background:rgba(99,102,241,.18); }
html[data-theme="dark"] #dashboard .dash-low-row { background:rgba(220,38,38,.12); border-color:rgba(248,113,113,.28); }
html[data-theme="dark"] #dashboard .dash-low-name { color:#fecaca; }
html[data-theme="dark"] #dashboard .dash-empty { color:#64748b; }

/* ── Channels & orders: line chart + donut + revenue bars + channel health ──── */
#dashboard .dash-orders-grid { display:grid; grid-template-columns:1.7fr 1fr; gap:18px; }
#dashboard .dash-orders-grid .dash-card { min-width:0; }
#dashboard .dash-chart-svg { width:100%; display:block; }
#dashboard .dash-ord-line .dash-chart-svg { height:210px; }
#dashboard .dash-ord-bar .dash-chart-svg { height:190px; }
#dashboard .dash-chart-empty { padding:40px 8px; }

#dashboard .dash-ord-kpi { text-align:right; line-height:1; flex:0 0 auto; }
#dashboard .dash-ord-num { font-size:26px; font-weight:900; color:#0f172a; font-variant-numeric:tabular-nums; }
#dashboard .dash-ord-lbl { display:block; font-size:11px; font-weight:700; color:#94a3b8; margin-top:4px; }
#dashboard .dash-delta { font-size:11px; font-weight:800; padding:2px 7px; border-radius:999px; white-space:nowrap; }
#dashboard .dash-delta--up { color:#16a34a; background:#e7f7ec; }
#dashboard .dash-delta--down { color:#dc2626; background:#fdecec; }

#dashboard .dash-legend { display:flex; gap:16px; flex-wrap:wrap; margin:-6px 0 8px; }
#dashboard .dash-leg { display:flex; align-items:center; gap:7px; font-size:12px; font-weight:650; color:#64748b; }
#dashboard .dash-leg b { color:#0f172a; font-weight:800; font-variant-numeric:tabular-nums; }
#dashboard .dash-leg-sw { width:20px; height:4px; border-radius:2px; background:#0e7ab0; display:inline-block; }
#dashboard .dash-leg-sw--prev { background:repeating-linear-gradient(90deg,#c3ccd8 0 5px,transparent 5px 9px); }

#dashboard .dash-donut-track { stroke:#eef2f7; }
#dashboard .dash-donut-wrap { display:flex; align-items:center; gap:16px; }
#dashboard .dash-donut { position:relative; width:148px; height:148px; flex:0 0 auto; }
#dashboard .dash-donut svg { width:100%; height:100%; }
#dashboard .dash-donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
#dashboard .dash-donut-center b { font-size:23px; font-weight:900; color:#0f172a; line-height:1; }
#dashboard .dash-donut-center span { font-size:11px; color:#94a3b8; font-weight:650; margin-top:2px; }
#dashboard .dash-dlegend { display:flex; flex-direction:column; gap:8px; flex:1; min-width:0; }
#dashboard .dash-drow { display:flex; align-items:center; gap:8px; font-size:12.5px; }
#dashboard .dash-cd { width:9px; height:9px; border-radius:3px; flex:0 0 auto; }
#dashboard .dash-dnm { flex:1; font-weight:650; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#dashboard .dash-dpc { font-weight:800; color:#64748b; font-variant-numeric:tabular-nums; }

#dashboard .dash-chanlist { display:flex; flex-direction:column; }
#dashboard .dash-chan { display:flex; align-items:center; gap:11px; padding:9px 0; border-top:1px solid #eef2f7; }
#dashboard .dash-chan:first-child { border-top:none; }
#dashboard .dash-chan-badge { width:29px; height:29px; border-radius:9px; flex:0 0 auto; display:flex; align-items:center; justify-content:center; color:#fff; font-size:10px; font-weight:800; }
#dashboard .dash-chan-meta { flex:1; min-width:0; }
#dashboard .dash-chan-nm { font-size:13px; font-weight:750; color:#0f172a; }
#dashboard .dash-chan-or { font-size:11px; color:#94a3b8; font-weight:600; }
#dashboard .dash-chan-cnt { font-size:15px; font-weight:800; color:#0f172a; font-variant-numeric:tabular-nums; }
#dashboard .dash-csp { width:60px; height:24px; flex:0 0 auto; }

@media (max-width:1180px){ #dashboard .dash-orders-grid { grid-template-columns:1fr; gap:12px; } }
@media (max-width:520px){ #dashboard .dash-donut-wrap { flex-direction:column; align-items:flex-start; } }

html[data-theme="dark"] #dashboard .dash-donut-track { stroke:rgba(255,255,255,.09); }
html[data-theme="dark"] #dashboard .dash-ord-num,
html[data-theme="dark"] #dashboard .dash-donut-center b,
html[data-theme="dark"] #dashboard .dash-dnm,
html[data-theme="dark"] #dashboard .dash-chan-nm,
html[data-theme="dark"] #dashboard .dash-chan-cnt,
html[data-theme="dark"] #dashboard .dash-leg b { color:#e2e8f0; }
html[data-theme="dark"] #dashboard .dash-chan { border-color:rgba(255,255,255,.06); }
html[data-theme="dark"] #dashboard .dash-delta--up { background:rgba(22,163,74,.18); }
html[data-theme="dark"] #dashboard .dash-delta--down { background:rgba(220,38,38,.18); }

/* ── "Today's shipping" dashboard rebuild (additive, scoped to #dashShipRoot) ──────────────────── */
#dashShipRoot{--dsline:#e2e8f0;--dsl2:#cbd5e1;--dsink:#0f2233;--dsink2:#334155;--dsmut:#64748b;--dsacc:#1a6d9e;--dsamber:#b45309;--dsok:#15803d;--dswarn:#b45309;--dsbad:#b91c1c;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;color:var(--dsink)}
#dashShipRoot .n{font-variant-numeric:tabular-nums}
#dashShipRoot .ds-loading{padding:24px;color:var(--dsmut)}
#dashShipRoot .ds-sp{flex:1}
#dashShipRoot .ds-mut{font-size:11.5px;color:var(--dsmut)}
#dashShipRoot .ds-head{background:linear-gradient(103deg,#0f2233,#164a63 62%,#1a6d9e);border-radius:10px;padding:16px 20px;color:#fff;margin-bottom:14px}
#dashShipRoot .ds-headtop{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
#dashShipRoot .ds-head h1{margin:0;font-size:22px;font-weight:600}
#dashShipRoot .ds-head .ds-sub{font-size:12px;color:#a8c6d8;margin-top:2px}
#dashShipRoot .ds-chanrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:16px}
#dashShipRoot .ds-chanrow .lbl{color:#a8c6d8;font-size:12px;margin-right:4px}
#dashShipRoot .ds-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);border-radius:999px;padding:4px 11px 4px 9px;cursor:pointer;font:inherit;font-size:12.5px;font-weight:500;color:#fff}
#dashShipRoot .ds-pill i{width:8px;height:8px;border-radius:50%;display:block}
#dashShipRoot .ds-pill b{font-weight:600;color:#a8c6d8;font-size:11.5px}
#dashShipRoot .ds-pill[aria-pressed="false"]{color:#8ea6bf;background:transparent;border-style:dashed}
#dashShipRoot .ds-pill[aria-pressed="false"] i{background:#6f8499!important}
#dashShipRoot .ds-ranges{display:flex;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:8px;overflow:hidden}
#dashShipRoot .ds-ranges button{border:none;background:none;color:#cfe3ee;padding:7px 14px;font:inherit;font-size:12.5px;cursor:pointer;border-right:1px solid rgba(255,255,255,.13)}
#dashShipRoot .ds-ranges button:last-child{border-right:none}
#dashShipRoot .ds-ranges button[aria-pressed="true"]{background:#fff;color:#0f2233;font-weight:600}
#dashShipRoot .ds-sec{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:15px;font-weight:600;color:var(--dsink);margin:22px 0 10px}
#dashShipRoot .ds-sec .ds-mut{font-weight:400;font-size:12.5px;color:var(--dsmut)}
#dashShipRoot .ds-flow{background:#fff;border:1px solid var(--dsline);border-radius:10px;padding:18px 20px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#dashShipRoot .ds-step{min-width:120px}
#dashShipRoot .ds-step .k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--dsmut)}
#dashShipRoot .ds-step .v{font-size:38px;font-weight:600;line-height:1;margin-top:4px}
#dashShipRoot .ds-step .s{font-size:11.5px;color:var(--dsmut);margin-top:4px}
#dashShipRoot .ds-step.hot .v{color:var(--dsacc)}
#dashShipRoot .ds-step.risk .v{color:var(--dswarn)}
#dashShipRoot .ds-arrow{color:var(--dsl2);font-size:19px;padding:0 10px}
#dashShipRoot .ds-clock{border-left:1px solid var(--dsline);padding-left:20px;margin-left:auto;text-align:right}
#dashShipRoot .ds-clock .k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--dsmut)}
#dashShipRoot .ds-clock .t{font-size:24px;font-weight:600;color:var(--dsamber);margin-top:4px}
#dashShipRoot .ds-clock .w{font-size:11.5px;color:var(--dsmut);margin-top:3px}
#dashShipRoot .ds-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:14px}
#dashShipRoot .ds-kpi{background:#fff;border:1px solid var(--dsline);border-radius:10px;padding:14px 16px}
#dashShipRoot .ds-kpi .k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--dsmut)}
#dashShipRoot .ds-kpi .v{font-size:25px;font-weight:600;margin-top:4px;font-variant-numeric:tabular-nums}
#dashShipRoot .ds-kpi .v .ds-unit{font-size:14px;color:var(--dsmut);font-weight:500}
#dashShipRoot .ds-kpi .s{font-size:11.5px;color:var(--dsmut);margin-top:3px}
#dashShipRoot .ds-grid2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px}
#dashShipRoot .ds-card{background:#fff;border:1px solid var(--dsline);border-radius:10px;overflow:hidden}
#dashShipRoot .ds-chead{display:flex;align-items:center;gap:9px;padding:11px 16px;border-bottom:1px solid var(--dsline)}
#dashShipRoot .ds-chead h3{margin:0;font-size:13.5px;font-weight:600}
#dashShipRoot .ds-meta{font-size:11.5px;color:#94a3b8}
#dashShipRoot table.ds-ch{width:100%;border-collapse:collapse;font-size:13px}
#dashShipRoot table.ds-ch th{text-align:right;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--dsmut);padding:8px 16px;border-bottom:1px solid var(--dsline)}
#dashShipRoot table.ds-ch th:first-child,#dashShipRoot table.ds-ch td:first-child{text-align:left}
#dashShipRoot table.ds-ch td{padding:10px 16px;border-bottom:1px solid #f1f5f9;text-align:right;font-variant-numeric:tabular-nums}
#dashShipRoot table.ds-ch tr.ds-grp td{background:#fbfcfd;font-weight:700;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--dsink2)}
#dashShipRoot .ds-chan{display:inline-flex;align-items:center;gap:8px;font-weight:600}
#dashShipRoot .ds-chan.ind{padding-left:16px}
#dashShipRoot .ds-dot{width:9px;height:9px;border-radius:2px}
#dashShipRoot .ds-bar{height:5px;border-radius:3px;background:#f1f5f9;overflow:hidden;margin-top:5px}
#dashShipRoot .ds-bar i{display:block;height:100%;border-radius:3px}
#dashShipRoot .ds-mv{display:flex;align-items:center;gap:11px;padding:9px 16px;border-bottom:1px solid #f1f5f9}
#dashShipRoot .ds-mv .rk{width:20px;font-size:11.5px;font-weight:700;color:#94a3b8}
#dashShipRoot .ds-mv .nm{font-size:12.8px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dashShipRoot .ds-mv .rail{width:74px;height:6px;border-radius:4px;background:#f1f5f9;overflow:hidden}
#dashShipRoot .ds-mv .rail i{display:block;height:100%;background:var(--dsacc)}
#dashShipRoot .ds-mv .q{font-size:14px;font-weight:600}
#dashShipRoot .ds-arow{display:flex;align-items:center;gap:11px;padding:11px 16px;border-bottom:1px solid #f1f5f9}
#dashShipRoot .ds-arow:last-child{border-bottom:none}
#dashShipRoot .ds-arow .badge{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;font-size:14px}
#dashShipRoot .ds-arow .t{font-size:13px;font-weight:600}
#dashShipRoot .ds-arow .d{font-size:11.5px;color:var(--dsmut)}
#dashShipRoot .ds-arow .cnt{font-size:17px;font-weight:600}
#dashShipRoot .ds-arow.w .badge{background:#fffbeb;color:var(--dswarn)}#dashShipRoot .ds-arow.w .cnt{color:var(--dswarn)}
#dashShipRoot .ds-arow.b .badge{background:#fef2f2;color:var(--dsbad)}#dashShipRoot .ds-arow.b .cnt{color:var(--dsbad)}
#dashShipRoot .ds-arow.n .badge{background:#eff6ff;color:var(--dsacc)}#dashShipRoot .ds-arow.n .cnt{color:var(--dsacc)}
#dashShipRoot .ds-trend{padding:14px 16px}
#dashShipRoot .ds-trendtop{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
#dashShipRoot .ds-trendtop .big{font-size:26px;font-weight:600}
#dashShipRoot .ds-pill{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:20px;background:#f0fdf4;color:var(--dsok);border:1px solid #bbf7d0}
#dashShipRoot svg.ds-spark{width:100%;height:132px;display:block;margin-top:12px}
@media(max-width:1100px){#dashShipRoot .ds-grid2{grid-template-columns:minmax(0,1fr)}#dashShipRoot .ds-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#dashShipRoot .ds-clock{margin-left:0;border-left:none;padding-left:0;text-align:left}}

/* ── Redesign additions (2026-09-17) — page reorder, Team panel, Trends chart ──────────────────── */
#dashShipRoot .ds-full{grid-column:1 / -1}
#dashShipRoot .ds-flow2{display:grid;grid-template-columns:1.6fr 1fr;gap:10px;margin-top:12px}
#dashShipRoot .ds-flowmain{padding:18px 20px}
#dashShipRoot{--dsviolet:#6a45d1}

/* ── Labels/orders pipeline (2026-09-19) — Stage 1 "Labels/orders" -> Stage 2 "Packing" -> Van ─── */
#dashShipRoot .ds-pipe{display:grid;grid-template-columns:1fr 1fr 300px;gap:10px;margin-top:12px;align-items:stretch}
/* #dsStage1Host (the targeted-refresh anchor around the Labels card — see loadLabelsOnly()) is
   an invisible wrapper div, but it's ALSO the actual grid item here, not .ds-stage1 itself — so
   grid's align-items:stretch was stretching the wrapper while the card inside it stayed at its
   own natural (shorter) height, floating in the wrapper's now-invisible extra space (2026-09-20,
   layout pass — this, not anything about .ds-stage1's own CSS, was the real cause of Packing
   looking taller than Labels). display:contents removes the wrapper from layout entirely so
   .ds-stage1 becomes the real grid item and stretches like ds-stage2/ds-van do. */
#dashShipRoot #dsStage1Host{display:contents}
/* Tightened (2026-09-20): 18px/22px -> 16px/18px so the Labels/Packing cards' own content sets
   their height instead of padding inflating it — see the flownums/fbar/flegend/chip tightening
   below for the rest of the ~340px -> ~280px reduction.
   Flex column + space-between (2026-09-20, layout pass): the grid row stretches all three cards
   to the tallest (Van, driven by its own 4 pace rows) — without this, the shorter two just left a
   dead block of white space below their last line. space-between spreads any leftover height
   evenly between each card's own rows instead, the same fill pattern Van's ds-pace rows already
   use — nothing looks stretched because every gap grows by the same small amount. */
#dashShipRoot .ds-stage1,#dashShipRoot .ds-stage2{padding:16px 18px;position:relative;display:flex;flex-direction:column;justify-content:space-between}
#dashShipRoot .ds-stagehd{margin:0 0 10px;font-size:13px;color:var(--dsink2);font-weight:600;display:flex;align-items:center;gap:8px}
#dashShipRoot .ds-stagenum{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;font-size:11.5px;color:#fff;flex:none}
#dashShipRoot .ds-stage1::after{content:"→";position:absolute;right:-17px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;background:#fff;border:1px solid var(--dsline);display:grid;place-items:center;color:var(--dsmut);z-index:2;font-size:13px}
#dashShipRoot .ds-rangewrap{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
#dashShipRoot .ds-ranges button[data-ds-labels-custom]{border-right:none}
#dashShipRoot .ds-customwrap{display:none;gap:8px;align-items:center;color:#afc3d8;font-size:12.5px}
#dashShipRoot .ds-customwrap.on{display:flex}
#dashShipRoot .ds-customwrap input{height:30px;border-radius:7px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#fff;padding:0 8px;font:inherit;color-scheme:dark}
#dashShipRoot .ds-applybtn{height:30px;border:0;border-radius:7px;background:#fff;color:var(--dsink);font-weight:600;padding:0 12px;cursor:pointer;font:inherit}

/* Chip row (option C), embedded directly in the Stage 1 card, right under the "+N new orders"
   line — no heading, no toggle, no detail table (removed 2026-09-20: the chips are enough). */
#dashShipRoot .ds-lchiprow{display:flex;flex-wrap:wrap;gap:6px;margin-top:0}
#dashShipRoot .ds-lchip{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--dsline);background:#faf8ff;border-radius:999px;padding:3px 9px;font-size:12.5px;font-weight:500;color:var(--dsink2)}
#dashShipRoot .ds-lchip b{color:var(--dsviolet);font-weight:700}
#dashShipRoot .ds-lchip.zero{background:#f0fdf4;border-color:#bbf7d0}
#dashShipRoot .ds-lchip.zero b{color:var(--dsok)}

/* "?" help popover next to the Stage 1 heading — CSS-only, hover AND keyboard focus (:focus-within
   on the wrapping span covers Tab-focus of the button itself), replacing the always-visible
   footnote block the chip row used to sit above (2026-09-20). */
#dashShipRoot .ds-help{position:relative;display:inline-flex}
#dashShipRoot .ds-qmark{width:16px;height:16px;border-radius:50%;border:1px solid var(--dsl2);background:#fff;color:var(--dsmut);font:inherit;font-size:10px;font-weight:700;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
#dashShipRoot .ds-qmark:hover,#dashShipRoot .ds-qmark:focus-visible{color:var(--dsacc);border-color:var(--dsacc)}
#dashShipRoot .ds-help-pop{display:none;position:absolute;left:0;top:calc(100% + 8px);z-index:5;width:300px;background:#fff;border:1px solid var(--dsline);border-radius:10px;box-shadow:0 10px 30px rgba(15,34,51,.15);padding:12px 14px;font-size:12px;font-weight:400;color:var(--dsmut);line-height:1.45}
#dashShipRoot .ds-help-pop div+div{margin-top:8px}
#dashShipRoot .ds-help-pop b{color:var(--dsink2);font-weight:600}
#dashShipRoot .ds-help:hover .ds-help-pop,#dashShipRoot .ds-help:focus-within .ds-help-pop{display:block}
/* "Still to pack" breakdown popover — SAME .ds-help/.ds-qmark/.ds-help-pop mechanism as Stage 1's
   above; .ds-stillpack-pop overrides width/padding AND the anchor side. "Still to pack" sits in
   the THIRD (rightmost) column of .ds-flownums' 3-col grid, so the inherited left:0 anchor opens
   the popover rightward straight past the card edge — the hint text and the count number on
   every row were clipped off-screen, not just visually tight. right:0 (with left:auto) opens it
   LEFTWARD from the "?" instead, which stays inside the card at every viewport width this grid
   actually reflows to. Rows are real <button>s so they take a genuine click, not just a hover
   target — see the data-ds-stillpack-open handler. */
#dashShipRoot .ds-stillpack-pop{left:auto;right:0;width:270px;padding:10px;text-align:left}
#dashShipRoot .ds-stillpack-total{font-size:11px;font-weight:700;color:var(--dsink2);text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid var(--dsline)}
#dashShipRoot .ds-stillpack-sub{margin-top:8px;font-size:10px;color:var(--dsink3,var(--dsink2));opacity:.8}
#dashShipRoot .ds-stillpack-row{display:flex;align-items:center;gap:8px;width:100%;border:none;background:none;padding:6px 4px;border-radius:7px;cursor:pointer;font:inherit;font-size:12.5px;color:var(--dsink2);text-align:left}
#dashShipRoot .ds-stillpack-row:hover,#dashShipRoot .ds-stillpack-row:focus-visible{background:var(--dsline)}
/* The colour dot — one per row, set inline via --rc (the row's own semantic colour: violet for
   parked matching the top-bar "parked" pill, amber/warn for unlinked, green/ok for the normal
   queue). Same colour repeats on the count itself so the number reads as belonging to that row
   even skimmed from a distance, not just decorated at the left edge. */
#dashShipRoot .ds-stillpack-dot{width:8px;height:8px;border-radius:50%;background:var(--rc);flex:none}
#dashShipRoot .ds-stillpack-row span{flex:1;min-width:0}
#dashShipRoot .ds-stillpack-row small{display:block;color:var(--dsmut);font-weight:400;font-size:11px;margin-top:1px;white-space:normal}
#dashShipRoot .ds-stillpack-row b{font-weight:700;flex:none;color:var(--rc)}
#dashShipRoot .ds-stillpack-row+.ds-stillpack-row{margin-top:2px}
/* PHONE: anchor-relative positioning (left:0 OR right:0, a fixed px width) cannot win on a
   narrow screen — the card itself is barely wider than the popover, so EITHER anchor runs off
   one edge or the other, clipped by the page's own no-horizontal-scroll rule rather than just
   looking tight. Applies to EVERY .ds-help-pop (Stage 1's own "?" included, same mechanism, same
   problem), not just the still-to-pack one: switched to position:fixed, pinned to the screen's
   own left/right edges with a margin, never to the triggering button — so it can never overflow
   regardless of where that button sits on the page. max-height+scroll guards the still-to-pack
   popover specifically, which is the one with enough rows to plausibly run past the viewport
   height on a short phone screen in landscape. */
@media(max-width:640px){
  #dashShipRoot .ds-help-pop{position:fixed;top:auto;left:12px;right:12px;bottom:12px;width:auto;max-width:none;max-height:70vh;overflow-y:auto;z-index:50}
}
@media(max-width:1180px){#dashShipRoot .ds-pipe{grid-template-columns:1fr 1fr}#dashShipRoot .ds-pipe .ds-van{grid-column:1/-1}}
@media(max-width:900px){#dashShipRoot .ds-pipe{grid-template-columns:1fr}#dashShipRoot .ds-stage1::after{display:none}}
/* Numbers tightened 34px -> 26px, gaps cut throughout (2026-09-20) — see the ds-pipe comment above. */
#dashShipRoot .ds-flownums{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:8px}
#dashShipRoot .ds-flownums .k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--dsmut)}
#dashShipRoot .ds-flownums .k.go{color:var(--dswarn)}
#dashShipRoot .ds-flownums .v{margin-top:3px;font-size:26px;font-weight:600;line-height:1.1}
#dashShipRoot .ds-flownums .v.go{color:var(--dswarn)}
#dashShipRoot .ds-flownums .s{font-size:11px;color:var(--dsmut);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashShipRoot .ds-fbar{height:8px;border-radius:4px;background:#f1f5f9;overflow:hidden;display:flex}
#dashShipRoot .ds-fbar i{display:block;height:100%}
#dashShipRoot .ds-flegend{display:flex;gap:12px;flex-wrap:nowrap;color:var(--dsink2);font-size:11.5px;margin-top:6px;white-space:nowrap;overflow:hidden}
#dashShipRoot .ds-flegend em{font-style:normal;display:inline-flex;align-items:center;gap:5px}
#dashShipRoot .ds-flegend em::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--c)}
/* justify-content:flex-start (not space-between, unlike Labels/Packing above) — Van is the
   TALLEST of the three cards by construction (its own 5 pace rows + verdict line), so it never
   needs to distribute leftover height; it should just stack its own rows compactly, exactly the
   mockup's own .van{justify-content:flex-start} override of the shared .card rule. */
#dashShipRoot .ds-van{padding:18px 20px;display:flex;flex-direction:column;justify-content:flex-start;gap:10px}
#dashShipRoot .ds-van .k{font-size:10.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--dsmut)}
#dashShipRoot .ds-van .v.big{margin-top:4px;font-size:30px;font-weight:600;color:var(--dsamber);line-height:1.1}
#dashShipRoot .ds-van .s{font-size:11.5px;color:var(--dsmut);margin-top:3px}
#dashShipRoot .ds-pace{padding-top:10px;border-top:1px solid var(--dsline);display:flex;justify-content:space-between;align-items:baseline}
#dashShipRoot .ds-pace .lbl{color:var(--dsink2);font-size:12.5px}
#dashShipRoot .ds-pace strong{font-size:19px;font-weight:600}
#dashShipRoot .ds-pace strong.ok{color:var(--dsok)}
#dashShipRoot .ds-pace strong.bad{color:var(--dsbad)}
#dashShipRoot .ds-pace strong small{font-size:12px;color:var(--dsmut);font-weight:500}
#dashShipRoot .ds-zero{padding:11px 16px;color:var(--dsmut);font-size:12.5px;border-top:1px solid var(--dsline)}

/* KPI delta badge (2026-09-20 mockup rebuild) — up/down vs the same point in the day yesterday,
   on the existing (previously dormant) 4-across .ds-kpis/.ds-kpi strip further up this file. */
#dashShipRoot .ds-kd{font-size:11px;font-weight:700;border-radius:999px;padding:1px 7px;margin-left:2px;display:inline-block}
#dashShipRoot .ds-kd.up{background:#e5f4ec;color:var(--dsok)}
#dashShipRoot .ds-kd.down{background:#fcebea;color:var(--dsbad)}

/* "At risk" banner (Labels card) — Amazon ship-by-today, not packed yet. */
#dashShipRoot .ds-risk{margin-top:10px;background:#fcebea;border:1px solid #f3c9c5;color:var(--dsbad);border-radius:8px;padding:7px 10px;font-size:12.5px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:8px}
#dashShipRoot .ds-risk a{color:var(--dsbad);font-weight:600;white-space:nowrap}

/* Van verdict line — pace vs time left to the collection window's end. */
#dashShipRoot .ds-verdict{margin-top:8px;font-size:12.5px;font-weight:600}
#dashShipRoot .ds-verdict.ok{color:var(--dsok)}
#dashShipRoot .ds-verdict.bad{color:var(--dsbad)}

/* Packed-per-hour sparkline (Packing card) — reuses .ds-spark (Team cards' own sparkline bars),
   just taller bars sized for this wider card. */
#dashShipRoot .ds-spark2{height:26px;width:100%}
#dashShipRoot .ds-spark2 i{flex:1;width:auto;background:var(--dsok)}
#dashShipRoot .ds-spark2 i:not(.h){background:#e6eaf0}

/* Section header row with its own filter controls (Team) */
#dashShipRoot .ds-sec2{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:15px;font-weight:600;color:var(--dsink);margin:22px 0 10px}
#dashShipRoot .ds-sec2 .ds-mut{font-weight:400;font-size:12.5px;color:var(--dsmut);margin-left:6px}
#dashShipRoot .ds-ctrl{display:flex;flex-wrap:wrap;gap:8px;align-items:center;text-transform:none;letter-spacing:normal}
#dashShipRoot .ds-seg{display:inline-flex;background:#eef2f7;border-radius:9px;padding:3px}
#dashShipRoot .ds-seg button{border:0;background:none;padding:5px 12px;border-radius:7px;cursor:pointer;color:var(--dsink2);font:inherit;font-weight:500;font-size:12.5px;white-space:nowrap}
#dashShipRoot .ds-seg button[aria-pressed="true"]{background:#fff;color:var(--dsink);box-shadow:0 1px 2px rgba(15,34,51,.1)}
#dashShipRoot .ds-chk{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--dsink2);cursor:pointer;font-weight:400}
#dashShipRoot .ds-sel{height:32px;border:1px solid var(--dsline);border-radius:8px;background:#fff;padding:0 8px;font:inherit;color:var(--dsink)}
#dashShipRoot .ds-dates{display:none;gap:6px;align-items:center;color:var(--dsmut);font-size:12.5px}
#dashShipRoot .ds-dates.on{display:flex}

/* Team cards */
#dashShipRoot .ds-team{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:8px}
#dashShipRoot .ds-mate{background:#fff;border:1px solid var(--dsline);border-radius:10px;padding:10px 12px}
#dashShipRoot .ds-mate.out{background:#fbfcfd}
#dashShipRoot .ds-mate.out .ds-mstats div{background:#f1f3f7}
#dashShipRoot .ds-outtag{font-size:10.5px;font-weight:600;border-radius:4px;padding:1px 6px;background:#eef2f7;color:var(--dsmut);flex:none}
#dashShipRoot .ds-mtop{display:flex;align-items:center;gap:9px}
#dashShipRoot .ds-mav{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:11.5px;position:relative;flex:none}
#dashShipRoot .ds-mav i{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;border:2px solid #fff;background:#b7bfcc}
#dashShipRoot .ds-mav i.live{background:#22a565}
#dashShipRoot .ds-mav i.idle{background:#e3a23b}
#dashShipRoot .ds-mname{min-width:0;flex:1}
#dashShipRoot .ds-mname b{display:block;font-weight:600;font-size:13.5px;line-height:1.2;color:var(--dsink)}
#dashShipRoot .ds-mname span{display:block;color:var(--dsmut);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dashShipRoot .ds-role{font-size:10.5px;font-weight:600;border-radius:4px;padding:1px 6px;flex:none}
#dashShipRoot .ds-role.pack{background:#eaf0fe;color:var(--dsacc)}
#dashShipRoot .ds-role.pick{background:#f1ecfd;color:#6a45d1}
#dashShipRoot .ds-mstats{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:9px}
#dashShipRoot .ds-mstats div{background:#f6f8fb;border-radius:6px;padding:4px 6px;text-align:center}
#dashShipRoot .ds-mstats b{display:block;font-size:15px;font-weight:700;line-height:1.2;color:var(--dsink)}
#dashShipRoot .ds-mstats span{font-size:10.5px;color:var(--dsmut)}
#dashShipRoot .ds-mstats .good b{color:var(--dsok)}
#dashShipRoot .ds-mstats .warn b{color:var(--dswarn)}
#dashShipRoot .ds-mfoot{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;margin-top:8px}
#dashShipRoot .ds-msub{font-size:11.5px;color:var(--dsink2);line-height:1.35}
#dashShipRoot .ds-msub em{font-style:normal;color:var(--dsamber);font-weight:600}
#dashShipRoot .ds-spark{display:flex;align-items:flex-end;gap:2px;height:22px;flex:none}
#dashShipRoot .ds-spark i{width:5px;border-radius:1px;display:block}

/* Trends */
#dashShipRoot .ds-trendcard{padding:18px 20px}
#dashShipRoot .ds-trendtop{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}
#dashShipRoot .ds-trendtop strong.big{font-size:28px;font-weight:700}
#dashShipRoot .ds-cmplegend{display:flex;gap:14px;font-size:12px;color:var(--dsink2)}
#dashShipRoot .ds-cmplegend i{display:inline-block;width:12px;height:9px;border-radius:2px;margin-right:5px;vertical-align:middle}
#dashShipRoot .ds-tchart{width:100%;height:230px;display:block;margin-top:12px}
#dashShipRoot .ds-xl{display:flex;justify-content:space-between;color:var(--dsmut);font-size:11.5px;margin-top:4px}
#dashShipRoot .ds-tip{position:fixed;pointer-events:none;background:var(--dsink);color:#fff;font-size:12px;padding:5px 8px;border-radius:6px;display:none;z-index:10;white-space:nowrap}

@media(max-width:1180px){
  #dashShipRoot .ds-flow2{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  #dashShipRoot .ds-flow2{grid-template-columns:1fr}
}
@media(max-width:640px){
  #dashShipRoot .ds-flownums{grid-template-columns:1fr}
}

/* Dark mode — redefine the #dashShipRoot tokens themselves (ds-ink/mut/line/etc.), not just a
   handful of class overrides, so every rule in this file that already reads var(--dsink) etc.
   (the vast majority of the redesign's own text) goes light-on-dark automatically instead of
   staying near-black on the new dark card backgrounds below. */
html[data-theme="dark"] #dashShipRoot{--dsline:rgba(255,255,255,.12);--dsl2:rgba(255,255,255,.22);--dsink:#e2e8f0;--dsink2:#aab6c4;--dsmut:#8ea0b3;--dsacc:#5aa9d6;--dsamber:#e3a23b;--dsok:#4ade80;--dswarn:#e3a23b;--dsbad:#f87171;--dsviolet:#a78bfa}
html[data-theme="dark"] #dashShipRoot .ds-stage1::after{background:#0f1e2e;border-color:rgba(255,255,255,.15);color:#aab6c4}
html[data-theme="dark"] #dashShipRoot .ds-qmark{background:#0f1e2e;border-color:rgba(255,255,255,.22)}
html[data-theme="dark"] #dashShipRoot .ds-help-pop{background:#0f1e2e;border-color:rgba(255,255,255,.12);box-shadow:0 10px 30px rgba(0,0,0,.4)}
html[data-theme="dark"] #dashShipRoot .ds-head{background:linear-gradient(103deg,#060f18,#0d2c3e 62%,#123a52)}
html[data-theme="dark"] #dashShipRoot .ds-card,html[data-theme="dark"] #dashShipRoot .ds-mate,html[data-theme="dark"] #dashShipRoot .ds-kpi{background:#0f1e2e;border-color:rgba(255,255,255,.09)}
html[data-theme="dark"] #dashShipRoot .ds-mate.out{background:#0b1622}
html[data-theme="dark"] #dashShipRoot .ds-mname b,html[data-theme="dark"] #dashShipRoot .ds-mstats b{color:#e2e8f0}
html[data-theme="dark"] #dashShipRoot .ds-risk{background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.3)}
html[data-theme="dark"] #dashShipRoot .ds-kd.up{background:rgba(74,222,128,.15)}
html[data-theme="dark"] #dashShipRoot .ds-kd.down{background:rgba(248,113,113,.15)}
html[data-theme="dark"] #dashShipRoot .ds-mstats div,html[data-theme="dark"] #dashShipRoot .ds-outtag,html[data-theme="dark"] #dashShipRoot .ds-mate.out .ds-mstats div{background:rgba(255,255,255,.06)}
html[data-theme="dark"] #dashShipRoot .ds-seg{background:rgba(255,255,255,.08)}
html[data-theme="dark"] #dashShipRoot .ds-lchip{background:rgba(167,139,250,.12);border-color:rgba(167,139,250,.3)}
html[data-theme="dark"] #dashShipRoot .ds-lchip.zero{background:rgba(74,222,128,.12);border-color:rgba(74,222,128,.3)}
html[data-theme="dark"] #dashShipRoot .ds-seg button[aria-pressed="true"]{background:#16283a;color:#e2e8f0}
html[data-theme="dark"] #dashShipRoot .ds-sel{background:#0f1e2e;border-color:rgba(255,255,255,.15);color:#e2e8f0}

/* ── "Where parcels are" — the strip beside the channel table (2026-09-29) ──────────────────────
   Sits in the narrow column of the existing .ds-grid2, so it costs no extra vertical space. In
   that width the four figures read better stacked than in a row: label left, number right, a
   swatch tying each to its segment in the rail above. */
/* Ends where its content ends. A grid item stretches to the row height by default, so beside
   a long channel table the card ran on for a couple of hundred empty pixels below its own
   footer — which reads as a panel that failed to load the rest of itself. */
#dashShipRoot .ds-grid2 > #dsParcels{align-self:start}
#dashShipRoot .ds-pcsel{height:24px;border:1px solid var(--dsline);border-radius:6px;background:#fff;
  font:inherit;font-size:11.5px;color:var(--dsink2);padding:0 4px;max-width:130px}
#dashShipRoot .ds-pcsel:disabled{color:var(--dsl2)}
#dashShipRoot .ds-pcover{background:#fffbeb;border:1px solid #fde68a;color:var(--dswarn);
  border-radius:999px;padding:1px 8px;font-size:10.5px;font-weight:600}
#dashShipRoot .ds-pcrail{display:flex;height:4px;background:#f1f5f9}
#dashShipRoot .ds-pcrail i{display:block;height:100%}
#dashShipRoot .ds-pcrail i.wait{background:var(--dsamber)}
#dashShipRoot .ds-pcrail i.move{background:var(--dsacc)}
#dashShipRoot .ds-pcrail i.done{background:var(--dsok)}
#dashShipRoot .ds-pcrail i.none{background:var(--dsl2)}
#dashShipRoot .ds-pcrow{display:flex;align-items:center;gap:10px;width:100%;border:none;
  background:none;padding:9px 16px;font:inherit;text-align:left;cursor:pointer;
  border-bottom:1px solid #f1f5f9;color:inherit}
#dashShipRoot .ds-pcrow:hover{background:#fbfcfd}
#dashShipRoot .ds-pcrow .sw{width:8px;height:8px;border-radius:2px;flex:none}
#dashShipRoot .ds-pcrow .k{font-size:12.5px;color:var(--dsink2)}
#dashShipRoot .ds-pcrow .v{margin-left:auto;font-size:17px;font-weight:600}
#dashShipRoot .ds-pcrow[aria-pressed="true"]{background:#f8fafc}
#dashShipRoot .ds-pcrow[aria-pressed="true"] .k{font-weight:600;color:var(--dsink)}
#dashShipRoot .ds-pcrow.wait .sw{background:var(--dsamber)} #dashShipRoot .ds-pcrow.wait .v{color:var(--dsamber)}
#dashShipRoot .ds-pcrow.move .sw{background:var(--dsacc)}   #dashShipRoot .ds-pcrow.move .v{color:var(--dsacc)}
#dashShipRoot .ds-pcrow.done .sw{background:var(--dsok)}    #dashShipRoot .ds-pcrow.done .v{color:var(--dsok)}
#dashShipRoot .ds-pcrow.none .sw{background:var(--dsl2)}    #dashShipRoot .ds-pcrow.none .v{color:var(--dsl2)}
#dashShipRoot .ds-pcfoot{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:9px 16px;
  font-size:11px;color:var(--dsmut);background:#fbfcfd}
#dashShipRoot .ds-pcfoot a{color:var(--dsacc);text-decoration:none;font-weight:600}
#dashShipRoot .ds-pcfoot a:hover{text-decoration:underline}
/* The oldest parcel still sitting with us. The amber figure above says how many are waiting;
   this says how long the worst of them has been — which is the part that decides whether the
   number matters this morning or not. */
#dashShipRoot .ds-pcage{padding:8px 16px;font-size:11.5px;color:var(--dsink2);border-top:1px solid #f1f5f9}
#dashShipRoot .ds-pcage b{color:var(--dsamber)}
#dashShipRoot .ds-pcempty{padding:18px 16px;font-size:12.5px;color:var(--dsmut)}
