/* 闪站海外仓 · 第三版 · 入库段加的样式：仓库电脑的外壳、干活页面的零件、弹窗、PDA。
   颜色、字体、按钮还是 wms3.css 那一套。这里的类名都带 w- 或 p- 前缀，不和货主端的撞。 */

/* ===== 仓库电脑外壳：顶栏多一个「现在在哪个仓」和当地时间 ===== */
.top .w-wh{margin-left:28px;height:34px;display:flex;align-items:center;gap:7px;padding:0 10px 0 11px;border:1px solid var(--line-3);border-radius:var(--r-s);font-size:13.5px;color:var(--ink)}
.top .w-wh svg{width:15px;height:15px;fill:none;stroke:var(--ink-3);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.top .w-clk{font:400 13px var(--num);color:var(--ink-2);padding-right:10px} .top .w-clk small{font:400 12px var(--sans);color:var(--ink-3);margin-left:4px}
.me .av.w{background:var(--run-bg);color:var(--run-ink)}

/* 左菜单第二层：只展开当前那一组 */
.mi .ar{margin-left:auto;display:flex} .mi .ar svg{width:13px;height:13px;stroke:var(--ink-4);stroke-width:1.8}
.mi.open{color:var(--ink);font-weight:500} .mi.open>svg{stroke:var(--brand)} .mi.open .ar svg{transform:rotate(180deg);stroke:var(--ink-3)}
.w-sub{padding:2px 0 6px}
.ms{height:34px;display:flex;align-items:center;padding:0 12px 0 41px;border-radius:var(--r-s);font-size:13.5px;color:var(--ink-2)}
.ms.on{background:var(--tint-1);color:#056647;font-weight:500}

/* ===== 作业页（扫码核对、扫码上架、打包台这类一边扫一边记的页）：整页不滚，表在框里滚，汇总和按钮固定在窗口底部 ===== */
body.w-work{height:100vh;overflow:hidden}
body.w-work .wrap{height:calc(100vh - 56px);min-height:0}
body.w-work .side{overflow-y:auto}
body.w-work main{display:flex;flex-direction:column;min-height:0;padding:16px 32px 0}
body.w-work .w-cols{flex:1;min-height:0;align-items:stretch}
body.w-work .w-cols>.stack{min-height:0;overflow-y:auto}
body.w-work .w-list{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.w-scroll{flex:1;min-height:0;overflow-y:auto;position:relative}
.w-scroll thead th{position:sticky;top:0;z-index:2;background:var(--head);box-shadow:inset 0 -1px 0 var(--line-2)}
.w-t tr.w-hl>td:first-child{box-shadow:inset 3px 0 0 var(--brand)}
.w-bar{flex:none;display:flex;align-items:center;gap:10px;margin:16px -32px 0;padding:12px 32px;background:#fff;border-top:1px solid var(--line-2);box-shadow:0 -6px 18px rgba(15,20,35,.06)}
.w-tot{display:flex;gap:28px;align-items:baseline;font-size:13px;color:var(--ink-3)} .w-tot b{font:500 17px var(--num);color:var(--ink);margin-left:8px} .w-tot b.t{color:var(--todo-num)}
.w-bar .r{margin-left:auto;display:flex;align-items:center;gap:10px}
.w-bar .q{font-size:13px;color:var(--ink-3);margin-right:8px} .w-bar .q u{text-decoration:none;color:var(--brand);margin-left:4px}

/* 普通页（详情页）底部也有一条按钮时：页面短就贴在窗口底部，页面长就一直固定在窗口底部 */
body.w-page main{display:flex;flex-direction:column;padding-bottom:0}
body.w-page main>*:nth-last-child(2){margin-bottom:24px}
body.w-page .w-bar{position:sticky;bottom:0;margin-top:auto}

/* ===== 页头里的小零件 ===== */
.w-bt{display:inline-flex;align-items:center;height:24px;padding:0 9px;margin-left:12px;border-radius:6px;background:var(--sunken);font:500 13px var(--sans);color:var(--ink-2);vertical-align:3px}
.w-stp{display:flex;align-items:center;gap:0;list-style:none;font-size:13px;color:var(--ink-3)}
.w-stp li{display:flex;align-items:center;gap:8px} .w-stp li+li::before{content:'';width:28px;height:1px;background:var(--line-3);margin:0 10px}
.w-stp b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font:500 12px var(--num);background:var(--sunken);color:var(--ink-3)}
.w-stp .on{color:var(--ink);font-weight:500} .w-stp .on b{background:var(--brand);color:#fff}
.w-stp .ok b{background:var(--done-bg);color:var(--done-ink)}

/* ===== 一条数：预报 / 已扫码 / 待到 ===== */
.w-kpi{display:flex;align-items:stretch;margin-bottom:16px}
.w-kpi>div{flex:1;padding:14px 20px} .w-kpi>div+div{border-left:1px solid var(--line)}
.w-kpi .lab{display:block;margin-bottom:2px}
.w-kpi .v{font:500 22px/30px var(--num)} .w-kpi .v small{font:400 13px var(--sans);color:var(--ink-3);margin:0 10px 0 3px}
.w-kpi .v2{font-size:12.5px;color:var(--ink-3);line-height:18px}

.w-cols{display:grid;grid-template-columns:316px minmax(0,1fr);gap:16px;align-items:start}
.w-h{font-size:13px;color:var(--ink-3);line-height:18px;margin-top:8px}

/* ===== 扫码框 ===== */
.w-scan{height:52px;display:flex;align-items:center;gap:10px;padding:0 12px 0 14px;border:1.5px solid var(--brand);border-radius:10px;background:#fff;box-shadow:0 0 0 3px var(--tint-1);font-size:13px;color:var(--ink-3)}
.w-scan svg{width:20px;height:20px;fill:none;stroke:var(--brand);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.w-scan.idle{border:1px solid var(--line-3);box-shadow:none} .w-scan.idle svg{stroke:var(--ink-3)}
.w-scan .cur{width:1.5px;height:20px;background:var(--ink);margin-right:2px}
.w-scan kbd{margin-left:auto;font:400 12px var(--sans);color:var(--ink-3);border:1px solid var(--line-3);border-radius:4px;padding:1px 6px;background:var(--head);white-space:nowrap}
.w-last{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.w-ok{display:flex;gap:8px;align-items:flex-start;font-size:14px;line-height:21px;color:var(--ink);font-weight:500;margin-bottom:12px}
.w-ok svg{width:18px;height:18px;margin-top:1px;flex:none;fill:none;stroke:var(--done);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.w-ok.dup svg{stroke:var(--ink-3);stroke-width:1.8}
.w-pick{height:36px;display:flex;align-items:center;padding:0 10px 0 12px;border:1px solid var(--line-3);border-radius:var(--r-s);font-size:13.5px;color:var(--ink)}
.w-pick svg{margin-left:auto;width:13px;height:13px;fill:none;stroke:var(--ink-3);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.w-pick.pl{color:var(--ink-3)}

/* ===== 干活的表：行矮一点，格子里可以直接改 ===== */
.w-t th{height:36px;padding:0 8px} .w-t th small{font-size:12px;color:var(--ink-3);margin-left:4px} .w-t td.z{color:var(--ink-3)} .w-t td{height:46px;padding:5px 8px;font-size:13px}
.w-t th:first-child,.w-t td:first-child{padding-left:16px} .w-t th:last-child,.w-t td:last-child{padding-right:16px}
.w-t td .l2{font-size:12px;line-height:16px} .w-t td .l1{line-height:18px}
.w-in{display:inline-flex;align-items:center;justify-content:flex-end;height:30px;min-width:52px;padding:0 8px;border:1px solid var(--line-3);border-radius:6px;background:#fff;font:400 13.5px var(--num);color:var(--ink)}
.w-in.l{justify-content:flex-start;font-family:var(--sans)} .w-in.pl{color:var(--ink-3);font-family:var(--sans);font-size:12.5px}
.w-in.blk{display:flex;width:100%}
.w-add{color:var(--brand);font-size:13px;white-space:nowrap}
.w-t tr.w-ex td{height:auto;padding:0 16px 12px;background:#fffaf1;border-bottom:1px solid var(--line);white-space:normal}
.w-t tr.w-exr td{background:#fffaf1;border-bottom-color:transparent}
.w-exf{display:grid;grid-template-columns:84px 132px minmax(0,1fr) auto;gap:12px;align-items:end;padding:10px 12px 12px;border:1px solid var(--todo-line);border-radius:8px;background:#fff}
.w-exf label{display:block;font-size:12px;color:var(--ink-3);margin-bottom:4px}
.w-ph{display:flex;gap:6px;align-items:center}
.w-ph i{width:30px;height:30px;border-radius:6px;background:var(--sunken);display:grid;place-items:center;color:var(--ink-4)} .w-ph i svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.w-sumr{display:flex;gap:36px;align-items:baseline;padding:12px 20px;border-top:1px solid var(--line-2);background:var(--head);font-size:13px;color:var(--ink-3)}
.w-sumr b{font:500 16px var(--num);color:var(--ink);margin-left:8px} .w-sumr b.t{color:var(--todo-num)}

/* ===== 页面底部的操作条 ===== */
.w-foot{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 16px 12px 20px;background:#fff;border:1px solid var(--line-2);border-radius:var(--r)}
.w-foot .r{margin-left:auto;display:flex;align-items:center;gap:16px}
.w-foot .q{font-size:13px;color:var(--ink-3)} .w-foot .q u{text-decoration:none;color:var(--brand);margin-left:4px}
.w-empty{padding:44px 20px;text-align:center;font-size:13.5px;color:var(--ink-3)}

/* ===== 弹窗 ===== */
.w-mask{position:absolute;inset:0;background:rgba(18,24,38,.46);z-index:20}
.w-dlg{position:absolute;z-index:21;left:50%;top:150px;transform:translateX(-50%);width:580px;background:#fff;border-radius:14px;box-shadow:0 24px 64px rgba(15,20,35,.28);overflow:hidden}
.w-dlg .dh{padding:20px 24px 0;font-size:17px;font-weight:500}
.w-dlg .db{padding:12px 24px 20px;font-size:14px;line-height:22px}
.w-dlg .db p{margin-bottom:10px}
.w-dlg .df{display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;background:var(--head);border-top:1px solid var(--line)}
.w-dl{margin:4px 0 14px;padding:10px 12px;border-radius:8px;background:var(--sunken);font-size:13px;line-height:21px;color:var(--ink-2)}
.w-f2{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:14px}
.w-f2 label{display:block;font-size:13px;color:var(--ink-2);margin-bottom:6px}
.w-f2 .w-in{height:40px;font-size:16px;justify-content:flex-start;padding:0 12px}
.w-f2 .w-h{margin-top:6px;font-size:12.5px}
.w-fee{border-top:1px solid var(--line);padding-top:12px}
.w-fee .cap{display:flex;justify-content:space-between;font-size:13px;color:var(--ink-2);margin-bottom:2px} .w-fee .cap small{font-size:12.5px;color:var(--ink-3)}
.w-fee .row{display:flex;justify-content:space-between;font-size:13.5px;line-height:26px;color:var(--ink-2)} .w-fee .row b{font:500 14px var(--num);color:var(--ink)}
.w-fee .row.z b{font:400 13px var(--sans);color:var(--ink-3)}

/* ===== PDA：5.7 寸手持机，网页 360 × 720。一屏只做一件事，字大、按钮大 ===== */
.p-canvas{display:flex;gap:64px;justify-content:center;align-items:flex-start;padding:36px 40px 56px;min-height:100vh}
.p-fr{width:360px}
.p-cap{font-size:13.5px;line-height:20px;color:var(--ink-2);margin-bottom:14px;min-height:40px} .p-cap b{display:block;color:var(--ink);font-size:14px}
.pda{position:relative;width:360px;height:720px;display:flex;flex-direction:column;background:#f4f6f9;border-radius:6px;box-shadow:0 0 0 10px #232b38,0 0 0 11px #0d121b,0 18px 40px rgba(15,20,35,.25);overflow:hidden;font-size:16px;line-height:1.45;color:var(--ink)}
.pda .p-bar{height:52px;flex:none;display:flex;align-items:center;gap:6px;padding:0 14px 0 6px;background:#fff;border-bottom:1px solid var(--line-2)}
.pda .p-bar .bk{width:44px;height:48px;display:grid;place-items:center} .pda .p-bar .bk svg{width:22px;height:22px;fill:none;stroke:var(--ink-2);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg)}
.pda .p-bar h1{font-size:18px;font-weight:500} .pda .p-bar .who{margin-left:auto;font-size:14px;color:var(--ink-3)}
.pda .p-ctx{flex:none;padding:8px 16px 9px;background:#232b38;color:#fff;font-size:14px;line-height:20px}
.pda .p-ctx b{font:500 15px var(--num);letter-spacing:.02em;display:block} .pda .p-ctx span{color:#c9d1dd}
.pda .p-body{flex:1;min-height:0;padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.pda .p-hint{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border-radius:10px;border:1.5px dashed var(--line-3);background:#fff;font-size:15px;color:var(--ink-2)}
.pda .p-hint .kb{margin-left:auto;font-size:14px;color:var(--ink-3)}
.pda .p-hint svg{width:22px;height:22px;fill:none;stroke:var(--brand);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pda .p-card{background:#fff;border:1px solid var(--line-2);border-radius:12px;padding:14px 16px}
.pda .p-msg{display:flex;gap:8px;align-items:flex-start;font-size:15px;line-height:22px;font-weight:500;color:var(--done-ink)}
.pda .p-msg svg{width:20px;height:20px;margin-top:1px;fill:none;stroke:var(--done);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pda .p-name{font-size:22px;line-height:30px;font-weight:500;margin-top:10px}
.pda .p-code{font:400 14px var(--num);color:var(--ink-3);letter-spacing:.02em}
.pda .p-qty{display:flex;align-items:baseline;gap:8px;margin-top:10px} .pda .p-qty b{font:500 56px/60px var(--num)} .pda .p-qty span{font-size:16px;color:var(--ink-2)}
.pda .p-acc{font-size:17px;line-height:26px;color:var(--ink)} .pda .p-acc b{font:500 19px var(--num)}
.pda .p-row{display:flex;align-items:center;gap:10px;font-size:15px;color:var(--ink-2)} .pda .p-row b{color:var(--ink);font-weight:500;font-size:16px} .pda .p-row .r{margin-left:auto}
.pda .p-tag{display:inline-flex;align-items:center;height:26px;padding:0 9px;border-radius:6px;background:var(--run-bg);color:var(--run-ink);font-size:14px;font-weight:500}
.pda .p-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pda .pb{height:52px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;border:1px solid var(--line-3);background:#fff;font-size:16px;color:var(--ink)}
.pda .pb svg{width:20px;height:20px;fill:none;stroke:var(--ink-2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pda .pb.main{height:56px;border:0;background:var(--grad);color:var(--on-green);font-weight:500;font-size:17px}
.pda .pb.sm{height:48px;padding:0 14px;font-size:15px}
.pda .p-foot{flex:none;padding:10px 16px 16px;background:#fff;border-top:1px solid var(--line-2)}
.pda .p-mask{position:absolute;inset:0;background:rgba(18,24,38,.5);z-index:5}
.pda .p-dlg{position:absolute;z-index:6;left:16px;right:16px;bottom:16px;background:#fff;border-radius:16px;padding:20px 18px 16px;box-shadow:0 16px 40px rgba(15,20,35,.3)}
.pda .p-dlg h2{font-size:19px;line-height:28px;font-weight:500;margin-bottom:8px}
.pda .p-dlg p{font-size:17px;line-height:27px;color:var(--ink);margin-bottom:16px}
.pda .p-dlg .pb+.pb{margin-top:10px}
.pda .p-warn{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:500;color:var(--todo-ink);margin-bottom:6px}
.pda .p-warn svg{width:20px;height:20px;fill:none;stroke:var(--todo);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* PDA 补充：扫错了的红字、特大的库位号、两行数、勾选 */
.pda .p-msg.bad{color:var(--bad-ink)} .pda .p-msg.bad svg{stroke:var(--bad)}
.pda .p-loc{font:500 46px/54px var(--num);letter-spacing:.02em;margin-top:2px}
.pda .p-lab{font-size:14px;color:var(--ink-3);margin-top:12px}
.pda .p-two{display:grid;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.pda .p-two div{display:flex;align-items:baseline;font-size:16px;color:var(--ink-2)} .pda .p-two b{margin-left:auto;font:500 20px var(--num);color:var(--ink)} .pda .p-two small{font-size:14px;color:var(--ink-3);margin-left:6px}
.pda .p-chk{display:flex;align-items:center;gap:10px;height:48px;font-size:16px;color:var(--ink)} .pda .p-chk i{width:22px;height:22px;border-radius:5px;border:1.5px solid var(--line-3);background:#fff}
.pda .p-sub{font-size:15px;line-height:22px;color:var(--ink-2);margin-top:6px}
.pda .p-big{font:500 34px/42px var(--num);margin-top:8px} .pda .p-big small{font:400 16px var(--sans);color:var(--ink-2);margin:0 14px 0 6px}
.p-canvas.c3{gap:44px}
/* 四屏：一行放不下 1440，排成两行两列（P13 退货） */
.p-canvas.c4{display:grid;grid-template-columns:repeat(2,360px);gap:56px 140px;justify-content:center;align-content:start}

/* 出库段加的 PDA 零件 */
.pda .p-bar .bk.hm svg{transform:none;width:20px;height:20px;stroke-width:1.8}
.pda .p-go{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 14px;border-radius:12px;background:var(--tint-1);border:1px solid var(--brand);font-size:16px;line-height:22px;color:var(--ink);font-weight:500}
.pda .p-go svg{width:20px;height:20px;margin-left:auto;flex:none;fill:none;stroke:var(--brand);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pda .p-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;flex:1;min-height:0}
.pda .p-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:12px 12px 10px;border-radius:12px;border:1px solid var(--line-2);background:#fff}
.pda .p-tile svg{width:24px;height:24px;fill:none;stroke:var(--ink-2);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pda .p-tile .nm{font-size:17px;font-weight:500;line-height:24px;margin-top:8px}
.pda .p-tile .ct{font:500 26px/30px var(--num);color:var(--ink)} .pda .p-tile .ct small{font:400 14px var(--sans);color:var(--ink-3);margin-left:4px} .pda .p-tile .ct.z{color:var(--ink-3)} .pda .p-tile .ct.no{font:400 14px/30px var(--sans);color:var(--ink-3)}
.pda .p-tile.hot{border-color:var(--brand);box-shadow:0 0 0 2px var(--tint-1)}
.pda .p-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pda .p-keys span{height:52px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--line-2);background:#fff;font:400 22px var(--num);color:var(--ink)} .pda .p-keys span.t{font:400 15px var(--sans);color:var(--ink-2);background:var(--head)}
.pda .p-in{display:flex;align-items:baseline;justify-content:center;gap:8px;height:68px;margin-top:10px;border-radius:12px;border:1.5px solid var(--brand);background:#fff;box-shadow:0 0 0 3px var(--tint-1)} .pda .p-in b{font:500 44px/68px var(--num)} .pda .p-in span{font-size:16px;color:var(--ink-2)}
.pda .p-q{font-size:19px;line-height:28px;font-weight:500}
.pda .p-res{font-size:22px;line-height:32px;font-weight:500;margin-top:10px}
.pda .p-q2{font-size:16px;line-height:24px;color:var(--ink-2);margin-top:6px}
