/* ==========================================================================
   普惠易 · 贸易融资业务管理系统  —  样式表
   ========================================================================== */
:root {
  --navy: #0b2740;
  --navy-2: #10395c;
  --navy-3: #17527f;
  --gold: #c9a35c;
  --brand: #1b6fd6;
  --brand-dark: #145bb4;
  --brand-soft: #eaf2fd;
  --bg: #f3f6fa;
  --card: #ffffff;
  --line: #e3e9f2;
  --line-2: #eef2f8;
  --text: #14263a;
  --muted: #6b7d92;
  --ok: #0f9d6e;
  --ok-bg: #e8f7f1;
  --warn: #c68600;
  --warn-bg: #fdf4e0;
  --danger: #d04a4a;
  --danger-bg: #fdecec;
  --info: #2d7ff9;
  --info-bg: #ebf2fe;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 38, 61, .05), 0 8px 24px -18px rgba(17, 38, 61, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd9e6; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 238px;
  flex: 0 0 238px;
  background: linear-gradient(180deg, var(--navy) 0%, #0a2137 100%);
  color: #c9d7e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand .logo {
  display: flex; align-items: center; gap: 10px;
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #2a86e8, #1a5fb4);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.brand .name { color: #fff; font-size: 16px; font-weight: 650; letter-spacing: .5px; }
.brand .sub { color: #7f95ab; font-size: 11px; margin-top: 3px; letter-spacing: .2px; }

.nav { padding: 12px 10px 24px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 4px; }
.nav-group > .g-title {
  font-size: 11px; color: #6c8299; letter-spacing: 1.6px;
  padding: 6px 12px 8px; text-transform: uppercase;
  display: flex; align-items: center; cursor: pointer; user-select: none;
}
.nav-group > .g-title::after {
  content: ""; margin-left: auto; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-135deg); transition: transform .18s; opacity: .75;
}
.nav-group.collapsed > .g-title { padding-bottom: 6px; }
.nav-group.collapsed > .g-title::after { transform: rotate(45deg); }
.nav-group.collapsed > .nav-item { display: none; }
.nav-group > .g-title:hover { color: #9db4ca; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: #c3d3e3; font-size: 13.5px; margin-bottom: 2px;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(43, 130, 224, .35), rgba(43, 130, 224, .08)); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 3px; background: var(--gold);
}
.nav-item .ic { width: 16px; height: 16px; opacity: .85; flex: 0 0 16px; }
/* 同一分组内的分隔线（报表管理：报表 / 额度台账） */
.nav-sep { height: 1px; margin: 10px 12px 9px; background: rgba(255, 255, 255, .09); }
.nav-group.collapsed > .nav-sep { display: none; }
.nav-item .badge-mini {
  margin-left: auto; background: rgba(201, 163, 92, .18); color: var(--gold);
  font-size: 11px; padding: 1px 7px; border-radius: 99px;
}
.side-foot {
  padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11px; color: #6f8499; line-height: 1.7;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; position: sticky; top: 0; z-index: 30;
}
.crumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.crumb b { color: var(--text); font-weight: 600; font-size: 14.5px; }
.crumb .sep { color: #c3ccd8; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #2a86e8, #17527f); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.role-chip {
  font-size: 11.5px; color: var(--brand); background: var(--brand-soft);
  padding: 3px 9px; border-radius: 99px; border: 1px solid #d5e6fb;
}

.content { padding: 22px 26px 46px; max-width: 1560px; width: 100%; }

/* ---------- 通用组件 ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 20px; letter-spacing: .3px; }
.page-desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; max-width: 820px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.card-head {
  padding: 15px 20px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-head h3 { font-size: 14.5px; letter-spacing: .2px; }
.card-head .hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.card-body { padding: 18px 20px; }
.card-body.tight { padding: 0; overflow-x: auto; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(27, 111, 214, .08), transparent 70%);
}
.kpi .label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 25px; font-weight: 680; margin-top: 8px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 6px; }
/* 多行说明（用 <br> 分行的）要按块排，flex 会把文字挤成一个个 flex item 乱折行 */
.kpi .sub.sub-block { display: block; line-height: 1.7; }
.kpi.gold .value { color: #a5762a; }
.kpi.good .value { color: var(--ok); }
.kpi.warn .value { color: var(--warn); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 1.55fr; gap: 16px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: all .15s; background: #fff; color: var(--text); font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(180deg, #2a7fe3, #1a63c4); color: #fff; box-shadow: 0 2px 6px rgba(26, 99, 196, .25); }
.btn-primary:hover { color: #fff; box-shadow: 0 4px 12px rgba(26, 99, 196, .32); }
.btn-ghost { border-color: var(--line); color: #35506b; background: #fff; }
.btn-ghost:hover { border-color: #c9d8e9; color: var(--brand); }
.btn-danger { background: #fff; border-color: #f0cccc; color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-gold { background: linear-gradient(180deg, #d8b571, #c19a4e); color: #fff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; color: var(--brand); cursor: pointer; font-size: 13px; padding: 0; font-family: inherit; }
.link-btn.danger { color: var(--danger); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; }
table.table th {
  background: #f7f9fc; color: #5d7085; font-size: 12.5px; font-weight: 600;
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0;
}
table.table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line-2);
  font-size: 13.2px; vertical-align: middle; color: #23384e;
}
table.table tbody tr:hover td { background: #fafcff; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table td.num, table.table th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.table td.actions { white-space: nowrap; }
table.table th, table.table td { white-space: nowrap; }
/* 发票列表的「销方 / 购方」：公司名放得下就一行，放不下折成两行（最多两行，再长省略，悬停看全称）。
   表格是 width:max-content 的自动布局，靠内层定宽 div 才能让单元格真正换行 */
table.table td.nm-cell { white-space: normal; }
.nm-2l {
  width: 196px; max-width: 196px;
  white-space: normal; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere; word-break: break-word;
}
table.table { width: max-content; min-width: 100%; }
.table-wrap { -webkit-overflow-scrolling: touch; }
table.table td.actions a, table.table td.actions button { margin-right: 8px; font-size: 12.5px; }
table.table tr.row-warn td { background: #fff9f1; }
table.table tr.row-danger td { background: #fff5f5; }
.t-main { font-weight: 600; color: #12283e; }
.t-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12.5px; letter-spacing: .2px; }
/* 已作废的发票号码：置灰 + 删除线，跟正常票一眼能分开 */
.mono.is-del { color: #8b9aab; text-decoration: line-through; text-decoration-thickness: 1px; }
.mono.is-del:hover { color: #6f7f92; }
.nowrap { white-space: nowrap; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .big { font-size: 26px; opacity: .25; margin-bottom: 8px; }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 99px; font-size: 11.8px; line-height: 1.7;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.ok { color: #0b7d58; background: var(--ok-bg); border-color: #cbeadd; }
.badge.warn { color: #a06a00; background: var(--warn-bg); border-color: #f3e3bf; }
.badge.danger { color: #b13b3b; background: var(--danger-bg); border-color: #f2d2d2; }
.badge.info { color: #1f66c9; background: var(--info-bg); border-color: #d4e4fc; }
.badge.muted { color: #61748a; background: #f0f3f7; border-color: #e2e8f0; }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-soft { display: inline-block; padding: 1px 7px; border-radius: 5px; background: #f1f5fa; color: #4d647c; font-size: 11.5px; margin-right: 4px; }

/* 发票列表融资标签：单元格内单行省略，点击整格弹出全部 */
table.table td.tag-cell { max-width: 320px; white-space: normal; }
.tag-cell .tag-soft {
  max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: middle; max-height: 22px; line-height: 20px;
}
.tag-cell.has-tags { cursor: pointer; }
.tag-cell .tag-more {
  display: inline-block; padding: 1px 7px; border-radius: 5px; background: #e9f0fb;
  color: var(--brand); font-size: 11.5px; cursor: pointer;
}
.tag-cell:hover .tag-more { background: #d9e6fa; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list .tag-soft { margin-right: 0; padding: 4px 11px; font-size: 12.5px; max-width: none; height: auto; max-height: none; }

/* 提示条 */
.flash { padding: 11px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; display: flex; gap: 9px; align-items: flex-start; }
.flash.ok { background: var(--ok-bg); border: 1px solid #cbeadd; color: #0b6b4c; }
.flash.err { background: var(--danger-bg); border: 1px solid #f2d2d2; color: #a83535; }
.alert { padding: 12px 15px; border-radius: 10px; font-size: 12.8px; line-height: 1.7; margin-bottom: 14px; }
.alert.warn { background: var(--warn-bg); border: 1px solid #f3e3bf; color: #8a5c00; }
.alert.info { background: var(--info-bg); border: 1px solid #d4e4fc; color: #1f5aa8; }
.alert.danger { background: var(--danger-bg); border: 1px solid #f2d2d2; color: #a83535; }
.alert.ok { background: var(--ok-bg); border: 1px solid #cbeadd; color: #0b6b4c; }
.alert b { font-weight: 650; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: #5d7085; margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field .help { font-size: 11.5px; color: #8b9aac; margin-top: 5px; line-height: 1.6; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=month],
input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #d7e0ea; border-radius: 8px;
  font-size: 13.2px; color: var(--text); background: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #8cb6ec; box-shadow: 0 0 0 3px rgba(43, 127, 224, .12);
}
textarea { min-height: 86px; resize: vertical; line-height: 1.7; }
.switch-row { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.switch-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #35506b; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--brand); }
.form-actions { display: flex; gap: 10px; padding-top: 8px; }
/* 复选框行 + 独立说明文字 */
label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #33475e; cursor: pointer; line-height: 1.6; }
label.check input { margin-top: 3px; flex: none; }
.help-block { font-size: 11.5px; color: #8b9aac; margin-top: 6px; line-height: 1.7; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 150px; }
.filters .field label { margin-bottom: 5px; }
/* 筛选条里的按钮组：始终整体换行，避免两个按钮被拆到两行 */
.filters-btns { display: flex; align-items: center; gap: 8px; }
/* 筛选条里的日期区间（如「注册时间 起 ~ 止」）：整组一起换行，区间内不拆、
   也不许被 flex 压缩（否则两个日期框会被挤成「年/月/日」只露三个字） */
.filters .field.has-range { min-width: 296px; flex: none; }
.filters .date-range { display: flex; align-items: center; gap: 6px; flex: none; }
.filters .date-range input[type=date] { width: 134px; flex: none; }
.filters .date-sep { color: #7d92a8; font-size: 12px; flex: none; }
/* 注册地三级联动（省 / 市 / 区县）：三个下拉并排，整组一起换行，内部可压缩 */
.filters .field.region-field { min-width: 438px; flex: 0 1 438px; }
.filters .field .region-sub { font-weight: 400; font-size: 11.5px; color: #8b9aac; margin-left: 2px; }
.region-pick { display: flex; gap: 6px; }
.region-pick select { flex: 1 1 0; min-width: 0; width: 100%; }

/* 识别确认表：单元格内直接编辑 */
table.rec-table td { vertical-align: top; padding: 6px 8px; }
.cell-input { width: 100%; padding: 5px 7px !important; font-size: 12.5px !important; border-radius: 6px !important; }
.cell-input.w-220 { width: 220px; }
.cell-input.w-180 { width: 180px; }
.cell-input.w-130 { width: 130px; }
.cell-input.w-120 { width: 120px; }
.cell-input.num { text-align: right; }
.file-cell { max-width: 240px; }
.fs-sm { font-size: 11.5px !important; }
.row-err td { background: #fff7f7; }
.warn-line { font-size: 11px; color: #b06a00; line-height: 1.5; margin-top: 3px; }
table.rec-table details summary { cursor: pointer; font-size: 12px; color: var(--brand); white-space: nowrap; }
table.rec-table details table { margin-top: 6px; background: #fff; box-shadow: 0 2px 10px rgba(20, 40, 70, .12); }
table.rec-table details table th, table.rec-table details table td { padding: 4px 8px; font-size: 11.5px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input, .inline-form select { width: auto; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 20px; background: #fbfcfe; }
.tab {
  padding: 12px 16px; font-size: 13.2px; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--brand); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; background: #fff; }
.tab .count { background: #eef3f9; color: #5d7085; border-radius: 99px; padding: 0 6px; font-size: 11px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* 描述列表 */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.dl.two { grid-template-columns: 1fr 1fr; }
.dl .item { padding: 13px 18px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.dl .item .k { font-size: 11.8px; color: var(--muted); margin-bottom: 5px; }
.dl .item .v { font-size: 13.4px; color: #1b3145; }
.dl .item.wide { grid-column: span 2; }

/* 额度条 */
.bar { height: 6px; background: #edf2f8; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4b9bf0, #1b6fd6); }
.bar.warn > i { background: linear-gradient(90deg, #f2b544, #d99a1a); }
.bar.danger > i { background: linear-gradient(90deg, #ef7b7b, #d04a4a); }
.quota-cell { min-width: 150px; }
.quota-cell .nums { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

/* 链路流程图 */
.flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; padding: 6px 0; }
.flow-node {
  flex: 1 1 150px; min-width: 150px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 13px; position: relative;
}
.flow-node .pos {
  position: absolute; top: -8px; left: 12px; background: var(--navy); color: #fff;
  font-size: 10.5px; padding: 1px 7px; border-radius: 99px;
}
.flow-node .nm { font-size: 13px; font-weight: 600; margin-top: 4px; }
.flow-node .ctl { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.flow-node.end { background: #f7fbff; border-color: #d5e6fb; }
.flow-arrow {
  display: grid; place-items: center; width: 34px; color: #b7c6d8; font-size: 15px; flex: 0 0 34px;
}

/* 时间轴 */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: #dde6f0; }
.tl-item { position: relative; padding: 0 0 20px 0; }
.tl-item::before {
  content: ""; position: absolute; left: -23px; top: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand);
}
.tl-item.done::before { background: var(--brand); }
.tl-item .tl-title { font-size: 13.3px; font-weight: 600; }
.tl-item .tl-meta { font-size: 11.8px; color: var(--muted); margin-top: 4px; }
.tl-item .tl-body { margin-top: 8px; font-size: 12.8px; color: #3c556d; }

/* 图表（纯 CSS/SVG） */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 92px; gap: 12px; align-items: center; font-size: 12.7px; }
.bar-row .nm { color: #35506b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #f1f5fa; border-radius: 6px; height: 10px; overflow: hidden; }
.bar-track > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4b9bf0, #1b6fd6); }
.bar-row .val { text-align: right; color: #47617a; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

.spark { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.spark .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.spark .pairs { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.spark .b1, .spark .b2 { width: 13px; border-radius: 3px 3px 0 0; min-height: 2px; }
.spark .b1 { background: #a9cdf5; }
.spark .b2 { background: #1b6fd6; }
.spark .lbl { font-size: 11px; color: var(--muted); }

/* 进度环（额度使用率） */
.donut-row { display: flex; align-items: center; gap: 18px; }
.donut { position: relative; width: 108px; height: 108px; flex: 0 0 108px; }
.donut svg { transform: rotate(-90deg); }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 680; }

/* 搜索 / 过滤器 */
.searchbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.searchbar input[type=text] { width: 240px; }
.pill-group { display: inline-flex; background: #f1f5fa; border-radius: 8px; padding: 3px; gap: 2px; }
.pill-group a { padding: 5px 12px; border-radius: 6px; font-size: 12.5px; color: #5d7085; }
.pill-group a.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(20, 40, 60, .1); font-weight: 600; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 30, 48, .45); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 640px; max-width: 100%; max-height: 90vh;
  overflow: auto; box-shadow: 0 24px 60px -12px rgba(9, 26, 43, .4);
  animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(8px) scale(.99); opacity: .6; } to { transform: none; opacity: 1; } }
.modal.wide { width: 860px; }
.modal-head { padding: 17px 22px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: #fbfcfe; }
.x { background: none; border: 0; font-size: 20px; color: #9aabbd; cursor: pointer; line-height: 1; }

/* 登录页 */
.login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: #fff;
}
.login-left {
  background: linear-gradient(150deg, #0b2740 0%, #123a5b 45%, #1a4f78 100%);
  color: #fff; padding: 54px 58px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-left::before {
  content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 163, 92, .22), transparent 65%);
}
.login-left::after {
  content: ""; position: absolute; left: -90px; bottom: -140px; width: 380px; height: 380px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08);
}
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.login-brand .mark { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, #3a97f0, #1a5fb4); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.login-hero { position: relative; }
.login-hero h2 { font-size: 32px; line-height: 1.35; letter-spacing: 1px; font-weight: 650; }
.login-hero p { color: #a9c0d6; font-size: 13.5px; line-height: 2; margin-top: 18px; max-width: 460px; }
.login-points { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.login-points div { font-size: 12px; color: #b6cadc; border-left: 2px solid rgba(201, 163, 92, .6); padding-left: 10px; line-height: 1.7; }
.login-points b { display: block; color: #fff; font-size: 19px; font-weight: 650; }
.login-right { display: grid; place-items: center; padding: 40px; }
.login-box { width: 348px; }
.login-box h1 { font-size: 23px; margin-bottom: 8px; }
.login-box .sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.login-box .field { margin-bottom: 16px; }
.login-box .btn { height: 42px; font-size: 14px; }
.demo-accounts { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.demo-accounts code { background: #f4f7fb; padding: 1px 6px; border-radius: 4px; color: #33506c; }

/* 详情页 */
.detail-hero {
  background: linear-gradient(120deg, #10395c, #17527f);
  color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.detail-hero h2 { font-size: 19px; }
.detail-hero .meta { font-size: 12.5px; color: #b7cde0; margin-top: 7px; display: flex; gap: 18px; flex-wrap: wrap; }
.detail-hero .big { font-size: 24px; font-weight: 680; text-align: right; }
.detail-hero .big small { display: block; font-size: 11.5px; color: #a9c2d7; font-weight: 400; margin-top: 4px; }

.stat-line { display: flex; gap: 26px; flex-wrap: wrap; }
.stat-line .it .k { font-size: 11.8px; color: var(--muted); }
.stat-line .it .v { font-size: 17px; font-weight: 650; margin-top: 4px; }

.split-note { font-size: 12px; color: var(--muted); padding: 10px 0; }

/* 打印 */
@media print {
  .sidebar, .topbar, .page-actions, .no-print, .reg-bar, .reg-spacer { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
}

/* 响应式 */
@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-2-1, .grid-1-2, .grid-3 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .sidebar { display: none; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}

/* ====== 搜索栏增强 + 分页条 ====== */
.filters .field.grow { flex: 1 1 320px; min-width: 320px; max-width: 480px; }
.filters .field.grow input { width: 100%; height: 38px; font-size: 14px; padding: 0 12px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 14px 4px 2px; flex-wrap: wrap; }
.pager .pager-info { margin-right: auto; color: #7d92a8; font-size: 12px; }
.pager a, .pager span.pg {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 6px; background: #fff;
    color: #35506b; font-size: 13px; text-decoration: none;
}
.pager a:hover { border-color: #c9d8e9; color: var(--brand); }
.pager span.pg.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager span.pg.dis { color: #b6c4d3; cursor: default; }

/* 类型切换标签（基础数据额度页等） */
.nav-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-tabs .tab {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 13px; color: var(--muted); background: #fff; text-decoration: none;
}
.nav-tabs .tab:hover { color: var(--brand); border-color: var(--brand); }
.nav-tabs .tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* 列表批量操作悬浮栏（右下角） */
.sel-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 95;
  display: none; align-items: center; gap: 16px;
  padding: 12px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(18, 44, 74, .18);
}
.sel-float.show { display: flex; animation: selFloatIn .18s ease-out; }
.sel-float-info { font-size: 13px; color: #35506b; }
.sel-float-info b { color: var(--brand); }
@keyframes selFloatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ 报表：额度矩阵（公司 × 银行） ============ */
table.table.mx th, table.table.mx td { padding: 7px 10px; font-size: 12.5px; }
table.table.mx thead tr:first-child th { background: #f7fafd; }
table.table.mx th.mx-bank {
  text-align: center; font-weight: 600; color: #2b4a6b;
  border-left: 2px solid #e6eef7;
}
table.table.mx td.mx-cell { border-left: 1px solid #eef4fa; }
table.table.mx td.mx-cell.start { border-left: 2px solid #e6eef7; }
table.table.mx td.mx-cell.zero { color: #b6c4d3; }
table.table.mx td.mx-cell.over { color: #d9534f; font-weight: 600; background: #fff7f7; }
table.table.mx td.mx-cell.used { color: #1b6fd6; }
table.table.mx th.mx-fix, table.table.mx td.mx-fix {
  position: sticky; left: 0; z-index: 3; background: #fff;
  box-shadow: 1px 0 0 #eef4fa;
}
table.table.mx th.mx-fix2, table.table.mx td.mx-fix2 {
  position: sticky; left: 210px; z-index: 3; background: #fff;
  box-shadow: 1px 0 0 #eef4fa;
}
table.table.mx thead th.mx-fix, table.table.mx thead th.mx-fix2 { background: #f7fafd; z-index: 4; }
/* 冻结列固定宽度：公司名过长时换行，避免第二列 left 偏移错位 */
table.table.mx th.mx-fix, table.table.mx td.mx-fix {
  width: 210px; min-width: 210px; max-width: 210px; white-space: normal; line-height: 1.45;
}
table.table.mx th.mx-fix2, table.table.mx td.mx-fix2 {
  width: 96px; min-width: 96px; max-width: 96px; white-space: nowrap;
}
table.table.mx tbody tr:hover td.mx-fix, table.table.mx tbody tr:hover td.mx-fix2 { background: #fafcff; }
table.table.mx tr.mx-total td { background: #f6f9fd; font-weight: 600; }
table.table.mx tr.mx-total td.mx-fix, table.table.mx tr.mx-total td.mx-fix2 { background: #f6f9fd; }
.mx-sum { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; color: #35506b; }
.mx-sum b { font-size: 15px; }

/* 报表：小号辅助说明 / 图例 */
.rpt-note { font-size: 12px; color: var(--muted); line-height: 1.75; }
.rpt-note b { color: #35506b; }
table.table tr.sum-row td { background: #f6f9fd; font-weight: 600; }

/* ============ 可搜索下拉（select 增强，见 app.js） ============ */
.ss { position: relative; display: block; }
.ss > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ss-input {
  width: 100%; padding: 9px 28px 9px 11px; border: 1px solid #d7e0ea; border-radius: 8px;
  font-size: 13.2px; color: var(--text); background: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.ss-input:focus { outline: none; border-color: #8cb6ec; box-shadow: 0 0 0 3px rgba(43, 127, 224, .12); }
.ss-input::placeholder { color: #9aa9ba; }
.ss-caret {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  padding: 0 2px; cursor: pointer; color: #8b9aac; font-size: 10px; line-height: 1;
}
.ss-caret:hover { color: #2b7fe0; }
.ss.invalid .ss-input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(208, 74, 74, .12); }
.inline-form .ss { display: inline-block; min-width: 110px; }

/* 面板挂 body，避免被 .card{overflow:hidden} 裁切 */
.ss-panel {
  position: fixed; z-index: 900; display: none; box-sizing: border-box;
  background: #fff; border: 1px solid #dde5ef; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 42, 70, .16); padding: 4px;
  max-height: 288px; overflow-y: auto;
}
.ss-panel.show { display: block; }
.ss-opt {
  padding: 8px 10px; border-radius: 7px; font-size: 13px; color: #22364c; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-opt:hover { background: #f4f8fe; }
.ss-opt.active { background: var(--brand-soft); color: var(--brand-dark); }
.ss-opt.selected { font-weight: 600; }
.ss-opt mark { background: #fff3bf; color: inherit; padding: 0; }
.ss-empty { padding: 12px 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.ss-hint { padding: 5px 10px 6px; font-size: 11px; color: #9aa9ba; border-top: 1px dashed var(--line-2); margin-top: 3px; }

/* ====== 业务办理（迁移自旧系统「业务管理」） ====== */
.chk-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.8px; color: #5d7085; white-space: nowrap; }
.chk-inline input { width: auto; }
.t-warn { color: var(--warn, #c47a09); }
.empty-hint { padding: 40px 10px; text-align: center; color: var(--muted); font-size: 13px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; line-height: 1.7; }
.tag-ok { background: #e8f5ec; color: #1e7a3c; }
.tag-off { background: #f2f4f7; color: #7c8794; }
.tag-none { background: #eef4ff; color: #2b62b8; }

tr.row-void td { color: #a3adb9; background: #fafbfc; }
tr.row-void td b { color: #a3adb9; }

/* 发票勾选后的悬浮登记条：勾选后从底部浮出，滚动时始终可见 */
.reg-bar {
  position: fixed; left: 262px; right: 24px; bottom: 16px; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line, #e6ecf3);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 35, 60, .18);
  transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.reg-bar.hide {
  transform: translateY(130%); opacity: 0; pointer-events: none;
}
.reg-bar.on { box-shadow: 0 12px 32px rgba(15, 35, 60, .22), 0 0 0 2px rgba(201, 163, 92, .25); }
.reg-cell { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: #5d7085; }
.reg-cell label { font-size: 12px; color: #5d7085; }
.reg-cell b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; }
.reg-cell.sel b { color: var(--brand-dark, #a5813a); font-size: 18px; }
.reg-cell input { width: 170px; }
.reg-act { margin-left: auto; }
.reg-spacer { height: 96px; }
@media (max-width: 900px) {
  .reg-bar { left: 12px; right: 12px; gap: 14px; }
  .reg-cell input { width: 130px; }
}

/* 分段表单 */
.form-sect + .form-sect { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line, #e6ecf3); }
.sect-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.form-sect .form-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .form-sect .form-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .form-sect .form-grid { grid-template-columns: 1fr; } }
.form-foot { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, #e6ecf3); }

/* 详情键值表 */
table.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kv th { width: 150px; text-align: left; font-weight: 500; color: #6b7d90; background: #fafbfd; padding: 9px 12px; border: 1px solid var(--line, #e9eef5); }
table.kv td { padding: 9px 12px; border: 1px solid var(--line, #e9eef5); color: var(--text); font-variant-numeric: tabular-nums; }

/* 额度查询：指定关注公司整行标红加粗（照旧系统 red-row） */
tr.red-row td { color: #c0392b !important; font-weight: 700; }
tr.red-row td b, tr.red-row td .tag { color: #c0392b !important; }
tr.red-row td .tag-none { background: #fdecea; }
tr.red-row:hover td { background: #fdf3f2; }

/* 公司银行账户列表：多行单元格（银行信息、限额成对展示） */
table.acc-table td > div + div { margin-top: 3px; }
table.acc-table td.bank-cell .t-sub {
  max-width: 186px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.acc-table td.num .t-sub { font-variant-numeric: tabular-nums; }
/* 税务账户：维护过的账号用红色突出（未维护不输出该行，不留空位） */
table.acc-table .acc-tax { color: #cf3d3d; font-weight: 600; font-size: 11px; letter-spacing: .2px; max-width: 190px; white-space: normal; overflow-wrap: anywhere; }
/* 公司名 / 银行全称可能很长：限宽折行，避免把「添加时间 / 操作」列顶到可视区外 */
table.acc-table td.nm-cell { white-space: normal; }
table.acc-table .acc-nm { max-width: 162px; white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
table.acc-table td.bank-cell .t-main { max-width: 186px; white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
/* 是否受控：整行置灰（含 hover，避免鼠标划过又亮起来）；税务账户与「受控」标签保留颜色以便识别 */
table.acc-table tbody tr.is-ctrl td { background: #eef0f3; color: #939ca9; }
table.acc-table tbody tr.is-ctrl td .t-main,
table.acc-table tbody tr.is-ctrl td .mono,
table.acc-table tbody tr.is-ctrl td .badge:not(.ctrl-tag) { color: #98a1ad; }
table.acc-table tbody tr.is-ctrl td .t-sub { color: #a9b1bb; }
table.acc-table tbody tr.is-ctrl td a { color: #98a1ad; }
table.acc-table tbody tr.is-ctrl:hover td { background: #e9ecf0; }
/* 受控行里的税务账户仍要是红色（比普通行稍暗，避免抢眼但不会被置灰吃掉） */
table.acc-table tbody tr.is-ctrl td .acc-tax { color: #c06a6a; }
table.acc-table .ctrl-tag { margin-left: 6px; padding: 0 5px; font-size: 10.5px; line-height: 1.7; }

/* 紧凑表格：选择发票页等宽表场景，减少内边距让最右金额一屏可见 */
table.table-fit th { padding: 7px 9px; font-size: 12px; }
table.table-fit td { padding: 6px 9px; font-size: 12.3px; }
table.table-fit td.clamp {
  max-width: 168px; overflow: hidden; text-overflow: ellipsis;
}
/* 宽表（银票开票台账、结转单）：表格按内容自然撑开，超出容器时横向滚动。
   注意别再套 table.mx——那是额度矩阵的 table-layout:fixed，会把列均分压扁 */
.table-wrap.scroll-x { padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: #c9d8e9 #f2f6fb; }
.table-wrap.scroll-x::-webkit-scrollbar { height: 10px; }
.table-wrap.scroll-x::-webkit-scrollbar-track { background: #f2f6fb; border-radius: 6px; }
.table-wrap.scroll-x::-webkit-scrollbar-thumb { background: #c9d8e9; border-radius: 6px; border: 2px solid #f2f6fb; }
.table-wrap.scroll-x::-webkit-scrollbar-thumb:hover { background: #a9bfd8; }
/* 台账里的公司名限宽折行，避免一列把整张表撑得老宽 */
table.ledg-tbl td.nm-col { white-space: normal; }
table.ledg-tbl td.nm-col > span { display: block; max-width: 168px; line-height: 1.35; }
/* 银票开票台账：列多要横向滚动，冻结「业务日期 + 开票主体」两列，
   否则滚到右边只剩一堆数字，看不出是哪家公司哪一天 */
table.ledg-fix th:nth-child(1), table.ledg-fix td:nth-child(1) {
  position: sticky; left: 0; z-index: 2;
  width: 90px; min-width: 90px; max-width: 90px; background: #fff;
}
table.ledg-fix th:nth-child(2), table.ledg-fix td:nth-child(2) {
  position: sticky; left: 90px; z-index: 2;
  width: 190px; min-width: 190px; max-width: 190px; background: #fff;
  white-space: normal; line-height: 1.35; text-wrap: balance;
  box-shadow: 1px 0 0 #eef4fa, 6px 0 8px -6px rgba(18, 44, 74, .13);
}
table.ledg-fix thead th:nth-child(1), table.ledg-fix thead th:nth-child(2) { z-index: 5; background: #f7f9fc; }
table.ledg-fix tbody tr:hover td:nth-child(-n+2) { background: #fafcff; }
table.ledg-fix tbody tr.row-void td:nth-child(-n+2) { background: #fafbfc; }
/* 发票列表用紧凑表：销购方两行、标签格、副行的间距都跟着收一档 */
table.table.inv-list .nm-2l { width: 178px; max-width: 178px; line-height: 1.32; }
/* 销购方两列在紧凑表里铺满单元格（列宽见模板 th），折两行时均分，避免第 2 行只剩一个字 */
table.table.inv-list td.nm-cell > .nm-2l { width: 218px; max-width: 218px; text-wrap: balance; }
table.table.inv-list .t-sub { margin-top: 1px; font-size: 11px; }
/* 号码下方的货物名称：固定宽度，超出直接截断（模板已按 13 字截过一次，这里再兜一层，任何列宽下都不会压到旁边） */
table.table.inv-list .inv-sub {
  max-width: 158px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
table.table.inv-list td.tag-cell { min-width: 122px; }
table.table.inv-list .tag-cell .tag-soft {
  max-width: 112px; font-size: 11px; line-height: 18px; max-height: 20px; padding: 0 6px;
}
table.table.inv-list .tag-cell .tag-more { font-size: 11px; line-height: 18px; padding: 0 6px; }
table.table.inv-list .mono { font-size: 12.2px; }
table.table.inv-list td .badge { font-size: 11.5px; }

/* 公司列表：注册地 / 股东两列（全站 td 默认 nowrap，这两列内容长要允许换行） */
table.table td.city-cell { white-space: normal; min-width: 96px; }
table.table td.sh-cell { white-space: normal; min-width: 132px; }
.sh-cell .sh-item { display: block; line-height: 1.55; font-size: 12.3px; color: #3c5773; }
.sh-cell .tag-more { display: inline-block; margin-top: 2px; }

/* 结转单列表勾选列 */
table.table .chk-col { text-align: center; width: 40px; }
table.table .chk-col input { vertical-align: middle; }

/* 只读/自动计算字段：明显区别于可编辑输入框 */
input[disabled], input[readonly], select[disabled], textarea[disabled], textarea[readonly] {
  background: #f2f5f8;
  color: #7c8da0;
  cursor: not-allowed;
  border-color: #e2e9f1;
  border-style: dashed;
}
input[disabled]:focus, input[readonly]:focus, select[disabled]:focus, textarea[disabled]:focus, textarea[readonly]:focus {
  border-color: #e2e9f1; box-shadow: none;
}
.field label:has(+ input[disabled]), .field label:has(+ select[disabled]) { color: #8b9aac; }

/* 公司管理：在贷金额（未到期）按业务类型明细 */
.th-hint { font-size: 10.5px; font-weight: 400; color: #8b9aac; background: #f1f5fa; border-radius: 4px; padding: 0 4px; margin-left: 3px; }
table.table td.loan-cell { min-width: 210px; vertical-align: top; }
.loan-cell .loan-total { font-size: 13.5px; color: #1b6fd6; }
.loan-cell .loan-mix { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; margin: 4px 0 2px; }
.loan-cell .loan-mix .tag-soft { margin-right: 0; font-size: 11px; padding: 1px 6px; white-space: nowrap; }
.loan-cell .t-sub { font-size: 11px; }

/* 状态标签：已到期 */
.tag-mature { background: #fff4e5; color: #a86412; }

/* 公司管理列表：在贷金额标签格（点击弹窗看全部业务类型） */
table.table td.loan-cell { min-width: 190px; vertical-align: middle; }
table.table td.loan-cell.has-tags { cursor: pointer; }
table.table td.loan-cell.has-tags:hover .loan-mix .tag-soft { background: #e4eefb; }
.loan-cell .loan-mix { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; margin-top: 4px; }
.loan-cell .tag-soft { margin-right: 0; font-size: 10.8px; padding: 0 5px; line-height: 18px; white-space: nowrap; max-width: 128px; overflow: hidden; text-overflow: ellipsis; }
.loan-cell .tag-more { display: inline-block; padding: 0 5px; line-height: 18px; border-radius: 5px; background: #e9eef6; color: #5d7085; font-size: 10.8px; }
.loan-list { display: flex; flex-wrap: wrap; gap: 8px; }
.loan-list .tag-soft { font-size: 12.5px; padding: 5px 11px; margin-right: 0; }

/* 公司详情：授信额度合计行与未登记额度提示 */
table.table tfoot td {
  background: #f7fafd; font-weight: 600; color: #22384d;
  border-top: 1px solid #e2e9f1; white-space: nowrap;
}
table.table tfoot td:first-child { color: #5d7085; font-weight: 500; }
.quota-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 10px; border-top: 1px dashed #e6edf5; }
.quota-note .tag-soft { font-size: 11.5px; }

/* 公司详情融资记录：发票张数可点击（弹窗看明细） */
a.inv-link { display: inline-block; padding: 0 7px; line-height: 19px; border-radius: 5px; background: #eef4fb; color: #1b6fd6; font-size: 12px; text-decoration: none; }
a.inv-link:hover { background: #dfeafb; color: #1259b3; }
#m-invs .modal-body { padding: 14px 18px 18px; }
#m-invs table.table td .t-sub { display: inline; }
#m-invs table.table th, #m-invs table.table td { white-space: nowrap; }
#m-invs table.table td.t-sub { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* 额度台账：在贷业务 chips（点击弹窗看明细） */
td.biz-cell { min-width: 200px; vertical-align: middle; }
td.biz-cell .biz-mix { display: flex; flex-wrap: wrap; gap: 4px; cursor: pointer; }
td.biz-cell .biz-mix:hover .tag-soft { background: #e4eefb; }
td.biz-cell .tag-soft { margin-right: 0; font-size: 10.8px; padding: 0 5px; line-height: 18px; white-space: nowrap; }
.tag-more { display: inline-block; padding: 0 5px; line-height: 18px; border-radius: 5px; background: #e9eef6; color: #5d7085; font-size: 10.8px; }

/* ===== 贸易链路（需求 3.1-3.4）===== */
.flash.warn { background: #fff8e6; border: 1px solid #f3e0b5; color: #8a6116; }
.flow-axis {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--muted); margin-bottom: 10px; gap: 12px;
}
.flow-axis .dir { display: inline-flex; align-items: center; gap: 5px; }
.flow-axis .dir.inv { color: var(--brand); }
.flow-axis .dir.pay { color: #2e9e6b; }
.flow-node .facts { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.flow-node .amt { font-size: 12px; color: var(--brand); margin-top: 6px; font-weight: 600; }
.flow-node.done { border-color: #cbeadd; background: #f7fdfa; }
.flow-node .pay-btn { margin-top: 9px; width: 100%; }
.node-paid {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
  color: #0b6b4c; background: var(--ok-bg); border: 1px solid #cbeadd;
  padding: 2px 8px; border-radius: 99px; margin-top: 8px;
}
.flow-arrow.back { color: #2e9e6b; }

/* 链路节点金额（本次交易金额 / 开票上限） */
#chain-view .flow-node { min-width: 176px; }
.flow-node .node-amt {
  margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-2);
  display: flex; flex-direction: column; gap: 5px;
}
.flow-node .na-row { display: flex; align-items: center; gap: 6px; }
.flow-node .na-row > span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.flow-node .na-in {
  width: 100%; min-width: 0; height: 26px; padding: 3px 6px; font-size: 12px;
  text-align: right; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  font-variant-numeric: tabular-nums; color: #24405b;
}
.flow-node .na-in:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 2px rgba(27,111,214,.1); }
.flow-node .amt-line { font-size: 11.5px; color: #35506b; margin-top: 5px; display: flex; justify-content: space-between; gap: 8px; }
.flow-node .amt-line b { font-variant-numeric: tabular-nums; }
.flow-node .node-bar { height: 5px; border-radius: 99px; background: #eef3f9; overflow: hidden; margin-top: 6px; }
.flow-node .node-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4b9bf0, #1b6fd6); }
.flow-node.done .node-bar > i { background: linear-gradient(90deg, #57c69a, #2e9e6b); }
.flow-node .node-part { display: inline-block; font-size: 11px; color: #8a5a00; background: #fff7e6; border: 1px solid #ffe0a8; padding: 1px 7px; border-radius: 99px; margin-top: 6px; }

/* 收款弹窗里的金额三栏 */
.pay-kv { display: flex; gap: 8px; }
.pay-kv > div { flex: 1; min-width: 0; background: #f6f9fd; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 10px; }
.pay-kv span { display: block; font-size: 11px; color: var(--muted); }
.pay-kv b { font-size: 13.5px; color: #24405b; font-variant-numeric: tabular-nums; }


.dup-list { margin: 8px 0 0; padding-left: 0; list-style: none; }
.dup-list li { font-size: 12.5px; padding: 5px 0; border-top: 1px dashed var(--line-2); display: flex; gap: 8px; align-items: center; }
.dup-list li:first-child { border-top: 0; }
.dup-tag { font-size: 11px; padding: 1px 7px; border-radius: 5px; background: #fff3d6; color: #8a6116; white-space: nowrap; }
.dup-tag.block { background: #fdecec; color: #a83535; }

/* ===== 菜单设置（侧边栏显示与隐藏） ===== */
.menu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1180px) { .menu-cards { grid-template-columns: 1fr; } }
.menu-card .card-head h3 { display: flex; align-items: center; gap: 8px; }
.switch-wrap { display: inline-flex; align-items: center; gap: 8px; }
.switch { position: relative; display: inline-block; width: 38px; height: 21px; vertical-align: middle; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: #cfd8e3; border-radius: 99px; transition: background .18s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(17, 38, 61, .22); transition: transform .18s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(17px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--brand-soft); }
tr.menu-off td { color: #98a6b5; }
tr.menu-off td:first-child { text-decoration: line-through; }
.save-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 12px 18px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ===== 多标签页导航（内容用 iframe 承载，切换不刷新） ===== */
body.is-shell { overflow: hidden; }
body.is-shell .app,
body.is-shell .main { height: 100vh; min-height: 0; }

.tabbar {
  flex: 0 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 9px 18px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 25;
}
.tab-scroll {
  display: flex; align-items: flex-end; gap: 4px;
  flex: 1; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin;
}
.tab-scroll::-webkit-scrollbar { height: 4px; }
.tab {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 8px 0 13px;
  max-width: 210px;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: transparent; color: var(--muted);
  font-size: 13px; cursor: pointer; user-select: none;
  white-space: nowrap;
  transition: background .14s, color .14s;
}
.tab:hover { background: rgba(255, 255, 255, .72); color: var(--text); }
.tab.active {
  background: #fff; color: var(--brand); font-weight: 600;
  border-color: var(--line);
}
.tab.active::before {
  content: ""; position: absolute; left: 13px; right: 13px; top: -1px;
  height: 2px; border-radius: 0 0 2px 2px; background: var(--brand);
}
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: #fff;
}
.tab .t-title { overflow: hidden; text-overflow: ellipsis; max-width: 166px; }
.tab .t-close {
  flex: 0 0 17px; width: 17px; height: 17px; padding: 0;
  border: 0; border-radius: 4px; background: transparent;
  color: #9aabbd; display: grid; place-items: center;
  cursor: pointer; opacity: 0; transition: opacity .12s, background .12s, color .12s;
}
.tab .t-close svg { width: 11px; height: 11px; }
.tab:hover .t-close, .tab.active .t-close { opacity: 1; }
.tab .t-close:hover { background: #eef3f9; color: var(--danger); }
.tab.locked .t-close { display: none; }

.tab-tools { flex: 0 0 auto; display: flex; gap: 2px; padding-bottom: 5px; }
.tab-tool {
  width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 6px; background: transparent;
  color: #8698ab; display: grid; place-items: center; cursor: pointer;
  transition: background .12s, color .12s;
}
.tab-tool:hover { background: #fff; color: var(--brand); }
.tab-tool svg { width: 14px; height: 14px; }
.tab-tool.on { background: var(--brand); color: #fff; }
.tab-tool.on:hover { background: var(--brand); color: #fff; }

/* 最大化当前标签：隐藏外壳三件套，iframe 铺满整个视口 */
body.is-shell.tab-max .sidebar,
body.is-shell.tab-max .topbar,
body.is-shell.tab-max .tabbar { display: none !important; }
body.is-shell.tab-max .app,
body.is-shell.tab-max .main { height: 100vh; }
body.is-shell.tab-max .tab-body { padding-bottom: 0; }

.tab-body { position: relative; flex: 1 1 auto; min-height: 0; background: var(--bg); }
.boot-pane { display: none; }
.tab-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; background: var(--bg);
  display: none;
}
.tab-frame.active { display: block; }
.tab-empty { padding: 90px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.tab-empty .big { font-size: 30px; opacity: .22; margin-bottom: 10px; }

/* 帧内页面：不再有顶栏，内容区自己滚动 */
body.in-frame { overflow-y: auto; }
body.in-frame .content { padding: 20px 24px 40px; }

/* ===== 用户与权限管理 ===== */
.role-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-2); color: inherit;
}
.role-row:hover { background: #f8fbff; }
.role-row.on { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.role-row-main { min-width: 0; }
.role-row-name { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #2b4055; }
.role-row.on .role-row-name { color: var(--brand); }
.role-row-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.role-row-arrow { color: #b7c6d6; font-size: 18px; line-height: 1; }

.perm-group { border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.perm-group:last-child { margin-bottom: 0; }
.perm-group-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.perm-group-head h4 { margin: 0; font-size: 13px; color: #2b4055; letter-spacing: .2px; }
.perm-group-head .hint { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.perm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
@media (max-width: 1100px) { .perm-list { grid-template-columns: 1fr; } }
.perm-item {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.perm-item:hover { border-color: #d3e2f5; background: #fafcff; }
.perm-item.checked { border-color: #bcd6f7; background: var(--brand-soft); }
.perm-item input { margin: 2px 0 0; accent-color: var(--brand); flex: 0 0 auto; cursor: pointer; }
.perm-item .p-name { display: block; font-size: 13px; color: #2b4055; font-weight: 500; }
.perm-item .p-desc { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.perm-item input:disabled { cursor: not-allowed; }

/* ===== 公司资质材料（营业执照 / 公司章程 / 法定代表人 / 基本存款账户信息 / 备案印章 / 股东身份证明 / 财务报表 / 公司开票资料） ===== */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
@media (max-width: 780px) { .att-grid { grid-template-columns: 1fr; } }

.att-item {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.att-item:hover { border-color: #d3e2f5; box-shadow: var(--shadow); }
.att-item.ready { border-color: #cfe6dc; }
.att-item.missing { border-color: #eebcbc; background: #fff9f9; }

.att-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.att-head b { font-size: 13px; color: #2b4055; font-weight: 600; }
.att-head b .req { color: var(--danger); margin-left: 3px; }
.att-head .badge { margin-left: auto; }

.att-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; min-height: 4px; }
.att-file { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; }
.att-file .file-ext {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700; letter-spacing: .4px;
  color: #fff; background: #8494a8; border-radius: 4px; padding: 2px 5px; line-height: 1.2;
}
.att-name { flex: 1 1 auto; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-name:hover { color: var(--brand); }
.att-size { flex: 0 0 auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.att-dl { flex: 0 0 auto; font-size: 12px; color: var(--brand); white-space: nowrap; }
.att-del { flex: 0 0 auto; margin: 0; }
.att-del .link-btn { font-size: 12px; white-space: nowrap; }
/* 表单里的删除按钮没有 .att-del 包裹，直接作为 flex 项，必须禁止压缩 */
.att-file > .link-btn { flex: 0 0 auto; font-size: 12px; white-space: nowrap; }
.att-empty { font-size: 12px; color: #a7b5c6; padding: 2px 0; }

.att-up { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-top: 9px; border-top: 1px dashed var(--line); }
.att-input { display: none; }
.att-picked { font-size: 11.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-picked.on { color: var(--brand); }

.att-cell { min-width: 112px; }
.att-dots { display: flex; gap: 4px; margin-bottom: 4px; }
.att-dot { width: 9px; height: 9px; border-radius: 3px; background: #e3e9f2; display: inline-block; }
.att-dot.on { background: var(--ok); }

/* ============ 智能方案推荐（/biz/plan） ============ */
.t-soft { color: var(--muted); font-size: 11.5px; }

/* 智能方案推荐：自动选中银行等轻提示 */
.plan-note {
  margin: 0 0 14px; padding: 9px 12px; border-radius: 9px;
  background: var(--brand-soft); color: #1c4f96; font-size: 12.5px; line-height: 1.7;
}

/* 智能方案推荐：无结果时的条件回显与放宽建议 */
.eh-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.eh-cond {
  font-size: 12.5px; line-height: 1.85; color: var(--muted);
  padding: 8px 12px; background: #f6f9fd; border-radius: 8px;
}
.eh-tip { margin: 13px 0 4px; font-size: 12.5px; color: var(--text); }
.eh-list { margin: 0; padding-left: 20px; font-size: 12.5px; line-height: 1.95; color: #3d4b5c; }
.eh-list li { margin-bottom: 2px; }

.plan-warn {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 12px; margin-bottom: 6px; border-radius: 9px;
  background: var(--warn-bg); color: #8a5c00; font-size: 12.5px; line-height: 1.7;
}
.plan-warn:last-child { margin-bottom: 0; }
.plan-warn .warn-dot {
  flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn); margin-top: 7px;
}

.plan-group {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px 12px; margin-bottom: 10px; background: #fcfdff;
}
.plan-group:last-of-type { margin-bottom: 4px; }
.plan-group-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 9px; border-bottom: 1px dashed var(--line); margin-bottom: 10px;
}
.plan-group-head .pg-name { font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-group-head .pg-num { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.plan-group-head .pg-num b { font-size: 15px; color: var(--brand); font-family: var(--mono, inherit); }
.plan-group-head .pg-sub { margin-left: 8px; font-size: 11.5px; color: #94a3b5; }
.plan-group-head .pg-tag { font-size: 11.5px; }

/* 收票方银行账户：分组头上的入口按钮 + 弹窗表格 */
.pg-bank {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 11.5px; font-weight: 400; color: #4a6a8a; line-height: 1; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.pg-bank:hover { border-color: var(--brand); color: var(--brand); background: #f6faff; }
.pg-bank b { font-weight: 600; color: var(--brand); }
.pg-bank.empty { color: #9aabbd; border-style: dashed; }
.bacc-co { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; flex-wrap: wrap; }
.bacc-co .bc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.bacc-co .bc-cnt { font-size: 12px; color: var(--muted); }
.bacc-tbl td { vertical-align: top; }
.bacc-tbl .bacc-u { font-size: 11px; color: var(--muted); font-weight: 400; }
.bacc-tbl .bacc-na { color: #b7c6d8; }
.bacc-tbl tr.bacc-off td { background: #fbfcfe; color: #91a1b3; }

/* 背书路径：横向节点 + 箭头 */
.chain-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px 0; }
.chain-node {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 5px 10px; border-radius: 8px; background: #f1f5fa;
  border: 1px solid var(--line); max-width: 210px;
}
.chain-node b {
  font-size: 12.2px; font-weight: 600; color: #2c435c; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chain-node i { font-style: normal; font-size: 10.5px; color: #8b9bb0; margin-top: 1px; }
.chain-node.origin { background: #eaf2fd; border-color: #cfe0f8; }
.chain-node.origin b { color: var(--brand-dark); }
.chain-node.payee { background: #f3f0ff; border-color: #ddd6fb; }
.chain-node.payee b { color: #5b46b8; }
.chain-node::after {
  content: '→'; align-self: flex-end; margin: 0 7px 0 0;
  color: #b3c0d1; font-size: 12px; line-height: 1;
}
.chain-node:last-of-type::after { content: '→'; }
.chain-tail {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 8px;
  background: var(--ok-bg); color: #0b6b4c; font-size: 11.5px; border: 1px dashed #a9dcc6;
}

.plan-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.plan-actions .pa-info { font-size: 12.5px; color: var(--muted); line-height: 1.75; flex: 1 1 380px; }
.plan-actions .pa-info b { color: #35506b; }
.plan-actions .pa-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* 智能方案推荐：三套取票方案对比卡 */
.plan-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.pp-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.pp-card:hover { border-color: #b9d3f2; box-shadow: 0 4px 14px rgba(28, 79, 150, .07); }
.pp-card.active {
  border-color: var(--brand); background: #f2f8ff;
  box-shadow: 0 0 0 1px var(--brand) inset, 0 6px 18px rgba(28, 79, 150, .10);
}
.pp-card.active .pp-main { color: var(--brand); }
.pp-top { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pp-top b { font-size: 13.5px; color: var(--text); }
.pp-no {
  flex: 0 0 auto; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; color: #fff; background: #9db4cd; line-height: 1.6;
}
.pp-card.active .pp-no { background: var(--brand); }
.pp-desc { flex-basis: 100%; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.pp-main {
  font-size: 22px; font-weight: 600; line-height: 1.2;
  color: var(--brand-dark); font-family: var(--mono, inherit);
}
.pp-main small { margin-left: 3px; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.pp-sub { font-size: 12px; color: #5b7290; line-height: 1.7; }
.pp-empty-tip { font-size: 12px; color: #b06a00; line-height: 1.6; }
.pp-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.plan-pane > .card:last-child { margin-bottom: 16px; }
@media (max-width: 900px) {
  .plan-picks { grid-template-columns: 1fr; }
}

/* 发票勾选页：方案带入提示 */
.plan-banner {
  display: flex; flex-direction: column; gap: 3px;
  margin: 0 0 2px; padding: 10px 16px;
  background: var(--info-bg); border-bottom: 1px solid #d6e5fd;
  font-size: 12.5px; color: #24527f;
}
.plan-banner b { color: var(--brand-dark); font-size: 13px; }
.plan-banner span { color: #5b7290; font-size: 12px; }

/* 发票勾选页：方案带入的横幅（左说明 + 右按钮） */
.plan-banner.pb-inv {
  flex-direction: row; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.plan-banner.pb-inv .pb-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.plan-banner.pb-inv .pb-acts { display: flex; gap: 8px; flex: none; }

/* 方案已选清单（跨页预选的票都列在这里，可逐张移除） */
.pre-panel { background: #fff; border-bottom: 1px solid #e6ecf4; padding: 0 16px 14px; }
.pre-panel.hide { display: none; }
.pre-body { max-height: 340px; overflow: auto; }
.pre-group { margin-top: 10px; border: 1px solid #eef2f7; border-radius: 8px; overflow: hidden; }
.pre-g-head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 12px; background: #f7f9fc; border-bottom: 1px solid #eef2f7;
}
.pre-g-head b { font-size: 13px; color: #2c4054; }
.pre-g-head .link-btn { margin-left: auto; font-size: 12px; }
table.table.pre-table { font-size: 12.5px; width: auto; min-width: 620px; max-width: 760px; }
.pre-table th, .pre-table td { padding: 6px 10px; white-space: nowrap; }
.pre-table tbody tr:hover td { background: #f9fbfe; }

/* 发票勾选页：当前银行的用票口径说明 */
.pool-note { color: #8a6d1f; background: #fff8e6; border: 1px solid #f2e2b4;
  border-radius: 6px; padding: 2px 8px; display: inline-block; margin-top: 5px; font-size: 12px; }

@media (max-width: 760px) {
  .plan-group-head .pg-num { margin-left: 0; }
  .chain-node { max-width: 100%; }
}

/* ===== 贸易链路矩阵图（横向分环节、纵向分分支，Excel 式合并单元格） ===== */
.mx-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.mx-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.mx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 9px; height: 9px; border-radius: 2px; display: inline-block; border: 1px solid transparent; }
.lg-entry { background: #e7f0fb; border-color: #b3cdeb; }
.lg-mid { background: #f4f8fc; border-color: #dce7f2; }
.lg-self { background: #dce9fb; border-color: #2f6fd0; }
.lg-end { background: #eaf6ef; border-color: #aedbc2; }
.lg-done { width: 3px; border-radius: 1px; background: #3e9f6b; }
.lg-part { width: 3px; border-radius: 1px; background: #e0a02e; }

.mx-scroll { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
table.mx { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
table.mx th.mx-th { font-size: 11.5px; font-weight: 400; color: var(--muted); text-align: left; padding: 0 7px 2px; white-space: nowrap; }
table.mx td { padding: 0; position: relative; vertical-align: top; }
table.mx td::before { content: ''; display: block; height: 64px; }
table.mx td.mx-rh::before { display: none; }
table.mx td.mx-rh {
  font-size: 12px; color: var(--muted); text-align: center; vertical-align: middle;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px;
}
.mxc {
  border: 1px solid #dce7f2; border-radius: 6px; background: #f4f8fc;
  padding: 7px 9px; box-sizing: border-box; position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; overflow: hidden;
  transition: border-color .12s, background .12s;
}
/* 一家公司横跨多条分支（rowspan>1）时内容贴顶：否则主干会被垂直居中，浮在图中间看不清起点 */
table.mx td[rowspan]:not([rowspan="1"]) .mxc { justify-content: flex-start; padding-top: 9px; }
.mxc b { font-size: 12.5px; font-weight: 500; color: #33536e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxc-amt { font-size: 11.5px; color: #4d6a86; }
/* 查看页：一家公司连续承担多个环节（真跨环，不是末端铺满） */
.mxc-nm { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mxc-nm b { flex: 0 1 auto; min-width: 0; }
.mxc-cross { font-style: normal; flex: 0 0 auto; font-size: 9.5px; line-height: 14px; padding: 0 4px;
  border-radius: 3px; background: #dff3e6; color: #1f7a4c; white-space: nowrap; }
.mxc-sub { font-size: 11px; color: #8a9ab0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxc-sub.ok { color: #2f8158; }
.mxc-sub.warn { color: #b8781f; }
.mxc.entry { background: #e7f0fb; border-color: #b3cdeb; }
.mxc.entry b { color: #1b4a85; }
.mxc.self { background: #dce9fb; border-color: #2f6fd0; }
.mxc.self b { color: #123a6e; }
.mxc.end { background: #eaf6ef; border-color: #aedbc2; }
.mxc.end b { color: #26654a; }
.mxc.up, .mxc.down { justify-content: center; align-items: center; text-align: center; }
.mxc.up { background: #fcf4e1; border-color: #e2c57c; }
.mxc.up b { color: #6b4e00; }
.mxc.down { background: #eaf6ef; border-color: #aedbc2; }
.mxc.down b { color: #26654a; }
.mxc.st-done { border-left: 3px solid #3e9f6b; }
.mxc.st-part { border-left: 3px solid #e0a02e; }
.mxc[role="button"] { cursor: pointer; }
.mxc[role="button"]:hover { border-color: var(--brand); background: #e8f1fd; }
/* 查看链路详情：格子沿用编辑页手工标色 + 注册地/开票额度 + 发票明细角标 */
table.mx.mx-detail td::before { height: 96px; }
.mxc .mxc-dot { display: none; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto;
  margin-right: 1px; background: var(--xl-co, transparent); }
.mxc.co-tinted { background: var(--xl-co-bg, #f4f8fc); box-shadow: inset 3px 0 0 var(--xl-co, transparent); }
.mxc.co-tinted .mxc-dot { display: inline-block; }
.mxc.co-tinted[role="button"]:hover { background: var(--xl-co-bg, #f4f8fc); filter: brightness(.96); }
.mxc-meta { font-size: 10px; line-height: 13px; color: #7d8fa3; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.mxc-plan { flex: 0 0 auto; font-size: 9.5px; line-height: 14px; padding: 0 4px; border-radius: 3px;
  background: #fff3de; color: #a66405; border: 1px solid #f0d9af; white-space: nowrap; cursor: pointer; }
.mxc-plan:hover { background: #ffe8bd; }
.mxc-plan.off { background: #f0f3f6; color: #9aa8b7; border-color: #e2e8ef; cursor: default; }
/* 查看页合并单元格（纵向跨分支 / 横向跨环节）内容整体居中，
   覆盖上面的「rowspan>1 贴顶」规则，与编辑页 6.12.3 的合并格居中保持一致 */
table.mx.mx-detail td[rowspan]:not([rowspan="1"]) .mxc,
table.mx.mx-detail td[colspan]:not([colspan="1"]) .mxc {
  justify-content: center; align-items: center; padding-top: 7px; text-align: center;
}
table.mx.mx-detail td[rowspan]:not([rowspan="1"]) .mxc-nm,
table.mx.mx-detail td[colspan]:not([colspan="1"]) .mxc-nm { justify-content: center; }
table.mx.mx-detail td[rowspan]:not([rowspan="1"]) .mxc-meta,
table.mx.mx-detail td[colspan]:not([colspan="1"]) .mxc-meta { text-align: center; }
.mx-tip { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* 链路录入：Excel 式矩阵编辑 */
.mx-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
table.mx-edit { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
table.mx-edit th.mx-th { font-size: 11.5px; font-weight: 400; color: var(--muted); text-align: left; padding: 0 7px 2px; white-space: nowrap; }
table.mx-edit td { padding: 0; position: relative; vertical-align: top; }
table.mx-edit td::before { content: ''; display: block; height: 92px; }
table.mx-edit td.mx-rh::before { display: none; }
table.mx-edit td.mx-rh { font-size: 12px; color: var(--muted); text-align: center; vertical-align: middle;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; }
.mxe { position: absolute; inset: 0; border: 1px solid #cfdceb; border-radius: 6px; background: #fbfdff;
  padding: 5px 7px; box-sizing: border-box; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.mxe.empty { align-items: center; justify-content: center; border-style: dashed; color: #8aa0b8;
  font-size: 12px; cursor: pointer; background: #fafcfe; }
.mxe.empty:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.mxe-h { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.mxe-h b { font-size: 12px; font-weight: 600; color: #33536e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
/* 格子右上角四个就地改结构的小按钮：⇄ 换公司 / ＋ 后插环节 / ⑂ 加分支 / × 删除 */
.mxe-ic { border: 0; background: none; color: #93a8bf; cursor: pointer; font-size: 13px; line-height: 1;
  padding: 0 1px; flex: 0 0 auto; }
.mxe-ic:hover { color: var(--brand); }
.mxe-ic.danger:hover { color: var(--danger); }
.mxe-sp { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: #93a6ba; white-space: nowrap; flex: 0 0 auto; }
.mxe-sp select { height: 18px; width: 44px; border: 1px solid var(--line); border-radius: 3px; background: #fff;
  font-size: 10.5px; color: #46617c; padding: 0 1px; }
.mxe.wide { background: #f2f8ff; border-color: #b9d4ee; }
.mxe.wide .mxe-in { max-width: 268px; }
.mxe-x { border: 0; background: none; color: #a8b6c6; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.mxe-x:hover { color: var(--danger); }
/* 换公司 / 插入环节 / 插入分支 / 复制分支 */
.mxe-swap { border: 0; background: none; color: #a8b6c6; cursor: pointer; font-size: 12px; line-height: 1; padding: 0 1px; flex: 0 0 auto; }
.mxe-swap:hover { color: var(--brand); }
.mx-th-in { display: inline-flex; align-items: center; gap: 2px; }
.mx-ins { border: 1px solid transparent; background: none; color: #b9c8d8; cursor: pointer; font-size: 12px;
  line-height: 1; padding: 0 2px; border-radius: 3px; }
.mx-ins:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.mx-rh-in { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mx-rh-n { font-size: 12px; font-weight: 600; color: #5a6f86; }
.mx-rh-b { display: inline-flex; gap: 2px; }
.mx-rh-b button { width: 19px; height: 18px; line-height: 1; padding: 0; border: 1px solid var(--line);
  background: #fff; border-radius: 3px; color: #8799ad; font-size: 12px; cursor: pointer; }
.mx-rh-b button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.mx-rh-b button.danger:hover { border-color: var(--danger); color: var(--danger); background: #fdf1f1; }
.mxe-in { width: 100%; height: 24px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
  font-size: 11.5px; box-sizing: border-box; background: #fff; }
.mxe-in.sm { font-size: 11px; color: #5a6f86; }
/* 编辑页逐行独立：本行共用的环节打个标；行尾「再加一环」占位 */
.mxe-tag { font-style: normal; font-size: 9.5px; line-height: 14px; padding: 0 3px; border-radius: 3px;
  background: #eaf2fa; color: #7d93ab; white-space: nowrap; flex: 0 0 auto; }
/* 跨环：一家公司连续占多个环节 → 一格横跨多列，标「跨 N」 */
.mxe.sp { background: #f4fbf6; border-color: #b9dfc7; }
.mxe.sp .mxe-in { max-width: 180px; }
/* 跨环格很宽：内容靠左聚拢，别让公司名把「跨 N」和按钮顶到格子最右边（否则要横向滚动才看得见） */
.mxe.sp .mxe-h { justify-content: flex-start; }
.mxe.sp .mxe-h b { flex: 0 1 auto; max-width: 60%; }
.mxe-span { font-style: normal; font-size: 9.5px; line-height: 14px; padding: 0 3px; border-radius: 3px;
  background: #dff3e6; color: #1f7a4c; white-space: nowrap; flex: 0 0 auto; cursor: pointer; }
.mxe-span:hover { background: #c8ebd4; }
.mxe-ic.on { color: #1f7a4c; }
.mxe-ic.off { opacity: .3; cursor: not-allowed; }
.mxe-ic.off:hover { color: #93a8bf; }
/* 「跨几环」选择弹层 */
.sp-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sp-i { height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer;
  font-size: 13px; color: #46617c; }
.sp-i:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.sp-i.on { border-color: #1f7a4c; background: #eaf7ef; color: #1f7a4c; font-weight: 600; }
.mxe.add { align-items: center; justify-content: center; border-style: dashed; color: #a9bccd;
  font-size: 11px; cursor: pointer; background: #fcfdff; }
.mxe.add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.co-also { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: #46617c; }
.co-also input { margin: 0; }
/* ---- 一条分支一行：行首分支号列 / 行间插入条 / 短分支占位 ---- */
.mx-scroll.hm { overflow: auto; max-height: max(430px, calc(100vh - 330px)); }
.mx-scroll.hm table.mx-edit thead th { position: sticky; top: 0; z-index: 3; background: #fff; }
table.mx-edit th.mbr-th { font-size: 11px; font-weight: 400; color: var(--muted); padding: 0 0 2px 4px; white-space: nowrap; }
table.mx-edit td.mbr-no { vertical-align: middle; text-align: center; }
table.mx-edit td.mbr-no::before { display: none; }
.mbr-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 84px; }
.mbr-n { font-size: 12px; font-weight: 600; color: #6b8199; line-height: 1; }
.mbr-acts { display: inline-flex; gap: 2px; flex-wrap: nowrap; }
.mbr-acts button { width: 16px; height: 18px; line-height: 1; padding: 0; border: 1px solid var(--line);
  background: #fff; border-radius: 3px; color: #8799ad; font-size: 12px; cursor: pointer; }
.mbr-acts button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.mbr-acts button.danger:hover { border-color: var(--danger); color: var(--danger); background: #fdf1f1; }

table.mx-edit tr.mx-gap td.mx-gap-cell { height: 20px; padding: 0; border: 0; }
table.mx-edit tr.mx-gap td.mx-gap-cell::before { display: none; }
/* 查看页：短分支右侧的留白列（不再铺满，用淡斜纹表示这一行到此结束） */
td.mx-gap-td { background: repeating-linear-gradient(45deg, #fbfcfe, #fbfcfe 5px, #f3f8fd 5px, #f3f8fd 10px); }
.mx-gap-btn { position: sticky; left: 2px; display: inline-flex; align-items: center; gap: 6px;
  height: 17px; padding: 0 11px 0 6px; border: 1px dashed #d3dfec; border-radius: 9px; background: #fff;
  color: #a9bccd; font-size: 11px; line-height: 1; cursor: pointer; }
.mx-gap-btn i { font-style: normal; font-size: 13px; line-height: 1; }
.mx-gap-btn span { display: none; white-space: nowrap; }
tr.mx-gap:hover td.mx-gap-cell { background: #f4f9ff; }
tr.mx-gap:hover .mx-gap-btn { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
tr.mx-gap:hover .mx-gap-btn span { display: inline; }

/* 编辑表格：空白占位格（不合并后行右侧会留空，仅占位不可点） */
table.mx-edit td.mxe-void { background: transparent; }
table.mx-edit td.mxe-void::before { height: 92px; }
table.mx-edit td.mbr-tail::before { height: 92px; }
.mxe-end { position: absolute; inset: 0; border: 1px dashed #dbe5f0; border-radius: 6px; background: #fcfdff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #a6b6c7; font-size: 11px; }
.mxe-add { height: 21px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff;
  color: #5a7a95; font-size: 11px; cursor: pointer; }
.mxe-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.co-list { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.co-item { padding: 7px 11px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.co-item:last-child { border-bottom: 0; }
.co-item:hover { background: var(--brand-soft); }
.co-item b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.co-item span { font-size: 11.5px; color: var(--muted); }

/* 选公司弹窗：只显示注册地 / 开票额度 / 授信额度；标色已移到表格格子上的 🎨 按钮（6.12.3） */
.co-list { max-height: 420px; }
.co-tools { display: flex; align-items: center; gap: 8px; }
.co-tools #co-kw { flex: 1 1 auto; min-width: 0; width: auto; }
.co-tools .btn { flex: 0 0 auto; white-space: nowrap; }
.co-item b { display: flex; align-items: center; gap: 6px; }
.co-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 3px; }
.co-meta i { font-style: normal; font-size: 10px; color: #8a9bad; background: #f1f5fa;
  padding: 1px 4px; border-radius: 3px; margin-right: 3px; }
/* 格子调色弹窗的色板 */
.co-swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 2px;
  padding: 6px 8px; border: 1px dashed var(--line); border-radius: 6px; background: #fafcff; }
.co-swatches .t-sub { font-size: 10.5px; margin-right: 2px; }
.co-sw { width: 18px; height: 18px; border-radius: 4px; cursor: pointer; flex: 0 0 auto;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.co-sw.on { outline: 2px solid #33536e; outline-offset: 1px; }
.co-swatches input[type="color"] { width: 30px; height: 22px; padding: 0; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; cursor: pointer; margin-left: 4px; }
/* 链路格子：左侧色条 + 公司名前的色点，与弹窗同一套颜色；信息行显示注册地 · 开票额度 */
.xl-cell { box-shadow: inset 3px 0 0 var(--xl-co, transparent);
  background: var(--xl-co-bg, transparent); }
.xl-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; margin-right: 2px; }
.xl-meta { font-size: 10px; line-height: 13px; color: #7d8fa3; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin: 1px 0 2px; }

/* ==========================================================================
   报表筛选：下拉多选（业务多选）
   展开面板 + 复选框，按钮文案随勾选实时变成「全部业务 / A、B / A、B 等 3 项」
   ========================================================================== */
.ms { position: relative; width: 100%; }
.ms-btn {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid #d7e0ea; border-radius: 8px;
  background: #fff; color: var(--text); font-size: 13.2px; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left;
}
.ms-btn:hover { border-color: #8cb6ec; }
.ms.open .ms-btn { border-color: #8cb6ec; box-shadow: 0 0 0 3px rgba(43, 127, 224, .12); }
.ms-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-arrow { width: 14px; height: 14px; flex: none; color: #7d92a8; transition: transform .15s; }
.ms.open .ms-arrow { transform: rotate(180deg); }
.ms-panel {
  position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; min-width: 100%; width: max-content;
  max-height: 280px; overflow: auto; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 28px -10px rgba(17, 38, 61, .28);
  display: none;
}
.ms.open .ms-panel { display: block; }
.ms-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 3px 8px 7px; margin-bottom: 3px; border-bottom: 1px solid var(--line-2); font-size: 12px;
}
.ms-head a { color: var(--brand); }
.ms-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px;
  font-size: 12.5px; color: #33475e; cursor: pointer; white-space: nowrap;
}
.ms-item:hover { background: var(--brand-soft); }
.ms-item input[type=checkbox] { flex: none; }

/* 筛选卡里放下拉多选时允许溢出：.card 默认 overflow:hidden 会把展开的面板裁掉 */
.card.card-open { overflow: visible; }

/* ==========================================================================
   下游发票汇总 / 明细：列多，窄屏（1280）需要横向滚动，
   把「操作」列固定在最右边，滚到哪儿都能点「查看 / 看票」
   ========================================================================== */
table.ds-tbl th.act-fix, table.ds-tbl td.act-fix {
  position: sticky; right: 0; z-index: 2;
  width: 74px; min-width: 74px;
  background: #fff;
  box-shadow: -8px 0 10px -8px rgba(18, 44, 74, .18);
}
table.ds-tbl thead th.act-fix { z-index: 5; background: #f7f9fc; }
table.ds-tbl tbody tr:hover td.act-fix { background: #fafcff; }
/* 用过的业务：定宽折行，避免标签把整张表撑宽后在窄屏被「操作」列压住 */
table.ds-tbl .tag-box { width: 178px; max-width: 178px; white-space: normal; line-height: 1.5; }
table.ds-tbl .tag-box .tag-soft, table.ds-tbl .tag-box .tag-more { margin: 0 3px 3px 0; display: inline-block; }
/* 这两张表列多，左右内边距收一档，1280 宽不横滚就能看全 */
table.ds-tbl th, table.ds-tbl td { padding-left: 8px; padding-right: 8px; }
/* 公司名限宽折两行（跟发票列表一个套路：外层 td 允许换行，内层定宽才会真的折） */
table.ds-tbl td.ds-nm-cell { white-space: normal; }
table.ds-tbl .ds-nm {
  width: 196px; max-width: 196px; white-space: normal; line-height: 1.35;
  text-wrap: balance; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 法定代表人台账（/reports/legal）：一个法人可能关联多家公司，单元格要多行堆叠 */
table.table.lg-table td { vertical-align: top; }
.lg-comps { display: flex; flex-direction: column; gap: 3px; white-space: normal; }
.lg-comp { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.lg-comp .nm { color: #12283e; font-weight: 560; text-decoration: none; }
.lg-comp .nm:hover { color: var(--brand); text-decoration: underline; }
.lg-comp .lo { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lg-comp .badge { padding: 0 6px; font-size: 10.5px; line-height: 1.65; }
.lg-mini { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.lg-mini .tag-soft { margin-right: 0; }
.lg-issues { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.lg-table td .badge { white-space: nowrap; }

/* ============ 法人关系（基础数据 /legal-relations） ============ */
/* 顶部四块可点小卡：全部 / 夫妻 / 子女 / 兄弟姊妹，点了就是按类型筛选 */
.kpi-grid a.kpi { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.kpi-grid a.kpi:hover { border-color: #cbd9e8; text-decoration: none; }
.kpi-grid a.kpi.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 111, 214, .08); }
.kpi-grid a.kpi.on .label { color: var(--brand); }
/* 关系标签：夫妻偏红、子女偏蓝、兄弟姊妹偏青，扫一眼就能分开 */
.rel-table .tag-soft { margin-right: 0; white-space: nowrap; }
.rel-table .rel-tag-spouse { background: #fdecec; color: #b13b3b; }
.rel-table .rel-tag-child { background: #eaf2fd; color: #2c5f9e; }
.rel-table .rel-tag-sibling { background: #e8f6f4; color: #1f6f66; }
/* 备注列：限宽折行，别把表撑宽 */
.rel-table td.rk-cell { max-width: 220px; white-space: normal; line-height: 1.5; }
/* 公司名限宽折行（同银行账户列表的套路） */
.rel-table td.nm-cell { white-space: normal; }
.rel-table td.nm-cell .t-main { display: inline-block; max-width: 210px; white-space: normal; overflow-wrap: anywhere; }
/* 「现法人 xxx」提示：登记后公司法人变更过 */
.t-sub.warn { color: #b7791f; }

/* ============ 人员关系（基础数据 /person-relations） ============ */
.kpi-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1400px) { .kpi-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 二级页签（人员档案 / 亲属关系） */
.subnav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.subnav-item {
  padding: 10px 2px; font-size: 13.4px; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subnav-item:hover { color: var(--brand); text-decoration: none; }
.subnav-item.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* 身份标签：法人蓝 / 股东金 / 高管青，一眼分得开 */
.pm-table .role-tag {
  display: inline-flex; align-items: center; padding: 1px 7px; margin: 0 5px 4px 0;
  border-radius: 5px; font-size: 11.8px; line-height: 1.75; white-space: nowrap;
}
.pm-table .role-tag i { font-style: normal; opacity: .45; margin: 0 2px; }
.pm-table .role-tag em { font-style: normal; font-size: 10.5px; opacity: .7; margin-left: 3px; }
.pm-table .role-legal { background: #eaf2fd; color: #2c5f9e; }
.pm-table .role-shareholder { background: #fdf3e4; color: #94621b; }
.pm-table .role-executive { background: #e9f6f1; color: #1f6f5a; }
.pm-table .role-tag.more { background: #f1f4f7; color: #71808f; cursor: help; }

/* 关系标签（人员列表与关系列表共用） */
.pm-table .rel-tag {
  display: inline-block; padding: 1px 6px; border-radius: 5px; margin-right: 6px;
  font-size: 11.8px; line-height: 1.75; white-space: nowrap;
}
.rel-tag-spouse { background: #fdecec; color: #b13b3b; }
.rel-tag-child { background: #eaf2fd; color: #2c5f9e; }
.rel-tag-sibling { background: #e8f6f4; color: #1f6f66; }

/* 行内容器：一个人多个身份 / 多条关系时换行排，不把表撑宽 */
.pm-table .role-cell { white-space: normal; max-width: 460px; line-height: 1.6; }
.pm-table .rel-cell { white-space: normal; max-width: 280px; }
.pm-table .rel-line { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; margin-bottom: 2px; }
.pm-table .rel-line .rel-nm { font-weight: 600; color: #33414f; }
.pm-table td.nm-cell { white-space: normal; }
.pm-table td.nm-cell .t-main { display: inline-block; max-width: 200px; white-space: normal; overflow-wrap: anywhere; }
.pm-table td.rk-cell { max-width: 210px; white-space: normal; line-height: 1.5; }

/* 关系列表：涉及公司 */
.pm-table .co-cell { white-space: normal; font-size: 12.2px; line-height: 1.8; max-width: 300px; }
.pm-table .co-arrow { color: #a9b5c1; margin: 0 5px; }
.pm-table .cross-dot {
  display: inline-block; flex: none; white-space: nowrap;
  margin-left: 6px; padding: 0 5px; border-radius: 4px;
  background: #fdecec; color: #b13b3b; font-size: 10.5px; line-height: 1.7;
}

/* 身份明细：用 grid 行而不是 table —— 全局下拉增强器会把 select 包进 div.ss，
   放在 <td> 里会破坏表格布局（实测 tr 的 display 被算成 flex，列宽全乱） */
.role-head, .role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px 154px 86px 122px 44px 54px;
  gap: 10px; align-items: center;
}
.role-head {
  padding: 10px 20px; background: #f7f9fc; color: #5d7085;
  font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--line);
}
.role-row { padding: 8px 20px; border-bottom: 1px solid var(--line-2); }
.role-row:last-child { border-bottom: 0; }
.role-row:hover { background: #fafcff; }
.role-row input[type="text"],
.role-row input[type="number"] {
  width: 100%; height: 34px; padding: 0 9px; font-size: 12.8px;
  border: 1px solid #d7e0ea; border-radius: 8px; background: #fff; color: var(--text);
}
.role-row input[type="number"] { font-variant-numeric: tabular-nums; }
.role-row .ss-input { height: 34px; padding: 0 26px 0 9px; font-size: 12.8px; border-radius: 8px; }
.role-row input:disabled { background: #f4f6f8; color: #c2cad3; border-color: #e8edf3; }
.role-row input::placeholder { color: #b9c2cc; }
.role-row select:disabled + .ss-input { background: #f4f6f8; color: #c2cad3; }
@media (max-width: 1180px) {
  .role-head, .role-row { grid-template-columns: minmax(0, 1fr) 116px 136px 78px 108px 40px 38px; gap: 8px; }
}

/* 人员列表的「所在公司」下拉：275 个选项，给足宽度并禁止被 flex 压扁 */
.filters .field.co-field { min-width: 240px; flex: 0 0 240px; }
.filters .field.co-field .ss { width: 100%; min-width: 100%; }

/* 公司详情页的「人员与亲属关系」小卡：列窄一点，别把详情页撑宽 */
.pm-table.pm-mini .role-cell { max-width: 320px; }
.pm-table.pm-mini .rel-cell { max-width: 360px; }
.pm-table.pm-mini td { padding: 9px 14px; }

/* 云信结转单「按公司分单」：一家一行，金额/编号可改 */
.batch-wrap { max-height: 620px; overflow: auto; }
.batch-tbl { table-layout: fixed; width: 100%; }
.batch-tbl th, .batch-tbl td { vertical-align: middle; }
.batch-tbl input {
  width: 100%; height: 32px; padding: 0 9px; font-size: 12.8px;
  border: 1px solid #d7e0ea; border-radius: 7px; background: #fff; color: var(--text);
}
.batch-tbl input.amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.batch-tbl input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.2px; }
.batch-tbl input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 110, 216, .1); outline: 0; }
.batch-name { white-space: normal; word-break: break-all; line-height: 1.45; font-size: 12.8px; }
.batch-tbl tfoot td { background: #f7fafd; border-top: 1px solid #e2eaf3; }
.batch-tag { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.batch-tag.ok { background: #e8f5ec; color: #1f7a45; }
.batch-tag.bad { background: #fdecec; color: #c0392b; }
.batch-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.batch-tools .hint { margin-left: 4px; }

/* 整批参数里「接收方」：单选 + 指定公司下拉 */
.radio-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.radio-row .rd { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #3f556d; cursor: pointer; }
.radio-row .rd input { width: 15px; height: 15px; margin: 0; }
.radio-row .ss, .radio-row > select { min-width: 210px; max-width: 300px; }
/* 只读展示框（例如「购进方 / 接收方 = 本次业务主体」，不给改、只提示口径） */
.ro-box {
    display: flex; align-items: center; min-height: 34px; padding: 6px 10px;
    background: #f4f7fb; border: 1px solid #e2e9f2; border-radius: 6px;
    font-size: 13px; color: #22384f; line-height: 1.5;
}
.ro-box .hint { color: #7c8ba1; }
/* 贴现方 / 接收方并排两列（分单页整批参数） */
.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.party-lbl { display: block; font-size: 12px; color: #7c8ba1; margin-bottom: 6px; }
@media (max-width: 980px) { .party-grid { grid-template-columns: 1fr; } }
/* 分单表格：内部滚动时表头固定 */
.batch-tbl thead th { position: sticky; top: 0; z-index: 2; background: #f5f8fc; }

/* 贴现台账「账款」：上游公司推荐 */
.pick-note { background: #f5f8fc; border: 1px solid #e2e9f2; border-radius: 6px; padding: 10px 14px; font-size: 12.5px; color: #4a5d73; line-height: 1.9; }
.pick-note b { color: #22384f; }
.pick-base { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 9px 14px; border-left: 3px solid #3b7ddd; background: #fbfdff; font-size: 12.5px; color: #4a5d73; }
.pick-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pick-best { border: 1px solid #b9d8b0; box-shadow: 0 1px 6px rgba(46, 125, 50, .08); }
.pick-best .card-head { background: #f2f9f1; }
.pick-best-main { display: grid; grid-template-columns: 1fr auto auto; gap: 22px; align-items: center; }
.pick-best-name { font-size: 17px; font-weight: 600; color: #1f3b2c; }
.pick-best-people { margin-top: 6px; font-size: 12.5px; color: #5a6b7d; line-height: 1.7; max-width: 620px; }
.pick-best-num { font-size: 13px; color: #33475e; line-height: 1.9; text-align: right; }
.pick-best-num b { font-size: 17px; }
.pick-no { color: #b04a42; font-size: 12px; line-height: 1.6; }
.pick-base + .pick-tools { border-top: 1px dashed #e2e9f2; padding-top: 10px; }
tr.row-off { background: #fafbfc; color: #8b98a8; }
tr.row-off b { color: #6d7d8f; font-weight: 500; }
td.wrap, th.wrap { white-space: normal; }
@media (max-width: 980px) { .pick-best-main { grid-template-columns: 1fr; } .pick-best-num { text-align: left; } }

/* 账款：三级上游链路卡片 */
.pick-chain { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.pick-chain .lv-box { flex: 1 1 220px; min-width: 210px; }
.chain-arrow { display: flex; align-items: center; color: #8aa0b8; font-size: 20px; padding: 0 2px; }
.chain-sink { flex: 0 0 190px; border: 1px dashed #b9c9dc; border-radius: 6px; padding: 10px 12px; background: #fbfdff; }
.lv-box { border: 1px solid #dfe8f2; border-radius: 6px; padding: 9px 11px; background: #fff; white-space: normal; font-size: 12.5px; line-height: 1.6; }
.lv-box a { font-size: 12px; }
.lv-empty { display: flex; align-items: center; justify-content: center; color: #9aa9ba; background: #fafbfc; min-height: 90px; }
.lv-tag { display: inline-block; font-size: 11px; color: #3b7ddd; background: #eaf2fd; border-radius: 3px; padding: 0 6px; margin-bottom: 5px; }
.lv-name { font-size: 13.5px; font-weight: 600; color: #22384f; line-height: 1.4; word-break: break-all; }
.lv-badges { margin: 5px 0; }
.lv-people { color: #5a6b7d; margin-top: 4px; word-break: break-all; }
.lv-dates { color: #93a1b2; font-size: 11px; margin: 3px 0 5px; }
.lv-sm { padding: 7px 9px; font-size: 12px; }
.lv-sm .lv-name { font-size: 12.5px; }
.lv-sm .lv-people { display: none; }
.chain-tbl td { vertical-align: top; }
.chain-tbl td .lv-box { min-width: 180px; }

/* ============================================================
 * 链路录入：Excel 式网格 + 可合并单元格（2026-11-15）
 * 独立 xl- 前缀，不影响 read.html 的 mx- 系列
 * ============================================================ */
.xl-wrap { overflow: auto; max-height: max(430px, calc(100vh - 320px)); border: 1px solid #d6e0ec;
  border-radius: 6px; background: #fff; user-select: none; }
table.xl { border-collapse: collapse; table-layout: fixed; width: max-content; min-width: 100%; }
table.xl th, table.xl td { border: 1px solid #dbe4ee; box-sizing: border-box; padding: 0; }
table.xl thead th { position: sticky; top: 0; z-index: 4; height: 24px; background: #f2f6fa;
  font-size: 11px; font-weight: 400; color: #76899e; text-align: center; white-space: nowrap; }
table.xl th.xl-corner { position: sticky; left: 0; z-index: 6; background: #eaf0f7; }
table.xl td.xl-rh { position: sticky; left: 0; z-index: 3; background: #f2f6fa;
  text-align: center; vertical-align: middle; }
.xl-rh-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 0; }
.xl-rh-n { font-size: 11px; font-weight: 600; color: #6b8199; line-height: 1; }
.xl-rh-b { display: inline-flex; gap: 2px; }
.xl-rh-b button { width: 17px; height: 17px; line-height: 1; padding: 0; border: 1px solid #d6e0ec;
  background: #fff; border-radius: 2px; color: #8799ad; font-size: 11px; cursor: pointer; }
.xl-rh-b button:hover { border-color: #1a73c7; color: #1a73c7; background: #eaf2fd; }
.xl-rh-b button.danger:hover { border-color: #d03030; color: #d03030; background: #fdf1f1; }
table.xl td.xl-c { height: 72px; vertical-align: top; background: var(--xl-co-bg, #fff); position: relative; }
table.xl td.xl-c.xl-void { background: #fafbfd; }
table.xl td.xl-c.xl-sel { background: #e7f1ff; box-shadow: inset 0 0 0 1px #4b8fdb; }
table.xl td.xl-c.xl-anchor { box-shadow: inset 0 0 0 2px #1a73c7; z-index: 2; }
table.xl td.xl-c.xl-mg { background: var(--xl-co-bg, #f4f9ff); }
table.xl td.xl-c.xl-mg.xl-sel { background: #dcecff; }
/* 标色格整格染色；被框选时让蓝色选区优先，避免和底色糊在一起 */
table.xl td.xl-c.xl-sel .xl-cell { background: transparent; }
/* 合并 / 跨环格子：内容整体居中（6.12.3），纵向合并块也垂直居中 */
table.xl td.xl-c.xl-mg, table.xl td.xl-c.xl-sp { vertical-align: middle; }
table.xl td.xl-c.xl-mg .xl-cell, table.xl td.xl-c.xl-sp .xl-cell {
  height: 100%; min-height: 70px; align-items: center; justify-content: center; text-align: center; }
table.xl td.xl-c.xl-mg .xl-h, table.xl td.xl-c.xl-sp .xl-h {
  justify-content: center; flex-wrap: wrap; height: auto; min-height: 17px; }
table.xl td.xl-c.xl-mg .xl-h b, table.xl td.xl-c.xl-sp .xl-h b { flex: 0 1 auto; }
table.xl td.xl-c.xl-mg .xl-meta, table.xl td.xl-c.xl-sp .xl-meta { width: 100%; text-align: center; }
table.xl td.xl-c.xl-mg .xl-in, table.xl td.xl-c.xl-sp .xl-in { text-align: center; }
.xl-cell { min-height: 70px; box-sizing: border-box; padding: 4px 5px;
  display: flex; flex-direction: column; gap: 2px; }
.xl-h { display: flex; align-items: center; gap: 2px; height: 17px; }
.xl-h b { font-size: 11.5px; font-weight: 600; color: #33536e; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.xl-h b:hover { color: #1a73c7; }
.xl-ic { border: 0; background: none; color: #a2b3c5; cursor: pointer; font-size: 12px;
  line-height: 1; padding: 0 1px; flex: 0 0 auto; }
.xl-ic:hover { color: #1a73c7; }
.xl-ic.danger:hover { color: #d03030; }
.xl-ic.on { color: #1f7a4c; }
.xl-ic.off { opacity: .3; cursor: not-allowed; }
.xl-ic.off:hover { color: #a2b3c5; }
.xl-ic.plan { color: #8a63c9; }
.xl-ic.plan:hover { color: #6a3fb0; }
.xl-ic.plan.on { color: #6a3fb0; font-weight: 700; }
.xl-ic.paint { font-size: 11px; }
.xl-ic.paint.on { font-weight: 400; }
.xl-ic.paint:hover { color: #c0392b; }
/* 相邻环节发票明细弹窗（6.13） */
.plan-cap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding: 8px 10px; margin-bottom: 10px;
  background: #f8fbff; border: 1px solid var(--line-2, #e2e8f0); border-radius: 6px; font-size: 12px; color: #4a6076; }
.plan-cap b { color: #1a3b5c; font-size: 13px; }
.plan-cap.ok b { color: #0f9d6e; }
.plan-cap.short b { color: #b8860b; }
.plan-cap.over { background: #fff5f4; border-color: #e9b7b1; }
.plan-cap.over b { color: #c0392b; }
.plan-summary { margin-bottom: 12px; overflow: auto; }
.plan-summary .table { font-size: 11.5px; margin-bottom: 0; background: #f8fbff; }
.plan-summary .table th, .plan-summary .table td { padding: 5px 8px; white-space: nowrap; }
.plan-summary .table tr.ok td { color: #0f9d6e; }
.plan-summary .table tr.short td { color: #b8860b; }
.plan-summary .table tr.over td { color: #c0392b; font-weight: 600; }
.plan-summary .table tr.other td { color: #8a9bad; }
.plan-add select option .pl-amt { color: #8a9bad; }
.plan-list { margin-bottom: 12px; max-height: 240px; overflow: auto; border: 1px solid var(--line-2, #e2e8f0); border-radius: 6px; }
.plan-list .table { min-width: 1020px; font-size: 11.5px; margin-bottom: 0; }
.plan-list .table th, .plan-list .table td { padding: 6px 8px; white-space: nowrap; }
.plan-add { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px;
  padding-top: 12px; border-top: 1px dashed var(--line-2, #e2e8f0); }
.plan-add .field.wide { grid-column: 1 / -1; }
.plan-add .field label { font-size: 12px; margin-bottom: 3px; }
.plan-add input[readonly] { background: #f5f8fb; color: #33536e; }
.xl-tag { font-style: normal; font-size: 9px; line-height: 13px; padding: 0 3px; border-radius: 2px;
  background: #eaf2fa; color: #7d93ab; white-space: nowrap; flex: 0 0 auto; }
.xl-tag.g { background: #dff3e6; color: #1f7a4c; cursor: pointer; }
.xl-tag.g:hover { background: #c8ebd4; }
.xl-tag.m { background: #e5edff; color: #3b5fb5; }
.xl-in { width: 100%; height: 21px; border: 1px solid transparent; border-radius: 2px;
  background: transparent; font-size: 11px; padding: 0 3px; box-sizing: border-box; color: #334e68; }
.xl-in:hover { border-color: #d6e0ec; background: #fff; }
.xl-in:focus { outline: none; border-color: #1a73c7; background: #fff; }
.xl-in.sm { font-size: 10.5px; color: #7a8ea3; }
.xl-empty, .xl-add { display: flex; align-items: center; justify-content: center; height: 100%;
  min-height: 68px; color: #9fb2c6; font-size: 11px; cursor: pointer; }
.xl-empty { border: 1px dashed #d9e4ef; border-radius: 2px; margin: 3px; min-height: 62px; }
.xl-empty:hover, .xl-add:hover { color: #1a73c7; background: #f4f9ff; }
/* 留白格里的「+ 增加一列」按钮：折行居中，长短文案都不撑破格子 */
.xl-add { padding: 0 6px; line-height: 1.5; text-align: center; white-space: normal;
  box-sizing: border-box; }
.xl-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.xl-toolbar .sep { width: 1px; height: 18px; background: #dce5ef; margin: 0 3px; }
.xl-toolbar .btn:disabled { opacity: .45; cursor: not-allowed; }
.xl-wrap input.xl-in { user-select: text; }
.xl-toolbar label.sw { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px;
  color: #5a6f86; cursor: pointer; margin: 0; }
.xl-toolbar label.sw input { margin: 0; }
.xl-selinfo { font-size: 11.5px; color: #7a8ea3; margin-left: 2px; }
.xl-selinfo b { color: #1a73c7; font-weight: 600; }
table.xl.merging td.xl-c { cursor: cell; }
table.xl td.xl-c.xl-conflict { background: #fff4f4; }
