/* ===== 聚量 3.0 统一视觉（最后加载）：按钮、工具栏、表头、标签、链接、输入框风格一致 ===== */
:root{--jl-teal:#16a394;--jl-teal-d:#0f8f7f;--jl-ink:#22394a;--jl-sub:#6b7f8c;--jl-line:#e1ebea;--jl-soft:#f3f8f7}

/* 1. 标题：页签已经显示页面名，正文标题统一隐藏，节省笔记本空间 */
.sheet-title{display:none!important}

/* 2. 工具栏：统一成白色卡片 */
#controls.controls:not(.home-dashboard):not(.dist-set-root):not(.wh-ct-head):not(.ap-head):not(.tier-head):not(:empty),
#controls.dist-toolbar,#controls.ib-toolbar,#controls.cost-toolbar,#controls.pc-toolbar,#controls.record-filters{
  background:#fff!important;border:1px solid var(--jl-line)!important;border-radius:10px!important;padding:8px 10px!important;
  display:flex;flex-wrap:wrap;align-items:center;gap:8px!important;box-shadow:0 1px 3px #1c40500a!important;margin-bottom:10px!important}

/* 3. 按钮：统一高度、圆角、两种颜色（主按钮青绿 / 次按钮白底） */
#controls button,#controls .di-file,.reveal-actions button,.d-actions button,#toolbar button{
  height:32px;min-height:32px!important;padding:0 12px!important;border-radius:7px!important;font-size:13px!important;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;line-height:1!important}
#controls button:not(.primary):not(.danger):not([disabled]),.reveal-actions button:not(.primary):not(.danger),.d-actions button:not(.primary):not(.danger),#controls .di-file:not(.primary){
  background:#fff!important;color:var(--jl-ink)!important;border:1px solid #cfdcdc!important;box-shadow:none!important}
#controls button:not(.primary):not(.danger):not([disabled]):hover,.reveal-actions button:not(.primary):hover{background:var(--jl-soft)!important;border-color:#9fd0c6!important}
#controls button.primary,.reveal-actions button.primary,.d-actions button.primary,#toolbar button.primary,#controls .di-file.primary{
  background:var(--jl-teal)!important;border:1px solid var(--jl-teal)!important;color:#fff!important;box-shadow:0 1px 2px #0f8f7f33!important}
#controls button.primary:hover,.reveal-actions button.primary:hover,#toolbar button.primary:hover{background:var(--jl-teal-d)!important}
#controls button[disabled],.reveal-actions button[disabled]{opacity:.45!important;cursor:not-allowed}
/* 原来深色的「批量上传面单」「批量导入订单」改成和其它按钮一致 */
#controls .lb-btn,#controls .di-btn{background:#fff!important;color:var(--jl-teal-d)!important;border:1px solid #9fd0c6!important}
#controls .lb-btn:hover,#controls .di-btn:hover{background:#eaf7f4!important}
/* 右上角：管理员快捷「新增记录」改成次按钮，不抢眼 */
#toolbar button.primary{background:#fff!important;color:var(--jl-teal-d)!important;border:1px solid #9fd0c6!important;box-shadow:none!important}
#toolbar button.primary:hover{background:#eaf7f4!important}

/* 4. 工具栏里的输入框 / 下拉框统一高度 */
#controls select,#controls input[type=date],#controls input[type=month],#controls .cost-search{height:32px!important;border-radius:7px!important;font-size:13px!important}
#controls select,#controls input[type=date],#controls input[type=month]{border:1px solid #cfdcdc!important;background:#fff!important;padding:0 8px!important;color:var(--jl-ink)}
#controls .cost-search{border:1px solid #cfdcdc!important;background:#fbfdfd!important}
#controls .cost-search:focus-within,#controls select:focus{border-color:var(--jl-teal)!important;box-shadow:0 0 0 3px #16a3941f!important;outline:0}

/* 5. 表格：表头统一浅青底、深色粗体；外框圆角 */
.grid-wrap{border-radius:10px!important;border:1px solid var(--jl-line)!important;box-shadow:0 1px 3px #1c40500a!important}
#grid thead th{background:#f1f7f6;color:#2c4a5c;font-size:12.5px;font-weight:700;letter-spacing:.2px;border-bottom:1px solid #d9e6e4}
#grid tbody td{color:var(--jl-ink)}
#grid tbody tr:hover td{background:#f5fbfa}

/* 6. 状态标签统一：圆角胶囊、同样字号 */
.d-pay,.tp-tag,.stock-alert,.stock-ok,.stk-b,.dist-role,.d-type,.tf-dir,.ps-row-pending .d-pay{border-radius:10px!important;padding:2px 8px!important;font-size:12px!important;font-weight:600!important;line-height:1.5!important;display:inline-block}
#grid .tag,#grid .unpaid{border-radius:10px!important;padding:2px 8px!important;font-size:12px!important;font-weight:600!important}
.stock-ok{background:#e6f6f1;color:#1a8a6e}

/* 7. 表格里的链接（查看 / 单号）：品牌色，不要默认蓝色下划线 */
#grid a,.d-dlg a,.qo-card a{color:var(--jl-teal-d);text-decoration:none;font-weight:600}
#grid a:hover,.d-dlg a:hover,.qo-card a:hover{text-decoration:underline}

/* 8. 弹窗统一圆角和阴影 */
dialog.reveal-dialog{border-radius:14px!important;box-shadow:0 20px 60px #0f243540!important}
dialog.reveal-dialog::backdrop{background:#0f243559}

/* 9. 卡片 / 面板统一 */
.qo-card,.ps-card,.ds-tile,.tm-box,.dpo-card,.di-box{border-radius:10px!important}
/* 分段切换按钮（代理价格 / 原料价格 等）：选中的用实色 */
#controls .material-switch{display:inline-flex;border:1px solid #cfdcdc;border-radius:8px;overflow:hidden}
#controls .material-switch button{border:0!important;border-radius:0!important;height:30px}
#controls .material-switch button.active{background:var(--jl-teal)!important;color:#fff!important}
#controls button.active:not(.material-switch button){background:#eaf7f4!important;border-color:#9fd0c6!important;color:var(--jl-teal-d)!important}
/* 算账 */
.ac-it{display:inline-block;margin:1px 4px 1px 0;padding:1px 6px;border-radius:6px;background:#eef6f5;white-space:nowrap}
.ac-it em{font-style:normal;color:#6b7f8c;font-size:11px}
.ac-it.bad{background:#fde8e5;color:#c0392b}
.ac-pos{color:#0f8f7f}
#grid tr.ac-miss td{background:#fffaf3}
.ac-ver{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 8px;border:1px solid #d6e5e2;border-radius:8px;background:#fff;font-size:12.5px;white-space:nowrap}
.ac-ver b{color:#1f3a4d}.ac-ver .qo-x{font-size:13px;padding:0 3px}
.ac-arrow{margin:0 4px;color:#9fb0ba}
.ac-pays th{background:#f6faf9!important;text-align:left;font-size:12.5px;color:#5b7080;padding:8px!important}
dialog.ac-dlg{width:min(640px,96vw)!important}
.ac-g3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:8px 0}
.ac-g3 label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#5b7080}
.ac-items{width:100%;border-collapse:collapse;margin:6px 0}.ac-items th{font-size:12px;color:#5b7080;text-align:left;padding:4px}.ac-items td{padding:3px 4px}
.ac-items input{width:100%;box-sizing:border-box;height:30px;padding:0 6px;border:1px solid #cfdcdc;border-radius:6px}
#controls .material-switch button.active:not(.primary):not(.danger):not([disabled]){background:var(--jl-teal)!important;color:#fff!important;border-color:var(--jl-teal)!important}
.ac-stock{margin:0!important}.ac-stock th,.ac-stock td{padding:5px 8px!important;border-bottom:1px solid #eef3f2}
.ac-note{display:inline-block;margin:1px 0 1px 6px;padding:0 6px;border-radius:6px;background:#fff3d6;color:#9a6200;font-size:11.5px;font-weight:600;white-space:nowrap}
.ac-it i{font-style:normal;color:#9a6200;font-size:11px}
.ac-date{height:30px;border:1px solid #cfdcdc;border-radius:6px;padding:0 6px;font-size:13px;color:#22394a;background:#fff;cursor:pointer}.ac-date:hover,.ac-date:focus{border-color:#16a394;outline:0}
/* 补货账目 */
.lg-grid tbody.lg-group{border-top:2px solid #c9dcd9}
.lg-grid td.lg-batch,#grid.lg-grid td.lg-batch{vertical-align:top!important;background:#f3f8f7;vertical-align:top;white-space:nowrap}.lg-grid td.lg-batch small{display:block;color:#6b7f8c;font-size:11.5px}
.lg-grid tr.lg-c1 td:not(.lg-batch):not(.lg-settle){background:#fbfdfd}
.lg-grid td.lg-settle,#grid.lg-grid td.lg-settle{vertical-align:top!important;background:#fff;border-left:1px solid #e1ebea;min-width:190px}
.lg-name{font-weight:700;color:#22394a;margin-bottom:6px}
.lg-row{display:flex;justify-content:space-between;gap:12px;padding:3px 8px;border-radius:6px;margin:2px 0;background:#f3f8f7}
.lg-row.lg-p{background:#fff3d6;color:#9a6200}.lg-row.lg-w{background:#e6f0fb;color:#24569a}
b.lg-p{color:#9a6200}b.lg-w{color:#24569a}
.lg-btns{margin-top:8px}
/* 补货账目 v2：卡片 */
.lg2{display:flex;flex-direction:column;gap:14px;padding-bottom:30px}
.lg2-sum{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.6fr;gap:10px}
.lg2-k{background:#fff;border:1px solid var(--jl-line);border-radius:12px;padding:12px 16px;display:flex;flex-direction:column;gap:2px;box-shadow:0 1px 3px #1c40500a}
.lg2-k small{color:#6b7f8c;font-size:12px}.lg2-k b{font-size:22px;color:#22394a;letter-spacing:.3px}.lg2-k span{font-size:12px;color:#6b7f8c}
.lg2-k.p{border-top:4px solid #e0a020}.lg2-k.p b{color:#a86b00}.lg2-k.w{border-top:4px solid #3a78c9}.lg2-k.w b{color:#2a5da3}
.lg2-k.wide{justify-content:center}
.lg2-bar{display:flex;height:10px;border-radius:6px;overflow:hidden;background:#eef3f2;gap:2px}
.lg2-bar i{display:block;height:100%}.lg2-bar i.p{background:#e0a020}.lg2-bar i.w{background:#3a78c9}
.lg2-who{display:flex;gap:16px;margin-top:6px;font-size:12.5px;flex-wrap:wrap}.lg2-who .p{color:#a86b00}.lg2-who .w{color:#2a5da3}.lg2-who em{font-style:normal;opacity:.75;margin-left:2px}
.lg2-warn{color:#c0392b;font-size:12.5px;margin-top:4px}
.lg2-todo{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 14px;border:1.5px dashed #e0a020;border-radius:12px;background:#fffaf0;color:#8a5a00;font-size:13px}
.lg2-todo button{border:1px solid #e9c479;background:#fff;border-radius:7px;padding:4px 10px;cursor:pointer;color:#8a5a00;font-weight:600}.lg2-todo em{font-style:normal;opacity:.7}
.lg2-card{background:#fff;border:1px solid var(--jl-line);border-radius:14px;box-shadow:0 1px 4px #1c40500d;overflow:hidden}
.lg2-card .lg2-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 18px 8px}
.lg2-card h3{margin:0;font-size:17px;color:#1f3a4d}
.lg2-dates{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.lg2-dates span{position:static;display:inline-block;font-size:12px;background:#eef6f5;color:#35505f;border-radius:10px;padding:2px 9px}.lg2-dates em{font-style:normal;color:#0f8f7f;margin-left:5px;font-weight:600}
.lg2-total{text-align:right}.lg2-total small{display:block;color:#6b7f8c;font-size:12px}.lg2-total b{font-size:22px;color:#0f8f7f}
.lg2-pay{padding:0 18px 12px;border-bottom:1px solid #eef3f2}
.lg2-batch{padding:10px 18px 12px;border-bottom:1px solid #f0f4f4}
.lg2-bh{display:flex;align-items:baseline;gap:10px;margin-bottom:8px;font-size:12.5px;color:#6b7f8c}.lg2-bh b{font-size:14px;color:#22394a}.lg2-bm{margin-left:auto;font-weight:700;color:#22394a;font-size:13.5px}
.lg2-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:6px}
.lg2-t{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:6px;padding:7px 10px;border-radius:9px;background:#f6faf9;border:1px solid #e6efee}
.lg2-t b{font-size:13.5px;color:#1f3a4d}.lg2-t .calc{grid-column:1;font-size:12px;color:#6b7f8c}.lg2-t .amt{grid-column:2;grid-row:1/3;align-self:center;font-weight:700;color:#22394a;font-size:13px}
.lg2-t.bad{background:#fff4f2;border-color:#f3c9c2}.lg2-t i{font-style:normal;color:#c0392b;font-size:11px}
.lg2-t.lump{grid-column:span 2;background:#eef6f5}
.lg2-card .lg2-foot{display:flex;justify-content:flex-end;gap:8px;padding:8px 18px;background:#fbfdfd}
.lg2-card .lg2-foot button{height:30px;padding:0 12px;border-radius:7px;border:1px solid #cfdcdc;background:#fff;cursor:pointer;font-weight:600}
.lg2-card .lg2-foot button.danger{color:#c0392b;border-color:#efc3bc}
@media(max-width:900px){.lg2-sum{grid-template-columns:1fr 1fr}.lg2-k.wide{grid-column:span 2}}
.rs-st{display:inline-block;margin-left:6px;height:24px!important;padding:0 9px!important;border-radius:12px!important;font-size:12px!important;font-weight:700;cursor:pointer;border:1px solid}
.rs-st.ok{background:#e6f6f1!important;color:#1a8a6e!important;border-color:#b9e3d6!important}
.rs-st.go{background:#fff3d6!important;color:#9a6200!important;border-color:#efd08a!important}
.rs-go{color:#b07000!important;font-weight:700}
.ac-stock .rs-gocol{background:#fffaf0!important;color:#b07000}
/* 历史订单 v2 */
.od{display:flex;flex-direction:column;gap:10px;padding-bottom:30px}
.od-kpi{display:flex;gap:10px;flex-wrap:wrap}
.od-kpi>div{flex:1;min-width:130px;background:#fff;border:1px solid var(--jl-line);border-radius:12px;padding:10px 14px;box-shadow:0 1px 3px #1c40500a}
.od-kpi small{display:block;color:#6b7f8c;font-size:12px}.od-kpi b{font-size:20px;color:#22394a}.od-kpi .g b{color:#0f8f7f}.od-kpi .warn{border-color:#f3c9c2;background:#fff7f5}.od-kpi .warn b{color:#c0392b}
.od-card{background:#fff;border:1px solid var(--jl-line);border-radius:12px;box-shadow:0 1px 3px #1c40500a;padding:12px 16px}
.od-card.miss{border-left:4px solid #f0a99c}
.od-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.od-who{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.od-date{font-size:13px;color:#6b7f8c;font-variant-numeric:tabular-nums}.od-cust{font-size:17px;color:#1f3a4d}.od-no{font-size:12.5px;color:#35505f;background:#eef6f5;border-radius:8px;padding:1px 8px}
.od-note{font-size:12px;color:#8a9aa5}
.od-money{display:flex;align-items:center;gap:18px}.od-money small{display:block;font-size:11px;color:#8a9aa5}.od-money b{font-size:15px;color:#22394a}.od-money em{font-style:normal;font-size:14px;color:#6b7f8c}
.od-act{display:flex;gap:6px}.od-act button{height:28px;padding:0 10px;border-radius:7px;border:1px solid #cfdcdc;background:#fff;cursor:pointer;font-weight:600;font-size:12.5px}.od-act button.danger{color:#c0392b;border-color:#efc3bc}
.od-sub{font-size:12px;color:#8a9aa5;margin:6px 0 8px;display:flex;gap:8px;align-items:center}
.od-flag{display:inline-block;margin-left:6px;font-size:11px;font-weight:700;color:#c0392b;background:#fdecea;border-radius:8px;padding:1px 7px}.od-flag.k{color:#a86b00;background:#fff3d6}
.od-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:6px}
.od-t{border:1px solid #e3ecea;background:#f7fbfa;border-radius:9px;padding:6px 9px}
.od-t1{display:flex;justify-content:space-between;align-items:baseline}.od-t1 b{font-size:14px;color:#1f3a4d}.od-q{font-size:15px;font-weight:800;color:#0f8f7f}
.od-t2{display:flex;justify-content:space-between;font-size:11.5px;color:#8a9aa5;margin-top:1px}.od-t2 b{color:#35505f;font-weight:600}
.od-t.bs{background:#fff5f3;border-color:#f3c9c2}.od-t.bk{background:#fffaf0;border-color:#f0dca8}
.od-x{font-size:11px;font-weight:700;color:#c0392b}.od-x.k{color:#a86b00}
.od-ptbl{width:100%;border-collapse:collapse}.od-ptbl th{font-size:12px;color:#5b7080;text-align:left;padding:6px 8px;border-bottom:1px solid #e1ebea}.od-ptbl th.num,.od-ptbl td.num{text-align:right}
.od-ptbl td{padding:6px 8px;border-bottom:1px solid #f0f4f4;font-size:13.5px}.od-code{font-size:14px;color:#1f3a4d}
.od-barc{width:22%}.od-barc i{display:block;height:8px;border-radius:4px;background:#16a394;opacity:.75}
.od-adj{display:block;font-style:normal;font-size:10.5px;color:#0f8f7f;white-space:nowrap}.od-adj.neg{color:#b07000}
/* 历史订单 v3：紧凑文字表 */
#grid.ot-grid td{padding:5px 8px!important;font-size:13px;line-height:1.45;vertical-align:top}
#grid.ot-grid th{padding:7px 8px!important;position:sticky;top:0;z-index:2}
#grid.ot-grid .ot-d{white-space:nowrap;color:#5b7080;font-variant-numeric:tabular-nums}
#grid.ot-grid .ot-p{color:#22394a;min-width:280px}
#grid.ot-grid .ot-nk{color:#b07000;border-bottom:1px dashed #e0a020}
#grid.ot-grid small{display:block;font-size:10.5px;line-height:1.2}
.ot-adj{color:#8a9aa5}.ot-warn{color:#b07000;font-weight:600}
.ot-q{font-size:14px;color:#0f8f7f}
#grid.ot-grid .ot-op{white-space:nowrap}#grid.ot-grid .ot-op a{font-size:12px;font-weight:600;margin-right:4px}#grid.ot-grid .ot-op a.danger{color:#c0392b}
#grid.ot-grid tfoot td{background:#f1f7f6;border-top:2px solid #d9e6e4;padding:8px!important;position:sticky;bottom:0}
#grid.ot-grid td.num{white-space:nowrap}
#grid.ot-grid .ot-p{white-space:normal!important;max-width:520px;word-break:keep-all}
#grid.ot-grid .ot-p span{white-space:nowrap}
.ap-exp{display:inline-flex;gap:6px;margin-left:auto;align-items:center}.ap-exp select{height:32px;border:1px solid #cfdcdc;border-radius:7px;padding:0 8px}
/* 快速报单 / 报单出库的产品方块：不套用工具栏按钮的统一高度（否则文字被裁掉、居中挤在一起） */
#controls button.qo-tile,.qo-tiles button.qo-tile{height:auto!important;min-height:58px!important;padding:8px 10px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;line-height:1.25!important;white-space:normal!important;border-radius:9px!important;font-weight:400!important;text-align:left!important}
.qo-tiles button.qo-tile b{font-size:15px!important;line-height:1.2;font-weight:700;letter-spacing:.2px}
.qo-tiles button.qo-tile span{font-size:13px!important;line-height:1.2;font-variant-numeric:tabular-nums}
.qo-tiles button.qo-tile small{line-height:1.2}
.qo-tiles button.qo-tile.in{background:#e8f8f5!important;border-color:#16b8a6!important}
/* 调货录单：第一行的「保存」按钮被旧规则（表格最后一列的主按钮隐藏）藏掉了，这里放出来 */
#grid.transfer-grid tbody tr.tf-form td:last-child button.primary{display:inline-flex!important;align-items:center;justify-content:center;height:34px;padding:0 16px;border-radius:7px;font-weight:700;white-space:nowrap}
.code-al{color:#8a9aa5;font-weight:500;font-size:.86em;margin-left:1px;letter-spacing:0}
.ot-rate{color:#35505f}.ot-rate.hi{color:#0f8f7f}.ot-rate.lo{color:#b07000}
/* 代理表 · 利润率 */
.mt-pick{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#22394a;font-size:13px}.mt-pick select{height:32px;border:1px solid #9fd0c6;border-radius:7px;padding:0 8px;font-weight:600}
.mt-sum{font-size:12.5px;color:#35505f}
.mt-margin{margin-top:5px;padding:3px 8px;border-radius:7px;background:#eef6f5;color:#35505f;font-size:12px;white-space:nowrap}
.mt-margin b{font-variant-numeric:tabular-nums}.mt-margin.hi{background:#e3f6f0;color:#0f7f6f}.mt-margin.lo{background:#fff3d6;color:#9a6200}.mt-margin.neg{background:#fde8e5;color:#c0392b}.mt-margin.none{background:#f3f5f6;color:#8a9aa5}
.tier-line.mt-sel{outline:2px solid #16a394;outline-offset:1px;border-radius:7px}
.lo-draft{flex-basis:100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border:1.5px dashed #e0a020;border-radius:10px;background:#fffaf0;color:#8a5a00;font-size:13px}
.tier-line.tier-i6{background:#e6f7f4}.tier-line.tier-i6 span{color:#0f7f6f;font-weight:700}
/* 代理表 · 代理价：3 列 × 2 行，名称在上、价格在下，不挤不截字 */
.product-cost-grid td.tier-cell{min-width:330px}
.product-cost-grid .tier-list{grid-template-columns:repeat(3,minmax(96px,1fr))!important;max-width:340px!important;gap:5px!important}
.product-cost-grid .tier-line{display:grid!important;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:2px;padding:4px 8px 3px!important;line-height:1.25!important;border-radius:8px!important;white-space:nowrap;min-width:0}
.product-cost-grid .tier-line span{grid-column:1/3;grid-row:1;font-size:11px!important;font-weight:600;overflow:hidden;text-overflow:ellipsis;min-width:0}
.product-cost-grid .tier-line i{grid-column:1;grid-row:2;margin:0!important;font-size:11px;color:#8a9aa8}
.product-cost-grid .tier-line .tier-input{grid-column:2;grid-row:2;width:100%!important;flex:none!important;height:22px!important;font-size:15px!important;text-align:right;padding:0 2px!important;box-sizing:border-box}
.product-cost-grid .tier-line.manual span:after{font-size:9px}
.product-cost-grid .tier-line.mt-sel{outline-offset:0}
.product-cost-grid .mt-margin{max-width:340px;box-sizing:border-box}
.tier-line.tier-i4{background:#fff4e6}.tier-line.tier-i4 span{color:#b7621f}
.tier-line.tier-i5{background:#fdeef3}.tier-line.tier-i5 span{color:#b83265}
.product-cost-grid:not(.locked){min-width:1260px!important}
.product-cost-grid td.tier-cell{overflow:visible}
.product-cost-grid.locked .tier-list{margin:0 auto}
.ae-cost{display:flex;gap:8px;align-items:flex-start;margin:12px 0 4px;padding:10px 12px;border:1.5px dashed #f0c36d;border-radius:10px;background:#fffaf0;font-size:13px;color:#5b4a2a;cursor:pointer}
.ae-cost input{margin-top:3px}.ae-warn{color:#c0392b}
/* 等级卡片里的利润率：¥ | 利润率 | 价格 */
.product-cost-grid .tier-line{grid-template-columns:auto auto 1fr!important}
.product-cost-grid .tier-line span{grid-column:1/4!important}
.product-cost-grid .tier-line .tier-input{grid-column:3!important}
.product-cost-grid .tier-line .tl-rate{grid-column:2;grid-row:2;font-style:normal;font-size:11px;font-weight:700;padding:0 5px;margin-left:3px;border-radius:6px;background:#ffffffb3;color:#5b7080;line-height:16px;white-space:nowrap}
.product-cost-grid .tier-line .tl-rate.hi{color:#0f7f6f}.product-cost-grid .tier-line .tl-rate.lo{color:#b07000}.product-cost-grid .tier-line .tl-rate.neg{color:#fff;background:#d9534f}
/* 调货产品导入 */
.tr-dlg{width:min(680px,94vw)}
.tr-dlg .tr-tip{line-height:1.6;margin-bottom:8px}
.tr-dlg textarea{width:100%;box-sizing:border-box;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;border:1px solid var(--line,#dfe3e8);border-radius:10px;padding:10px;resize:vertical}
.tr-dlg .tr-row{display:flex;align-items:center;gap:12px;margin:8px 0;font-size:13px;flex-wrap:wrap}
.tr-dlg .tr-row .grow{flex:1}
.tr-dlg .tr-file{cursor:pointer;color:var(--teal,#0f8f7f)}
.tr-dlg .tr-file input{display:none}
.tr-dlg .tr-prev{font-size:13px;color:#566}
.tr-dlg .neg{color:#c0392b}
.tr-btn{border-color:#0f8f7f!important;color:#0f8f7f!important}
.tr-dlg .tr-row label{display:inline-flex;align-items:center;gap:6px}
.tr-dlg .tr-row input[type=checkbox]{width:16px!important;height:16px!important;margin:0;accent-color:#0f8f7f}
.tr-dlg .tr-sum{margin-bottom:6px}
.tr-dlg .tr-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.tr-dlg .tr-tbl th{background:#f3f6f8;color:#5b6b78;font-weight:600;text-align:left;padding:5px 8px}
.tr-dlg .tr-tbl td{padding:5px 8px;border-top:1px solid #eef1f4}
.tr-dlg .tr-tbl .num{text-align:right}
.tr-dlg .tr-tbl tr.bad td{background:#fff4f2}

/* 算账 · 库存对账 */
.ac-st-grid th small{display:block;font-weight:400;font-size:10.5px;color:#7a8b96}
.ac-st-grid .hl{background:#eef8f6}.ac-st-grid .hl2{background:#fff7ea}
.ac-st-grid tfoot td{border-top:2px solid #cfdcdf;background:#f6f9fa;position:sticky;bottom:0}
.ac-st-grid .neg{color:#c0392b}.ac-st-grid .ac-gap-pos{color:#b36200;font-weight:600}
.ac-st-pick{position:relative}.ac-st-pick summary{cursor:pointer;padding:5px 10px;border:1px solid #d5dde3;border-radius:8px;background:#fff;font-size:13px}
.ac-st-pick>div{position:absolute;z-index:20;background:#fff;border:1px solid #d5dde3;border-radius:10px;padding:8px 12px;box-shadow:0 8px 20px rgba(0,0,0,.12);display:grid;gap:4px;min-width:240px}
