/* ============================================================
   云会计 SaaS · 设计系统
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-700: #1e40af;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --accent: #f97316;
  --success: #16a34a;
  --success-50: #f0fdf4;
  --warning: #d97706;
  --warning-50: #fffbeb;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --cyan: #0891b2;

  --text: #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --line: #e8ebf0;
  --line-2: #f1f3f7;
  --bg: #f4f6fa;
  --card: #ffffff;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --sidebar-w: 68px;
  --topbar-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.num.neg { color: var(--danger); }

/* 报表数字钻取 / 公式链接 */
.num-link { color: var(--primary); cursor: pointer; }
.num-link:hover { text-decoration: underline; }
.fx-link { font-size: 11px; color: var(--cyan); cursor: pointer; margin-left: 4px; white-space: nowrap; }
.fx-link:hover { text-decoration: underline; }
.bs-grid td, .bs-grid th { height: 30px; }
/* 资产负债表：单表左右对开，两栏逐行对齐 */
table.bs-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; width: 100%; }
table.bs-table td, table.bs-table th { height: 30px; padding-top: 0; padding-bottom: 0; border-bottom: 1px solid var(--line-2); }
table.bs-table th.bs-cut, table.bs-table td.bs-cut { border-left: 1px solid var(--line); }
table.bs-table td.bs-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.bs-table td.bs-open { white-space: normal; overflow: visible; text-overflow: clip; height: auto; }
table.bs-table td.bs-open .fx-show { white-space: normal; }
table.bs-table td.bs-in1 { padding-left: 28px; color: var(--text-2); }
table.bs-table td.bs-in2 { padding-left: 46px; color: var(--text-3); font-size: 12px; }
table.bs-table td.bs-bold { font-weight: 600; }
table.bs-table td.bs-tot { background: #f7f9fc; font-weight: 600; }
table.bs-table td.bs-empty { background: #fff; }
table.bs-table td.bs-hdr { font-weight: 600; color: var(--text); background: #fcfdfe; }
table.bs-table td.bs-hdr.bs-cut { border-left: 1px solid var(--line); }
table.bs-table tr:hover td.bs-tot { background: #f2f5fa; }
table.bs-table .fx-edit { margin-left: 5px; }

/* ============================== 首页（精斗云版式） ============================== */
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 20px; border-radius: var(--r); cursor: pointer;
  transition: background .13s; min-width: 96px;
}
.quick-item:hover { background: var(--primary-50); }
.quick-item .qi-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 600;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .22);
}
.quick-item .qi-name { font-size: 12.5px; color: var(--text-2); text-align: center; line-height: 1.3; }
.quick-item .qi-name small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 1px; }

/* 常用功能设置弹窗 */
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 22px; max-height: 62vh; overflow: auto; padding: 4px 6px; }
.qc-gt { font-size: 13px; font-weight: 600; color: var(--text); margin: 10px 0 6px; }
.qc-item { display: flex; align-items: center; gap: 7px; padding: 4px 2px; font-size: 12.5px; color: var(--text-2); cursor: pointer; border-radius: 6px; }
.qc-item:hover { background: var(--primary-50); }
.qc-item input { accent-color: var(--primary); margin: 0; }
.qc-ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-style: normal; color: #fff; flex: none; text-shadow: 0 1px 1px rgba(15,23,42,.2); }
.qc-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--text-3); }
.qc-foot b { color: var(--primary); }

.fcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
}
.fc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-2);
}
.fc-period { font-size: 11px; color: var(--text-3); font-weight: 400; }
/* 指标卡头右侧：来源提示 + 期间 + 编辑 */
.fc-right { display: flex; align-items: center; gap: 7px; font-weight: 400; }
.fc-src { font-size: 10.5px; color: var(--text-3); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-edit {
  width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; flex: none;
  color: var(--text-3); background: rgba(255, 255, 255, .7); border: 1px solid rgba(148, 163, 184, .35);
  opacity: 0; transition: opacity .12s, color .12s, background .12s;
}
.fcard:hover .fc-edit { opacity: 1; }
.fc-edit:hover { color: var(--primary); background: #fff; }

/* 指标卡取数来源设置弹窗 */
.kp-tip { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.kp-sec { padding: 12px 12px 10px; border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 10px; }
.kp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kp-head b { font-size: 13px; color: var(--text); }
.kp-cur { font-size: 11px; color: var(--text-3); }
.kp-desc { font-size: 11.5px; color: var(--text-3); margin: 4px 0 8px; line-height: 1.6; }
.kp-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; }
.kp-lab { flex: none; width: 84px; font-size: 12px; color: var(--text-2); padding-top: 6px; text-align: right; }
.kp-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.kp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 12px; color: var(--text-2); cursor: pointer; background: #fff;
  transition: all .12s;
}
.kp-chip input { margin: 0; accent-color: var(--primary); }
.kp-chip:hover { border-color: #b9c6da; }
.kp-chip.on { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }
.kp-chip b { font-weight: 600; color: var(--text); }
.kp-chip.on b { color: var(--primary-700); }

/* 自选科目：添加按钮 + 科目选择器 */
.kp-add {
  flex: none; align-self: flex-start;
  display: inline-flex; align-items: center;
  padding: 5px 9px; border-radius: 6px; border: 1px dashed #b9c6da;
  background: #fff; color: var(--primary); font-size: 12px; cursor: pointer; transition: all .12s;
}
.kp-add:hover { background: var(--primary-50); border-color: var(--primary); }
.kp-chip.custom { padding-right: 6px; }
.kp-chip .kp-x {
  font-style: normal; font-size: 13px; line-height: 1; color: var(--text-3);
  padding: 0 2px; border-radius: 3px; cursor: pointer;
}
.kp-chip .kp-x:hover { color: #dc2626; background: rgba(220, 38, 38, .1); }
.kp-chip.kp-flash { box-shadow: 0 0 0 3px rgba(37, 99, 235, .22); }
.kp-picker {
  flex: 1 0 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; box-shadow: 0 10px 26px rgba(15, 23, 42, .12); overflow: hidden;
}
.kp-pk-hd { display: flex; gap: 8px; align-items: center; padding: 8px; background: #f8fafc; border-bottom: 1px solid var(--line-2); }
.kp-search {
  flex: 1; height: 30px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 12px; outline: none;
}
.kp-search:focus { border-color: var(--primary); }
.kp-pk-x { border: none; background: none; color: var(--text-3); font-size: 12px; cursor: pointer; padding: 2px 4px; }
.kp-pk-x:hover { color: var(--text); }
.kp-list { max-height: 208px; overflow: auto; }
.kp-opt {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  font-size: 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9;
}
.kp-opt:hover { background: var(--primary-50); }
.kp-opt b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.kp-opt .kp-on { flex: 1; color: var(--text-2); }
.kp-opt .kp-cat { font-style: normal; font-size: 11px; color: var(--text-3); }
.kp-opt.picked { opacity: .45; }
.kp-opt.covered { background: #fffbeb; }
.kp-opt.covered .kp-cat { color: #b45309; }
.kp-opt.hide { display: none; }
.kp-empty { padding: 16px; text-align: center; font-size: 12px; color: var(--text-3); }
.fc-body { padding: 12px 16px 14px; }

/* 首页看板：各数据块标题栏加深（仅首页 .dash 作用域内） */
.dash .card-head { background: #e7eef9; }
.dash .fc-head {
  background: linear-gradient(180deg, #cfdcf0 0%, #e4edfa 100%);
  color: #1b2a45;
}
.dash .fc-period { color: #5b6b86; }
.fc-main { display: flex; align-items: baseline; gap: 8px; }
.fc-num { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-cap { font-size: 12px; color: var(--text-3); }
.fc-sub {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  margin-top: 9px; font-size: 11.5px; color: var(--text-3);
}
.fc-sub b { color: var(--text); font-weight: 500; }
.fc-eq b { font-weight: 500; }
.fc-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-2);
  font-size: 11.5px; color: var(--text-3);
}
.fc-foot b { font-size: 12.5px; color: var(--text); margin-left: auto; }
.fc-foot b + .muted { margin-left: 0; }
.fc-foot .muted { font-size: 11px; }

/* ============================== 结账页（精斗云版式） ============================== */
.seg-group { display: inline-flex; background: var(--primary-50); border-radius: var(--r-sm); padding: 2px; gap: 2px; }
.seg-group button { padding: 5px 16px; border-radius: 5px; font-size: 12.5px; color: var(--text-2); }
.seg-group button.on { background: var(--primary); color: #fff; font-weight: 500; }
.jz-group-title { font-size: 13px; font-weight: 600; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.jz-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.jz-card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.jz-card .jc-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.jz-card .jc-head .spacer { flex: 1; }
.jz-card .jc-head a { font-size: 11px; font-weight: 400; }
.jz-card .jc-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.jz-card .jc-line b { font-variant-numeric: tabular-nums; }
.jz-card .jc-hint { font-size: 11.5px; color: var(--text-3); flex: 1; display: grid; place-items: center; text-align: center; }
.jz-card .jc-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.jz-card.disabled { opacity: .55; }
.jz-add {
  border: 1px dashed var(--line); border-radius: var(--r);
  display: grid; place-items: center; min-height: 118px;
  color: var(--text-3); font-size: 12px; cursor: pointer; gap: 6px;
}
.jz-add:hover { border-color: var(--primary); color: var(--primary); }

/* 系统结转模板设置弹窗（精斗云样式） */
.sys-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.sys-head .sys-name { font-size: 14.5px; font-weight: 600; }
.sys-sec { font-size: 13px; font-weight: 600; margin: 16px 0 10px; }
.sys-fld { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.sys-fld > span { flex: none; min-width: 118px; text-align: right; }
.sw { position: relative; width: 36px; height: 19px; appearance: none; -webkit-appearance: none; background: #d5dae3; border-radius: 10px; outline: none; cursor: pointer; transition: background .15s; flex: none; }
.sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sw:checked { background: var(--primary); }
.sw:checked::after { left: 19px; }
.sw:disabled { opacity: .5; cursor: not-allowed; }
.sys-radio { display: inline-flex; align-items: center; gap: 5px; margin-right: 22px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.sys-radio input { width: auto; accent-color: var(--primary); }

/* ============================== 资产卡片（精斗云版式） ============================== */
.ac-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; flex-wrap: wrap; }
.ac-layout { display: flex; gap: 14px; align-items: flex-start; }
.ac-main { flex: 1; min-width: 0; }
.ac-main .table-wrap { overflow-x: auto; }
.ac-main table.grid { min-width: 2980px; }
.ac-main table.grid th, .ac-main table.grid td { white-space: nowrap; }
/* 资产卡片表：冻结首两列（资产编码/资产名称）与末列（操作） */
#acTable table.grid td.ac-fx, #acTable table.grid th.ac-fx { position: sticky; z-index: 1; }
#acTable table.grid th.ac-fx { z-index: 4; background: #fafbfd; }
#acTable table.grid td.ac-fx { background: var(--card); }
#acTable table.grid tfoot td.ac-fx { background: #fafbfd; }
#acTable table.grid tbody tr:hover td.ac-fx { background: #f8fafd; }
#acTable table.grid td.ac-fx-r, #acTable table.grid th.ac-fx-r { right: 0; }
/* 冻结分界线阴影 */
#acTable table.grid .ac-fx-l2 { box-shadow: 2px 0 4px rgba(15, 23, 42, .06); }
#acTable table.grid .ac-fx-r { box-shadow: -2px 0 4px rgba(15, 23, 42, .06); }
/* 资产卡片：整页填充版式（左表格区 .bk-main.ac-main 内部滚动，右侧筛选树自身滚动） */
.bk-body > .ac-side { min-height: 0; overflow: auto; align-self: stretch; }
.bk-main.ac-main .table-wrap { overflow: visible; } /* 横向滚动统一交给 .bk-scroll */
.ac-side { width: 202px; flex: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 8px 14px; }
.ac-side-hd { font-size: 13px; font-weight: 600; padding: 4px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ac-sec { font-size: 12px; color: var(--text-3); padding: 10px 8px 4px; }
.ac-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.ac-item em { font-style: normal; color: var(--text-3); font-size: 11.5px; }
.ac-item:hover { background: var(--bg); color: var(--text); }
.ac-item.on { background: #e8f1ff; color: var(--primary); font-weight: 600; }
.ac-item.on em { color: var(--primary); }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.ac-fld { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.ac-fld > span { flex: none; min-width: 108px; text-align: right; }
.ac-fld input[type="number"] { text-align: right; }
.ac-dgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.ac-dl { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ac-dl span { flex: none; width: 110px; color: var(--text-3); }
.ac-dl b { font-weight: 500; color: var(--text); word-break: break-all; }

/* ============================== 登录页 ============================== */
.login-wrap {
  display: flex;
  min-height: 100vh;
  background: #fff;
}
.login-brand {
  flex: 1.15;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 100%);
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand::before, .login-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.login-brand::before { width: 620px; height: 620px; right: -240px; top: -180px; }
.login-brand::after { width: 420px; height: 420px; left: -160px; bottom: -180px; background: rgba(255,255,255,.05); }
.brand-logo { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; letter-spacing: .5px; position: relative; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
  backdrop-filter: blur(4px);
  object-fit: cover;
}
.brand-sub { font-size: 11px; opacity: .72; font-weight: 400; letter-spacing: 2px; }
.login-hero { position: relative; max-width: 480px; }
.login-hero h1 { font-size: 34px; line-height: 1.4; font-weight: 600; letter-spacing: .5px; }
.login-hero h1 em { font-style: normal; color: #ffd27a; }
.login-hero p { margin-top: 16px; font-size: 14px; line-height: 1.9; opacity: .82; }
.hero-points { margin-top: 34px; display: grid; gap: 14px; }
.hero-points li { display: flex; gap: 12px; font-size: 13px; opacity: .92; }
.hero-points .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); display: grid; place-items: center;
  font-size: 11px; flex: none;
}
.hero-stats { display: flex; gap: 44px; margin-top: 44px; }
.hero-stats b { font-size: 26px; font-weight: 600; letter-spacing: .5px; }
.hero-stats span { display: block; font-size: 12px; opacity: .68; margin-top: 4px; }
.login-foot { font-size: 11px; opacity: .55; position: relative; }

.login-panel {
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box { width: 100%; max-width: 340px; }
.login-box h2 { font-size: 22px; font-weight: 600; }
.login-box .tip { color: var(--text-3); font-size: 13px; margin-top: 8px; }
.login-tabs { display: flex; gap: 26px; margin: 28px 0 22px; border-bottom: 1px solid var(--line); }
.login-tabs button {
  padding: 0 0 12px; font-size: 14px; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.login-tabs button.on { color: var(--primary); border-color: var(--primary); font-weight: 500; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
.input, .select, textarea.input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid #dfe3eb; border-radius: var(--r-sm);
  background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.input::placeholder { color: #b7bec9; }
.login-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-2); margin: 4px 0 22px; }
.login-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-login {
  width: 100%; height: 42px; border-radius: var(--r-sm);
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 500;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
  transition: transform .12s, background .15s;
}
.btn-login:hover { background: var(--primary-600); }
.btn-login:active { transform: translateY(1px); }
.login-alt { text-align: center; margin-top: 18px; font-size: 12px; color: var(--text-3); }
.login-alt a { color: var(--primary); }
.login-demo {
  margin-top: 26px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--primary-50); border: 1px dashed #bfd4fb;
  font-size: 12px; color: var(--text-2); line-height: 1.8;
}
.login-demo b { color: var(--primary-700); font-weight: 600; }

/* ============================== 应用外壳 ============================== */
.app { display: none; height: 100vh; min-width: 1200px; flex-direction: column; }
.app.on { display: flex; }

.topbar {
  height: var(--topbar-h); flex: none;
  background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 16px 0 0;
  position: relative; z-index: 40;
}
/* 左上角品牌区：与左侧图标栏同宽（68px）的深色块，logo 在上、CFO-Box 字样在下，与下方深色图标栏连成一体 */
.tb-brand {
  width: var(--sidebar-w); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0; height: 100%;
  background: linear-gradient(180deg, #1f2a44 0%, #1a2338 100%);
  border-bottom: 1px solid #1a2338; margin-bottom: -1px; /* 盖住顶栏底线，让深色块与侧栏无缝相接 */
  position: relative; z-index: 41;
}
.tb-brand .brand-img {
  width: 26px; height: 26px; border-radius: 6px; display: block; flex: none;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .25);
}
.tb-brand .name {
  font-size: 9.5px; font-weight: 600; letter-spacing: .2px;
  color: #fff; line-height: 1; white-space: nowrap;
}

.tb-company {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 400; color: var(--text);
  margin-left: 28px; margin-right: 10px; cursor: pointer; white-space: nowrap;
}
.tb-company:hover { background: var(--line-2); }
.tb-company .caret { color: var(--text-3); font-size: 9px; }

.tb-period {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text); white-space: nowrap;
}
.tb-period b { color: var(--text); font-weight: 400; font-variant-numeric: tabular-nums; }
.tb-period .tag { font-size: 11px; padding: 1px 5px; border-radius: 3px; background: transparent; color: var(--warning); }

.tb-spacer { flex: 1; }
.tb-search {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; width: 200px;
  background: var(--line-2); border-radius: var(--r-sm);
  color: var(--text-3); font-size: 12px; position: relative;
}
.tb-search input { border: none; background: none; outline: none; flex: 1; font-size: 12px; }

/* 全局搜索下拉：凭证 / 明细账 / 总账 / 科目余额 */
.gs-panel {
  position: absolute; top: 36px; right: 0; width: 430px; max-height: 470px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .18); padding: 5px 0 0;
  z-index: 90; text-align: left;
}
.gs-head { padding: 5px 12px 8px; font-size: 11.5px; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.gs-group { padding: 3px 0 5px; border-bottom: 1px solid var(--line-2); }
.gs-group:last-of-type { border-bottom: none; }
.gs-gt { display: flex; align-items: center; gap: 6px; padding: 5px 12px 3px; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.gs-gt em { font-style: normal; font-weight: 400; opacity: .75; }
.gs-ic {
  width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center;
  font-size: 10px; font-style: normal; color: #fff; font-weight: 600; flex: none;
}
.gs-ic.ic-v { background: #2563eb; }
.gs-ic.ic-d { background: #0ea5e9; }
.gs-ic.ic-g { background: #8b5cf6; }
.gs-ic.ic-b { background: #10b981; }
.gs-item {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 12px;
  cursor: pointer; font-size: 12.5px; color: var(--text);
}
.gs-item:hover { background: var(--primary-50); }
.gs-t { font-weight: 600; white-space: nowrap; flex: none; }
.gs-d { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-empty { padding: 3px 12px 5px; font-size: 11.5px; color: var(--text-3); }
.gs-more { color: var(--primary); font-size: 11.5px; cursor: pointer; }
.gs-more:hover { background: var(--primary-50); }
.gs-foot { padding: 7px 12px 6px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--line-2); }
.tb-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-2); margin-left: 6px;
}
.tb-icon:hover { background: var(--line-2); }

/* 顶栏客服热线 */
.tb-hotline {
  display: flex; align-items: center; gap: 5px;
  margin-left: 12px; font-size: 12.5px; color: var(--text-2);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tb-hotline svg { color: var(--primary); flex: none; }
.tb-user { display: flex; align-items: center; gap: 8px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.tb-user .who { font-size: 12px; line-height: 1.3; }
.tb-user .who small { display: block; color: var(--text-3); font-size: 10px; }

.layout { flex: 1; display: flex; min-height: 0; }

/* ============================== 深色图标竖栏（精斗云风格） ============================== */
:root { --rail-w: 68px; }
.sidebar {
  width: var(--rail-w); flex: none;
  background: linear-gradient(180deg, #1f2a44 0%, #1a2338 100%);
  display: flex; flex-direction: column;
  padding: 8px 0 10px; overflow: visible;
}
.rail-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; height: 62px; flex: none;
  color: rgba(255, 255, 255, .62); font-size: 11px; cursor: pointer;
  transition: color .14s, background .14s;
  user-select: none;
}
.rail-item svg { width: 19px; height: 19px; opacity: .9; }
.rail-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rail-item.on { color: #fff; }
.rail-item.on::before {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px;
  width: 3px; border-radius: 0 3px 3px 0; background: #4f8bff;
}
.rail-item.on svg { color: #5d9bff; opacity: 1; }
.rail-badge {
  position: absolute; top: 7px; right: 12px;
  min-width: 15px; height: 15px; padding: 0 4px;
  background: #f55; color: #fff; font-size: 9px; font-weight: 600;
  border-radius: 8px; display: grid; place-items: center; line-height: 1;
}
.rail-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 6px; }

/* 悬停二级菜单（分组浮层，对齐精斗云） */
.flyout {
  display: none;
  position: absolute; left: calc(100% + 2px); top: 0;
  min-width: 148px; padding: 6px;
  background: #fff; border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}
.flyout::before { content: ""; position: absolute; left: -6px; top: 0; bottom: 0; width: 8px; }
.rail-item:hover .flyout { display: block; }
.flyout.cols { padding: 16px 20px 14px; color: var(--text); }
.rail-item:hover .flyout.cols { display: flex; gap: 30px; }
.fly-col { min-width: 116px; }
.fly-head {
  font-size: 12.5px; font-weight: 600; color: var(--text) !important;
  padding: 2px 2px 9px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.fly-item {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 10px; height: 34px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 12.5px; cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s;
}
.fly-txt { overflow: hidden; text-overflow: ellipsis; }
.fly-ic {
  width: 18px; height: 18px; border-radius: 5px; flex: none; margin-right: 7px;
  display: grid; place-items: center; font-size: 10.5px; font-style: normal; color: #fff;
  text-shadow: 0 1px 1px rgba(15, 23, 42, .18); opacity: .95;
}
.fly-item:hover .fly-ic, .fly-item.on .fly-ic { opacity: 1; }
.fly-item:hover { background: var(--primary-50); color: var(--primary-700); }
.fly-item.on { background: var(--primary-50); color: var(--primary-700); font-weight: 500; }
.fly-tag {
  margin-left: 8px; flex: none;
  font-size: 10px; line-height: 1; padding: 2px 4px;
  border-radius: 3px; color: #fff;
}
.fly-tag.new { background: var(--danger); }
.fly-tag.rec { background: #ff8c1a; }
.fly-badge {
  margin-left: 10px; font-size: 10px; padding: 1px 5px;
  background: var(--danger); color: #fff; border-radius: 8px;
}

/* ============================== 多标签工作区 ============================== */
.tabbar { position: relative; flex: none; display: flex; min-width: 0; }
.tabstrip {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; gap: 2px;
  height: 38px; padding: 4px 26px 0;
  background: #fff; border-bottom: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden;
}
.tabstrip::-webkit-scrollbar { height: 0; }

/* 左右滚动箭头：仅在标签超出可视宽度时出现 */
.tabnav {
  position: absolute; top: 4px; bottom: 1px; width: 26px; z-index: 3;
  display: none; align-items: center; justify-content: center;
  padding: 0; border: none; background: #fff; color: var(--text-3);
  cursor: pointer; transition: color .12s, background .12s;
}
.tabnav.prev { left: 0; box-shadow: 6px 0 8px -6px rgba(15, 23, 42, .3); }
.tabnav.next { right: 0; box-shadow: -6px 0 8px -6px rgba(15, 23, 42, .3); }
.tabbar.can-left > .tabnav.prev { display: flex; }
.tabbar.can-right > .tabnav.next { display: flex; }
.tabnav:hover { color: var(--primary-700); background: var(--line-2); }
.tabnav:active { color: var(--primary); }
.tabnav svg { display: block; }
.wtab {
  display: flex; align-items: center; gap: 6px;
  height: 33px; padding: 0 12px; flex: none;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 7px 7px 0 0;
  color: var(--text-2); font-size: 12.5px; cursor: pointer;
  transition: background .12s, color .12s;
  position: relative; top: 1px;
}
.wtab:hover { color: var(--text); background: var(--line-2); }
.wtab { max-width: 190px; }
.wt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wtab.on {
  background: var(--bg); color: var(--primary-700); font-weight: 500;
  border-color: var(--line); border-bottom: 1px solid var(--bg);
}
.wt-x {
  width: 16px; height: 16px; border-radius: 4px;
  display: grid; place-items: center;
  font-size: 13px; color: var(--text-3); line-height: 1;
}
.wt-x:hover { background: #e0e4ec; color: var(--danger); }

/* ============================== 主区域 ============================== */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.view-scroll > #view { display: flex; flex-direction: column; min-height: 100%; }
.view-scroll > #view > .page { flex: 0 0 auto; width: 100%; }
.view-scroll > #view > .page-fill { flex: 1 1 0; min-height: 0; height: auto; }
.view-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.view-scroll::-webkit-scrollbar-thumb { background: #d6dbe4; border-radius: 4px; }
/* 全站页面横向占满可用宽度（原 1560px 上限已取消，大屏不再右侧留白） */
.page { padding: 18px 22px 40px; max-width: none; }
/* 兼容：视图声明 wide:true 时仍打上该类（现已无宽度上限，保留不产生副作用） */
.page-wide { max-width: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 19px; font-weight: 600; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.page-title .sub { font-size: 11px; color: var(--text-3); font-weight: 400; padding: 2px 7px; background: var(--line-2); border-radius: 10px; }
.page-desc { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* 页头标题/说明隐藏后，按钮单独下移成一行 */
.page-actions.solo { justify-content: flex-end; margin-bottom: 10px; }

/* 按钮 */
.btn {
  height: 32px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid #dfe3eb; background: #fff; color: var(--text);
  font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
  transition: all .13s; white-space: nowrap;
}
.btn:hover { border-color: #c3cad6; background: #fafbfc; }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,.22); }
.btn.primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn.ghost { border-color: transparent; background: var(--line-2); }
.btn.ghost:hover { background: #e9edf3; }
.btn.danger { color: var(--danger); border-color: #f6c9c9; background: #fff; }
.btn.danger:hover { background: var(--danger-50); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn.link { border: none; background: none; color: var(--primary); padding: 0 4px; height: auto; }
.btn.link:hover { text-decoration: underline; background: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  margin-bottom: 14px; overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line-2); gap: 12px; flex-wrap: wrap;
}
.card-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title .bar { width: 3px; height: 14px; border-radius: 2px; background: var(--primary); }
.card-title .hint { font-size: 11px; color: var(--text-3); font-weight: 400; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kpi::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 76px; height: 76px; border-radius: 50%; background: var(--primary-50) ; opacity: .8;
}
.kpi .k-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.kpi .k-value { font-size: 24px; font-weight: 600; margin: 8px 0 4px; letter-spacing: -.3px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.kpi .k-value .unit { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.kpi .k-foot { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 5px; position: relative; z-index: 1; }
.kpi .up { color: var(--danger); }
.kpi .down { color: var(--success); }
.kpi.accent { background: linear-gradient(135deg, #1e3a8a, #2563eb); border-color: transparent; color: #fff; }
.kpi.accent .k-label, .kpi.accent .k-foot { color: rgba(255,255,255,.72); }
.kpi.accent::after { background: rgba(255,255,255,.09); }
.kpi.accent .up, .kpi.accent .down { color: #fff; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.grid { font-size: 12.5px; }
table.grid th {
  background: #fafbfd; color: var(--text-2); font-weight: 500;
  text-align: left; padding: 9px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 2;
}
table.grid td {
  padding: 9px 12px; border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
table.grid tbody tr:hover { background: #f8fafd; }
table.grid tbody tr.sel { background: var(--primary-50); }
table.grid td.r, table.grid th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.grid td.c, table.grid th.c { text-align: center; }
table.grid tfoot td {
  background: #fafbfd; font-weight: 600; border-top: 1px solid var(--line);
  border-bottom: none;
}
table.grid .muted { color: var(--text-3); }
table.grid .strong { font-weight: 600; }
table.grid tr.row-total td { background: #f7f9fc; font-weight: 600; }
table.grid tr.row-bold td { font-weight: 600; }
table.grid tr.row-indent td:first-child { padding-left: 28px; color: var(--text-2); }
table.grid tr.row-indent2 td:first-child { padding-left: 46px; color: var(--text-3); font-size: 12.5px; }
/* 现金流量表：所有行次项目名称统一缩进一个字 */
table.grid tr.cf-ind td:first-child { padding-left: calc(12px + 1em); }
/* 小节标题（一、经营活动产生的现金流量：等）不缩进 */
table.grid tr.cf-sec td:first-child { padding-left: 12px; color: var(--text-2); }
table.grid tr.tax-group td { background: #fafbfd; font-weight: 600; }
table.grid tr.tax-group td .acct { font-weight: 400; }
table.grid tr.row-sub td:first-child { padding-left: 44px; color: var(--text-2); font-size: 12px; }
table.grid.dense td { padding: 6px 10px; }
table.grid .acct { font-family: "SF Mono", Consolas, monospace; font-size: 11.5px; color: var(--text-3); margin-right: 6px; }
.link-cell { color: var(--primary); cursor: pointer; }
.link-cell:hover { text-decoration: underline; }

/* 报表项编辑公式 */
.fx-edit {
  display: inline-block; margin-left: 6px; font-style: italic; font-family: Georgia, serif;
  font-size: 11px; line-height: 1; color: var(--primary); opacity: .55; cursor: pointer;
}
.fx-edit:hover { opacity: 1; text-decoration: underline; }
.fx-show {
  font-family: Consolas, "SF Mono", monospace; font-size: 10.5px; font-weight: 400;
  color: var(--text-3); margin-top: 2px; line-height: 1.5;
}
tr.row-total .fx-show, tr.row-bold .fx-show { font-weight: 400; }

/* 公式编辑弹窗：取数项列表 */
.fx-tip { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.fx-list { max-height: 322px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fcfdff; padding: 8px; }
.fx-row { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; }
.fx-row:hover { background: var(--primary-50); }
.fx-row + .fx-row { border-top: 1px dashed var(--line-2); }
.fx-row .fx-sign { width: 62px; flex: none; text-align: center; }
.fx-row .fx-fn { width: 128px; flex: none; }
.fx-row .fx-fixed { font-size: 12.5px; color: var(--text-2); flex: 1; }
.fx-row .fx-del { width: 26px; padding: 0; height: 26px; line-height: 1; flex: none; color: var(--text-3); }
.fx-row .fx-del:hover { color: var(--danger); border-color: var(--danger); }
.fx-none { padding: 18px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.fx-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.fx-tools .btn.sm { height: 28px; font-size: 12px; padding: 0 10px; }
.fx-adv { margin-left: auto; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 5px; cursor: pointer; }
#fxInput {
  width: 100%; height: 76px; font-family: Consolas, "SF Mono", monospace; font-size: 12.5px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; color: var(--text);
}
.fx-out { margin-top: 10px; font-size: 12px; color: var(--text-2); word-break: break-all; }
.fx-out code { font-family: Consolas, "SF Mono", monospace; color: var(--text); background: #f4f6fa; padding: 2px 6px; border-radius: 4px; }
.fx-pv { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.fx-def { margin-top: 10px; font-size: 11.5px; color: var(--text-3); word-break: break-all; }
.fx-def code { font-family: Consolas, "SF Mono", monospace; }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 7px; border-radius: 4px;
  background: var(--line-2); color: var(--text-2); white-space: nowrap;
}
.badge.green { background: var(--success-50); color: var(--success); }
.badge.blue { background: var(--primary-50); color: var(--primary-700); }
.badge.orange { background: var(--warning-50); color: var(--warning); }
.badge.red { background: var(--danger-50); color: var(--danger); }
.badge.gray { background: #f3f4f6; color: #6b7280; }
.badge.dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* 筛选栏 */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters .input, .filters .select { height: 32px; width: auto; min-width: 120px; }
.filters .sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; }

/* 选项卡 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 16px; background: #fff; }
.tabs button {
  padding: 10px 14px 9px; font-size: 13px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--primary); border-color: var(--primary); font-weight: 500; }

/* 图表 */
.chart-box { width: 100%; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-2); }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* 表单网格 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17, 24, 39, .45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px 40px; z-index: 100; overflow-y: auto;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: var(--r-lg); width: 640px; max-width: 100%;
  box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2,.8,.3,1);
  overflow: hidden;
}
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 15px; font-weight: 600; }
.modal-head .x { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--text-3); font-size: 16px; }
.modal-head .x:hover { background: var(--line-2); color: var(--text); }
.modal-body { padding: 20px; max-height: 68vh; overflow-y: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; background: #fcfcfd; }

/* 提示 */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1f2937; color: #fff; font-size: 12.5px;
  padding: 9px 18px; border-radius: 20px; box-shadow: var(--shadow-md);
  animation: drop .2s ease; display: flex; align-items: center; gap: 7px;
}
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.toast.ok { background: #15803d; }
.toast.err { background: #b91c1c; }
.toast.warn { background: #b45309; }

/* 空状态 */
.empty { padding: 48px 20px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.empty .ico { font-size: 30px; opacity: .28; margin-bottom: 10px; }

/* 提示条 */
.notice {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 14px; border-radius: var(--r-sm); font-size: 12px; line-height: 1.7;
  background: var(--primary-50); color: var(--primary-700); border: 1px solid #d8e5fd;
  margin-bottom: 14px;
}
.notice.warn { background: var(--warning-50); color: #92400e; border-color: #fde8c8; }
.notice.ok { background: var(--success-50); color: #166534; border-color: #cbead4; }
.notice .ni { flex: none; font-weight: 700; }

/* 描述列表 */
.desc-list { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; font-size: 12.5px; }
.desc-list dt { color: var(--text-3); }
.desc-list dd { color: var(--text); }

/* 凭证分录编辑 */
.voucher-table { width: 100%; font-size: 12.5px; }
.voucher-table th {
  background: #fafbfd; font-weight: 500; color: var(--text-2);
  padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px;
}
.voucher-table td { padding: 3px 4px; border-bottom: 1px solid var(--line-2); }
.voucher-table input, .voucher-table select {
  width: 100%; height: 30px; border: 1px solid transparent; border-radius: 4px;
  padding: 0 7px; background: transparent; outline: none; font-size: 12.5px;
}
.voucher-table input:hover, .voucher-table select:hover { border-color: #e3e7ee; background: #fff; }
.voucher-table input:focus, .voucher-table select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 2px rgba(37,99,235,.1); }
.voucher-table input.money { text-align: right; font-variant-numeric: tabular-nums; }
.voucher-table tr.total td { background: #f7f9fc; font-weight: 600; padding: 9px 8px; border-top: 1px solid var(--line); }
.voucher-table .del { color: var(--text-3); width: 26px; height: 26px; border-radius: 4px; }
.voucher-table .del:hover { background: var(--danger-50); color: var(--danger); }

/* 服务页：咨询热线 */
.svc-tel {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--primary); font-weight: 600; font-size: 12.5px;
  text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.svc-tel:hover { text-decoration: underline; }
.svc-tel svg { flex: none; }

/* 打印 */
@media print {
  .topbar, .sidebar, .page-actions, .filters, .tabs, .tabstrip, .wt-x, .tabnav { display: none !important; }
  .main { overflow: visible; }
  .page { padding: 0; }
  .card { box-shadow: none; border: none; }
}

/* 响应式 */
@media (max-width: 1180px) {
  .login-brand { display: none; }
  .login-panel { width: 100%; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .tb-brand { width: auto; padding: 0 10px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
}

/* ============================== 标准凭证录入（对齐精斗云） ============================== */
.vch-wrap { max-width: 1160px; margin: 0 auto; }
.vch-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.vch-tsep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.vch-paper {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 26px 14px; box-shadow: var(--shadow-sm); position: relative;
}
.vch-paper.eye { background: #e9f4e9; }
.vch-title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 8px; color: var(--text); }
.vch-sub { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.vch-meta { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.vm-label { color: var(--text-3); }
.vch-noInput { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.vch-noInput button { border: none; background: #f7f8fa; width: 24px; height: 28px; cursor: pointer; color: var(--text-2); font-size: 13px; }
.vch-noInput button:hover { color: var(--primary); }
.vch-noInput input { width: 46px; height: 28px; border: none; text-align: center; font-size: 12.5px; outline: none; }

.vch-grid { border: 1.5px solid #374151; border-radius: 2px; overflow: visible; }
.vch-row {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1.02fr) minmax(220px, 1.2fr) minmax(250px, 1.35fr) minmax(250px, 1.35fr);
  border-bottom: 1px solid var(--line); position: relative; background: #fff;
}
.vch-paper.eye .vch-row { background: transparent; }
.vch-row:last-child { border-bottom: none; }
.vch-head { background: #f7f8fa; font-size: 12.5px; font-weight: 600; color: var(--text); }
.vch-paper.eye .vch-head { background: rgba(255, 255, 255, .55); }
.vch-no {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  border-right: 1px solid var(--line); font-size: 12px; color: var(--text-3);
}
.vch-no-n { display: inline-flex; }
.vch-ops { display: none; gap: 3px; }
.vch-row:hover .vch-ops { display: inline-flex; }
.vch-row:hover .vch-no-n { display: none; }
.vop {
  width: 19px; height: 19px; border-radius: 4px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: 12px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.vop:hover { color: var(--primary); border-color: var(--primary); }
.vch-cell {
  padding: 0 10px; display: flex; align-items: center; border-right: 1px solid var(--line);
  min-height: 42px; font-size: 12.5px; position: relative;
}
.vch-head .vch-cell { justify-content: center; min-height: 36px; }
.vch-amt { display: grid; grid-template-columns: repeat(12, 1fr); align-items: stretch; position: relative; }
.vch-amt-head { display: block; padding: 0; }
.vah-t { text-align: center; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--line); padding: 3px 0 2px; }
.vah-d { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 10px; color: var(--text-3); text-align: center; font-weight: 400; }
.vch-dr { border-right: 1px solid var(--line); }
.vch-dr > span {
  border-right: 1px solid rgba(37, 99, 235, .30);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--text); min-height: 42px;
}
.vch-cr > span {
  border-right: 1px solid rgba(220, 38, 38, .32);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--text); min-height: 42px;
}
.vch-dr > span:last-child, .vch-cr > span:last-child { border-right: none; }
.vch-total { background: #fafbfd; font-size: 12.5px; }
.vch-paper.eye .vch-total { background: rgba(255, 255, 255, .45); }
.vch-total .vch-amt > span { min-height: 38px; font-weight: 600; }
.vch-bal { display: flex; justify-content: flex-end; padding: 8px 2px 0; }
.vch-foot { display: flex; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.vch-maker { color: var(--text-3); }

/* 单元格编辑态 */
.vin { width: 100%; height: 100%; border: none; outline: none; background: transparent; font-size: 12.5px; color: var(--text); }
.vacc { font-size: 12.5px; color: var(--text); cursor: text; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vph { color: #c3c9d4; font-size: 12px; cursor: text; }
.vch-amt.editing .vamtin, .vamtin {
  position: absolute; inset: 0; border: none; outline: none; text-align: right;
  padding: 0 8px; font-size: 13px; background: #fff; z-index: 5; font-family: inherit;
}
.vch-paper.eye .vamtin { background: transparent; }

/* 单元格下拉 */
.vdrop {
  position: absolute; top: 100%; left: -1px; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow-lg); z-index: 90; overflow: hidden; color: var(--text);
}
.vdrop-list { max-height: 250px; overflow: auto; }
.vdrop-item {
  padding: 8px 12px; font-size: 12.5px; color: var(--text-2); cursor: pointer;
  display: flex; gap: 8px; align-items: center;
}
.vdrop-item:hover, .vdrop-item.act { background: var(--primary-50); color: var(--primary-700); }
.vdrop-item .code { color: var(--text-3); font-size: 11.5px; min-width: 44px; flex: none; }
.vdrop-foot { border-top: 1px solid var(--line); padding: 8px 12px; font-size: 12px; color: var(--primary); cursor: pointer; text-align: center; }
.vdrop-foot:hover { background: var(--primary-50); }
.vdrop-title { padding: 7px 12px 6px; font-size: 11px; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.vparen { margin-left: 6px; font-size: 10.5px; color: var(--text-3); }

/* ============================== 分页条 ============================== */
.pager {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  border-top: 1px solid var(--line-2); font-size: 12px; color: var(--text-3);
}
.pg-info { margin-right: auto; }
.pg-btn {
  min-width: 27px; height: 27px; padding: 0 7px; border-radius: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 12px; cursor: pointer; transition: all .12s; line-height: 1;
}
.pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pg-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-btn:disabled { opacity: .35; cursor: default; }
.pg-gap { color: var(--text-3); padding: 0 2px; }

/* ============================== 账簿四表（对齐精斗云） ============================== */
.bk-tabs { display: flex; gap: 2px; align-items: center; padding: 0 2px; }
.bk-tab {
  padding: 7px 16px; font-size: 12.5px; color: var(--text-2);
  cursor: pointer; border-radius: 8px 8px 0 0; user-select: none; transition: all .12s;
}
.bk-tab:hover { color: var(--primary); }
.bk-tab.on { background: #e8f1ff; color: var(--primary-700); font-weight: 600; }
.bk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 2px; flex-wrap: wrap; }
.bk-range { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.bk-month { width: 118px; }
.bk-subject { font-size: 12.5px; color: var(--text-2); padding: 2px 2px 10px; display: flex; align-items: center; gap: 8px; }
.bk-grid td { border-right: 1px solid var(--line-2); }
.bk-grid td:last-child, .bk-grid th:last-child { border-right: none; }
.bk-grid tbody tr:hover td { background: #fdf6d8 !important; }
.bk-grid tbody tr.bk-sum td { background: #fafbfd; color: var(--text-2); }
.bk-grid tr.bk-total td { background: #fdf3d8 !important; font-weight: 600; }
.bk-code { color: var(--primary); font-variant-numeric: tabular-nums; }
.bk-arrow { display: inline-block; width: 16px; color: var(--text-3); cursor: pointer; font-size: 10px; }
.bk-colcode { font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.bk-count { padding: 10px 2px; font-size: 12px; color: var(--text-3); }
.num.neg { color: var(--danger); }
.bk-grid td[rowspan] { vertical-align: top; }
.bk-grid td.nw, .bk-grid .bk-sum td.nw { white-space: nowrap; }

/* ============================== 账簿过滤面板 + 科目树 ============================== */
.bk-bar { position: relative; }
.bk-filter { color: var(--primary); border-color: var(--primary-50); background: var(--primary-50); }
.bk-filter .fk { margin-right: 2px; }
.flt-panel {
  position: absolute; top: calc(100% - 4px); left: 2px; z-index: 80;
  width: 360px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 16px 18px 12px; max-height: calc(100vh - 268px);
  overflow-y: auto; overflow-x: hidden;
}
/* 条件较多的面板（查凭证 / 凭证汇总）加宽，避免出现横向滚动条 */
.flt-panel.wide { width: 468px; }
.flt-row { display: flex; align-items: center; margin-bottom: 10px; flex-wrap: nowrap; }
.flt-row > label { width: 64px; flex: none; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.flt-ctrl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.flt-ctrl > * { min-width: 0; max-width: 100%; }
.flt-ctrl > .flt-sep { flex: none; font-size: 12.5px; color: var(--text-3); }
.flt-ck { display: block; font-size: 12.5px; color: var(--text-2); padding: 4px 0 4px 64px; cursor: pointer; }
.flt-ck input { margin-right: 6px; vertical-align: -2px; }
.flt-foot { display: flex; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.flt-more { font-size: 12px; color: var(--primary); cursor: pointer; user-select: none; }
.flt-btns { margin-left: auto; display: flex; gap: 8px; }

/* 科目树 */
.bk-tree .at-node {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 8px; border-radius: 6px; cursor: pointer;
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
}
.bk-tree .at-node:hover { background: var(--primary-50); color: var(--primary-700); }
.bk-tree .at-node.on { background: var(--primary-50); color: var(--primary-700); font-weight: 500; }
.bk-tree .at-kid { padding-left: 26px; font-size: 12px; }
.bk-tree .at-arrow { width: 14px; flex: none; font-size: 10px; color: var(--text-3); text-align: center; }
.bk-tree .at-code { color: var(--primary); font-variant-numeric: tabular-nums; margin-right: 2px; }
.bk-tree .at-node.on .at-code { color: var(--primary-700); }

/* 明细账多科目块头 */
.blk-head { padding: 12px 2px 8px; font-size: 13px; color: var(--text); }
.blk-head b { font-weight: 600; }
input[type="number"].input { padding: 5px 8px; }
.bk-wrap { position: relative; }

/* ============================== 账簿整页布局（顶部固定 · 表格区内滚） ============================== */
/* .page-fill：整页高度固定，不再让长表格把页签/工具条/右侧科目树顶出视口 */
.page-fill {
  flex: 1 1 auto; height: auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding-bottom: 10px;
}
.page-fill > .page-head { flex: none; margin-bottom: 8px; }
.bk-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.bk-page > .bk-tabs,
.bk-page > .bk-wrap,
.bk-page > .bk-count,
.bk-page > .bk-subject { flex: none; }
.bk-page > .bk-count { padding: 6px 2px 2px; }
.bk-page > .card { flex: none; margin-bottom: 10px; }

.bk-body { flex: 1; min-height: 0; display: flex; gap: 12px; overflow: hidden; }
/* 表格区：唯一滚动容器，横纵向都在这里消化 */
/* .bk-main = 不滚动的圆角外框：自身是白底+边框的卡片，内容包进 .bk-scroll 滚动。
   圆角+边框固定在外框上，内容怎么滚四角都保持圆角且清晰可见 */
.bk-main {
  flex: 1; min-width: 0; min-height: 0; position: relative;
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.bk-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
/* 内部卡片扁平化：边框/圆角/阴影全部交给外框，避免嵌套线框 */
.bk-scroll > .card {
  border: none; border-radius: 0; box-shadow: none;
  overflow: visible; margin-bottom: 14px; background: transparent;
}
.bk-scroll > .card:last-child { margin-bottom: 0; }
.bk-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.bk-scroll::-webkit-scrollbar-thumb { background: #d6dbe4; border-radius: 4px; }

/* 表头吸顶：collapsed 表格滚动时用内阴影补回底边框 */
/* separate + spacing:0 规避 Chrome 下 collapse 表格 sticky 表头背景被数据行穿透的问题 */
.bk-main table.grid { border-collapse: separate; border-spacing: 0; }
/* 表头/合计行整体固定：thead、tfoot 作为整块吸顶/吸底，滚动时不再有错缝、变形 */
.bk-main table.grid thead { position: sticky; top: 0; z-index: 3; }
.bk-main table.grid thead th { position: static; background: #fafbfd; }
.bk-main table.grid tfoot { position: sticky; bottom: 0; z-index: 3; }
.bk-main table.grid tfoot td { position: static; box-shadow: inset 0 1px 0 var(--line); }

/* 右侧科目树：撑满高度，内部自身滚动 */
.bk-body > .bk-tree {
  width: 236px; flex: none; margin-bottom: 0; padding: 10px;
  display: flex; flex-direction: column; min-height: 0;
}
.bk-tree-list { flex: 1; min-height: 0; overflow: auto; }
.bk-tree-list::-webkit-scrollbar { width: 6px; }
.bk-tree-list::-webkit-scrollbar-thumb { background: #d6dbe4; border-radius: 3px; }

/* ============ 通用填充式表格页（查凭证 / 凭证汇总表 / 原始凭证） ============
   与账簿四表同一套：.bk-main 是不滚动的圆角白卡外框，.bk-scroll 内部滚动 */
.bk-page > .bk-body.mt { margin-top: 10px; }
.bk-strip {
  flex: none; display: flex; gap: 26px; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line-2);
  font-size: 12px; color: var(--text-2); flex-wrap: wrap;
}
.bk-strip.around { justify-content: space-between; gap: 12px; }
.bk-foot { flex: none; }
.bk-note {
  flex: none; padding: 10px 16px; font-size: 12px; color: var(--text-3);
  border-top: 1px solid var(--line-2);
}
/* 表格进入圆角外框后横滚交给 .bk-scroll，表头/合计行才能吸顶吸底 */
.bk-scroll .table-wrap { overflow: visible; }
.bk-scroll table.grid tfoot { position: sticky; bottom: 0; z-index: 3; }
.bk-scroll table.grid tfoot td { background: #fdf3d8; font-weight: 600; box-shadow: inset 0 1px 0 var(--line); }

/* 原始凭证：左树 + 右侧表格主区 */
.oc-split { flex: 1; min-height: 0; display: flex; gap: 14px; }
.oc-side { width: 190px; flex: none; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto; }
.oc-side > .card { margin-bottom: 0; flex: none; }
.oc-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.oc-main > .card { flex: none; margin-bottom: 10px; }

@media print {
  .page-fill { height: auto; overflow: visible; display: block; }
  .bk-page { display: block; }
  .bk-body { display: block; overflow: visible; }
  .bk-main { display: block; overflow: visible; border-radius: 0; border: none; background: none; box-shadow: none; }
  .bk-scroll { display: block; overflow: visible; }
  .bk-scroll > .card { overflow: visible; margin-bottom: 14px; }
  .oc-split { display: block; }
  .oc-side { width: auto; overflow: visible; }
  .oc-main { display: block; }
  .bk-scroll .table-wrap { overflow: visible; }
  .bk-body > .ac-side { overflow: visible; min-height: 0; }
}

/* 多选科目下拉（费用明细表等） */
.msel { position: relative; display: inline-block; }
.msel-btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel-pop {
  display: none; position: absolute; z-index: 80; top: calc(100% + 4px); left: 0;
  min-width: 236px; max-height: 300px; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
}
.msel.open .msel-pop { display: block; }
.msel-it { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.msel-it:hover { background: #f4f7fd; }
.msel-it input { width: auto; margin: 0; }
.msel-tools { display: flex; gap: 10px; align-items: center; padding: 4px 8px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; font-size: 12px; }
.msel-tools a { color: var(--primary); cursor: pointer; }
.msel-tools span { color: var(--text-3); margin-left: auto; }
/* 费用明细表：一级科目行底纹 */
table.grid tr.exp-root td { background: #f7f9fc; font-weight: 600; }

/* ============================== 出纳：日记账 / 对账 / 调节表 ============================== */
.pane-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600; background: #fafbfd;
}
.rc-pick tbody tr { cursor: pointer; }
.rc-pick tbody tr.rc-sel > td { background: #e8f1ff !important; }
.rc-pick tbody tr.rc-sel > td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.rc-pick tbody tr.rc-done > td { background: #fbfcfd; color: var(--text-3); }
.rc-pick tbody tr.rc-done > td .num { color: var(--text-3); }
.cj-ck { width: 14px; height: 14px; vertical-align: -2px; cursor: pointer; }
.adj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adj-box { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.adj-title {
  padding: 8px 12px; background: #f7f9fc; border-bottom: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.adj-item {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px;
  font-size: 12px; border-bottom: 1px solid var(--line-2);
}
.adj-item:last-child { border-bottom: none; }
.adj-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 账套管理 ===== */
.bk-wrap { overflow-x: auto; }
.bk-table { width: 100%; }
.bk-table th { white-space: nowrap; }
.bk-table td { vertical-align: middle; }
.bk-table tr.bk-cur td { background: #f2f8ff; }
.bk-table td.bk-ops a { margin-right: 12px; font-size: 12px; cursor: pointer; color: var(--primary); }
.bk-table td.bk-ops a:hover { text-decoration: underline; }
.bk-table td.bk-ops a.danger { color: var(--danger); }
.bk-tip {
  font-size: 12.5px; color: var(--text-2); line-height: 1.7;
  background: #f6f8fc; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 9px 12px; margin-bottom: 12px;
}

/* 表单：两列网格（企业资料编辑） */
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.bf-grid > div { display: flex; flex-direction: column; min-width: 0; }
.bf-grid .wide { grid-column: 1 / -1; }
.bf-grid label { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.bf-grid .input { width: 100%; }
.bf-tip { margin-top: 13px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.req { color: var(--danger); margin-left: 2px; }

/* 表单：子账号新增 / 编辑 */
.su-form .fl-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.su-form .input, .su-form .select { width: 100%; }
.su-form > div > div { min-width: 0; }

/* 表单：竖排（新建 / 编辑账套） */
.bk-form .bf-row { margin-bottom: 14px; }
.bk-form .bf-row > label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.bk-form .bf-row .input { width: 100%; }
.bk-form .bf-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-form .bf-row.two > div { display: flex; flex-direction: column; }
.bk-form .bf-row.two label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.bk-form .bf-tip { margin-top: 4px; }

/* 会计准则选择卡 */
.std-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.std-card {
  position: relative; display: block; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 12px 14px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.std-card input { position: absolute; opacity: 0; pointer-events: none; }
.std-card b { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.std-card .std-code { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 7px; }
.std-card .std-desc { display: block; font-size: 11.5px; color: var(--text-2); line-height: 1.65; }
.std-card.on { border-color: var(--primary); background: #f2f7ff; box-shadow: 0 0 0 2px rgba(37, 99, 235, .10); }
.std-card.off { cursor: default; }
.std-card.off:not(.on) { opacity: .55; }
