/* finesse · register=product(后台, read+operate) · shell=two-tone (warm dark rail + paper content)
 * A=burnt-orange on warm paper (same tokens as the H5) · B=system CJK 800/400 + tabular mono figures
 * C=sidebar + dense tables + right drawer（≤900 顶条+滑出菜单，≤720 表格变卡片、抽屉整屏，10-17）· D=feedback-only · E=weighbridge ledger · SOUL=5 SPECTACLE=1 DENSITY=7 */
:root {
  --page: #f3eee6; --bg: #fffdf9; --panel-2: #f8f3eb; --line: rgba(48, 32, 20, .10); --line-2: rgba(48, 32, 20, .17);
  --ink-1: #1f1710; --ink-2: #4a3f34; --ink-3: #75655a;
  --accent: #c4561f; --accent-press: #a9461a; --accent-soft: rgba(196, 86, 31, .11); --on-accent: #fffaf4;
  --teal: #2e6b63; --teal-soft: rgba(46, 107, 99, .11);
  --up: #2f7a55; --up-soft: rgba(47, 122, 85, .12); --down: #b8402f; --down-soft: rgba(184, 64, 47, .10); --warn: #9a6512;
  --rail: #29221b; --rail-ink: #e9dfd2; --rail-dim: #a8998a;
  --shadow: 0 1px 3px rgba(60, 38, 20, .06); --shadow-lg: 0 30px 80px -40px rgba(60, 38, 20, .5);
  --ease: cubic-bezier(.32, .86, .28, 1);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: clip; }
body { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink-1); background: var(--page); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-ink); padding: 18px 12px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; }
.rail .brand { padding: 4px 12px 20px; display: flex; align-items: center; gap: 10px; }
.rail .brand-logo { width: 34px; height: 34px; flex: none; }
.rail .brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.rail .brand span { font-size: 12px; color: var(--rail-dim); }
.rail a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--rail-dim); text-decoration: none; font-weight: 700; font-size: 14.5px; transition: background .15s, color .15s; }
.rail a:hover { background: rgba(255, 245, 230, .06); color: var(--rail-ink); }
.rail a.on { background: var(--accent); color: var(--on-accent); }
.rail a svg { width: 18px; height: 18px; flex: none; }
.rail .foot { margin-top: auto; padding: 12px; font-size: 12.5px; color: var(--rail-dim); }
/* 菜单按业务流程分组（10-17）：组名小字，菜单长了自己滚，底下的账号一直在 */
.rail-nav { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 245, 230, .18) transparent; }
.rail-g { display: flex; flex-direction: column; gap: 1px; }
.rail-g + .rail-g { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255, 245, 230, .07); }
.rail-gh { padding: 0 12px 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: rgba(168, 153, 138, .78); }
.rail .rail-nav a { height: 32px; }
.rail .brand { padding-bottom: 14px; }
.rail .foot { margin-top: 8px; padding-top: 10px; padding-bottom: 4px; }
.rail .foot button { color: var(--rail-ink); font-weight: 700; margin-top: 6px; }

main { padding: 26px 30px 60px; min-width: 0; }
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ph h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.ph p { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.ph .grow { flex: 1; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.inp, select.inp { height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); outline: none; min-width: 0; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.inp { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
a.btn { text-decoration: none; color: inherit; }
.btn { height: 36px; padding: 0 14px; border-radius: 9px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, transform .12s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-press); }
.btn-ghost { background: var(--bg); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-danger { color: var(--down); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); }
.tile .k { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.tile .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; margin-top: 2px; letter-spacing: -.02em; }
.tile .v small { font-size: 13px; color: var(--ink-3); margin-left: 3px; font-family: var(--sans); font-weight: 600; }
.tile.hl { border-color: transparent; background: var(--rail); color: var(--rail-ink); }
.tile.hl .k { color: var(--rail-dim); }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card-h h2 { font-size: 15px; font-weight: 800; }
.card-h .grow { flex: 1; }
.note { color: var(--ink-3); font-size: 12.5px; }

.tw { overflow: auto; max-height: calc(100vh - 210px); border-radius: 14px; }
table.t { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13.5px; }
table.t th { position: sticky; top: 0; z-index: 2; background: var(--panel-2); text-align: left; font-weight: 800; color: var(--ink-2); font-size: 12.5px; padding: 9px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .1s; }
table.t tbody tr:hover { background: rgba(196, 86, 31, .035); }
table.t tbody tr.click { cursor: pointer; }
table.t td.n, table.t th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.t td .inp { height: 30px; width: 100%; min-width: 90px; font-size: 13px; }
table.t td .inp.num { width: 90px; }
table.t tfoot td { font-weight: 800; background: var(--panel-2); border-top: 1px solid var(--line-2); }
.wrap { max-width: 220px; white-space: normal; }
.clip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 7px; font-family: var(--mono); font-weight: 800; font-size: 12.5px; }
.i5 { background: var(--accent); color: var(--on-accent); } .i4 { background: var(--accent-soft); color: var(--accent); } .i3 { background: var(--teal-soft); color: var(--teal); }
.i2, .i1, .i0 { background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--line); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.ok { background: var(--up-soft); color: var(--up); } .no { background: var(--down-soft); color: var(--down); } .mute { background: var(--panel-2); color: var(--ink-3); }
.bar { display: inline-block; width: 64px; height: 6px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); vertical-align: middle; overflow: hidden; margin-right: 6px; }
.bar i { display: block; height: 100%; background: var(--teal); }

.drawer-scrim { position: fixed; inset: 0; background: rgba(31, 23, 16, .32); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 92vw); background: var(--bg); z-index: 55; transform: translateX(102%); transition: transform .38s var(--ease); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer.wide { width: min(760px, 96vw); }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-h h3 { flex: 1; font-size: 17px; font-weight: 800; }
.drawer-b { flex: 1; overflow: auto; padding: 16px 18px 30px; }
dl.kv { display: grid; grid-template-columns: 128px 1fr; gap: 7px 14px; font-size: 14px; }
dl.kv dt { color: var(--ink-3); font-weight: 700; font-size: 13px; }
dl.kv dd { font-weight: 600; overflow-wrap: anywhere; }
.photo { width: 100%; border-radius: 12px; display: block; margin-bottom: 14px; background: var(--panel-2); }

.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.slist { padding: 6px; }
.slist button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; font-weight: 700; }
.slist button:hover { background: var(--panel-2); }
.slist button.on { background: var(--accent-soft); color: var(--accent); }
.slist .ord { margin-left: auto; display: flex; gap: 2px; opacity: .55; }
.slist .ord span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.slist .ord span:hover { background: var(--line); opacity: 1; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; }
.editor textarea { width: 100%; min-height: 560px; font-family: var(--mono); font-size: 13.5px; }
.preview { background: var(--page); border-radius: 22px; padding: 18px; border: 1px solid var(--line); max-height: 640px; overflow: auto; }

/* rendered markdown (same grammar as the phone) */
.md { font-size: 14.5px; line-height: 1.7; }
.md h2 { font-size: 17px; margin: 14px 0 6px; } .md h3 { font-size: 15.5px; margin: 12px 0 4px; } .md h4 { font-size: 14.5px; margin: 10px 0 4px; }
.md p { margin: 6px 0; } .md ul, .md ol { padding-left: 20px; margin: 6px 0; } .md li { margin: 3px 0; }
.md strong { font-weight: 800; } .md q { quotes: "「" "」"; background: var(--teal-soft); padding: 0 3px; border-radius: 4px; }
.md blockquote { border-left: 3px solid var(--teal); padding: 4px 10px; margin: 8px 0; background: var(--bg); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.md-table { overflow-x: auto; margin: 8px 0; }
.md table { border-collapse: collapse; font-size: 12.5px; background: var(--bg); border-radius: 10px; overflow: hidden; }
.md th { background: var(--panel-2); text-align: left; } .md th, .md td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

.form-grid { display: grid; grid-template-columns: 160px minmax(0, 360px); gap: 10px 14px; align-items: center; padding: 16px; }
.form-grid label { font-weight: 700; color: var(--ink-2); }
.notice-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; }
.notice-box b { color: var(--accent); white-space: nowrap; padding-top: 7px; }
.notice-box textarea { flex: 1; }
.notice-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 0 16px 12px; font-size: 13px; color: var(--ink-2); }
.notice-now a { margin-left: auto; }
.struck { text-decoration: line-through; color: var(--ink-3); }
table.t td.wrap { white-space: normal; min-width: 300px; max-width: 560px; line-height: 1.55; overflow-wrap: anywhere; }
table.t td.wrap .nb { white-space: pre-wrap; }
table.t tr.voided td.wrap .nb { text-decoration: line-through; text-decoration-color: rgba(184, 64, 47, .55); color: var(--ink-3); }
table.t .wrap-note { white-space: normal; max-width: 220px; }
.nq { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--panel-2); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #3a3027 0%, #1c1712 62%); }
.login-card { width: 360px; background: var(--bg); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.login-card h1 { font-size: 20px; font-weight: 800; }
.login-card .inp { height: 44px; font-size: 15px; }
.login-card .btn { height: 44px; justify-content: center; font-size: 15px; }
.err { color: var(--down); font-weight: 700; min-height: 20px; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); background: var(--ink-1); color: var(--bg); padding: 10px 16px; border-radius: 11px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); z-index: 99; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 30px; text-align: center; color: var(--ink-3); }

@media (max-width: 900px) {
  .split, .editor { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.tile.hl2 { border-color: transparent; background: var(--accent-soft); }
.tile.hl2 .k { color: var(--accent); }
a.tlink { cursor: pointer; color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line-2); }
a.tlink:hover { color: var(--accent); border-color: var(--accent); }
.st-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.upd-form { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.upd-form textarea { width: 100%; }
.u-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-h { font-size: 14px; font-weight: 800; margin: 16px 0 8px; }
.tl { display: grid; gap: 8px; }
.tl-i { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.5; }
.tl-i.upd { background: var(--panel-2); }
.tl-why { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tile .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.tile.hl2 .sub { color: var(--accent); opacity: .85; }
.pill.warn, .warn { background: rgba(154, 101, 18, .12); color: #9a6512; }
.badge.deal-b { background: var(--up); color: #fff; }
.tile.hl3 { border-color: transparent; background: var(--up-soft); }
.tile.hl3 .k, .tile.hl3 .sub { color: var(--up); }
.gal { display: grid; gap: 10px; margin-bottom: 14px; }
.gal img, .gal video { width: 100%; border-radius: 12px; display: block; background: #2a231c; }
.gal-i { display: grid; gap: 6px; }
.gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gal-del { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tile.warn-t { background: var(--down-soft); border-color: transparent; }
.tile.warn-t .k, .tile.warn-t .sub { color: var(--down); }
.t.tree td.tname { white-space: nowrap; }
.t.tree tr.lv1 td.tname { padding-left: 34px; }
.t.tree tr.lv2 td.tname { padding-left: 58px; }
.t.tree tr.lv0 { background: var(--panel-2); }
.tg { width: 22px; height: 22px; border-radius: 6px; margin-right: 6px; color: var(--ink-2); font-size: 12px; }
.tg:hover { background: var(--line); }
.tg-sp { display: inline-block; width: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.chip button { width: 20px; height: 20px; border-radius: 50%; color: var(--accent); }
/* 拜访记录卡片 */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: minmax(0, 1fr); } }
.vcard { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; cursor: pointer; font: inherit; color: inherit; }
.vcard:hover { border-color: var(--accent); }
.vc-h { display: flex; align-items: flex-start; gap: 10px; }
.vc-t { flex: 1; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.vc-t b { font-size: 15px; }
.vc-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.pill.first { background: var(--teal-soft); color: var(--teal); }
.vc-kv { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px minmax(0, 1fr); gap: 3px 10px; font-size: 13px; line-height: 1.5; margin: 0; }
.vc-kv dt.w { grid-column: 1; }
.vc-kv dd.w { grid-column: 2 / -1; }
.vc-kv dt { color: var(--ink-3); font-weight: 700; }
.vc-kv dd { margin: 0; overflow-wrap: anywhere; }
.vc-f { border-top: 1px dashed var(--line-2); padding-top: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.vc-no { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-3); padding-top: 3px; flex: none; }
.vc-t .note { display: block; }
.vcard { gap: 6px; padding: 12px 16px 10px; }
/* 塔主台账 */
table.t.ledger { width: 100%; }
table.t.ledger td.tname { white-space: normal; min-width: 260px; }
table.t.ledger td.tname .note { margin-top: 1px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
.ledger-box { padding: 2px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lg-kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 10px; align-items: center; margin: 8px 0 0; font-size: 13.5px; }
.lg-kv dt { color: var(--ink-3); font-weight: 700; }
.lg-kv dd { margin: 0; }
.lg-kv .inp { height: 32px; }
.lg-kv .inp.num { width: 110px; }
.chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.vc-r .note { white-space: nowrap; }
/* 删除、编辑 */
.gone { opacity: .55; }
tr.gone td { background: var(--panel-2); }
.vcard.gone { background: var(--panel-2); }
.act-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.act-bar .grow { flex: 1; }
.gone-bar { background: var(--down-soft); border-radius: 10px; padding: 8px 10px; }
.vform { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 10px; align-items: center; font-size: 13.5px; }
.vform > label { color: var(--ink-3); font-weight: 700; }
.vform .inp { width: 100%; }
.vform textarea.inp { min-height: 0; }
.mk-list { display: grid; gap: 6px; }
.mk-row { display: grid; grid-template-columns: 1fr auto 140px; gap: 8px; align-items: center; font-size: 13.5px; }
.town-tip { color: var(--warn); margin-top: 2px; }
.town-tip:empty { display: none; }
.reset-bar { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.reset-bar .note { flex: 1; }
.call-i { grid-template-columns: auto 1fr auto; }
/* 合作：机会、单子、入库（一期） */
.rail a .nb { margin-left: auto; min-width: 20px; padding: 0 6px; height: 20px; border-radius: 99px; background: rgba(255, 245, 230, .14); color: var(--rail-ink); font-size: 12px; font-family: var(--mono); display: grid; place-items: center; }
.rail a .nb:empty { display: none; }
.rail a .nb.late { background: var(--down); color: #fff; }
.rail a.on .nb { background: rgba(255, 250, 244, .25); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 12px; }
.chips button { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.chips button b { font-family: var(--mono); margin-left: 3px; color: var(--ink-3); }
.chips button.on { background: var(--ink-1); color: var(--bg); border-color: transparent; }
.chips button.on b { color: var(--bg); opacity: .8; }
.chips button.late:not(.on) { border-color: var(--down); color: var(--down); }
.late-t { color: var(--down) !important; font-weight: 700; }
a.tile { text-decoration: none; color: inherit; display: block; }
a.tile:hover { border-color: var(--accent); }
.ord-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 15px; }
.act-bar.wrap { flex-wrap: wrap; }
.dl-t th, .dl-t td { padding-left: 5px; padding-right: 5px; font-size: 12.5px; }
.box { border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.box.bad { background: var(--down-soft); color: var(--down); }
.box.warn { background: rgba(154, 101, 18, .1); color: var(--warn); }
.o-panel { display: grid; gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); }
.o-panel textarea { width: 100%; }
.o-panel .vform { background: var(--bg); padding: 10px; border-radius: 10px; }
.pipe-box { padding: 2px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 6px; }
.pipe-h { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.pipe-h .grow { flex: 1; }
.pp-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; background: var(--bg); }
.pp-row:hover { border-color: var(--accent); }
.pp-row > span:nth-child(2) { flex: 1; min-width: 0; }
.pp-none { padding: 2px 2px; }
.pp-in { display: grid; gap: 6px; padding: 8px 10px; background: var(--panel-2); border-radius: 10px; font-size: 13px; }
.pp-irow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pp-irow .btn { margin-left: auto; }
.tl-i.ev { background: var(--bg); border-style: dashed; }
.tl-i.ev.order { border-color: rgba(47, 122, 85, .35); }
.ev-b { background: var(--teal-soft); color: var(--teal); font-family: var(--sans); font-size: 12px; }
.tl-i.ev.order .ev-b { background: var(--up-soft); color: var(--up); }
.tl-i.ev.intake .ev-b { background: var(--accent-soft); color: var(--accent); }
.ev-t { font-weight: 700; margin-top: 2px; }
.lg-kv.ro dd { font-weight: 600; }
.tl-i.gone { opacity: .55; }

/* 合作机会页「待转」：有待转的塔时这个分类标出来 */
.chips button.warn-chip:not(.on) { color: var(--warn); border-color: rgba(154, 101, 18, .45); background: rgba(154, 101, 18, .08); }
.chips button.warn-chip:not(.on) b { color: var(--warn); }
.warn-x { color: var(--warn); }
.tw-note { margin: 0; padding: 11px 14px 10px; border-bottom: 1px solid var(--line); line-height: 1.6; white-space: normal; }

/* 塔的标签：联盟（青）、风险（红，带 ⚠）、喜好、其他 */
.tw-tag { display: inline-block; line-height: 20px; padding: 0 8px; margin: 1px 4px 1px 0; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; vertical-align: 1px; border: 1px solid transparent; }
.tw-tag.al { background: var(--teal-soft); color: var(--teal); border-color: rgba(46, 107, 99, .35); }
.tw-tag.risk { background: var(--down-soft); color: var(--down); border-color: rgba(184, 64, 47, .35); }
.tw-tag.like { background: var(--accent-soft); color: var(--accent); }
.tw-tag.etc { background: var(--panel-2); color: var(--ink-2); border-color: var(--line); }
.tw-tag small { font-family: var(--mono); font-weight: 700; opacity: .7; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin: -2px 0 12px; }
.tag-row .btn { margin-left: 6px; }
.tg-sec { margin: 10px 0 4px; } .tg-sec > b { display: block; font-size: 13px; margin-bottom: 6px; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick .tw-tag { line-height: 30px; padding: 0 12px; font-size: 13px; cursor: pointer; opacity: .55; }
.tag-pick .tw-tag.on { opacity: 1; box-shadow: 0 0 0 2px currentColor inset; }

/* 塔详情里的「收款和开票」 */
.payee-box { padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 8px; }
.pb-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pb-sub { margin-top: 2px; }
table.acct td { padding: 7px 8px; vertical-align: middle; }
table.acct .w-def { width: 52px; }
table.acct .acts { text-align: right; white-space: nowrap; }
.acct-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acct-add .inp { height: 32px; flex: 1 1 140px; }
.tm-list { display: grid; gap: 8px; }
.tm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tm-row .inp { height: 32px; }
.tm-row .tm-name { width: 140px; } .tm-row .tm-leader { flex: 1 1 200px; } .tm-row .tm-note { flex: 1 1 160px; }
.tm-row .tm-n { margin-left: auto; font-family: var(--mono); }
table.calls { width: 100%; }
table.calls td { vertical-align: top; padding: 8px 6px; }
table.calls td.wrap { min-width: 0; max-width: none; }
table.calls td.num { font-size: 12.5px; }
/* 逐车入库（二期） */
.plate-s { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12.5px; background: #f2c418; color: #17130f; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .6); border-radius: 4px; padding: 1px 6px; letter-spacing: .02em; white-space: nowrap; }
.pp-th { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0 4px; }
.pp-th .grow { flex: 1; }
button.pp-irow.tk { width: 100%; text-align: left; padding: 5px 6px; border-radius: 8px; font-size: 13px; }
button.pp-irow.tk:hover { background: var(--bg); }
.tk-photo { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
/* 合同 */
.ct-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ct-line [data-lt] { flex: 1; min-width: 200px; }
.ct-line.ct-ed [data-lt], .inp.ct-ed { background: #fff3e8; border-color: rgba(196, 86, 31, .5); }
.inp.ct-miss { border-color: var(--down); background: #fff7f5; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* 塔的地图位置（10-16） */
.lg-kv dd.loc-dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lg-kv dd.loc-dd b { overflow-wrap: anywhere; }

/* ───────────────────────────────── 手机（10-17）：同一个 /admin，屏幕窄了自动换布局，电脑上一点不变
 * ≤900px：侧栏收成顶上一条（菜单按钮 + 这一页叫什么），点「菜单」从左边滑出来
 * ≤900px：表格每一行变一张卡片（600px 以上两列）（第一格当标题，其余「列名：值」），抽屉变整屏，按钮、输入框放大到拇指好点、输入不再被 iPhone 放大 */
.mbar, .mscrim, table.t td.td-more, .tl-more, .lf-more { display: none; }  /* 手机才用：卡片「更多 N 项」、记录「再看 N 条」 */
:root { --z-mbar: 40; --z-mscrim: 61; --z-menu: 62; }  /* 手机上的层：顶条 < 抽屉(55) < 菜单遮罩 < 菜单 */
/* 塔地图（10-17）：电脑上地图 + 右侧清单；手机上地图在上、清单在下 */
.tm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; height: calc(100dvh - 170px); min-height: 520px; }
.tm-map { padding: 0; overflow: hidden; position: relative; min-height: 420px; }
.tm-side { padding: 14px; overflow: auto; }
.tm-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--panel-2); }
.tm-ct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.tm-km { margin: 6px 0 2px; font-size: 13px; }
.tm-km b { font-size: 22px; }
.tm-leg { margin: 0 0 6px; }
.tm-areas { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-size: 12px; color: var(--ink-2); }
.tm-areas i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; opacity: .8; }
.tm-leg i { width: 11px !important; height: 11px !important; box-sizing: border-box; }
.tm-list { display: grid; gap: 2px; }
.tm-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; min-height: 40px; }
.tm-row:hover, .tm-row.on { background: var(--panel-2); }
.tm-row i { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid; box-sizing: border-box; }
.tm-row .tm-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-row .tm-n small { color: var(--ink-3); margin-left: 6px; }
.tm-depot { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tm-depot i { width: 18px; height: 18px; background: #29221b; border: 3px solid #fffdf9; box-shadow: 0 1px 4px rgba(40, 24, 10, .4); border-radius: 3px; }
.tm-depot b { font-size: 12px; color: #29221b; background: rgba(255, 253, 249, .92); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 900px) {
  .tm-wrap { grid-template-columns: minmax(0, 1fr); height: auto; }
  .tm-map { height: 62dvh; min-height: 360px; }
  .tm-side { overflow: visible; }
}

/* 结算付款（10-17）：待出单按塔一张卡片；确认单详情里的付款一笔一条、凭证缩略图；确认单图片预览 */
.pend-card { margin-bottom: 12px; }
.pend-card .card-h { flex-wrap: wrap; }
.pend-card .pend-warn { margin: 0 16px 10px; }
.pend-card .pend-warn .tlink { font-weight: 800; text-decoration: underline; cursor: pointer; margin-left: 4px; }
.pay-it { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg); }
.pay-it .toolbar { flex-wrap: wrap; }
.pay-it.refund { border-color: rgba(184, 64, 47, .35); background: var(--down-soft); }
.ph-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ph-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.dl-img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.dl-line { margin-bottom: 6px; }
.dl-more { margin: 8px 0; font-size: 13px; }
.dl-more summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.act-bar.wrap { flex-wrap: wrap; }
.dl-t th, .dl-t td { padding-left: 5px; padding-right: 5px; font-size: 12.5px; }

/* 库存质量（10-17，U-151）：上面 3D 仓库（玉米堆高 = 库存 ÷ 库容），右边选中库位的「档位条」，下面库位清单。
 * 绿健康、黄留意、橙要处理、红超标；金色 = 玉米（库存多少），和 3D 里的粮堆一个颜色 */
:root { --corn: #d9982a; --corn-soft: rgba(217, 152, 42, .17); --corn-ink: #8f5e10; }
.legend-b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -6px 0 14px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.legend-b i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.c-g { color: #2f7a55; } .c-y { color: #8a6d0b; } .c-o { color: #b8560f; } .c-r { color: #c0392b; }
.bm { display: flex; flex-wrap: wrap; gap: 4px; }
.mb { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb.b-g, td.b-g { color: #2f7a55; } .mb.b-g { background: rgba(47, 122, 85, .12); }
.mb.b-y, td.b-y { color: #8a6d0b; } .mb.b-y { background: rgba(201, 162, 39, .16); }
.mb.b-o, td.b-o { color: #b8560f; } .mb.b-o { background: rgba(224, 122, 31, .14); }
.mb.b-r, td.b-r { color: #c0392b; } .mb.b-r { background: rgba(192, 57, 43, .12); }
td.b-y, td.b-o, td.b-r { font-weight: 800; }
.card.click { cursor: pointer; transition: border-color .15s; }
.card.click:hover { border-color: var(--accent); }

.wh-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-bottom: 4px; }
.wh-stage { position: relative; padding: 0; overflow: hidden; height: clamp(460px, calc(100dvh - 190px), 680px); display: flex; flex-direction: column; }
.wh-canvas { position: relative; flex: 1; min-height: 0; touch-action: none; }
.wh-canvas canvas { display: block; }
.wh-canvas > .empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; }
.wh-hud { position: absolute; z-index: 2; left: 14px; top: 14px; pointer-events: none; padding: 10px 14px 11px; border-radius: 12px; background: rgba(255, 253, 249, .86); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wh-hud .k { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.wh-hud .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.wh-hud .v small { font-size: 12.5px; color: var(--ink-3); margin-left: 3px; font-family: var(--sans); letter-spacing: 0; }
.wh-hud .sub { font-size: 12.5px; color: var(--ink-2); }
.wh-tools { position: absolute; z-index: 2; right: 14px; top: 14px; display: flex; gap: 8px; align-items: center; }
.wh-tools .btn { background: rgba(255, 253, 249, .92); }
@media (min-width: 901px) {  /* 10-22 用户：上色按钮「放到右侧居中，避免和顶部描述内容重叠」 */
  .wh-tools { top: calc(50% - 19px); translate: 0 -50%; flex-direction: column; align-items: stretch; }
  .wh-tools .seg { flex-direction: column; }
  .wh-tools .seg button { height: 32px; padding: 0 14px; }
  .wh-hud { max-width: calc(100% - 120px); }
}
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(255, 253, 249, .92); border: 1px solid var(--line-2); }
.seg button { height: 28px; padding: 0 11px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .15s, color .15s; }
.seg button:hover:not(.on) { background: var(--panel-2); }
.seg button.on { background: var(--ink-1); color: var(--bg); }
.wh-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px 14px; flex-wrap: wrap; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12.5px; min-height: 37px; }
.wh-foot i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 2px; vertical-align: -1px; }
.wh-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wh-lb { position: absolute; left: 0; top: 0; pointer-events: none; display: grid; justify-items: center; min-width: 60px; padding: 4px 9px 5px; border-radius: 9px; background: rgba(255, 253, 249, .94);
  border: 1px solid var(--line-2); box-shadow: 0 8px 18px -12px rgba(60, 38, 20, .55); translate: -50% calc(-100% - 6px); font-size: 11px; line-height: 1.3; color: var(--ink-3); white-space: nowrap; transition: background .15s, border-color .15s; }
.wh-lb::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: inherit; border: inherit; border-width: 0 1px 1px 0; rotate: 45deg; }
.wh-lb.hov { border-color: var(--accent); }
.wh-lb.hide { visibility: hidden; }
.wh-lb.mini { display: flex; gap: 5px; align-items: baseline; min-width: 0; padding: 2px 7px 3px; border-radius: 7px; translate: -50% calc(-100% - 2px); }
.wh-lb.mini::after { display: none; }  /* 缩小的标签不带尖角，纵向摆时上下挨得下 */
.wh-lb.mini b, .wh-lb.mini span { font-size: 12px; }
.wh-lb.mini small, .wh-lb.mini em { display: none; }
.wh-lb.mini.mv em { display: inline; font-size: 12px; } .wh-lb.mini.mv span { display: none; }  /* 看水分、杂质、容重时缩小的标签显示这一项的值 */
.wh-lb.mini.micro span, .wh-lb.mini.micro em { display: none; }  /* 再挤就只留库位号 */
.wh-lb b { font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--ink-1); }
.wh-lb span { font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--corn-ink); }
.wh-lb em { font-style: normal; font-weight: 800; }
.wh-lb.empty span { color: var(--ink-3); font-family: var(--sans); }
.wh-lb.over span { color: var(--down); }
.wh-lb.on { background: var(--ink-1); border-color: var(--ink-1); color: rgba(255, 250, 244, .75); }
.wh-lb.on b, .wh-lb.on span { color: var(--on-accent); }
.wh-lb.on em { color: var(--on-accent); }
.wh-name { display: flex; align-items: baseline; gap: 6px; padding: 0; min-width: 0; background: none; border: 0; box-shadow: none; translate: -100% -50%; }
.wh-name.mini { padding: 0; translate: -100% -50%; }
.wh-name.mini span { display: none; }
.wh-name.below { translate: -50% 2px; }
.wh-name::after { display: none; }
.wh-name b { font-family: var(--sans); font-size: 14px; color: var(--ink-1); text-shadow: 0 0 4px var(--bg), 0 0 4px var(--bg); }
.wh-name span { font-size: 12px; color: var(--ink-3); text-shadow: 0 0 4px var(--bg); }

.wh-side { padding: 16px 16px 14px; position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; }
.ws-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ws-h .k { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.ws-h h3 { font-size: 18px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ws-h h3 small { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.ws-cap { margin: 8px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ws-cap .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ws-cap .v small { font-size: 12.5px; color: var(--ink-3); margin-left: 3px; font-family: var(--sans); letter-spacing: 0; }
.ws-cl { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.fill { position: relative; display: block; flex: 1; height: 8px; min-width: 48px; border-radius: 99px; background: var(--corn-soft); overflow: hidden; }
.fill i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--corn); border-radius: inherit; }
.fill.lg { height: 12px; }
.fill.over i { background: var(--down); }
.bls { display: grid; gap: 15px; margin-bottom: 14px; }
.bls.dr { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px 24px; margin: 14px 0 16px; }
.bl-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.bl-h b { font-size: 13px; font-weight: 800; flex: 1; }
.bl-v { font-size: 15px; font-weight: 800; }
.bl-v small { font-size: 11px; margin-left: 1px; font-family: var(--sans); font-weight: 700; }
.bl-n { font-size: 11.5px; font-weight: 800; min-width: 3em; text-align: right; }
.bl-track { position: relative; height: 10px; }
.bl-z { position: absolute; inset: 0; border-radius: 3px; overflow: hidden; background: var(--panel-2); }
.bl-z i { position: absolute; top: 0; bottom: 0; }
.bl-z .z-g { background: rgba(47, 122, 85, .24); } .bl-z .z-y { background: rgba(201, 162, 39, .3); }
.bl-z .z-o { background: rgba(224, 122, 31, .28); } .bl-z .z-r { background: rgba(192, 57, 43, .26); }
.bl-track .mk { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink-1); box-shadow: 0 0 0 2px var(--bg); }
.bl-x { position: relative; height: 15px; font-size: 10.5px; color: var(--ink-3); }
.bl-x span { position: absolute; top: 2px; translate: -50% 0; }
.bl-x:has(.lo) { height: 26px; }
.bl-x span.lo { top: 13px; }
.bl-d { display: flex; gap: 1px; height: 4px; margin-top: 3px; border-radius: 99px; overflow: hidden; }
.bl-s { font-size: 11.5px; margin-top: 4px; line-height: 1.4; }
.bl.none .bl-z { opacity: .45; }
.bl-none { margin: -4px 0 14px; font-size: 12.5px; }

.wh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; margin-bottom: 18px; }
.wl-w { padding: 4px 6px 8px; }
.wl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 10px 6px; }
.wl-h b { font-size: 14.5px; font-weight: 800; }
.wl-r { display: grid; grid-template-columns: 40px minmax(0, 1fr) 96px; grid-template-areas: "n f t" ". m m"; gap: 5px 12px; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; transition: background .15s; }
.wl-r:hover { background: var(--panel-2); }
.wl-r.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.wl-n { grid-area: n; font-weight: 800; font-size: 14px; }
.wl-f { grid-area: f; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.wl-f .num { min-width: 44px; text-align: right; }
.wl-t { grid-area: t; text-align: right; font-weight: 700; font-size: 13px; }
.wl-m { grid-area: m; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.wl-m .note { font-size: 12px; margin-left: 2px; }

.stock-strip { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.stock-strip:hover { border-color: var(--accent); }
.ss-main .k { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.ss-main .v { font-size: 22px; font-weight: 700; line-height: 1.2; }
.ss-main .v small { font-size: 12px; color: var(--ink-3); margin-left: 2px; font-family: var(--sans); }
.stock-strip .bm { max-width: 340px; }
.ss-bins { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; align-items: flex-end; }
.ss-bins .sb { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-family: var(--mono); color: var(--ink-2); font-weight: 700; }
.sb-c { position: relative; display: block; width: 22px; height: 34px; border-radius: 4px 4px 2px 2px; background: var(--corn-soft); box-shadow: inset 0 0 0 1px rgba(143, 94, 16, .22); overflow: hidden; }
.sb-c i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--corn); }
.sb-c.over i { background: var(--down); }

@media (max-width: 900px) {
  .split, .editor { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.tile.hl2 { border-color: transparent; background: var(--accent-soft); }
.tile.hl2 .k { color: var(--accent); }
a.tlink { cursor: pointer; color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line-2); }
a.tlink:hover { color: var(--accent); border-color: var(--accent); }
.st-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.upd-form { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.upd-form textarea { width: 100%; }
.u-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-h { font-size: 14px; font-weight: 800; margin: 16px 0 8px; }
.tl { display: grid; gap: 8px; }
.tl-i { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.5; }
.tl-i.upd { background: var(--panel-2); }
.tl-why { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tile .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.tile.hl2 .sub { color: var(--accent); opacity: .85; }
.pill.warn, .warn { background: rgba(154, 101, 18, .12); color: #9a6512; }
.badge.deal-b { background: var(--up); color: #fff; }
.tile.hl3 { border-color: transparent; background: var(--up-soft); }
.tile.hl3 .k, .tile.hl3 .sub { color: var(--up); }
.gal { display: grid; gap: 10px; margin-bottom: 14px; }
.gal img, .gal video { width: 100%; border-radius: 12px; display: block; background: #2a231c; }
.gal-i { display: grid; gap: 6px; }
.gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gal-del { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); color: var(--ink-3); font-size: 13px; font-weight: 700; }
.tile.warn-t { background: var(--down-soft); border-color: transparent; }
.tile.warn-t .k, .tile.warn-t .sub { color: var(--down); }
.t.tree td.tname { white-space: nowrap; }
.t.tree tr.lv1 td.tname { padding-left: 34px; }
.t.tree tr.lv2 td.tname { padding-left: 58px; }
.t.tree tr.lv0 { background: var(--panel-2); }
.tg { width: 22px; height: 22px; border-radius: 6px; margin-right: 6px; color: var(--ink-2); font-size: 12px; }
.tg:hover { background: var(--line); }
.tg-sp { display: inline-block; width: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.chip button { width: 20px; height: 20px; border-radius: 50%; color: var(--accent); }
/* 拜访记录卡片 */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: minmax(0, 1fr); } }
.vcard { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; cursor: pointer; font: inherit; color: inherit; }
.vcard:hover { border-color: var(--accent); }
.vc-h { display: flex; align-items: flex-start; gap: 10px; }
.vc-t { flex: 1; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.vc-t b { font-size: 15px; }
.vc-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.pill.first { background: var(--teal-soft); color: var(--teal); }
.vc-kv { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px minmax(0, 1fr); gap: 3px 10px; font-size: 13px; line-height: 1.5; margin: 0; }
.vc-kv dt.w { grid-column: 1; }
.vc-kv dd.w { grid-column: 2 / -1; }
.vc-kv dt { color: var(--ink-3); font-weight: 700; }
.vc-kv dd { margin: 0; overflow-wrap: anywhere; }
.vc-f { border-top: 1px dashed var(--line-2); padding-top: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.vc-no { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-3); padding-top: 3px; flex: none; }
.vc-t .note { display: block; }
.vcard { gap: 6px; padding: 12px 16px 10px; }
/* 塔主台账 */
table.t.ledger { width: 100%; }
table.t.ledger td.tname { white-space: normal; min-width: 260px; }
table.t.ledger td.tname .note { margin-top: 1px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
.ledger-box { padding: 2px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.lg-kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 10px; align-items: center; margin: 8px 0 0; font-size: 13.5px; }
.lg-kv dt { color: var(--ink-3); font-weight: 700; }
.lg-kv dd { margin: 0; }
.lg-kv .inp { height: 32px; }
.lg-kv .inp.num { width: 110px; }
.chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.vc-r .note { white-space: nowrap; }
/* 删除、编辑 */
.gone { opacity: .55; }
tr.gone td { background: var(--panel-2); }
.vcard.gone { background: var(--panel-2); }
.act-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.act-bar .grow { flex: 1; }
.gone-bar { background: var(--down-soft); border-radius: 10px; padding: 8px 10px; }
.vform { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 7px 10px; align-items: center; font-size: 13.5px; }
.vform > label { color: var(--ink-3); font-weight: 700; }
.vform .inp { width: 100%; }
.vform textarea.inp { min-height: 0; }
.mk-list { display: grid; gap: 6px; }
.mk-row { display: grid; grid-template-columns: 1fr auto 140px; gap: 8px; align-items: center; font-size: 13.5px; }
.town-tip { color: var(--warn); margin-top: 2px; }
.town-tip:empty { display: none; }
.reset-bar { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.reset-bar .note { flex: 1; }
.call-i { grid-template-columns: auto 1fr auto; }
/* 合作：机会、单子、入库（一期） */
.rail a .nb { margin-left: auto; min-width: 20px; padding: 0 6px; height: 20px; border-radius: 99px; background: rgba(255, 245, 230, .14); color: var(--rail-ink); font-size: 12px; font-family: var(--mono); display: grid; place-items: center; }
.rail a .nb:empty { display: none; }
.rail a .nb.late { background: var(--down); color: #fff; }
.rail a.on .nb { background: rgba(255, 250, 244, .25); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 12px; }
.chips button { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.chips button b { font-family: var(--mono); margin-left: 3px; color: var(--ink-3); }
.chips button.on { background: var(--ink-1); color: var(--bg); border-color: transparent; }
.chips button.on b { color: var(--bg); opacity: .8; }
.chips button.late:not(.on) { border-color: var(--down); color: var(--down); }
.late-t { color: var(--down) !important; font-weight: 700; }
a.tile { text-decoration: none; color: inherit; display: block; }
a.tile:hover { border-color: var(--accent); }
.ord-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 15px; }
.act-bar.wrap { flex-wrap: wrap; }
.dl-t th, .dl-t td { padding-left: 5px; padding-right: 5px; font-size: 12.5px; }
.box { border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.box.bad { background: var(--down-soft); color: var(--down); }
.box.warn { background: rgba(154, 101, 18, .1); color: var(--warn); }
.o-panel { display: grid; gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); }
.o-panel textarea { width: 100%; }
.o-panel .vform { background: var(--bg); padding: 10px; border-radius: 10px; }
.pipe-box { padding: 2px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 6px; }
.pipe-h { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.pipe-h .grow { flex: 1; }
.pp-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; background: var(--bg); }
.pp-row:hover { border-color: var(--accent); }
.pp-row > span:nth-child(2) { flex: 1; min-width: 0; }
.pp-none { padding: 2px 2px; }
.pp-in { display: grid; gap: 6px; padding: 8px 10px; background: var(--panel-2); border-radius: 10px; font-size: 13px; }
.pp-irow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pp-irow .btn { margin-left: auto; }
.tl-i.ev { background: var(--bg); border-style: dashed; }
.tl-i.ev.order { border-color: rgba(47, 122, 85, .35); }
.ev-b { background: var(--teal-soft); color: var(--teal); font-family: var(--sans); font-size: 12px; }
.tl-i.ev.order .ev-b { background: var(--up-soft); color: var(--up); }
.tl-i.ev.intake .ev-b { background: var(--accent-soft); color: var(--accent); }
.ev-t { font-weight: 700; margin-top: 2px; }
.lg-kv.ro dd { font-weight: 600; }
.tl-i.gone { opacity: .55; }

/* 合作机会页「待转」：有待转的塔时这个分类标出来 */
.chips button.warn-chip:not(.on) { color: var(--warn); border-color: rgba(154, 101, 18, .45); background: rgba(154, 101, 18, .08); }
.chips button.warn-chip:not(.on) b { color: var(--warn); }
.warn-x { color: var(--warn); }
.tw-note { margin: 0; padding: 11px 14px 10px; border-bottom: 1px solid var(--line); line-height: 1.6; white-space: normal; }

/* 塔的标签：联盟（青）、风险（红，带 ⚠）、喜好、其他 */
.tw-tag { display: inline-block; line-height: 20px; padding: 0 8px; margin: 1px 4px 1px 0; border-radius: 6px; font-size: 12px; font-weight: 800; white-space: nowrap; vertical-align: 1px; border: 1px solid transparent; }
.tw-tag.al { background: var(--teal-soft); color: var(--teal); border-color: rgba(46, 107, 99, .35); }
.tw-tag.risk { background: var(--down-soft); color: var(--down); border-color: rgba(184, 64, 47, .35); }
.tw-tag.like { background: var(--accent-soft); color: var(--accent); }
.tw-tag.etc { background: var(--panel-2); color: var(--ink-2); border-color: var(--line); }
.tw-tag small { font-family: var(--mono); font-weight: 700; opacity: .7; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin: -2px 0 12px; }
.tag-row .btn { margin-left: 6px; }
.tg-sec { margin: 10px 0 4px; } .tg-sec > b { display: block; font-size: 13px; margin-bottom: 6px; }
.tag-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick .tw-tag { line-height: 30px; padding: 0 12px; font-size: 13px; cursor: pointer; opacity: .55; }
.tag-pick .tw-tag.on { opacity: 1; box-shadow: 0 0 0 2px currentColor inset; }

/* 塔详情里的「收款和开票」 */
.payee-box { padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 8px; }
.pb-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pb-sub { margin-top: 2px; }
table.acct td { padding: 7px 8px; vertical-align: middle; }
table.acct .w-def { width: 52px; }
table.acct .acts { text-align: right; white-space: nowrap; }
.acct-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acct-add .inp { height: 32px; flex: 1 1 140px; }
.tm-list { display: grid; gap: 8px; }
.tm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tm-row .inp { height: 32px; }
.tm-row .tm-name { width: 140px; } .tm-row .tm-leader { flex: 1 1 200px; } .tm-row .tm-note { flex: 1 1 160px; }
.tm-row .tm-n { margin-left: auto; font-family: var(--mono); }
table.calls { width: 100%; }
table.calls td { vertical-align: top; padding: 8px 6px; }
table.calls td.wrap { min-width: 0; max-width: none; }
table.calls td.num { font-size: 12.5px; }
/* 逐车入库（二期） */
.plate-s { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12.5px; background: #f2c418; color: #17130f; box-shadow: inset 0 0 0 1px rgba(23, 19, 15, .6); border-radius: 4px; padding: 1px 6px; letter-spacing: .02em; white-space: nowrap; }
.pp-th { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0 4px; }
.pp-th .grow { flex: 1; }
button.pp-irow.tk { width: 100%; text-align: left; padding: 5px 6px; border-radius: 8px; font-size: 13px; }
button.pp-irow.tk:hover { background: var(--bg); }
.tk-photo { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
/* 合同 */
.ct-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ct-line [data-lt] { flex: 1; min-width: 200px; }
.ct-line.ct-ed [data-lt], .inp.ct-ed { background: #fff3e8; border-color: rgba(196, 86, 31, .5); }
.inp.ct-miss { border-color: var(--down); background: #fff7f5; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }

/* 塔的地图位置（10-16） */
.lg-kv dd.loc-dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lg-kv dd.loc-dd b { overflow-wrap: anywhere; }

/* ───────────────────────────────── 手机（10-17）：同一个 /admin，屏幕窄了自动换布局，电脑上一点不变
 * ≤900px：侧栏收成顶上一条（菜单按钮 + 这一页叫什么），点「菜单」从左边滑出来
 * ≤900px：表格每一行变一张卡片（600px 以上两列）（第一格当标题，其余「列名：值」），抽屉变整屏，按钮、输入框放大到拇指好点、输入不再被 iPhone 放大 */
.mbar, .mscrim, table.t td.td-more, .tl-more, .lf-more { display: none; }  /* 手机才用：卡片「更多 N 项」、记录「再看 N 条」 */
:root { --z-mbar: 40; --z-mscrim: 61; --z-menu: 62; }  /* 手机上的层：顶条 < 抽屉(55) < 菜单遮罩 < 菜单 */
/* 塔地图（10-17）：电脑上地图 + 右侧清单；手机上地图在上、清单在下 */
.tm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; height: calc(100dvh - 170px); min-height: 520px; }
.tm-map { padding: 0; overflow: hidden; position: relative; min-height: 420px; }
.tm-side { padding: 14px; overflow: auto; }
.tm-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: var(--panel-2); }
.tm-ct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.tm-km { margin: 6px 0 2px; font-size: 13px; }
.tm-km b { font-size: 22px; }
.tm-leg { margin: 0 0 6px; }
.tm-areas { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-size: 12px; color: var(--ink-2); }
.tm-areas i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; opacity: .8; }
.tm-leg i { width: 11px !important; height: 11px !important; box-sizing: border-box; }
.tm-list { display: grid; gap: 2px; }
.tm-row { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; min-height: 40px; }
.tm-row:hover, .tm-row.on { background: var(--panel-2); }
.tm-row i { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid; box-sizing: border-box; }
.tm-row .tm-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-row .tm-n small { color: var(--ink-3); margin-left: 6px; }
.tm-depot { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tm-depot i { width: 18px; height: 18px; background: #29221b; border: 3px solid #fffdf9; box-shadow: 0 1px 4px rgba(40, 24, 10, .4); border-radius: 3px; }
.tm-depot b { font-size: 12px; color: #29221b; background: rgba(255, 253, 249, .92); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 900px) {
  .tm-wrap { grid-template-columns: minmax(0, 1fr); height: auto; }
  .tm-map { height: 62dvh; min-height: 360px; }
  .tm-side { overflow: visible; }
}

/* 结算付款（10-17）：待出单按塔一张卡片；确认单详情里的付款一笔一条、凭证缩略图；确认单图片预览 */
.pend-card { margin-bottom: 12px; }
.pend-card .card-h { flex-wrap: wrap; }
.pend-card .pend-warn { margin: 0 16px 10px; }
.pend-card .pend-warn .tlink { font-weight: 800; text-decoration: underline; cursor: pointer; margin-left: 4px; }
.pay-it { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg); }
.pay-it .toolbar { flex-wrap: wrap; }
.pay-it.refund { border-color: rgba(184, 64, 47, .35); background: var(--down-soft); }
.ph-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ph-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.dl-img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.dl-line { margin-bottom: 6px; }
.dl-more { margin: 8px 0; font-size: 13px; }
.dl-more summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.act-bar.wrap { flex-wrap: wrap; }
.dl-t th, .dl-t td { padding-left: 5px; padding-right: 5px; font-size: 12.5px; }

/* 库存质量（10-17）：彩色环 = 各档吨数占比，中间是加权综合值；绿健康、黄留意、橙要处理、红超标 */
.ring { display: block; flex: none; }
.ring .rv { font-family: var(--mono); font-size: 7.4px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.ring .rs { font-size: 3.4px; fill: var(--ink-3); text-anchor: middle; font-weight: 700; }
.legend-b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: -6px 0 14px; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.legend-b i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.stock-hero { display: flex; gap: 22px; align-items: center; padding: 18px 20px; margin-bottom: 8px; flex-wrap: wrap; }
.stock-hero .k { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.stock-hero .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.stock-hero .v small { font-size: 13px; color: var(--ink-3); margin-left: 3px; font-family: var(--sans); }
.stock-hero .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.sh-info { flex: 1; min-width: 260px; }
.mrings { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.mrings .mr { display: grid; justify-items: center; gap: 2px; width: 96px; text-align: center; font-size: 12.5px; }
.mrings .mr .note { font-size: 11.5px; line-height: 1.3; }
.mrings.dr { margin: 0 0 12px; }
.bins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.bin-card { display: grid; justify-items: center; gap: 4px; padding: 14px 12px 12px; text-align: center; }
.bin-card .bn { font-family: var(--mono); font-size: 16px; font-weight: 800; }
.bin-card .bt { font-size: 13px; color: var(--ink-2); }
.bm { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.mb { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.mb.b-g, td.b-g { color: #2f7a55; } .mb.b-g { background: rgba(47, 122, 85, .12); }
.mb.b-y, td.b-y { color: #8a6d0b; } .mb.b-y { background: rgba(201, 162, 39, .16); }
.mb.b-o, td.b-o { color: #b8560f; } .mb.b-o { background: rgba(224, 122, 31, .14); }
.mb.b-r, td.b-r { color: #c0392b; } .mb.b-r { background: rgba(192, 57, 43, .12); }
td.b-y, td.b-o, td.b-r { font-weight: 800; }
.card.click { cursor: pointer; transition: border-color .15s; }
.card.click:hover { border-color: var(--accent); }
.stock-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.stock-strip:hover { border-color: var(--accent); }
.ss-main { display: flex; align-items: center; gap: 12px; }
.ss-main .k { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.ss-main .v { font-size: 22px; font-weight: 700; }
.ss-main .v small { font-size: 12px; color: var(--ink-3); margin-left: 2px; font-family: var(--sans); }
.ss-bins { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.ss-bins .sb { display: grid; justify-items: center; font-size: 11.5px; font-family: var(--mono); color: var(--ink-2); font-weight: 700; }

@media (max-width: 900px) {
  .shell { display: block; min-height: 100dvh; }
  .mbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: var(--z-mbar); min-height: calc(54px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0;
    background: var(--rail); color: var(--rail-ink); box-shadow: 0 8px 20px -14px rgba(31, 23, 16, .7); }
  .mb-menu { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 11px; background: rgba(255, 245, 230, .09); color: var(--rail-ink); font-weight: 800; font-size: 15px; }
  .mb-menu svg { width: 18px; height: 18px; }
  .mb-menu:active { background: rgba(255, 245, 230, .16); }
  .mb-nb { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--down); color: var(--on-accent); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; }
  .mb-nb:empty { display: none; }
  .mb-t { flex: 1; min-width: 0; font-size: 16.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail { position: fixed; top: 0; left: 0; bottom: 0; z-index: var(--z-menu); width: min(300px, 84vw); height: auto; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(18px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)); transform: translateX(-104%); transition: transform .26s var(--ease); }
  .shell.menu-on .rail { transform: none; box-shadow: var(--shadow-lg); }
  .mscrim { display: block; position: fixed; inset: 0; z-index: var(--z-mscrim); background: rgba(31, 23, 16, .38); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .shell.menu-on .mscrim { opacity: 1; pointer-events: auto; }
  .rail a { height: 46px; font-size: 15.5px; flex: none; }
  .rail .foot { padding-top: 16px; }
  .rail .foot button { height: 40px; }
  main { padding: 16px 14px calc(56px + env(safe-area-inset-bottom)); }
  .ph > div > h1 { display: none; }  /* 顶上那条已经写着这一页叫什么 */
  /* 每页的说明收成两行，点一下展开：列表先露出来 */
  .ph p { margin-top: 0; text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; cursor: pointer; }
  .ph p.open { -webkit-line-clamp: unset; }
}
@media (max-width: 900px) {
  body { font-size: 15px; }
  /* 拇指好点：按钮、输入框 40–44px；输入框 16px 字，iPhone 点进去不再整页放大 */
  .inp, select.inp { height: 42px; font-size: 16px; }
  textarea.inp { font-size: 16px; }
  /* 表格里、详情里的输入框原来是 30–32px 高、13px 字：iPhone 一点就整页放大，也不好点 */
  table.t td .inp, table.t td select.inp, .lg-kv .inp, .acct-add .inp, .tm-row .inp, .mk-row select.inp, .ct-line .inp { height: 40px; font-size: 16px; }
  .btn { height: 42px; padding: 0 16px; font-size: 15px; }
  .btn-sm { height: 38px; padding: 0 12px; font-size: 14px; }
  .chips button { height: 38px; padding: 0 14px; font-size: 14px; }
  .chips { gap: 6px; }
  .ph { gap: 10px; margin-bottom: 14px; align-items: stretch; }
  .ph .grow { display: none; }
  .toolbar { gap: 8px; }
  .toolbar .inp, .toolbar select.inp { width: auto !important; flex: 1 1 150px; max-width: 100%; }
  .card-h { flex-wrap: wrap; padding: 12px 14px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 11px 13px; border-radius: 12px; }
  .tile .v { font-size: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px; }
  .form-grid label { margin-top: 8px; }
  .notice-box { flex-wrap: wrap; }
  .notice-box b { padding-top: 0; }
  .notice-box textarea { flex: 1 1 100%; min-height: 84px; }
  .notice-box .btn { flex: 1 1 100%; justify-content: center; }
  .mk-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-row select { grid-column: 1 / -1; }
  dl.kv { grid-template-columns: 92px minmax(0, 1fr); }
  .vform { grid-template-columns: 84px minmax(0, 1fr); }
  .vc-kv { grid-template-columns: 56px minmax(0, 1fr); }
  .lg-kv { grid-template-columns: 68px minmax(0, 1fr); }
  .act-bar, .reset-bar { flex-wrap: wrap; }
  .editor textarea { min-height: 360px; }
  .login-wrap { min-height: 100dvh; }
  .login-card .inp { font-size: 16px; }
  .login-card { width: min(360px, calc(100vw - 32px)); }
  .note { text-wrap: pretty; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }

  /* 表格 → 卡片：每一行一张卡片，第一格是标题，其余一格一行「列名：值」（列名由 admin.js 从表头抄到 data-l） */
  .tw { overflow: visible; max-height: none; border-radius: 0; }
  .card:has(> .tw) { background: none; border: 0; box-shadow: none; }
  .card:has(> .tw) > .card-h { padding: 0 2px 10px; border: 0; }
  table.t, table.t > tbody, table.t > tfoot { display: block; width: 100%; min-width: 0; }
  table.t > thead { display: none; }
  table.t tr { position: relative; display: flex; flex-direction: column; margin: 0 0 8px; padding: 10px 14px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
  table.t tbody tr:hover, tr.click:hover td { background: var(--bg); }
  table.t tr.click:active { border-color: var(--accent); }
  /* 一格一行：列名浮在左边，值整块靠右（值里有好几段也挨在一起，不会被拉散） */
  table.t td, table.t td.n, table.t td.wrap { display: block; min-width: 0; max-width: none; padding: 5px 0; border: 0; white-space: normal; text-align: right;
    overflow-wrap: anywhere; background: none; }
  table.t td::before { content: attr(data-l); float: left; max-width: 42%; margin-right: 12px; text-align: left; color: var(--ink-3); font-weight: 700; font-size: 13px;
    font-family: var(--sans); white-space: normal; }
  table.t td::after { content: ""; display: table; clear: both; }
  table.t td[data-l=""]::before, table.t td:not([data-l])::before { display: none; }
  /* 长文字（通知内容、备注、总结）：列名单独一行，内容左对齐，读起来顺 */
  table.t td.wrap { text-align: left; }
  table.t td.wrap::before { float: none; display: block; max-width: none; margin: 0 0 2px; }
  table.t td.td-h { order: -1; display: block; text-align: left; text-wrap: balance; font-size: 15.5px; padding: 0 30px 8px 0; margin-bottom: 4px; border-bottom: 1px dashed var(--line-2); }
  table.t td.td-h::before { display: none; }
  table.t td.td-pick { position: absolute; top: 8px; right: 8px; padding: 0; }
  table.t td.td-pick input { width: 22px; height: 22px; }
  table.t td.td-empty { display: none; }
  /* 卡片外面只留核心几项：其余收起；点不开的卡片底下「更多 N 项」就地展开，点得开的标题旁边一个 › */
  table.t td.td-x { display: none; }
  table.t tr.more-on > td.td-x:not(.td-empty) { display: block; }
  table.t td.td-more { display: block; padding: 4px 0 0; text-align: left; }
  table.t td.td-more::before { display: none; }
  .more-btn { height: 36px; padding: 0 2px; color: var(--accent); font-weight: 800; font-size: 13.5px; }
  table.t tr.click:not(:has(> td.td-pick)) > td.td-h { position: relative; padding-right: 26px; }
  table.t tr.click:not(:has(> td.td-pick)) > td.td-h::after { content: "›"; position: absolute; right: 0; top: -2px; font-size: 22px; line-height: 1; font-weight: 400; color: var(--ink-3); }
  /* 详情里的长记录：只露最近 3 条 */
  .tl.tl-fold > .tl-x { display: none; }
  .tl-more { display: block; width: 100%; height: 42px; margin-top: 8px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-2); font-weight: 800; font-size: 14px; }
  .tl-more:active { background: var(--panel-2); }
  /* 线索详情：不常改的字段（片区、县区、判断、风险提示、经营范围、来源、备注）收进「更多字段」 */
  .vform .lf-x { display: none; }
  .vform.more-on .lf-x { display: block; }
  .lf-more { display: block; width: 100%; height: 42px; margin-top: 10px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-2);
    font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lf-more:active { background: var(--panel-2); }
  table.t td > .inp, table.t td > select.inp { width: 56%; max-width: 56%; min-width: 0; }
  table.t td.empty { display: block; text-align: center; }
  table.t tfoot tr { background: var(--panel-2); }
  table.t tfoot td { background: none; border: 0; }
  table.t td .clip { max-width: 100%; }
  /* 卡片里的文字链接、片区树的展开按钮：点的范围放大到 40px 左右，排版不变 */
  table.t td a:not(.btn), .notice-now a, a.tlink { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .tg { width: 36px; height: 36px; margin-right: 2px; font-size: 14px; }
  .t.tree tr.lv1 { margin-left: 14px; } .t.tree tr.lv2 { margin-left: 28px; }
  .t.tree tr.lv1 td.tname, .t.tree tr.lv2 td.tname { padding-left: 0; }
  .t.tree tr.lv0 { background: var(--panel-2); }
  table.t.acct td { text-align: left; }

  /* 抽屉 → 整屏 */
  .drawer { width: 100vw; box-shadow: none; transition-duration: .28s; }
  .drawer-h { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .drawer-h h3 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; min-width: 0; text-wrap: balance; }
  .drawer-b { padding: 14px 14px calc(40px + env(safe-area-inset-bottom)); }
  .tl-i { padding: 10px; }
  .call-i { grid-template-columns: auto minmax(0, 1fr); }
  .call-i > .toolbar, .call-i > .btn { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 900px) {
  table.t > tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
  table.t > tbody > tr { margin: 0; }
  table.t > tbody > tr:has(> td.empty) { grid-column: 1 / -1; }
  table.t.tree > tbody, table.t.acct > tbody { display: block; }
  table.t.tree > tbody > tr, table.t.acct > tbody > tr { margin: 0 0 8px; }
}

/* 库存质量 3D（10-17）：手机上 3D 在上、库位详情在下；工具条不再盖在画面上 */
@media (max-width: 900px) {
  .wh-wrap { grid-template-columns: minmax(0, 1fr); }
  .wh-stage { height: auto; }
  .wh-canvas { flex: none; height: 400px; }
  .wh-hud { position: static; margin: 12px 14px 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .wh-tools { position: static; padding: 10px 14px 4px; justify-content: space-between; }
  .wh-side { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .wh-canvas { height: 340px; }
  .wh-hint { display: none; }
  .wh-lb:not(.wh-name) { min-width: 0; padding: 2px 6px 3px; border-radius: 7px; line-height: 1.2; }
  .wh-lb b, .wh-lb.mini b { font-size: 12px; }
  .wh-lb span, .wh-lb.mini span { font-size: 11.5px; }
  .wh-lb small, .wh-lb:not(.wh-name).mini span { display: none; }
  .seg button { padding: 0 10px; height: 32px; }
  .wl-r { grid-template-columns: 38px minmax(0, 1fr) 84px; }
  .ss-bins { flex-basis: 100%; }
}

/* 甲方回款（10-17，U-155） */
td.neg, .bd-t td.neg { color: var(--down); font-weight: 800; }
.ok-x { color: var(--up); }
td.td-act { text-align: right; white-space: nowrap; }
.bd-price { margin: 12px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.bd-price label { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 6px; }
.bd-pr { display: flex; gap: 8px; }
.bd-pr .inp { width: 140px; font-size: 16px; }
.bd-price .note { margin-top: 6px; }
.bd-rc { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bd-rc:last-of-type { border-bottom: 0; }
.bd-days { margin: 0; }
.bd-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }  /* 7 张卡片一行放下（U-505 加了当天结算价，U-622 加了 29 号库）；窄屏 4 张一行、两行 */
@media (max-width: 1599px) { .bd-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bd-tiles .v { white-space: nowrap; }
.bd-dt td.bd-tw { max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-days button b { font-weight: 700; }

/* 首页（10-18 重新设计）：5 张数字卡（走势线 + 比前一天）→ 入库和回款柱状 | 资金环形 → 塔和线索 | 库存半圆 | 运输公司和司机 */
.dash2 { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.kps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kps.k6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }  /* 加了 29 号库卡片（U-622）：宽屏一行 6 张，窄一点 3 张两行，不留单张孤在第二行 */
@media (max-width: 1399px) { .kps.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kps.k6 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.kp { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; border-radius: 16px; text-decoration: none; color: inherit; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
a.kp:hover { border-color: rgba(196, 86, 31, .35); box-shadow: 0 8px 22px -16px rgba(60, 38, 20, .45); }
.kp-k { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.kp-v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.kp-v small { font-size: 13px; color: var(--ink-3); margin-left: 3px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.kp-s { font-size: 12.5px; color: var(--ink-2); min-height: 18px; }
.kp-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; min-height: 34px; }
.kp-bad { background: linear-gradient(0deg, var(--down-soft), var(--down-soft)), var(--bg); }
.kp-bad .kp-v { color: var(--down); }
.bad-x { color: var(--down); }
.spark { width: 46%; max-width: 130px; min-width: 56px; height: 34px; flex: 0 1 auto; margin-left: auto; }  /* 卡片窄时跟着缩，不出卡片（U-466） */
.dl-w { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: none; }
.dl-w .dl-n { margin-left: 2px; }
.spark .sp-l { fill: none; stroke: var(--accent); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.spark .sp-a { fill: var(--accent-soft); stroke: none; }
.dl { font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.dl.up { color: var(--up); background: var(--up-soft); } .dl.down { color: var(--down); background: var(--down-soft); } .dl.flat { color: var(--ink-3); background: var(--panel-2); }
.dl-n { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; margin-left: 4px; align-self: center; }
.kp-f .dl + .dl-n { margin-right: auto; }
.kp-bar { flex: 1; max-width: 46%; height: 6px; border-radius: 99px; background: var(--corn-soft); overflow: hidden; align-self: center; }
.kp-bar i { display: block; height: 100%; background: var(--corn); border-radius: inherit; }
.d-row { display: grid; gap: 14px; }
.d-r1 { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }  /* 入库与运力加宽，右边库存（10-20 用户） */
.d-r2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }  /* 塔与线索 + 资金，对半（资金卡改两栏后两张等高，10-20 用户） */
.dcard { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; border-radius: 16px; }
.dc-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dc-h h2 { font-size: 15px; font-weight: 800; }
.dc-h .grow { flex: 1; }
.dc-go { font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.dc-go:hover { text-decoration: underline; }
.dc-sh { font-size: 12px; font-weight: 800; color: var(--ink-3); margin-bottom: 8px; }
.dc-sh .note { font-weight: 600; }
.dc-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.dc-big small { font-size: 13px; color: var(--ink-3); margin-left: 5px; font-family: var(--sans); letter-spacing: 0; font-weight: 700; }

/* 入库和回款：每天一根柱（高度 = 吨数 ÷ 刻度最大值，从 0 起），选中那天橙色，最高那天深色；下面圆点 = 北大荒那天回清没有 */
.db { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.db-y { display: flex; flex-direction: column; justify-content: space-between; height: 180px; font-size: 10.5px; color: var(--ink-3); text-align: right; padding-bottom: 0; transform: translateY(6px); }
.db-plot { position: relative; }
.db-grid { position: absolute; left: 0; right: 0; top: 0; height: 180px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.db-grid i { display: block; border-top: 1px dashed var(--line); }
.db-grid i:last-child { border-top: 1px solid var(--line-2); }
.db-avg { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed rgba(196, 86, 31, .55); pointer-events: none; z-index: 1; }
.db-avg { bottom: auto; }
.db-cols { position: relative; display: flex; gap: 6px; }
.db.has-y2 { grid-template-columns: auto minmax(0, 1fr) auto; }
.db-y2 { text-align: left; color: var(--teal); }
.db-money { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 180px; pointer-events: none; z-index: 2; overflow: visible; }
.dm-gap { fill: rgba(184, 64, 47, .10); stroke: none; }
.dm-ar { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dm-paid { fill: none; stroke: var(--teal); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dm-tags { position: absolute; left: 0; right: 0; top: 0; height: 180px; pointer-events: none; z-index: 3; }
.dm-t { position: absolute; translate: -100% -130%; font-size: 10.5px; font-weight: 800; white-space: nowrap; padding: 1px 5px; border-radius: 5px; background: rgba(255, 253, 249, .92); }
.dm-t.ar { color: var(--ink-2); } .dm-t.paid { color: var(--teal); translate: -100% 30%; }
.lg-ln { display: inline-block; width: 16px; height: 0; border-top: 2.4px solid var(--teal); }
.lg-ln.ar { border-top: 1.6px dashed var(--ink-2); }
.lg-gap { display: inline-block; width: 12px; height: 10px; border-radius: 3px; background: rgba(184, 64, 47, .16); }
.db-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.db-track { position: relative; width: 100%; height: 180px; display: flex; align-items: flex-end; justify-content: center; }
.db-bar { width: 100%; max-width: 34px; min-height: 0; border-radius: 7px 7px 3px 3px; background: rgba(48, 32, 20, .13); transform-origin: bottom; animation: db-grow .6s var(--ease) both; }
.db-col.top .db-bar { background: var(--rail); }
.db-col.on .db-bar { background: var(--accent); }
.db-v { position: absolute; left: 50%; translate: -50% 0; font-size: 10.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.db-col.on .db-v { color: var(--accent); }
.db-x { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.db-col.on .db-x { color: var(--accent); font-weight: 800; }
.db-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); display: inline-block; }
.db-dot.s-ok { background: var(--up); box-shadow: none; } .db-dot.s-due { background: var(--corn); box-shadow: none; } .db-dot.s-bad { background: var(--down); box-shadow: none; } .db-dot.s-warn { background: #9a6512; box-shadow: none; }
@keyframes db-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.db-lg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--ink-2); padding-top: 4px; }
.db-lg span { display: inline-flex; align-items: center; gap: 5px; }
.db-lg .grow { flex: 1; }
.lg-bar { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: rgba(48, 32, 20, .13); }
.lg-bar.on { background: var(--accent); }
.lg-avg { display: inline-block; width: 14px; border-top: 1.5px dashed rgba(196, 86, 31, .7); }

/* 资金：北大荒回款环形 + 图例；付塔主分段条 */
.mn-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { position: relative; width: 138px; height: 138px; flex: none; }
.donut svg { width: 100%; height: 100%; display: block; }
.dn-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dn-c b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.dn-k, .dn-u { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.lg { list-style: none; flex: 1; min-width: 150px; display: grid; gap: 8px; }
.lg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.lg li i { width: 10px; height: 10px; border-radius: 3px; }
.lg li b { font-size: 14.5px; }
.lg li b small { font-size: 11px; color: var(--ink-3); margin-left: 2px; font-family: var(--sans); }
.lg li.lg-sub { display: block; font-size: 12px; color: var(--ink-3); padding-top: 2px; border-top: 1px solid var(--line); }
.mn-p { padding-top: 12px; border-top: 1px solid var(--line); }
.segbar { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; background: var(--panel-2); }
.segbar i { display: block; min-width: 3px; }
.seglg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.seglg span { display: inline-flex; align-items: center; gap: 5px; }
.seglg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.seglg b { font-size: 12.5px; margin-left: 2px; }
.mn-note { margin-top: 8px; }

/* 塔和线索：大数字合作中 + 辅助四格；右边送粮最多的塔（横条） */
.tw-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 18px; }
.tw-aux { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: 8px; margin-top: 12px; }  /* 四张一样大、对齐（10-24 用户，U-467） */
.tw-aux li { display: flex; min-width: 0; }
.tw-aux a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border-radius: 10px; background: var(--panel-2); text-decoration: none; color: inherit; transition: background .15s; }
.tw-aux a:hover { background: var(--accent-soft); }
.tw-aux a > b { font-size: 19px; font-weight: 700; line-height: 1.2; }
.tw-aux span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.tw-aux small { font-size: 11.5px; color: var(--ink-3); }
.tw-aux small b { font-weight: 800; }
.tw-aux small .tw-n { font: inherit; color: inherit; white-space: nowrap; }
.hb { display: grid; gap: 7px; }
.hb-r { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) auto; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-size: 12.5px; }
.hb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-weight: 700; }
.hb-t { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: inherit; background: var(--corn); transform-origin: left; animation: hb-grow .6s var(--ease) both; }
.hb-t i.top { background: var(--accent); }
.hb-v { font-weight: 700; min-width: 3.6em; text-align: right; }
@keyframes hb-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 库存：占库容半圆 + 水分分档 */
.gg { position: relative; width: 170px; max-width: 100%; margin: 0 auto; }
.gauge { display: block; width: 100%; height: auto; }
.gg-c { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; flex-direction: column; align-items: center; }
.gg-c b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.gg-c span { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.gg-s { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: -6px; }
.sk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sk-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sk-k { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.sk-m > b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.sk-m > b small { font-size: 15px; margin-left: 1px; }
.sk-m .mb { align-self: flex-start; font-size: 12px; }
.sk-gg { width: 108px; margin: 0; flex: none; }
.sk-gg .gg-c b { font-size: 16px; }
.sk-gg .gg-c { bottom: 0; }
.sk-bm { justify-content: flex-start; }
.sk-gr { background: var(--panel-2); color: var(--ink-2); }
.sk-bins { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
.sk-bins .sb { display: grid; justify-items: center; gap: 3px; font-size: 10.5px; font-family: var(--mono); color: var(--ink-2); font-weight: 700; text-decoration: none; }
.sk-bins .sb-c { width: 20px; height: 34px; }
.sk-bins .db-dot { width: 6px; height: 6px; }
.db-dot.s-mg { background: #2f7a55; box-shadow: none; } .db-dot.s-my { background: #c9a227; box-shadow: none; } .db-dot.s-mo { background: #e07a1f; box-shadow: none; } .db-dot.s-mr { background: #c0392b; box-shadow: none; }

/* 运输公司和司机：累计四行 */
.cr-l { list-style: none; display: grid; gap: 2px; }
.cr-l li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cr-l li:last-child { border-bottom: 0; }
.cr-k { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cr-k small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.cr-l b { font-size: 19px; font-weight: 700; }
.cr-l b small { font-size: 11.5px; color: var(--ink-3); margin-left: 2px; font-family: var(--sans); }

/* 今天外拓：表头一排汇总 + 晚会看的表 */
.dc-team { padding: 0; overflow: hidden; }
.dc-team > .dc-h { padding: 14px 18px 0; }
.tm-sum { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 14px; border-bottom: 1px solid var(--line); }
.tm-sum span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--panel-2); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.tm-sum span b { font-size: 16px; color: var(--ink-1); }
.tm-sum span b small { font-size: 11px; color: var(--ink-3); margin-left: 1px; font-family: var(--sans); }
.tm-sum span.ok b { color: var(--up); }
.dc-team .tw { border-radius: 0; }

@media (prefers-reduced-motion: reduce) { .db-bar, .hb-t i { animation: none; } }
@media (max-width: 1180px) {
  .d-r1, .d-r2 { grid-template-columns: minmax(0, 1fr); }
  .d-r2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .kps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kps .kp:first-child { grid-column: 1 / -1; }
  .kp { padding: 12px 13px 10px; }
  .kp-v { font-size: 24px; }
  .spark { width: 40%; }
  .d-r2 { grid-template-columns: minmax(0, 1fr); }
  .tw-g { grid-template-columns: minmax(0, 1fr); }
  .db-cols { gap: 3px; }
  .db-col:nth-child(even) .db-x { visibility: hidden; }
  .db-v { display: none; }
  .db-col.on .db-v, .db-col.top .db-v { display: block; }
  .db-y, .db-track, .db-grid, .db-money, .dm-tags { height: 150px; }
  .db-y2 span:nth-child(2) { visibility: hidden; }
  .tm-sum span { padding: 5px 9px; }
}

/* ================================================================ 上传凭证 AI 识别（10-18，U-160）
   左边原图（点一下放大），右边「系统里 / 凭证上」两格，选中的那格描边加底色；标红标黄的项左边一道色条。 */
.lnk { color: var(--accent); font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; font-size: inherit; }
.lnk:hover { text-decoration: underline; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
.inp.ai-fill, select.inp.ai-fill { background: var(--up-soft); border-color: rgba(47, 122, 85, .45); }
.drawer.wide.xw { width: min(1100px, 97vw); }
.tk-acts { margin: 12px 0 4px; gap: 6px; }

.oc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 132px; padding: 20px; text-align: center;
  border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.oc-drop b { font-size: 15px; }
.oc-drop:hover, .oc-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.oc-drop.busy { pointer-events: none; opacity: .7; }
.oc-ai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.oc-wait { padding: 26px 4px; color: var(--ink-3); }
.oc-prog { height: 8px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; margin: 4px 0 6px; }
.oc-prog div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s var(--ease); }
#oj-c { margin: 12px 0; }

.oc-list { display: grid; gap: 14px; padding-bottom: 84px; }
.oc-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px 14px; }
.oc-card.done { padding-bottom: 10px; background: var(--panel-2); box-shadow: none; }
.oc-card.skip .oc-g .oc-l { opacity: .55; }
.oc-ch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.oc-ch .note { overflow-wrap: anywhere; }
.oc-card.done .oc-ch { margin-bottom: 2px; }
.oc-g, .oc-one { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.oc-one.sm { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin-bottom: 12px; }
.oc-l { position: sticky; top: 8px; display: grid; gap: 4px; }
.oc-img { overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: zoom-in; }
.oc-img img { display: block; width: 100%; height: auto; transition: transform .18s ease-out; }
.oc-img.z { cursor: zoom-out; }
.oc-img.z img { transform: scale(2.4); }
/* 点右边一项 → 原图放大到那个数并框出来（10-18） */
.oc-img { position: relative; }
.oc-zl { position: relative; transform-origin: 0 0; transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.oc-img.f { cursor: zoom-out; }
.oc-hl { position: absolute; pointer-events: none; border: calc(2px / var(--s, 1)) solid var(--accent); border-radius: calc(4px / var(--s, 1));
  background: rgba(196, 86, 31, .10); box-shadow: 0 0 0 calc(4px / var(--s, 1)) rgba(196, 86, 31, .20); }
.oc-tip { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); pointer-events: none; }
.oc-cap { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
.oc-t tr.oc-at th { color: var(--accent); background: var(--accent-soft); border-radius: 8px 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .oc-zl { transition: none; } }
.oc-who { margin: 0 0 8px; line-height: 1.9; }
.oc-who .pill { vertical-align: 1px; }
.oc-tw { margin: 0 0 8px; gap: 8px; }
.oc-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: 10px; background: rgba(154, 101, 18, .08); border: 1px solid rgba(154, 101, 18, .25); }
.oc-qr { display: contents; }
.oc-sum { margin: 2px 0 8px; font-size: 13.5px; }

.oc-t { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 13.5px; }
.oc-t thead th { text-align: left; font-size: 12px; font-weight: 800; color: var(--ink-3); padding: 0 8px 2px; }
.oc-t tbody th { text-align: left; font-weight: 700; color: var(--ink-2); padding: 6px 8px; width: 86px; white-space: nowrap; vertical-align: top; border-left: 3px solid transparent; }
.oc-t tbody th small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.oc-t tr.oc-fill th small { color: var(--up); }
.oc-t tr.oc-diff th small { color: var(--warn); }
.oc-t tr.f-warn th { border-left-color: #c9a227; }
.oc-t tr.f-bad th { border-left-color: var(--down); }
.oc-pk { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; vertical-align: top; font-family: var(--mono); font-size: 13px; transition: border-color .12s, background .12s; }
.oc-pk:hover { border-color: var(--line-2); }
.oc-pk.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.oc-t:not(.oc-new) tbody td.oc-pk:first-of-type { width: 34%; }
.oc-v { width: 100%; min-width: 0; height: 26px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; font: inherit; color: var(--ink-1); }
.oc-v:hover { border-color: var(--line-2); background: var(--bg); }
.oc-v:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.oc-v:disabled { color: var(--ink-3); }
.oc-new .oc-pk { cursor: default; border-color: var(--line); background: var(--bg); box-shadow: none; }
.oc-new tr.oc-fill .oc-pk { background: var(--up-soft); border-color: rgba(47, 122, 85, .35); }
.oc-fl { font-family: var(--sans); font-size: 12px; line-height: 1.45; margin: 3px 0 0; color: var(--ink-3); overflow-wrap: anywhere; }
.oc-fl.bad { color: var(--down); font-weight: 700; }
.oc-fl.warn { color: var(--warn); font-weight: 700; }
.oc-fl.fixed, .oc-fl.ok { color: var(--up); }
.oc-r > .oc-fl { margin: 0 0 6px; }
.oc-more td { padding: 4px 8px; }

.oc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none; }
.oc-bar-in { pointer-events: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto 14px; padding: 10px 14px 10px 18px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 12px 34px -14px rgba(60, 38, 20, .38); font-size: 13.5px; }
@media (min-width: 901px) { .oc-bar { left: 216px; padding: 0 24px; } }
@media (max-width: 900px) {
  .oc-g, .oc-one, .oc-one.sm { grid-template-columns: minmax(0, 1fr); }
  .oc-l { position: static; }
  .oc-l.pin { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 3; padding: 6px 0; background: var(--bg); }  /* 手机上图在表格上面：放大的时候钉在顶条下面，往下翻也看得到 */
  #dbody .oc-l.pin { top: 0; }  /* 抽屉盖住整屏，没有顶条 */
  .oc-bar-in { margin: 0 10px calc(10px + env(safe-area-inset-bottom)); }
  .oc-t tbody th { width: 70px; }
  .oc-img.z img { transform: scale(2); }
}

/* ================================================================ 我的待办（10-18，一批货的流程）
   卡片按塔合并；「等了多久」是整页唯一会变色的东西：超 4 小时橙、超 1 天红。门口等回话的卡片左边一道红条。 */
.tdo-hook { font-size: 18px; font-weight: 800; line-height: 1.45; padding: 14px 18px; margin-bottom: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.tdo-sec { margin-bottom: 20px; }
.tdo-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 2px 8px; }
.tdo-h h2 { font-size: 15px; font-weight: 800; }
.tdo-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; }
.tdo-card.hot { border-left: 4px solid var(--down); }
.tdo-card.flag { border-left: 4px solid var(--warn); }
.tdo-ch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tdo-ch b { font-size: 15px; }
.tdo-card .toolbar { margin-top: 8px; }
.tdo-card .box { margin: 6px 0 0; }
.tdo-t td { white-space: normal; vertical-align: top; }
.tdo-t tr.look td { background: rgba(154, 101, 18, .06); }
.tdo-look { min-width: 180px; font-size: 12.5px; line-height: 1.5; }
.tdo-act { white-space: nowrap; text-align: right; }
.tdo-act .btn { margin-left: 4px; }
.tdo-foot { justify-content: flex-end; }
.tdo-iss { font-size: 13px; line-height: 1.8; padding: 6px 10px; border-radius: 10px; background: var(--panel-2); }
.wait { font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wait.w-amber { color: #b4650f; }
.wait.w-red { color: var(--down); }
.pay-flags { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: rgba(154, 101, 18, .1); color: var(--warn); font-size: 13px; line-height: 1.6; }
.pay-flags b { color: var(--ink-1); }
/* 单车走到哪一步 */
.fl-box { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.fl-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.fl-steps span { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; color: var(--ink-3); background: var(--bg); border: 1px solid var(--line); }
.fl-steps span.done { color: var(--up); border-color: rgba(47, 122, 85, .3); }
.fl-steps span.on { color: var(--on-accent); background: var(--accent); border-color: transparent; font-weight: 800; }
.fl-iss { margin-top: 8px; font-size: 13px; line-height: 1.7; }
/* 塔主怎么说：一条异常 */
.iss { padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.iss-h { margin-bottom: 6px; line-height: 1.6; }
.iss-out { margin: 6px 0; }
.iss-out button.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.iss-more textarea { margin-top: 6px; }
.fb-t td { white-space: normal; }
.fb-t tr.chg td { background: rgba(154, 101, 18, .07); }
tr.not-ready td { color: var(--ink-3); background: var(--panel-2); }
@media (max-width: 720px) {
  .tdo-hook { font-size: 16px; padding: 12px 14px; }
  .tdo-act { text-align: left; }
}
.t tr.not-ready > td { background: var(--panel-2); color: var(--ink-3); }

/* 供应商资质（10-18）：缺的红叉、齐的绿勾、快到期的橙 */
.dz-ck { white-space: normal; }
.ck { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin: 1px 3px 1px 0; white-space: nowrap; }
.ck.ok { background: var(--up-soft); color: var(--up); }
.ck.no { background: var(--down-soft); color: var(--down); }
.ck.warn { background: rgba(154, 101, 18, .12); color: var(--warn); }
.dz-ck.big { margin-bottom: 8px; }
.dz-ck.big .ck { font-size: 13px; padding: 3px 9px; }
.dz-t td { white-space: normal; vertical-align: top; }
.dz-doc { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg); }
.dz-doc .toolbar { gap: 8px; }
dl.kv.sm { font-size: 13px; grid-template-columns: 96px 1fr; margin-top: 6px; }
.dz-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dz-files img { height: 96px; max-width: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.dz-f { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-2); }
.dz-t td.dz-ck { min-width: 240px; max-width: 330px; }
.dz-t td:nth-child(2) { max-width: 280px; }
.dz-t td.dz-ck, .dz-t td { white-space: normal; }
/* 合同原件 PDF（10-18）：点开新窗口看 */
.ct-pdf { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-1); }
.ct-pdf:hover { border-color: var(--accent); }
.ct-pdf .note { margin-left: auto; }
.pp-irow.click { cursor: pointer; }
.pp-irow.click:hover { background: var(--panel-2); }

/* ================================================================ 工作台（10-18，规格 .workbench/spec-home.md）
   首行摘要 → 我的待办（卡片）→ 关键指标 → 各环节待办 → 经营看板。只有「最长等待」变色：超 4 小时橙、超 1 天红 */
.hm-hook { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 18px; font-weight: 800; line-height: 1.45; padding: 14px 18px; margin-bottom: 20px;
  border-radius: 14px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hm-hook > span { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.hm-sec { margin-bottom: 22px; }
.hm-h { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 9px; }
.hm-h h2 { font-size: 15px; font-weight: 800; }
.hm-tiles, .hm-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.hm-nums { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }  /* 6 张指标卡一排放得下，不留单独一张在第二排 */
.hm-tile, .hm-num { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 13px 16px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .14s, box-shadow .14s; }
.hm-tile:hover, .hm-num:hover { border-color: var(--line-2); box-shadow: 0 6px 18px -10px rgba(60, 38, 20, .35); }
.hm-tile:focus-visible, .hm-num:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-tl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.hm-tile b, .hm-num b { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.hm-tile b small { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-left: 3px; }
.hm-num b { font-size: 22px; }
.hm-num.warn b { color: var(--warn); }
.hm-old { font-size: 12.5px; color: var(--ink-3); }
.hm-old.hm-w1 { color: #b4650f; font-weight: 700; }  /* 和待办里的 .wait.w-amber 同色 */
.hm-old.hm-w2 { color: var(--down); font-weight: 700; }
.hm-go { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--accent); }  /* 卡片等高时「处理 ›」都贴底对齐 */
.nw { white-space: nowrap; }
.hm-none { padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
/* 各环节待办：紧凑列表（不用 table.t，手机上不会被转成一张张大卡片） */
.hm-list { overflow: hidden; }
.hm-lh, .hm-li { display: grid; grid-template-columns: minmax(0, 2.4fr) 88px minmax(0, 1.6fr) minmax(0, 2.2fr) 16px; gap: 12px; align-items: center; padding: 11px 16px; }
.hm-lh { font-size: 12px; font-weight: 800; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.hm-lh .n, .hm-ln { text-align: right; font-variant-numeric: tabular-nums; }
.hm-li { width: 100%; text-align: left; font: inherit; font-size: 13.5px; color: inherit; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.hm-lh + .hm-li { border-top: 0; }
.hm-li:hover { background: var(--panel-2); }
.hm-li:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hm-ls { font-weight: 700; color: var(--ink-1); }
.hm-li .hm-old { font-size: 13px; }
.hm-chev { color: var(--ink-3); text-align: right; font-size: 16px; }
.ph.hm-dash-h { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.ph.hm-dash-h h2 { font-size: 18px; font-weight: 800; }
.tdo-sec.tdo-on > .tdo-h h2 { color: var(--accent); }
#td-v { margin-bottom: 14px; }
@media (max-width: 720px) {
  .hm-hook { font-size: 16px; padding: 12px 14px; }
  .hm-hook .btn { min-height: 44px; padding: 0 18px; }
  .hm-h .lnk { padding: 12px 0; margin: -12px 0; }  /* 「查看全部」点击区域够 44px 高 */
  .hm-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-num b { font-size: 22px; }
  /* 我的待办：手机上一行一组（左边名称和说明，右边数量），长名称不再挤成三行 */
  .hm-tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hm-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; align-items: center; padding: 12px 14px; }
  .hm-tile .hm-tl { grid-column: 1; font-size: 14px; color: var(--ink-1); }
  .hm-tile b { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; }
  .hm-tile .hm-old { grid-column: 1; }
  .hm-tile .hm-go { display: none; }
  /* 各环节待办：两行一组 */
  .hm-lh { display: none; }
  .hm-li { grid-template-columns: minmax(0, 1fr) auto 12px; grid-template-areas: "s n c" "o w c"; row-gap: 3px; column-gap: 10px; padding: 11px 14px; }
  .hm-ls { grid-area: s; } .hm-ln { grid-area: n; } .hm-lo { grid-area: o; font-size: 12.5px; color: var(--ink-3); }
  .hm-li .hm-old { grid-area: w; text-align: right; font-size: 12.5px; } .hm-chev { grid-area: c; }
}
.tile.click { cursor: pointer; }
.tile.click:hover { border-color: var(--line-2, rgba(0,0,0,.18)); }
.bt-c.bt-done { opacity: .62; }
.tiles.iv-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tiles.iv-tiles .v { white-space: nowrap; }
@media (max-width: 720px) { .tiles.iv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 待办页（10-19 合并）：手机上关键指标收成紧凑两列，不把待办挤到第二屏 */
@media (max-width: 720px) { #td-top .hm-sec { margin-top: 10px; } #td-top .hm-h h2 { font-size: 14px; } #td-top .hm-nums { gap: 8px; } #td-top .hm-num { padding: 8px 12px; gap: 1px; border-radius: 12px; } #td-top .hm-num b { font-size: 17px; } #td-top .hm-num .note { display: none; } #td-top .hm-hook { padding: 12px 14px; } }
.chips.td-gj { margin-top: 4px; }

.t.cap .cap-in { width: 56px; text-align: right; }
.t.cap .cap-c .note { font-size: 11.5px; white-space: nowrap; }
/* 待办顶上的进行中订单（10-19，U-183） */
.od-sec { margin-bottom: 14px; }
.od-list { display: flex; flex-direction: column; gap: 8px; }
.od-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; }
.od-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.od-card.mine { border-color: rgba(196, 86, 31, .35); box-shadow: inset 3px 0 0 var(--accent); }
.od-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.od-t { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; font-size: 15px; }
.od-t:hover b { text-decoration: underline; }
.od-head { font-size: 13px; font-weight: 800; color: var(--ink-2); }
.od-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.od-k { font-size: 12px; font-weight: 800; color: var(--ink-3); width: 30px; flex: none; }
.od-st { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 99px; background: var(--panel-2); font-size: 12.5px; font-weight: 700; color: var(--ink-2); border: 1px solid transparent; }
.od-st small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
button.od-st.mine { background: var(--accent-soft); color: var(--accent); border-color: rgba(196, 86, 31, .3); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; }
button.od-st.mine:hover { background: var(--accent); color: var(--on-accent); }
.od-more { margin-top: 8px; }
.od-filter { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }
/* 经营看板（10-19，U-183）：顶上预计到库、待交付；入库图的运力虚线框、预计虚线柱；资金卡片的北大荒回款曲线 */
.fc-strip { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fc-k { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); color: inherit; text-decoration: none; min-width: 0; }
.fc-k.hi { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(196, 86, 31, .25); }
.fc-k span { font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.fc-k.hi span { color: var(--accent); }
.fc-k b { font-size: 26px; line-height: 1.15; }
.fc-k b small { font-size: 12px; color: var(--ink-3); margin-left: 3px; font-family: var(--sans); }
.fc-k > small { font-size: 12px; color: var(--ink-3); }
.db-plan { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: 100%; max-width: 34px; border: 1.5px dashed rgba(46, 107, 99, .75); border-bottom: 0; border-radius: 7px 7px 0 0; pointer-events: none; z-index: 1; }
.db-fc { width: 100%; max-width: 34px; border: 1.5px dashed var(--accent); border-bottom-style: solid; border-radius: 7px 7px 3px 3px; background: rgba(196, 86, 31, .1); }
.db-col.fc .db-x { color: var(--accent); }
.db-sep { flex: none; width: 0; border-left: 1.5px dashed var(--line-2); margin: 0 2px; height: 180px; }
.db-gap { font-size: 10px; min-height: 12px; color: var(--ink-3); white-space: nowrap; }
.db-gap.up { color: var(--up); } .db-gap.down { color: var(--down); }
.lg-plan { display: inline-block; width: 12px; height: 10px; border: 1.5px dashed rgba(46, 107, 99, .75); border-bottom: 0; border-radius: 3px 3px 0 0; }
.lg-fc { display: inline-block; width: 12px; height: 10px; border: 1.5px dashed var(--accent); background: rgba(196, 86, 31, .1); border-radius: 3px; }
.mn-c { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mn-svg { width: 100%; height: 110px; overflow: visible; display: block; }
.mn-dots { display: flex; justify-content: space-between; margin-top: 4px; }
.mn-dots span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mn-dots small { font-size: 9.5px; color: var(--ink-3); }
@media (max-width: 900px) { .db-sep { height: 150px; } .db-gap { display: none; } .fc-strip { grid-template-columns: minmax(0, 1fr); } }
/* 入库与运力（10-19，U-184）：今天起 5 天预计一段浅底；雨休斜纹 + 「雨休」；预报有雨雪的小标签 */
.dc-trend .db { margin-top: 20px; }
.db-fz { flex: 5 1 0; min-width: 0; display: flex; gap: 6px; background: rgba(196, 86, 31, .045); border-radius: 10px; }
.db-sep { position: relative; }
.db-sep span { position: absolute; top: -19px; left: 6px; font-size: 11px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.db-col.rest .db-track { background: repeating-linear-gradient(135deg, rgba(79, 126, 168, .16) 0 5px, transparent 5px 11px); border-radius: 8px; }
.db-tags { position: absolute; top: 4px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; z-index: 2; pointer-events: none; }
.db-rest { font-size: 10.5px; font-weight: 800; color: #2f5d86; background: var(--bg); border: 1px solid rgba(79, 126, 168, .4); padding: 0 4px; border-radius: 6px; white-space: nowrap; }
.db-wx { font-size: 10.5px; font-weight: 800; padding: 0 5px; border-radius: 6px; background: rgba(79, 126, 168, .15); color: #2f5d86; white-space: nowrap; }
.db-wx.snow { background: rgba(92, 102, 112, .16); color: #434d57; }
.db-wx.wx-lg { display: inline-block; margin-right: 2px; }
.db-fc + .db-act, .db-act { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: 62%; max-width: 22px; border-radius: 5px 5px 2px 2px; }
.db-v small { font-weight: 600; color: var(--ink-3); margin-left: 1px; }
.db-gap.rest { color: #2f5d86; font-weight: 800; }
.db-col.today .db-x { color: var(--accent); font-weight: 800; }
.lg-rest { display: inline-block; width: 12px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(79, 126, 168, .45) 0 2px, transparent 2px 4px); }
/* 停收（U-464）：我方主动暂停收购、当天没收粮。和雨休（蓝斜纹）区分：暖灰底 + 灰字标签 */
.db-col.stop .db-track { background: rgba(48, 32, 20, .06); border-radius: 8px; }
.db-stop { font-size: 10.5px; font-weight: 800; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-2); padding: 0 4px; border-radius: 6px; white-space: nowrap; }
.db-gap.stop { color: var(--ink-2); font-weight: 800; }
.lg-stop { display: inline-block; width: 12px; height: 10px; border-radius: 3px; background: rgba(48, 32, 20, .14); }
@media (max-width: 720px) { .db-col.old { display: none; } }  /* 手机上只看近 14 天 */
@media (max-width: 900px) { .db-stop { font-size: 0; padding: 0 2px; border: 0; background: transparent; } .db-stop::after { content: '停'; font-size: 10px; } }
.wx-t { display: inline-block; font-size: 12px; font-weight: 800; padding: 0 6px; border-radius: 6px; background: rgba(79, 126, 168, .15); color: #2f5d86; }
.wx-t.snow { background: rgba(92, 102, 112, .16); color: #434d57; }
@media (max-width: 900px) { .db-fz { gap: 3px; } .db-sep span { font-size: 10px; } .db-tags { top: 2px; } }
/* 运力计划（10-19，U-184）：5 天天气与雨休；表里的出车数、趟次 */
.cp-wx { margin-bottom: 14px; }
.cpw-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 16px 14px; }
.cpw { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid transparent; min-width: 0; }
.cpw.wet { border-color: rgba(79, 126, 168, .35); }
.cpw.rest { background: repeating-linear-gradient(135deg, rgba(79, 126, 168, .12) 0 6px, transparent 6px 13px), var(--panel-2); border-color: rgba(79, 126, 168, .45); }
.cpw-d b { font-size: 14px; }
.cpw-w, .cpw-r, .cpw-n { font-size: 12.5px; min-height: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cpw-a { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.cap-rest { display: inline-block; font-size: 12px; font-weight: 800; color: #2f5d86; background: rgba(79, 126, 168, .15); border: 1px solid rgba(79, 126, 168, .4); padding: 0 6px; border-radius: 6px; white-space: nowrap; }
.t.cap td.cap-c.rest { background: repeating-linear-gradient(135deg, rgba(79, 126, 168, .1) 0 5px, transparent 5px 11px); }
.t.cap .cap-m { width: auto; min-width: 104px; }
@media (max-width: 900px) { .cpw-g { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px 12px; } }
.fc-k small em.fc-w { font-style: normal; font-weight: 800; color: var(--warn); }
.fc-k small em.fc-w.bad { color: var(--down); }
i.db-wx.wx-lg { font-style: normal; }
table.t.cap { width: 100%; }
.t.cap td.tname .pill { margin-left: 4px; }
.t.cap th { white-space: normal; line-height: 1.3; }
.t.cap td.n .note { white-space: nowrap; }
@media (max-width: 900px) {
  .db-rest { font-size: 0; padding: 0 2px; border: 0; background: transparent; }
  .db-rest::after { content: '休'; font-size: 10px; }
  .db-wx { font-size: 10px; padding: 0 2px; }
}
/* 运力计划「剩余未发运」（10-19，U-186）：采购订单可改塔上剩余 */
.t.cap .cap-rin { width: 84px; text-align: right; }
.t.cap td.cap-rem { width: 150px; white-space: normal; }
.t.cap td.cap-rem .note { white-space: normal; }
.t.cap td.acts { white-space: normal; width: 1%; }
.t.cap td.acts .btn { margin: 2px 0; }
.t.cap td.cap-rem [data-fin] { margin-top: 2px; font-size: 12px; }
/* 经营看板顶部：未来 7 天天气窄条（10-19） */
.wx7 { display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)); align-items: center; gap: 6px; padding: 7px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 12.5px; }
.wx7:hover { border-color: var(--line-2); }
.wx7-h { font-weight: 800; color: var(--ink-2); padding-right: 6px; white-space: nowrap; }
.wx7-d { display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 3px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; }
.wx7-d b { font-size: 12.5px; }
.wx7-d small { font-size: 11px; color: var(--ink-3); }
.wx7-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); display: inline-flex; align-items: baseline; gap: 4px; }
.wx7-d.wet { background: rgba(79, 126, 168, .09); }
.wx7-d.rest { background: repeating-linear-gradient(135deg, rgba(79, 126, 168, .14) 0 5px, transparent 5px 11px); }
.wx7-d .db-wx { font-style: normal; }
.wx7-d em.db-rest { font-style: normal; margin-left: auto; }
@media (max-width: 900px) {
  .wx7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 6px 6px; }
  .wx7-h { display: none; }
  .wx7-d { flex-direction: column; align-items: center; gap: 1px; padding: 3px 1px; }
  .wx7-d small { display: none; }
  .wx7-t { font-size: 11px; flex-direction: column; align-items: center; gap: 1px; }
  .wx7-d em.db-rest { margin: 0; font-size: 0; padding: 0 2px; }
  .wx7-d em.db-rest::after { content: '休'; font-size: 10px; }
}
/* 人员 · 角色（10-19，U-188）：主角色 + 兼任 */
.ro-x { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 4px; }
.ro-c { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; white-space: nowrap; }
/* 重复凭据弹框（10-19，U-189） */
.dup-w { position: fixed; inset: 0; z-index: 90; background: rgba(28, 20, 14, .38); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dup-box { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg); border-radius: 16px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(28, 20, 14, .28); }
.dup-box h3 { margin: 0 0 4px; font-size: 17px; }
.dup-it { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); }
.dup-r { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 13.5px; }
.dup-r > span:first-child { flex: 1 1 260px; min-width: 0; }
.dup-act { margin-top: 14px; }
.dup-act { justify-content: flex-end; }
/* 入库页认领、核对（10-19，U-192）：推荐的塔一键填上 */
.tk-hints { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 4px; }
.tk-hints .btn { height: auto; min-height: 30px; padding: 4px 10px; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.35; white-space: normal; text-align: left; }
.tk-hints .btn .note { font-weight: 500; font-size: 12px; }
.tk-hints .btn.on { border-color: var(--accent); background: var(--accent-soft); }
.tk-act { margin-top: 4px; }
td.tname .btn { margin-left: 4px; vertical-align: middle; }
/* 网银回单识别结果（10-19，U-191） */
.vr-box { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); font-size: 13px; display: grid; gap: 3px; }
.vr-r .num { font-variant-numeric: tabular-nums; }
/* 登记发货（10-19，U-194）：一车一张卡，左边过磅单照片，右边要填的 */
.sp-r { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 14px; padding: 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.sp-l img { width: 100%; border-radius: 8px; display: block; border: 1px solid var(--line); }
.sp-np { height: 120px; border: 1px dashed var(--line-2); border-radius: 8px; display: grid; place-content: center; text-align: center; color: var(--ink-3); }
.sp-h { display: flex; align-items: center; margin-bottom: 6px; }
.sp-hint { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sp-hint .btn { height: auto; min-height: 30px; padding: 4px 10px; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.35; white-space: normal; text-align: left; }
.sp-hint .btn .note { font-weight: 500; font-size: 12px; }
.sp-hint .btn.on { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 720px) { .sp-r { grid-template-columns: minmax(0, 1fr); } .sp-l img { max-height: 220px; object-fit: contain; } }
/* 过磅单核对定位（10-19，U-197）：有照片的行左边原图大一些，点哪格放大到哪 */
.sp-r.ph { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sp-r .inp.sp-at { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* 识别过的原件和表单并排（10-19，U-200）：左边原件（点表单哪格放大到哪），右边表单；没有原件时只有表单 */
.ocp.has { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; align-items: start; }
.ocp.has > .ocp-l { position: sticky; top: 8px; }
.ocp:not(.has) > .ocp-l { display: none; }
.vr-g { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; align-items: start; }
.vr-g + .vr-g { margin-top: 6px; }
.vr-r .lk { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
@media (max-width: 720px) { .ocp.has { grid-template-columns: minmax(0, 1fr); } .ocp.has > .ocp-l { position: static; } }

/* 当天入库卡片的辅助数（U-204） */
.kp-fl { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.kp-fl b { color: var(--ink-1); font-weight: 600; }
.kp-fl .warn b { color: var(--warn, #b7791f); }
.kp-fl .bad b { color: var(--down, #b3412e); }
.hm-num .kp-fl { margin-top: 8px; }
.hm-num .kp-fl b { font-size: 12px; font-weight: 600; line-height: inherit; letter-spacing: 0; }

/* 发票 · 按供应商（U-205）：合计行 */
.iv-sup .iv-tot td { background: var(--panel-2); font-weight: 600; }
.iv-sup td .note { font-weight: 400; }

/* 订单流程节点图（U-211）：已过打勾、有车在等实心（该我做的橙色可点）、没到的虚线 */
.od-go { flex: none; margin-left: auto; }
.od-nodes { flex: 0 1 auto; margin-left: auto; display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 2px 0; }
.od-n { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; padding: 2px 2px; background: none; border: 0; font: inherit; color: var(--ink-3); cursor: default; position: relative; }
.od-n i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 800; border: 1.5px dashed var(--line-2); background: var(--bg); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.od-n span { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.od-n small { font-size: 10.5px; color: var(--ink-3); }
.od-n em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--down); }
.od-n.s-done i { border: 1.5px solid var(--teal); background: rgba(46, 107, 99, .1); color: var(--teal); }
.od-n.s-done span { color: var(--ink-2); }
.od-n.s-on i { border: 1.5px solid var(--ink-2); background: var(--ink-1); color: var(--bg); }
.od-n.s-on span { color: var(--ink-1); font-weight: 800; }
.od-n.mine i { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 0 3px rgba(196, 86, 31, .18); }
.od-n.mine span { color: var(--accent); font-weight: 800; }
button.od-n { cursor: pointer; }
button.od-n:hover span { text-decoration: underline; }
button.od-n:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.od-ln { flex: none; width: 14px; height: 0; border-top: 1.5px solid var(--teal); margin-top: 15px; }
.od-ln.s-todo { border-top: 1.5px dashed var(--line-2); }
@media (max-width: 900px) { .od-nodes, .od-go { margin-left: 0; width: 100%; } .od-n { min-width: 46px; } }

/* 登记发货：过磅付款的「已核对」（U-212） */
.sp-ck { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(154, 101, 18, .08); font-size: 13px; font-weight: 600; }

/* 各库入库、出库、库存（U-214） */
.wh-io .wh-io-b td { color: var(--ink-2); font-size: 13px; }
.wh-io .iv-tot td { background: var(--panel-2); font-weight: 600; }

/* ── 通知中心（10-20，U-219）：领导通知、催办、超时提醒；未读左侧橙条 + 圆点，已处理 / 已作废变灰 ── */
.msgs { overflow: hidden; }
.ib-qbar { margin: 10px 0; }  /* 通知中心搜索（U-639） */
.ib-qbar .inp { width: 440px; max-width: 100%; }
.msg { padding: 13px 16px; border-top: 1px solid var(--line); }
.msg:first-child { border-top: 0; }
.msg.unread { box-shadow: inset 3px 0 0 var(--accent); background: rgba(196, 86, 31, .035); }
.msg.voided .msg-t { text-decoration: line-through; color: var(--ink-3); }
.msg-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.msg-t { font-size: 14.5px; font-weight: 800; color: var(--ink-1); min-width: 0; overflow-wrap: anywhere; }
.msg-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.msg-time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.msg-b { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.msg-a { margin-left: auto; display: flex; gap: 8px; }
.bad-t { color: var(--down); }
.rail a .nb.nb-msg:not(:empty) { background: var(--accent); color: var(--on-accent); }
.ck-l { display: flex; align-items: center; gap: 8px; padding: 7px 2px; font-size: 14px; cursor: pointer; }
.ck-l[hidden] { display: none; }
.nc-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
/* 催办按钮：订单进度里卡在别人手里的那一步、各环节待办每一行 */
.od-urge { margin-left: 4px; padding: 0 7px; height: 20px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); color: var(--accent); font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.od-urge:hover { border-color: var(--accent); }
.hm-lw { display: flex; align-items: center; border-top: 1px solid var(--line); }
.hm-lw .hm-li { flex: 1; min-width: 0; border-top: 0; }
.hm-lh + .hm-lw { border-top: 0; }
.hm-lw .hm-urge { flex: none; width: 56px; margin-right: 12px; }
.hm-list:has(.hm-urge) .hm-lh { padding-right: 84px; }
.drawer .lbl, #ib-body .lbl, label.lbl { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink-1); margin-bottom: 6px; }
.dash-past { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; margin-bottom: 14px; border-color: rgba(196, 86, 31, .35); background: var(--accent-soft); }
.dash-past .btn { margin-left: auto; }
.tel-l { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.tel-l:hover { color: var(--accent); border-color: var(--accent); }

/* ── 看板（10-20 用户反馈）：资金卡两栏更矮；库存卡每个库位一个圆柱（水位 = 库存 / 容量）；今日柱子两行标注 ── */
.mn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px; }
.mn-grid.one { grid-template-columns: minmax(0, 1fr); }
.mn-l { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mn-r { min-width: 0; border-left: 1px solid var(--line); padding-left: 18px; }
.mn-r .mn-c { margin-top: 0; padding-top: 0; border-top: 0; }
.mn-r .mn-svg { height: 78px; }
.mn-r .dc-sh { font-size: 12px; line-height: 1.5; }
.mn-r .db-lg { font-size: 11.5px; gap: 4px 10px; margin-top: 6px; }
.dc-money > .mn-p { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dc-money > .mn-p .seglg { gap: 4px 12px; }
.dc-money .donut { width: 104px; height: 104px; }
.dc-money .dn-c b { font-size: 17px; }
.dc-money .mn-row { gap: 12px; flex-wrap: nowrap; }

@media (max-width: 720px) {
  .mn-grid { grid-template-columns: minmax(0, 1fr); }
  .mn-r { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}
.sk-cy { margin-top: 2px; }
.cyls { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px 4px; }
.cyl { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; cursor: default; }
.cyl svg { width: 30px; height: 48px; overflow: visible; }
.cy-in { fill: var(--panel-2); }
.cy-wall { fill: none; stroke: rgba(48, 32, 20, .28); stroke-width: 1.3; }
.cy-top { fill: rgba(255, 253, 249, .55); stroke: rgba(48, 32, 20, .28); stroke-width: 1.3; }
.cy-l { display: flex; align-items: baseline; gap: 3px; margin-top: 2px; line-height: 1.2; }
.cyl b { font-size: 11.5px; font-weight: 800; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.cy-n { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.cyl small { font-size: 10px; color: var(--ink-3); white-space: nowrap; line-height: 1.2; }
.db-v.two { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.db-v.two small { margin: 0; font-size: 9.5px; color: var(--accent); }
.tw-rel { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.tw-rel:hover .dc-sh { color: var(--accent); }

/* 处置详情（10-20，U-227）：化验数据格子（超标标红）、照片缩略图、电话、车辆信息、处理记录 */
.cs-lab { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 4px 0 6px; }
.cs-lab > div { border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; background: var(--panel-2); }
.cs-lab span { display: block; font-size: 12px; color: var(--ink-3); }
.cs-lab b { font-size: 16px; font-weight: 800; }
.cs-lab small { margin-left: 2px; font-size: 11.5px; color: var(--ink-3); }
.cs-lab .bad { background: var(--down-soft); border-color: rgba(184, 64, 47, .35); }
.cs-lab .bad b, .cs-lab .bad span { color: var(--down); }
.cs-lab .warn { background: rgba(154, 101, 18, .1); border-color: rgba(154, 101, 18, .35); }
.cs-lab .warn b, .cs-lab .warn span { color: var(--warn); }
.cs-why { margin-bottom: 8px; }
.cs-ph { display: flex; gap: 8px; overflow-x: auto; margin: 6px 0 4px; }
.cs-ph a { flex: none; width: 112px; text-decoration: none; color: var(--ink-3); font-size: 12px; text-align: center; }
.cs-ph img { display: block; width: 112px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 3px; }
.cs-tels { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cs-tel { display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
.cs-tel + .cs-tel { border-top: 1px solid var(--line); }
.cs-tel .cs-who { font-size: 12px; color: var(--ink-3); min-width: 64px; }
.cs-tel .num { flex: 1; min-width: 110px; color: var(--ink-2); }
.cs-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13px; }
.cs-kv span { color: var(--ink-3); margin-right: 6px; }
.cs-kv b { font-weight: 700; overflow-wrap: anywhere; }
.cs-done { margin-bottom: 4px; }
.cs-ev > div { display: grid; grid-template-columns: 88px 64px minmax(0, 1fr); gap: 8px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.iss-h .cs-go { margin-left: 8px; }
button.cs-pick { display: block; width: 100%; text-align: left; }
@media (max-width: 720px) {
  .cs-kv { grid-template-columns: minmax(0, 1fr); }
  .cs-tel .btn { height: 36px; }
}
.ap-sum { font-size: 13px; color: var(--ink-2); margin: 4px 0 2px; } .ap-sum b { font-weight: 800; }

/* 结算时核对货主（10-20）：移除 / 非该货主 */
.dl-pick label { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12.5px; }
.dl-own { margin: 4px 0 8px; }

/* 入库列表（10-20）：超标的数值直接标色，不另设「提醒」列；订单并到货主下面 */
.tk-v { display: inline-block; padding: 1px 7px; border-radius: 6px; font-weight: 700; cursor: help; }
.tk-v.warn { background: rgba(154, 101, 18, .14); color: #9a6512; }
.tk-v.bad { background: var(--down-soft, rgba(184, 64, 47, .10)); color: var(--down, #b8402f); }
.tk-ord { margin-top: 3px; font-size: 13px; }
.tk-ord .note { display: inline; margin-left: 4px; }

/* 入库列表两个净重 + 磅差（10-20）：单位放表头第二行，状态格里的标签放不下就换行，1440 宽不出横向滚动条 */
table.t th.tk-h2 small { display: block; font-weight: 600; color: var(--ink-3, #8a7f72); font-size: 11.5px; }
table.t td.tk-st { white-space: normal; min-width: 132px; max-width: 176px; }
table.t td.tk-st .pill { margin-bottom: 3px; }
/* 收款及开票（10-20 用户截图「这个太宽了，把页面撑开了」）：网格列宽不跟内容走；账户表里户名、开户行、长备注换行，不再把整块撑出抽屉 */
.payee-box { grid-template-columns: minmax(0, 1fr); }
.payee-box > * { min-width: 0; }
table.acct td:not(.acts) { white-space: normal; overflow-wrap: anywhere; }
table.t.acct { width: 100%; }
/* 生成前预览（10-20）：合同照生成后的样子排在抽屉里 */
.ct-pv { display: block; width: 100%; height: 72vh; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: #efe9df; }
.dl-pv-img { display: block; width: 100%; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; }
/* 新增合同面板里「增加锁价锁量附加协议」高亮（10-20） */
.nc-supp { margin-top: 12px; padding: 12px 14px; border: 1.5px solid var(--accent, #c4561f); border-radius: 12px; background: var(--accent-soft, rgba(196, 86, 31, .08)); }
.nc-supp-h { font-size: 15px; font-weight: 800; color: var(--accent, #c4561f); }
.nc-supp:not(.on) { border-style: dashed; }
/* 新增合同（10-20 晚，U-258）：左边填、右边预览，填齐自动出预览 */
.nc-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.nc-pane { position: sticky; top: 0; min-height: 220px; transition: opacity .15s; }
.nc-pane.busy { opacity: .55; }
.nc-pane .ct-pv { height: calc(100vh - 180px); margin-top: 8px; }
.nc-empty { padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--panel-2); color: var(--ink-2); line-height: 1.7; }
.nc-lack { margin-top: 10px; color: var(--ink-1); }
.nc-lack .lbl { margin-bottom: 2px; }
.nc-ph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nc-ph .chips { margin: 0; flex: 1; }
@media (max-width: 900px) {
  .nc-wrap { grid-template-columns: minmax(0, 1fr); }
  .nc-pane { position: static; }
  .nc-pane .ct-pv { height: 72vh; }
}
/* 选塔的模糊搜索框（U-260） */
.cbx { position: relative; }
.cbx-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; max-height: 340px; overflow: auto; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; }
.cbx-o { padding: 8px 10px; border-radius: 8px; cursor: pointer; line-height: 1.45; }
.cbx-o.on, .cbx-o:hover { background: var(--panel-2); }
.cbx-none { padding: 10px 12px; color: var(--ink-3); }
/* 资质档案顶上的签约主体切换（U-259） */
.dz-pty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dz-pty .chips { margin: 0; }
/* 塔主台账详情：签约主体（U-264） */
.pty-box { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.pty-box .pb-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pty-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pty-row > div { flex: 1; min-width: 0; }
.pty-row.click { cursor: pointer; }
.pty-row.click:hover b { color: var(--accent); }
/* 合同页：一张卡片四个标签（U-268） */
.ct-card { overflow: visible; }
.ct-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.ct-head .seg button b { margin-left: 6px; font-size: 12px; opacity: .65; }
.ct-head .seg button.on b { opacity: .8; }
.ct-head #ct-q { flex: 1; min-width: 200px; max-width: 420px; }
.ct-sub { padding: 10px 16px 0; margin: 0 0 4px; }
.ct-sub[hidden] { display: none; }
@media (max-width: 720px) { .ct-head .seg { width: 100%; overflow-x: auto; scrollbar-width: none; } .ct-head .seg button { flex: none; white-space: nowrap; } .ct-head #ct-q { max-width: none; } }
/* 新增合同：塔的搜索框右边「未签主合同」快速选（U-268） */
.nc-twrow { position: relative; display: flex; gap: 8px; align-items: flex-start; }
.nc-twrow #nc-tw { flex: 1; min-width: 0; }
.nc-twrow #nc-todo { flex: none; height: 38px; white-space: nowrap; }
.nc-twrow #nc-todo b { margin-left: 6px; color: var(--accent); }
.nc-todol { top: calc(100% + 4px); left: auto; right: 0; width: min(420px, 100%); }

/* 付款台账（U-267）：筛选条 · 五个汇总数 · 按供应商就地展开 · 付款流水 · 一笔付款的全链条 */
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.pl-bar #pl-q { flex: 1 1 320px; min-width: 0; max-width: 520px; }
.pl-dates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-dates .inp[type=date] { width: 148px; }
.pl-dl { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pl-quick { margin: 0 0 0 4px; }
.pl-quick button { height: 30px; }
.pl-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 8px; }
.pl-tiles .tile .v small { font-family: var(--sans); }
.pl-ts { margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.tile.hl .pl-ts { color: var(--rail-dim); }
.tile.pl-warn .v { color: var(--warn); }
.pl-note { min-height: 18px; margin: 0 2px 10px; }
.pl-cnt { margin-left: auto; align-self: center; }
.pl-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 4px; align-self: center; }
.pl-due { color: var(--warn); font-weight: 800; }
.pl-skel { height: 44px; margin: 8px 14px; border-radius: 10px; background: linear-gradient(90deg, var(--panel-2) 25%, var(--bg) 50%, var(--panel-2) 75%); background-size: 200% 100%; animation: plsk 1.2s ease-in-out infinite; }
@keyframes plsk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .pl-skel { animation: none; } }
th.sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.sort:hover { color: var(--ink-1); }
th.sort.on { color: var(--ink-1); }
.pl-t .pl-ar { width: 28px; padding-right: 0; color: var(--ink-3); }
.pl-t .pl-ar svg { transition: transform .18s var(--ease); display: block; }
.pl-t tr.pl-r.on .pl-ar svg { transform: rotate(90deg); color: var(--accent); }
.pl-t tr.pl-r.on > td { background: var(--accent-soft); }
.pl-t tr.pl-r:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pl-t tfoot td { font-weight: 800; border-top: 1.5px solid var(--line-2); background: var(--panel-2); }
.pl-t .n, .pl-ft .n, .pl-st .n { font-variant-numeric: tabular-nums; }
.pl-x > td { padding: 0 !important; background: var(--panel-2); }
.pl-sub { padding: 10px 14px 14px 42px; }
.pl-st { background: var(--bg); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.pl-st th { font-size: 12px; }
.pl-pays { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-pay { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); font-size: 12.5px; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s; }
.pl-pay:hover { border-color: var(--accent); }
.pl-pay:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pl-pay b { font-size: 13px; }
.pl-pay.paid { background: var(--up-soft); border-color: transparent; }
.pl-pay.live { background: rgba(154, 101, 18, .08); border-color: rgba(154, 101, 18, .35); }
.pl-pay.rf { background: var(--down-soft); border-color: transparent; }
.pl-pay.cur { background: var(--ink-1); color: var(--bg); border-color: transparent; }
.pl-pay.cur .note { color: var(--bg); opacity: .75; }
.pl-adv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pc { display: flex; flex-direction: column; gap: 12px; }
.pc-sec { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); }
.pc-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pc-h b { font-size: 14.5px; }
.pc-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 800 12px var(--mono); }
.pc-b { padding: 10px 14px 12px; }
.pc-kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13.5px; }
.pc-kv dt { color: var(--ink-3); font-weight: 700; }
.pc-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pc-lab { margin: 12px 0 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.pc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px dashed var(--line); }
.pc-row:first-child { border-top: 0; }
.pc-docs { white-space: nowrap; }
.pc-docs span { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11.5px; color: var(--ink-3); background: var(--panel-2); text-decoration: line-through; }
.pc-docs span.y { color: var(--up); background: var(--up-soft); text-decoration: none; font-weight: 700; }
@media (max-width: 900px) { .pl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-tiles .tile.hl { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  .pl-bar #pl-q { flex-basis: 100%; max-width: none; }
  .pl-dates .inp[type=date] { width: 132px; }
  .pl-sub { padding: 8px 6px 12px; }
  .pc-kv { grid-template-columns: 76px minmax(0, 1fr); }
}
/* 付款台账：列宽固定，展开的明细不撑宽外表；展开箭头（U-267 截图审） */
@media (min-width: 721px) {
  table.t.pl-t { table-layout: fixed; width: 100%; min-width: 0; }  /* table.t 默认 max-content，这里要压过它 */
  .pl-t col.c-ar { width: 34px; } .pl-t col.c-n { width: 72px; } .pl-t col.c-t { width: 104px; } .pl-t col.c-m { width: 128px; } .pl-t col.c-d { width: 84px; }
  .pl-t td.tname { overflow-wrap: anywhere; }
}
.pl-t .pl-ar svg { overflow: visible; margin-left: 2px; }
.pl-sub { overflow-x: auto; }
table.t.pl-st { width: 100%; min-width: 0; }  /* 同上，压过 table.t 的 max-content，付款块在格子里折行 */
.pl-st td.pl-pc { min-width: 220px; } .pl-st td.pl-no .pill { display: block; width: fit-content; margin-top: 4px; } .pl-pay { white-space: nowrap; }
@media (max-width: 720px) {
  .pl-t .pl-ar { display: none !important; }
  .pl-x > td { display: block; }
  .pl-sub { padding: 6px 0 10px; }
}

/* 二级标签（U-270）：挂在上一行选中项下面的托盘，尖角对准父项；按钮是文字，选中是橙色下划线，和一级的深色胶囊区分开 */
.subtabs { --sub-bg: #ebe4da; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; width: fit-content; max-width: 100%; min-width: calc(var(--nx, 0px) + 24px); margin: 0 0 14px; padding: 2px 6px; border-radius: 10px; background: var(--sub-bg); border: 1px solid rgba(48, 32, 20, .08); }
.subtabs::before { content: ''; position: absolute; top: -6px; left: var(--nx, 20px); width: 10px; height: 10px; margin-left: -6px; background: var(--sub-bg); border-left: 1px solid rgba(48, 32, 20, .08); border-top: 1px solid rgba(48, 32, 20, .08); border-radius: 2px 0 0 0; transform: rotate(45deg); }
.subtabs:not(.nx)::before { display: none; }
.subtabs:empty, .subtabs[hidden] { display: none; }
.subtabs button { position: relative; height: 32px; padding: 0 10px; border-radius: 7px; background: none; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: color .15s; }
.subtabs button:hover:not(.on) { color: var(--ink-1); }
.subtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.subtabs button b { margin-left: 4px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.subtabs button.on { color: var(--ink-1); font-weight: 800; }
.subtabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.subtabs button.on b { color: var(--accent); }
.subtabs button.late:not(.on), .subtabs button.late:not(.on) b { color: var(--down); }
.chips.has-sub { margin-bottom: 9px; }
.subrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.subrow > .subtabs { margin: 0; }
.subrow > .push { margin-left: auto; }
.ct-card .subtabs { margin: 12px 16px 6px; }
@media (max-width: 720px) {
  .subtabs { width: 100%; padding: 2px 4px; }
  .subtabs button { height: 38px; padding: 0 8px; font-size: 14px; }
  .subtabs button.on::after { left: 8px; right: 8px; }
  .subtabs button.on::after { bottom: 5px; }
  .ct-card .subtabs { width: auto; margin: 12px 12px 6px; }
}

/* 结算确认单工作台（U-272）：左边设置、右边实时预览；一张单从生成到付款都在这一个抽屉 */
.drawer.wide.xw.dwx { width: min(1280px, 98vw); }
.dw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 22px; align-items: start; }
.dw-l { min-width: 0; transition: opacity .15s; }
.dw-l.busy .dw-tot { opacity: .6; }
.dw-r { position: sticky; top: 0; }
.dw-pvh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dw-pvb { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); padding: 10px; max-height: calc(100vh - 150px); overflow: auto; }
.dw-pv { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); cursor: zoom-in; }
.dw-steps { display: flex; gap: 0; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: dw; }
.dw-steps li { flex: 1; position: relative; padding: 22px 4px 0; font-size: 12px; color: var(--ink-3); text-align: center; counter-increment: dw; }
.dw-steps li::before { content: counter(dw); position: absolute; top: 0; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--panel-2); border: 1.5px solid var(--line-2); font-size: 11px; line-height: 15px; font-weight: 700; color: var(--ink-3); z-index: 1; }
.dw-steps li::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 1.5px; background: var(--line-2); }
.dw-steps li:first-child::after { display: none; }
.dw-steps li.done { color: var(--ink-2); }
.dw-steps li.done::before { content: '✓'; background: var(--up); border-color: var(--up); color: var(--on-accent); }
.dw-steps li.done::after, .dw-steps li.on::after { background: var(--up); }
.dw-steps li.on { color: var(--ink-1); font-weight: 800; }
.dw-steps li.on::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dw-sec { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.dw-sec.tdo-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dw-sec > h4 { margin: 0 0 8px; font-size: 14px; }
.dw-sec > h4 .note { font-weight: 400; margin-left: 6px; }
.dw-accb { margin-top: 6px; }
.dw-ln { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dw-ln:last-child { border-bottom: 0; }
.dw-ln select[data-k] { width: 96px; }
.dw-ln select[data-t] { width: 116px; }
.dw-ln .dw-lt { flex: 1 1 240px; min-width: 0; }
.dw-ln .dw-am input { width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.dw-ln .dw-pm input { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.dw-ln .u { margin-left: 3px; font-size: 12px; color: var(--ink-3); }
.dw-cl { flex-basis: 100%; font-size: 12px; color: var(--ink-3); padding-left: 2px; }
.dw-tot { background: var(--panel-2); }
.dw-tot b.num { font-size: 15px; }
.dw-act { position: sticky; bottom: -16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px -4px 0; padding: 12px 4px; background: var(--bg); border-top: 1px solid var(--line); }
.dw-act .btn-main:disabled { opacity: .45; cursor: not-allowed; }
.vform.ro > div { padding-top: 6px; }
.pc-bar { margin-top: 10px; }
@media (max-width: 900px) {
  .dw { grid-template-columns: minmax(0, 1fr); }
  .dw-r { position: static; order: -1; }
  .dw-pvb { max-height: 60vh; }
  .dw-steps li { font-size: 11px; }
  .dw-ln select[data-k], .dw-ln select[data-t] { flex: 1 1 40%; width: auto; }
  .dw-ln .dw-lt { flex-basis: 100%; }
}
@media (max-width: 720px) {
  .dw-act { flex-wrap: nowrap; gap: 6px; bottom: calc(-40px - env(safe-area-inset-bottom)); }
  .dw-act .grow { display: none; }
  .dw-act .btn { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 8px; font-size: 13.5px; white-space: nowrap; }
}
/* 面板是 grid：里面的表格默认不肯缩，会把抽屉横向撑开（10-21 发票「修改对应」溢出）；让内容可缩，表格在自己的 .tw 里横向滚动 */
.o-panel > * { min-width: 0; }
.iv-lt td:nth-child(2) .note { display: block; }

/* 库位按日：点那一天就地展开当天每一车（U-274 同期，10-21） */
table.sk-days tr.sk-dx > td { padding: 0 0 10px; background: var(--panel-2); }
table.sk-days tr.sk-dx:hover > td { background: var(--panel-2); }
.sk-dd { padding: 8px 10px 0; }
.sk-dd table.t { background: var(--bg); border-radius: 10px; }
table.sk-days .sk-tg { white-space: nowrap; color: var(--accent); }

/* 合同 · 纸质档案（10-21 用户：「编号/标题的内容精简并自动换行。保证正常全屏下不要横向滚动条」）：标题栏吃掉剩余宽度、自动换行，备注最多两行，点一下展开 */
table.t.cf-t { width: 100%; }
table.t.cf-t td.cf-n { white-space: normal; overflow-wrap: anywhere; width: 100%; min-width: 14em; line-height: 1.5; }
table.t.cf-t td.cf-k { white-space: nowrap; line-height: 1.6; }
/* 塔名列（10-26 用户：「塔的宽度太小导致撑高了表格」）：编号 / 标题列占满剩余宽度时把塔名挤成一字一行，给塔名留出俗称一行、公司名最多两行的宽度 */
table.t.cf-t td.tname { min-width: 14em; line-height: 1.5; }
table.t.cf-t td.cf-k .pill { margin-top: 2px; }
table.t.cf-t .cf-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; cursor: pointer; margin-top: 2px; }
table.t.cf-t .cf-note.open { display: block; -webkit-line-clamp: unset; }

/* 电脑端表格一律不横向滚动（10-21 用户：「pc 端所有页面，都应该保证全屏下横向不出现滚动条」）：
   表格按容器宽排，文字列自动换行（中文按字折，长编号必要时折）；数字、日期、按钮、车牌不折；文字列至少约 4 个字宽，不会一字一行 */
@media (min-width: 901px) {
  table.t { width: 100%; min-width: 0; }
  table.t td { white-space: normal; overflow-wrap: break-word; min-width: 4.2em; }  /* 最少约 4 个字宽：短列最多折成两行，不会被挤成一字一行 */
  table.t td:has(> input[type="checkbox"]:only-child), table.t td.td-pick, table.t td.w-def, table.t td:empty { min-width: 0; }
  table.t th { white-space: normal; min-width: 3.4em; }  /* 表头太长时折成两行，两个字的不拆 */
  table.t td.n, table.t td.num { min-width: 0; }  /* 数字、日期按本身宽 */
  table.t td.n, table.t td.num, table.t td.acts, table.t td.nw, table.t td .num, table.t .plate-s, table.t .btn, table.t td .tlink { white-space: nowrap; }
  table.t .pill { white-space: nowrap; }
  table.t.cap td.tname { min-width: 8em; }  /* 运力计划：塔名列放得下「今日未确认」 */
  table.t td.wrap { min-width: 13em; }  /* 长文本列（塔名、备注）不再强占 300px */
  table.t td.n > div, table.t td.num > div, table.t td .note { white-space: normal; }  /* 数字下面带的说明照常换行 */
}
@media (min-width: 901px) and (max-width: 1500px) {
  table.t th, table.t td { padding-left: 7px; padding-right: 7px; }  /* 笔记本屏：列多的表收窄边距 */
  table.t.cap th, table.t.cap td { padding-left: 5px; padding-right: 5px; }  /* 运力计划列最多（5 天） */
}

/* 29 号超标粮专库（U-280）：单独一块，暖色底 + 「单独计算」；3 号仓待启用：浅灰 */
.ws-sp { display: grid; gap: 4px; width: 100%; margin-top: 14px; padding: 12px 14px; border-radius: 12px; text-align: left; background: rgba(154, 101, 18, .07); border: 1px solid rgba(154, 101, 18, .28); cursor: pointer; }
.ws-sp:hover { background: rgba(154, 101, 18, .11); }
.ws-sp .num { font-size: 15px; font-weight: 800; }
.ws-sp .bm { display: flex; flex-wrap: wrap; gap: 4px; }
.wl-w.wl-sp { border-color: rgba(154, 101, 18, .35); background: linear-gradient(rgba(154, 101, 18, .04), rgba(154, 101, 18, .04)), var(--bg); }
.wl-w.idle { opacity: .72; }
.wl-w .wl-h .pill { margin-left: 6px; }
table.wh-io tr.wh-idle td { color: var(--ink-3); }
table.wh-io tr.wh-sp td { background: rgba(154, 101, 18, .07); }
.sk-sp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(154, 101, 18, .07); border: 1px solid rgba(154, 101, 18, .25); color: inherit; text-decoration: none; font-size: 13px; }
.sk-sp .num { font-weight: 800; }
.sk-sp .bm { display: inline-flex; flex-wrap: wrap; gap: 4px; }
/* 入库与运力通栏、库存并进来（10-24 用户，U-460）：图下面一条分隔线，库存三栏：综合质量 · 各库位存量 · 29 号库；窄屏两栏、手机一栏 */
.tr-stk { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.tr-sg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, .9fr); gap: 18px; align-items: start; }
.tr-sg.no-sp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.tr-sg.no-cy { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.tr-sg.no-cy.no-sp { grid-template-columns: minmax(0, 1fr); }
.tr-sg > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.tr-q { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tr-q .sk-top { justify-content: flex-start; align-items: center; gap: 22px; }
.tr-q .sk-m { flex: none; }
/* 水分分档圆环（U-463）：放在综合水分右边；移到哪段颜色中间写哪一档和比例，其余几段变淡 */
.donut.sk-dn { width: 104px; height: 104px; }
.sk-dn .dn-c b { font-size: 17px; }
.sk-dn .dn-k, .sk-dn .dn-u { font-size: 10.5px; }
.donut.hv circle[data-dl] { cursor: pointer; transition: opacity .12s ease-out; }
.donut.hv circle.dim { opacity: .28; }
.donut.hv .dn-c { pointer-events: none; }  /* 中间的字盖在圆上，不挡鼠标 */
.tr-stk .cyls { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }  /* 各库位在中间一栏里铺满，宽屏不挤在左边 */
.tr-sp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tr-sp .sk-sp { margin-top: 0; }
@media (max-width: 1180px) {
  .tr-sg, .tr-sg.no-sp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tr-sg .tr-sp { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  .tr-sg, .tr-sg.no-sp, .tr-sg.no-cy { grid-template-columns: minmax(0, 1fr); }
  .tr-sg > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
}
.wl-n .wl-nt { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* 库存质量：正常库 / 29 号库两个标签，勾「同时显示 29 号库」（U-280） */
.wh-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; }
.wh-tabs .chips { margin: 0; }
.wh-spck { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.wh-spck input { width: 16px; height: 16px; accent-color: var(--accent); }
.wh-spck .note { font-weight: 500; }
.wh-spck[hidden] { display: none; }

/* 数据体检（U-286） */
.au-last { display: flex; align-items: center; gap: 8px 14px; padding: 10px 12px 10px 16px; margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.au-last > span { flex: 1; min-width: 0; text-wrap: pretty; }
.au-last .btn { flex: none; }
#au-st { margin: 16px 0 12px; }
/* 体检详情抽屉（10-22）：各条规则 / 历史体检；历史一行点开，就地列这次新查出、已改对关闭的问题 */
#au-dt { margin-bottom: 12px; }
.au-dn { margin: 0 0 10px; text-wrap: pretty; }
.au-rx > td { background: var(--panel-2); padding: 10px 12px 12px; }
.au-rxh { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 4px 0 6px; }
.au-rxh + .au-rxi, .au-rxi + .au-rxi { margin-top: 4px; }
.au-rxi { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 36px; padding: 7px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-2); text-align: left; font-size: 13px; }
.au-rxi:hover { border-color: var(--accent); }
.au-rxi > .note { flex: 1; min-width: 0; text-wrap: pretty; }
.au-rxi > .pill { flex: none; }
.au-rxi + .au-rxh { margin-top: 12px; }
.au-area td { background: var(--panel-2); padding-top: 10px; padding-bottom: 6px; }
.au-rv { white-space: pre-wrap; line-height: 1.7; padding: 14px 18px; font-size: 14px; }
.au-rvo { margin-top: 8px; padding: 10px 14px; }
.au-rvo summary { cursor: pointer; }

/* 请经理补录（10-22，U-307） */
.ask-box .toolbar { margin: 0; }
.scr-box, .corr-box, .ask-box { margin-top: 12px; }  /* 上方是表格或提示框时不贴住（U-638，相邻面板的边距会合并） */
.ask-r { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.ask-r > div { flex: 1; min-width: 0; text-wrap: pretty; }
.ask-r .pill { flex: none; margin-top: 1px; }

/* 更正（10-22，U-308） */
.corr-box .toolbar { margin: 0; }
.corr-acts { margin-top: 6px; }
.corr-in:empty { display: none; }
.corr-in { margin-top: 6px; }
.corr-t td:first-child { white-space: nowrap; }
.corr-t .inp { width: 100%; max-width: 220px; }
.corr-sim { margin: 12px 0 4px; }
.corr-sim .box > div + div { margin-top: 6px; }
.corr-ded { padding: 8px 10px; border-radius: 8px; background: var(--panel-2); }

/* 供应商资质：合作状态筛、新增供应商、档案里的塔基本信息（10-22，U-309） */
#dz-rel { margin: 4px 0 12px; }
.ns-sec { margin: 14px 0 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ns-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14.5px; }
.ns-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.ns-chk { background: var(--panel-2); }
.ns-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13.5px; border-top: 1px solid var(--line); }
.ns-row:first-child { border-top: 0; }
.ns-row b { flex: none; min-width: 7em; color: var(--ink-2); }
.ns-row > span:not(.ns-ic) { flex: 1; min-width: 0; text-wrap: pretty; }
.ns-ic { flex: none; width: 1.2em; text-align: center; font-weight: 800; }
.ns-row.ns-ok .ns-ic { color: var(--up); } .ns-row.ns-bad .ns-ic, .ns-row.ns-bad b { color: var(--down); } .ns-row.ns-info .ns-ic { color: var(--warn); }
.dz-t th { white-space: nowrap; }
.ns-row .btn { flex: none; }
.tb-box { margin-bottom: 16px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; }
.tb-box > .toolbar { margin: 0 0 10px; }
.tb-grid { display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px minmax(0, 1fr); gap: 8px 12px; align-items: start; font-size: 13.5px; }
.tb-grid > label { color: var(--ink-3); font-weight: 700; padding-top: 7px; }
.tb-grid .inp { width: 100%; }
.tb-grid .note { margin-top: 3px; font-size: 12px; }
@media (max-width: 900px) { .tb-grid { grid-template-columns: 92px minmax(0, 1fr); } }
.nc-sp { margin-top: 10px; }
.nc-sp > div + div { margin-top: 6px; }
.nc-sp .btn { margin-left: 6px; vertical-align: baseline; }
/* 后台修改一车、补录一车（U-314）：就在抽屉里改，不再新开录入页 */
.tf-g + .tf-g { margin-top: 2px; }
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.tf-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12.5px; color: var(--ink-3); }
.tf-f .inp { width: 100%; box-sizing: border-box; }
.tf-w { grid-column: 1 / -1; }
.tf-err:not(:empty) { margin-top: 12px; }
.tf-acts { margin-top: 14px; }
#tf-ai:not(:empty) { margin: 6px 0 8px; }
@media (max-width: 720px) { .tf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 塔的显示名：俗称（塔名），括号里的正式名称小一号、浅色（U-313，shared/tn.js） */
.tn-f { font-weight: 400; font-size: .9em; color: var(--ink-3); }

/* 电脑版切回手机版（U-318）：app 里或窄屏上右下角常驻，避开安全区；在抽屉之下 */
.to-m-fab { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; min-height: 44px; padding: 0 16px; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-1); font: inherit; font-weight: 700; box-shadow: 0 6px 18px rgba(48, 32, 20, .18); cursor: pointer; }
/* 修改车辆：单据照片四格（白单、塔方过磅单、粉单、绿单，U-320）；粉单照片待补勾选（U-319） */
.tf-ph { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tf-pc { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tf-pl { font-size: 12.5px; color: var(--ink-3); }
.tf-pv { height: 96px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tf-pv img { max-width: 100%; max-height: 96px; object-fit: contain; display: block; }
.tf-pv { position: relative; }  /* 照片右上角「删除」（U-611） */
.tf-del { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--down); background: rgba(255, 253, 249, .94); border: 1px solid rgba(184, 64, 47, .32); box-shadow: 0 1px 3px rgba(60, 38, 20, .12); cursor: pointer; }
.tf-del:hover { background: var(--down-soft); }
.tf-due { margin-top: 12px; }
.uq > div + div { margin-top: 4px; }
@media (max-width: 900px) { .tf-ph { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 结算付款「搜结算单」（U-321） */
.st-q { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.st-q .inp { flex: 1; max-width: 760px; min-height: 40px; }
.st-q .note { white-space: nowrap; }
/* 是不是重检（U-323）：前几次没过的车里选一条，单选 */
.rc-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.rc-o { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 12px; text-align: left; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.rc-o:hover { background: var(--panel-2); }
.rc-o .rc-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rc-o .rc-t { font-weight: 700; }
.rc-o .note { overflow-wrap: anywhere; }
.rc-o .rc-dot { flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-2); }
.rc-o.on { border-color: var(--accent); }
.rc-o.on .rc-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg); }
/* 补传回单（U-325）：已有的回单下面一个「拿掉」 */
.vr-cur { gap: 10px; }
.vr-one { display: inline-flex; flex-direction: column; gap: 4px; align-items: flex-start; }
/* 资金申请单「审批依据」（U-324）：对不上、缺回单、缺发票的行左边标红 */
.pc-basis { display: grid; gap: 8px; margin: 4px 0 10px; }
.pc-basis > div { padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border-left: 3px solid transparent; }
.pc-basis > div.bad { border-left-color: #b3261e; background: rgba(179, 38, 30, .06); }
.pc-basis b { margin-right: 6px; }
/* 代总经理签批：多张聊天截图缩略图（U-326） */
.wx-th { gap: 10px; align-items: flex-end; margin-top: 8px; }
.wx-one { position: relative; display: inline-flex; flex-direction: column; gap: 4px; }
.wx-one img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* 待出单搜索（U-329）：对上的车整行淡橙底、车号左边一道橙线 */
.st-q.pq { margin: 0 0 12px; }
.t tr.q-hit > td { background: var(--accent-soft); }
.t tr.q-hit > td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* 切换身份下拉框（U-331）：侧栏底部，深底浅字 */
.rail .sw-sel { display: block; margin: 10px 0 4px; }
.rail .sw-sel > span { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 800; color: rgba(168, 153, 138, .78); }
.rail .sw-sel select { width: 100%; height: 36px; padding: 0 30px 0 10px; border-radius: 9px; border: 1px solid rgba(255, 245, 230, .16); background: rgba(255, 245, 230, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23e9dfd2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; color: var(--rail-ink); font: inherit; font-size: 13.5px; font-weight: 700; appearance: none; -webkit-appearance: none; cursor: pointer; }
.rail .sw-sel select:hover { background-color: rgba(255, 245, 230, .1); }
.rail .sw-sel select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rail .sw-sel option { color: var(--ink-1); background: var(--bg); }
@media (max-width: 760px) { .rail .sw-sel select { height: 42px; } }

/* 入库：水分超过多少 % 筛选和合计（U-341）；表头一行不折（U-342，用户：「表头不要换行」），单位跟在名称后面 */
.tk-mo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tk-mo .inp { width: 78px; }  /* 水分范围两格（U-386） */
.tk-mo select.tk-mf { width: auto; min-width: 74px; padding-right: 22px; font-weight: 700; }  /* 筛选指标下拉（U-427） */
.tk-mo-sum { padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-press); font-size: 13px; white-space: nowrap; }
.tk-mo-sum b { color: var(--ink-1); }
#tkt table.t th { white-space: nowrap; }
#tkt table.t th.tk-h2 small { display: inline; margin-left: 3px; }
@media (max-width: 1440px) { #tkt table.t th, #tkt table.t td { padding-left: 6px; padding-right: 6px; } #tkt table.t th { font-size: 12.5px; } }
@media (max-width: 1366px) { #tkt table.t td:nth-child(4) { white-space: normal; min-width: 92px; } #tkt table.t td:nth-child(4) .pill { margin: 1px 0; white-space: normal; } }
@media (max-width: 1300px) { #tkt table.t th, #tkt table.t td { padding-left: 5px; padding-right: 5px; } #tkt table.t th { font-size: 12px; } }

/* 过磅付按批出单（U-344）：待出单卡片里每一批一行，一批车出发就出一张确认单 */
.pend-top { margin: 0 0 10px; gap: 10px; flex-wrap: wrap; }
.pend-bat { margin: 6px 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2, #f6f1ea); display: grid; gap: 6px; }
.pend-b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pend-b > span:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.dw-wk { margin: 6px 0 0; font-weight: 400; font-size: 12.5px; }
.tdo-top { margin: 0 0 8px; gap: 10px; flex-wrap: wrap; }

/* 发车登记二维码（U-351） */
.qr-dlg { max-width: 520px; }
.qr-dlg .qr-box { display: flex; justify-content: center; margin: 12px auto 6px; padding: 12px; background: var(--panel, #fffdf9); border: 1px solid var(--line); border-radius: 12px; width: fit-content; }
.qr-dlg .qr-box svg { width: 240px; height: 240px; display: block; }
.qr-dlg .dup-act { flex-wrap: wrap; gap: 8px; }
.qr-dlg .qr-card { margin: 10px 0 4px; text-align: center; }
.qr-dlg .qr-card img { width: 280px; border-radius: 10px; box-shadow: 0 6px 20px rgba(48, 32, 20, .16); }
/* 反馈与举报（U-353） */
.fb-item { margin-bottom: 12px; }
.fb-item > :not(.card-h) { margin-left: 16px; margin-right: 16px; }
.fb-item > :last-child { margin-bottom: 14px; }
.fb-item > .chips { margin-top: 12px; }
.fb-item .ph-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fb-item.fb-rep { border-left: 3px solid var(--down, #b8402f); }
.fb-txt { white-space: pre-wrap; margin: 8px 0; line-height: 1.6; }
.fb-item .ph-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
/* 补充协议排在主合同下面（U-382）：子行浅底 + 左侧一道橙线、编号前一个折角，主合同那行和下面的子行之间不画分隔线 */
table.t tr.ct-has > td { border-bottom-color: transparent; }
table.t tr.ct-sub > td { background: var(--panel-2); }
table.t tr.ct-sub > td:first-child { padding-left: 30px; position: relative; box-shadow: inset 3px 0 0 var(--accent); }
table.t tr.ct-sub .ct-tree { position: absolute; left: 13px; top: 9px; width: 10px; height: 10px; border-left: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); border-bottom-left-radius: 3px; }
.ct-rel { margin: 6px 0 2px; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.ct-rel .pill { vertical-align: 1px; }
/* 过磅付到库短重（U-391）：待办页顶上常驻一条 */
.td-short { margin: 0 0 12px; padding: 10px 14px; }
.td-short .tds-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.td-short .tw { margin-top: 10px; }
.td-short .note { margin: 8px 0 0; }
/* 带选项的按钮（U-392）：入库页「上传凭证识别」「补录一车」点开选单据 */
.mbtn { position: relative; display: inline-flex; }
.mbtn .mb-car { display: inline-block; width: 0; height: 0; margin-left: 8px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .75; }
.mbtn .mb-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 280px; padding: 6px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.mbtn .mb-menu[hidden] { display: none; }
.mbtn .mb-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink-1); font: inherit; cursor: pointer; white-space: normal; }
.mbtn .mb-menu button:hover, .mbtn .mb-menu button:focus-visible { background: var(--accent-soft); outline: none; }
.mbtn .mb-menu button b { font-size: 14px; }
.mbtn .mb-menu button .note { font-size: 12.5px; line-height: 1.45; }
.tk-acts { display: inline-flex; gap: 8px; flex-wrap: nowrap; }  /* 上传凭证识别、补录一车一起换行（U-392） */
.mbtn .mb-menu.mb-r { left: auto; right: 0; }  /* 右边放不下时靠右展开 */
.td-short .tds-lv { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dw-short { margin: 0 0 10px; font-size: 13.5px; }
.td-short td.tds-tw { min-width: 11em; }  /* 货主「俗称（塔名）」别挤成一字一行（U-395） */

/* 「我的」页：卡片之间留空，卡片里的说明和按钮有内边距（10-24 design-review，原来几张卡片挨着、说明贴着卡片左边） */
.ac-card { margin-bottom: 16px; }
.ac-b { padding: 14px 16px 16px; }
.ac-b .note { margin: 0 0 12px; line-height: 1.7; }
.ac-b .toolbar { padding: 0; }

/* ── 全站间距（10-24 全站间距审计，design-review）──
   表格里几个按钮紧挨着（发票「修改对应 / 作废」、甲方回款、运力计划、设置、塔和供应商资质抽屉「修改 / 删除」）：左右留 6px，换行时上下也留空 */
td .btn + .btn, td .btn + button.btn, td a.btn + .btn, td .btn + a.btn { margin-left: 6px; }
td .btn { margin-block: 3px; }
/* 抽屉、面板里表单下面那排按钮不贴着输入框（到库短重处置「原因」和「提交」原来挨着） */
:where(.drawer-b, .o-panel, .box, .card) :is(label, .tf-f, .form-grid, .vform, textarea, .inp, p, .note, .dz, .tw, table, .chips) + .toolbar { margin-top: 12px; }
/* 一行两个输入框（联系人姓名、电话） */
dd > .inp + .inp, td > .inp + .inp { margin-left: 8px; }

/* 侧栏「我的」：有要紧的更新说明没看，小红点（不写数字，U-406） */
.rail a.gnew .nb:empty { display: block; width: 8px; min-width: 8px; height: 8px; padding: 0; border-radius: 50%; background: #e0533d; box-shadow: 0 0 0 2px rgba(36, 26, 18, .9); }
.rail a.on.gnew .nb:empty { background: #fffaf4; box-shadow: none; }

/* 接口返回的提醒卡（U-407 过磅付到库短重）：右下角，点「知道了」关 */
.tipcard { display: none; position: fixed; z-index: 85; right: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px)); background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; }
.tipcard.on { display: block; }
.tipcard b { font-size: 14px; color: var(--warn); }
.tipcard p { margin: 6px 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--ink-1); }

/* 拆出签约主体预览（U-412） */
.sp-sum { margin: 12px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2, var(--bg)); }
.sp-sum p { margin: 4px 0; line-height: 1.6; }
.sp-sum p b { display: inline-block; min-width: 64px; margin-right: 8px; color: var(--ink-2); }
.sp-sum .bad, .o-panel .note.bad { color: var(--down); }
.sp-sum .ck-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; line-height: 1.5; }
/* 合并清单里两边不一样、逐项选的（U-502） */
.mg-cf { display: grid; gap: 6px; margin: 4px 0 8px; }
.mg-r { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: start; }
.mg-r > span { color: var(--ink-2); padding-top: 5px; }
.mg-r .chips { flex-wrap: wrap; }
.mg-r .chips button { white-space: normal; text-align: left; overflow-wrap: anywhere; height: auto; min-height: 32px; padding-top: 5px; padding-bottom: 5px; line-height: 1.45; border-radius: 12px; }

/* 出纳退回（U-418）：结算付款列表里「付款」旁边 */
.pl-rb { margin-left: 6px; }

/* 入库页标签分组（10-24）：组间细竖线，0 车的变淡；过磅付的车车号前深青色标签 */
.chips .tk-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 2px; }
.chips button.zero:not(.on) { opacity: .5; }
.pill.wp { background: var(--teal); color: var(--bg); font-size: 11px; padding: 1px 6px; vertical-align: 1px; }
#tkt .tk-pl .pill.wp { display: table; margin: 0 0 3px; }  /* 入库页：「过磅付」在车牌上方、司机在车牌下方（10-24 用户截图「过磅付放在车牌上方，司机姓名放到车牌下方」） */

/* 筛下物（U-429）：入库页磅差下面一行小字，车辆详情面板 */
#tkt .tk-sk { display: block; font-size: 11px; line-height: 1.2; }
.scr-box .vform { margin-top: 8px; }
.scr-box .chips { margin: 0; }

.dw-ck { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }  /* 工作台「首付按老规则」（U-431） */

/* 供应商资质表格录入（U-434）：一格几项上下排，1280 也不横向滚动 */
.dz-bar { margin: -2px 0 10px; }
.dg-t { table-layout: fixed; width: 100%; }
.dg-t td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
table.t.dg-t td .dg-i, table.t.dg-t td .dg-i.num { display: block; width: 100%; max-width: none; min-width: 0; height: 30px; padding: 4px 8px; font-size: 13px; margin: 0 0 4px; }
.dg-t [data-save]:disabled { opacity: .35; cursor: default; }
table.t.dg-t td textarea.dg-i { height: auto; resize: vertical; }
.dg-t .dg-i.dg-ch { border-color: var(--accent); background: var(--accent-soft); }
.dg-docs { white-space: normal; }
.dg-slot { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.dg-slot label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.dg-slot.ok label { border-style: solid; border-color: transparent; background: var(--up-soft); color: var(--up); }
.dg-slot label b { font-weight: 800; }
.dg-slot small { color: var(--ink-3); }
.dg-er td { padding-top: 0 !important; border-top: 0; }

.iv-sup .iv-x { width: 88px; text-align: center; white-space: nowrap; }  /* 按供应商导出发票明细（U-439） */
.btn-up, a.btn-up { background: var(--up-soft); color: var(--up); border: 1px solid rgba(47, 122, 85, .26); }  /* 浅绿底：导出发票明细（U-440，用户：太不明显） */
.btn-up:hover, a.btn-up:hover { background: rgba(47, 122, 85, .2); }
.bd-ivh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; } .bd-ivh .tl-h { margin: 0; }  /* 导出开给北大荒的发票明细（U-441） */
.bd-ivx { display: flex; align-items: center; gap: 6px; } .bd-ivx .inp { width: 150px; height: 30px; }
.bd-price .inp.bp-prev { background: var(--accent-soft); }  /* 带出前一天的北大荒价，待核对（U-444） */
.bp-pv { margin: 6px 0 0; font-size: 13px; color: var(--accent-press); font-weight: 600; }
.bd-tiles .tile.click { cursor: pointer; } .bd-tiles .tile.click:hover { border-color: var(--line-2); }  /* 甲方回款卡片点了直达对应标签（U-445） */
/* 甲方回款差价：精简后普通宽度放得下（U-462 宽卡，U-465 改回），明细在 ⓘ 里 */
/* ⓘ 悬停说明：鼠标移上去或键盘聚焦时显示；手机上点一下 */
.itip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; border: 1.3px solid currentColor; color: var(--ink-3); font: italic 700 10px/1 Georgia, serif; vertical-align: 1px; cursor: help; outline: none; }
.itip:hover, .itip:focus-visible { color: var(--accent); }
.itip-b { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; z-index: 40; display: flex; flex-direction: column; gap: 4px; width: max-content; max-width: min(340px, 86vw); padding: 10px 12px; border-radius: 10px; background: var(--rail); color: var(--rail-ink); box-shadow: 0 8px 24px rgba(36, 26, 18, .22);
  font: normal 500 12.5px/1.55 var(--sans); text-align: left; white-space: normal; opacity: 0; visibility: hidden; transition: opacity .12s ease-out; pointer-events: none; }
.itip-b b { color: #fff3e6; }
.itip:hover .itip-b, .itip:focus .itip-b { opacity: 1; visibility: visible; }
.card-h .itip-b { left: -10px; translate: 0 0; }  /* 卡片标题旁的 ⓘ 靠左展开，不出页面（U-469 人员） */
/* 人员表（U-469）：显示名 + 修改、重置密码、角色 / 停用各占一行不上下折；兼任写在角色下面一行小字，可以折；名下不折 */
.t.pp-t td .toolbar { flex-wrap: nowrap; }
.t.pp-t td [data-pin] { width: 80px; min-width: 0; }
.t.pp-t td.pp-role { white-space: normal; min-width: 110px; line-height: 1.45; }
.t td.pp-own { white-space: nowrap; }
.kp.has-tip { overflow: visible; } .kp.has-tip:hover, .kp.has-tip:focus-within { z-index: 5; }  /* 看板差价卡片的 ⓘ 说明不被卡片裁掉 */
.bd-ivh { margin: 0 0 10px; }
/* 北大荒当天结算价卡片（U-505）：卡片里直接填 */
.t-tp .tp-ed { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; }
.t-tp .tp-ed .inp { flex: 1 1 auto; min-width: 0; width: 0; max-width: 150px; font-size: 19px; font-weight: 700; padding: 4px 8px; }
.t-tp .tp-ed .btn { flex: none; }
.t-tp .tp-ed small { color: var(--ink-3); }

/* 有备注的车（U-527）：入库列表日期上方的对话框图标；@ 了人还没处理的橙色 */
.tk-nt { display: flex; align-items: center; gap: 2px; color: var(--ink-3); font-size: 11px; line-height: 1; margin-bottom: 3px; }
.tk-dp { display: inline-block; margin-top: 3px; padding: 0 6px; border-radius: 999px; background: rgba(60, 50, 40, .07); color: var(--ink-3); font-size: 11.5px; line-height: 18px; white-space: nowrap; }  /* 日期格里的另一个日子（U-646） */
.tk-dp.up { margin: 0 0 3px; }
.tk-nt svg { width: 15px; height: 15px; }
.tk-nt b { font-weight: 700; }
.tk-nt.due { color: var(--accent); }
/* 审批时要一并核查的车（U-536）：结算确认单车辆表标红 */
tr.pf-row td { background: var(--down-soft, rgba(184, 64, 47, .08)); }
tr.pf-row td:first-child { box-shadow: inset 3px 0 0 var(--down, #b8402f); }
.pay-flags { color: var(--down, #b8402f); background: var(--down-soft, rgba(184, 64, 47, .08)); }
/* 发票：一座塔的发票抽屉（10-26，欠票、按供应商点一行打开）；全部发票按塔筛选的小标签，点 × 回到全部 */
.ivt-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ivt-sum > div { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.ivt-sum > div.hl { border-color: transparent; background: var(--accent-soft); }
.ivt-sum .k { font-size: 12px; color: var(--ink-3); }
.ivt-sum b { font-size: 19px; white-space: nowrap; }
.ivt-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
table.t.ivt-t tr.ivt-done td { color: var(--ink-3); }
table.t.ivt-t tr.ivt-done td b { font-weight: 600; }
.iv-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px 2px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel-2); font-weight: 700; font-size: 13px; max-width: 360px; }
.iv-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-chip button { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font-size: 17px; line-height: 1; cursor: pointer; }
.iv-chip button:hover { background: var(--line); color: var(--ink-1); }
table.t.iv-owed td.tname { min-width: 14em; }
/* 待办分组目录（10-26）：按左侧栏目分段，每段一个小列表、每组一行，各段排成几栏（一屏看全）；点开在页面里看这一组（.tdg-bar + .tdg-one，只有页面自己滚），具体某一件才开右侧抽屉 */
.tdd-wrap { columns: 3 330px; column-gap: 16px; }
.tdd-sec { break-inside: avoid; margin-bottom: 16px; }
.tdd-h { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; font-size: 15px; font-weight: 800; }
.tdd-h b { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tdd-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); }
.tdc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 10px; align-items: baseline; gap: 2px 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-1); text-decoration: none; }
.tdc:first-child { border-top: 0; }
.tdc:hover { background: var(--panel-2); }
.tdc:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tdc-t { font-size: 14px; font-weight: 700; line-height: 1.4; }
.tdc-w { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tdc-n { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tdc-c { color: var(--ink-3); }
.tdc-s { grid-column: 1 / -1; font-size: 12px; line-height: 1.45; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdc.w1 .tdc-w { color: var(--warn); }
.tdc.w2 { box-shadow: inset 3px 0 0 var(--down); }
.tdc.w2 .tdc-w { color: var(--down); font-weight: 700; }
.tdg-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tdg-bar h2 { font-size: 18px; font-weight: 800; }
.tdg-bar h2 b { margin-left: 4px; color: var(--accent); font-variant-numeric: tabular-nums; }
.tdg-one .tdo-sec > .tdo-h h2 { display: none; }
.tdg-one .tw { max-height: none; }
/* 财务待办试行「原地展开」（10-26）：单栏，每组一行，点一组在下面展开这一组、其余收起；展开的标题行吸顶，底下「收起」 */
.tdx-wrap .tdd-list { overflow: visible; }
.tdx + .tdx { border-top: 1px solid var(--line); }
.tdx-h { width: 100%; grid-template-columns: 14px auto minmax(0, 1fr) auto auto; align-items: center; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.tdx-h .tdc-s { grid-column: 3; grid-row: 1; margin-top: 0; }  /* 说明放在组名同一行，放不下省略，每组一行 */
.tdx-c { font-size: 15px; line-height: 1; color: var(--ink-2); }
.tdx:first-child > .tdx-h { border-radius: 12px 12px 0 0; }
.tdx:last-child:not(.on) > .tdx-h { border-radius: 0 0 12px 12px; }
.tdx.on > .tdx-h { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.tdx.on > .tdx-h .tdc-t { color: var(--accent); }
.tdx-b { padding: 12px 14px 6px; background: var(--page); }
.tdx:last-child > .tdx-b { border-radius: 0 0 12px 12px; }
.tdx-b .tdo-sec { margin-bottom: 8px; }
.tdx-f { display: flex; justify-content: center; padding: 4px 0 6px; }


/* 库位抽屉：按日 / 按塔 / 按车和搜索框一行（10-26 用户：「加搜索框，电脑端和手机端都要」） */
.sk-bar { margin: 4px 0 12px; }
.sk-bar .chips { margin: 0; }
.sk-found { margin: 0 2px 8px; }

/* 参考抽屉（U-594）：重检的车点「查看」，在当前抽屉右边并排推出另一条检验记录；底色不同、页头有说明；窄屏盖在上面 */
.drawer { transition: transform .38s var(--ease), right .3s var(--ease); }
.drawer.shift { right: min(520px, 46vw); }
.drawer.rdr { right: 0; width: min(520px, 46vw); z-index: 57; background: #efe3d1; box-shadow: -18px 0 40px -24px rgba(60, 38, 20, .5); border-left: 3px solid #8a4a1c; }
.drawer.rdr .drawer-h { background: #efe3d1; }
.rdr-tag { background: #8a4a1c; color: #fff; padding: 9px 18px; font-size: 13px; line-height: 1.45; }
.rdr-tag b { display: block; font-size: 15px; letter-spacing: .02em; } .rdr-tag span { opacity: .88; }
.rdr-h { margin: 16px 0 6px; font-size: 13.5px; color: #8a4a1c; }
.rdr-ev { font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; }
.kv-list .kvr { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(48, 32, 20, .10); font-size: 14px; }
.kv-list .kvr > span:first-child { color: var(--ink-3); }
@media (max-width: 1100px) { .drawer.rdr { width: 100vw; } .drawer.shift { right: 0; } }

/* 入库详情操作栏（10-28，U-606）：修改、退库这类大按钮放在一起、一直可见（贴在抽屉顶部）；当前不能做的置灰，悬停或点一下看原因 */
.tk-bar { position: sticky; top: -16px; z-index: 3; margin: -16px -18px 12px; padding: 10px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 8px 12px -12px rgba(48, 32, 20, .3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tk-bar .btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
.tk-bar .btn[aria-disabled="true"], .tk-bar .btn[aria-disabled="true"]:hover { opacity: .45; cursor: not-allowed; background: var(--bg); color: var(--ink-3); border-color: var(--line-2); transform: none; }
.tk-bar { column-gap: 14px; } .tk-bar .tk-g { display: inline-flex; flex-wrap: wrap; gap: 6px; }  /* 按组排：修改粉单 · 退库作废 · 转发，组间空得宽一点 */
/* 三组按颜色分（10-28 用户截图批注：「不同组别的按钮颜色区分」）：修改、单据青绿，退库、作废红，转发橙；置灰的、主操作（实心橙）不受影响 */
.tk-bar .g-data .btn-ghost:not([aria-disabled]) { color: var(--teal); border-color: rgba(46, 107, 99, .32); background: var(--teal-soft); }
.tk-bar .g-stock .btn-ghost:not([aria-disabled]) { color: var(--down); border-color: rgba(184, 64, 47, .30); background: var(--down-soft); }
.tk-bar .g-share .btn-ghost:not([aria-disabled]) { color: var(--accent); border-color: rgba(196, 86, 31, .32); background: var(--accent-soft); }
.tk-bar .tk-g .btn-ghost:not([aria-disabled]):hover { filter: brightness(.96); }
.tk-bar .btn svg { flex: none; }
.tk-bar .dz-btn { border-style: solid !important; }  /* 操作栏里的上传按钮不要虚线边（实心主按钮套虚线像锯齿，10-28 用户截图问）；拖文件时 drop.js 照样把它框出来 */
#tk-act:empty { display: none; }
#tk-act { margin-bottom: 12px; }
.tl-h .btn-sm { height: 24px; margin-left: 6px; font-size: 12px; vertical-align: middle; }
@media (max-width: 900px) { .tk-bar { top: -14px; margin: -14px -14px 12px; padding: 8px 14px; } }
/* 通知「去处理」的专用弹窗（10-28 U-621）：抽屉改成页面正中的弹窗、底下页面压暗，顶上一条写明来自哪条通知；手机宽度铺满 */
.drawer-scrim.task { background: rgba(31, 23, 16, .58); }
.drawer.task { top: 4vh; bottom: 4vh; right: auto; left: 50%; width: min(820px, 94vw); border-radius: 14px; overflow: hidden; opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px) scale(.98); transition: transform .26s var(--ease), opacity .2s; box-shadow: 0 40px 120px -30px rgba(40, 24, 12, .6), 0 0 0 1px var(--line-2); }
.drawer.task.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.drawer.task.wide { width: min(980px, 94vw); }
.drawer.task.wide.xw { width: min(1180px, 96vw); }
.drawer.task.wide.xw.dwx { width: min(1280px, 96vw); }
.drawer.task.shift.on { left: 2vw; transform: none; width: min(820px, calc(96vw - min(520px, 46vw))); }
.d-task { display: flex; align-items: baseline; gap: 10px; padding: 9px 18px; background: var(--rail); color: var(--rail-ink); font-size: 13px; }
.d-task[hidden] { display: none; }
.d-task b { color: #f3b48a; font-weight: 800; flex: none; }
.d-task span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-task em { font-style: normal; color: var(--rail-dim); flex: none; }
@media (max-width: 900px) { .drawer.task { top: 0; bottom: 0; left: 0; width: 100vw; border-radius: 0; transform: translateY(12px); } .drawer.task.on { transform: none; }
  .drawer.task .d-task { padding-top: calc(9px + env(safe-area-inset-top)); } .drawer.task .drawer-h { padding-top: 10px; } .d-task em { display: none; } }
/* 甲方回款：没对平的日子下面一行写原因（U-629） */
.bd-t tr.bd-why td { padding-top: 0; border-top: 0; font-size: 12.5px; color: var(--warn); white-space: normal; }
.bd-t tr.bd-why b { font-weight: 700; }
