/* ==========================================================================
   项目看板 · 样式
   ========================================================================== */

:root {
  --bg: #F4F6FA;
  --panel: #ffffff;
  --ink: #111827;
  --ink-2: #3B465C;
  --muted: #6B7690;
  --faint: #98A1B3;
  --line: #E6E9F0;
  --line-2: #EFF1F6;
  --soft: #F7F8FB;

  --fin: #F2685E;
  --fin-2: #FDECEA;
  --log: #F2994A;
  --log-2: #FEF2E6;
  --part: #4FAE7E;
  --part-2: #E9F6EF;

  --ok: #12925F;
  --warn: #B7791F;
  --blue: #3B6FE0;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow-md: 0 18px 40px -24px rgba(17, 24, 39, .28);
  --sidebar-w: 248px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: #F2F4F8; border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.strong { font-weight: 650; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-160 { width: 160px; }

/* ---------------------------------- 外壳 ---------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 14px 14px;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px; background: #10182A;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 3px; padding: 7px;
}
.brand-mark i { display: block; border-radius: 2px; background: #fff; }
.brand-mark i:nth-child(1) { background: var(--fin); }
.brand-mark i:nth-child(2) { background: var(--log); }
.brand-mark i:nth-child(3) { background: var(--part); grid-column: 1 / -1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15px; letter-spacing: -.01em; }
.brand-text em { font-style: normal; font-size: 11px; color: var(--faint); }

.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 0 0 12px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; letter-spacing: .1em; color: #A6AEC0; padding: 0 10px 5px; text-transform: uppercase; }
.nav-item {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 13.3px; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-item:hover { background: #F5F7FA; color: var(--ink); }
.nav-item.is-on { background: #FFF0EE; color: var(--ink); font-weight: 650; }
.nav-item.is-on::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--fin);
}
.nav-badge {
  font-style: normal; font-size: 10.5px; font-weight: 600;
  color: #5C667C; background: #F0F2F7; border-radius: 999px; padding: 1px 7px; line-height: 1.6;
}
.nav-item.is-on .nav-badge { background: #fff; color: #C9463C; }
.nav-badge--soon { background: #F5F6F9; color: #A6AEC0; font-weight: 500; }
.nav-badge--warn { background: #FCF0D8; color: #8A6200; }

.side-foot { border-top: 1px solid var(--line); padding: 14px 4px 2px; }
.sf-title { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.sf-title b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sf-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin: 6px 0 12px; }
.sf-user { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; background: var(--soft); }
.sf-user-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sf-user-text b { font-size: 12.5px; }
.sf-user-text em { font-style: normal; font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-user .icon-btn { margin-left: auto; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 60px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(244, 246, 250, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); }
.crumb b { color: var(--ink); font-weight: 650; }
.crumb .ico { color: #C3C9D6; }
.top-right { display: flex; align-items: center; gap: 14px; }
.top-date { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }

.page { padding: 24px 28px 64px; width: 100%; max-width: 1440px; margin: 0 auto; }
.page-in { animation: pageIn .32s cubic-bezier(.22, .8, .3, 1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------- 页头 ---------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head-main { min-width: 0; }
.eyebrow { font-size: 10.5px; letter-spacing: .16em; color: var(--fin); font-weight: 700; margin-bottom: 6px; }
.page-head h1 { font-size: 26px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
.page-head p { margin-top: 5px; font-size: 12.8px; color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.head-note { font-size: 11.5px; color: var(--faint); }
.pulse {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: #0F7B4F;
  background: #E9F6EF; border-radius: 999px; padding: 6px 11px;
}
.pulse i { width: 6px; height: 6px; border-radius: 50%; background: #22A06B; animation: pulseDot 2s infinite; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: 999px;
  background: #E9F6EF; color: #0F7B4F; font-size: 11.5px; font-weight: 600;
  transition: background .2s, color .2s;
}
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #22A06B; animation: pulseDot 2s infinite; }
.live-pill.is-off { background: #F1F3F7; color: var(--faint); }
.live-pill.is-off i { background: #BFC6D4; animation: none; }
.live-pill.is-flash { background: #10182A; color: #fff; }
.live-pill.is-flash i { background: #4FAE7E; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, .45); }
  70% { box-shadow: 0 0 0 6px rgba(34, 160, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0); }
}

/* ---------------------------------- 通用 ---------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.card-head .link { font-size: 12px; color: var(--muted); }
.card-head .link:hover { color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-2--start { align-items: start; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2);
  font-size: 12.8px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: #FBFCFE; border-color: #D8DDE7; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: #111827; border-color: #111827; color: #fff; }
.btn--primary:hover { background: #1F2937; border-color: #1F2937; }
.btn--ghost { background: #fff; }
.btn--block { width: 100%; }
.btn--lg { height: 44px; font-size: 13.5px; border-radius: 11px; }
.btn--xs { height: 27px; padding: 0 10px; font-size: 11.5px; border-radius: 8px; gap: 4px; }
.btn--ok { background: #E7F6EE; border-color: #BEE7D2; color: #0F7B4F; }
.btn--ok:hover { background: #DCF2E7; border-color: #A9DFC4; }
.btn--danger { background: #E5484D; border-color: #E5484D; color: #fff; }
.btn--danger:hover { background: #D13C41; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .ico { flex: none; }

.icon-btn {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: #F1F3F8; color: var(--ink); }
.icon-btn--sm { width: 26px; height: 26px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 23px; padding: 0 9px; border-radius: 999px;
  background: var(--bg); color: var(--c); border: 1px solid var(--bd);
  font-size: 11.2px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.chip--sm { height: 20px; padding: 0 7px; font-size: 10.6px; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.chip--btn { cursor: pointer; font-family: inherit; transition: box-shadow .15s, filter .15s; }
.chip--btn:hover { box-shadow: 0 0 0 3px rgba(17, 24, 39, .05); filter: brightness(.985); }
.chip--btn .ico { opacity: .5; }

.pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.pill--ok { background: #E7F6EE; color: #0F7B4F; }
.pill--warn { background: #FCF0D8; color: #8A6200; }
.pill--muted { background: #F1F3F7; color: #6B7690; }
.pill--blue { background: #E8F1FB; color: #1F5C9E; }
.pill--ink { background: #E9ECF3; color: #111827; }

.bar { height: 6px; width: 100%; border-radius: 99px; background: #EEF1F6; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; transition: width .7s cubic-bezier(.22, .8, .3, 1); }

.input {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font: inherit; font-size: 13px; color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: #B9C2D4; box-shadow: 0 0 0 3px rgba(59, 111, 224, .08); }
.input:disabled { background: #F7F8FB; color: #6B7690; border-color: #EDF0F6; cursor: default; }
.input--lg { height: 44px; font-size: 14px; border-radius: 10px; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }

/* ---------------------------------- KPI ---------------------------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kpi {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 18px; box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 11.8px; color: var(--muted); }
.kpi-value { font-size: 25px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi-sub { font-size: 11.2px; color: var(--faint); }
.kpi--ok .kpi-value { color: var(--ok); }
.kpi--warn .kpi-value { color: var(--warn); }

/* ---------------------------------- 看板 ---------------------------------- */
.board-card { padding: 20px 22px 16px; overflow: hidden; }
.board-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 2px 4px 18px; border-bottom: 1px dashed var(--line);
}
.bs-item { display: flex; flex-direction: column; gap: 1px; padding-left: 14px; border-left: 2px solid #EDF0F5; }
.bs-item:first-child { border-left-color: var(--fin); }
.bs-item:nth-child(2) { border-left-color: #22A06B; }
.bs-item:nth-child(3) { border-left-color: #E3A008; }
.bs-item:nth-child(4) { border-left-color: var(--log); }
.bs-item span { font-size: 11.5px; color: var(--muted); }
.bs-item b { font-size: 21px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bs-item em { font-style: normal; font-size: 11px; color: var(--faint); }

.tree { display: flex; flex-direction: column; align-items: center; padding: 24px 0 6px; }
.tree-root {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: #10182A; color: #fff;
  padding: 10px 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 12px 28px -18px rgba(16, 24, 42, .9);
}
.root-mark { width: 8px; height: 8px; border-radius: 2px; background: var(--fin); }
.tree-root::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 2px; height: 30px; background: #DCE1EA; transform: translateX(-50%);
}

.branches { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 30px; }
.branches::before {
  content: ""; position: absolute; top: 0; left: 16.6667%; right: 16.6667%; height: 2px;
  background: linear-gradient(90deg,
    var(--fin) 0%, var(--log) 50%, var(--part) 100%);
}
.branch { position: relative; padding: 26px 10px 0; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.branch::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 2px; height: 26px; background: var(--c); transform: translateX(-50%);
}
.branch--fin { --c: var(--fin); --c-2: var(--fin-2); }
.branch--log { --c: var(--log); --c-2: var(--log-2); }
.branch--part { --c: var(--part); --c-2: var(--part-2); }

.branch-card {
  width: 100%; max-width: 308px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 13px 16px 12px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.branch-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #DDE2EB; }
.branch-head { display: flex; align-items: center; justify-content: space-between; color: var(--faint); }
.branch-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.branch-name::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.branch-metric { display: flex; align-items: baseline; gap: 7px; }
.branch-metric b { font-size: 29px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.branch-metric b.is-muted { font-size: 20px; color: var(--faint); letter-spacing: -.01em; }
.branch-metric span { font-size: 11px; color: var(--faint); }
.branch-nums { display: flex; justify-content: space-between; gap: 10px; font-size: 11.3px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.branch-nums em { font-style: normal; color: var(--faint); margin-right: 5px; }
.leaves { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.leaf {
  font-size: 11.3px; padding: 5px 10px; border-radius: 8px;
  background: var(--c-2); color: #4A5468; border: 1px solid transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.leaf:hover { border-color: var(--c); color: var(--ink); background: #fff; }
.branch-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 10.8px; color: var(--faint); }
.branch-foot span { display: inline-flex; align-items: center; gap: 4px; }

.legend {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  margin-top: 20px; padding-top: 15px; border-top: 1px dashed var(--line);
}
.legend-title { font-size: 11px; color: var(--faint); letter-spacing: .04em; margin-right: 2px; }
.legend-note { margin-left: auto; font-size: 11px; color: var(--faint); }

/* 动态 / 待跟进 */
.feed { padding: 6px 8px 8px; }
.feed-item { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; }
.feed-item:hover { background: var(--soft); }
.feed-ic {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #EDF3FF; color: var(--blue);
}
.feed-ic.payment { background: #FEF2E6; color: #C77725; }
.feed-body { min-width: 0; }
.feed-body p { font-size: 12.4px; color: var(--ink-2); line-height: 1.45; }
.feed-body span { font-size: 10.8px; color: var(--faint); }
.empty { padding: 18px; text-align: center; color: var(--faint); font-size: 12px; }

.pending-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pending-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border: 0; background: transparent; border-radius: 10px;
  text-align: left; cursor: pointer;
}
.pending-row:hover { background: var(--soft); }
.pr-main { display: flex; flex-direction: column; min-width: 0; }
.pr-main b { font-size: 12.8px; }
.pr-main em { font-style: normal; font-size: 10.8px; color: var(--faint); }
.pr-side { display: flex; align-items: center; gap: 10px; }
.pr-side b { font-size: 13px; font-variant-numeric: tabular-nums; }
.empty-state { padding: 30px; text-align: center; color: var(--faint); font-size: 12.5px; }

/* ---------------------------------- 财务 ---------------------------------- */
.donut-wrap { display: flex; align-items: center; gap: 26px; padding: 20px; flex-wrap: wrap; }
.donut { position: relative; width: 140px; height: 140px; flex: none; }
.donut svg { display: block; }
.donut-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.donut-label b { font-size: 25px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.donut-label span { font-size: 10.8px; color: var(--faint); }
.donut-side { flex: 1; min-width: 210px; display: flex; flex-direction: column; gap: 10px; }
.ds-row { display: flex; align-items: center; gap: 8px; font-size: 12.2px; color: var(--ink-2); }
.ds-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ds-note { margin-top: 4px; font-size: 11px; color: var(--faint); padding-top: 8px; border-top: 1px dashed var(--line); }
.ds-pending { border-top: 1px solid var(--line-2); padding: 9px 20px 12px; }
.ds-pending-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.6px; color: var(--faint); margin-bottom: 3px; }
.ds-pending-head .link { color: var(--muted); font-size: 10.6px; }
.ds-pending-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border: 0; background: transparent; border-radius: 8px;
  text-align: left; cursor: pointer;
}
.ds-pending-row:hover { background: var(--soft); }
.dp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; font-weight: 600; line-height: 1.3; }
.dp-name em { font-style: normal; font-size: 10px; color: var(--faint); font-weight: 400; }
.ds-pending-row b { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.ok { background: #22A06B; }
.dot.warn { background: #E3A008; }
.dot.gray { background: #C9D0DC; }

.mini-list { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.ml-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; }
.ml-top b { font-weight: 650; }
.ml-top span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-list .bar { margin: 6px 0 4px; }
.ml-sub { display: flex; justify-content: space-between; font-size: 10.8px; }

.stackbar { display: flex; height: 12px; margin: 18px 20px 6px; border-radius: 99px; overflow: hidden; background: #EEF1F6; }
.stackbar span { display: block; height: 100%; }
.status-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 14px 20px 20px; }
.stile {
  border: 1px solid var(--bd); background: var(--bg); border-radius: 12px;
  padding: 11px 13px; display: flex; flex-direction: column; gap: 2px;
}
.stile-top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--c); font-weight: 650; }
.stile-top i { width: 6px; height: 6px; border-radius: 50%; }
.stile b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stile em { font-style: normal; font-size: 10.5px; color: var(--faint); }

.cell-bar { display: flex; align-items: center; gap: 8px; }
.cell-bar .bar { flex: 1; min-width: 54px; }
.cell-bar span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; width: 40px; text-align: right; }

/* ---------------------------------- 表格 ---------------------------------- */
.table-card { overflow: hidden; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; min-width: 250px; flex: 1; max-width: 380px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: #A6AEC0;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12.8px; color: var(--ink); }
.search input::placeholder { color: #A6AEC0; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #F2F4F8; }
.seg button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: 8px;
  font-size: 11.8px; font-weight: 500; color: #5C667C; cursor: pointer; transition: .15s;
}
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(17, 24, 39, .08); }
.select { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; font-size: 12.5px; color: var(--ink-2); outline: none; }

.table-scroll { width: 100%; overflow: auto; }
.tbl { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: 12.7px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: #FAFBFD; color: #7B8599;
  font-size: 10.8px; font-weight: 600; letter-spacing: .04em;
  text-align: left; padding: 10px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.tbl thead th.num { text-align: right; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .row { transition: background .12s; }
.tbl .row:hover { background: #FBFCFE; cursor: pointer; }
.tbl .empty-cell { text-align: center; color: var(--faint); padding: 40px 16px; font-size: 12.5px; }
.tbl--compact { min-width: 560px; }
.tbl--compact td, .tbl--compact thead th { padding: 9px 14px; }

.tbl .grp td { padding: 0; background: #F7F9FC; border-bottom: 1px solid var(--line); }
.grp-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 14px; flex-wrap: wrap; }
.grp-left { display: flex; align-items: center; gap: 8px; font-size: 12.3px; color: var(--ink-2); flex-wrap: wrap; }
.grp-batch { font-size: 10px; font-weight: 700; letter-spacing: .06em; background: #10182A; color: #fff; padding: 2px 7px; border-radius: 5px; }
.grp-pi { font-family: var(--mono); font-size: 11px; color: #5C667C; background: #fff; border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.grp-date { color: var(--faint); font-size: 11px; }
.grp-right { display: flex; align-items: center; gap: 10px; font-size: 11.2px; color: #5C667C; }
.grp-right b { color: var(--ink); font-variant-numeric: tabular-nums; }
.grp-bar { width: 64px; }
.grp-pct { width: 34px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.buyer-cell { display: inline-flex; align-items: center; gap: 9px; }
.avatar {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #EDF0F6; color: #4A5468; font-size: 11px; font-weight: 700;
}
.bc-text { display: flex; flex-direction: column; line-height: 1.3; }
.bc-text em { font-style: normal; font-size: 10.4px; color: var(--faint); }
.upd { display: flex; flex-direction: column; line-height: 1.3; }
.upd span { font-size: 11.2px; color: var(--muted); }
.upd em { font-style: normal; font-size: 10.4px; color: var(--faint); }
.sub { font-size: 10.6px; color: var(--faint); }
.table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid var(--line);
  background: #FCFDFE; font-size: 11.8px; color: #5C667C;
}

/* ---------------------------------- 公式 ---------------------------------- */
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.formula-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.f-tag { font-size: 10px; letter-spacing: .1em; color: var(--fin); font-weight: 700; }
.formula-card h3 { font-size: 13.5px; font-weight: 650; }
.f-eq {
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  background: #F7F9FC; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 10px 12px; word-break: break-word; line-height: 1.7;
}
.f-eq b { color: var(--ink); }
.formula-card p { font-size: 11.5px; }
.note-card { padding: 18px 20px; margin-top: 16px; }
.note-card h3 { font-size: 13.5px; margin-bottom: 6px; }
.note-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.bullet-list { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 9px; }
.bullet-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.bullet-list .ico { color: var(--ok); flex: none; }

/* ---------------------------------- 我的收款 ---------------------------------- */
.mine-hero { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; flex-wrap: wrap; }
.mine-ava {
  width: 52px; height: 52px; flex: none; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10182A, #2B3A57); color: #fff; font-size: 20px; font-weight: 700;
}
.mine-hello { flex: 1; min-width: 220px; }
.mine-hello h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mine-hello p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mine-kpis { display: flex; gap: 26px; }
.mine-kpis div { display: flex; flex-direction: column; gap: 1px; }
.mine-kpis span { font-size: 11px; color: var(--faint); }
.mine-kpis b { font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mine-section { margin-bottom: 18px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; margin: 0 0 10px 2px; }
.sec-title span { font-size: 11px; font-weight: 600; color: var(--muted); background: #ECEEF4; border-radius: 999px; padding: 1px 8px; }
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mine-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; transition: .18s; box-shadow: var(--shadow-sm);
}
.mine-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mine-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-buyer { font-size: 13px; font-weight: 700; }
.mc-amt { font-size: 22px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mc-meta { font-size: 11.5px; color: var(--muted); }
.mc-pi { font-size: 10.8px; color: var(--faint); font-family: var(--mono); }
.mc-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mine-list { padding: 6px; }
.mine-list-head { display: flex; gap: 14px; padding: 7px 12px; font-size: 10.4px; color: var(--faint); border-bottom: 1px solid var(--line-2); }
.mine-list-head span:nth-child(1) { flex: 1.4; }
.mine-list-head span:nth-child(2), .mine-list-head span:nth-child(3) { width: 110px; text-align: right; }
.mine-list-head span:nth-child(4) { width: 96px; text-align: center; }
.mine-list-head span:nth-child(5) { width: 78px; text-align: right; }
.mine-row .chip { width: 96px; justify-content: center; }
.mine-row {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border: 0; background: transparent; border-radius: 10px;
  text-align: left; cursor: pointer;
}
.mine-row:hover { background: var(--soft); }
.mine-row + .mine-row { border-top: 1px solid var(--line-2); }
.mr-buyer { flex: 1.4; min-width: 0; display: flex; flex-direction: column; }
.mr-buyer b { font-size: 12.8px; }
.mr-buyer em { font-style: normal; font-size: 10.5px; color: var(--faint); }
.mr-amt { width: 110px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.8px; font-weight: 600; }
.mr-recv { width: 110px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12.2px; color: var(--muted); }
.mr-time { width: 78px; text-align: right; font-size: 10.8px; color: var(--faint); }

/* ---------------------------------- 空模块 ---------------------------------- */
.empty-module { padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.em-icon {
  width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--log-2); color: #C77725;
}
.empty-module--part .em-icon { background: var(--part-2); color: #2F8F63; }
.empty-module h2 { font-size: 18px; font-weight: 700; }
.empty-module p { max-width: 560px; font-size: 12.8px; color: var(--muted); line-height: 1.7; }
.em-nodes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.em-node {
  font-size: 11.8px; padding: 6px 12px; border-radius: 999px;
  background: #F5F7FA; border: 1px dashed #D8DEE9; color: #5C667C;
}
.empty-module--log .em-node { border-color: #F3D9BE; background: #FEF7F0; }
.empty-module--part .em-node { border-color: #CBE8D9; background: #F2FAF6; }

/* ---------------------------------- 抽屉 ---------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; z-index: 0; background: rgba(17, 24, 39, .3); opacity: 0; transition: opacity .24s; }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  z-index: 1;
  position: absolute; top: 0; right: 0; height: 100%; width: 452px; max-width: 94vw;
  background: #fff; box-shadow: -30px 0 60px -30px rgba(17, 24, 39, .45);
  transform: translateX(102%); transition: transform .3s cubic-bezier(.22, .8, .3, 1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px; background: #fff; border-bottom: 1px solid var(--line-2);
}
.drawer-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.drawer-head p { font-size: 11.8px; color: var(--muted); margin-top: 3px; }
.drawer-body { padding: 18px 22px 32px; display: flex; flex-direction: column; gap: 14px; }
.amount-box {
  background: linear-gradient(180deg, #FBFCFE, #F7F9FC);
  border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 5px;
}
.ab-top { display: flex; align-items: center; justify-content: space-between; font-size: 11.2px; color: var(--muted); }
.amount-box > b { font-size: 27px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.amount-box .bar { margin: 6px 0 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--bd); background: #fff; color: var(--c);
  font-size: 11.8px; font-weight: 600; transition: .15s;
}
.sp-btn i { width: 6px; height: 6px; border-radius: 50%; }
.sp-btn:hover { background: var(--bg); }
.sp-btn.is-on { background: var(--bg); border-color: var(--c); box-shadow: 0 0 0 2px rgba(17, 24, 39, .04); }
.notice {
  display: flex; align-items: center; gap: 7px; font-size: 12px;
  background: #F7F9FC; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; color: var(--muted);
}
.drawer-sec { margin-top: 8px; }
.drawer-sec h4 { font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 9px; }
.timeline { display: flex; flex-direction: column; gap: 2px; }
.timeline li { position: relative; display: flex; gap: 10px; padding: 7px 0 7px 2px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.tl-body p { font-size: 11.8px; color: var(--ink-2); line-height: 1.5; }
.tl-meta { font-size: 10.6px; color: var(--faint); margin-top: 1px; }
.pay-list { display: flex; flex-direction: column; gap: 6px; }
.pay-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #FCFDFF;
}
.pay-list li div { display: flex; flex-direction: column; }
.pay-list b { font-size: 13px; font-variant-numeric: tabular-nums; }
.pay-list span { font-size: 10.8px; color: var(--muted); }
.pay-side { flex-direction: row !important; align-items: center; gap: 8px; }

/* ---------------------------------- 弹窗 ---------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-scrim { position: absolute; inset: 0; background: rgba(17, 24, 39, .42); opacity: 0; transition: opacity .2s; }
.modal.is-open .modal-scrim { opacity: 1; }
.modal-panel {
  position: relative; width: 480px; max-width: 100%; max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(17, 24, 39, .5);
  transform: translateY(10px) scale(.99); opacity: 0; transition: .22s;
}
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 10px; }
.modal-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.modal-body { padding: 6px 22px 18px; display: flex; flex-direction: column; gap: 13px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid var(--line-2); }
.modal-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: #F8FAFC; border-radius: 11px; padding: 12px 14px; }
.modal-sum div { display: flex; flex-direction: column; }
.modal-sum span { font-size: 10.5px; color: var(--faint); }
.modal-sum b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hint { font-size: 11px; color: var(--faint); }

/* ---------------------------------- 浮层 ---------------------------------- */
.popmenu {
  position: fixed; z-index: 130;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(17, 24, 39, .35);
  padding: 5px; display: flex; flex-direction: column; gap: 1px;
  animation: pop .14s ease;
}
.popmenu[hidden] { display: none; }
.menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 0; background: transparent; border-radius: 8px;
  font-size: 12.4px; color: var(--ink-2); text-align: left; cursor: pointer;
}
.menu-item:hover { background: #F5F7FA; }
.menu-item.is-on { background: #F7F8FB; font-weight: 650; color: var(--ink); }
.menu-item .ico { margin-left: auto; color: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px;
  background: #10182A; color: #fff; font-size: 12.6px;
  box-shadow: 0 20px 40px -20px rgba(16, 24, 42, .7);
  animation: toastIn .26s cubic-bezier(.22, .8, .3, 1);
}
.toast--err { background: #B42318; }
.toast-ic { display: inline-flex; color: #7BD8AC; }
.toast--err .toast-ic { color: #FFB4AB; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: .24s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------- 登录 ---------------------------------- */
.login { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 100vh; }
.login-art {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 520px at 8% -10%, #1D2B46 0%, #0D1524 52%, #070C16 100%);
  color: #fff; padding: 54px 60px; display: flex; flex-direction: column;
}
.login-art::before {
  content: ""; position: absolute; right: -180px; bottom: -200px;
  width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07);
}
.login-art::after {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .05);
}
.la-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.la-brand .brand-mark { background: rgba(255, 255, 255, .1); }
.login-art h1 { font-size: 44px; line-height: 1.18; letter-spacing: -.03em; font-weight: 750; margin: 64px 0 16px; }
.login-art h1 .grad {
  background: linear-gradient(96deg, #F2685E 0%, #F2994A 42%, #4FAE7E 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.la-sub { font-size: 14px; color: rgba(255, 255, 255, .58); max-width: 380px; line-height: 1.7; }
.la-points { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.la-points li { display: flex; align-items: center; gap: 10px; font-size: 12.8px; color: rgba(255, 255, 255, .78); }
.la-visual {
  margin-top: 42px; width: 100%; max-width: 396px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px; padding: 13px 16px 14px;
  backdrop-filter: blur(6px);
  transform: rotate(-1.2deg);
  box-shadow: 0 34px 64px -34px rgba(0, 0, 0, .85);
}
.lv-head { display: flex; align-items: center; justify-content: space-between; font-size: 10.4px; color: rgba(255, 255, 255, .42); margin-bottom: 6px; }
.lv-live { display: inline-flex; align-items: center; gap: 5px; color: #7BD8AC; font-size: 9.4px; letter-spacing: .1em; font-weight: 600; }
.lv-live i { width: 5px; height: 5px; border-radius: 50%; background: #4FAE7E; }
.lv-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 11.4px; color: rgba(255, 255, 255, .78); }
.lv-b { flex: 1; }
.lv-a { font-variant-numeric: tabular-nums; color: #fff; }
.lv-chip { font-size: 9.4px; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.lv-ok { background: rgba(79, 174, 126, .18); color: #7BD8AC; }
.lv-warn { background: rgba(242, 153, 74, .18); color: #F5B876; }
.lv-slip { background: rgba(96, 150, 220, .18); color: #8FB8EA; }
.lv-foot { display: flex; align-items: baseline; justify-content: space-between; font-size: 10.4px; color: rgba(255, 255, 255, .42); margin-top: 9px; }
.lv-foot b { color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.lv-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F2685E, #F2994A, #4FAE7E); }
.lp-dot { width: 7px; height: 7px; border-radius: 2px; }
.lp-dot--fin { background: var(--fin); }
.lp-dot--log { background: var(--log); }
.lp-dot--part { background: var(--part); }
.la-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, .34); }

.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: #fff; }
.lf-inner { width: 100%; max-width: 372px; }
.lf-inner h2 { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.lf-inner > p { font-size: 12.5px; margin: 4px 0 22px; }
.lf-inner label { display: block; font-size: 11.8px; font-weight: 600; color: var(--ink-2); margin: 13px 0 6px; }
.lf-inner .btn { margin-top: 18px; }
.form-err { color: #B42318; font-size: 11.8px; margin-top: 10px; }
.demo-accounts { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.da-title { font-size: 10.5px; color: var(--faint); letter-spacing: .06em; margin-bottom: 4px; }
.demo-accounts button {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; text-align: left; transition: .15s;
}
.demo-accounts button:hover { background: #FAFBFE; border-color: #D5DBE6; transform: translateX(1px); }
.da-role { font-size: 10.2px; font-weight: 650; padding: 2px 7px; border-radius: 5px; }
.da-role--ink { background: #E9ECF3; color: #111827; }
.da-role--fin { background: var(--fin-2); color: #C9463C; }
.da-role--blue { background: #E8F1FB; color: #1F5C9E; }
.da-role--log { background: #FEF2E6; color: #B5651B; }
.da-name { font-size: 12.4px; color: var(--ink-2); }
.da-arrow { margin-left: auto; color: var(--faint); font-size: 12px; }
.login-foot { font-size: 10.5px; color: var(--faint); margin-top: 18px; line-height: 1.7; }

/* ---------------------------------- 物流 ---------------------------------- */
.tbl--log { min-width: 1060px; }
.ship-cell { display: flex; flex-direction: column; gap: 2px; }
.ship-top { display: flex; align-items: center; gap: 6px; }
.ship-top b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ship-cell em { font-style: normal; font-size: 10.5px; color: #98A1B3; }
.grp-tag { font-size: 9px; font-weight: 700; letter-spacing: .05em; padding: 1px 5px; border-radius: 4px; background: #F1F3F7; color: #5C667C; }
.grp-tag--flycam { background: #FEF2E6; color: #B5651B; }
.grp-tag--battery { background: #EEF3FB; color: #35558A; }

.trk { display: flex; width: 100%; min-width: 210px; }
.trk-item { position: relative; flex: 1; min-width: 0; }
.trk-item::before { content: ""; position: absolute; left: 50%; right: -50%; top: 4px; height: 2px; background: #E9ECF2; }
.trk-item:last-child::before { display: none; }
.trk-dot { display: block; width: 8px; height: 8px; border-radius: 50%; margin-left: 0; position: relative; z-index: 1; }
.trk-route { display: block; margin-top: 5px; font-size: 10px; font-weight: 600; color: #3B465C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 104px; }
.trk-date { display: block; font-size: 9.5px; color: #98A1B3; }
.trk-cell { width: 250px; }

.docdots { display: flex; gap: 3px; flex-wrap: wrap; }
.docdot { font-size: 9px; line-height: 1; padding: 3px 5px; border-radius: 4px; background: #F3F5F9; color: #BFC6D4; font-weight: 600; }
.docdot.on { background: #E7F6EE; color: #0F7B4F; }

.log-card-wrap .toolbar-note { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.log-card-wrap .legend { margin: 0; padding: 12px 16px 14px; }
.nowrap { white-space: nowrap; }
.sm { font-size: 11px; }

.log-board { display: grid; grid-template-columns: repeat(6, minmax(176px, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 12px; padding: 16px; overflow-x: auto; background: #FBFCFE; }
.lb-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #F6F8FB; border: 1px solid #EDF0F6; border-radius: 12px; padding: 9px 8px 10px; }
.lb-col > header { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 650; color: #5C667C; padding: 0 2px 2px; }
.lb-col > header em { font-style: normal; font-size: 10.5px; color: #98A1B3; background: #EEF1F6; border-radius: 999px; padding: 0 7px; }
.lb-cards { display: flex; flex-direction: column; gap: 8px; }
.log-card { position: relative; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--log); border-radius: 10px; padding: 10px 11px; cursor: pointer; transition: .15s; }
.log-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.log-card.is-delayed { border-left-color: #E3A008; background: #FFFDF7; }
.log-card header { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.log-card header b { font-size: 12.5px; }
.lc-route { font-size: 10.5px; color: #5C667C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-meta { font-size: 10px; color: #98A1B3; margin-top: 1px; }
.lc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 11px; font-weight: 600; }
.lc-flag { position: absolute; top: 7px; right: 7px; font-size: 9px; background: #FCF2D6; color: #8A6200; padding: 1px 6px; border-radius: 999px; }
.lb-empty { text-align: center; color: #C3C9D6; font-size: 12px; padding: 14px 0; }

.ship-stage { background: linear-gradient(180deg, #FBFCFE, #F7F9FC); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; }
.ship-stage-top { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.ship-stage .trk-route { font-size: 9.5px; }
.leg-card { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.leg-card.is-current { border-color: #D5DCE8; box-shadow: 0 0 0 3px rgba(59, 111, 224, .05); }
.leg-top { display: flex; align-items: center; gap: 8px; }
.leg-seq { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #98A1B3; background: #F3F5F9; border-radius: 4px; padding: 2px 5px; }
.leg-top b { font-size: 12px; flex: 1; }
.leg-status { display: flex; flex-wrap: wrap; gap: 3px; }
.sp-btn--sm { padding: 3px 6px; font-size: 10px; border-radius: 6px; gap: 4px; }
.leg-fields { display: flex; align-items: flex-end; gap: 6px; }
.leg-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; color: #98A1B3; width: 112px; min-width: 0; }
.leg-fields label.lf-grow { flex: 1; width: auto; }
.leg-fields .input { width: 100%; min-width: 0; }
.leg-note-wrap { display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; color: #98A1B3; }
.input--sm { height: 29px; font-size: 11.5px; padding: 0 8px; border-radius: 7px; }

.awb-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; background: #FAFBFD; }
.awb-box.is-ok { background: #F1FAF5; border-color: #C9E9D8; }
.awb-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #F1F3F7; color: #8A94A8; flex: none; }
.awb-box.is-ok .awb-ic { background: #DDF3E7; color: #0F7B4F; }
.awb-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.awb-text b { font-size: 12.5px; }
.awb-text span { font-size: 10.5px; color: var(--faint); }

.doc-table { display: flex; flex-direction: column; gap: 6px; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: #FCFDFF; }
.doc-type { width: 72px; flex: none; display: flex; flex-direction: column; }
.doc-type b { font-size: 11px; }
.doc-type span { font-size: 9.5px; color: var(--faint); }
.doc-list { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.doc-item { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; font-size: 10.5px; max-width: 100%; }
.doc-item.is-primary { border-color: #BEE7D2; background: #F3FBF7; }
.doc-item a { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.doc-flag { font-style: normal; font-size: 8.5px; background: #DDF3E7; color: #0F7B4F; padding: 1px 4px; border-radius: 3px; }
.doc-act { border: 0; background: transparent; color: var(--blue); font-size: 9.5px; cursor: pointer; padding: 0; }
.doc-x { border: 0; background: transparent; color: #B6BECB; font-size: 13px; cursor: pointer; line-height: 1; padding: 0 0 0 2px; }
.doc-x:hover { color: #E5484D; }
.doc-empty { font-size: 10.5px; color: #B6BECB; }
.doc-none { font-size: 11px; padding: 4px 0; }
#voucherBtn.is-picked { border-color: #BEE7D2; background: #F3FBF7; color: #0F7B4F; justify-content: flex-start; font-size: 11px; overflow: hidden; }

.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.money-grid--4 { grid-template-columns: repeat(4, 1fr); }
.money-grid > div { background: #F8FAFC; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.money-grid span { font-size: 9.5px; color: var(--faint); }
.money-grid b { font-size: 13.5px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.switch { width: 34px; height: 19px; border-radius: 999px; border: 0; background: #E3E7EE; position: relative; cursor: pointer; transition: .18s; padding: 0; }
.switch i { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(17, 24, 39, .2); transition: .18s; }
.switch.is-on { background: #12925F; }
.switch.is-on i { left: 17px; }
.switch:disabled { opacity: .55; cursor: not-allowed; }

.tbl--perm { min-width: 780px; }
.tbl--perm th.c, .tbl--perm td.c { text-align: center; }
.select--sm { height: 30px; font-size: 11.5px; border-radius: 7px; padding: 0 6px; }
.pill--log { background: #FEF2E6; color: #B5651B; }
.branch-card.is-locked { background: #FAFBFD; border-style: dashed; border-top-color: #D8DEE9; cursor: default; }
.branch-card.is-locked:hover { transform: none; box-shadow: var(--shadow-sm); }
.leaf.is-disabled { background: #F3F5F9; color: #B6BECB; cursor: default; }
.feed-ic.logistics { background: #FEF2E6; color: #C77725; }
.feed-ic.perm { background: #F1F3F7; color: #6B7690; }

/* ---------------------------------- 模块卡片（看板） ---------------------------------- */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 0 6px; }
.mod-card { display: flex; flex-direction: column; gap: 9px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 14px; padding: 14px 16px 12px; transition: .18s; position: relative; }
.mod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mod-card--fin { --c: var(--fin); --c-2: var(--fin-2); }
.mod-card--log { --c: var(--log); --c-2: var(--log-2); }
.mod-card--part { --c: var(--part); --c-2: var(--part-2); }
.mod-head { display: flex; align-items: center; gap: 9px; }
.mod-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--c-2); color: var(--c); flex: none; }
.mod-title { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.mod-title b { font-size: 13.5px; }
.mod-title em { font-style: normal; font-size: 10.5px; color: var(--faint); }
.mod-go { color: var(--faint); }
.mod-metric { display: flex; align-items: baseline; gap: 7px; }
.mod-metric b { font-size: 28px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.mod-metric b.is-muted { font-size: 18px; color: var(--faint); letter-spacing: 0; }
.mod-metric span { font-size: 10.5px; color: var(--faint); }
.mod-stats { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px dashed var(--line-2); }
.mod-stats div { display: flex; flex-direction: column; }
.mod-stats span { font-size: 9.5px; color: var(--faint); }
.mod-stats b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mod-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.mod-links span { font-size: 10px; color: #5C667C; background: var(--c-2); border-radius: 6px; padding: 2px 7px; }
.mod-card.is-locked { border-top-color: #D8DEE9; background: #FAFBFD; }
.mod-card.is-locked .mod-icon { background: #F1F3F7; color: #A6AEC0; }

/* ---------------------------------- 收付款流程 ---------------------------------- */
.flow { display: flex; flex-direction: column; background: #F8FAFC; border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; }
.flow-step { display: flex; align-items: center; gap: 10px; opacity: .55; }
.flow-step.is-done { opacity: 1; }
.fs-num { width: 20px; height: 20px; border-radius: 50%; background: #DDE2EB; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.flow-step.is-done .fs-num { background: #12925F; }
.fs-body { display: flex; flex-direction: column; line-height: 1.35; }
.fs-body b { font-size: 12px; }
.fs-body em { font-style: normal; font-size: 10px; color: var(--faint); }
.flow-line { width: 2px; height: 12px; background: #E3E7EE; margin-left: 9px; }

.doc-slot { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; background: #FCFDFF; }
.doc-slot .doc-type { width: 64px; }
.doc-slot .doc-list { flex: 1; }

.confirm-box { border: 1px solid #C9E9D8; background: #F6FCF9; border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.confirm-actions { display: flex; gap: 8px; }
.confirm-actions .btn { flex: 1; justify-content: center; }
.notice--ok { background: #F1FAF5; border-color: #C9E9D8; color: #0F7B4F; }
.menu-item:disabled { opacity: .45; cursor: not-allowed; }
.menu-off { font-style: normal; margin-left: auto; font-size: 9.5px; color: var(--faint); }

/* ---------------------------------- 节点状态设置 ---------------------------------- */
.ls-rows { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.ls-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 9px; background: #FCFDFF; }
.ls-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ls-label { flex: 1; min-width: 0; }
.ls-color { width: 32px; height: 28px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; flex: none; }

/* ---------------------------------- 项目进度 ---------------------------------- */
.prog-card { padding: 18px 20px 0; margin-bottom: 16px; overflow: hidden; }
.prog-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 16px; }
.ring-item { display: flex; align-items: center; gap: 16px; }
.ring-item.is-muted { opacity: .72; }
.ring-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ring-sub { font-size: 11px; color: var(--muted); }
.ring-stats { display: flex; gap: 20px; }
.ring-stats div { display: flex; flex-direction: column; }
.ring-stats span { font-size: 9.5px; color: var(--faint); }
.ring-stats b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ring-info .link { font-size: 10.5px; color: var(--faint); }
.ring-info .link:hover { color: var(--ink); }
.prog-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.prog-stages { flex: 1; min-width: 320px; }
.prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.prog-head h3 { font-size: 13.5px; font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.prog-head h3 b { font-size: 21px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.prog-head span { font-size: 11px; color: var(--faint); }

.stage-flow { display: grid; grid-template-columns: repeat(6, 1fr); }
.sf-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding-top: 13px; }
.sf-item::before { content: ""; position: absolute; top: 3px; left: -50%; right: 50%; height: 2px; background: #E9ECF2; }
.sf-item:first-child::before { display: none; }
.sf-item.is-part::before, .sf-item.is-done::before { background: #C9D3E3; }
.sf-dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #DDE2EB; }
.sf-item.is-part .sf-dot { background: #3B82C4; box-shadow: 0 0 0 3px #E7F0FA; }
.sf-item.is-done .sf-dot { background: #22A06B; box-shadow: 0 0 0 3px #E3F5EC; }
.sf-item b { font-size: 11px; font-weight: 600; color: #5C667C; }
.sf-item.is-part b { color: #1F5C9E; }
.sf-item.is-done b { color: #0F7B4F; }
.sf-item em { font-style: normal; font-size: 9.5px; color: var(--faint); }

.party-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px -20px 0; border-top: 1px solid var(--line-2); background: #FBFCFE; }
.party { display: flex; align-items: center; gap: 9px; padding: 11px 20px; border-right: 1px solid var(--line-2); min-width: 0; }
.party:last-child { border-right: 0; }
.p-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: #F1F3F7; color: #6B7690; }
.p-ic--fin { background: var(--fin-2); color: #C9463C; }
.p-ic--blue { background: #E8F1FB; color: #1F5C9E; }
.p-ic--log { background: var(--log-2); color: #B5651B; }
.p-body { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.p-body b { font-size: 11.5px; }
.p-body em { font-style: normal; font-size: 9.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-badge { font-size: 10.5px; font-weight: 700; color: #6B7690; background: #EEF1F6; border-radius: 999px; padding: 1px 8px; min-width: 22px; text-align: center; }
.p-badge.is-warn { background: #FCF0D8; color: #8A6200; }
.p-badge.is-ok { background: #E7F6EE; color: #0F7B4F; }

.prog-batch { margin-bottom: 16px; }
.tbl--prog { min-width: 940px; }
.w-260 { width: 260px; }
.pi-cell { display: flex; flex-direction: column; line-height: 1.3; }
.pi-cell b { font-size: 11px; }
.pi-cell em { font-style: normal; font-size: 9.5px; color: var(--faint); }
.stagebar { display: flex; gap: 3px; width: 100%; max-width: 200px; }
.stagebar i { flex: 1; height: 7px; border-radius: 3px; background: #E9ECF2; display: block; }
.stagebar i.on { background: #22A06B; }
.stage-n { font-size: 9.5px; color: var(--faint); }

/* ---------------------------------- 首页（图形化） ---------------------------------- */
.home-head { margin-bottom: 18px; }
.home-date { font-size: 11.5px; color: var(--faint); }
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; align-items: start; }
.home-grid--2 { grid-template-columns: 1fr 1fr; }
.home-grid--solo { grid-template-columns: 1fr; }

.home-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.prog-tile .card-head { padding: 13px 16px; }
.prog-tile .tile-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.tile-big { display: flex; align-items: baseline; gap: 8px; }
.tile-big b { font-size: 30px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile-big span { font-size: 10.5px; color: var(--faint); }
.stackbar--sm { margin: 0; height: 9px; }
.mini-legend { display: flex; flex-direction: column; gap: 4px; }
.mini-legend li { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #5C667C; }
.mini-legend i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.mini-legend b { margin-left: auto; font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-foot { font-size: 10px; color: var(--faint); border-top: 1px dashed var(--line-2); padding-top: 8px; margin-top: auto; }
.tb { display: flex; flex-direction: column; gap: 9px; }
.tb-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb-dates div { display: flex; flex-direction: column; }
.tb-dates span { font-size: 9.5px; color: var(--faint); }
.tb-dates b { font-size: 12px; font-variant-numeric: tabular-nums; }
.tb-track { position: relative; height: 10px; border-radius: 5px; background: #EEF1F6; }
.tb-plan { position: absolute; inset: 0; border-radius: 5px; background: #E3E8F1; }
.tb-actual { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #3B6FE0, #4A86E8); }
.tb-today { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px solid #E5484D; }
.tb-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); }
.tb-foot .is-early { color: #0F7B4F; }
.tb-foot .is-late { color: #B42318; }
.tb-foot .is-ok { color: var(--muted); }
.tb-empty { font-size: 11px; color: var(--faint); line-height: 1.7; }
.feed--grid { display: grid; grid-template-columns: 1fr 1fr; }

.gantt-card { padding-bottom: 8px; }
.gantt-tools { display: flex; align-items: center; gap: 12px; }
.gantt-key { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--faint); }
.gantt-key i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; }
.gk-plan { background: #DCE3EE; }
.gk-actual { background: #3B6FE0; }
.gk-today { width: 2px !important; height: 12px !important; background: #E5484D; }
.gantt { padding: 8px 16px 2px; }
.g-row { display: grid; grid-template-columns: 84px 1fr 74px; gap: 10px; align-items: center; height: 34px; }
.g-row--head { height: 26px; }
.g-label { font-size: 11.5px; color: #5C667C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-track { position: relative; height: 100%; }
.g-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: #F1F3F8; }
.g-today { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 1px dashed #E5484D; opacity: .55; }
.g-bar { position: absolute; border-radius: 4px; }
.g-bar--plan { top: calc(50% - 9px); height: 6px; background: #E3E8F1; }
.g-bar--actual { top: calc(50% + 1px); height: 8px; background: linear-gradient(90deg, #3B6FE0, #4A86E8); }
.g-dev { font-size: 10px; text-align: right; color: var(--faint); white-space: nowrap; }
.g-dev.is-late { color: #B42318; }
.g-dev.is-early { color: #0F7B4F; }
.g-dev.is-ok { color: var(--muted); }
.g-tick { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 9.5px; color: #A6AEC0; }
.gantt-empty { padding: 40px 20px; text-align: center; color: var(--faint); font-size: 12px; }

.pie-wrap { display: flex; align-items: center; gap: 18px; padding: 18px 20px 10px; }
.pie { width: 128px; height: 128px; border-radius: 50%; position: relative; flex: none; }
.pie--empty { background: #EEF1F6; }
.pie-hole { position: absolute; inset: 18px; background: #fff; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.pie-hole b { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pie-hole span { font-size: 9.5px; color: var(--faint); }
.pie-legend { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.pie-legend li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #5C667C; }
.pie-legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pie-legend b { margin-left: auto; font-size: 11.5px; color: var(--ink); }
.pie-foot { padding: 0 20px 14px; font-size: 10.5px; color: var(--faint); }

.todo-count { font-size: 11px; font-weight: 700; color: #8A6200; background: #FCF0D8; border-radius: 999px; padding: 1px 9px; min-width: 24px; text-align: center; }
.todo-count:not(.is-on) { display: none; }
.todo-list { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.todo-item:hover { background: var(--soft); }
.todo-type { font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; flex: none; }
.todo-type--receipt { background: #E7F6EE; color: #0F7B4F; }
.todo-type--payment { background: #FEF2E6; color: #B5651B; }
.todo-type--slip { background: #E8F1FB; color: #1F5C9E; }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.todo-main b { font-size: 12px; font-weight: 600; }
.todo-main em { font-style: normal; font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-actions { display: flex; gap: 6px; flex: none; }

.tl-head { display: grid; grid-template-columns: 110px repeat(4, 1fr) 26px; gap: 6px; font-size: 10px; color: var(--faint); padding: 0 2px; }
.tl-rows { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.tl-row { display: grid; grid-template-columns: 110px repeat(4, 1fr) 26px; gap: 6px; align-items: center; }
.tl-row .input { padding: 0 5px; font-size: 10.5px; }
.modal-panel--wide { width: 780px; }

/* ---------------------------------- 液态玻璃首页 ---------------------------------- */
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 420px at 14% 4%, rgba(242, 104, 94, .28), transparent 62%),
    radial-gradient(620px 460px at 86% 8%, rgba(242, 153, 74, .24), transparent 62%),
    radial-gradient(700px 520px at 50% 104%, rgba(79, 174, 126, .22), transparent 64%);
  filter: blur(8px);
}
.dash-head { margin-bottom: 16px; }
.dash-title h1 { font-size: 28px; font-weight: 750; letter-spacing: -.03em; }
.dash-title p { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.proj-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proj-switch { display: flex; align-items: center; gap: 6px; }
.proj-select {
  height: 34px; padding: 0 30px 0 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(14px) saturate(1.6);
  font-size: 13px; font-weight: 650; color: var(--ink); outline: none;
  box-shadow: 0 4px 14px -8px rgba(31, 41, 55, .4);
}
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.dash > * { min-width: 0; }
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .52));
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 20px 44px -28px rgba(31, 41, 55, .45), 0 2px 8px rgba(31, 41, 55, .04), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dash-card-head h3 { font-size: 13px; font-weight: 650; }
.qty-card { display: flex; flex-direction: column; cursor: default; }
.qty-label { font-size: 11.5px; color: var(--muted); }
.qty-num { font-size: 34px; font-weight: 750; letter-spacing: -.035em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.qty-num span { font-size: 12px; font-weight: 500; color: var(--faint); margin-left: 4px; }
.qty-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--faint); margin-top: auto; }
.prep-chip { font-size: 9.5px; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.prep-list { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.prep-row { display: grid; grid-template-columns: 10px 1fr auto 62px 92px; gap: 8px; align-items: center; font-size: 12px; }
.prep-row b { font-weight: 600; }
.prep-row em { font-style: normal; font-size: 10px; color: var(--faint); text-align: right; }
.prep-row em.is-late { color: #B42318; }
.prep-dot { width: 8px; height: 8px; border-radius: 50%; }
.prep-date { font-size: 10.5px; color: var(--faint); text-align: right; }
.prep-bar { height: 5px; border-radius: 99px; background: rgba(17, 24, 39, .07); margin-top: 12px; overflow: hidden; }
.prep-bar i { display: block; height: 100%; background: #4FAE7E; border-radius: 99px; }
.pay-big { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.pay-big b { font-size: 34px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pay-big span { font-size: 10.5px; color: var(--faint); }
.pay-nums { display: flex; gap: 18px; margin-top: 12px; }
.pay-nums div { display: flex; flex-direction: column; }
.pay-nums span { font-size: 9.5px; color: var(--faint); }
.pay-nums b { font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-legend--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 12px; }
.todolist { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.todo-row { display: flex; align-items: center; gap: 8px; padding: 5px 2px; font-size: 12px; }
.todo-row.is-done span { text-decoration: line-through; color: var(--faint); }
.todo-check {
  width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #C9D0DC; background: #fff;
  font-size: 10px; line-height: 1; color: #0F7B4F; cursor: pointer; display: grid; place-items: center; flex: none;
}
.todo-row.is-done .todo-check { background: #E7F6EE; border-color: #BEE7D2; }
.todo-x { margin-left: auto; border: 0; background: transparent; color: #C3C9D6; cursor: pointer; font-size: 14px; }
.todo-add { display: flex; gap: 6px; }
.pi-head, .pi-row { display: grid; grid-template-columns: 1.2fr .7fr .8fr 1fr; gap: 6px; }
.pi-head { font-size: 9.5px; color: var(--faint); padding: 0 2px 4px; }
.pi-row { margin-bottom: 6px; }

.pi-head, .pi-row { display: grid; grid-template-columns: 1.2fr .6fr .6fr .6fr .8fr 1fr; gap: 6px; }
.pm-row { display: grid; grid-template-columns: 1.4fr .6fr 1fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
.pm-status-text { font-size: 9.5px; }
.pi-head { font-size: 9.5px; color: var(--faint); padding: 0 2px 4px; }
.pi-row { margin-bottom: 6px; }
.member-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.member-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; font-size: 11.5px; cursor: pointer; background: #fff; }
.member-chip input { accent-color: #12925F; }
.member-chip em { font-style: normal; font-size: 9px; color: var(--faint); }

/* 物料卡 */
.item-card { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--c); }
.item-head { display: flex; align-items: center; gap: 7px; }
.item-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.item-name { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.item-total { font-size: 32px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.item-total span { font-size: 11px; color: var(--faint); margin-left: 4px; }
.item-bar { height: 6px; border-radius: 99px; background: rgba(17, 24, 39, .07); overflow: hidden; }
.item-bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.item-stats { display: flex; justify-content: space-between; gap: 8px; }
.item-stats div { display: flex; flex-direction: column; }
.item-stats span { font-size: 9.5px; color: var(--faint); }
.item-stats b { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* 备货表 */
.prep-table { display: flex; flex-direction: column; }
.prep-tr { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.4fr .8fr 1.3fr 1.2fr; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid rgba(17, 24, 39, .05); font-size: 12px; }
.prep-tr:last-child { border-bottom: 0; }
.prep-th { font-size: 9.5px; color: var(--faint); padding-top: 0; }
.prep-name { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.prep-name i { width: 7px; height: 7px; border-radius: 2px; }
.prep-prog { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--faint); }
.prep-prog .bar { flex: 1; }
.prep-tr em { font-style: normal; font-size: 9.5px; color: var(--faint); }
.prep-tr em.is-late { color: #B42318; }

/* 付款 50/50 */
.pay-row { grid-column: span 12; }
.pay-row-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 2px 10px; }
.pay-row-head h3 { font-size: 13px; font-weight: 650; }
.pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-card { display: flex; flex-direction: column; gap: 6px; }
.pay-card header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.pay-state { font-size: 10px; font-weight: 700; color: #B7791F; background: rgba(242, 153, 74, .16); padding: 1px 7px; border-radius: 999px; }
.pay-card.is-paid .pay-state { color: #0F7B4F; background: rgba(79, 174, 126, .16); }
.pay-amt { font-size: 28px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pay-meta { font-size: 10.5px; color: var(--faint); }
.pay-bar { height: 6px; border-radius: 99px; background: rgba(17, 24, 39, .07); overflow: hidden; }
.pay-bar i { display: block; height: 100%; background: #22A06B; border-radius: 99px; }
.pay-card .btn { align-self: flex-start; margin-top: 4px; }

/* 步骤条（简化时间线） */
.steps { display: flex; align-items: flex-start; overflow-x: auto; padding: 4px 0 2px; }
.step { position: relative; flex: 1; min-width: 88px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 20px; }
.step-line { position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: #E3E7EE; }
.step:first-child .step-line { display: none; }
.step-dot { position: absolute; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #E3E7EE; color: #fff; font-size: 9px; display: grid; place-items: center; }
.step.is-done .step-dot { background: #22A06B; }
.step.is-done .step-line { background: #BEE7D2; }
.step.is-doing .step-dot { background: #3B6FE0; box-shadow: 0 0 0 4px rgba(59, 111, 224, .15); }
.step b { font-size: 11px; font-weight: 600; }
.step em { font-style: normal; font-size: 9px; color: var(--faint); }
.step-dev { font-size: 9px; color: var(--faint); }
.step-dev.is-late { color: #B42318; }
.step-dev.is-early { color: #0F7B4F; }

/* To-do 浮窗 */
.todo-dock {
  position: fixed; right: 24px; bottom: 24px; width: 322px; z-index: 60;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .66));
  backdrop-filter: blur(30px) saturate(1.9);
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 34px 70px -34px rgba(31, 41, 55, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.todo-dock.is-drag { cursor: grabbing; }
.todo-dock.is-min { width: auto; }
.todo-dock.is-min .dock-body { display: none; }
.dock-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: grab; user-select: none; }
.dock-grip { color: #C3C9D6; font-size: 12px; }
.dock-title { font-size: 12.5px; font-weight: 700; }
.dock-count { font-size: 10.5px; background: #111827; color: #fff; border-radius: 999px; padding: 0 7px; }
.dock-btn { margin-left: auto; border: 0; background: transparent; color: #6B7690; cursor: pointer; font-size: 14px; line-height: 1; }
.dock-body { padding: 0 12px 12px; }
.dock-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.dock-item { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 2px; }
.dock-item.is-done span { text-decoration: line-through; color: #98A1B3; }
.dock-empty { font-size: 11px; color: #98A1B3; text-align: center; padding: 12px 0; }
.dock-add { display: flex; gap: 6px; }

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
.g-label b { display: block; font-size: 11.5px; font-weight: 600; color: #3B465C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-label em { font-style: normal; font-size: 9px; color: #98A1B3; display: block; margin-top: 1px; }
.g-row { height: 40px; }
.g-today-tag { position: absolute; top: -5px; transform: translateX(-50%); font-size: 8.5px; color: #B42318; background: #FDECEA; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.g-bar--actual i { position: absolute; left: 4px; right: 4px; top: 2px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.pay-card.paid .pay-state { color: #0F7B4F; background: rgba(79, 174, 126, .16); }
.pay-card.partial .pay-state { color: #1F5C9E; background: rgba(59, 111, 224, .13); }
.pay-card.pending .pay-state { color: #B7791F; background: rgba(242, 153, 74, .16); }
.pay-card.paid .pay-bar i { background: #22A06B; }
.pay-card.partial .pay-bar i { background: #3B6FE0; }
.pay-card.pending .pay-bar i { background: #C9D0DC; }
.prep-table { overflow-x: auto; }
.prep-tr { min-width: 820px; }

/* 私人银行 */
.bank-eyebrow { color: #7A879E; }
.bank-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.bank-sum { display: flex; flex-direction: column; gap: 4px; }
.bank-sum span { font-size: 11px; color: var(--muted); }
.bank-sum b { font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bank-sum em { font-style: normal; font-size: 10px; color: var(--faint); }
.bank-rate { height: 30px; max-width: 120px; font-size: 14px; font-weight: 700; }
.bank-grid .tbl--bank { min-width: 620px; }

.doc-drop { transition: .15s; }
.doc-drop.is-over { border-color: #3B6FE0; background: rgba(59, 111, 224, .07); box-shadow: 0 0 0 3px rgba(59, 111, 224, .12); }

.todo-dock {
  background: linear-gradient(180deg, rgba(255, 251, 238, .94), rgba(255, 246, 220, .82));
  border-color: rgba(255, 239, 196, .9);
  transition: left .22s cubic-bezier(.22, .8, .3, 1), top .22s cubic-bezier(.22, .8, .3, 1), box-shadow .2s;
}
.todo-dock.is-drag { transition: none; box-shadow: 0 40px 80px -30px rgba(31, 41, 55, .5); }
.dock-head { background: rgba(255, 250, 235, .55); border-bottom: 1px solid rgba(183, 121, 31, .12); }
.dock-count { background: #F3E4B8; color: #7A5C12; }
.dock-title { color: #6B5A1E; }
.dock-item .todo-check { border-color: #D9C48A; }
.dock-item.is-done .todo-check { background: #F3E4B8; border-color: #D9C48A; color: #7A5C12; }

.tbl--bank th:nth-child(1) { width: 96px; }
.tbl--bank th:nth-child(2), .tbl--bank th:nth-child(3) { width: 112px; }
.trk-st { display: block; font-size: 9px; font-style: normal; line-height: 1.2; margin-top: 2px; }
.freight-drop { display: flex; align-items: center; gap: 10px; min-height: 64px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: .15s; }
.freight-drop:hover { border-color: #3B6FE0; background: rgba(59, 111, 224, .04); }
.freight-drop.is-over { border-color: #3B6FE0; background: rgba(59, 111, 224, .08); box-shadow: 0 0 0 3px rgba(59, 111, 224, .12); }
.drop-hint { font-size: 12px; color: var(--faint); }
.drop-hint b { color: #2F6FE0; }
.freight-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; }
.freight-foot .ink { color: var(--ink); font-size: 13px; }
.row-click { cursor: pointer; }
.row-click:hover td { background: rgba(47, 111, 224, .04); }
.total-row td { border-top: 2px solid var(--line); background: #FAFBFD; font-weight: 600; }
.bank-summary--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1400px) {
  .bank-summary--5 { grid-template-columns: repeat(3, 1fr); }
}
.bank-sum.sum-income b { color: #0F7B4F; }
.bank-sum.sum-expense b { color: #B7791F; }
.bank-sum.sum-balance b { color: #2F5FD0; }
.bank-income { margin-bottom: 16px; }
.exp-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bank-note { border-radius: 8px; transition: .15s; }
.bank-note.doc-drop { cursor: pointer; }
.bank-note.is-over { background: rgba(47, 111, 224, .08); box-shadow: inset 0 0 0 2px rgba(47, 111, 224, .35); }
.thumb-wrap { position: relative; display: inline-block; flex: none; }
.thumb-x { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #F6CDC6; background: #fff; color: #B42318; font-size: 11px; line-height: 1; cursor: pointer; padding: 0; }
.bank-hint { font-style: normal; font-size: 10px; color: var(--faint); }
.exp-note span { flex: 1; min-width: 0; }
.slip-thumb { flex: none; display: inline-block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.preview-body img { max-width: 100%; max-height: 68vh; display: block; margin: 0 auto; border-radius: 10px; }
.preview-body iframe { width: 100%; height: 68vh; border: 0; border-radius: 10px; }
.slip-thumb img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.doc-actions { display: flex; flex-direction: column; gap: 5px; flex: none; }
.btn--danger-ghost { color: #B42318; border-color: #F6CDC6; }
.btn--danger-ghost:hover { background: #FDECEA; }
.mention-chip { font-size: 9.5px; color: #2F6FE0; background: rgba(47, 111, 224, .12); border-radius: 999px; padding: 1px 6px; }
.dock-mentions { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.dock-mentions:empty { display: none; }
.dock-at { font-size: 15px; font-weight: 700; color: #2F6FE0; }

.drawer-expand {
  position: fixed; right: 78px; top: 15px; z-index: 71;
  width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid #DCE3EE;
  background: linear-gradient(180deg, #FFFFFF, #F2F5FA);
  color: #334155; font-size: 15px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .12), inset 0 1px 0 #FFF, inset 0 -1px 0 rgba(15, 23, 42, .06);
  transition: right .28s cubic-bezier(.22, .8, .3, 1), top .28s cubic-bezier(.22, .8, .3, 1), background .15s, transform .12s;
}
.drawer-expand:hover { background: linear-gradient(180deg, #FFFFFF, #E8EEF7); }
.drawer-expand:active { transform: translateY(1px); box-shadow: 0 1px 3px rgba(15, 23, 42, .18); }
.drawer.is-expanded .drawer-expand { right: calc(12vw + 18px); top: calc(7vh + 14px); }
.drawer.is-expanded .drawer-panel {
  top: 7vh; right: 12vw; left: auto; bottom: auto;
  width: 76vw; height: 86vh; max-width: none; max-height: none;
  border-radius: 20px; box-shadow: 0 50px 100px -40px rgba(15, 23, 42, .55);
  transform: translateZ(0) scale(1); transition: width .3s, height .3s, border-radius .3s, box-shadow .3s;
}
.drawer-panel { transition: width .3s, height .3s, border-radius .3s, box-shadow .3s; }
.drawer.is-expanded .drawer-scrim { background: rgba(15, 23, 42, .42); }
.doc-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #FAFBFD; margin-bottom: 8px; }
.doc-banner.is-on { background: #EAF7F0; border-color: #BEE7D2; }
.doc-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #EDF0F5; color: #8A93A6; font-weight: 700; flex: none; }
.doc-banner.is-on .doc-ico { background: #D6F0E2; color: #0F7B4F; }
.doc-btext { flex: 1; min-width: 0; }
.doc-btext b { display: block; font-size: 13px; font-weight: 700; }
.doc-btext em { font-style: normal; font-size: 10.5px; color: var(--faint); }
.doc-dot { width: 8px; height: 8px; border-radius: 50%; background: #D5DAE4; display: inline-block; flex: none; margin-left: 6px; }
.doc-dot.on { background: #22A06B; box-shadow: 0 0 0 3px rgba(34, 160, 107, .15); }
.doc-row.is-on { background: rgba(79, 174, 126, .06); border-color: rgba(79, 174, 126, .35); }
.doc-cancel { border: 1px solid var(--line); background: #fff; color: #0F7B4F; font-size: 10.5px; border-radius: 8px; padding: 4px 8px; cursor: pointer; flex: none; }
.trk-bar { display: flex; gap: 2px; height: 6px; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.trk-seg { flex: 1; border-radius: 2px; transition: .2s; }
.trk-seg.is-future { opacity: .28; }
.trk-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trk-item.is-current .trk-st { border: 1px solid currentColor; border-radius: 6px; padding: 1px 6px; margin-top: 2px; }
.g-bar { height: 10px; border-radius: 99px; }
/* 航段固定列宽：所有起点对齐，便于响应式 */
.trk { display: flex; justify-content: flex-start; width: 100%; }
.trk-item { flex: 0 0 112px; max-width: 112px; min-width: 0; }
@media (max-width: 1400px) {
  .trk-item { flex-basis: 100px; max-width: 100px; }
}
/* 甘特条：扁平化 + 计划/实际分两行留缝 */
.g-track { position: relative; height: 26px; }
.g-bar { position: absolute; height: 8px; border-radius: 3px; transform: none; box-shadow: none; }
.g-bar--plan { top: 2px; }
.g-bar--actual { top: 14px; }
.g-bar--actual i { display: none; }
.g-row { height: 46px; }

@keyframes targetFlash {
  0% { background: rgba(47, 111, 224, .28); }
  100% { background: transparent; }
}
tr.is-target > td { animation: targetFlash 1.6s ease; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #F1F3F7; color: #8A93A6; font-size: 10.5px; font-weight: 600; border: 0; }
.tag--on { background: rgba(79, 174, 126, .14); color: #0F7B4F; }
.trk-item { align-items: center; text-align: center; }
.trk-item.is-future { opacity: .38; }
.trk-item.is-current .trk-dot { box-shadow: 0 0 0 4px rgba(59, 111, 224, .18) !important; }
.trk-item.is-current .trk-route { color: #2F5FD0; font-weight: 700; }
.grid-2 { align-items: stretch; }
.grid-2 > .card { height: 100%; }
.is-hidden { display: none !important; }
.ds-pending { display: none; }
.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; justify-content: center; align-items: center; gap: 10px; background: #FFF4D6; color: #7A5C12; border-bottom: 1px solid #F0DFAE; font-size: 12px; padding: 7px 16px; }
.preview-bar + .shell { height: calc(100vh - 34px); margin-top: 34px; }
.trk-cell { min-width: 420px; width: 46%; }
.tbl th:nth-child(6), .tbl th:nth-child(7), .tbl th:nth-child(8) { width: 88px; }

@media (max-width: 1200px) {
  .bank-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .bank-summary { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
  .dash { grid-template-columns: repeat(6, 1fr); }
  .span-4, .span-6 { grid-column: span 6; }
  .span-5, .span-7, .span-12 { grid-column: span 12; }
}

@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-6, .span-7, .span-12 { grid-column: span 1; }
  .pay-cards { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-grid3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .formula-grid { grid-template-columns: repeat(2, 1fr); }
  .mine-grid { grid-template-columns: repeat(2, 1fr); }
  .status-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .module-grid { grid-template-columns: 1fr; }
  .prog-rings { grid-template-columns: 1fr; }
  .party-strip { grid-template-columns: 1fr 1fr; }
  .party:nth-child(2n) { border-right: 0; }
  .party:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .branches { grid-template-columns: 1fr; gap: 6px; }
  .branches::before, .branch::before { display: none; }
  .tree-root::after { display: none; }
  .tree { padding-top: 14px; }
  .branches { margin-top: 16px; }
  .branch { padding-top: 6px; }
  .branch-card { max-width: none; }
  .board-strip { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .legend-note { margin-left: 0; width: 100%; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: column; padding: 10px 12px; }
  .brand { padding: 0 4px 10px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 14px; padding-bottom: 6px; }
  .nav-group { flex-direction: row; align-items: center; gap: 2px; }
  .nav-label { display: none; }
  .nav-item.is-on::before { display: none; }
  .side-foot { display: none; }
  .topbar { padding: 0 16px; }
  .page { padding: 18px 16px 48px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head h1 { font-size: 22px; }
  .head-actions { justify-content: flex-start; }
  .kpi-grid, .kpi-grid--3 { grid-template-columns: 1fr 1fr; }
  .formula-grid { grid-template-columns: 1fr; }
  .mine-grid { grid-template-columns: 1fr; }
  .status-tiles { grid-template-columns: repeat(2, 1fr); }
  .toolbar { gap: 8px; }
  .search { max-width: none; min-width: 0; flex: 1 1 100%; }
  .top-date { display: none; }
  .mine-kpis { gap: 18px; }
  .mr-recv, .mr-time { display: none; }
  .modal-panel { width: 100%; }
}

html, body { max-width: 100%; overflow-x: hidden; }
.table-scroll, .prep-table { max-width: 100%; }

.bell-btn { position: relative; }
.bell-badge { position: absolute; top: -4px; right: -4px; background: #E5484D; color: #fff; border-radius: 999px; font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px; }
.sr-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 12.5px; }
.sr-item:hover { background: #F1F4F9; }
.search-results { margin-top: 10px; max-height: 46vh; overflow-y: auto; }
.notif-item { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); }
.notif-item:last-child { border-bottom: 0; }
.notif-main { flex: 1; min-width: 0; }
.notif-main b { display: block; font-size: 12.5px; }
.notif-main em { font-style: normal; font-size: 10.5px; color: var(--faint); }

/* 移动端底部 Tab 导航 */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 58px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px) saturate(1.6); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: #8A93A6; text-decoration: none; }
.tabbar a.is-on { color: #2F5FD0; }
@media (min-width: 861px) { .tabbar { display: none; } }
@media (max-width: 860px) { .tabbar { display: flex; } .page { padding-bottom: 84px; } .todo-dock { bottom: 76px; } }

.lang-select { height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--ink); }

/* 宽屏：内容限宽并居中，避免超宽拉伸 */
@media (min-width: 1600px) {
  .page { max-width: 1560px; margin: 0 auto; width: 100%; }
  .dash, .kpi-grid, .bank-summary { max-width: none; }
}

/* 移动端竖屏细节 */
@media (max-width: 860px) {
  .drawer-panel { width: 100%; max-width: 100%; }
  .drawer.is-expanded .drawer-panel { width: 94vw; height: 92vh; right: 3vw; top: 4vh; border-radius: 16px; }
  .drawer.is-expanded .drawer-expand { right: calc(3vw + 16px); top: calc(4vh + 12px); }
  .drawer-expand { right: 58px; top: 12px; }
  .todo-dock { width: 84vw; }
  .modal-panel--wide { width: 100%; }
  .preview-bar { font-size: 11px; padding: 6px 10px; }
  .topbar { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 520px) {
  .head-actions, .page-actions { flex-wrap: wrap; }
  .tbl { min-width: 0; }
  .g-row { height: 50px; }
  .qty-num { font-size: 28px; }
  .pay-amt { font-size: 24px; }
}


.tabs { display: flex; gap: 6px; padding: 12px 16px; flex-wrap: wrap; }
.tab { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #5C667C; font-size: 12px; cursor: pointer; }
.tab.is-on { background: #111827; color: #fff; border-color: #111827; }

.trend { display: flex; align-items: flex-end; gap: 14px; padding: 16px 18px 6px; height: 180px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.trend-bars { flex: 1; display: flex; align-items: flex-end; gap: 4px; width: 100%; justify-content: center; }
.trend-bar { width: 14px; border-radius: 4px 4px 0 0; display: block; }
.trend-plan { background: #DCE3EE; }
.trend-got { background: #22A06B; }
.trend-col span { font-size: 10px; color: var(--faint); white-space: nowrap; }
.trend-legend { display: flex; gap: 16px; padding: 0 18px 14px; font-size: 11px; color: var(--muted); }
.trend-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ===================== JF-4 风格主题（可切回经典） ===================== */
html.theme-jf {
  --bg: #f1fbfa;
  --panel: rgba(255,255,255,.72);
  --ink: #0e3a3d;
  --ink-2: #1d5155;
  --muted: #5d8284;
  --faint: #9dbcbc;
  --line: #d3e8e7;
  --line-2: #e3f2f1;
  --soft: #f7fdfc;
  --fin: #ff5a3c; --fin-2: #ffe9e4;
  --log: #46c9bf; --log-2: #e4f8f6;
  --part: #0f9d8a; --part-2: #e1f5f1;
  --ok: #0f9d8a; --warn: #c47a2c; --blue: #2f8f8a;
  --shadow-md: 0 .4rem 2rem rgba(40,110,110,.08);
}
html.theme-jf body { background: radial-gradient(90% 80% at 50% 42%, #fafefd 0%, #f1fbfa 55%, #e3f4f3 100%); }
html.theme-jf .sidebar { background: rgba(255,255,255,.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 1px solid #d3e8e7; }
html.theme-jf .topbar { background: rgba(250,254,253,.6); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(211,232,231,.8); }
html.theme-jf .brand-mark { background: #ff5a3c; }
html.theme-jf .card, html.theme-jf .glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 .4rem 2rem rgba(40,110,110,.07);
}
html.theme-jf .glass { border-color: rgba(211,232,231,.9); }
html.theme-jf .btn--primary { background: #ff5a3c; border-color: #ff5a3c; }
html.theme-jf .btn--primary:hover { background: #f04a2c; border-color: #f04a2c; }
html.theme-jf .nav-item.is-on { background: rgba(255,90,60,.10); color: #c33a20; }
html.theme-jf .eyebrow { font-family: var(--mono); letter-spacing: .22em; color: #9dbcbc; }
html.theme-jf .qty-label, html.theme-jf .bank-sum span { color: #5d8284; }
html.theme-jf .live-pill { background: rgba(15,157,138,.12); color: #0f7d6f; }
html.theme-jf .tabbar { background: rgba(250,254,253,.92); border-top: 1px solid #d3e8e7; }
html.theme-jf .todo-dock { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(240,252,250,.9)); border-color: #d3e8e7; }
/* login */
html.theme-jf .login-art {
  background: radial-gradient(1000px 520px at 8% -10%, #fdfffe 0%, #f1fbfa 52%, #e3f4f3 100%);
  color: #0e3a3d; border-right: 1px solid #d3e8e7;
}
html.theme-jf .login-art::before { border-color: rgba(70,201,191,.28); }
html.theme-jf .login-art::after { border-color: rgba(255,90,60,.16); }
html.theme-jf .login-art h1 { color: #0e3a3d; }
html.theme-jf .login-art h1 .grad { background: linear-gradient(90deg,#ff5a3c,#46c9bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.theme-jf .login-art .la-sub, html.theme-jf .login-art .la-points li, html.theme-jf .login-art .la-foot { color: #5d8284; }
html.theme-jf .login-art .la-brand { color: #0e3a3d; }
html.theme-jf .login-form { background: #fafefd; }
html.theme-jf .la-visual { background: rgba(255,255,255,.8); border: 1px solid #d3e8e7; box-shadow: 0 10px 34px rgba(40,110,110,.08); }
html.theme-jf .lv-head, html.theme-jf .lv-foot, html.theme-jf .lv-row { color: #5d8284; }
html.theme-jf .lv-row { border-top-color: rgba(14,58,61,.08); }
html.theme-jf .lv-a, html.theme-jf .lv-foot b { color: #0e3a3d; }
html.theme-jf .lv-bar { background: rgba(14,58,61,.08); }
html.theme-jf .lv-live { color: #0f9d8a; }
.theme-fab { position: fixed; right: 20px; top: 16px; z-index: 120; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--ink); font-size: 11px; cursor: pointer; }
.theme-fab:hover { border-color: #ff5a3c; color: #c33a20; }
.theme-btn { font-family: var(--mono); letter-spacing: .08em; }



/* ===== 白色科技感 + iOS 风高透玻璃 ===== */
body, html.theme-jf body {
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f8fbfd 55%, #eef3f8 100%);
}
.ambient-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-bg i { position: absolute; display: block; border-radius: 50%; filter: blur(130px); opacity: .5; }
.ambient-bg i:nth-child(1) { width: 80vw; height: 80vw; left: -20vw; top: -30vw; background: radial-gradient(circle, #d7f3f1 0%, rgba(215,243,241,0) 70%); }
.ambient-bg i:nth-child(2) { width: 68vw; height: 68vw; right: -14vw; top: -20vw; background: radial-gradient(circle, #dbe9ff 0%, rgba(219,233,255,0) 70%); }
.ambient-bg i:nth-child(3) { width: 74vw; height: 74vw; left: 10vw; bottom: -34vw; background: radial-gradient(circle, #e6e9ff 0%, rgba(230,233,255,0) 70%); }
.ambient-bg i:nth-child(4) { width: 56vw; height: 56vw; right: 6vw; bottom: -18vw; background: radial-gradient(circle, #e9f6ef 0%, rgba(233,246,239,0) 70%); }
.app-root, .shell { position: relative; z-index: 1; }

.glass, .card, html.theme-jf .glass, html.theme-jf .card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.04) 42%, rgba(255,255,255,.16) 100%),
    rgba(255,255,255,.38) !important;
  backdrop-filter: blur(30px) saturate(1.55) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.55) !important;
  border: 1px solid transparent !important;
  border-radius: 22px;
  box-shadow:
    0 18px 44px rgba(23,48,72,.10),
    0 2px 6px rgba(23,48,72,.05),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.2) !important;
}
.glass::before, .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.55) 35%, rgba(150,175,200,.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.34)) !important;
  backdrop-filter: blur(34px) saturate(1.4); -webkit-backdrop-filter: blur(34px) saturate(1.4);
  border-right: 1px solid rgba(255,255,255,.55);
}
.topbar {
  background: rgba(255,255,255,.4) !important;
  backdrop-filter: blur(26px) saturate(1.35); -webkit-backdrop-filter: blur(26px) saturate(1.35);
  border-bottom: 1px solid rgba(255,255,255,.5);
}
.tabbar, .todo-dock { backdrop-filter: blur(26px) saturate(1.35); -webkit-backdrop-filter: blur(26px) saturate(1.35); }
/* 登录页回到白色科技感 */
html.theme-jf .login-art { background: radial-gradient(1000px 520px at 8% -10%, #ffffff 0%, #f4f9fc 52%, #e9f1f7 100%); border-right: 1px solid rgba(255,255,255,.6); }
html.theme-jf .login-form { background: #fbfdfe; }
html.theme-jf .la-visual { background: rgba(255,255,255,.4); backdrop-filter: blur(30px) saturate(1.5); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 14px 34px rgba(23,48,72,.10), inset 0 1px 0 rgba(255,255,255,.95); }
html.theme-jf .jf-card { background: rgba(255,255,255,.38); backdrop-filter: blur(30px) saturate(1.5); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 14px 34px rgba(23,48,72,.10), inset 0 1px 0 rgba(255,255,255,.95); }




/* ===== 登录页（浅色玻璃 · 与内部风格一致） ===== */
.login { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; background: transparent; }
.login-art, html.theme-jf .login-art {
  position: relative; overflow: hidden; padding: 56px 60px;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(240,248,251,.55)) !important;
  border-right: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
.login-art::before, .login-art::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(15,157,138,.10); }
.login-art::before { width: 560px; height: 560px; right: -200px; bottom: -220px; }
.login-art::after { width: 380px; height: 380px; right: -120px; bottom: -140px; border-color: rgba(255,90,60,.10); }
.la-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.la-brand-text b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.la-brand-text em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.la-hero { margin-top: clamp(36px, 8vh, 92px); max-width: 520px; position: relative; z-index: 1; }
.la-hero h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.18; letter-spacing: -.03em; font-weight: 750; margin: 0 0 18px; color: var(--ink); }
.la-hero h1 .grad { background: linear-gradient(90deg, #ff5a3c, #0f9d8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.la-sub { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 440px; }
.la-points { list-style: none; margin: 28px 0 0; padding: 0; max-width: 460px; position: relative; z-index: 1; }
.la-points li { position: relative; padding-left: 18px; margin: 10px 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.lp-dot { position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; }
.lp-dot--fin { background: #ff5a3c; }
.lp-dot--log { background: #46c9bf; }
.lp-dot--part { background: #0f9d8a; }
.la-stats { display: flex; gap: 34px; margin-top: auto; padding-top: 30px; position: relative; z-index: 1; }
.la-stats div { display: flex; flex-direction: column; gap: 4px; }
.la-stats em { font-style: normal; font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }
.la-stats b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.la-foot { display: flex; justify-content: space-between; margin-top: 26px; font-size: 10.5px; color: var(--faint); letter-spacing: .06em; position: relative; z-index: 1; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: transparent !important; }
.lf-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(23,48,72,.10), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 32px 30px 26px;
}
.lf-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.lf-sub { font-size: 12.5px; color: var(--muted); margin: 0 0 22px; }
.lf-card label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.lf-card .input { width: 100%; }
.lf-card .btn--block { margin-top: 18px; }
.lf-card .demo-accounts { margin-top: 22px; }
.lf-card .login-foot { margin-top: 18px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-form { padding: 24px 16px; }
  .lf-card { padding: 26px 20px 22px; border-radius: 18px; }
}

@media (max-width: 860px) {
  .login-art, html.theme-jf .login-art { display: none !important; }
  .login { grid-template-columns: 1fr !important; }
}

/* ===== 品牌图标（透明底矢量 · 科技萌） ===== */
.brand-mark { background: transparent !important; padding: 0 !important; display: block; width: 34px; height: 34px; grid-template-columns: none; gap: 0; }
.brand-mark i { display: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
