/* 业务中台 · 经理手机端 · 成品视觉 2026-10-23 · Brief v5-ui-visual */
:root {
  --ink: #0F1C2E;
  --ink-2: #1E2F45;
  --brand: #1B4F8A;
  --brand-soft: #E8F0F8;
  --accent: #0D7A5F;
  --warn: #B45309;
  --danger: #B42318;
  --surface: #F4F6F9;
  --card: #FFFFFF;
  --line: #D8DEE8;
  --muted: #5B6B7C;
  --test-bar: #5C4B1E;
  --test-fg: #F5E6C8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,28,46,.06), 0 4px 12px rgba(15,28,46,.04);
  --kpi-ink: #0F172A;
  --kpi-amt: #334155;
  --kpi-label: #64748B;
  --kpi-surface: #F4F6F8;
  --kpi-card: #FFFFFF;
  --kpi-rail-apply: #4A6FA5;
  --kpi-rail-reject: #A65D57;
  --kpi-rail-loan: #3D8B74;
  --kpi-rail-pass: #6B7BB5;
  --kpi-rail-pass-n: #5A6FA8;
  --kpi-rail-silent: #B0893E;
  --kpi-rail-pending: #C47A2C;
  --trend-apply: #5B7C99;
  --trend-loan: #5A9A86;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--surface); color: var(--ink); font-size: 14px; }
.hidden { display: none !important; }
.modal.hidden, .sheet.hidden, .toast.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.phone {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: #fff;
  padding: 12px 16px calc(14px + env(safe-area-inset-top, 0px));
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
.topbar .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.topbar .who { font-size: 12px; opacity: .92; }
.topbar h1 { font-size: 18px; margin: 8px 0 0; font-weight: 600; }
.topbar .env-strip {
  margin-top: 8px; display: inline-block;
  background: var(--test-bar); color: var(--test-fg);
  font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600;
}

.badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; vertical-align: middle; }
.badge.env { background: var(--test-bar); color: var(--test-fg); border-radius: 4px; }
.badge.demo { background: #E5E7EB; color: #4B5563; }
.badge.紧急 { background: #FDE8E6; color: var(--danger); }
.badge.重要 { background: #FEF3E2; color: var(--warn); }
.badge.普通 { background: var(--brand-soft); color: var(--brand); }
.badge.overdue { background: #FDE8E6; color: var(--danger); margin-left: 6px; }

.btn-logout {
  border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  border-radius: var(--radius-sm); padding: 4px 10px; font-size: 12px; cursor: pointer;
}

/* 底栏 Tab */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20;
  width: 100%; max-width: 480px; display: flex; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,28,46,.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar button {
  flex: 1; border: none; background: transparent; padding: 8px 4px 10px;
  font-size: 11px; color: var(--muted); cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 500;
}
.tabbar button .tico {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; opacity: .7;
}
.tabbar button.active { color: var(--brand); font-weight: 700; }
.tabbar button.active .tico { opacity: 1; }
.badge-num {
  position: absolute; top: 2px; right: calc(50% - 22px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700;
}

.pane { display: none; padding: 12px; }
.pane.active { display: block; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; border: 1px solid var(--line);
}
.muted { color: var(--muted); font-size: 12px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.page-title h3 { margin: 0; font-size: 15px; font-weight: 600; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); margin: 0 4px 1px; vertical-align: middle;
}

.todo-group {
  margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.todo-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
  background: #fff; cursor: pointer; border-left: 3px solid var(--line);
  transition: background .15s;
}
.todo-row.urgent { border-left-color: var(--warn); }
.todo-row.confirm { border-left-color: var(--brand); background: #F7FAFD; }
.todo-row:last-child { margin-bottom: 0; }
.todo-row .main { flex: 1; font-size: 14px; }
.todo-row .kind { font-size: 11px; color: var(--muted); margin-top: 4px; }
.todo-row.demo { opacity: .72; }
.todo-row:active { background: var(--brand-soft); }
.todo-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.order-card {
  background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px;
  border: 1px solid var(--line); cursor: pointer; box-shadow: var(--shadow);
}
.order-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-card:active { background: #F8FAFC; }

.st {
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600;
  background: #E6F4EF; color: var(--accent); white-space: nowrap;
}
.st.bad { background: #FDE8E6; color: var(--danger); }
.st.warn { background: #FEF3E2; color: var(--warn); }
.st.info { background: var(--brand-soft); color: var(--brand); }
.st.ok { background: #E6F4EF; color: var(--accent); }
.st.muted { background: #EEF1F4; color: var(--muted); }

/* 七态独立配色 token（Okabe-Ito 偏向；.st 与 .progress-cell 共用） */
.st.ls-prescreen, .progress-cell.ls-prescreen { background: #E8F1FB; color: #1B4F8A; border-color: #1B4F8A33; }
.st.ls-facesign, .progress-cell.ls-facesign { background: #EDE7F6; color: #5E35B1; border-color: #5E35B133; }
.st.ls-pending-loan, .progress-cell.ls-pending-loan { background: #FFF3E0; color: #E65100; border-color: #E6510033; }
.st.ls-loaned, .progress-cell.ls-loaned { background: #E6F4EF; color: #0D7A5F; border-color: #0D7A5F33; }
.st.ls-reject, .progress-cell.ls-reject { background: #FDE8E6; color: #B42318; border-color: #B4231833; }
.st.ls-cancel, .progress-cell.ls-cancel { background: #EEF1F4; color: #64748B; border-color: #64748B33; }
.st.ls-lost, .progress-cell.ls-lost { background: #F3E5F5; color: #6A1B9A; border-color: #6A1B9A33; }
.progress-cell.ls-prescreen,
.progress-cell.ls-facesign,
.progress-cell.ls-pending-loan,
.progress-cell.ls-loaned,
.progress-cell.ls-reject,
.progress-cell.ls-cancel,
.progress-cell.ls-lost { border-left-width: 3px; border-left-style: solid; }
.progress-cell.ls-prescreen { border-left-color: #1B4F8A; }
.progress-cell.ls-facesign { border-left-color: #5E35B1; }
.progress-cell.ls-pending-loan { border-left-color: #E65100; }
.progress-cell.ls-loaned { border-left-color: #0D7A5F; }
.progress-cell.ls-reject { border-left-color: #B42318; }
.progress-cell.ls-cancel { border-left-color: #64748B; }
.progress-cell.ls-lost { border-left-color: #6A1B9A; }
.progress-cell.is-zero { background: #f1f5f9 !important; color: #94a3b8 !important; border-left-color: #cbd5e1 !important; }
.progress-cell.is-zero .pv,
.progress-cell.is-zero .pa,
.progress-cell.is-zero .pl { color: #94a3b8 !important; }
/* 旧五类粗映射保留兜底（极少路径） */


/* 筛选条 */
.filters, .filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
  background: #fff; padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.filters label, .filter-bar label {
  font-size: 11px; color: var(--muted); display: flex; flex-direction: column;
  gap: 4px; flex: 1 1 40%; font-weight: 500;
}
.filter-bar .filter-actions { display: flex; gap: 8px; width: 100%; }
.filter-bar .filter-actions button { flex: 1; }
.filter-lock {
  font-size: 11px; color: var(--muted); background: #F1F5F9;
  border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px;
  flex: 1 1 40%;
}
.filter-lock b { color: var(--ink); font-weight: 600; }
.seg {
  display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.seg button {
  border: none; background: #fff; padding: 10px 16px; min-height: 40px; font-size: 13px; color: var(--muted); cursor: pointer;
}
.seg button.active { background: var(--brand); color: #fff; font-weight: 600; }

.filters select, .filters input, .filter-bar select, .filter-bar input,
.login-card input, .modal-card input, .modal-card select, #chpwdCard input, #view-chpwd input {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 14px; width: 100%;
  background: #fff; color: var(--ink);
}
.filters select:focus, .filters input:focus, .filter-bar select:focus, .filter-bar input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,79,138,.12);
}

button, .ghost, .primary {
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-family: inherit;
}
button.primary, .primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button.ghost, .ghost { background: #fff; color: var(--ink); }
button.sm, .sm { padding: 4px 8px; font-size: 12px; }
button.danger { background: #FDE8E6; color: var(--danger); border-color: #F0C4BF; }
button.block { width: 100%; display: block; }
button:disabled { opacity: .5; cursor: not-allowed; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi {
  padding: 14px; position: relative; overflow: hidden;
  border-left: 3px solid var(--brand);
}
.kpi.tone-accent { border-left-color: var(--accent); }
.kpi.tone-accent .value { color: var(--accent); }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi .value {
  font-size: 22px; font-weight: 700; margin-top: 6px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.2;
}
.kpi .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.month-card { margin-bottom: 10px; }
.month-card h4 { margin: 0 0 8px; font-size: 14px; }
.month-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
.month-grid .k { font-size: 11px; color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin: 8px 0 4px; }
.bar-chart .bar-wrap { flex: 1; text-align: center; }
.bar-chart .bar {
  background: linear-gradient(180deg, #5B9BD5, var(--brand));
  border-radius: 4px 4px 0 0; min-height: 2px; margin: 0 auto; width: 70%;
}
.bar-chart .lab { font-size: 10px; color: var(--muted); margin-top: 4px; }

.msg { text-align: center; color: var(--muted); padding: 24px 8px; font-size: 13px; }
.msg.err { color: var(--danger); }

.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; position: relative; background: var(--surface);
}
.env-banner { position: absolute; top: 16px; left: 0; right: 0; text-align: center; }
.login-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: 14px; padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.login-card h1 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.login-card label, .modal-card label, #chpwdCard label {
  display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; font-weight: 500;
}
.login-card .primary { width: 100%; margin-top: 16px; padding: 12px; font-size: 15px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.login-err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 1.2em; }

.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-mask { position: absolute; inset: 0; background: rgba(15,28,46,.48); }
.sheet-panel {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px; max-height: 92vh; background: #fff;
  border-radius: 16px 16px 0 0; display: flex; flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.sheet-body { overflow: auto; padding: 14px; flex: 1; }
.timeline { border-left: 2px solid #C5D8EC; margin: 8px 0 8px 8px; padding-left: 12px; }
.timeline .item { margin-bottom: 10px; font-size: 13px; }
.timeline .item .t { font-size: 11px; color: var(--muted); }
.att-row, .action-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.section-title { font-size: 13px; font-weight: 700; margin: 14px 0 6px; }

/* 订单详情分区 · 20261025s */
.detail-sec { margin: 0 0 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.detail-sec-h { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.detail-fold { margin: 8px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.detail-fold > summary { cursor: pointer; font-size: 13px; font-weight: 700; padding: 10px 12px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.detail-fold > summary::-webkit-details-marker { display: none; }
.detail-fold > summary::after { content: "▾"; color: var(--muted); font-weight: 400; font-size: 12px; transition: transform .15s; }
.detail-fold:not([open]) > summary::after { transform: rotate(-90deg); }
.detail-fold-body { padding: 0 12px 12px; }
.tel-link { color: var(--brand); font-weight: 600; text-decoration: none; border-bottom: 1px dashed var(--brand); }
.tel-link:active { opacity: .75; }
.phone-cell { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.phone-hint { font-size: 11px; color: var(--muted); font-weight: 400; }
.st-sub { display: inline-block; margin-left: 6px; font-size: 11px; }


.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(15,28,46,.48);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card {
  background: #fff; border-radius: 14px; padding: 18px; width: 100%; max-width: 360px;
  max-height: 90vh; overflow: auto; box-shadow: var(--shadow);
}
.modal-card.wide { max-width: 420px; }
.modal-card h3 { margin: 0 0 8px; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 80px; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; max-width: 90%;
}
.toast.ok { background: var(--accent); }
.toast.err { background: var(--danger); }
.help-box { margin-top: 12px; font-size: 13px; }
.help-box .qa { padding: 10px 0; border-bottom: 1px solid var(--line); }
.help-box .q { font-weight: 700; }
.help-box .a { color: var(--muted); margin-top: 4px; line-height: 1.5; }
.sm-select { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.snap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; }
.snap-grid-2 { grid-template-columns: repeat(2,1fr); }
.snap-grid .v { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.snap-grid .l { font-size: 11px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 88px 1fr; gap: 6px 8px; font-size: 13px; }
.field-grid .k { color: var(--muted); }
.action-row select, .action-row input, #adv-extra input {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px;
}
#adv-extra label { display: block; margin-top: 8px; }
.todo-group:first-child { margin-top: 4px; }
.month-snap .snap-grid .v { color: var(--ink); }


/* —— 页脚备案 —— */
.site-foot {
  margin-top: 18px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.5;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--brand); text-decoration: underline; }

/* —— 待办空组 —— */
.todo-empty {
  padding: 10px 12px; margin-bottom: 8px; border: 1px dashed var(--line);
  border-radius: 10px; font-size: 12px; color: var(--muted); background: #F8FAFC;
}

/* BM 门店通过率 2026-10-23 */
.store-rate-row { display:grid; grid-template-columns:1fr 1.2fr 48px; gap:6px 8px; align-items:center; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; }
.store-rate-row:last-child { border-bottom:0; }
.sr-name { font-weight:560; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sr-track { height:8px; background:#EEF2F7; border-radius:999px; overflow:hidden; grid-column:1 / 3; }
.sr-fill { height:100%; background:linear-gradient(90deg, var(--brand), #5B9BD5); border-radius:999px; min-width:2px; }
.sr-pct { text-align:right; font-variant-numeric:tabular-nums; font-weight:600; color:var(--accent); }
.sr-meta { grid-column:1 / -1; font-size:11px; margin-top:-2px; }
.empty-hint { padding:8px 0; }

/* 录单大卡片 + 时段 + 识单 */
.record-cta {
  margin-bottom: 10px;
  background: linear-gradient(135deg, #1B4F8A 0%, #2A6BB5 100%);
  color: #fff;
  border: none;
  padding: 16px 14px;
}
.record-cta-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.record-cta-sub { color: rgba(255,255,255,.85) !important; margin: 0 0 12px; font-size: 12px; }
.record-cta-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: stretch;
}
.record-cta-actions .primary {
  flex: 1 1 calc(33.333% - 8px); min-width: 96px;
  background: #fff; color: #1B4F8A; border-color: #fff; font-size: 15px; padding: 12px 10px;
}
.record-cta-actions .ghost {
  flex: 1 1 calc(33.333% - 8px); min-width: 96px;
  background: transparent; color: #fff; border-color: rgba(255,255,255,.55); font-size: 15px; padding: 12px 10px;
}
/* 工作台第三钮「更新」：深底上用青绿描边，与弹层底栏同语义 */
.record-cta-actions #btn-todo-update,
.record-cta-actions .btn-update-loaned {
  background: rgba(15, 118, 110, 0.28);
  border-color: #5eead4;
  color: #ecfdf5;
  font-weight: 600;
}
@media (max-width: 380px) {
  .record-cta-actions .primary,
  .record-cta-actions .ghost {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    font-size: 14px;
    padding: 11px 8px;
  }
}
.period-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.filter-bar .period-bar { flex: 1 1 100%; width: 100%; }
.filter-bar .period-bar select, .period-bar select {
  min-height: 40px; min-width: 140px; width: auto; flex: 1;
}
.snap-period { margin-top: 4px; }
.kpi-grid-5 { grid-template-columns: 1fr 1fr; }
.kpi-grid-5 .card.kpi:last-child { grid-column: 1 / -1; }
.recog-strip {
  background: #F8FAFC; border: 1px dashed var(--line); border-radius: 10px;
  padding: 10px; margin-bottom: 10px;
}
.recog-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.recog-actions button { flex: 1; min-height: 40px; }
.recog-strip textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 13px; font-family: inherit; }
.recog-hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.find-list { max-height: 240px; overflow: auto; margin-top: 8px; }
.find-item {
  display: block; width: 100%; text-align: left; margin-bottom: 6px;
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; cursor: pointer;
}
.find-item:active { background: #F1F5F9; }

/* BM 门店三块卡片区 2026-10-25 */
.board-sec { margin: 16px 0 8px; }
.board-sec-hd { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0 0 8px; }
.board-sec-hd h3 { margin:0; font-size:15px; font-weight:650; color:var(--ink); }
.board-sec-hd .muted { font-size:11px; }
.rank-list { display:grid; grid-template-columns:1fr; gap:8px; }
@media (min-width:480px) { .rank-list { grid-template-columns:1fr 1fr; } }
.rank-card {
  background:var(--card, #fff); border:1px solid var(--line); border-radius:12px;
  padding:10px 12px; box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.rank-card-top { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.rank-idx {
  flex:0 0 auto; width:22px; height:22px; border-radius:999px; background:#EEF2F7;
  color:var(--brand,#1B4F8A); font-size:12px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
}
.rank-name { font-weight:600; font-size:14px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rank-card-body { display:flex; gap:14px; align-items:flex-end; flex-wrap:wrap; }
.rank-metric .v { font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink); line-height:1.2; }
.rank-metric .l { font-size:11px; color:var(--muted); margin-top:2px; }


/* 门店排名五维 + 静默下钻 2026-10-25f */
.seg.seg-wrap { display:flex; flex-wrap:wrap; width:100%; }
.seg.seg-wrap button { flex:1 1 auto; padding:8px 10px; min-height:36px; font-size:12px; }
.sr-rank-list { display:flex; flex-direction:column; gap:10px; }
.sr-row {
  background:var(--card,#fff); border:1px solid var(--line); border-radius:12px;
  padding:10px 12px; cursor:pointer; box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.sr-row:active { background:#F8FAFC; }
.sr-row-hd { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.sr-val-above {
  font-size:15px; font-weight:700; font-variant-numeric:tabular-nums;
  color:var(--brand,#1B4F8A); margin:2px 0 4px; line-height:1.2;
}
.sr-row .sr-track { height:10px; background:#EEF2F7; border-radius:999px; overflow:hidden; grid-column:auto; }
.sr-row .sr-fill { min-width:0; }
.sr-row .sr-name { flex:1; font-weight:600; }
.kpi-tap { cursor:pointer; }
.kpi-tap:active { opacity:.92; }
.silent-list { display:flex; flex-direction:column; gap:8px; }
.silent-row {
  background:var(--card,#fff); border:1px solid var(--line); border-radius:12px;
  padding:10px 12px; cursor:pointer;
}
.silent-row:active { background:#F8FAFC; }
.silent-row-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.silent-days { font-size:12px; font-weight:600; color:var(--accent,#C45C26); white-space:nowrap; }
.silent-meta { font-size:11px; margin-top:4px; }
.board-sec-soft { opacity:.92; }
.board-drill {
  margin:12px 0 8px; padding:12px; border:1px solid var(--line);
  border-radius:12px; background:#F8FAFC;
}
.board-drill .ledger-row { background:#fff; }


/* 汽车分期计算器 2026-10-25l */
.loan-calc { margin-top: 10px; }
.loan-calc .page-title { margin-bottom: 10px; }
.loan-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-bottom: 10px;
}
.loan-field {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.loan-field input, .loan-field select {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 14px; width: 100%;
  background: #fff; color: var(--ink); font-family: inherit;
}
.loan-field input:focus, .loan-field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,79,138,.12);
}
.loan-presets {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  grid-column: 1 / -1; margin-top: -4px;
}
.loan-presets .lc-preset { padding: 4px 8px; font-size: 12px; min-height: 28px; }
.loan-presets .lc-preset.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.loan-result {
  background: #F8FAFC; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin-bottom: 10px;
}
.loan-result .lr-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
}
.loan-result .lr-item .k { font-size: 11px; color: var(--muted); }
.loan-result .lr-item .v {
  font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink); line-height: 1.25; margin-top: 2px;
}
.loan-result .lr-item.accent .v { color: var(--brand, #1B4F8A); }
.loan-result .lr-item.wide { grid-column: 1 / -1; }
.loan-result .lr-err { color: var(--danger); font-size: 13px; margin: 0; }
.loan-intro {
  border-top: 1px dashed var(--line); padding-top: 10px;
}
.loan-intro-title {
  font-size: 12px; font-weight: 650; color: var(--ink); margin-bottom: 4px;
}
.loan-intro p { margin: 0; font-size: 12px; line-height: 1.55; }


/* 汽车分期计算器 · 二级入口 2026-10-25n */
.tool-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer; margin-top: 10px;
  padding: 12px 14px; border: 1px solid var(--line);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: inherit; color: inherit;
}
a.tool-entry { text-decoration: none; color: inherit; }
.tool-entry:active { background: #F8FAFC; }
.tool-entry-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.tool-entry-sub { margin-top: 2px; font-size: 11px; }
.tool-entry-chev {
  flex: 0 0 auto; font-size: 22px; line-height: 1; color: var(--muted); font-weight: 300;
}
.calc-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.calc-nav #btn-calc-back { font-size: 14px; padding: 8px 12px; }
.loan-calc { margin-top: 0; }
#pane-calc.pane.active { padding-bottom: 8px; }

/* 计算器可点控件对比度加强 2026-10-25o */
#loanCalcEntry.tool-entry {
  border: 1.5px solid #7BA3C9;
  background: linear-gradient(180deg, #F7FBFF 0%, #E8F0F8 100%);
  box-shadow: 0 2px 8px rgba(27,79,138,.14);
}
#loanCalcEntry .tool-entry-title {
  color: #143D6B;
  font-weight: 700;
}
#loanCalcEntry .tool-entry-sub { color: #3D5A73; }
#loanCalcEntry .tool-entry-chev {
  color: #143D6B; font-weight: 600; font-size: 24px; opacity: 1;
}
#loanCalcEntry.tool-entry:active {
  background: #D6E6F5;
}

#pane-calc #btn-calc-back {
  background: #143D6B;
  color: #fff;
  border-color: #0F2F52;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15,47,82,.28);
}
#pane-calc #btn-calc-back:active { background: #0F2F52; }

#pane-calc .loan-presets .lc-preset {
  background: #EEF2F7;
  color: #0F1C2E;
  border: 1.5px solid #64748B;
  font-weight: 650;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}
#pane-calc .loan-presets .lc-preset.active {
  background: #0F2F52;
  color: #fff;
  border-color: #0A213A;
  box-shadow: 0 1px 4px rgba(10,33,58,.35);
  font-weight: 700;
}

#pane-calc .loan-field select,
#pane-calc .loan-field input {
  border: 1.5px solid #64748B;
  font-weight: 600;
  color: #0F1C2E;
  background: #fff;
}
#pane-calc .loan-field select {
  background: #F1F7FC;
  cursor: pointer;
}
#pane-calc .loan-field select:focus,
#pane-calc .loan-field input:focus {
  border-color: #143D6B;
  box-shadow: 0 0 0 3px rgba(20,61,107,.18);
}


/* —— 经营看板双折线 —— */
.board-trend-controls {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 8px; width: 100%;
}
.board-trend-controls .seg {
  display: inline-flex; border: 1px solid var(--line,#D8E0EA); border-radius: 8px;
  overflow: hidden; background: #F8FAFC;
}
.board-trend-controls .seg button {
  border: 0; background: transparent; padding: 5px 10px; font-size: 12px;
  color: var(--muted); cursor: pointer; margin: 0; border-radius: 0;
}
.board-trend-controls .seg button.active {
  background: var(--brand); color: #fff; font-weight: 600;
}
.board-trend-controls .trend-lab {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 11px; color: var(--muted); font-weight: 500;
}
.board-trend-controls .trend-lab select {
  min-width: 120px; padding: 5px 8px; font-size: 12px;
  border: 1px solid var(--line,#D8E0EA); border-radius: 8px; background: #fff;
}
.chart-legend-m {
  display: flex; gap: 14px; margin: 0 0 6px; font-size: 11px; color: var(--muted);
}
.chart-legend-m .lg::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px;
  margin-right: 5px; vertical-align: -1px;
}
.chart-legend-m .lg.apply::before { background: var(--brand); }
.chart-legend-m .lg.loan-n::before { background: var(--accent); }
.line-chart {
  width: 100%; height: 220px; position: relative;
  background: linear-gradient(180deg, #F8FBFE 0%, #fff 60%);
  border: 1px solid var(--line,#D8E0EA); border-radius: 10px; overflow: hidden;
}
.line-chart svg {
  width: 100%; height: 220px; display: block;
}
.line-chart .empty-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}

/* —— 从月到月点选器（经理看板） —— */
.mrp-wrap { position: relative; flex: 1 1 auto; min-width: 160px; }
.mrp-field-lab { font-size: 11px; color: var(--muted); font-weight: 500; display: block; margin-bottom: 2px; }
.mrp { position: relative; display: block; width: 100%; }
.mrp-trigger {
  display: flex; align-items: center; gap: 6px; width: 100%;
  min-height: 36px; padding: 6px 10px; font-size: 13px;
  border: 1px solid var(--line,#D8E0EA); border-radius: 8px; background: #fff;
  color: var(--ink,#0F172A); cursor: pointer; font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.mrp-trigger:hover, .mrp-trigger:focus { border-color: var(--brand); outline: none; }
.mrp-trigger-lab { flex: 1; text-align: left; white-space: nowrap; }
.mrp-caret { color: var(--muted); font-size: 10px; }
.mrp-panel {
  position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0;
  min-width: 260px; max-width: 320px; padding: 10px;
  background: #fff; border: 1px solid var(--line,#D8E0EA); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
.mrp-panel.hidden { display: none; }
.mrp-year-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.mrp-year-lab { font-size: 14px; font-weight: 600; }
.mrp-nav {
  width: 36px; height: 36px; border: 1px solid var(--line,#D8E0EA); border-radius: 8px;
  background: #F8FAFC; cursor: pointer; font-size: 18px; line-height: 1; padding: 0;
}
.mrp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.mrp-cell {
  padding: 10px 0; border: 1px solid transparent; border-radius: 8px;
  background: #F8FAFC; font-size: 13px; cursor: pointer; font-weight: 500;
  min-height: 40px;
}
.mrp-cell:hover { border-color: var(--brand); color: var(--brand); }
.mrp-cell.in-range { background: #E8F1FB; color: var(--brand); }
.mrp-cell.is-start, .mrp-cell.is-end, .mrp-cell.is-single {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.mrp-hint { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.mrp-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px;
}
.mrp-btn {
  padding: 8px 14px; font-size: 13px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line,#D8E0EA); background: #fff; min-height: 36px;
}
.mrp-btn.primary {
  background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600;
}
.board-trend-controls .mrp-wrap { width: 100%; flex: 1 1 100%; }


/* 进度数 · 与订单状态筛同文案 · 20261025progAmt 金额/层级热修（叠 kpiSoft） */
.progress-card { margin-top: 12px; }
.progress-card .page-title { margin-bottom: 10px; }
.progress-card .page-title h3 { margin: 0; font-size: 15px; font-weight: 700; }
.progress-card .page-title .muted { font-size: 12px; }
.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 380px) {
  .progress-grid { grid-template-columns: repeat(3, 1fr); }
}
.progress-cell {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px;
  padding: 12px 6px; border-radius: 10px;
  background: var(--card-2, #f1f5f9);
  border: 1px solid transparent;
  cursor: pointer; text-align: center;
  font: inherit; color: inherit;
  min-height: 72px;
}
.progress-cell:active { transform: scale(0.98); }
.progress-cell .pv {
  font-weight: 700; font-size: 17px;
  font-variant-numeric: tabular-nums; color: var(--ink, #0f172a);
  line-height: 1.15;
}
.progress-cell .pa {
  font-size: 11px; font-weight: 600; color: #475569;
  line-height: 1.25; margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.progress-cell .pl {
  font-size: 12.5px; font-weight: 700;
  line-height: 1.25; margin-top: 2px;
  color: inherit; /* 跟 ls-* 字色，对比更强 */
}
.progress-cell.is-zero .pa { color: #94a3b8; font-weight: 500; }
.progress-cell.is-zero .pv { color: #94a3b8; }
.progress-cell.is-zero .pl { color: #94a3b8; font-weight: 600; }

/* 录单字典下拉 + 增加 */
.dict-row{display:flex;gap:8px;align-items:center}
.dict-row select{min-width:0}


/* —— 经营看板 KPI 对比度 / 分组（20261025kpiSoft） —— */
#pane-board { background: var(--kpi-surface); }
.kpi-section { margin-bottom: 12px; }
.kpi-sec-hd {
  font-size: 13px; font-weight: 600; color: var(--kpi-ink);
  margin: 2px 0 8px; letter-spacing: .02em;
}
.kpi-biz-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.kpi-biz-grid .card.kpi.rail-silent { grid-column: 1 / -1; }
.card.kpi {
  background: var(--kpi-card); border-color: var(--line);
  border-left-width: 3px; border-left-style: solid;
}
.card.kpi .label { color: var(--kpi-label); }
.card.kpi .value {
  color: var(--kpi-ink) !important; font-weight: 700; font-size: 22px;
}
.card.kpi .sub { color: var(--kpi-label); }
.card.kpi .sub-amt {
  font-size: 12px; color: var(--kpi-amt); margin-top: 4px;
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.card.kpi.rail-apply { border-left-color: var(--kpi-rail-apply); }
.card.kpi.rail-reject { border-left-color: var(--kpi-rail-reject); }
.card.kpi.rail-loan { border-left-color: var(--kpi-rail-loan); }
.card.kpi.rail-pass { border-left-color: var(--kpi-rail-pass); }
.card.kpi.rail-pass-n { border-left-color: var(--kpi-rail-pass-n); }
.card.kpi.rail-silent {
  border-left-color: var(--kpi-rail-silent);
  background: #FFFBF0;
}
.card.kpi.kpi-tap:hover, .card.kpi.kpi-tap:focus {
  outline: none; box-shadow: 0 0 0 2px rgba(176,137,62,.35);
}
.board-sec-trend { margin-top: 4px; }
.chart-legend-m .lg.apply::before { background: var(--trend-apply); }
.chart-legend-m .lg.loan-n::before { background: var(--trend-loan); }

/* —— 业务分布饼图 —— */
.board-sec-bizpie { margin-top: 4px; margin-bottom: 12px; }
.biz-pie-wrap {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
  background: var(--kpi-card, #fff); border: 1px solid var(--line, #E2E8F0);
  border-radius: 12px; padding: 14px 16px;
}
.biz-pie-chart { flex: 0 0 auto; }
.biz-pie-svg { display: block; max-width: 100%; height: auto; }
.biz-pie-legend {
  list-style: none; margin: 0; padding: 0; flex: 1 1 180px;
  display: flex; flex-direction: column; gap: 8px;
}
.biz-pie-leg-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px; row-gap: 2px;
  align-items: center;
  font-size: 12px; color: var(--kpi-ink, #0F172A);
}
.biz-pie-swatch {
  width: 10px; height: 10px; border-radius: 2px;
  grid-row: 1 / span 2; align-self: center;
}
.biz-pie-name { font-weight: 600; color: var(--kpi-ink, #0F172A); }
.biz-pie-pct {
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--kpi-ink, #0F172A); text-align: right;
}
.biz-pie-amt {
  grid-column: 2 / span 2; font-size: 11px;
  color: var(--kpi-amt, #334155); font-variant-numeric: tabular-nums;
}

/* —— 工作台 · 经营看板入口 —— */
#boardEntry.tool-entry, .board-entry.tool-entry {
  border: 1.5px solid #6B7BB5;
  background: linear-gradient(180deg, #F7F8FF 0%, #EEF0F8 100%);
  box-shadow: 0 2px 8px rgba(74,111,165,.14);
  margin-top: 10px;
}
#boardEntry .tool-entry-title {
  color: #1E293B;
  font-weight: 700;
}
#boardEntry .tool-entry-sub { color: #475569; }
#boardEntry .tool-entry-chev {
  color: #4A6FA5; font-weight: 600; font-size: 24px; opacity: 1;
}
#boardEntry.tool-entry:active { background: #E2E6F5; }
#btn-goto-board.primary.sm {
  font-weight: 650; padding: 6px 12px; white-space: nowrap;
}


/* —— 待提交队列 · 多图 20261026multiQueue —— */
.pending-queue-card { margin-top: 10px; }
.pending-queue-card .page-title { margin-bottom: 8px; }
.pending-queue-list { display: flex; flex-direction: column; gap: 8px; }
.pq-empty { margin: 0; font-size: 12px; }
.pq-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  border-left: 4px solid var(--line);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit; color: inherit;
}
.pq-item:active { background: #F0F3F8; }
.pq-item.pq-error { border-left-color: var(--danger); background: #FFF5F4; }
.pq-item.pq-blocked { border-left-color: var(--danger); }
.pq-item.pq-warn { border-left-color: #D97706; background: #FFFBEB; }
.pq-item.pq-ready { border-left-color: var(--accent); }
.pq-item.pq-pending { border-left-color: #64748B; opacity: .85; }
.pq-item.pq-active { box-shadow: 0 0 0 2px rgba(27,79,138,.25); }
.pq-thumb {
  width: 48px; height: 48px; border-radius: 6px; object-fit: cover;
  background: var(--surface); border: 1px solid var(--line);
}
.pq-thumb.ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted);
}
.pq-main { min-width: 0; }
.pq-title { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-sub { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-miss { font-size: 11px; color: var(--danger); margin-top: 2px; }
.pq-warn-txt { font-size: 11px; color: #B45309; margin-top: 2px; }
.pq-phone-hint { font-size: 11px; color: #64748B; margin-top: 2px; }
.pq-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pq-badge {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; white-space: nowrap;
}
.pq-badge.err { background: #FDE8E6; color: var(--danger); }
.pq-badge.block { background: #FDE8E6; color: var(--danger); }
.pq-badge.warn { background: #FEF3E2; color: #B45309; }
.pq-badge.ok { background: #E6F6F1; color: var(--accent); }
.pq-badge.pend { background: #E5E7EB; color: #4B5563; }
.pq-del {
  border: none; background: transparent; color: var(--muted);
  font-size: 11px; padding: 2px 4px; cursor: pointer;
}
.pq-del:active { color: var(--danger); }
.pq-retry {
  border: 1px solid var(--line); background: #fff; color: var(--brand);
  font-size: 11px; padding: 2px 6px; border-radius: 4px; cursor: pointer;
}

.modal-actions-queue { flex-wrap: wrap; gap: 8px; }
.modal-actions-queue #btn-copy-last { margin-right: auto; }

/* 字段分色标注 */
#new-modal label.field-flag-red,
#new-modal .field-flag-red { color: var(--danger); font-weight: 650; }
#new-modal label.field-flag-yellow,
#new-modal .field-flag-yellow { color: #B45309; font-weight: 650; }
#new-modal label.field-flag-green,
#new-modal .field-flag-green { color: var(--accent); }
#new-modal label.field-flag-gray,
#new-modal .field-flag-gray { color: #64748B; }

#new-modal input.ff-red, #new-modal select.ff-red, #new-modal textarea.ff-red {
  border-color: var(--danger) !important;
  background: #FFF5F4;
}
#new-modal input.ff-yellow, #new-modal select.ff-yellow, #new-modal textarea.ff-yellow {
  border-color: #D97706 !important;
  background: #FFFBEB;
}
#new-modal input.ff-green, #new-modal select.ff-green, #new-modal textarea.ff-green {
  border-color: #3D8B74 !important;
}
#new-modal input.ff-gray, #new-modal select.ff-gray {
  border-color: #CBD5E1 !important;
  background: #F8FAFC;
}

.field-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.field-legend .leg-red { color: var(--danger); }
.field-legend .leg-yellow { color: #B45309; }
.field-legend .leg-green { color: var(--accent); }
.field-legend .leg-gray { color: #64748B; }

#new-ok:disabled { opacity: .45; cursor: not-allowed; }


/* —— 复制上一单 · 顶栏醒目 CTA（20261026copyLast） —— */
.copy-last-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #EEF6FF;
  border: 1px solid #BFDBFE;
}
.copy-last-cta {
  flex: 1 1 auto;
  min-height: 40px;
  font-weight: 700;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}
.copy-last-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.copy-last-note {
  font-size: 11px;
  color: #64748B;
  flex: 1 1 140px;
  line-height: 1.35;
}
#new-modal.edit-mode .copy-last-bar {
  display: none !important;
}

/* —— 总经理公司 Dashboard · 20261026gmDash —— */
#pane-board.gm-mode { background: #f5f6f8; }
.gm-nav.sticky-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  background: #f5f6f8; padding: 8px 0 10px; margin: 0 0 8px;
}
.gm-nav-titles { flex: 1; min-width: 0; }
.gm-nav-h { font-size: 17px; font-weight: 650; color: var(--ink, #0f172a); line-height: 1.25; }
.gm-nav-sub { font-size: 12px; color: var(--muted, #64748b); margin-top: 2px; }
.gm-back, #gm-refresh { min-height: 44px; padding: 0 12px; }
.gm-period-wrap { margin-bottom: 10px; }
.gm-period-lab { margin: 6px 0 0; font-size: 12px; }
.gm-mrp { margin-top: 8px; }
.gm-kpi-grid .card.kpi { min-height: 88px; }
.gm-kpi-grid .card.kpi .value.gm-kpi-v,
.card.kpi .value.gm-kpi-v { font-size: 28px !important; font-weight: 650; line-height: 1.15; }
.card.kpi.rail-net {
  border-left-color: #7c6bb5;
  background: #faf8ff;
}
.card.kpi.rail-urgent {
  border-left-color: #b0893e;
  background: #fffbf0;
}
.gm-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: #5b4d8a; background: #ebe6f7; border-radius: 4px;
  padding: 1px 6px; margin-left: 4px; vertical-align: middle;
}
.gm-mini-chart { height: 160px !important; min-height: 160px; }
.gm-chips {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 12px 8px 0; margin: 4px 0 12px;
}
.gm-chip {
  flex: 0 0 auto; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line, #e2e8f0);
  background: #fff; color: var(--ink, #0f172a); font-size: 14px; font-weight: 500;
}
.gm-chip:active { background: #f1f5f9; }
.gm-rank-list { display: flex; flex-direction: column; gap: 8px; }
.gm-rank-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 12px 12px;
  background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px;
  cursor: pointer;
}
.gm-rank-row:active { background: #f8fafc; }
.gm-rank-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.gm-rank-idx {
  width: 22px; height: 22px; border-radius: 50%;
  background: #eef2f7; color: #475569; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.gm-rank-name { font-size: 15px; font-weight: 600; color: var(--ink, #0f172a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-rank-val { text-align: right; flex: 0 0 auto; }
.gm-rank-val .v { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.gm-rank-val .l { font-size: 12px; }
.gm-chev { color: #94a3b8; font-size: 18px; flex: 0 0 auto; }
.gm-dim-seg { margin-bottom: 10px; }
.gm-dim-seg button { min-height: 40px; }
.gm-order-list .order-card { margin-top: 8px; min-height: 56px; }
#pane-board.gm-mode #boardFilters.hidden { display: none !important; }


/* 20261026ocrDraft · 暂存 / 待补全 */
.pq-item.pq-draft { border-left-color: #7C3AED; background: #F5F3FF; }
.pq-badge.draft { background: #EDE9FE; color: #5B21B6; }
button.btn-draft, .btn-draft {
  background: #F5F3FF;
  color: #5B21B6;
  border-color: #C4B5FD;
}
button.btn-draft:active { opacity: 0.85; }
.modal-actions-queue #new-draft { order: 2; }
.modal-actions-queue #new-ok { order: 3; }
.modal-actions-queue #new-cancel { order: 1; }


/* 20261026mUpdateLoaned · 录单「更新」已放款 */
button.btn-update-loaned, .btn-update-loaned {
  border-color: #0d9488; color: #0f766e; background: #f0fdfa;
  font-weight: 600;
}
button.btn-update-loaned:active { opacity: 0.85; }
button.btn-update-loaned:disabled { opacity: .45; cursor: not-allowed; }
.modal-actions-queue #new-update-loaned { order: 2; }
.modal-actions-queue #new-draft { order: 2; }
.modal-actions-queue #new-ok { order: 3; }


/* 20261026mUpdateUx · 工作台「更新」入口 + 弹层底栏高亮 */
#new-update-loaned.update-cta-focus,
button.btn-update-loaned.update-cta-focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.45);
  outline: 2px solid #0d9488;
  font-weight: 700;
}
#new-modal.update-loaned-mode #new-update-loaned {
  border-color: #0d9488;
  background: #ccfbf1;
}

/* 20261026mUpdateUx · 去提成：速览两列 */


/* 20261026mUpdateUx · 更新已放款简化弹层 */
#update-loaned-modal .update-loaned-card { max-width: 340px; }
#update-loaned-modal .ul-hint { margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
#update-loaned-modal .ul-pick .recog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#update-loaned-modal .ul-thumbs {
  display: flex; flex-direction: column; gap: 8px; margin-top: 12px;
}
#update-loaned-modal .ul-thumb {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px;
  background: #f8fafc;
}
#update-loaned-modal .ul-thumb.err { border-color: #fecaca; background: #fef2f2; }
#update-loaned-modal .ul-thumb img,
#update-loaned-modal .ul-thumb-ph {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: #e2e8f0;
}
#update-loaned-modal .ul-thumb-meta { min-width: 0; flex: 1; }
#update-loaned-modal .ul-thumb-name {
  display: block; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#update-loaned-modal .ul-thumb-st { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
#update-loaned-modal .ul-thumb-err { display: block; font-size: 11px; color: var(--danger); margin-top: 2px; }
#update-loaned-modal .ul-result { margin-top: 14px; }
#update-loaned-modal .ul-ok,
#update-loaned-modal .ul-miss {
  border-radius: 12px; padding: 12px 14px;
}
#update-loaned-modal .ul-ok { background: #f0fdfa; border: 1px solid #99f6e4; }
#update-loaned-modal .ul-ok.done { background: #ecfdf5; border-color: #6ee7b7; }
#update-loaned-modal .ul-miss { background: #fff7ed; border: 1px solid #fed7aa; }
#update-loaned-modal .ul-ok-title,
#update-loaned-modal .ul-miss-title {
  font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
#update-loaned-modal .ul-miss-title { color: #c2410c; }
#update-loaned-modal .ul-ok-title { color: #0f766e; }
#update-loaned-modal .ul-fields {
  display: grid; grid-template-columns: 1fr; gap: 6px; font-size: 13px;
}
#update-loaned-modal .ul-fields .k {
  display: inline-block; min-width: 6.5em; color: var(--muted); margin-right: 6px;
}
#update-loaned-modal .ul-fields .v { font-weight: 600; font-variant-numeric: tabular-nums; }
#update-loaned-modal .ul-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #ccfbf1; color: #0f766e; font-size: 12px;
}
#update-loaned-modal .ul-diff { margin-top: 12px; }
#update-loaned-modal .ul-diff-title {
  font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px;
}
#update-loaned-modal .ul-diff-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
#update-loaned-modal .ul-diff-table th,
#update-loaned-modal .ul-diff-table td {
  border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top;
}
#update-loaned-modal .ul-diff-table th { background: #f1f5f9; font-weight: 600; }
#update-loaned-modal .ul-diff-table tr.changed td:last-child {
  color: #0f766e; font-weight: 700; background: #f0fdfa;
}
#update-loaned-modal .ul-actions { margin-top: 14px; }

#update-loaned-modal .ul-dropzone {
  display: block; width: 100%; text-align: center;
  border: 2px dashed #99f6e4; border-radius: 12px;
  background: #f0fdfa; padding: 22px 12px; cursor: pointer;
  color: #0f766e;
}
#update-loaned-modal .ul-dropzone:active { background: #ccfbf1; }
#update-loaned-modal .ul-drop-title { font-weight: 700; font-size: 15px; }
#update-loaned-modal .ul-drop-sub { margin-top: 4px; font-size: 12px; }
#update-loaned-modal .ul-hit-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #0d9488; color: #fff; font-size: 12px; margin-right: 4px;
  vertical-align: middle;
}
#update-loaned-modal .ul-checks { margin-top: 12px; }
#update-loaned-modal .ul-checks-title {
  font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px;
}
#update-loaned-modal .ul-check-list { display: flex; flex-direction: column; gap: 6px; }
#update-loaned-modal .ul-check {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  background: #fff; font-size: 13px;
}
#update-loaned-modal .ul-check.locked { background: #f8fafc; }
#update-loaned-modal .ul-check-label { font-weight: 600; }
#update-loaned-modal .ul-check-pair { flex: 1 1 100%; font-size: 11px; }


/* 20261026mUpdateOneDoc · 批量命中列表 */
#update-loaned-modal .update-loaned-card { max-width: 340px; }
#update-loaned-modal .ul-batch { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
#update-loaned-modal .ul-batch-sec-title {
  font-size: 13px; font-weight: 700; color: #0f766e; margin: 4px 0 0;
}
#update-loaned-modal .ul-batch-sec-title.miss { color: #c2410c; }
#update-loaned-modal .ul-hit-card {
  border: 1px solid #99f6e4; background: #f0fdfa; border-radius: 12px; padding: 10px 12px;
}
#update-loaned-modal .ul-hit-card.unchecked { opacity: 0.72; background: #f8fafc; border-color: #e2e8f0; }
#update-loaned-modal .ul-hit-head {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px;
}
#update-loaned-modal .ul-hit-head input { margin-top: 3px; }
#update-loaned-modal .ul-hit-main { flex: 1; min-width: 0; }
#update-loaned-modal .ul-hit-title { font-weight: 700; color: #0f766e; font-size: 14px; }
#update-loaned-modal .ul-hit-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
#update-loaned-modal .ul-hit-card .ul-diff-table { margin-top: 6px; font-size: 12px; }
#update-loaned-modal .ul-miss-card {
  border: 1px solid #fed7aa; background: #fff7ed; border-radius: 12px; padding: 10px 12px;
}
#update-loaned-modal .ul-miss-card .ul-miss-title { font-size: 13px; font-weight: 700; color: #c2410c; }
#update-loaned-modal .ul-warn { color: #b45309; font-size: 12px; margin-top: 4px; }


/* ===== 20261027mRemark · 拒件原因入口加显 ===== */
.reject-reason-block {
  margin: 10px 0 12px;
  padding: 12px 12px 10px;
  border: 2px solid #B42318;
  border-radius: 12px;
  background: #FFF5F4;
}
.reject-reason-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #B42318;
  margin-bottom: 6px;
}
.reject-reason-label::before {
  content: "⚠ ";
}
.reject-reason-input {
  min-height: 96px;
  font-size: 15px;
  line-height: 1.45;
  border: 1.5px solid #F04438 !important;
  background: #fff;
}
.reject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}
.reject-chips .reject-chip,
.reject-chips button {
  font-size: 13px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border-color: #F04438 !important;
  color: #B42318 !important;
  background: #fff !important;
  min-height: 36px;
}


/* ===== 20261027mCreateFix · 大文本框共用（拒件/取消/备注）+ 暂存醒目 ===== */
.big-reason-block {
  margin: 10px 0 12px;
  padding: 12px 12px 10px;
  border: 2px solid #B42318;
  border-radius: 12px;
  background: #FFF5F4;
}
.big-reason-block.hidden { display: none !important; }
.big-reason-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #B42318;
  margin-bottom: 6px;
}
.big-reason-label::before { content: "⚠ "; }
.big-reason-input {
  min-height: 96px;
  font-size: 15px;
  line-height: 1.45;
  border: 1.5px solid #F04438 !important;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.cancel-reason-block {
  border-color: #B45309;
  background: #FFFBEB;
}
.cancel-reason-label { color: #B45309; }
.cancel-reason-input { border-color: #F59E0B !important; }
.remark-reason-block {
  border-color: #1B4F8A;
  background: #F0F6FC;
}
.remark-reason-label { color: #1B4F8A; }
.remark-reason-label::before { content: ""; }
.remark-reason-input { border-color: #94A3B8 !important; min-height: 88px; }

button.btn-draft, .btn-draft {
  background: #7C3AED !important;
  color: #fff !important;
  border-color: #6D28D9 !important;
  font-weight: 700;
  min-height: 40px;
  padding: 8px 14px;
}
button.btn-draft:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#new-modal.edit-mode #new-draft { display: none !important; }
.modal-actions-queue #new-draft { order: 2; }
.modal-actions-queue #new-update-loaned { order: 2; }
.modal-actions-queue #new-ok { order: 3; }
.modal-actions-queue #new-cancel { order: 1; }


/* 20261027mCreateFix · 暂存更醒目 + 底栏不挤掉 */
.modal-actions-queue {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), #fff 40%);
  padding-top: 10px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
}
.modal-actions-queue #btn-copy-last { order: 0; flex: 1 1 100%; margin-right: 0; }
.modal-actions-queue #new-cancel { order: 1; }
.modal-actions-queue #new-draft { order: 2; min-width: 6.5em; font-weight: 700; }
.modal-actions-queue #new-update-loaned { order: 3; }
.modal-actions-queue #new-ok { order: 4; min-width: 5.5em; }
button.btn-draft, .btn-draft {
  background: #EDE9FE !important;
  color: #4C1D95 !important;
  border-color: #8B5CF6 !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25);
}


/* ===== 20261027mAdmHitNarrow · 命中卡紧凑变窄，对照默认折叠 ===== */
#update-loaned-modal .update-loaned-card,
#update-loaned-modal .update-loaned-card.ul-narrow {
  max-width: 340px;
  width: calc(100vw - 28px);
}
#update-loaned-modal .ul-hint {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
}
#update-loaned-modal .ul-result { margin-top: 8px; }
#update-loaned-modal .ul-batch {
  margin-top: 8px;
  gap: 6px;
}
#update-loaned-modal .ul-batch-sec-title {
  font-size: 12px;
  margin: 2px 0 0;
}
#update-loaned-modal .ul-hit-card {
  padding: 6px 8px;
  border-radius: 8px;
}
#update-loaned-modal .ul-hit-row {
  display: grid;
  grid-template-columns: 18px minmax(3.2em, 1fr) auto auto auto;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
}
#update-loaned-modal .ul-hit-row input[type="checkbox"] {
  margin: 0;
  width: 18px !important;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  padding: 0;
  accent-color: #0d9488;
}
#update-loaned-modal .ul-hit-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: #115e59;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#update-loaned-modal .ul-hit-amt,
#update-loaned-modal .ul-hit-date {
  font-size: 12px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
}
#update-loaned-modal .ul-hit-date-inp {
  width: 7.4em !important;
  max-width: 7.8em;
  font-size: 11px;
  line-height: 1.2;
  padding: 1px 4px !important;
  min-height: 24px;
}
#update-loaned-modal .ul-hit-toggle {
  width: auto !important;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 7px !important;
  border-radius: 999px;
  border: 1px solid #99f6e4;
  background: #fff;
  color: #0f766e;
  min-height: 24px;
  white-space: nowrap;
}
#update-loaned-modal .ul-hit-diff[hidden] { display: none; }
#update-loaned-modal .ul-hit-card.open .ul-hit-diff { display: block; margin-top: 6px; }
#update-loaned-modal .ul-hit-card .ul-hit-sub {
  font-size: 11px;
  line-height: 1.3;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#update-loaned-modal .ul-hit-card .ul-diff-table {
  margin-top: 4px;
  font-size: 11px;
}
#update-loaned-modal .ul-hit-card .ul-diff-table th,
#update-loaned-modal .ul-hit-card .ul-diff-table td {
  padding: 3px 5px;
  max-width: 6.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#update-loaned-modal .ul-warn {
  font-size: 11px;
  line-height: 1.3;
  margin-top: 2px;
}
#update-loaned-modal .ul-miss-card {
  padding: 7px 8px;
  border-radius: 8px;
}
#update-loaned-modal .ul-miss-card .ul-miss-title { font-size: 12px; }

/* ===== 20261028postSanqinEdit · 对照表「后三亲」下拉（空/是/否） ===== */
#update-loaned-modal .ul-hit-sanqin-inp {
  width: 4.8em !important;
  max-width: 5.4em;
  min-width: 0;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 4px !important;
  min-height: 28px;
  height: auto;
}
#update-loaned-modal .ul-hit-card .ul-diff-table td:has(.ul-hit-sanqin-inp),
#update-loaned-modal .ul-hit-card .ul-diff-table td:has(.ul-hit-edit) {
  overflow: visible;
  max-width: none;
  white-space: normal;
}
/* ===== 20261028custAttachM · 对照「更新后」八项手改 ===== */
#update-loaned-modal .ul-hit-edit {
  width: 100%;
  max-width: 11em;
  min-width: 0;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 4px !important;
  min-height: 28px;
  height: auto;
  box-sizing: border-box;
}

/* 20261028pendingLoanKpi */
.card.kpi.rail-pending { border-left-color: var(--kpi-rail-pending,#C47A2C); background:#FFF8F0; }
.kpi-section-pending { margin:8px 0 12px; padding:10px; background:#FFFCF7; border:1px dashed #E8D4B8; border-radius:12px; }
.kpi-section-pending .kpi-sec-hd { color:#8A5A20; font-size:12px; margin-bottom:8px; }
