:root {
  --ink: #0e1726; --ink-2: #172440; --ink-3: #22325a;
  --canvas: #f5f4ef; --card: #ffffff; --line: #e7e3d8; --line-2: #f0ede5;
  --text: #1b2232; --muted: #7b8193; --faint: #a7acb9;
  --gold: #b8914a; --gold-2: #d8b877; --gold-soft: #f6efe0;
  --primary: #1f3c88; --primary-2: #16306f; --primary-soft: #e9eef9;
  --ok: #2e7d4f; --ok-soft: #e3f2e8; --warn: #a86a00; --warn-soft: #fbf0d9; --bad: #b8392f; --bad-soft: #fbe6e3;
  --r-yellow: #fdf3d2; --b-yellow: #d9a520; --r-blue: #e7eefb; --b-blue: #3a64c9;
  --r-green: #e3f2e7; --b-green: #2e8b57; --r-red: #fbe5e2; --b-red: #c0392b;
  --calc: #f6f2fd; --calc-h: #ece4fb; --calc-t: #5b3fa8;
  --serif: "Noto Serif TC", "Noto Serif SC", "Source Han Serif", "Songti TC", "Songti SC", "SimSun", serif;
  --sans: "Inter", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 10px 30px -12px rgba(14, 23, 38, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.55 var(--sans); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.err { color: var(--bad); min-height: 1.2em; margin: 0; }
a { color: var(--primary); cursor: pointer; text-decoration: none; }
a:hover { text-decoration: underline; }
.num, td.money, .kpi .v { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { background: radial-gradient(120% 90% at 0% 0%, #23345e 0%, var(--ink) 60%); color: #e8e4d8; padding: 64px 56px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border: 1px solid rgba(216, 184, 119, .25); border-radius: 50%; }
.login-brand h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; letter-spacing: .06em; margin: 8px 0 0; color: #fff; }
.login-brand .rule { width: 56px; height: 2px; background: var(--gold-2); }
.login-brand p { color: #c9c4b6; margin: 0; letter-spacing: .08em; }
.login-brand ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; max-width: 420px; }
.login-brand li { color: #b9b4a6; padding-left: 18px; border-left: 1px solid rgba(216, 184, 119, .4); }
.login-brand li b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.login-brand small { margin-top: auto; letter-spacing: .3em; color: #7c8299; font-size: 11px; }
.mono { width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: var(--ink); background: linear-gradient(135deg, #e6cc93, var(--gold)); border-radius: 12px; }
.mono.sm { width: 36px; height: 36px; font-size: 18px; border-radius: 9px; }
.login-form-wrap { display: grid; place-items: center; padding: 32px 16px; }
.login-form { width: min(360px, 100%); display: grid; gap: 16px; }
.login-form h2 { font-family: var(--serif); font-size: 28px; margin: 0; }
.login-form .muted { margin: -10px 0 8px; }

label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
input, select, textarea { font: inherit; color: var(--text); padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- Shell ---------- */
#app { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: linear-gradient(180deg, var(--ink) 0%, #111c31 100%); color: #c9cdd8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; padding: 22px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand b { display: block; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: .05em; }
.brand small { color: var(--gold-2); font-size: 10px; letter-spacing: .28em; }
nav { flex: 1; overflow-y: auto; padding: 8px 12px; }
.nav-group { padding: 18px 10px 6px; font-size: 10.5px; letter-spacing: .22em; color: #6f7790; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 2px 0; border-radius: 8px; color: #c3c8d4; position: relative; cursor: pointer; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-2); }
.nav-item .badge { margin-left: auto; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 7px; }
.side-foot { padding: 16px 18px; border-top: 1px solid rgba(255, 255, 255, .06); }
.me { display: flex; gap: 10px; align-items: center; }
.me b { display: block; color: #fff; font-weight: 600; }
.me small { color: var(--gold-2); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--gold-2); font-weight: 700; border: 1px solid rgba(216, 184, 119, .35); }
.side-links { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; }
.side-links a { color: #8e95a9; }
.side-links a:hover { color: #fff; }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 26px 32px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfaf6, var(--canvas)); }
.crumb { font-size: 11px; letter-spacing: .22em; color: var(--gold); }
.top h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 2px 0 2px; letter-spacing: .03em; }
.top p { margin: 0; color: var(--muted); max-width: 820px; }
.date-chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; background: #fff; white-space: nowrap; }
main { padding: 24px 32px 64px; }

/* ---------- Building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-h { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-h .sub { color: var(--muted); font-size: 12px; font-weight: 400; }
.card-b { padding: 18px 20px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; white-space: nowrap; transition: all .15s; }
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn svg.i { width: 15px; height: 15px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); color: #fff; }
.btn.gold { background: var(--gold-soft); border-color: #e6d5b0; color: #7a5a1c; }
.btn.gold:hover { border-color: var(--gold); color: #5e4210; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 12px 18px; font-size: 15px; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 0 1 380px; }
.search svg.i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 16px; height: 16px; }
.search input { width: 100%; padding-left: 34px; }
.range { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-2); }
.kpi.blue::before { background: var(--primary); } .kpi.green::before { background: var(--ok); } .kpi.red::before { background: var(--bad); } .kpi.violet::before { background: #7a5bd0; } .kpi.amber::before { background: var(--warn, #d99a1e); }
.hj-adj { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line, #e3e6ea); border-radius: 8px; }
.hj-adj summary { cursor: pointer; }
.kpi .l { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.kpi .v { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-top: 4px; line-height: 1.2; }
.kpi .s { font-size: 12px; color: var(--faint); margin-top: 2px; }
.kpis.inner { margin: 0; padding: 16px 20px; border-top: 1px solid var(--line-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpis.inner .kpi { border: 0; padding: 4px 0 4px 14px; border-radius: 0; }
.kpis.inner .kpi .v { font-size: 20px; }

/* Upload */
.drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed #d7cfbd; border-radius: 12px; padding: 12px 16px; cursor: pointer; background: #fff; transition: all .2s; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-soft); }
.drop .ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.drop .t { font-weight: 600; font-size: 13px; }
.drop .t em { font-style: normal; color: var(--primary); }
.drop .h { color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.7; }

/* 文件列表：不横向滚动 */
table.files td { white-space: normal; vertical-align: middle; }
table.files td.fname { word-break: break-all; min-width: 180px; font-size: 12.5px; }
table.files td.tip { font-size: 11.5px; line-height: 1.45; color: var(--muted); min-width: 80px; }
table.files td.warn-t { color: var(--bad); min-width: 120px; max-width: 220px; }
table.files td.ops { white-space: nowrap; text-align: right; }
table.files td.ops .btn { margin-left: 4px; padding: 4px 8px; }
.modal-card.wide { width: min(1100px, 100%); }
.modal-card.full { width: min(1600px, 97vw); height: 94vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.modal.max { padding: 0; }
.modal.max .modal-card.full { width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
.bm-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.bm-f input[type=search] { width: 260px; }
.modal-card.full > div { display: flex; flex-direction: column; gap: 0; height: 100%; }
.bm-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #faf9f5; }
.bm-h h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-b { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 22px 0; overflow: hidden; }
.bm-b .legend { margin-bottom: 10px; }
.bm-b .kpis { margin-bottom: 12px; }
.bm-b .tbl { flex: 1; max-height: none; border: 1px solid var(--line); border-radius: 10px; }
.bm-b .kpis.inner { flex: none; }
.cell-in { width: 100%; min-width: 90px; padding: 4px 8px; font-size: 12.5px; border-radius: 6px; background: #fffdf6; border-color: #eadfc4; }
.cell-in.num { text-align: right; width: 100px; }
th.edit { background: var(--gold-soft); color: #7a5a1c; }
label.rc { display: flex; flex-direction: row; align-items: center; gap: 6px; color: inherit; }
code, .code { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; background: #f1efe8; border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 5px; color: #4a4f5e; }

/* Tables */
.tbl { overflow: auto; max-height: calc(100vh - 260px); }
.card .tbl { border-radius: 0 0 14px 14px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
th { position: sticky; top: 0; z-index: 2; background: #faf9f5; color: #5d6375; font-weight: 600; font-size: 12px; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
tbody tr:hover td { background-image: linear-gradient(rgba(31, 60, 136, .035), rgba(31, 60, 136, .035)); }
th.money, td.money { text-align: right; }
th.calc { background: var(--calc-h); color: var(--calc-t); }
td.calc { background: var(--calc); }
td.strong { font-weight: 700; }
tr.yellow td { background: var(--r-yellow); } tr.yellow td:first-child { box-shadow: inset 3px 0 0 var(--b-yellow); }
tr.blue td { background: var(--r-blue); } tr.blue td:first-child { box-shadow: inset 3px 0 0 var(--b-blue); }
tr.green td { background: var(--r-green); } tr.green td:first-child { box-shadow: inset 3px 0 0 var(--b-green); }
tr.red td { background: var(--r-red); } tr.red td:first-child { box-shadow: inset 3px 0 0 var(--b-red); }
tr.yellow td.calc, tr.blue td.calc, tr.green td.calc, tr.red td.calc { background-image: linear-gradient(rgba(122, 91, 208, .07), rgba(122, 91, 208, .07)); }
tr.merged td { color: var(--faint); }
tr.total td { background: #f7f4ea; font-weight: 600; border-top: 1px solid var(--line); position: sticky; bottom: 0; }
td.empty { text-align: center; color: var(--muted); padding: 40px; }
.warn { color: var(--bad); font-size: 12px; white-space: normal; min-width: 200px; }
.note { color: var(--muted); font-size: 12px; white-space: normal; min-width: 160px; }
/* 长文字列（地址、品名、备注）：限宽换行，避免整张表被拉得过宽 */
td.wrap { white-space: normal; word-break: break-all; min-width: 240px; max-width: 280px; font-size: 12px; line-height: 1.45; }
th.wrap { min-width: 240px; max-width: 280px; }
/* 预先委任：复制后变色 */
.btn.copied, .btn.primary.copied { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.pn-block { padding: 8px 10px; border-radius: 8px; border-left: 3px solid transparent; transition: background .2s; }
.pn-block.copied { background: var(--ok-soft); border-left-color: var(--ok); }
.pn-block { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.pn-txt { flex: 1; min-width: 0; }
.pn-txt pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.6; user-select: all; }
.pn-sales { margin-top: 4px; font-size: 12px; color: var(--muted); user-select: none; }
.pn-sec { margin-bottom: 18px; }
.pn-sec-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border-radius: 8px; background: var(--soft, rgba(0,0,0,.04)); }
.pn-sec-h .btn { margin-left: auto; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 10px; border-radius: 20px; background: #eef0f4; color: #4a5168; font-weight: 500; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.draft, .chip.rejected { background: var(--warn-soft); color: var(--warn); }
.chip.submitted, .chip.reviewed { background: var(--primary-soft); color: var(--primary); }
.chip.approved { background: var(--ok-soft); color: var(--ok); }
.chip.no { background: var(--bad-soft); color: var(--bad); }
.chip.yes { background: var(--ok-soft); color: var(--ok); }
.carrier { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 1px 8px; border-radius: 4px; }
.carrier.hj { background: #e8eefc; color: #1f3c88; } .carrier.dr { background: #fbefe0; color: #9a5a12; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border-left: 3px solid; }

/* Stepper */
.steps { display: flex; align-items: center; gap: 0; font-size: 12px; }
.step { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.step .d { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 10px; }
.step.done { color: var(--ok); } .step.done .d { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.cur { color: var(--primary); font-weight: 600; } .step.cur .d { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.bad { color: var(--bad); font-weight: 600; }
.step + .step::before { content: ""; width: 22px; height: 1px; background: var(--line); margin: 0 8px; }

/* Tabs */
.tabs { display: inline-flex; background: #ebe8df; border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 18px; }
.tabs button { font: inherit; border: 0; background: transparent; padding: 7px 20px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 500; }
.tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12px; }
.formula { display: grid; gap: 10px; }
.formula div { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: #faf9f5; border: 1px solid var(--line-2); }
.formula b { min-width: 92px; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pipe { padding: 16px; border-radius: 12px; background: #faf9f5; border: 1px solid var(--line-2); cursor: pointer; }
.pipe:hover { border-color: var(--gold-2); }
.pipe .n { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.pipe .l { color: var(--muted); font-size: 12px; }

/* Modal / toast */
.modal { position: fixed; inset: 0; background: rgba(14, 23, 38, .5); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: #fff; border-radius: 16px; padding: 24px; width: min(520px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal-card > div { display: grid; gap: 14px; }
.modal-card h3 { margin: 0; font-family: var(--serif); font-size: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 60; max-width: 440px; white-space: pre-line; box-shadow: var(--shadow); border-left: 3px solid var(--gold-2); }
.toast.bad { border-left-color: #ff7b6e; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; } .login-brand { padding: 40px 24px; } .login-brand ul { display: none; }
  #app { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; } .nav-group { width: 100%; padding: 8px 10px 2px; }
  .nav-item.active::before { display: none; }
  .top { padding: 18px 16px 14px; flex-direction: column; align-items: flex-start; }
  main { padding: 16px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .search { flex: 1 1 100%; }
}

/* 日常共享目录：按柜汇总 + 展开问题件明细 */
tr[hidden] { display: none; }
tr.ct-row td { background: var(--paper-2, #faf8f3); }
tr.ct-row [data-toggle] { cursor: pointer; white-space: nowrap; }
tr.prob-row td:first-child { border-left: 3px solid var(--gold, #c9a45c); }
.tbl.full { max-height: none; } /* 整页滚动，不在表格内部再出现滚动条 */
.bad-t { color: var(--bad); }

/* 问题件原因选择 */
.rp { display:flex; gap:6px; align-items:center; }
.rp .rp-o { flex:1; min-width:140px; }

/* 运费试算 */
.card[hidden] { display: none; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.ok-t { color: var(--ok); }
.fq-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 14px; }
.fq-form .wide { grid-column: span 2; }
.fq-items td.edit { padding: 4px 6px; }
.fq-items .cell-in { width: 100%; min-width: 70px; }
.fq-area { padding: 10px 14px; border-radius: 10px; background: #faf9f5; border: 1px solid var(--line-2); }
.fq-notes { margin: 12px 0 0; padding-left: 20px; line-height: 1.8; }
.fq-det { margin-top: 14px; }
.fq-det summary { cursor: pointer; color: var(--gold); font-weight: 600; }
.fq-item { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; }
.fq-ih { font-weight: 600; margin-bottom: 8px; }
.fq-item h4 { margin: 0 0 6px; font-size: 13px; }
.fq-item h4 small { color: var(--muted); font-weight: 400; }
.fq-line { display: flex; gap: 12px; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--line-2); font-size: 12.5px; }
.fq-line span { color: var(--muted); white-space: nowrap; }
.fq-line b { font-weight: 500; text-align: right; }
.fq-rules { margin: 12px 0 0; padding-left: 18px; line-height: 1.9; font-size: 13px; }
@media (max-width: 720px) { .fq-form .wide { grid-column: auto; } }
/* 核对完成账单：文件名左对齐、下载按钮右对齐 */
.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.file-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.file-line span { display: flex; align-items: center; gap: 6px; }
/* 栈板费：客户确认图缩略图 */
.pl-img { position: relative; display: inline-block; margin-right: 6px; vertical-align: middle; }
.pl-img img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.pl-img a { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; line-height: 15px; text-align: center; border-radius: 50%; background: #c0392b; color: #fff; font-size: 12px; cursor: pointer; display: none; }
.pl-img:hover a { display: block; }

/* 垫付款项：登记表单（电脑弹窗 / 手机网页共用） */
.advf-imgs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px dashed var(--line, #d8dce6); border-radius: 10px; margin-bottom: 12px; }
.advf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.advf-th { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #eef0f4; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #6b7280; }
.advf-th img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.advf-x { position: absolute; top: 0; right: 0; background: rgba(0,0,0,.55); color: #fff; width: 20px; height: 20px; line-height: 20px; text-align: center; cursor: pointer; border-bottom-left-radius: 6px; }
.advf-status { width: 100%; font-size: 12px; }
.advf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 14px; }
.advf-grid input, .advf input { width: 100%; box-sizing: border-box; }
.advf-items-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 14px 0 6px; }
.advf-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.advf-row .advf-mname { grid-column: 1 / -1; font-size: 12px; margin-top: -2px; }
.advf-row .advf-mname:empty { display: none; }
.advf-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
/* 录入瑞康助手 */
.rk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 12px; }
.rk { border: 1px solid var(--line, #d8dce6); border-radius: 12px; padding: 10px 14px; background: #fff; }
.rk.rk-done { background: #f3faf5; border-color: #b7e0c2; }
.rk-h { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.rk-r { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px dashed #eef0f4; }
.rk-l { color: #6b7280; font-size: 12px; text-align: right; }
.rk-v { word-break: break-all; }
.rk-img { display: inline-flex; flex-direction: column; gap: 4px; margin: 0 8px 4px 0; vertical-align: top; }
.rk-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.rk-fix { background: #f7f8fb; border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
