/* Warehouse-first design tokens (.whs) — single shared source. Do NOT re-declare inline in pages.
   Page-specific component classes (doors, order rows, pipeline, etc.) stay in their own component. */
.whs{ --navy:#16324A; --jade:#0E7C66; --jade-dark:#0A5F4E; --paper:#F6F5F2; --card:#fff;
      --line:#E3E0D8; --amber:#B7791F; --ink:#1E2530; --ink-soft:#5A6472;
      background:var(--paper); font-family:'Inter',sans-serif; font-size:18px; color:var(--ink);
      min-height:100vh; }
.whs .back{ font-size:15px; color:var(--ink-soft); background:none; border:none; cursor:pointer; padding:0; margin:8px 0 10px; }
.whs .eyebrow{ font-family:'Archivo',sans-serif; font-size:12.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--jade-dark); margin-bottom:4px; }
.whs .deliv-req{ background:#FBF3E3; color:var(--amber); border:1px solid #EAD7AE; }
.whs .deliv-sched{ background:#E8F3EF; color:var(--jade-dark); border:1px solid #A7D3C4; }

/* ── Warehouse product-qty screen (Stage 1, Option A — centered single column) ── */
.whx-wrap{ padding-bottom:104px; }                 /* clearance so the last card clears the sticky bar */
.whx-col{ max-width:680px; margin:0 auto; padding:14px 16px 0; }
.whx-h1{ font-family:'Archivo',sans-serif; font-size:26px; font-weight:800; color:var(--navy); letter-spacing:-.02em; margin:0 0 4px; }
.whx-lede{ font-size:15px; color:var(--ink-soft); margin:0 0 18px; line-height:1.4; }
.whx-loading{ font-size:16px; color:var(--ink-soft); padding:12px 0; }
.whx-empty{ border:1px solid #EAD7AE; background:#FBF3E3; border-radius:12px; padding:16px; font-size:16px; color:var(--amber); }
.whx-card{ display:flex; gap:13px; align-items:flex-start; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:14px; margin-bottom:12px; }
.whx-card.on{ border:2px solid var(--jade); box-shadow:0 3px 14px rgba(14,124,102,.14); padding:13px; }
.whx-photo{ flex-shrink:0; width:60px; height:60px; border-radius:12px; background:#fff; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.whx-photo img{ width:100%; height:100%; object-fit:contain; }
.whx-photo.fallback{ background:#F1EFEA; border:none; font-size:30px; }
.whx-main{ flex:1 1 auto; min-width:0; }           /* min-width:0 lets the text column shrink so dims wrap normally, never per-word-collapse */
.whx-badges{ display:flex; gap:6px; margin-bottom:4px; flex-wrap:wrap; }
.whx-badge{ font-family:'Inter',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:.05em; padding:2px 7px; border-radius:999px; white-space:nowrap; }
/* Matches the Catalog page's .badge-estar / .badge-ada exactly (same source, same look). */
.whx-es{ background:#ecfdf5; color:#059669; border:1px solid #a7f3d0; }
.whx-ada{ background:#eff6ff; color:#2563eb; border:1px solid #bfdbfe; }
.whx-dims{ font-family:'Archivo',sans-serif; font-weight:800; font-size:14px; color:var(--navy); letter-spacing:-.02em; line-height:1.3; }
.whx-model{ font-family:'Archivo',sans-serif; font-weight:700; font-size:14px; color:var(--ink); margin-top:3px; line-height:1.3; }
.whx-pname{ font-family:'Inter',sans-serif; font-weight:500; font-size:13px; color:#8A93A0; }
/* Finish is identifying, not decoration — same weight treatment as the review card + order detail. */
.whx-finish{ font-weight:700; color:var(--ink); }
.whx-price{ font-size:14px; color:var(--ink-soft); margin-top:3px; }
.whx-specs{ margin-top:7px; font-family:'Inter',sans-serif; font-size:13px; font-weight:600; color:var(--jade); background:none; border:none; padding:0; cursor:pointer; }
.whx-qty{ flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:4px; }
.whx-qty label{ font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#8A93A0; }
.whx-qty input{ width:58px; height:46px; text-align:center; border:1.5px solid var(--line); border-radius:10px; font-family:'Archivo',sans-serif; font-size:20px; font-weight:800; color:var(--navy); background:#fff; }
.whx-qty input:focus{ outline:none; border-color:var(--jade); }
/* Suppress the native number steppers. Presentation only — the input stays type=number, so
   inputmode/numeric keypad, typing, and ArrowUp/ArrowDown all still work. */
.whx-qty input[type=number]{ -moz-appearance:textfield; appearance:textfield; }
.whx-qty input[type=number]::-webkit-outer-spin-button,
.whx-qty input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
/* sticky total bar — fixed to viewport bottom, inner column matches the content width */
.whx-bar{ position:fixed; left:0; right:0; bottom:0; background:rgba(255,255,255,.97); border-top:1px solid var(--line); box-shadow:0 -4px 16px rgba(22,50,74,.08); z-index:50; }
.whx-bar-inner{ max-width:680px; margin:0 auto; padding:12px 16px; display:flex; align-items:center; gap:14px; }
.whx-bar-meta{ flex:1 1 auto; min-width:0; font-size:13.5px; color:var(--ink-soft); line-height:1.35; }
.whx-bar-meta b{ font-family:'Archivo',sans-serif; font-size:19px; color:var(--navy); font-weight:800; }
.whx-review{ flex-shrink:0; font-family:'Archivo',sans-serif; font-weight:800; font-size:17px; padding:13px 22px; border-radius:12px; border:none; background:var(--jade); color:#fff; cursor:pointer; box-shadow:0 3px 10px rgba(14,124,102,.24); }
.whx-review:disabled{ background:#D5DADE; color:#94A0AC; box-shadow:none; cursor:not-allowed; }
/* ── Rep contact block (order confirmation) ── */
.whx-rep-line{ display:flex; align-items:baseline; gap:8px; margin-top:2px; }
.whx-rep-label{ flex-shrink:0; font-family:'Archivo',sans-serif; font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#5A6472; min-width:52px; }
/* min-width:0 lets the value column shrink below its content width, and overflow-wrap lets a
   long unbroken address (scotn@pacificappliancegroup.com) break — without both, the email
   ran ~48px past the card's right edge at 390px. */
.whx-rep-link{ color:var(--jade); text-decoration:none; font-size:16px; min-width:0; overflow-wrap:anywhere; }
.whx-rep-link:hover{ text-decoration:underline; }
.whx-rep-plain{ font-size:16px; color:var(--ink); min-width:0; overflow-wrap:anywhere; }
.whx-rep-emailbtn{ font:inherit; font-size:16px; color:var(--jade); background:none; border:none; padding:0; cursor:pointer; text-align:left; text-decoration:underline; text-underline-offset:2px; min-width:0; overflow-wrap:anywhere; }

/* Email popover — anchored to the rep block, dismissed by backdrop click or Esc. */
.whx-pop-wrap{ position:relative; display:inline-block; min-width:0; max-width:100%; }
.whx-pop-backdrop{ position:fixed; inset:0; z-index:1200; background:transparent; border:none; padding:0; }
.whx-pop{ position:absolute; left:0; top:calc(100% + 6px); z-index:1201; min-width:236px;
          background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px;
          box-shadow:0 12px 30px rgba(22,50,74,.18); }
.whx-pop-addr{ font-size:13px; color:var(--ink-soft); padding:6px 10px 8px; word-break:break-all; border-bottom:1px solid var(--line); margin-bottom:4px; }

/* ── Status chip + explainer popover (warehouse order surfaces) ── */
.whx-chip{ display:inline-flex; align-items:center; gap:5px; font-family:'Inter',sans-serif;
           font-size:13px; font-weight:600; padding:3px 10px; border-radius:999px; white-space:nowrap; }
.whx-chip-btn{ border:none; cursor:pointer; font:inherit; font-size:13px; font-weight:600; }
.whx-chip-q{ display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px;
             border-radius:50%; border:1.2px solid currentColor; font-size:9.5px; font-weight:800;
             opacity:.65; line-height:1; }
.whx-pop-wide{ min-width:min(300px, calc(100vw - 40px)); max-width:min(340px, calc(100vw - 32px)); padding:12px 14px; }
.whx-pop-title{ font-family:'Archivo',sans-serif; font-size:12px; font-weight:700; letter-spacing:.08em;
                text-transform:uppercase; color:var(--jade-dark); margin-bottom:6px; }
.whx-pop-body{ font-size:14.5px; line-height:1.5; color:var(--ink); overflow-wrap:anywhere; }
.whx-pop-item{ display:flex; align-items:center; gap:9px; width:100%; background:none; border:none;
               padding:9px 10px; border-radius:8px; cursor:pointer; font-family:'Inter',sans-serif;
               font-size:15px; color:var(--ink); text-align:left; text-decoration:none; }
.whx-pop-item:hover{ background:#F1EFEA; }
.whx-pop-ok{ font-size:13px; color:var(--jade-dark); padding:4px 10px 6px; }

/* ── Warehouse Order Review (Stage 2) ──────────────────────────────────────────────
   Line items are CARDS, not a table, so step 2 reads as the same app as step 1. No product
   photo here by design: model + description + finish carry identification, so the text has to
   do the work the photo does on step 1. The authoritative Order Total lives in the sticky bar
   (.whx-bar), same as step 1; the body block below is a quiet receipt, not the headline. */
.whr-sec{ font-family:'Archivo',sans-serif; font-size:12px; font-weight:700; letter-spacing:.1em;
          text-transform:uppercase; color:var(--ink-soft); margin:22px 0 8px; }

.whr-line{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:13px 14px; margin-bottom:10px;
           display:flex; gap:12px; align-items:flex-start; }
.whr-line-main{ flex:1 1 auto; min-width:0; }
.whr-line-model{ font-family:'Archivo',sans-serif; font-weight:800; font-size:15.5px; color:var(--navy); letter-spacing:-.01em; }
.whr-line-desc{ font-size:14px; color:var(--ink-soft); line-height:1.4; margin-top:2px; overflow-wrap:anywhere; }
/* Finish is an identifying attribute, not decoration — same weight treatment as order detail. */
.whr-line-finish{ font-weight:700; color:var(--ink); }
.whr-line-right{ flex-shrink:0; text-align:right; }
.whr-line-qty{ font-size:13px; color:var(--ink-soft); }
.whr-line-ext{ font-family:'Archivo',sans-serif; font-weight:800; font-size:17px; color:var(--navy); margin-top:1px; }
.whr-line-unit{ font-size:12.5px; color:#8A93A0; margin-top:1px; }
/* Destructive + quiet: must never compete with Continue. */
.whr-remove{ margin-top:6px; background:none; border:none; padding:0; cursor:pointer;
             font-family:'Inter',sans-serif; font-size:12.5px; color:#8A93A0; text-decoration:underline; text-underline-offset:2px; }
.whr-remove:hover{ color:#991b1b; }

/* PO gate — an outstanding task while unmet, a settled row once satisfied. Never an enforcement
   boundary: GoToVerifyFromReview remains the only gate. */
.whr-gate{ border:1.5px solid #EAD7AE; background:#FBF3E3; border-radius:14px; padding:14px; margin-top:6px; }
.whr-gate.done{ border-color:#A7D3C4; background:#E8F3EF; }
.whr-gate-title{ display:flex; align-items:center; gap:8px; font-family:'Archivo',sans-serif;
                 font-weight:800; font-size:15px; color:var(--amber); }
.whr-gate.done .whr-gate-title{ color:var(--jade-dark); }
.whr-gate-note{ font-size:13.5px; color:var(--ink-soft); margin:4px 0 10px; line-height:1.4; }
.whr-gate-mark{ display:inline-flex; align-items:center; justify-content:center; width:19px; height:19px;
                border-radius:50%; font-size:12px; font-weight:800; background:var(--amber); color:#fff; flex-shrink:0; }
.whr-gate.done .whr-gate-mark{ background:var(--jade); }

.whr-field{ margin-top:14px; }
.whr-label{ display:block; font-family:'Inter',sans-serif; font-size:14px; font-weight:700; color:var(--ink); margin-bottom:3px; }
.whr-opt{ font-weight:500; color:#8A93A0; }
.whr-hint{ font-size:13px; color:var(--ink-soft); margin:0 0 7px; line-height:1.4; }
.whr-input, .whr-textarea{ width:100%; box-sizing:border-box; padding:11px 12px; border:1.5px solid var(--line);
       border-radius:10px; font-family:'Inter',sans-serif; font-size:16px; color:var(--ink); background:#fff; outline:none; }
.whr-textarea{ resize:vertical; min-height:74px; }
.whr-input:focus, .whr-textarea:focus{ border-color:var(--jade); }

/* Receipt — the arithmetic, deliberately quiet. The total itself is in the sticky bar. */
.whr-receipt{ border-top:1px solid var(--line); margin-top:14px; padding-top:10px; }
.whr-row{ display:flex; justify-content:space-between; gap:12px; font-size:13.5px; color:var(--ink-soft); margin-bottom:3px; }
.whr-row-val{ color:var(--ink); }
.whr-row.save .whr-row-val, .whr-row.save span{ color:var(--jade); }
.whr-row.freight .whr-row-val, .whr-row.freight span{ color:var(--amber); }
.whr-err{ background:#FEF2F2; border:1px solid #FECACA; border-radius:10px; padding:10px 13px;
          margin-top:12px; font-size:14px; color:#991B1B; font-weight:600; }

/* Inline order-total row for STATIC warehouse surfaces (order-status, future receipts). The order
   wizard delegates its total to the sticky bar (.whx-bar); a static page has no bar, so it renders
   this emphasized inline row instead. Lives here — not page-local — so every static surface shares it. */
.whr-total{ display:flex; justify-content:space-between; align-items:baseline; gap:12px;
            margin-top:10px; padding-top:11px; border-top:1px solid var(--line); }
.whr-total-label{ font-family:'Archivo',sans-serif; font-weight:700; font-size:15px; color:var(--navy); }
.whr-total-val{ font-family:'Archivo',sans-serif; font-weight:800; font-size:22px; color:var(--navy); letter-spacing:-.02em; }
/* Delivery-detail label/value rows — quiet like the receipt. */
.whr-dl{ display:flex; justify-content:space-between; gap:12px; font-size:15px; margin-bottom:6px; }
.whr-dl:last-child{ margin-bottom:0; }
.whr-dl-label{ color:var(--ink-soft); }
.whr-dl-val{ color:var(--ink); font-weight:600; text-align:right; }

/* ── Warehouse Verify + Confirmation (Stage 3/4, Option A) ── */
/* Jade segmented choice chips — same jade-selected language as the Stage 1 product cards
   (.whx-card.on). Replaces the shared VerifySubmit's blue radio rows. */
.whr-seg{ display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap; }
.whr-seg-btn{ flex:1 1 0; min-width:140px; font-family:'Inter',sans-serif; font-size:16px; font-weight:600;
              padding:13px 16px; border-radius:12px; border:1.5px solid var(--line); background:#fff;
              color:var(--ink-soft); cursor:pointer; text-align:center; }
.whr-seg-btn.on{ border:2px solid var(--jade); background:#E8F3EF; color:var(--jade-dark);
                 box-shadow:0 3px 12px rgba(14,124,102,.14); padding:12px 15px; }
/* Muted read-back of an earlier entry — quiet, NOT the amber warning treatment. */
.whr-recap{ background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:12px 14px; margin-bottom:16px; }
.whr-recap-label{ font-family:'Archivo',sans-serif; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:3px; }
.whr-recap-body{ font-size:16px; color:var(--ink); white-space:pre-wrap; }
/* Checkbox rows (text-OK, authorize) — jade highlight when checked, matching the chip language. */
.whr-check{ display:flex; align-items:flex-start; gap:12px; padding:13px 14px; border:1px solid var(--line); border-radius:12px; margin-bottom:12px; cursor:pointer; }
.whr-check.on{ border-color:var(--jade); background:#E8F3EF; }
.whr-check input{ width:18px; height:18px; accent-color:var(--jade); margin-top:2px; flex-shrink:0; }
.whr-check-title{ font-size:16px; font-weight:600; color:var(--ink); }
.whr-check-sub{ font-size:14px; color:var(--ink-soft); margin-top:2px; }
/* Full-width jade submit — Verify has no sticky bar, so Place Order is an inline anchor button. */
.whr-submit{ width:100%; font-family:'Archivo',sans-serif; font-weight:800; font-size:18px; padding:15px; border-radius:12px; border:none; background:var(--jade); color:#fff; cursor:pointer; box-shadow:0 3px 10px rgba(14,124,102,.24); }
.whr-submit:disabled{ background:#D5DADE; color:#94A0AC; box-shadow:none; cursor:not-allowed; }
/* Confirmation hero — no sticky bar; the Order Total is a body anchor (.whr-total) instead. */
.whr-conf-hero{ text-align:center; padding:20px 0 8px; }
.whr-conf-check{ width:64px; height:64px; border-radius:50%; background:#D1FAE5; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-size:32px; color:var(--jade); }
.whr-conf-title{ font-family:'Archivo',sans-serif; font-size:24px; font-weight:800; color:var(--navy); letter-spacing:-.02em; margin:0 0 4px; }
.whr-conf-sub{ font-size:15px; color:var(--ink-soft); margin:0 0 14px; }
.whr-conf-num{ display:inline-block; background:var(--navy); color:#fff; padding:12px 24px; border-radius:12px; font-family:'Archivo',sans-serif; font-weight:800; font-size:19px; letter-spacing:.02em; }
.whr-conf-msg{ background:#EFF6FF; border:1px solid #BFDBFE; border-radius:12px; padding:16px; margin:18px 0; font-size:16px; color:#1E40AF; line-height:1.5; }
.whr-conf-msg b{ display:block; margin-top:8px; }
/* Two actions — stack full-width at 390 (default), sit side by side from 768. */
.whr-conf-actions{ display:flex; flex-direction:column; gap:12px; margin-top:8px; }
.whr-conf-btn{ display:block; width:100%; box-sizing:border-box; text-align:center; text-decoration:none;
               font-family:'Archivo',sans-serif; font-weight:800; font-size:17px; padding:14px 18px;
               border-radius:12px; border:none; background:var(--navy); color:#fff; cursor:pointer; }
.whr-conf-btn-alt{ background:#fff; color:var(--navy); border:1.5px solid var(--line); }
/* Print / Save-PDF action — shared by the warehouse confirmation + order-status surfaces. */
.whr-printbtn{ display:inline-flex; align-items:center; gap:7px; font-family:'Archivo',sans-serif;
  font-weight:700; font-size:15px; padding:11px 18px; border-radius:12px; border:1.5px solid var(--jade);
  background:#fff; color:var(--jade-dark); cursor:pointer; text-decoration:none; }
.whr-printbtn:disabled{ border-color:var(--line); color:#94A0AC; cursor:default; }

@media (min-width:768px){
  .whx-photo{ width:84px; height:84px; }
  .whx-dims{ font-size:17px; }
  .whx-model{ font-size:15px; }
  /* More room, same arrangement — nothing reflows or reorders. */
  .whr-line{ padding:16px 18px; }
  .whr-line-model{ font-size:17px; }
  .whr-line-desc{ font-size:15px; }
  .whr-line-ext{ font-size:19px; }
  .whr-input, .whr-textarea{ font-size:17px; }
  /* Confirmation actions sit side by side with room to breathe once past phone width. */
  .whr-conf-actions{ flex-direction:row; justify-content:center; }
  .whr-conf-btn{ width:auto; min-width:200px; }
}
