.wh-page, .wh-dialog {
  --wh-border: var(--line, #dde1e1);
  --wh-muted: var(--muted, #60676b);
  --wh-ink: var(--ink, #1c2528);
  color:var(--wh-ink);
  font-family:var(--font-ui);
  min-width:0;
}
.wh-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:24px; }
.wh-heading h1 { margin:0; font-size:clamp(30px,3.4vw,43px); line-height:1.1; letter-spacing:-.055em; font-weight:650; }
.wh-heading p { margin:8px 0 0; color:var(--wh-muted); line-height:1.55; font-size:15px; max-width:65ch; }
.wh-actions,.wh-inline-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.wh-inline-actions { gap:14px; }
.wh-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.wh-tile { border:1px solid var(--wh-border); border-radius:15px; background:var(--surface,#fff); padding:20px 22px; min-width:0; text-align:left; display:grid; gap:6px; color:var(--wh-ink); }
.wh-tile:hover { border-color:#9ca6a4; }
.wh-tile span { font-weight:580; font-size:15px; }
.wh-tile strong { font-size:clamp(28px,3vw,40px); line-height:1.06; font-weight:620; letter-spacing:-.055em; }
.wh-tile small { font-size:13px; color:var(--wh-muted); }
.wh-panel { border:1px solid var(--wh-border); border-radius:16px; background:var(--surface,#fff); overflow:hidden; min-width:0; margin-bottom:20px; }
.wh-section-heading { display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between; padding:20px 22px; }
.wh-section-heading h2 { margin:0; font-size:20px; font-weight:630; letter-spacing:-.035em; }
.wh-section-heading .btn { min-height:36px; padding:7px 12px; font-size:14px; }
.wh-table-wrap { max-width:100%; overflow-x:auto; }
.wh-table { border-collapse:collapse; width:100%; text-align:left; font-size:14px; font-variant-numeric:tabular-nums; }
.wh-table th { background:#f5f6f6; color:var(--wh-muted); font-size:13px; font-weight:550; border-block:1px solid var(--wh-border); white-space:nowrap; }
.wh-table th,.wh-table td { padding:13px 15px; vertical-align:middle; }
.wh-table th:first-child,.wh-table td:first-child { padding-left:22px; }
.wh-table th:last-child,.wh-table td:last-child { padding-right:22px; }
.wh-table tbody tr + tr td { border-top:1px solid var(--wh-border); }
.wh-table strong { font-weight:580; }
.wh-table small,.wh-order-intro small { display:block; color:var(--wh-muted); font-size:12px; margin-top:3px; }
.wh-row-link { border:0; background:transparent; font:inherit; font-weight:580; color:inherit; padding:4px 0; text-align:left; text-decoration:underline; text-decoration-color:#a5afaa; text-underline-offset:3px; cursor:pointer; }
.wh-row-link:hover { text-decoration-color:currentColor; }
.wh-stage { display:inline-flex; align-items:center; width:fit-content; border-radius:20px; background:#f0f2f1; color:#45515a; white-space:nowrap; font-size:12px; line-height:1.4; font-weight:550; padding:4px 9px; }
.wh-stage-to_pick { color:#75521e; background:#f6f0df; }
.wh-stage-picked { color:#405b77; background:#ecf2f8; }
.wh-stage-packed { color:#59466b; background:#f1edf9; }
.wh-stage-dispatched { color:#345c47; background:#e9f3ec; }
.wh-stage-cancelled { color:#73534a; background:#f4ece8; }
.wh-filters { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; padding:20px 22px; }
.wh-filter,.wh-form > label { display:grid; min-width:0; gap:7px; font-size:14px; font-weight:580; }
.wh-filter { flex:0 1 235px; }
.wh-search { flex:1 1 260px; }
.wh-filter input,.wh-filter select,.wh-form input,.wh-form select { width:100%; min-width:0; min-height:42px; border:1px solid var(--wh-border); border-radius:9px; background:#fff; color:var(--wh-ink); padding:8px 12px; font:inherit; font-weight:400; box-sizing:border-box; }
.wh-filter select,.wh-form select { appearance:auto; cursor:pointer; }
.wh-legend,.wh-ledger-start,.wh-help { color:var(--wh-muted); font-size:13px; line-height:1.52; }
.wh-ledger-start { padding:0 22px 16px; margin:0; }
.wh-stock-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; border-top:1px solid var(--wh-border); }
.wh-stock-stats > div { padding:18px 22px; }
.wh-stock-stats > div + div { border-left:1px solid var(--wh-border); }
.wh-stock-stats dt { color:var(--wh-muted); margin:0 0 5px; font-size:13px; }
.wh-stock-stats dd { margin:0; font-weight:640; font-size:24px; letter-spacing:-.04em; }
.wh-footer { padding:12px 22px; border-top:1px solid var(--wh-border); }
.wh-empty { padding:35px 20px; text-align:center; }
.wh-empty strong { font-weight:600; }
.wh-empty p { margin:7px 0 0; font-size:14px; color:var(--wh-muted); }
.wh-order-intro { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.wh-details { margin:10px 0; }
.wh-details > div { padding:9px 0; border-bottom:1px solid var(--wh-border); display:flex; justify-content:space-between; gap:16px; }
.wh-details dt { font-size:14px; color:var(--wh-muted); }
.wh-details dd { margin:0; text-align:right; font-size:14px; overflow-wrap:anywhere; }
.wh-dialog-lead { margin:0; font-size:16px; font-weight:580; }
.wh-dialog .wh-table th,.wh-dialog .wh-table td { padding:10px 8px; }
.wh-form { display:grid; gap:14px; }
.wh-form > p { margin:0; }
.wh-form label > small { display:contents; font-weight:400; color:var(--wh-muted); }
.wh-form .btn { justify-self:start; }
.wh-dialog-stats { border:1px solid var(--wh-border); border-radius:9px; }
.wh-dialog-stats > div { padding:12px; }
.wh-dialog-stats dd { font-size:20px; }
.wh-preview,.wh-help,.wh-order-form > p { color:var(--wh-muted); font-size:14px; line-height:1.5; }
.wh-preview:empty { display:none; }
.wh-error,.wh-notice { color:#85432f; font-size:14px; line-height:1.5; }
.wh-notice { background:#fbf2e6; border-radius:8px; padding:10px 12px; margin:0 0 12px; }
.wh-order-form { margin-top:17px; }
@media(max-width:690px) {
  .wh-heading { margin-bottom:18px; }
  .wh-tiles { gap:8px; margin-bottom:14px; }
  .wh-tile { padding:14px 10px; border-radius:11px; }
  .wh-tile span { font-size:14px; }
  .wh-tile small { font-size:12px; }
  .wh-section-heading,.wh-filters { padding:15px; }
  .wh-section-heading h2 { font-size:18px; }
  .wh-filter,.wh-search { flex:1 1 175px; }
  .wh-filter input,.wh-filter select,.wh-form input,.wh-form select { font-size:16px; }
  .wh-stock-stats > div { padding:12px; }
  .wh-page .wh-table, .wh-page .wh-table tbody, .wh-page .wh-table tr { display:block; }
  .wh-page .wh-table thead { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .wh-page .wh-table tbody tr { padding:12px 15px; border-top:1px solid var(--wh-border); }
  .wh-page .wh-table tbody td { display:grid; grid-template-columns:minmax(100px,36%) minmax(0,1fr); gap:8px; align-items:center; padding:4px 0; border:0; }
  .wh-page .wh-table tbody td:before { content:attr(data-label); color:var(--wh-muted); font-weight:480; font-size:12px; }
  .wh-page .wh-table tbody td:has(small) > small { grid-column:2; margin-top:-5px; }
  .wh-page .wh-row-link { width:fit-content; }
  .wh-ledger-start { padding:0 15px 14px; }
  .wh-stage { justify-self:start; }
  .wh-form > .btn { width:100%; }
}
