/* New admin page (parallel trial). Tokens follow DESIGN.md section 10 (2026-11-02, Linear / Attio style). */
:root {
  --bg: #F7F7F8;
  --panel: #FFFFFF;
  --soft: #FAFAFB;
  --line: #ECECEF;
  --row-line: #F1F1F3;
  --menu-line: #E4E4E7;
  --input-line: #DCDCE0;
  --photo: #F4F4F5;
  --ink: #18181B;
  --ink-2: #3F3F46;
  --ink-3: #71717A;
  --ink-4: #A1A1AA;
  --brand: #5E6AD2;
  --brand-hover: #4F5BC4;
  --brand-deep: #3E48A8;
  --brand-soft: #EEF0FC;
  --focus-ring: rgba(94, 106, 210, 0.22);
  --badge-bg: #EEF0FC;
  --badge-fg: #3E48A8;
  --private-bg: #FAFAFB;
  --private-input: #FFFFFF;
  --private-line: #ECECEF;
  --warn-bg: #FEF7EC;
  --warn-fg: #B45309;
  --bad-bg: #FEF2F2;
  --bad-fg: #DC2626;
  --ok-bg: #ECFDF3;
  --ok-fg: #067647;
  --shadow: 0 0 0 1px #ECECEF, 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-pop: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(16, 24, 40, 0.14);
  --mask: rgba(24, 24, 27, 0.32);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 13px; line-height: 20px; letter-spacing: -0.003em; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }
.warn-text { color: var(--warn-fg); }
.bad-text { color: var(--bad-fg); }
.ok-text { color: var(--ok-fg); }

/* Line icons (inline SVG) */
.ic { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 360px; max-width: 100%; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 0; font-size: 19px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.login-card .field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 12.5px; color: var(--ink-2); }
.login-error { color: var(--bad-fg); font-size: 12.5px; min-height: 18px; }
.trial-note { font-size: 12px; line-height: 17px; color: var(--ink-3); }

/* Inputs and buttons */
.input { height: 32px; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 6px; background: #FFFFFF; outline: none; width: 100%; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.btn { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; box-shadow: 0 0 0 1px var(--input-line), 0 1px 2px rgba(16, 24, 40, 0.05); }
.btn:hover { background: var(--soft); color: var(--ink); }
.btn .ic { width: 14px; height: 14px; }
.btn.primary { background: var(--brand); color: #FFFFFF; box-shadow: 0 0 0 1px #5560C8, 0 1px 2px rgba(94, 106, 210, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn.primary:hover { background: var(--brand-hover); color: #FFFFFF; }
.btn.accent { color: var(--brand-deep); box-shadow: 0 0 0 1px #C7CCF3, 0 1px 2px rgba(16, 24, 40, 0.05); }
.btn.accent:hover { background: var(--brand-soft); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn.big { height: 32px; padding: 0 14px; }
.btn.small { height: 26px; padding: 0 9px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar { flex: none; width: 232px; background: #FBFBFC; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 12px; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #6E79DE, #4F5BC4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); color: #FFFFFF; font-weight: 600; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.brand-name { display: flex; flex-direction: column; }
.brand-name b { font-size: 13.5px; font-weight: 600; }
.brand-name span { font-size: 11.5px; line-height: 16px; color: var(--ink-3); }
.side-label { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 4px; font-size: 11.5px; font-weight: 500; color: var(--ink-4); }
.side-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; border: 0; background: transparent; text-align: left; width: 100%; color: var(--ink-3); }
.side-item:hover { background: rgba(0, 0, 0, 0.035); }
.side-item.on { background: #FFFFFF; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.05); color: var(--brand); }
.side-item .side-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-item b { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.side-item.on b { color: var(--ink); font-weight: 600; }
.side-item .side-sub { font-size: 11.5px; line-height: 16px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item[data-page] .side-sub { display: none; }
.badge { flex: none; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--badge-bg); color: var(--badge-fg); font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.avatar { width: 26px; height: 26px; border-radius: 999px; background: #E4E4E7; color: var(--ink-2); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.old-link { font-size: 11.5px; line-height: 16px; color: var(--ink-4); padding: 0 8px; }
.old-link:hover { color: var(--ink-2); }
.btn.pc-back { height: 56px; justify-content: center; font-size: 20px; font-weight: 600; text-decoration: none; }

.main { flex: 1; min-width: 0; padding: 18px 28px 40px; display: flex; flex-direction: column; gap: 14px; }

/* Batch header + five steps */
.batch-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.batch-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.batch-title .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.batch-title h1 { margin: 0; font-size: 19px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.batch-title .muted { font-size: 12px; color: var(--ink-4); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: #FFFFFF; color: var(--ink-3); box-shadow: 0 0 0 1px var(--line); }
.head-actions { display: flex; gap: 10px; align-items: center; }
.search-box { position: relative; width: 320px; }
.search-box .input { padding-left: 30px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 10px center / 14px no-repeat; }
.search-pop { position: absolute; top: 38px; right: 0; width: 460px; max-height: 420px; overflow-y: auto; background: #FFFFFF; border-radius: 10px; box-shadow: var(--shadow-pop); padding: 6px; z-index: 30; }
.search-hit { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.search-hit:hover, .search-hit.on { background: var(--soft); }
.search-group { padding: 6px 10px 2px; font-size: 11.5px; font-weight: 500; color: var(--ink-4); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: #FFFFFF; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.steps > li { display: flex; }
.step { flex: 1; width: 100%; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; border: 0; border-left: 1px solid var(--line); background: #FFFFFF; text-align: left; }
.steps li:first-child .step { border-left: 0; }
.step:hover { background: var(--soft); }
.step.on { box-shadow: inset 0 -2px 0 var(--brand); }
.step .step-top { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--ink-3); }
.step .step-top .ic { color: var(--ink-4); }
.step.on .step-top { color: var(--ink); }
.step.on .step-top .ic { color: var(--brand); }
.step .step-value { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.step .step-sub { font-size: 11.5px; line-height: 16px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .step-sub.todo { color: var(--warn-fg); }
.step .badge { margin-left: auto; }
.step-bar { display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: #EEEEF1; overflow: hidden; }
.step-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }

/* Toolbar chips */
.toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fchip { height: 28px; padding: 0 10px; border-radius: 6px; border: 0; background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fchip:hover { background: rgba(0, 0, 0, 0.04); }
.fchip .n { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.fchip.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.06); }
.fchip.on .n { color: var(--brand); }
.toolbar .spacer { flex: 1; }
.private-hint { font-size: 12px; color: var(--ink-4); white-space: nowrap; margin-right: 6px; }

/* Work area */
.work { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.work.single { grid-template-columns: minmax(0, 1fr); }
.card { background: var(--panel); border-radius: 10px; box-shadow: var(--shadow); }
.card.private { background: var(--private-bg); }
.card-pad { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-size: 13.5px; line-height: 20px; font-weight: 600; }
.foot-note { font-size: 12px; line-height: 17px; color: var(--ink-3); }

/* Quote + purchase table */
.qtable { overflow: clip; }
.qrow { display: grid; grid-template-columns: var(--mark-w, 116px) 36px minmax(0, 1fr) 36px 76px 76px 76px 128px 82px 56px; gap: 8px; align-items: center; padding: 6px 16px; border-bottom: 1px solid var(--row-line); cursor: pointer; }
.qrow:hover { background: var(--soft); }
.qrow.head { background: #FFFFFF; border-bottom-color: var(--line); font-size: 11.5px; line-height: 16px; font-weight: 500; color: var(--ink-4); cursor: default; padding-top: 9px; padding-bottom: 9px; white-space: nowrap; }
.qrow.head:hover { background: #FFFFFF; }
.qrow.cancelled { opacity: 0.55; }
.route-tag { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.route-tag.muted { color: var(--ink-4); }
.route-tag.split { flex-wrap: wrap; gap: 3px; padding: 3px 0; }
.route-tag.pick { border: 0; background: transparent; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.route-tag.pick.split { padding: 3px 0; }
.route-tag.pick:hover .tag, .route-tag.pick:focus-visible .tag { box-shadow: inset 0 0 0 1px var(--input-line); }
.route-tag.pick .tag::after { content: '▾'; margin-left: 3px; font-size: 9px; opacity: 0.55; }
.route-tag.pick.split .tag::after { content: none; }
.route-tag.pick.split .tag:last-child::after { content: '▾'; }
.route-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.route-bulk-note { flex-basis: 100%; font-size: 12px; opacity: 0.85; }
.route-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.btn.danger { color: var(--bad-fg); }
.btn.primary.danger { background: var(--bad-fg); color: #FFFFFF; box-shadow: none; }
.df-box { display: flex; flex-direction: column; gap: 8px; }
.df-ship { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.df-ship.void { opacity: 0.55; }
.df-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.df-notes { white-space: pre-wrap; }
.df-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.df-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.df-grid .wide { grid-column: 1 / -1; }
.df-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.df-field .seg { align-self: flex-start; }
.df-field textarea.input { height: auto; padding: 6px 10px; resize: vertical; font: inherit; font-weight: 400; }
.df-items { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; }
.df-item { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) 80px; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--row-line); font-weight: 400; }
.df-item:last-child { border-bottom: 0; }
.df-item .goods { display: flex; flex-direction: column; min-width: 0; }
.df-item:not(.on) .goods { color: var(--ink-3); }
.df-unit { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; font-size: 12px; }
.priv-h { color: var(--warn-fg); }
.mark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.photo { width: 36px; height: 36px; border-radius: 6px; background: var(--photo) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); flex: none; }
.photo.lg { width: 48px; height: 48px; border-radius: 8px; }
.goods { display: flex; flex-direction: column; min-width: 0; }
.goods .name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.goods .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods .sub { font-size: 12px; line-height: 17px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods .pnote { color: var(--ink-3); }
.goods .pnote.empty { color: var(--ink-4); }
.tag { flex: none; height: 20px; padding: 0 6px; border-radius: 5px; background: #F4F4F5; color: var(--ink-2); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }
.tag.warn { background: #FFF7ED; color: #C2410C; }
.tag.bad { background: var(--bad-bg); color: var(--bad-fg); }
.cell-input { height: 28px; width: 100%; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 13px; font-variant-numeric: tabular-nums; outline: none; text-overflow: ellipsis; }
.qrow:hover .cell-input, .pick-row .cell-input, .alloc-row .cell-input { border-color: var(--input-line); background: #FFFFFF; }
.cell-input:focus { border-color: var(--brand); background: #FFFFFF; box-shadow: 0 0 0 3px var(--focus-ring); }
.cell-input.private { background: transparent; }
.qrow:hover .cell-input.private { background: var(--private-input); border-color: var(--input-line); }
.cell-input.need { background: var(--warn-bg); }
.cell-input.need::placeholder { color: var(--warn-fg); }
.cell-input.saving { border-color: #B8BDE9; }
.cell-input.saved { border-color: #4CB782; }
.cell-input.failed { border-color: var(--bad-fg); }
.qty { text-align: right; font-variant-numeric: tabular-nums; }
.tick { width: 18px; height: 18px; border-radius: 5px; border: 1px solid #C4C4CC; background: #FFFFFF; color: #FFFFFF; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tick.on { background: var(--brand); border-color: var(--brand); }
.tick.disabled { opacity: 0.4; cursor: default; }
button.tick { cursor: pointer; }
/* 11-10: ticked rows on ② 采购 take one supplier at once */
.buy-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy-bulk .cell-input { width: 220px; height: 30px; border-color: var(--input-line); background: #FFFFFF; color: var(--ink); }
.table-foot { display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: #FFFFFF; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.empty-state { padding: 28px 16px; text-align: center; color: var(--ink-3); }

/* Status: progress ring + text */
.status-pill { justify-self: start; height: 24px; padding: 0 4px 0 0; border: 0; border-radius: 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; white-space: nowrap; color: var(--ink-2); --c: #A1A1AA; --p: 0%; }
.status-pill::before { content: ""; flex: none; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid var(--c); background: conic-gradient(var(--c) var(--p), transparent 0); }
.status-pill .caret { font-size: 10px; opacity: 0.45; }
.st-Unconfirmed { --c: #A1A1AA; }
.st-Confirmed { --c: #E2A33A; color: var(--ink); }
.st-Ordered { --c: #5E6AD2; --p: 30%; }
.st-Arrived { --c: #5E6AD2; --p: 50%; }
.st-Palletized { --c: #5E6AD2; --p: 75%; }
.st-Shipped { --c: #5E6AD2; --p: 100%; }
.st-Completed { --c: #4CB782; --p: 100%; }
.st-Cancelled { --c: #C4C4CC; color: var(--ink-4); text-decoration: line-through; }
.menu { position: fixed; z-index: 60; min-width: 220px; background: #FFFFFF; border-radius: 10px; box-shadow: var(--shadow-pop); padding: 4px; display: flex; flex-direction: column; gap: 1px; }
.menu-item { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 10px; border-radius: 6px; border: 0; background: transparent; text-align: left; font-size: 13px; }
.menu-item:hover { background: var(--soft); }
.menu-item.current { background: var(--brand-soft); color: var(--brand-deep); font-weight: 500; }
.menu-item.off { color: var(--ink-4); cursor: default; }
.menu-item.off:hover { background: transparent; }
.menu-item .hint { margin-left: auto; font-size: 11.5px; color: var(--ink-4); }
.menu-item.danger { color: var(--bad-fg); }
.menu-sep { height: 1px; background: var(--line); margin: 3px 6px; }
.menu .hint { color: var(--ink-4); }

/* Quote panel */
.modal.side { top: 0; right: 0; bottom: 0; left: auto; transform: none; width: 440px; max-width: 100%; max-height: none; border-radius: 0; padding: 18px 20px; box-shadow: -1px 0 0 var(--line), -16px 0 40px rgba(16, 24, 40, 0.10); }
.modal.side.slide { animation: side-in 0.16s ease-out; }
@keyframes side-in { from { transform: translateX(28px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal.side.slide { animation: none; } }
.modal.side .card { flex: 1; min-height: 0; box-shadow: none; padding: 0; }
.modal.side .quote-box { flex: 1; min-height: 120px; max-height: none; font-size: 13px; }
.toolbar .btn .n { color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 600; }
.toolbar h3 { margin: 0 6px 0 0; font-size: 13.5px; line-height: 20px; font-weight: 600; }
.quote-box { padding: 12px; border-radius: 8px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; line-height: 20px; white-space: pre-wrap; max-height: 320px; overflow-y: auto; }
.seg { display: inline-flex; padding: 2px; background: #F1F1F3; border-radius: 7px; }
.seg button { height: 26px; padding: 0 10px; border: 0; background: transparent; border-radius: 5px; font-size: 12.5px; color: var(--ink-3); }
.seg button.on { background: #FFFFFF; font-weight: 500; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }

/* Drawer (request detail) */
.mask { position: fixed; inset: 0; background: var(--mask); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 100%; background: #FFFFFF; box-shadow: -1px 0 0 var(--line), -16px 0 40px rgba(16, 24, 40, 0.10); z-index: 41; display: flex; flex-direction: column; }
.drawer-head { padding: 16px 24px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { flex: none; padding: 12px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.drawer-title { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.x-btn { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 18px; color: var(--ink-3); }
.x-btn:hover { background: var(--soft); color: var(--ink); }
.pnote-box { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.pnote-box .lbl { font-size: 12px; font-weight: 500; color: var(--ink-3); display: flex; gap: 8px; }
.pnote-box textarea { border: 0; background: transparent; resize: none; outline: none; min-height: 22px; font-size: 13px; line-height: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fsec { display: flex; flex-direction: column; gap: 6px; }
.fsec.private { margin: -8px -10px; padding: 8px 10px; border-radius: 8px; background: var(--private-bg); box-shadow: inset 0 0 0 1px var(--line); }
.fsec .sec-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.priv-tag { height: 20px; padding: 0 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-deep); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.frow > span:first-child { color: var(--ink-3); white-space: nowrap; }
.frow.wrap { align-items: flex-start; }
.frow.wrap > span:first-child { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.frow.wrap > span:last-child { flex: none; }
.frow .finput { width: 170px; height: 28px; padding: 0 9px; border: 1px solid var(--input-line); border-radius: 6px; background: #FFFFFF; text-align: right; font-size: 12.5px; outline: none; }
.frow .finput.wide { width: 220px; text-align: left; }
.frow .finput:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.frow .finput.changed { border-color: #E2A33A; background: #FFFCF5; }
.frow .calc { font-variant-numeric: tabular-nums; }
.changed-tag { margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--warn-bg); color: var(--warn-fg); font-size: 11.5px; line-height: 16px; }
.dsec { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.dsec .sec-title { font-size: 12.5px; font-weight: 600; }

/* Modal */
.modal { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 720px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); overflow-y: auto; background: #FFFFFF; border-radius: 12px; box-shadow: var(--shadow-pop); padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.modal .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal .lbl { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .box { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); }
.modal .box.private { background: var(--private-bg); }
.modal-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.modal-foot .grow { flex: 1; font-size: 12px; line-height: 17px; color: var(--ink-3); }
.tabs { display: flex; gap: 4px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.field-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field-grid label.full { grid-column: 1 / -1; }
.field-grid label > .lab { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-height: 20px; }
.field-hint { font-size: 12px; font-weight: 400; color: var(--warn-fg); }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 9px 14px; border-radius: 8px; background: #18181B; color: #FFFFFF; font-size: 13px; box-shadow: var(--shadow-pop); }
.toast.bad { background: var(--bad-fg); }

/* Plain list for other steps */
.plist .prow { display: grid; grid-template-columns: var(--mark-w, 116px) 38px minmax(0, 1fr) 60px 96px 1fr; gap: 10px; align-items: center; padding: 6px 16px; border-bottom: 1px solid var(--row-line); cursor: pointer; }
.plist .prow:hover { background: var(--soft); }
.plist .prow.head { background: #FFFFFF; border-bottom-color: var(--line); font-size: 11.5px; font-weight: 500; color: var(--ink-4); cursor: default; padding-top: 9px; padding-bottom: 9px; }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-fg); font-size: 12.5px; line-height: 19px; }
.notice.info { background: var(--brand-soft); color: var(--brand-deep); }
.new-version { position: fixed; z-index: 90; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); padding: 10px 18px; border: 0; border-radius: 999px; background: var(--brand); color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-pop); cursor: pointer; white-space: nowrap; }
.loading { padding: 40px; text-align: center; color: var(--ink-3); }

/* Warehouse: receive, pack, packages */
.select { height: 32px; max-width: 100%; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 6px; background: #FFFFFF; }
.wrow { display: grid; grid-template-columns: var(--mark-w, 116px) 38px minmax(0, 1fr) 44px 44px minmax(130px, 0.9fr) 92px; gap: 10px; align-items: center; padding: 6px 16px; border-bottom: 1px solid var(--row-line); cursor: pointer; }
.wrow:hover { background: var(--soft); }
.wrow.head { background: #FFFFFF; border-bottom-color: var(--line); font-size: 11.5px; font-weight: 500; color: var(--ink-4); cursor: default; padding-top: 9px; padding-bottom: 9px; }
.prog { display: flex; flex-direction: column; font-size: 12px; line-height: 17px; min-width: 0; }
.prog .short { color: var(--warn-fg); font-weight: 500; }
.prog .extra { color: var(--bad-fg); font-weight: 500; }
.prog .ok { color: var(--ok-fg); font-weight: 500; }
.prog .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row { display: grid; grid-template-columns: 24px var(--mark-w, 116px) 38px minmax(0, 1fr) 84px 72px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--row-line); }
.pick-row.on { background: var(--brand-soft); }
.pkg-card { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; border: 0; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); text-align: left; }
.pkg-card:hover, .pkg-card.on { box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px var(--focus-ring); }
.pkg-card .top { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.rd { flex: none; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; background: #F4F4F5; color: var(--ink-2); }
.rd-empty { background: #F4F4F5; color: var(--ink-3); }
.rd-loading { background: var(--warn-bg); color: var(--warn-fg); }
.rd-pending_measurements { background: var(--warn-bg); color: var(--warn-fg); }
.rd-ready { background: var(--ok-bg); color: var(--ok-fg); }
.rd-shipped { background: var(--brand-soft); color: var(--brand-deep); }
.mix { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn-fg); font-weight: 500; }
.modal.wide { width: 860px; }
.modal .lbl.inline { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 148px; overflow-y: auto; }
.pick-chip { display: flex; align-items: center; gap: 8px; width: 260px; padding: 6px 8px; border-radius: 8px; border: 0; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); text-align: left; }
.pick-chip:hover:not([disabled]) { box-shadow: 0 0 0 1px var(--brand); }
.pick-chip[disabled] { opacity: 0.55; cursor: default; }
.rline { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.rline.done { background: var(--soft); }
.rhead { display: flex; align-items: center; gap: 10px; }
.rhead .x-btn { margin-left: 0; }
.rfields { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.rfields label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.rfields .input { height: 32px; width: 120px; padding: 0 10px; }
.rfields .input.exc-note { flex: 1; min-width: 220px; width: auto; }
.rfields label.exc { flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; height: 32px; }
.route-pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 登记到货的“这次走”：一行排开（上面那条给详情用的是竖排）。 */
.rfields .route-pick { flex-direction: row; min-height: 32px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.thumb { width: 44px; height: 44px; border-radius: 6px; background: var(--photo) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.file-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.line-state { font-size: 12px; line-height: 18px; }
.line-state.ok { color: var(--ok-fg); font-weight: 500; }
.line-state.bad { color: var(--bad-fg); }
.line-state.warn { color: var(--warn-fg); }
.alloc-row { display: grid; grid-template-columns: var(--mark-w, 116px) minmax(0, 1fr) 64px 64px 116px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--row-line); }
.move-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin: 2px 0 6px; border-radius: 8px; background: var(--soft); font-size: 12.5px; }

@media (max-width: 1280px) {
  .work { grid-template-columns: minmax(0, 1fr); }
}

/* Photo lightbox */
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(18, 18, 20, 0.84); display: flex; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: var(--shadow-pop); background: #FFFFFF; }
.zoom .x-btn { position: fixed; top: 16px; right: 16px; color: #FFFFFF; background: rgba(255, 255, 255, 0.14); }
.photo, .thumb { cursor: zoom-in; }
.thumb-wrap { position: relative; display: inline-flex; }
.thumb-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 999px; border: 0; background: #18181B; color: #FFFFFF; font-size: 11px; line-height: 18px; padding: 0; }
.ph-wrap { position: relative; display: inline-flex; flex: none; }
.ph-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 999px; border: 2px solid #FFFFFF; background: #18181B; color: #FFFFFF; font-size: 13px; line-height: 20px; padding: 0; }
.ph-retry { min-height: 48px; padding: 6px 12px; border-radius: 8px; border: 1px dashed var(--bad-fg); background: var(--bad-bg); color: var(--bad-fg); font: inherit; font-size: 13px; font-weight: 600; }
.ship-row { display: grid; grid-template-columns: 130px 130px minmax(0, 1.2fr) minmax(0, 1fr) 80px; gap: 10px; align-items: center; padding: 9px 12px; border: 0; border-radius: 8px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--line); text-align: left; font-size: 12.5px; }
.ship-row:hover { box-shadow: 0 0 0 1px var(--brand); }
.ship-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ship-pkg { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 12.5px; }
.ship-pkg.on { background: var(--brand-soft); border-radius: 6px; }
.row-btns { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.exc-row { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid #FECACA; background: #FFFAFA; border-radius: 8px; text-align: left; font-size: 12.5px; }
.exc-row:hover { border-color: var(--bad-fg); }
.work.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1280px) { .work.even { grid-template-columns: minmax(0, 1fr); } }

/* Supplier board: pick one supplier, tick what goes this time; the right column is the picture 复制图片 copies */
.modal.board-modal { width: 1000px; }
.board-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 20px; align-items: start; }
.board-pick { border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 10px; background: #FAFAFA; min-width: 0; }
.board-bar { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.board-link { color: var(--brand); cursor: pointer; font-size: 12.5px; }
.board-link:hover { text-decoration: underline; }
.board-grp { margin: 12px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.brow { display: grid; grid-template-columns: 18px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--row-line); cursor: pointer; }
.board-grp + .brow { border-top: 0; }
.brow input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.brow .photo { width: 40px; height: 40px; }
.bgoods { display: flex; flex-direction: column; min-width: 0; }
.bgoods .nm { font-size: 13.5px; font-weight: 500; line-height: 18px; color: var(--ink); }
.bgoods .sub { font-size: 11.5px; line-height: 16px; color: var(--ink-3); overflow-wrap: anywhere; }
.bgoods .mk { font-family: ui-monospace, Menlo, monospace; color: var(--ink); }
.btags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.btags:empty { display: none; }
.btags .tag { height: 18px; font-size: 11px; }
.btags .board-link { font-size: 11px; margin-left: 2px; }
.tag.info { background: #EEF0FB; color: #4148A8; }
.board-sides { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 12px; color: var(--ink-3); cursor: default; }
.board-sides .input { width: 46px; height: 26px; padding: 0; text-align: center; font-weight: 600; color: var(--ink); }
.board-sides .muted { margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.brow .bq { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.board-fold { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); }
.board-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.board-side-h { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.board-side-h b { margin-left: auto; font-weight: 600; white-space: nowrap; }
.board-shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #F3F4F6; }
.board-shot img { display: block; width: 100%; transition: opacity 0.12s; }
.board-shot img.stale { opacity: 0.45; }
@media (max-width: 900px) { .board-cols { grid-template-columns: minmax(0, 1fr); } .board-side { position: static; } }
.exc-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px; border-radius: 8px; background: #FFFAFA; box-shadow: inset 0 0 0 1px #FECACA; }
.exc-box .input { height: 32px; padding: 0 10px; }
.exc-box .input.exc-note { flex: 1; min-width: 200px; }
.other-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 5px; background: #F1F2F4; color: var(--ink-2); font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.other-tag.mix { background: #FFF1E6; color: #C2410C; }
/* (11-18) A package holding another batch's goods: an orange tag, distinct from the amber of 装货中 / 待称重. */
.mix-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid #FDBA74; border-radius: 5px; background: #FFF1E6; color: #C2410C; font-size: 11.5px; font-weight: 600; line-height: 18px; white-space: nowrap; vertical-align: 1px; }
.mix-in { color: #C2410C; font-weight: 600; }
.mix-box { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #FDBA74; border-radius: 8px; background: #FFF7ED; color: #9A3412; font-size: 12.5px; line-height: 19px; }
.mix-box .mix-h { font-weight: 600; margin-bottom: 2px; }
.mix-box .mix-line { color: #3F3F46; }
.mix-box .mix-line b { font-weight: 600; white-space: nowrap; }
.mix-box .mix-q { color: #9A3412; white-space: nowrap; }
.mix-box.phone { margin: 10px 16px 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; line-height: 22px; }
.pkg-card.mixed:not(.on):not(:hover) { box-shadow: 0 0 0 1px #FDBA74; }
.pkg-card .mix-tag { align-self: flex-start; margin: 2px 0 0; }
.w-pkg .mix-tag, .wd-pk .mix-tag { font-size: 13px; line-height: 20px; }
/* In 登记到货 the whole line stays readable on a phone: the 左右 hint is what the warehouse counts by. */
.rline .goods .name, .rline .goods .sub { white-space: normal; overflow: visible; }

/* ---------- Warehouse phone (仓库手机版, 11-03). Mockup: docs/design-样张/mobile-手机样张.html, frames w1–w7.
   Bigger type and targets than the admin page: the warehouse staff are older and work one-handed. ---------- */
body.w-body { font-size: 17px; line-height: 24px; background: var(--bg); }
.w-app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 112px; }
.w-app .ic { width: 22px; height: 22px; }
.w-preview { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--brand-soft); color: var(--brand-deep); font-size: 14px; }
.w-preview a { margin-left: auto; color: var(--brand-deep); font-weight: 600; }
.w-bar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.w-bar .w-ib { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.w-bar .w-ib:disabled { opacity: .35; }
.w-bar .w-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w-bar .w-ttl b { font-size: 18px; line-height: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-bar .w-ttl span { font-size: 14px; line-height: 18px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.w-tile { border: 0; text-align: left; background: #FFFFFF; border-radius: 14px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; cursor: pointer; }
.w-tile .h { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.w-tile .h .ic { color: var(--brand); width: 24px; height: 24px; }
.w-tile .big { font-size: 28px; line-height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-tile .d { font-size: 14px; color: var(--ink-3); line-height: 20px; }
.w-card { margin: 4px 16px 12px; background: #FFFFFF; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.w-card h5 { margin: 0; padding: 12px 16px 6px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.w-rr { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--row-line); font-size: 16px; }
.w-rr .b { flex: 1; min-width: 0; }
.w-rr .t2 { font-size: 14px; color: var(--ink-3); }
.w-rr.sub { padding-left: 40px; font-size: 15px; }
.w-link { border: 0; background: transparent; color: var(--brand-deep); font-size: 16px; font-weight: 500; padding: 8px 4px; white-space: nowrap; cursor: pointer; }
.w-link:disabled { color: var(--ink-4); }
.w-hint { padding: 8px 16px; font-size: 14px; color: var(--ink-3); line-height: 20px; }
.w-stepno { padding: 12px 16px 0; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.w-ask { padding: 4px 16px 12px; font-size: 22px; line-height: 30px; font-weight: 600; }
.w-bigbtn { width: calc(100% - 32px); margin: 0 16px 12px; min-height: 72px; border: 0; border-radius: 14px; background: #FFFFFF; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; padding: 0 18px; text-align: left; cursor: pointer; }
.w-bigbtn .nm { flex: 1; min-width: 0; font-size: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-bigbtn .rt { font-size: 16px; color: var(--warn-fg); font-weight: 500; white-space: nowrap; }
.w-bigbtn .rt.done { color: var(--ink-3); }
.w-bigbtn .ic { color: var(--ink-4); }
.w-dashed { width: calc(100% - 32px); margin: 6px 16px; min-height: 56px; border-radius: 14px; border: 1.5px dashed var(--input-line); background: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.w-search { display: flex; align-items: center; gap: 10px; margin: 10px 16px; height: 56px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--input-line); padding: 0 16px; }
.w-search .ic { color: var(--ink-4); }
.w-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; height: 54px; }
.w-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); }
.w-row .b { flex: 1; min-width: 0; }
.w-row.off { background: var(--soft); }
.w-row.warnbg { background: #FFFCF5; }
.w-item { padding: 10px 16px 12px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); }
.w-item .top { display: flex; align-items: center; gap: 12px; }
.w-item .top .b { flex: 1; min-width: 0; }
.w-item.on { background: #FFFFFF; }
.w-item.off .wmk, .w-item.off .wnm { color: var(--ink-3); }
.w-item .qline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0 40px; font-size: 15px; color: var(--ink-3); }
.w-item .qline .grow { flex: 1; min-width: 0; white-space: normal; }
.w-cb { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #C4C4CC; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; color: #FFFFFF; }
.w-cb.on { background: var(--brand); border-color: var(--brand); }
.w-cb.on .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.w-cb:disabled { opacity: .45; }
.w-ph { display: block; flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--photo) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.w-ph.lg { width: 72px; height: 72px; border-radius: 10px; }
.wmk { font-size: 20px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
.wmk.s { font-size: 18px; line-height: 24px; }
.wmk .lack { font-size: 15px; font-weight: 500; color: var(--warn-fg); margin-left: 4px; }
.wnm { font-size: 15px; color: var(--ink-3); line-height: 21px; }
.wmemo { font-size: 14px; color: var(--warn-fg); font-weight: 600; line-height: 20px; }
.w-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-weight: 500; background: #F1F2F4; color: var(--ink-2); white-space: nowrap; }
.w-tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.w-tag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.w-tag.bad { background: var(--bad-bg); color: var(--bad-fg); }
.w-stepper { flex: none; display: flex; align-items: center; height: 48px; border-radius: 12px; box-shadow: 0 0 0 1px var(--input-line); background: #FFFFFF; }
.w-stepper.warn { box-shadow: 0 0 0 1.5px var(--warn-fg); }
.w-stepper button { width: 44px; height: 48px; border: 0; background: transparent; color: var(--ink-2); font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.w-stepper button:disabled { color: var(--ink-4); }
.w-stepper input { width: 56px; height: 46px; border: 0; outline: 0; background: transparent; text-align: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.w-stepper input:disabled { color: var(--ink-3); }
.w-more { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--brand-deep); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.w-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); font-size: 17px; }
.w-line .s3 { font-size: 14px; color: var(--ink-3); }
.w-line .lab { display: flex; flex-direction: column; line-height: 22px; }
.w-input { height: 48px; width: 140px; border-radius: 12px; border: 0; box-shadow: 0 0 0 1px var(--input-line); background: #FFFFFF; padding: 0 14px; font-size: 18px; outline: 0; }
.w-input:focus, .w-search:focus-within, .w-stepper:focus-within { box-shadow: 0 0 0 1.5px var(--brand), 0 0 0 4px var(--focus-ring); }
.w-input.wide { width: 100%; }
.w-cams { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
.w-cam { flex: 1; min-width: 130px; height: 56px; border-radius: 12px; box-shadow: 0 0 0 1px var(--input-line); background: #FFFFFF; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; color: var(--ink-2); cursor: pointer; position: relative; overflow: hidden; }
.w-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.w-thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 8px; }
/* 收好了 (11-10): photos and the parcel count right after 确认收货; 拍照 is the big button where 确认收货 was. */
.wdn-ok { padding: 14px 16px 8px; font-size: 18px; font-weight: 600; color: var(--ok-fg); }
.wdn-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 88px; padding: 8px 16px; background: #FFFFFF; }
.wdn-empty { font-size: 15px; line-height: 22px; color: var(--ink-3); }
.wdn-ph-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px 4px 16px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); font-size: 14px; color: var(--ink-3); }
.wdn-album { position: relative; overflow: hidden; min-height: 44px; display: inline-flex; align-items: center; }
.wdn-album input, .wdn-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wdn-dock .wdn-done { flex: 1 1 0; }
/* 这样货 (11-10): 收货's 还差 | 已收, the photo tag on a row, the goods card. */
.wseg-recv { display: flex; margin: 10px 16px 0; }
.wseg-recv button { flex: 1; }
.w-item .top .w-ptag { flex: none; align-self: flex-start; margin-left: auto; min-height: 44px; padding: 0 12px; font-size: 15px; border-radius: 10px; }
.w-got { cursor: pointer; }
.w-got .top { align-items: flex-start; }
.wdn-head { background: transparent; border: 0; }
.w-row .b[data-act="w-item"] { cursor: pointer; }
/* computer: 已收 table, the card as a dialog, the 码放 link */
.wd-rh .wd-seg { margin: 0; min-width: 240px; }
.wd-tr.got { grid-template-columns: 8px 48px minmax(64px, max-content) minmax(160px, 1fr) 44px 48px 72px 72px 64px minmax(150px, 1fr) 84px; cursor: pointer; }
.wd-table > .wd-tr.got { min-width: 980px; }
.wd-tr.got:not(.head):hover { background: #FBFBFE; }
.modal.wdn-modal { width: 600px; }
.wdn-mhead { display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 21px; }
.wdn-mhead .t { font-size: 17px; font-weight: 700; }
.wdn-kv { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--row-line); font-size: 14px; }
.wdn-kv .k { width: 56px; flex: none; color: var(--ink-3); }
.wdn-mstat { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.wdn-mlinks { display: flex; gap: 22px; font-size: 14px; }
.wd-plink { padding: 0; font-size: 13px; min-height: 0; }
.wdn-dock .wdn-cam { flex: 2 1 0; position: relative; overflow: hidden; }
.w-dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; z-index: 30; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.w-btn { flex: 1; min-height: 56px; border: 0; border-radius: 14px; background: var(--brand); color: #FFFFFF; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; cursor: pointer; }
.w-btn:disabled { background: #C7CBEE; }
.w-btn.sec { background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px var(--input-line); }
.w-btn.sec:disabled { color: var(--ink-4); background: #FFFFFF; }
.w-btn.small { flex: none; min-height: 44px; font-size: 16px; border-radius: 12px; }
.w-h6 { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 6px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.w-res { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); }
.w-res .b { flex: 1; min-width: 0; }
.w-res .rc { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.w-res .r { font-size: 17px; font-weight: 600; white-space: nowrap; }
.w-res .r.ok { color: var(--ok-fg); }
.w-res .r.warn { color: var(--warn-fg); }
.w-pbox { padding: 4px 16px 14px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); }
.w-pbox .in { border-radius: 12px; background: #FFFAFA; box-shadow: inset 0 0 0 1px #FECACA; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.w-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.w-opt { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; box-shadow: 0 0 0 1px var(--input-line); background: #FFFFFF; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.w-opt.on { box-shadow: 0 0 0 1.5px var(--bad-fg); color: var(--bad-fg); font-weight: 600; }
.w-opt.brand.on { box-shadow: 0 0 0 1.5px var(--brand); color: var(--brand-deep); }
.w-opt:disabled, .w-dashed:disabled, .x-btn:disabled { opacity: .45; cursor: default; }
.w-pkg { width: calc(100% - 32px); margin: 8px 16px; padding: 12px 14px; border: 0; border-radius: 14px; background: #FFFFFF; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.w-pkg.on { box-shadow: 0 0 0 1.5px var(--brand); }
.w-pkg .ic { width: 26px; height: 26px; color: var(--brand); }
.w-pkg .b { flex: 1; min-width: 0; }
.w-pkg .p1 { font-size: 18px; font-weight: 600; }
.w-pkg .p2 { font-size: 14px; color: var(--ink-3); line-height: 20px; }
.w-pkg .chg { font-size: 15px; color: var(--brand-deep); font-weight: 500; white-space: nowrap; }
.w-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 12px 16px 4px; padding: 3px; border-radius: 12px; background: #EDEDF0; }
.w-seg button { height: 46px; border: 0; border-radius: 10px; background: transparent; font-size: 17px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.w-seg button.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.w-rseg .n { margin-left: 2px; font-weight: 500; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.w-rseg button.on[data-route="sea"] { color: var(--sea-fg); background: var(--sea-bg); }
.w-rseg button.on[data-route="air"] { color: var(--air-fg); background: var(--air-bg); }
.w-rseg button.on .n { color: inherit; }
body.wd-body .w-rseg { width: 420px; max-width: calc(100% - 32px); }
body.wd-body .w-rseg button { height: 38px; font-size: 15px; }
.w-state { display: block; margin-top: 6px; font-size: 14px; line-height: 20px; }
.w-state.ok { color: var(--ok-fg); }
.w-state.bad { color: var(--bad-fg); }
.w-state.warn { color: var(--warn-fg); }
.w-notice { margin: 8px 16px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); font-size: 15px; line-height: 22px; }
.w-notice.bad { background: var(--bad-bg); color: var(--bad-fg); }
.w-notice .w-btns { display: flex; gap: 8px; margin-top: 10px; }
.w-empty { padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 16px; }
.w-sum { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 17px; font-weight: 600; background: #FFFFFF; }
.w-sum .ok { color: var(--ok-fg); }
.w-sum .warn { color: var(--warn-fg); }
.w-mv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 16px 14px 76px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); font-size: 16px; }
.w-mv select { height: 48px; border-radius: 12px; border: 0; box-shadow: 0 0 0 1px var(--input-line); background: #FFFFFF; padding: 0 10px; font-size: 16px; max-width: 100%; }
.w-meas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 16px 12px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); }
.w-meas .w-input { width: 100%; font-weight: 600; }
.w-dots { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; color: var(--ink-3); font-size: 22px; cursor: pointer; }
.w-dots.on { background: var(--brand-soft); color: var(--brand-deep); }
.w-sheet-mask { position: fixed; inset: 0; background: var(--mask); z-index: 60; }
.w-sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; z-index: 61; background: var(--bg); border-radius: 18px 18px 0 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.w-sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #D4D4D8; margin: 8px auto 4px; }
.w-sheet .shh { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.w-sheet .shh b { font-size: 20px; line-height: 28px; }
.w-sheet .shh span { font-size: 14px; color: var(--ink-3); }
.w-sheet .w-dock { z-index: 62; }
.w-edited { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--brand-deep); background: var(--brand-soft); padding: 1px 6px; border-radius: 5px; vertical-align: 2px; }
.w-box { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-3); }
.w-box input { width: 76px; height: 48px; border-radius: 12px; border: 0; box-shadow: 0 0 0 1px var(--input-line); text-align: center; font-size: 20px; font-weight: 600; outline: 0; color: var(--ink); }
.w-box input:focus { box-shadow: 0 0 0 1.5px var(--brand), 0 0 0 4px var(--focus-ring); }
.w-login { max-width: 420px; margin: 0 auto; padding: 32px 20px; display: flex; flex-direction: column; gap: 16px; }
.w-login h1 { margin: 0; font-size: 24px; line-height: 32px; }
.w-login label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.w-login .w-input { width: 100%; height: 56px; font-size: 18px; }
.w-login .login-error { font-size: 15px; }
body.w-body .toast-wrap { bottom: 100px; width: calc(100% - 32px); max-width: 448px; }
body.w-body .toast { font-size: 16px; padding: 12px 16px; width: 100%; text-align: center; line-height: 22px; }
body.w-body .zoom img { max-width: 100vw; }
.w-ok { color: var(--ok-fg); font-weight: 600; }
.w-rowbtn { width: 100%; border: 0; border-bottom: 1px solid var(--row-line); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.w-rowbtn:disabled { cursor: default; }
.w-rowbtn .ic { color: var(--ink-4); }
.w-item .qline.w-opts { flex-wrap: wrap; }
.w-pkg:disabled, .w-bigbtn:disabled { opacity: .5; }
/* 码放 on the phone: the goods waiting grouped by route. */
.w-link.w-pk-look { min-height: 44px; padding: 0 0 0 8px; display: inline-flex; align-items: center; font-size: 15px; }
.w-grp { display: flex; align-items: center; gap: 8px; margin: 10px 16px 2px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.w-item.warnbg { background: #FFFCF5; }

/* 照片框 (the old page's photo box): click it and paste, or drop files on it; album and camera buttons under it. */
.pzone { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; min-width: 0; padding: 10px 12px; border: 1.5px dashed var(--input-line); border-radius: 8px; background: #FFFFFF; cursor: pointer; }
.rfields .pzone, .row .pzone { flex: 1 1 260px; }
.pzone:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.pzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.pzone.off { cursor: default; border-style: solid; }
.pzone-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pzone-tiles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pzone-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pzone .file-btn { flex-direction: row; gap: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.pzone-hint { font-size: 12px; line-height: 17px; color: var(--ink-3); }
.pzone.w { margin: 8px 16px; padding: 12px; border-radius: 14px; gap: 10px; }
.w-pbox .pzone.w { margin: 0; }
.pzone.w .pzone-title { font-size: 16px; }
.pzone.w .pzone-btns .w-cam { flex: 1; }
.pzone.w .pzone-hint { font-size: 14px; line-height: 20px; }

/* Warehouse computer (仓库电脑版), body.wd-body as well as body.w-body: the warehouse screens with a menu on the
   left and a wider page. Text 16, menu targets 48, bottom buttons stay at hand inside the page column. */
body.wd-body { font-size: 16px; }
.wd-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.wd-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 16px; background: #FFFFFF; border-right: 1px solid var(--line); }
.wd-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0 12px 12px; }
.wd-brand > div { display: flex; flex-direction: column; min-width: 0; }
.wd-brand b { font-size: 20px; line-height: 26px; font-weight: 600; }
.wd-brand span { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.wd-brand .w-ib { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer; flex: none; }
.wd-brand .w-ib:hover { background: var(--soft); }
.wd-nav-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-size: 17px; font-weight: 500; color: var(--ink-2); text-align: left; cursor: pointer; }
.wd-nav-item .ic { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.wd-nav-item .l { flex: 1; min-width: 0; }
.wd-nav-item .c { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 6px; background: #F1F2F4; color: var(--ink-2); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.wd-nav-item:hover { background: var(--soft); }
.wd-nav-item.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.wd-nav-item.on .ic { color: var(--brand); }
.wd-nav .grow { flex: 1; }
.wd-nav-link { display: block; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; font-size: 15px; line-height: 20px; color: var(--brand-deep); text-decoration: none; cursor: pointer; }
.wd-nav-link:hover { background: var(--soft); }
.wd-main { min-width: 0; }
body.wd-body .w-app { max-width: 1320px; min-height: 0; padding: 0 24px 32px; }
body.wd-body .w-bar { height: 64px; }
body.wd-body .w-bigbtn:hover, body.wd-body .w-pkg:hover { box-shadow: 0 0 0 1.5px var(--brand), var(--shadow); }
body.wd-body .w-dock { position: sticky; left: auto; transform: none; bottom: 0; width: auto; max-width: none; margin-top: 12px; align-items: center; justify-content: flex-end; padding-bottom: 14px; }
body.wd-body .w-dock .w-btn { flex: 0 1 300px; }
body.wd-body .w-sheet { left: calc(50% + 116px); top: 50%; bottom: auto; transform: translate(-50%, -50%); max-width: 560px; max-height: 86vh; border-radius: 14px; padding-bottom: 0; box-shadow: var(--shadow-pop); }
body.wd-body .w-sheet .grab { display: none; }
body.wd-body .w-sheet .w-dock { margin-top: 0; }
.wd-dock-sum { flex: 1; min-width: 0; font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wd-num { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wd-num span { font-size: 14px; color: var(--ink-3); }
.wd-ship-row { width: 100%; border: 0; border-top: 1px solid var(--row-line); background: #FFFFFF; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wd-ship-row:hover { background: var(--soft); }
.wd-fee-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; font-size: 17px; }
.wd-fee-h .grow { flex: 1; }
.w-card .w-rr .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The 发货单 and 其他费用 dialogs are the admin computer ones; on the warehouse computer their text runs larger. */
body.wd-body .modal { font-size: 15px; line-height: 22px; }
body.wd-body .modal h2 { font-size: 20px; }
body.wd-body .modal .input { height: 40px; font-size: 15px; }
body.wd-body .modal .btn { min-height: 40px; font-size: 15px; padding: 0 16px; }

/* Admin phone (管理员手机版), body.am-body. The detail, dialogs and menus are the computer ones, laid out full screen. */
body.am-body { font-size: 15px; line-height: 22px; }
.a-app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 96px; }
.a-app .ic { width: 20px; height: 20px; }
.a-bar { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 2px; padding: 0 6px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.a-ib { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 20px; flex: none; }
.a-ttl { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; justify-content: center; padding: 0 4px; }
.a-ttl b { font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-ttl span { font-size: 12.5px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.a-steps { display: flex; gap: 8px; overflow-x: auto; padding: 12px 12px 4px; scrollbar-width: none; }
.a-steps::-webkit-scrollbar, .a-tools::-webkit-scrollbar { display: none; }
.a-step { flex: none; min-width: 112px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 10px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.a-step.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.a-step .t { display: flex; align-items: center; gap: 5px; font-size: 12.5px; line-height: 18px; color: var(--ink-3); }
.a-step.on .t { color: var(--brand-deep); }
.a-step .t .ic { width: 15px; height: 15px; }
.a-step b { font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-step .step-bar { margin-top: 4px; }
.a-tools { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
.a-chip { flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: #FFFFFF; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.a-chip.on { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); font-weight: 500; }
.a-chip .n { color: var(--ink-4); margin-left: 2px; font-variant-numeric: tabular-nums; }
.a-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 12px; }
.a-card { display: flex; gap: 12px; padding: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.a-card.cancelled { opacity: .55; }
.a-ph { width: 64px; height: 64px; border-radius: 6px; }
.a-ph.sm { width: 48px; height: 48px; }
.a-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a-mark { font-size: 13px; line-height: 18px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-name { font-size: 15.5px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.a-sub { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.a-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 14px; line-height: 20px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-qty { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.a-qty .route-tag { overflow: visible; padding: 0; }
body.am-body .route-tag.pick { min-height: 40px; margin: -10px 0; }
body.am-body .route-tag.pick .tag { height: 26px; padding: 0 8px; font-size: 13px; }
body.am-body .route-bulk { margin: 4px 12px 8px; font-size: 13.5px; }
body.am-body .df-grid { grid-template-columns: 1fr; }
body.am-body .df-item { grid-template-columns: 26px minmax(0, 1fr) 72px; }
body.am-body .df-item .mark { display: none; }
body.am-body .df-acts .btn { height: 36px; font-size: 14px; }
body.am-body .route-bulk > span:first-child { flex-basis: 100%; }
body.am-body .route-bulk .btn { height: 36px; font-size: 14px; }
.a-warn { color: var(--warn-fg); font-weight: 500; white-space: nowrap; }
.a-ok { color: var(--ok-fg); white-space: nowrap; }
.a-link { flex: none; border: 0; background: transparent; color: var(--brand-deep); font-weight: 500; font-size: 14px; min-height: 40px; margin: -10px 0; padding: 0 0 0 10px; white-space: nowrap; }
.a-pnote { display: flex; align-items: center; gap: 6px; min-height: 36px; margin-bottom: -6px; border: 0; background: transparent; padding: 0; text-align: left; color: var(--ink-2); font-size: 13.5px; }
.a-pnote .ic { width: 15px; height: 15px; color: var(--ink-4); flex: none; }
.a-pnote span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-pnote.empty { color: var(--ink-4); }
.a-card .status-pill, .a-hit .status-pill { flex: none; height: 32px; font-size: 13px; }
.a-ib.a-new i { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-style: normal; }
.a-app .a-ib.a-new .ic { width: 18px; height: 18px; }
.a-h6 { padding: 12px 16px 6px; font-size: 13px; color: var(--ink-3); }
.a-empty { padding: 32px 20px; text-align: center; color: var(--ink-3); }
.a-empty.sm { padding: 6px 16px 10px; text-align: left; }
.a-note-box { margin: 8px 12px; padding: 10px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.a-note-box a { color: var(--brand-deep); font-weight: 500; }
.a-panel { margin: 8px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
.a-kv { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-top: 1px solid var(--row-line); font-variant-numeric: tabular-nums; }
.a-kv:first-child { border-top: 0; }
.a-kv span { color: var(--ink-3); }
.a-pkg { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
.a-sbar { gap: 8px; padding: 0 12px; }
.a-sbox { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #FFFFFF; border: 1px solid var(--brand); border-radius: 8px; box-shadow: 0 0 0 3px var(--focus-ring); }
.a-sbox .ic { width: 18px; height: 18px; color: var(--ink-4); flex: none; }
.a-sinput { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.a-cancel { flex: none; height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--brand-deep); font-size: 15px; }
.a-hit { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #FFFFFF; border-bottom: 1px solid var(--row-line); cursor: pointer; }
.a-mask { z-index: 35; }
.a-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 36; width: 84%; max-width: 320px; padding: 16px 10px calc(12px + env(safe-area-inset-bottom)); background: #FBFBFC; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.a-side .side-item { min-height: 52px; color: var(--ink-3); text-decoration: none; }
.a-side .side-item b { font-size: 15px; }
.a-side .side-item .side-sub { font-size: 12.5px; }
.a-side .side-label { font-size: 12.5px; }
.a-side .side-foot { padding-top: 12px; }
/* the computer detail, dialogs and menus on the phone */
body.am-body .drawer { width: 100%; box-shadow: none; }
body.am-body .drawer-head { padding: 10px 14px 12px; }
body.am-body .drawer-head .status-pill { height: 36px; font-size: 13.5px; }
body.am-body .drawer-body { padding: 12px 14px 20px; }
body.am-body .drawer-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
body.am-body .drawer-foot > .muted:first-child { display: none; }
body.am-body .drawer-title { font-size: 17px; }
body.am-body .form-grid { grid-template-columns: minmax(0, 1fr); }
body.am-body .frow { min-height: 44px; font-size: 14px; }
body.am-body .frow .finput, body.am-body .frow .finput.wide { width: auto; flex: 1; min-width: 0; max-width: 64%; height: 40px; font-size: 16px; }
body.am-body .pnote-box textarea { font-size: 16px; line-height: 22px; }
body.am-body .btn { height: 40px; font-size: 14px; }
body.am-body .btn.small { height: 36px; }
body.am-body .x-btn { width: 40px; height: 40px; font-size: 22px; }
body.am-body .modal { top: 0; left: 0; transform: none; width: 100% !important; max-width: none; height: 100%; max-height: none; border-radius: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
body.am-body .modal .field-grid, body.am-body .modal .two { grid-template-columns: minmax(0, 1fr); }
body.am-body .modal .input, body.am-body .modal select, body.am-body .modal textarea { height: 44px; font-size: 16px; }
body.am-body .modal textarea { height: auto; }
body.am-body .modal .tabs { flex-wrap: wrap; }
body.am-body .modal .fchip { height: 36px; font-size: 14px; }
body.am-body .modal-foot { position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); margin: auto -14px calc(-14px - env(safe-area-inset-bottom)); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #FFFFFF; flex-wrap: wrap; }
body.am-body .modal .card { box-shadow: none; padding: 0; }
body.am-body .modal .quote-box { max-height: none; font-size: 14px; line-height: 22px; }
body.am-body .seg button { height: 34px; font-size: 14px; padding: 0 12px; }
body.am-body .menu { min-width: 240px; max-width: calc(100vw - 16px); }
body.am-body .menu-item { min-height: 44px; font-size: 15px; }
body.am-body .toast-wrap { bottom: 88px; width: calc(100% - 32px); max-width: 528px; }
body.am-body .toast { width: 100%; text-align: center; font-size: 15px; line-height: 21px; padding: 11px 14px; }
body.am-body .zoom img { max-width: 100vw; }
body.am-body .modal.small { top: auto; bottom: 0; height: auto; border-radius: 12px 12px 0 0; }
body.am-body .modal.small .modal-foot { position: static; margin: 0; padding: 12px 0 0; }
/* Night audit 11-04: bigger targets on the phones, and the detail header on narrow screens. */
.w-cb { position: relative; }
.w-cb::after { content: ""; position: absolute; inset: -8px; }
.w-item .top { cursor: pointer; }
.w-link[data-act="w-exc"], .w-link[data-act="w-pack-all"] { min-height: 40px; padding: 0 8px !important; display: inline-flex; align-items: center; }
.w-hint .w-link[data-act="logout"] { min-height: 44px; }
.a-card .status-pill { height: 36px; }
body.am-body .drawer-head .btn.small { min-width: 40px; }
body.am-body .drawer-head > div:nth-child(2) { flex-wrap: wrap; row-gap: 8px; }
body.am-body .drawer-head > div:nth-child(2) > div { flex: 1 1 150px !important; }
/* Login on a phone: 16px text or iPhone zooms in on the field. */
@media (max-width: 760px) { .login-card .input { font-size: 16px; height: 44px; } }
/* The photo remove dot stays small but takes a finger-sized tap. */
body.am-body .thumb-x::after { content: ""; position: absolute; inset: -12px; }
/* A transform on the sheet made its fixed button bar scroll with the list; center it with margins instead. */
.w-sheet { left: 0; right: 0; margin: 0 auto; transform: none; }
/* Small links on the warehouse phone: at least 44px to tap. */
.w-link[data-act="w-exc"], .w-link[data-act="w-pack-all"] { min-height: 44px; }
.w-link[data-act="w-split"] { min-height: 44px; display: inline-flex; align-items: center; }
.w-rr .w-link[data-act="w-undo"] { min-height: 44px; }

/* Search: every result in the main area, and the way back to a row's own batch table. */
.search-full-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 34px; padding: 0 10px; margin-bottom: 2px; border: 0; border-radius: 6px; background: var(--brand-soft); color: var(--brand-deep); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.search-full-btn:hover { background: #E3E6FA; }
.search-full-btn .muted { font-size: 11.5px; font-weight: 400; }
.search-full { padding-bottom: 6px; overflow: hidden; }
.sf-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sf-head b { font-size: 15px; }
.sf-head .spacer { flex: 1; }
.sf-group { padding: 12px 16px 4px; font-size: 11.5px; font-weight: 500; color: var(--ink-4); border-bottom: 1px solid var(--row-line); }
.srow { display: grid; grid-template-columns: 170px 36px minmax(0, 1fr) 150px 44px 76px 92px 190px; gap: 10px; align-items: center; padding: 6px 16px; border-bottom: 1px solid var(--row-line); cursor: pointer; }
.srow:hover { background: var(--soft); }
.srow.head { font-size: 11.5px; font-weight: 500; color: var(--ink-4); cursor: default; padding-top: 9px; padding-bottom: 9px; white-space: nowrap; }
.srow.head:hover { background: transparent; }
.srow .mark { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .qty, .srow .money { text-align: right; font-variant-numeric: tabular-nums; }
.sf-sheet { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-sheet.here { color: var(--ink-4); }
.sf-acts { display: flex; gap: 6px; justify-content: flex-end; }
.notice.search-back { display: flex; align-items: center; gap: 10px; }
.notice.search-back .x-btn { margin-left: auto; }
.qrow.flash, .a-card.flash { animation: row-flash 2.4s ease-out; }
@keyframes row-flash { 0%, 55% { background: #FFF3C4; box-shadow: inset 3px 0 0 #F5B700; } 100% { background: transparent; box-shadow: none; } }
.drawer .go-line { align-self: flex-start; max-width: 100%; height: 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--brand-deep); }

/* 仓库电脑版 one-screen 收货, 到货记录, and the two-column 码放 / 包装 (design 第三版). */
body.wd-body .w-bar { padding: 0; background: var(--bg); }
/* The batches as tabs on top of 收货 and 码放 (the warehouse works in one or two at a time); the rest in a menu. */
.wd-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.wd-tabs .grow { flex: 1; }
.wd-tabs > .w-link { padding: 0; font-size: 15px; }
.wd-tab { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 52px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; font: inherit; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; }
.wd-tab:hover { border-color: var(--brand); }
.wd-tab .nm { font-size: 16px; font-weight: 600; }
.wd-tab .rt { font-size: 13.5px; font-weight: 500; color: var(--warn-fg); }
.wd-tab .rt.done { color: var(--ink-3); }
.wd-tab.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); box-shadow: 0 0 0 1px var(--brand); }
.wd-tab.more { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.wd-tab.more .cv { color: var(--ink-3); }
.wd-more { position: relative; }
.wd-menu-mask { position: fixed; inset: 0; z-index: 29; }
.wd-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 320px; max-height: 60vh; overflow-y: auto; padding: 6px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.wd-mh { padding: 8px 10px 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.wd-mi { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; }
.wd-mi:hover { background: var(--soft); }
.wd-mi .rt { font-size: 13.5px; color: var(--warn-fg); }
.wd-mi .rt.done { color: var(--ink-3); }

/* 码放 on the computer: what to do next, the goods waiting on the left, the batch's packages on the right. */
.wd-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; font-size: 15px; color: var(--ink-3); }
.wd-steps > span:not(.sep) { display: inline-flex; align-items: center; gap: 8px; }
.wd-steps b { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: #EDEDF0; font-size: 13px; color: var(--ink-3); }
.wd-steps .on { color: var(--ink); font-weight: 600; }
.wd-steps .on b { background: var(--brand); color: #FFFFFF; }
.wd-steps .done { color: var(--ok-fg); }
.wd-steps .done b { background: var(--ok-bg); color: var(--ok-fg); }
.wd-steps .sep { color: var(--ink-4); }
.wd-pack { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.wd-pack-l { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wd-pack-r { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wd-pack .wd-rh { margin-top: 0; min-height: 32px; }
.wd-h { font-size: 17px; }
.wd-pack .wd-rh .w-link { padding: 0; font-size: 15px; }
.wd-tr.pk { grid-template-columns: 32px 48px minmax(64px, max-content) minmax(0, 1fr) 52px 64px 148px; }
.wd-tr.pk .gd .w-state { margin: 2px 0 0; font-size: 14px; }
.wd-grp { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--row-line); background: var(--soft); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.wd-pk { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wd-pk.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.wd-pk-main { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 12px 14px 6px; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.wd-pk-main:disabled { cursor: default; }
.wd-pk-main .h { display: flex; align-items: center; gap: 8px; }
.wd-pk-main .h .ic { width: 20px; height: 20px; color: var(--ink-3); }
.wd-pk-main .h b { font-size: 17px; white-space: nowrap; }
.wd-pk-main .h .grow { flex: 1; }
.wd-pk-main .cur { font-size: 14px; font-weight: 600; color: var(--brand-deep); white-space: nowrap; }
.wd-pk-main .pick { font-size: 14px; color: var(--brand); white-space: nowrap; }
.wd-pk.on .h .ic { color: var(--brand); }
.wd-pk-main .s { font-size: 14px; color: var(--ink-3); }
.wd-pk-main .in { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--row-line); }
.wd-pk-main .ln { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.wd-pk-main .ln b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wd-pk-main .ln .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.wd-pk-main .ln i { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.wd-pk-main .ln.more { color: var(--ink-3); }
.w-link.wd-pk-open { display: block; padding: 2px 14px 12px; font-size: 14px; line-height: 20px; }
.wd-pack-r .w-dashed, .wd-pack-r .w-more, .wd-pack-r .w-notice { margin: 0; }
.w-rr.wd-pk-done { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; font: inherit; text-align: left; cursor: pointer; }
.w-rr.wd-pk-done .t2 { margin-left: 8px; }
.wd-dock.wd-pack-dock { margin-top: 12px; }
.wd-recent { margin-top: 16px; }
.wd-recent .w-card { margin: 0; }
/* Narrower computer screens (1366 wide at 125%): the package column narrows, then goes above the goods. */
@media (max-width: 1280px) { .wd-pack { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1120px) { .wd-pack { grid-template-columns: minmax(0, 1fr); } .wd-pack-r { order: -1; } }
.wd-pack-dock .wd-fields { align-items: center; }
.wd-pack-dock .wd-fields .grow { flex: 1; }
.wd-pack-dock .wd-dock-sum { padding: 0; font-size: 16px; }
.wd-pack-dock .w-notice { margin: 0; }
.wd-right { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wd-rh { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.wd-rh > b { font-size: 19px; }
.wd-rh .grow { flex: 1; }
.wd-rh .w-seg { margin: 0; min-width: 240px; }
.wd-rh .w-seg button { height: 38px; font-size: 15px; }
.w-search.wd-q { width: 300px; height: 44px; margin: 0; border-radius: 10px; padding: 0 12px; }
.w-search.wd-q input { height: 42px; font-size: 16px; }
.wd-table { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.wd-tr { display: grid; grid-template-columns: 32px 48px minmax(64px, max-content) minmax(0, 1fr) 52px 52px 52px 148px 92px 88px; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--row-line); font-size: 15px; }
/* On a narrow screen the table scrolls sideways instead of squeezing the goods' names to a letter a line. */
.wd-table > .wd-tr { min-width: 880px; }
.wd-table > .wd-tr.pk { min-width: 640px; }
.wd-table > .wd-tr.arr { min-width: 1100px; }
.wd-tr.head { border-top: 0; background: var(--soft); padding-top: 9px; padding-bottom: 9px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.wd-tr.on, .wd-tr.on + .wd-sub { background: #FBFBFE; }
.wd-tr.off { color: var(--ink-3); }
.wd-tr .mk { font-size: 17px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wd-tr .gd { display: flex; flex-direction: column; min-width: 0; }
.wd-tr .gd b { font-weight: 500; }
.wd-tr .gd .sub { font-size: 13px; color: var(--ink-3); }
.wd-tr .n { text-align: right; font-variant-numeric: tabular-nums; }
.wd-tr .n.warn { color: var(--warn-fg); font-weight: 600; }
.wd-tr .r { display: flex; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.wd-tr .w-stepper { height: 40px; border-radius: 10px; }
.wd-tr .w-stepper button { width: 36px; height: 40px; font-size: 20px; }
.wd-tr .w-stepper input { width: 64px; height: 38px; font-size: 18px; }
.wd-tr .r .w-link, .wd-tr .rc .w-link { padding: 4px 0; font-size: 15px; }
.wd-tr .r.warn, .wd-tr .r.ok { font-size: 14px; font-weight: 600; }
.wd-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 14px 10px 104px; }
.wd-sub .w-opt { min-height: 36px; }
.wd-sub-l { font-size: 14px; color: var(--ink-3); }
.wd-sub .w-state, .wd-sub .w-notice { margin: 0; }
.wd-table .w-pbox { margin: 0 14px 10px 104px; }
/* Every row is its own grid: a column sized by its content (max-content) came out wider in the rows than in the
   head, and the head slid one column over. Fixed tracks keep the two in line. */
.wd-tr.arr { grid-template-columns: 48px 150px minmax(120px, 1fr) 56px 64px 64px 76px 84px 168px 168px; }
.wd-tr.arr .r { flex-wrap: wrap; row-gap: 0; }
/* 运输 is 84px: an arrival the plan splits (空运 10、海运 20) shows one tag per route, one above the other. */
.wd-rts { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.wd-cards { padding: 4px 0; }
.wd-dock { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -6px 16px rgba(16, 24, 40, .06); }
.wd-fields { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.wd-fields + .wd-fields { padding-top: 10px; border-top: 1px solid var(--row-line); }
.wd-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wd-f > span:first-child { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.wd-f.grow { flex: 1; min-width: 220px; }
.wd-f .w-input { height: 42px; border-radius: 10px; font-size: 16px; }
.wd-f .w-input[type="date"] { width: 168px; }
.wd-f.grow .w-input { width: 100%; }
.wd-f .w-stepper { height: 42px; border-radius: 10px; }
.wd-f .w-stepper button { width: 38px; height: 42px; font-size: 20px; }
.wd-f .w-stepper input { height: 40px; font-size: 18px; }
.wd-f .pzone.w { margin: 0; padding: 8px 10px; gap: 6px; }
.wd-f .pzone.w .pzone-title { font-size: 14px; }
.wd-f .pzone.w .pzone-btns .w-cam { flex: none; min-height: 36px; font-size: 14px; }
.wd-f .pzone.w .pzone-hint { font-size: 13px; }
.w-pkg.wd-pkg { width: auto; margin: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--input-line); font-size: 16px; font-weight: 600; }
.w-pkg.wd-pkg .ic { width: 20px; height: 20px; }
.wd-dock .wd-dock-sum { flex: 0 1 auto; padding-bottom: 10px; font-size: 15px; }
.wd-dock .w-btn { flex: none; min-width: 220px; min-height: 48px; font-size: 17px; }
.wd-dock .w-hint { margin: 0; padding: 0; }
.wd-split { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 18px; align-items: start; }
.wd-split.pk { grid-template-columns: 380px minmax(0, 1fr); }
.wd-split-l, .wd-split-r { min-width: 0; }
.wd-split-r { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 24px); overflow-y: auto; }
.wd-split-l .w-item { border-radius: 0; }
.wd-split .w-pkg.on { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.wd-split .w-dock { position: static; margin: 4px 16px 8px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.wd-split .w-dock .w-btn { flex: 1 1 auto; }
.w-extras { padding: 0 16px 12px; }
.w-extras .dsec { padding-top: 12px; }
.w-extras .input { height: 44px; font-size: 16px; }
.w-extras .btn { min-height: 44px; font-size: 15px; }
.w-line .w-input[type="date"] { width: 176px; font-size: 17px; padding: 0 10px; }
.w-line .w-input[data-rm="note"] { width: 190px; }
/* 11-06: 发货, 费用 and 到货记录 on the warehouse phone too, and their dialogs full screen as on the admin phone. */
body.w-body:not(.wd-body) .w-search.wd-q { width: 100%; }
body.w-body:not(.wd-body) #wdArr.wd-table { overflow: visible; border: 0; background: none; }
body.w-body:not(.wd-body) .modal { top: 0; left: 0; transform: none; width: 100% !important; max-width: none; height: 100%; max-height: none; border-radius: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); font-size: 15px; }
body.w-body:not(.wd-body) .modal .field-grid, body.w-body:not(.wd-body) .modal .two { grid-template-columns: minmax(0, 1fr); }
body.w-body:not(.wd-body) .modal .input, body.w-body:not(.wd-body) .modal select, body.w-body:not(.wd-body) .modal textarea { height: 44px; font-size: 16px; }
body.w-body:not(.wd-body) .modal textarea { height: auto; }
body.w-body:not(.wd-body) .modal .rfields .input { width: 100%; }
body.w-body:not(.wd-body) .modal .rfields label { flex: 1 1 130px; font-size: 13px; }
body.w-body:not(.wd-body) .modal .fchip { height: 40px; font-size: 15px; }
body.w-body:not(.wd-body) .modal .btn { height: 44px; font-size: 15px; }
body.w-body:not(.wd-body) .modal .btn.small { height: 40px; }
body.w-body:not(.wd-body) .modal .x-btn { width: 44px; height: 44px; font-size: 22px; }
body.w-body:not(.wd-body) .modal-foot { position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); margin: auto -14px calc(-14px - env(safe-area-inset-bottom)); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #FFFFFF; flex-wrap: wrap; }
body.w-body:not(.wd-body) .modal-foot .grow { flex-basis: 100%; }
body.w-body:not(.wd-body) .modal.small { top: auto; bottom: 0; height: auto; border-radius: 12px 12px 0 0; }
.pack-extra { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; width: 100%; }
.pack-extra input { flex: 1 1 160px; min-width: 0; }
.pack-extra input.pack-sorted { flex: 0 1 150px; }
.pick-extra { padding: 0 12px 10px 48px; }
.w-link.pack-more { padding: 2px 0; font-size: 14px; }
.rbatches { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.rbatch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.rbatch .rb-qty { width: 90px; }
.rbatch .rb-date-l { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3); }
.rbatch .rb-date { width: 150px; }
.rbatch .rb-note { flex: 1 1 160px; min-width: 0; }
.w-link.rb-add { padding: 4px 0; font-size: 15px; }
body.w-body:not(.wd-body) .w-extras .fchip { height: 40px; font-size: 15px; padding: 0 14px; }
body.w-body:not(.wd-body) .w-extras .btn, body.w-body:not(.wd-body) .w-extras .input { height: 44px; font-size: 15px; }
.td-step { font-size: 13.5px; line-height: 21px; color: var(--ink); white-space: normal; }

/* 空运 / 海运 colours (11-06, the user asked for them): the old page's blue and teal, so the warehouse tells them
   apart at a glance, mixed rows show both. The word always stays; 没定 keeps the amber of things still to do. */
:root { --air-fg: #1A5BD6; --air-bg: #E8F0FF; --air-line: #A8C3F8; --sea-fg: #0A6B66; --sea-bg: #DCF4F0; --sea-line: #8BD3C8; }
.rt { display: inline-block; padding: 0 5px; border-radius: 4px; font-weight: 600; line-height: 1.5; }
.rt-air { color: var(--air-fg); background: var(--air-bg); }
.rt-sea { color: var(--sea-fg); background: var(--sea-bg); }
.tag.rt-air, .tag.rt-sea, .w-tag.rt-air, .w-tag.rt-sea, .chip.rt-air, .chip.rt-sea { font-weight: 600; }
.chip.rt-air { box-shadow: 0 0 0 1px var(--air-line); }
.chip.rt-sea { box-shadow: 0 0 0 1px var(--sea-line); }
/* Inside a tag or a warning only the word takes the colour. */
.tag .rt, .w-tag .rt, .chip .rt, .w-state .rt { padding: 0; background: transparent; }
/* Buttons that pick a route carry its colour; the chosen one is filled. */
.fchip[data-route="air"]:not(:disabled), .fchip[data-preset="air"]:not(:disabled), .seg button[data-route="air"]:not(:disabled),
.seg button[data-key="shippingMethod"][data-val="air"]:not(:disabled), .menu-item[data-route="air"], .w-opt[data-route="air"]:not(:disabled),
.w-dashed[data-route="air"]:not(:disabled), .btn[data-route="air"]:not(:disabled) { color: var(--air-fg); }
.fchip[data-route="sea"]:not(:disabled), .fchip[data-preset="sea"]:not(:disabled), .seg button[data-route="sea"]:not(:disabled),
.seg button[data-key="shippingMethod"][data-val="sea"]:not(:disabled), .menu-item[data-route="sea"], .w-opt[data-route="sea"]:not(:disabled),
.w-dashed[data-route="sea"]:not(:disabled), .btn[data-route="sea"]:not(:disabled) { color: var(--sea-fg); }
.fchip.on[data-route="air"], .seg button.on[data-route="air"], .seg button.on[data-key="shippingMethod"][data-val="air"], .menu-item.current[data-route="air"] { background: var(--air-bg); color: var(--air-fg); box-shadow: 0 0 0 1px var(--air-line); font-weight: 600; }
.fchip.on[data-route="sea"], .seg button.on[data-route="sea"], .seg button.on[data-key="shippingMethod"][data-val="sea"], .menu-item.current[data-route="sea"] { background: var(--sea-bg); color: var(--sea-fg); box-shadow: 0 0 0 1px var(--sea-line); font-weight: 600; }
.w-opt.on[data-route="air"] { background: var(--air-bg); color: var(--air-fg); box-shadow: 0 0 0 1.5px var(--air-fg); }
.w-opt.on[data-route="sea"] { background: var(--sea-bg); color: var(--sea-fg); box-shadow: 0 0 0 1.5px var(--sea-fg); }
.w-dashed[data-route="air"] { border-color: var(--air-line); }
.w-dashed[data-route="sea"] { border-color: var(--sea-line); }
/* 11-17 the user asked for a picture as well as the word: a plane for 空运, a ship for 海运, drawn in the word's
   own colour (line icons, inline SVG, nothing fetched). The word always stays. The customer page is left as it was. */
:root { --ic-air: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M17.8%2019.2%2016%2011l3.5-3.5C21%206%2021.5%204%2021%203c-1-.5-3%200-4.5%201.5L13%208%204.8%206.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1%201%20.3%201.3L9%2012l-2%203H4l-1%201%203%202%202%203%201-1v-3l3-2%203.5%205.3c.3.4.8.5%201.3.3l.5-.2c.4-.3.6-.7.5-1.2z'%2F%3E%3C%2Fsvg%3E"); --ic-sea: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%2021c.6.5%201.2%201%202.5%201%202.5%200%202.5-2%205-2%201.3%200%201.9.5%202.5%201%20.6.5%201.2%201%202.5%201%202.5%200%202.5-2%205-2%201.3%200%201.9.5%202.5%201'%2F%3E%3Cpath%20d%3D'M19.38%2020A11.6%2011.6%200%200%200%2021%2014l-9-4-9%204c0%202.9.94%205.34%202.81%207.76'%2F%3E%3Cpath%20d%3D'M19%2013V7a2%202%200%200%200-2-2H7a2%202%200%200%200-2%202v6'%2F%3E%3Cpath%20d%3D'M12%2010v4'%2F%3E%3Cpath%20d%3D'M12%202v3'%2F%3E%3C%2Fsvg%3E"); }
body:not(.cu-body) .rt-air::before,
body:not(.cu-body) .fchip[data-route="air"]::before,
body:not(.cu-body) .fchip[data-preset="air"]::before,
body:not(.cu-body) .seg button[data-route="air"]::before,
body:not(.cu-body) .seg button[data-key="shippingMethod"][data-val="air"]::before,
body:not(.cu-body) .menu-item[data-route="air"]::before,
body:not(.cu-body) .w-opt[data-route="air"]::before,
body:not(.cu-body) .btn[data-route="air"]::before,
body:not(.cu-body) .rt-sea::before,
body:not(.cu-body) .fchip[data-route="sea"]::before,
body:not(.cu-body) .fchip[data-preset="sea"]::before,
body:not(.cu-body) .seg button[data-route="sea"]::before,
body:not(.cu-body) .seg button[data-key="shippingMethod"][data-val="sea"]::before,
body:not(.cu-body) .menu-item[data-route="sea"]::before,
body:not(.cu-body) .w-opt[data-route="sea"]::before,
body:not(.cu-body) .btn[data-route="sea"]::before { content: ''; display: inline-block; flex: none; width: 1.1em; height: 1.1em; margin-right: 3px; vertical-align: -0.18em; background: currentColor; -webkit-mask: var(--ic-air) center / contain no-repeat; mask: var(--ic-air) center / contain no-repeat; }
body:not(.cu-body) .rt-sea::before,
body:not(.cu-body) .fchip[data-route="sea"]::before,
body:not(.cu-body) .fchip[data-preset="sea"]::before,
body:not(.cu-body) .seg button[data-route="sea"]::before,
body:not(.cu-body) .seg button[data-key="shippingMethod"][data-val="sea"]::before,
body:not(.cu-body) .menu-item[data-route="sea"]::before,
body:not(.cu-body) .w-opt[data-route="sea"]::before,
body:not(.cu-body) .btn[data-route="sea"]::before { -webkit-mask-image: var(--ic-sea); mask-image: var(--ic-sea); }

/* 码放 and 包装 pages (11-06 redesign): fewer standing words, actions visible instead of behind “⋯”. */
.pk-i { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--row-line); }
.pk-i:first-child { border-top: 0; }
.pk-l { min-height: 28px; display: flex; align-items: center; font-size: 13px; color: var(--ink-3); }
.pk-i:has(.pk-note) .pk-l, .pk-i:has(.pk-acts .input) .pk-l { min-height: 44px; }
.w-extras h5 + .pk-i, .dsec .sec-title + .pk-i { border-top: 0; }
.pk-v { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pk-chips, .pk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pk-note { display: flex; gap: 8px; }
.pk-note .input { flex: 1; min-width: 0; }
.pk-note .btn:disabled { display: none; }
.dsec .pk-i:first-of-type { border-top: 0; }
.w-extras h5 { padding: 12px 0 2px; }
.w-qty { font-size: 22px; font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.w-acts { display: flex; gap: 6px; flex: none; }
.w-act { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--input-line); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.w-act:hover { background: var(--soft); }
.w-act.on { background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); color: var(--brand-deep); }
.w-act:disabled { color: var(--ink-4); cursor: default; }
.w-mv { padding-left: 76px; }
.w-bar-acts { display: flex; gap: 8px; align-items: center; }
.w-bar-acts .w-btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.w-menu-wrap { position: relative; display: inline-flex; }
.w-link.on { color: var(--ink); }
.w-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 40; min-width: 168px; padding: 4px; background: #FFFFFF; border-radius: 10px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.w-menu button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; text-align: left; font-size: 15px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.w-menu button:hover { background: var(--soft); }
.w-menu button.danger { color: var(--bad-fg); }
.w-rec { gap: 12px; padding: 9px 16px; font-size: 15px; }
.w-rec .t { flex: none; width: 42px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.w-rec.sub { padding-top: 4px; border-top: 0; }
.w-rec .b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-recent .w-more { padding: 10px 16px; font-size: 14px; }
.wd-pk-main .pick { padding: 3px 10px; border-radius: 6px; box-shadow: 0 0 0 1px var(--input-line); color: var(--ink-2); font-size: 13.5px; }
.wd-pk-main:hover .pick { box-shadow: 0 0 0 1px var(--brand); color: var(--brand-deep); }
.wd-pk.on { background: #FAFAFF; }
body.w-body:not(.wd-body) .w-act { min-height: 40px; padding: 0 12px; font-size: 15px; }
body.w-body:not(.wd-body) .w-mv { padding-left: 16px; }
body.w-body:not(.wd-body) .w-row:has(.w-acts) { flex-wrap: wrap; row-gap: 8px; }
body.w-body:not(.wd-body) .w-row .w-acts { flex-basis: 100%; padding-left: 60px; gap: 8px; }
body.w-body:not(.wd-body) .pk-chips .fchip { padding: 0 11px; }
body.w-body:not(.wd-body) .pk-l { min-height: 40px; }
body.w-body:not(.wd-body) .pk-i:has(.pk-note) .pk-l { min-height: 44px; }

/* 11-07: someone else logged an item while this receipt or 到货记录 is open (watchOpen). */
.r-watch[hidden] { display: none !important; }
.r-watch { font-weight: 500; }
.modal .notice.warn { background: var(--warn-bg); color: var(--warn-fg); }

/* 再次下单 results (11-07): a count line, 20 at a time, the rest on scroll or the button. */
#rebuyHits .rebuy-count { padding: 2px 4px 6px; font-size: 12.5px; }
#rebuyHits .rebuy-more { align-self: center; margin: 8px 0 4px; }
body.am-body #rebuyHits { padding-bottom: 16px; }

/* ② in 钱 (11-07): the old table's money columns next to the 采购 ones; scrolls sideways when the panel leaves too little room. */
.mode-seg { margin-right: 6px; }
.mscroll { overflow-x: auto; }
.mgrid { min-width: 740px; }
.qrow.m { grid-template-columns: var(--mark-w, 116px) minmax(140px, 1fr) 44px 92px 84px 80px 104px 92px; }
.qrow .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qrow .n.b { font-weight: 600; color: var(--ink); }
.qrow .n.muted { color: var(--ink-4); }
.qrow .n i { display: block; font-style: normal; font-size: 11px; line-height: 14px; font-weight: 400; color: var(--ink-4); }
.qrow .n i.warn-text { color: var(--warn-fg); font-weight: 500; }
.qrow.m .cell-input.num { text-align: right; }
.qrow.m.total { background: var(--soft); font-weight: 600; cursor: default; border-bottom: 0; align-items: start; padding-top: 9px; padding-bottom: 9px; }
.qrow.m.total:hover { background: var(--soft); }
.qrow.m.total .tsub { font-weight: 500; color: var(--ink-3); }
.notice.money-gap { display: flex; align-items: center; gap: 12px; }
.notice.money-gap span { flex: 1; }
.a-note-box.warn-box { display: block; width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; text-align: left; border: 0; font: inherit; background: var(--warn-bg); color: var(--warn-fg); }
/* Phone ① ② card (11-07): what it is, where it is, what it costs the customer; amount on the right. */
.a-mid { display: flex; align-items: flex-start; gap: 10px; }
.a-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.a-name-line { display: flex; align-items: center; gap: 2px; min-width: 0; }
.a-pn-ic { flex: none; width: 32px; height: 28px; margin: -3px 0; border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-4); }
.a-pn-ic .ic { width: 15px; height: 15px; }
.a-mid .a-qty { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding-top: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-amt b { font-size: 15.5px; line-height: 22px; font-weight: 600; }
.a-amt .a-usd { font-size: 13px; line-height: 18px; color: var(--ink-3); }
.a-amt .a-gap { height: 18px; }
.a-amt .a-rebuy { margin-top: -6px; }
.a-amt.strike b, .a-amt.strike .a-usd { text-decoration: line-through; }
.a-amt .a-free { color: var(--ink-3); font-weight: 500; }
.a-flag { font-size: 13px; line-height: 18px; margin-top: 4px; }
.a-card .a-pnote:not(.empty) { margin-top: 2px; }
.a-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 2px 16px 6px; font-size: 13.5px; line-height: 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.a-sum b { color: var(--ink); font-weight: 600; }
/* Detail: cost and progress under the title */
.d-sum { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 8px; background: var(--soft); font-size: 13px; line-height: 19px; }
.d-sum-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.d-sum-line b { font-size: 15px; font-weight: 600; color: var(--ink); }
.d-sum .d-usd { font-weight: 600; color: var(--ink-2); }

/* 误触 (11-08): no double-tap zoom on what is tapped (a double tap on + zoomed the page); small targets on the
   phone card reach 44 px without making the card taller. */
button, a, label, [data-act], .a-card, .w-item, .w-stepper, input, select, textarea { touch-action: manipulation; }
.a-pn-ic { position: relative; }
.a-pn-ic::after { content: ''; position: absolute; inset: -8px -6px; }
.a-card .status-pill { position: relative; }
.a-card .status-pill::after { content: ''; position: absolute; inset: -6px -4px; }

/* Customer portal (客户页, 2026-11-10). Same tokens as the admin page; calmer, prices first (DESIGN.md 卡片 / 客户). */
body.cu-body { background: var(--bg); }
.cu-preview { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: #FFF8E6; color: #7A4B00; font-size: 12.5px; border-bottom: 1px solid #F5E2B8; }
.cu-preview button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-weight: 600; }
.cu-preview button.on { background: #FFFFFF; box-shadow: 0 0 0 1px #F0D9A6; }
.cu-preview a { margin-left: auto; font-weight: 600; }
.cu-dev { display: inline-flex; gap: 2px; margin-left: 12px; padding-left: 12px; border-left: 1px solid #F0D9A6; }
.cu-phone-stage { display: flex; justify-content: center; align-items: flex-start; min-height: calc(100dvh - 43px); padding: 24px 16px; background: #EEF0F3; }
.cu-phone-stage iframe { display: block; box-sizing: content-box; width: 390px; height: min(844px, calc(100dvh - 43px - 50px)); border: 1px solid #D9DCE1; border-radius: 20px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12); }
.cu-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.cu-side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: #FFFFFF; border-right: 1px solid var(--line); overflow-y: auto; }
.cu-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; }
.cu-brand .logo { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: #FFFFFF; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.cu-brand > span:last-child { display: flex; flex-direction: column; line-height: 18px; }
.cu-side-title { padding: 6px 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.04em; }
.cu-batches { display: flex; flex-direction: column; gap: 4px; }
.cu-batch { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 12.5px; }
.cu-batch b { font-size: 13.5px; font-weight: 600; }
.cu-batch:hover { background: var(--soft); }
.cu-batch.on { background: var(--brand-soft); }
.cu-batch .owe { color: var(--warn-fg); font-weight: 600; }
.cu-batch .ok { color: var(--ok-fg); }
.cu-pick { display: none; }
/* (11-22) The batch picker: the page's own button and menu, the same on a computer and a phone. */
button.cu-pick { align-items: center; justify-content: space-between; gap: 8px; text-align: left; font-weight: 600; color: var(--ink); cursor: pointer; }
button.cu-pick:hover { border-color: #C9CCD3; }
.cu-pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-pick .chev { width: 16px; height: 16px; flex: none; color: var(--ink-4); }
.cu-forms-menu { overflow-y: auto; }
.cu-forms-menu .menu-item { min-height: 36px; font-size: 14px; }
.cu-forms-menu .cu-tick { width: 14px; flex: none; color: var(--brand-deep); }
/* (11-22) The 空运 / 海运 switch: all → sea only → air only. */
.cu-rtf { display: inline-flex; align-items: center; gap: 4px; margin: -3px -5px; padding: 3px 5px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.cu-rtf:hover { background: var(--brand-soft); }
.cu-rtf .sw { width: 12px; height: 12px; flex: none; color: var(--ink-4); }
.cu-rtf.on .sw { color: var(--brand); }
.cu-rtf.tool { flex: none; height: 40px; margin: 0; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 6px; background: #FFFFFF; font-size: 14px; white-space: nowrap; }
.cu-rtf.tool .sw { width: 14px; height: 14px; }
.cu-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.cu-res { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.cu-res:hover { background: var(--soft); color: var(--ink); }
.cu-langs { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.cu-langs button { flex: 1; height: 26px; white-space: nowrap; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.cu-langs button.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.06); }
/* (11-11) The page keeps to 1320px so nothing spreads across a wide screen; the table fills that width. */
.cu-main { min-width: 0; width: 100%; max-width: 1880px; margin: 0 auto; box-sizing: border-box; padding: 24px 28px 96px; display: flex; flex-direction: column; gap: 16px; }
.cu-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cu-head h1 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 650; letter-spacing: -0.015em; }
.cu-head > div:first-child { display: flex; flex-direction: column; gap: 2px; }
/* (11-11, the user) The money at the top is small and quiet: plain figures, no cards. */
.cu-moneys { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.cu-money { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.cu-money span { font-size: 12px; color: var(--ink-4); font-weight: 500; }
.cu-money b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cu-money i { font-style: normal; font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.cu-money.link { cursor: pointer; }
.cu-money.link:hover span { color: var(--brand); text-decoration: underline; }
.cu-money.owe b { color: var(--warn-fg); }
.cu-money.ok b { color: var(--ok-fg); }
.cu-rate { display: none; }
.cu-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.cu-bar .cu-tools { padding-bottom: 6px; }
.cu-tabs { display: flex; gap: 22px; }
.cu-tabs button { height: 38px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.cu-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.cu-tabs .n { color: var(--ink-4); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }
.cu-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cu-tools .spacer { flex: 1; }
.cu-search { position: relative; width: 280px; max-width: 100%; }
.cu-search .ic { position: absolute; left: 10px; top: 9px; color: var(--ink-4); }
.cu-search .input { padding-left: 32px; }
.cu-table-wrap { overflow: auto; max-height: calc(100vh - 250px); background: #FFFFFF; border-radius: 10px; box-shadow: var(--shadow); }
.cu-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; user-select: none; -webkit-user-select: none; }
.cu-grid th { position: sticky; top: 0; z-index: 2; background: #FAFAFB; color: var(--ink-3); font-weight: 600; font-size: 12px; line-height: 15px; text-align: left; vertical-align: bottom; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.cu-grid th.n { max-width: 96px; }
.cu-grid th.n { text-align: right; }
.cu-grid td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cu-grid td { padding: 7px 8px; border-bottom: 1px solid var(--row-line); vertical-align: middle; cursor: cell; }
.cu-grid td.ph, .cu-grid td.stc { cursor: default; }
.cu-grid td.b { font-weight: 650; }
.cu-grid td.mk { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.cu-grid td.gd { min-width: 180px; width: 100%; }
.cu-grid th { word-break: keep-all; }
.cu-grid td.gd .nm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 550; }
.cu-grid td.gd .sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; color: var(--ink-3); font-size: 12px; }
.cu-grid td.stc .stx { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cu-grid td.stc .stw { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; vertical-align: middle; }
.cu-grid td.stc .pkn { font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-left: 8px; }
.cu-grid .photo { display: block; width: 40px; height: 40px; }
.cu-grid tbody tr:hover td { background: #FBFBFD; }
.cu-grid td.sel, .cu-grid tbody tr:hover td.sel { background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(94, 106, 210, 0.35); }
.cu-grid tr.cancelled td { color: var(--ink-4); }
.cu-grid tr.cancelled .photo { opacity: 0.5; }
.cu-grid tfoot td { position: sticky; bottom: 0; background: #FAFAFB; border-top: 1px solid var(--line); border-bottom: 0; cursor: default; padding: 10px; }
.cu-grid td.stc { white-space: nowrap; }
/* (11-20, the user) No column wider than it needs: two routes go on two lines, a long package list and
   “price to be confirmed” wrap, so the name keeps the room and the status is not cut off at the right. */
.cu-grid td.rtc .rt { white-space: nowrap; }
.cu-grid td.rtc { min-width: 64px; }
.cu-grid td.stc .pkn { white-space: normal; max-width: 120px; }
@media (max-width: 1365px) { .cu-grid th, .cu-grid td { padding-left: 6px; padding-right: 6px; } }
.cu-grid td.n .warn-text { white-space: normal; }
.cu-app.fill { height: 100vh; height: 100dvh; min-height: 0; }
/* The admin's preview bar is 43px; .cu-app's own min-height 100vh would push the table 43px below the screen. */
.cu-preview + .cu-app.fill { height: calc(100dvh - 43px); }
.cu-app.fill .cu-main { min-height: 0; padding-bottom: 16px; }
.cu-app.fill .cu-table-wrap { flex: 1 1 auto; min-height: 260px; max-height: none; }
.cu-app.fill ~ .cu-selbar { bottom: 22px; }
.cu-st { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.cu-st.st-Confirmed { background: #FFF6E6; color: #8A5300; box-shadow: none; }
.cu-st.st-Ordered { background: var(--brand-soft); color: var(--brand-deep); box-shadow: none; }
.cu-st.st-Arrived, .cu-st.st-Palletized { background: #EEF6FF; color: #1D5FA8; box-shadow: none; }
.cu-st.st-Shipped, .cu-st.st-Completed { background: var(--ok-bg); color: var(--ok-fg); box-shadow: none; }
.cu-st.st-Cancelled { background: var(--soft); color: var(--ink-4); }
.cu-more { margin-left: 6px; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-4); vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; }
.cu-more:hover { background: var(--soft); color: var(--ink); }
.cu-hint { margin: 0; font-size: 12px; color: var(--ink-4); }
.cu-selbar { position: fixed; z-index: 35; left: calc(50% + 124px); bottom: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 10px; background: #18181B; color: #F4F4F5; font-size: 13px; box-shadow: var(--shadow-pop); white-space: nowrap; }
.cu-selbar b { color: #FFFFFF; font-variant-numeric: tabular-nums; }
.cu-selbar .btn { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; box-shadow: none; }
.cu-selbar .btn:hover { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.cu-empty { padding: 48px 16px; text-align: center; color: var(--ink-3); background: #FFFFFF; border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cu-cards { display: flex; flex-direction: column; gap: 8px; }
.cu-card { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: #FFFFFF; box-shadow: var(--shadow); cursor: pointer; }
.cu-card .photo { display: block; width: 64px; height: 64px; border-radius: 8px; }
.cu-card .body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cu-card .row1, .cu-card .row3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cu-card .mk { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cu-card .nm { font-weight: 600; font-size: 14px; line-height: 20px; }
.cu-card .sub { color: var(--ink-3); font-size: 12.5px; }
.cu-card .row3 b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cu-card .where { font-size: 12px; color: var(--ink-3); }
.cu-card.cancelled { opacity: 0.6; }
.cu-cardsum { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: var(--shadow-pop); font-size: 13px; }
.cu-cardsum b { font-size: 17px; font-variant-numeric: tabular-nums; }
.cu-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.cu-stats span { padding: 6px 12px; border-radius: 999px; background: #FFFFFF; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.cu-sec { display: flex; flex-direction: column; gap: 8px; }
.cu-sec h2 { margin: 6px 0 0; font-size: 13px; font-weight: 650; color: var(--ink-2); display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.cu-sec h2 .cu-sum { font-weight: 500; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cu-pkg { background: #FFFFFF; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.cu-pkg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: #FAFAFB; border-bottom: 1px solid var(--line); }
.cu-pst { margin-left: auto; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.cu-pkg.ps-ready .cu-pst { background: #EEF6FF; color: #1D5FA8; }
.cu-pkg.ps-shipped .cu-pst, .cu-pkg.ps-received .cu-pst { background: var(--ok-bg); color: var(--ok-fg); }
.cu-line { display: grid; grid-template-columns: 40px 130px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--row-line); background: #FFFFFF; cursor: pointer; }
.cu-sec > .cu-line { border-radius: 10px; box-shadow: var(--shadow); border-bottom: 0; }
.cu-pkg .cu-line:last-child { border-bottom: 0; }
.cu-line:hover { background: #FBFBFD; }
.cu-line .photo { display: block; width: 40px; height: 40px; }
.cu-line .mk { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cu-line .gd .nm { display: block; font-weight: 550; }
.cu-line .gd .sub { display: block; font-size: 12px; color: var(--ink-3); }
.cu-line .rt-r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cu-line .mk-m { display: none; }
.modal.cu-item { width: 560px; gap: 10px; }
.modal.cu-item.cu-pay { max-width: 440px; }
.modal.cu-item h2 { margin: 0; font-size: 18px; line-height: 26px; }
.modal.cu-item .mk { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.modal.cu-item p { margin: 0; }
.cu-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.cu-imgs .photo { display: block; width: 120px; height: 120px; border-radius: 10px; }
.cu-sec-mini { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.cu-sec-mini h3 { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.cu-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.cu-kv span { color: var(--ink-3); }
.cu-kv b { font-weight: 550; font-variant-numeric: tabular-nums; text-align: right; }
.cu-kv.sum b { font-weight: 700; font-size: 14px; }
.cu-kv.sum { padding-top: 4px; border-top: 1px dashed var(--line); }
.cu-kv i { font-style: normal; }

@media (min-width: 900px) and (max-width: 1599px) {
  .cu-app { display: block; }
  .cu-side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 8px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cu-brand { padding: 0; }
  .cu-side-title, .cu-batches { display: none; }
  .cu-pick { display: flex; width: 280px; height: 34px; }
  .cu-side-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; }
  .cu-main { padding: 18px 20px 96px; }
  .cu-table-wrap { max-height: calc(100vh - 300px); }
  .cu-app.fill { display: flex; flex-direction: column; }
  .cu-app.fill .cu-side { flex: none; align-self: stretch; }
  .cu-app.fill .cu-main { flex: 1 1 auto; }
  .cu-selbar { left: 50%; }
}
@media (max-width: 899px) {
  .cu-app { display: block; }
  .cu-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cu-brand { padding: 0; flex: 1; }
  .cu-side-title, .cu-batches { display: none; }
  .cu-pick { display: flex; order: 3; flex: 1 1 100%; height: 40px; font-size: 15px; }
  .cu-forms-menu .menu-item { min-height: 44px; font-size: 15px; }
  .cu-side-foot { margin: 0; padding: 0; border: 0; flex-direction: row; align-items: center; }
  .cu-langs button { height: 30px; padding: 0 6px; }
  .cu-res { display: none; }
  .cu-main { padding: 14px 16px 24px; gap: 12px; }
  .cu-head h1 { font-size: 19px; }
  .cu-moneys { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cu-money { min-width: 0; padding: 0; }
  .cu-money b { font-size: 14px; line-height: 20px; }
  .cu-money i { display: none; }
  .cu-head h1 { display: none; }
  .cu-bar { flex-direction: column; align-items: stretch; gap: 10px; border-bottom: 0; }
  .cu-bar .cu-tabs { border-bottom: 1px solid var(--line); }
  .cu-bar .cu-tools { padding-bottom: 0; flex-wrap: nowrap; gap: 8px; }
  .cu-search { flex: 1 1 auto; width: auto; }
  .cu-tools .btn.primary { flex: none; height: 40px; }
  .cu-tabs { gap: 16px; }
  .cu-line { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .cu-line .mk { display: none; }
  .cu-line .mk-m { display: inline; }
  .fchip { height: 32px; }
  .modal.cu-item { width: calc(100vw - 16px); max-width: none; max-height: calc(100vh - 24px); padding: 16px; }
  .cu-imgs .photo { width: 96px; height: 96px; }
}

/* 开新包装：写成什么 + 改编号 排一行；提示条的绿色（放好了、还有包装没装完） */
.w-hint.w-pk-say { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; color: var(--ink-2); }
.w-pk-say .w-link { min-height: 44px; padding: 0 4px; font-size: 15px; }
.w-notice.ok { background: var(--ok-bg); color: var(--ok-fg); }
/* Customer page on a phone: numbers on one line, taps at least 44px, room between 语言 and 退出. */
@media (max-width: 899px) {
  .cu-moneys { align-items: end; }
  /* (11-20, the user) Paid up: just 已结清 on the line of the sums, not a tall empty block above them. */
  .cu-moneys { grid-template-columns: auto auto minmax(0, 1fr); gap: 8px 18px; }
  .cu-money.ok span { display: none; }
  .cu-head { row-gap: 8px; }
  /* (11-22, the user) The rate is a small "$1 = ¥6.39" at the right end of the sums line, not a line of its own. */
  .cu-head > div:first-child { display: none; }
  /* Sums sit side by side at their own width; if a long label leaves no room, the rate drops under them on the right. */
  .cu-moneys { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 18px; }
  .cu-money span { white-space: nowrap; }
  .cu-rate { display: block; margin-left: auto; font-size: 12px; line-height: 20px; color: var(--ink-4); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .cu-card .row1 { flex-wrap: wrap; row-gap: 4px; }
  .modal.cu-item .x-btn { width: 44px; height: 44px; margin: -8px -8px -8px auto; font-size: 22px; }
  .cu-side-foot { gap: 12px; }
  .cu-langs button { height: 36px; padding: 0 8px; }
  .cu-side-foot .btn { height: 36px; }
  .cu-cardsum { bottom: env(safe-area-inset-bottom); }
}

/* ② 采购: one more private column (what the row earns) and the sums kept at the bottom of the screen. */
.qrow.b { grid-template-columns: var(--mark-w, 116px) 36px minmax(0, 1fr) 36px 76px 76px 76px 64px 112px 82px 56px; }
/* Enlarged with Chrome's ⌘+ (11-17: the user finds the admin text small): at 125% a 1440 screen is 1152 wide and the
   goods name was left two characters. Below 1280 the sidebar and margins narrow and the fixed columns tighten; the goods
   name keeps at least 140px, and where even that does not fit (150%) the table scrolls sideways like the 钱 table. */
@media (max-width: 1280px) {
  .sidebar { width: 192px; }
  .main { padding-left: 16px; padding-right: 16px; }
  .qrow.b { grid-template-columns: var(--mark-w, 116px) 36px minmax(140px, 1fr) 36px 72px 72px 72px 60px 96px 80px 40px; gap: 6px; padding-left: 12px; padding-right: 12px; }
  .bgrid { min-width: calc(var(--mark-w, 116px) + 788px); }
}
/* At 150% the five step cards are about 147px: “77 / 105 已采购” broke onto two lines. A size smaller, one line. */
@media (max-width: 1100px) {
  .step { padding-left: 12px; padding-right: 12px; }
  .step .step-value { font-size: 16px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.qrow .gain { text-align: right; font-size: 13px; line-height: 16px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.qrow .gain i { display: block; font-style: normal; font-size: 11px; line-height: 14px; color: var(--ink-4); }
.qrow .gain.neg, .qrow .gain.neg i { color: var(--bad-fg); }
.qrow.head .gain-h { text-align: right; }
.qtable > .table-foot { position: sticky; bottom: 0; z-index: 2; border-radius: 0 0 10px 10px; box-shadow: 0 -1px 0 var(--line); }
.table-foot .spacer { flex: 1; }
.table-foot .fsum { white-space: nowrap; color: var(--ink-3); }
.table-foot .fsum b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.table-foot .gain-sum b { color: var(--warn-fg); }
.table-foot .gain-sum i { font-style: normal; margin-left: 6px; color: var(--ink-3); }
.table-foot .gain-sum.neg b { color: var(--bad-fg); }
.gain-total b i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-left: 8px; }
.gap-line { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 0; border: 0; background: none; font-size: 12.5px; line-height: 18px; color: var(--warn-fg); cursor: pointer; }
.gap-line:hover { text-decoration: underline; }

.qrow.b.show-last .goods > .sub:not(.last) { display: none; }
.qrow.b .sub.last { color: var(--warn-fg); }
.last-block { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 18px; }
.last-block .lbl { color: var(--ink-4); font-size: 12px; }
.last-block .ln { display: grid; grid-template-columns: minmax(0, 1.3fr) 44px 58px 58px minmax(0, 1fr); gap: 8px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.last-block .ln .w { overflow: hidden; text-overflow: ellipsis; }
.qrow .gain, .qrow.head .gain-h { padding-right: 4px; }
.frow .free-btn { margin-left: 6px; height: 22px; padding: 0 7px; font-size: 12px; color: var(--ink-3); }
/* The button shares the row with the label: the cell gives up the width, so the column beside it keeps its own. */
.frow.with-btn .finput { width: 104px; }
body.am-body .frow .free-btn { height: 32px; padding: 0 10px; font-size: 13px; }
/* 复制给 Boss: what to copy and the language. On a phone the two do not fit one line: the language drops under. */
.quote-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.quote-pick .seg button { white-space: nowrap; }

/* 资料库 · 车型 (admin only): the car list, one car's four sections, and the same on the admin phone */
.lx-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: 0; }
.lx-dash { color: var(--ink-4); }
.lx-top { gap: 12px; }
.lx-search { display: flex; gap: 8px; }
.lx-search .input { flex: 1; min-width: 0; height: 34px; font-size: 13.5px; }
.lx-search .btn { height: 34px; padding: 0 16px; }
.lx-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--ink-3); }
.lx-stats b { color: var(--ink); font-weight: 600; }
.lx-stats .warn-text b { color: var(--warn-fg); }
.lx-filter { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.lx-hit { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 8px; background: var(--soft); }
.lx-hit.ok { background: var(--ok-bg); }
.lx-hit.new { background: var(--warn-bg); color: var(--warn-fg); }
.lx-hit-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.lx-hit-main b { font-size: 14px; color: var(--ink); }
.lx-hit.new .lx-hit-main b { color: var(--warn-fg); }
.lx-hit-from { font-size: 12px; color: var(--ok-fg); }
.lx-pending { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lx-pending-head { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--warn-fg); background: var(--warn-bg); }
.lx-prow-p { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 16px; border-top: 1px solid var(--row-line); font-size: 12.5px; }
.lx-prow-p .ok-text { color: var(--ok-fg); font-weight: 600; }
.lx-pbtns { display: flex; gap: 6px; }
.lx-table { overflow: hidden; }
.lx-sec { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--soft); border-bottom: 1px solid var(--line); }
.lx-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px 96px 96px; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--row-line); cursor: pointer; }
.lx-row:hover { background: var(--soft); }
.lx-row.head, .lx-mrow.head, .lx-prow.head, .lx-vrow.head { background: #FFFFFF; border-bottom-color: var(--line); font-size: 11.5px; font-weight: 500; color: var(--ink-4); padding-top: 8px; padding-bottom: 8px; cursor: default; }
.lx-row.head:hover { background: #FFFFFF; }
.lx-row .n, .lx-prow .n { text-align: right; font-variant-numeric: tabular-nums; }
.lx-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lx-name b { font-weight: 500; color: var(--ink); }
.lx-crumb { margin: -6px 0 -8px -8px; }
.lx-car-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lx-car-head h2 { margin: 0; font-size: 19px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.lx-mrow { display: grid; grid-template-columns: minmax(110px, 0.9fr) minmax(150px, 1fr) minmax(110px, 0.9fr) minmax(120px, 1fr) 88px 110px; gap: 10px; align-items: start; padding: 8px 16px; border-bottom: 1px solid var(--row-line); line-height: 20px; }
.lx-mrow b { font-weight: 500; }
.tag.lx-src.ok { background: var(--ok-bg); color: var(--ok-fg); }
.lx-prow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 64px 72px 150px 96px; gap: 12px; align-items: center; padding: 7px 16px; border-bottom: 1px solid var(--row-line); }
.lx-prow > span.muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-tools { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.lx-tools .spacer { flex: 1; }
.lx-side { position: sticky; top: 16px; }
.lx-side .frow > span:last-child { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.lx-doc { font-size: 12.5px; color: var(--brand-deep); overflow-wrap: anywhere; }
.lx-spell { display: flex; flex-wrap: wrap; gap: 4px; }
.lx-spell .tag i { font-style: normal; color: var(--ink-4); margin-left: 4px; }
.lx-grp { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--row-line); background: #FFFFFF; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.lx-grp:hover { background: var(--soft); }
.lx-grp b { font-weight: 500; flex: 1; }
.lx-grp.on b { font-weight: 600; }
.lx-caret { width: 14px; color: var(--ink-4); }
.lx-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 12px 16px 16px; border-bottom: 1px solid var(--row-line); background: var(--soft); }
.lx-dcard { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lx-dcard b { font-weight: 500; font-size: 12.5px; line-height: 17px; overflow-wrap: anywhere; }
.photo.lx-dimg { display: block; width: 100%; height: auto; aspect-ratio: 2480 / 3510; border-radius: 6px; background-color: #FFFFFF; box-shadow: 0 0 0 1px var(--line); margin-bottom: 4px; }
.lx-vrow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 140px; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--row-line); }
.a-app .lx-ph-search { padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.lx-search.ph .input, .lx-search.ph .btn { height: 44px; font-size: 16px; }
.lx-search.ph + .lx-hit, .lx-search.ph ~ .lx-filter { font-size: 14px; }
.lx-pending.ph { margin: 8px 12px 0; }
.lx-pending.ph .lx-prow-p { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px; }
.lx-pending.ph .lx-prow-p .muted { grid-column: 1; grid-row: 2; }
.lx-pending.ph .lx-pbtns { grid-column: 2; grid-row: 1 / span 2; }
.lx-pending.ph .btn.small { min-height: 36px; padding: 0 12px; }
.lx-h6 { padding: 12px 16px 6px; font-size: 13px; color: var(--ink-3); }
.lx-list { display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 12px; }
.lx-pcard { display: flex; flex-direction: column; gap: 3px; padding: 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.lx-pcard.row { flex-direction: row; gap: 12px; align-items: center; }
.lx-pcard[data-act] { cursor: pointer; }
.lx-pt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.lx-pt b { font-size: 15px; font-weight: 600; line-height: 21px; min-width: 0; overflow-wrap: anywhere; }
.lx-tags { flex: none; display: inline-flex; gap: 4px; }
.lx-poe.lx-mono, .lx-poe { font-size: 15px; line-height: 21px; color: var(--ink); overflow-wrap: anywhere; }
.lx-pm { font-size: 13.5px; color: var(--ink-3); line-height: 19px; overflow-wrap: anywhere; }
.lx-pbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.photo.lx-pimg { width: 56px; height: 56px; border-radius: 8px; }
.a-app .lx-ph-dia { margin: 4px 12px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
.a-app .lx-dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.a-app .lx-grp { min-height: 48px; font-size: 15px; }

/* 包裹照片 (11-18): as many as were taken; a hidden one is faded and marked 客户看不到 (admin, warehouse only). */
.pph { position: relative; display: inline-flex; flex-direction: column; gap: 4px; width: 132px; align-self: flex-start; }
.pph .thumb { width: 132px; height: 132px; border-radius: 8px; cursor: zoom-in; }
.pph.hid .thumb { opacity: .45; }
.pph-tag { position: absolute; top: 6px; left: 6px; padding: 0 6px; border-radius: 5px; background: rgba(24, 24, 27, .78); color: #FFFFFF; font-size: 11px; font-weight: 600; line-height: 18px; }
.pph-by { font-size: 11.5px; line-height: 15px; color: var(--ink-3); overflow-wrap: anywhere; }
.pph-acts { display: flex; flex-wrap: nowrap; gap: 4px; }
.pph-acts .btn.small { height: 24px; padding: 0 6px; font-size: 11.5px; white-space: nowrap; }
.pph-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pph-mini { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.pph-mini .thumb { width: 36px; height: 36px; border-radius: 5px; cursor: zoom-in; }
.pph-mini .thumb.hid { opacity: .45; }
.pph-more { font-size: 12px; color: var(--ink-3); }
.pzone.w .pph, .pzone.w .pph .thumb { width: 104px; }
.pzone.w .pph .thumb { height: 104px; }
body.am-body .pph-acts .btn.small { height: 32px; }
.cu-pkg-photos { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.cu-pkg-photos .thumb { width: 88px; height: 88px; border-radius: 8px; cursor: zoom-in; }
