/* ============================================================
   仓库拣货系统 · 尚宝德  —  视觉规范 v5.3（浅色高级质感）
   品牌：描金 #C9A227 · 蓝用于强调(按钮/激活) · 绿=已拣 琥珀=进行 灰=空
   ============================================================ */
:root {
  --ink: #1A2233;
  --tx2: #5B6678;
  --tx3: #9AA3B2;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --line: #ECEEF2;
  --line-2: #F5F6F9;
  --brand: #2F6BFF;
  --brand-dk: #1B4DE0;
  --brand-lt: #6B9BFF;
  --gold: #C9A227;
  --ok: #16A34A;
  --ok-bg: #E7F6EC;
  --warn: #E08A00;
  --warn-bg: #FEF3E2;
  --err: #E5484D;
  --err-bg: #FDECEC;
  --pill: #F1F3F6;
  --r: 16px;
  --r-sm: 11px;
  --sh: 0 1px 2px rgba(20, 30, 50, .05), 0 6px 18px rgba(20, 30, 50, .05);
  --sh-lg: 0 14px 44px rgba(20, 30, 50, .18);
  --grad-brand: linear-gradient(135deg, #3B74FF 0%, #2F6BFF 100%);
  --grad-gold: linear-gradient(135deg, #B98F1C 0%, #C9A227 50%, #E7CC6B 100%);
  --grad-ok: linear-gradient(135deg, #1FB255 0%, #16A34A 100%);
  --grad-err: linear-gradient(135deg, #F2565B 0%, #E5484D 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* 需求B：禁用移动端双击放大（double-tap to zoom），保留 pinch 缩放；消除 300ms 延迟 */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

input, select, button, textarea { font-family: inherit; font-size: inherit; }
.mono { font-family: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* ---------------- 顶部品牌栏（白底·描金标） ---------------- */
.appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  padding-top: max(11px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.ab-l { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  background: var(--grad-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #3A2B00;
  box-shadow: 0 4px 12px rgba(201, 162, 39, .34), inset 0 1px 0 rgba(255, 255, 255, .5);
  letter-spacing: 1px;
}
.ab-t { font-size: 16px; font-weight: 800; letter-spacing: .3px; line-height: 1.2; }
.ab-s { font-size: 10.5px; color: var(--tx3); letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.ab-r { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.ab-exit {
  background: #F2F4F8; border: 1px solid var(--line); color: var(--tx2);
  border-radius: 9px; padding: 6px 11px; font-size: 12.5px; cursor: pointer; font-weight: 600;
}
.ab-exit:active { background: #E8EBF1; }

/* ---------------- 页面容器 ---------------- */
.page { padding: 14px 13px calc(84px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; }
.page-title { font-size: 21px; font-weight: 800; letter-spacing: .2px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.page-title::before { content: ''; width: 4px; height: 19px; border-radius: 3px; background: var(--grad-gold); display: inline-block; }
.page-sub { font-size: 12.5px; color: var(--tx2); margin-top: 3px; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px; margin-bottom: 12px; box-shadow: var(--sh);
}
.card-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 12px;
}
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 11px; }
.field label { display: block; font-size: 12px; color: var(--tx2); margin-bottom: 5px; font-weight: 600; }
.input {
  width: 100%; padding: 12px 13px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #FBFCFE; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--tx3); }
.input:focus { border-color: var(--brand-lt); background: #fff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .14); }
.input.lg { padding: 14px; font-size: 16px; }
.hint { font-size: 12px; color: var(--tx2); line-height: 1.7; margin-top: 8px; }

/* ---------------- 按钮（微交互） ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 16px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); cursor: pointer;
  transition: transform .08s, box-shadow .18s, background .15s, border-color .15s;
  user-select: none;
}
.btn:hover { background: #F7F8FA; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 18px; font-size: 16px; border-radius: 13px; letter-spacing: 1px; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }

.btn-primary { background: var(--grad-brand); color: #fff; border: none; box-shadow: 0 6px 18px rgba(47, 107, 255, .32); }
.btn-primary:hover { background: linear-gradient(135deg, #4B81FF, #3B74FF); box-shadow: 0 10px 26px rgba(47, 107, 255, .42); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.98); }

.btn-ghost { background: #fff; color: var(--tx2); border-color: var(--line); }
.btn-ghost:hover { background: #F4F6FA; color: var(--ink); }

.btn-danger { background: var(--grad-err); color: #fff; border: none; box-shadow: 0 6px 18px rgba(229, 72, 77, .3); }
.btn-danger:hover { box-shadow: 0 10px 26px rgba(229, 72, 77, .42); }

/* ---------------- 分段控件 ---------------- */
.seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: #ECEEF2; border-radius: 13px; }
.seg button { flex: 1; padding: 9px 6px; font-size: 13.5px; font-weight: 600; border: none; border-radius: 10px; background: transparent; color: var(--tx2); transition: all .18s; }
.seg button.on { background: #fff; color: var(--brand-dk); box-shadow: 0 2px 8px rgba(20, 30, 50, .1); }

/* ---------------- 列表项 ---------------- */
.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: none; }
.item .l { flex: 1; min-width: 0; }
.item .r { flex: 0 0 auto; text-align: right; }
.item .t { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.item .s { font-size: 12px; color: var(--tx2); margin: 2px 0 6px; }

/* ---------------- 进度条 ---------------- */
.bar { height: 7px; border-radius: 6px; background: #ECEEF2; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3B74FF, #6B9BFF); transition: width .35s ease; }
.bar.green > i { background: linear-gradient(90deg, #1FB255, #4ADE80); }
.bar.orange > i { background: linear-gradient(90deg, #E08A00, #FBBF24); }

/* ---------------- 徽章 ---------------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; background: #EEF0F4; color: var(--tx2); white-space: nowrap; }
.badge.blue { background: #E8F0FF; color: var(--brand-dk); }
.badge.green { background: var(--ok-bg); color: var(--ok); }
.badge.orange { background: var(--warn-bg); color: var(--warn); }
.badge.red { background: var(--err-bg); color: var(--err); }
.badge.gray { background: #EEF0F4; color: var(--tx2); }
.badge.gold { background: linear-gradient(135deg, #FBF3D5, #F3E3AE); color: #8A6A10; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; border-radius: var(--r-sm); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { background: #F7F8FA; color: var(--ink); font-weight: 700; font-size: 12px; text-align: left; padding: 10px 8px; white-space: nowrap; border-bottom: 1.5px solid var(--line); position: sticky; top: 0; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:nth-child(even) { background: #FCFDFE; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th.num { text-align: right; }
.c-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.c-bc { font-size: 11.5px; color: var(--tx3); margin-top: 2px; }
.c-spec { font-size: 11px; color: var(--tx3); margin-top: 1px; }
.c-pct { font-weight: 700; }
.c-cell { border-radius: 8px; }
.c-empty { color: var(--tx3); font-size: 11px; }

/* ---------------- 空态 ---------------- */
.empty { text-align: center; color: var(--tx3); font-size: 13.5px; padding: 34px 16px; line-height: 1.9; }

/* ---------------- 任务卡片 ---------------- */
.tsk { padding: 13px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; border-radius: 10px; }
.tsk:last-child { border-bottom: none; }
.tsk:active { background: #F7F8FA; }
.tsk-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tsk-no { font-size: 14px; font-weight: 800; color: var(--brand-dk); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tsk-s { font-size: 11.5px; color: var(--tx2); margin-top: 4px; }
.tsk-r { flex: 0 0 auto; font-size: 12px; color: var(--tx2); font-variant-numeric: tabular-nums; }
.tsk-bar { margin-top: 9px; display: grid; gap: 6px; }
.tsk-bar > div { display: flex; align-items: center; gap: 8px; }
.tsk-bar span { flex: 0 0 30px; font-size: 11.5px; color: var(--tx2); }
.tsk-bar .bar { flex: 1; }
.tsk-bar b { flex: 0 0 38px; text-align: right; font-size: 12px; color: var(--ink); }
.lnk { color: var(--brand); text-decoration: none; font-weight: 600; }
.lnk:active { opacity: .7; }

/* ---------------- 概况卡（详情） ---------------- */
.ov { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ov-col { flex: 1; min-width: 0; }
.ov-r { text-align: right; border-left: 1px solid var(--line); padding-left: 14px; }
.ov-label { font-size: 12px; color: var(--tx2); margin-bottom: 4px; }
.ov-v { font-size: 18px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ov-r .ov-v { font-size: 22px; }
.ov-s { font-size: 12px; color: var(--tx2); margin-top: 4px; }

/* ---------------- 扫码 hero ---------------- */
.scan-hero { border: 1px solid var(--line); }
.scan-row { display: flex; gap: 9px; align-items: center; }
.scan-row .input { flex: 1; }
.scan-cam { flex: 0 0 auto; width: 50px; padding: 0; height: 48px; border-radius: 12px; }

/* ---------------- 统计卡 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; box-shadow: var(--sh); position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.stat .v { font-size: 21px; font-weight: 800; color: var(--brand-dk); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 11px; color: var(--tx2); margin-top: 3px; }
.stat.green .v { color: var(--ok); } .stat.green::before { background: var(--ok); }
.stat.warn .v { color: var(--warn); } .stat.warn::before { background: var(--warn); }
.stat.danger .v { color: var(--err); } .stat.danger::before { background: var(--err); }

/* ---------------- 底部导航 ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(20, 30, 50, .06);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar button { flex: 1; padding: 8px 2px 7px; border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--tx3); cursor: pointer; position: relative; }
.tabbar button .ico { height: 22px; display: flex; align-items: center; }
.tabbar button svg { width: 21px; height: 21px; stroke: var(--tx3); fill: none; stroke-width: 1.9; }
.tabbar button.on { color: var(--brand-dk); font-weight: 700; }
.tabbar button.on svg { stroke: var(--brand); stroke-width: 2.2; }
.tabbar button.on::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-gold); }

/* ---------------- Toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: rgba(26, 34, 51, .94); color: #fff; font-size: 13.5px; padding: 11px 18px; border-radius: 22px; z-index: 99; max-width: 84vw; box-shadow: 0 8px 26px rgba(0, 0, 0, .24); text-align: center; line-height: 1.5; }
.toast.ok { background: var(--grad-ok); }
.toast.err { background: var(--grad-err); }
.hidden { display: none !important; }

/* ---------------- 登录页 ---------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(900px 460px at 12% -8%, rgba(107, 155, 255, .28), transparent 60%), radial-gradient(700px 420px at 92% 108%, rgba(201, 162, 39, .22), transparent 62%), linear-gradient(160deg, #F2F4F8 0%, #E9EEF6 100%); position: relative; overflow: hidden; }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 400px; background: rgba(255, 255, 255, .98); border-radius: 24px; padding: 32px 26px 24px; box-shadow: 0 24px 70px rgba(20, 30, 60, .18); border: 1px solid rgba(255, 255, 255, .9); }
.lg-brand { text-align: center; margin-bottom: 22px; }
.lg-logo { width: 74px; height: 74px; margin: 0 auto 13px; border-radius: 22px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; letter-spacing: 2px; box-shadow: 0 10px 26px rgba(47, 107, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .35); position: relative; }
.lg-logo::after { content: ''; position: absolute; inset: -4px; border-radius: 25px; border: 1.5px solid rgba(201, 162, 39, .75); }
.lg-co { font-size: 17.5px; font-weight: 800; color: #1A2B4E; letter-spacing: .5px; }
.lg-co-en { font-size: 9.5px; color: #8A97AD; letter-spacing: 1.6px; margin-top: 4px; text-transform: uppercase; }
.lg-div { display: flex; align-items: center; gap: 10px; margin: 17px 0 15px; font-size: 13px; color: #64748B; font-weight: 700; letter-spacing: 3px; }
.lg-div::before, .lg-div::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #D6DEEB, transparent); }
.login-card .field label { color: #5A6779; }
.lg-quick { display: flex; flex-direction: column; gap: 9px; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #E1E8F2; }
.quick-chip { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 14px; text-align: left;
  background: linear-gradient(135deg, #FFFFFF, #F5F8FD); border: 1px solid #DCE5F1; border-radius: 14px;
  cursor: pointer; transition: transform .14s, box-shadow .18s, border-color .18s; }
.quick-chip:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47,107,255,.14); border-color: var(--brand-lt); }
.quick-chip:active { transform: scale(.985); }
.qc-av { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: linear-gradient(135deg, #2F6BFF, #6B9BFF); color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 9px rgba(47,107,255,.32); }
.qc-t { font-size: 14.5px; font-weight: 650; color: #25324A; flex: 1; }
.qc-s { font-size: 11px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #C9A227, #E4C158);
  padding: 4px 9px; border-radius: 999px; letter-spacing: .5px; }
.lg-foot { text-align: center; font-size: 10.5px; color: #A3AEC0; margin-top: 16px; letter-spacing: .6px; }

/* ---------------- 扫码层 ---------------- */
.scan-overlay { position: fixed; inset: 0; z-index: 100; background: #05122B; display: flex; align-items: center; justify-content: center; }
.scan-box { width: 100%; max-width: 460px; padding: 18px; position: relative; }
.scan-head { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.scan-close { background: rgba(255, 255, 255, .14); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; cursor: pointer; }
.scan-box video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 3/4; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, .18); }
.scan-line { position: absolute; left: 18px; right: 18px; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, #4ADE80, transparent); box-shadow: 0 0 14px #4ADE80; animation: scany 2.2s ease-in-out infinite; }
@keyframes scany { 0%, 100% { transform: translateY(-72px); opacity: .9; } 50% { transform: translateY(72px); opacity: .55; } }
.scan-tip { color: rgba(255, 255, 255, .88); text-align: center; font-size: 13px; margin-top: 14px; }

/* ============================================================
   弹窗：扫到条码即弹出分店选择
   ============================================================ */
.modal-mask { position: fixed; inset: 0; z-index: 120; background: rgba(18, 26, 43, .46); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 560px) { .modal-mask { align-items: center; } }
.modal { width: 100%; max-width: 480px; max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 20px 20px 0 0; box-shadow: var(--sh-lg); overflow: hidden;
  animation: slideup .26s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 560px) { .modal { border-radius: 20px; } }
@keyframes slideup { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.mh-title { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.mh-sub { font-size: 11.5px; color: var(--tx3); margin-top: 3px; }
.modal-x { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: none; background: #F2F4F8; color: var(--tx2); font-size: 14px; cursor: pointer; }
.modal-x:active { background: #E8EBF1; }
.modal-body { padding: 12px 14px; overflow-y: auto; }
.modal-tip { font-size: 12px; color: var(--tx2); margin-bottom: 10px; }

.ms-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; transition: border-color .15s, background .15s; }
.ms-row:has(.ms-chk:checked) { border-color: var(--brand-lt); background: #F5F8FF; }
.ms-row.done { background: #FAFBFC; border-style: dashed; }
.ms-chk { width: 19px; height: 19px; accent-color: var(--brand); flex: 0 0 auto; }
.ms-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ms-need { font-size: 12.5px; color: var(--tx2); white-space: nowrap; }
.ms-need b { color: var(--brand-dk); font-variant-numeric: tabular-nums; }
.ms-row.on { border-color: var(--brand-lt); background: #F5F8FF; }
.ms-give { font-size: 12.5px; color: var(--brand-dk); font-weight: 700; white-space: nowrap; }

.ms-total-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.ms-label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ms-total-row #msTotal { flex: 1; min-width: 110px; height: 42px; font-size: 18px; font-weight: 800; color: var(--brand-dk); }
.ms-cases { font-size: 13px; color: var(--ok); font-weight: 700; white-space: nowrap; }
.ms-total-sub { font-size: 12.5px; color: var(--tx2); margin-bottom: 10px; }
.ms-full { font-size: 12px; font-weight: 700; color: var(--ok); }
.ms-stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex: 0 0 auto; }
.ms-stepper button { width: 34px; height: 36px; border: none; background: #F4F6FA; color: var(--brand-dk); font-size: 18px; font-weight: 700; cursor: pointer; }
.ms-stepper button:active { background: #E8EEFB; }
.ms-qty { width: 48px; height: 36px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 15px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.ms-qty::-webkit-outer-spin-button, .ms-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.modal-err { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--err-bg); color: var(--err); font-size: 13px; font-weight: 600; line-height: 1.5; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.shake { animation: shake .35s ease; }

.modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: #FBFCFE; }
.ms-total { flex: 1; font-size: 13px; color: var(--tx2); }
.ms-total b { font-size: 18px; color: var(--brand-dk); font-variant-numeric: tabular-nums; margin: 0 2px; }

.modal-ok { padding: 46px 20px; text-align: center; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.ok-ring { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad-ok); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(22, 163, 74, .36); }
.ok-ring svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 3; }
.ok-title { font-size: 19px; font-weight: 800; color: var(--ink); }
.ok-sub { font-size: 13px; color: var(--tx2); margin-top: 4px; }

/* ---------------- 逐店指引站（v5.6b） ---------------- */
.guide-station{display:inline-block;background:var(--gold,#C9A227);color:#1c1c1c;font-weight:700;font-size:13px;padding:4px 12px;border-radius:999px;margin-bottom:14px;}
.guide-store{font-size:30px;font-weight:800;color:var(--tx1,#1c1c1c);line-height:1.2;margin-bottom:10px;}
.guide-qty{font-size:18px;color:var(--tx1,#1c1c1c);margin-bottom:6px;}
.guide-qty b{color:var(--blue,#2F6BFF);font-size:24px;}
.guide-total{font-size:13px;color:var(--tx3,#8a8f99);margin-bottom:8px;}

/* v5.6c：逐站实拣数量可编辑 */
.guide-input-row{display:flex;align-items:center;gap:10px;margin:10px 0 4px;}
.guide-input-row .ms-label{font-size:14px;color:var(--tx2,#5b616e);}
.guide-input-row .input{width:110px;font-size:20px;font-weight:700;text-align:center;}
.guide-input-row .ms-cases{font-size:14px;color:var(--tx3,#8a8f99);}

/* ---------------- 小屏微调 ---------------- */
@media (max-width: 360px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 19px; }
}
