:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #e3e8ef;
  --text: #1f2733;
  --muted: #7a8699;
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --ok: #16a34a;
  --warn: #d97706;
  --bar: #93c5fd;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: var(--card);
  border-bottom: 1px solid var(--line);
}
.title { font-size: 18px; font-weight: 700; }
.badge {
  font-size: 12px; font-weight: 500; color: var(--primary);
  background: #eef4ff; padding: 2px 8px; border-radius: 10px; margin-left: 8px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.token { width: 160px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.muted { color: var(--muted); font-size: 13px; }
main { max-width: 1180px; margin: 18px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row.btns { margin-top: 12px; }
.row.filters { margin-bottom: 12px; }
label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
label.grow { flex: 1; }
input, select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 14px; }
input[type="text"], input:not([type]), .grow input { width: 100%; }
.sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
/* 筛选栏里的勾选式开关（如「仅未出报告日期」） */
label.chk {
  gap: 6px; cursor: pointer; user-select: none;
  padding: 5px 10px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; white-space: nowrap;
}
label.chk input[type="checkbox"] {
  width: 15px; height: 15px; padding: 0; margin: 0;
  accent-color: var(--primary); cursor: pointer;
}
label.chk.on, label.chk:has(input:checked) {
  border-color: var(--primary); background: #f0f6ff;
  color: var(--primary); font-weight: 500;
}
.btn {
  background: var(--primary); color: #fff; border: none; border-radius: 6px;
  padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 500;
}
.btn:hover { background: var(--primary-d); }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn.ghost:hover { background: #f0f6ff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.progress { margin-top: 14px; padding: 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; }
.prog-stage { font-weight: 600; }
.prog-detail { margin: 4px 0 8px; }
.prog-bar { height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; width: 0%; background: var(--primary); transition: width .4s; }
.prog-fill.paused { background: var(--warn); }

/* 萧山同步步骤指示器 */
.xs-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.xs-step {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px;
  padding: 3px 10px;
}
.xs-step .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #e5e7eb; color: #fff; font-size: 11px; font-weight: 700;
}
.xs-step.active { color: var(--text); border-color: var(--primary); background: #eef4ff; }
.xs-step.active .dot { background: var(--primary); }
.xs-step.current { box-shadow: 0 0 0 2px rgba(37,99,235,.18); }
.xs-step.current .dot { background: var(--primary-d); }

/* 数据概览 统计表 */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.stats-grid .card h3 { margin: 0 0 4px; font-size: 15px; }
.stats-table-wrap { max-height: 320px; overflow-y: auto; margin-top: 8px; }
.stats-table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.stats-table-wrap th, .stats-table-wrap td {
  padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left;
}
.stats-table-wrap th { position: sticky; top: 0; background: #f8fafc; color: var(--muted); z-index: 2; }
.stats-table-wrap tbody tr:hover { background: #f9fbff; }
.stats-table-wrap td:last-child, .stats-table-wrap th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr; } }
.result { margin-top: 12px; padding: 10px 12px; border-radius: 8px; }
.result.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.result.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hidden { display: none; }

.stats-strip { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; text-align: center; }
.stat .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat .lbl { font-size: 12px; color: var(--muted); }
.cat-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cat-bar { display: flex; align-items: center; gap: 10px; }
.cat-bar .name { width: 110px; color: var(--muted); }
.cat-bar .track { flex: 1; height: 18px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.cat-bar .fill { height: 100%; background: var(--bar); }
.cat-bar .val { width: 60px; text-align: right; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: scroll; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; position: relative; max-height: calc(100vh - 270px); }
.table-wrap::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 24px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.06));
  pointer-events: none; opacity: 0; transition: opacity .2s;
}
.table-wrap.can-scroll::after { opacity: 1; }
/* 横向滚动条常显、加粗，方便拖动 */
.table-wrap::-webkit-scrollbar { height: 14px; width: 14px; }
.table-wrap::-webkit-scrollbar-track { background: #eef1f5; border-radius: 7px; }
.table-wrap::-webkit-scrollbar-thumb { background: #b6bfce; border-radius: 7px; border: 3px solid #eef1f5; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: #8f9bb0; }
/* border-collapse: separate 是 sticky 表头在 Chrome 生效的前提
   （collapse 模式下 position:sticky 对 th 无效，表头无法置顶） */
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #f8fafc; color: var(--muted); position: sticky; top: 0; z-index: 2; font-weight: 600; }

/* 台账主表：列宽可拖拽 + 内容自动换行 */
#tbl { table-layout: fixed; }
#tbl th, #tbl td {
  white-space: normal; word-break: break-word; overflow-wrap: anywhere;
  vertical-align: top;
}
/* 注意：th 不能设 position:relative，否则会覆盖通用规则 th{position:sticky;top:0}
   导致表头下滑不置顶。sticky 同样是定位上下文，col-resizer 绝对定位仍正常。
   relative 仅保留给 td（无绝对定位子元素依赖，但保留无害）。 */
#tbl td { position: relative; }
#tbl th { user-select: none; z-index: 2; }
.col-resizer {
  position: absolute; top: 0; right: -3px; width: 8px; height: 100%;
  cursor: col-resize; z-index: 2;
}
.col-resizer::after {
  content: ""; position: absolute; top: 20%; right: 3px; width: 2px; height: 60%;
  background: #cfd6e0; border-radius: 1px;
}
.col-resizer:hover::after { background: var(--primary); }
tbody tr:hover { background: #f9fbff; }
.pager { margin-top: 12px; justify-content: flex-end; }

/* 顶部同步横向滚动条 */
.scroll-top {
  overflow-x: scroll; overflow-y: hidden; height: 14px;
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 8px 8px 0 0; background: #f4f6f9; display: none;
}
.scroll-top > div { height: 1px; }
.scroll-top::-webkit-scrollbar { height: 14px; }
.scroll-top::-webkit-scrollbar-track { background: #eef1f5; border-radius: 7px; }
.scroll-top::-webkit-scrollbar-thumb { background: #b6bfce; border-radius: 7px; border: 3px solid #eef1f5; }
.scroll-top::-webkit-scrollbar-thumb:hover { background: #8f9bb0; }

/* 冻结列：被标 .frozen 的列（含勾选框/序号两固定列 + 用户在「列设置」中勾选冻结的列）
   向右滚动时常驻左侧。left 偏移由 JS 按列宽累加写入到内联 style。
   作用域从 #tbl 放宽到 .table-wrap，使工程编号台账(pTbl)同样支持冻结。 */
/* 冻结列选择器同时用 id 限定，确保优先级高于 #tbl td / #pTbl td 的 position:relative，
   否则冻结列会被 relative 覆盖而不 sticky（与表头同理）。 */
.table-wrap th.frozen, .table-wrap td.frozen,
#tbl th.frozen, #tbl td.frozen, #pTbl th.frozen, #pTbl td.frozen {
  position: sticky; background: #fff; z-index: 1;
  box-shadow: 1px 0 0 var(--line);
  /* 注意：这里千万不能加 will-change / transform / opacity 等会把单元格提升为
     独立合成层的属性。Chrome 对 table 内的 sticky 单元格做合成层提升后，横向滚动时
     合成层不再随主线程重绘，冻结列会残留上一帧而显示成空白（内容消失只剩白底）。
     保持普通图层 + 不透明背景，由主线程重绘即可正常跟随滚动。 */
}
.table-wrap th.frozen { background: #f8fafc; z-index: 3; }
.table-wrap tbody tr:hover td.frozen { background: #f9fbff; }
/* 冻结列表头：须同时锁定 top(竖向滚动) 与 left(横向滚动)。
   显式在此声明 position:sticky + top:0（与常规 th 规则一致），确保首行在滚动浏览时
   锁定；避免「th 规则给 top、frozen 规则给 left」分别声明时，部分浏览器下冻结列首行不置顶。 */
#tbl thead th.frozen, #pTbl thead th.frozen, .table-wrap thead th.frozen,
#tbl th.frozen, #pTbl th.frozen, .table-wrap th.frozen {
  position: sticky;
  top: 0;
  z-index: 4;
}

/* 列拖拽重排（编辑权限可用） */
#tbl th[data-field].draggable { cursor: grab; }
#tbl th.dragging { opacity: .45; }
#tbl th.drop-target { outline: 2px dashed var(--primary); outline-offset: -2px; }
#tbl th .col-drag {
  display: inline-block; margin-left: 4px; color: #b6bfce; font-size: 11px;
  cursor: grab; user-select: none;
}
#tbl th .col-drag:hover { color: var(--primary); }

/* 列显示设置弹窗 */
.cols-modal-box { width: 640px; max-width: 94vw; }
.cols-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px;
  max-height: 30vh; overflow-y: auto; padding: 4px 2px;
}
.cols-list .chk {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--text); cursor: pointer; padding: 3px 4px; border-radius: 6px;
}
.cols-list .chk:hover { background: #f1f5fb; }
.cols-list .chk input { width: 15px; height: 15px; }
/* 列显示设置：每列宽度精调输入框（px） */
.cols-list .chk { gap: 6px 8px; }
.cols-list .colw-lbl { font-size: 11px; color: var(--muted); }
.cols-list .colw {
  width: 58px; margin-left: auto; padding: 2px 5px;
  border: 1px solid var(--line); border-radius: 6px; font-size: 12px; color: var(--text);
}

/* ===== 左侧导航布局 ===== */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; flex: 0 0 230px; background: var(--card);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { font-size: 17px; font-weight: 700; padding: 4px 8px 14px; }
.brand .badge { font-size: 11px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--text);
  font-size: 14px; display: flex; align-items: center; gap: 8px; user-select: none;
}
.nav-item:hover { background: #f1f5fb; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item .ico { width: 18px; text-align: center; opacity: .85; }
.nav-sub { margin-left: 14px; display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.nav-sub .nav-item.sub { font-size: 13px; padding: 7px 12px; color: var(--muted); }
.nav-sub .nav-item.sub:hover { background: #f1f5fb; color: var(--text); }
.side-foot { padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tok-label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.tok-label .token { width: 100%; }

/* 去掉固定 max-width，让内容区随浏览器宽度铺满（列宽之和不足时表格自适应饱满） */
.content { flex: 1; min-width: 0; padding: 18px 20px; max-width: none; }
.view { display: block; }
.view.hidden { display: none; }

.ledger-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.ltab {
  padding: 8px 16px; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  cursor: pointer; font-size: 14px; color: var(--muted);
}
.ltab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.branch-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.branch-btn {
  padding: 6px 14px; border: 1px solid var(--line); background: #fff; border-radius: 18px;
  cursor: pointer; font-size: 13px; color: var(--text);
}
.branch-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ledger-hint { margin-bottom: 8px; }

td[data-field] { cursor: cell; }
td[data-field]:hover { background: #eef4ff; }
td.saved { background: #ecfdf5 !important; transition: background .3s; }
td input {
  width: 100%; border: 1px solid var(--primary); border-radius: 4px;
  padding: 4px 6px; font-size: 13px; box-sizing: border-box;
}

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: 12px; padding: 20px 24px; width: 420px; max-width: 92vw; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.modal-box.wide { width: 720px; }
.modal-box h3 { margin: 0 0 14px; }
/* 分类调整列表 */
.reclass-list { max-height: 56vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.reclass-row { display: grid; grid-template-columns: 66px 1.4fr 1.1fr 60px 150px 74px; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.reclass-row:last-child { border-bottom: none; }
.reclass-head { position: sticky; top: 0; background: #f6f9ff; font-weight: 600; color: var(--muted); z-index: 1; }
.reclass-row.un { background: #fff7f0; }
.reclass-row .pfx { font-weight: 700; letter-spacing: .5px; }
.reclass-row select { padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--text); width: 100%; }
.reclass-row .rc-apply { padding: 5px 10px; font-size: 13px; }
.modal-row { margin-bottom: 10px; }
.modal-row label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13px; }
.modal-row input, .modal-row select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.tip { margin-top: 10px; font-size: 12px; }

/* ===== 登录 ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(135deg, #eef4ff 0%, #f4f6f9 100%);
  display: flex; align-items: center; justify-content: center;
}
.login-overlay.hidden { display: none; }
.login-box {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 34px; width: 360px; max-width: 92vw;
  box-shadow: 0 12px 44px rgba(37, 99, 235, .12);
}
.login-box h2 { margin: 0 0 4px; }
.login-box .modal-row label { display: flex; flex-direction: column; gap: 4px; }
.login-box input { width: 100%; }

/* ===== 用户信息卡 ===== */
.user-chip {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 13px;
}
.user-chip .uc-name { font-weight: 600; }
.user-chip .uc-role { font-size: 12px; margin: 2px 0 6px; }
.user-chip .uc-actions { display: flex; gap: 12px; }
.user-chip a { color: var(--primary); text-decoration: none; font-size: 12px; }
.user-chip a:hover { text-decoration: underline; }

.liaison-filled { color: var(--ok); font-weight: 600; }

/* 工程编号台账：与台账数据一致的列宽可拖拽 + 自动换行 */
#pTbl { table-layout: fixed; }
#pTbl th, #pTbl td {
  white-space: normal; word-break: break-word; overflow-wrap: anywhere;
  vertical-align: top;
}
/* th 不设 relative（见 #tbl 说明），stable 置顶需 sticky；relative 仅留给 td */
#pTbl td { position: relative; }
#pTbl th { user-select: none; }

/* 业务对接人单元格：标签 + 设置入口 */
.liaison-cell { vertical-align: middle; }
.ln-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.ln-tag {
  display: inline-block; background: #eef4ff; color: var(--primary);
  border: 1px solid #dbe7ff; border-radius: 10px; padding: 1px 8px; font-size: 12px;
}
.ln-set { color: var(--primary); font-size: 12px; text-decoration: none; }
.ln-set:hover { text-decoration: underline; }
.op-cell { white-space: nowrap; }

/* 对接人勾选组（新增工程 / 设置弹窗） */
.chk-group { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 6px 0; }
.chk { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-size: 14px; }
.chk input { width: auto; }

/* 业务对接人管理列表 */
.lm-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 320px; overflow-y: auto; }
.lm-item { display: flex; align-items: center; gap: 8px; }
.lm-item .lm-name { flex: 1; }
.lm-item .btn { padding: 5px 10px; font-size: 13px; }

/* ===== 台账勾选框 / 序号 / 操作 列 ===== */
#tbl th.ck-cell, #tbl td.ck-cell {
  text-align: center; vertical-align: middle;
}
#tbl th.ck-cell { background: #f8fafc; }
#tbl td.ck-cell { background: #fff; }
#tbl tbody tr:hover td.ck-cell { background: #f9fbff; }
#tbl .seq-cell { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
#tbl th.seq-cell { background: #f8fafc; }
#tbl .op-cell { white-space: nowrap; }
#tbl .op-cell a { color: var(--primary); text-decoration: none; margin-right: 4px; }
#tbl .op-cell a:hover { text-decoration: underline; }
#tbl .ck-cell input[type="checkbox"], #tbl .seq-cell { cursor: default; }

/* ===== 批量编辑栏 ===== */
.batch-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #eef4ff; border: 1px solid #dbe7ff; border-radius: 8px;
  padding: 8px 12px; margin-bottom: 10px; font-size: 13px;
}
.batch-bar b { color: var(--primary); }
.batch-bar select, .batch-bar input { padding: 5px 8px; }
.batch-bar label { color: var(--text); }

/* ===== 精确查找条件列表 ===== */
.precise-list { display: flex; flex-direction: column; gap: 6px; }
.precise-cond {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 13px;
}
.precise-cond .pc-name { font-weight: 600; color: var(--text); }
.precise-cond .pc-op { color: var(--muted); background: #eef2f7; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.precise-cond .pc-val { color: var(--primary); }
.precise-cond .pc-del { padding: 3px 10px; font-size: 12px; margin-left: auto; }

/* ===== 筛选条件 chips（筛选栏下方常驻，可单个移除） ===== */
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: -4px 0 12px;
}
.filter-chips .chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef4ff; border: 1px solid #cddcf7; color: var(--primary);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer;
  line-height: 1.6;
}
.filter-chips .chip:hover { background: #e0ecff; }
.filter-chips .chip-x { font-weight: 700; font-size: 13px; opacity: .65; }
.filter-chips .chip:hover .chip-x { opacity: 1; }
.filter-chips .chip-clear { background: #f4f6f9; border-color: var(--line); color: var(--muted); }
.filter-chips .chip-clear:hover { background: #e9edf3; }

/* ===== 日志弹窗 ===== */
.log-box { max-height: 32vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.log-item { padding: 7px 4px; border-bottom: 1px solid #eef2f7; font-size: 13px; }
.log-item:last-child { border-bottom: none; }
.lg-act {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 600; color: #fff; margin-right: 6px;
}
.act-create, .act-sync_add { background: #16a34a; }
.act-edit, .act-sync_diff { background: #2563eb; }
.act-delete { background: #dc2626; }
.act-restore { background: #d97706; }
.lg-restore { padding: 2px 10px; font-size: 12px; margin-left: 8px; }
.diff-row { margin: 4px 0 0 64px; font-size: 12px; }
.diff-field { font-weight: 600; color: var(--text); }
.diff-old { color: #dc2626; text-decoration: line-through; }
.diff-new { color: #16a34a; }
.diff-row .arrow { color: var(--muted); margin: 0 4px; }

/* ===== 回收站 ===== */
.trash-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; }
.trash-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
}
.trash-info { font-size: 13px; }

/* 萧山监管平台验证码：原图 36×36，按 120px 显示并像素化保持清晰 */
#xsCaptchaImg { display: block; }
/* 萧山同步窗口选择按钮 */
.xs-win.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 账号管理：查看/编辑 权限开关 */
.switch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.switch-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch.sm { width: 38px; height: 21px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #cbd5e1; border-radius: 999px; transition: background .2s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch.sm .slider::before { height: 15px; width: 15px; left: 3px; top: 3px; }
.switch input:checked + .slider { background: var(--ok); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch.sm input:checked + .slider::before { transform: translateX(17px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }
td.center { text-align: center; }

/* 顶栏全局搜索 */
.content > .topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .tb-ico { font-size: 16px; }
.gs-input {
  flex: 1 1 420px; max-width: 560px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 14px;
}
.gs-input:focus { outline: none; border-color: var(--primary); }

/* 多分类多选 */
.cat-multi {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  padding: 10px 12px; margin-top: 8px; background: #f8fafc;
  border: 1px dashed var(--line); border-radius: 8px;
}
.cat-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }

/* 数据质量看板 */
.stat.warn .num { color: var(--err); }
.quality-missing { margin-top: 12px; }
.qm-title { font-size: 13px; margin-bottom: 6px; }
.qm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.qm-cell {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 2px;
}
.qm-cell.warn { border-color: #f5c6cb; background: #fdecea; }
.qm-cell .qm-n { font-size: 18px; font-weight: 700; }
.qm-cell.warn .qm-n { color: var(--err); }
.qm-cell .qm-l { font-size: 12px; color: var(--muted); }
.qm-cell .qm-r { font-size: 12px; color: var(--muted); }

/* 萧山同步变更明细 */
.xs-changes { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.xs-changes-body { margin-top: 8px; }
.xs-changes-body table { width: 100%; font-size: 12px; }
.xs-addr { font-size: 13px; }
.xs-addr input.grow { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
