/* ==========================================================================
   集团财务中台 — 设计系统
   基调：专业、克制、高信息密度。数字优先，色彩只用于表达状态。
   ========================================================================== */

:root {
  --bg:           #F3F5F9;
  --surface:      #FFFFFF;
  --surface-2:    #F8FAFD;
  --surface-3:    #EFF3F9;
  --line:         #E3E8F1;
  --line-2:       #EEF1F7;

  --text:         #16213E;
  --text-2:       #58647E;
  --text-3:       #8D97AC;

  --brand:        #1F5FA8;
  --brand-2:      #2F7BD1;
  --brand-soft:   #EBF2FB;

  --pos:          #0E7C5A;
  --neg:          #C0392B;
  --up:           #D64545;   /* 同比上涨 — 国内习惯用红 */
  --down:         #0E9F6E;   /* 同比下跌 */
  --warn:         #B5760A;
  --warn-soft:    #FCF5E6;
  --danger-soft:  #FBEDEB;
  --ok-soft:      #EAF6F1;
  --info-soft:    #EDF3FC;

  --nav-bg:       #0D1526;
  --nav-bg-2:     #131E33;
  --nav-text:     #93A2BC;
  --nav-text-hi:  #FFFFFF;

  --radius:       10px;
  --radius-sm:    7px;
  --shadow-1:     0 1px 2px rgba(22,33,62,.05), 0 1px 3px rgba(22,33,62,.04);
  --shadow-2:     0 4px 16px rgba(22,33,62,.08);
  --shadow-3:     0 12px 40px rgba(22,33,62,.16);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --sidebar-w: 216px;
  --topbar-h: 58px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--brand); text-decoration: none; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C9D2E2; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #AEB9CC; }

/* ────────────────────────── 登录页 ────────────────────────── */

#login {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 15% 10%, #16233F 0%, transparent 60%),
    radial-gradient(900px 500px at 85% 90%, #102A47 0%, transparent 55%),
    #0A1120;
  padding: 24px;
}
#login .login-wrap { display: flex; width: min(940px, 100%); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
#login .login-brand {
  flex: 1 1 46%; padding: 46px 40px; color: #fff;
  background: linear-gradient(155deg, #1B3E6F 0%, #122C50 55%, #0D1E38 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
#login .login-brand::after {
  content: ""; position: absolute; right: -70px; bottom: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,226,.22), transparent 68%);
}
#login .login-brand .mark { font-size: 22px; font-weight: 600; letter-spacing: .04em; }
#login .login-brand .mark span { color: #6FA8E8; }
#login .login-brand ul { list-style: none; padding: 0; margin: 28px 0 0; }
#login .login-brand li {
  font-size: 12.5px; color: #9FB4D4; padding: 7px 0 7px 20px; position: relative;
}
#login .login-brand li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px;
  border-radius: 50%; background: #4A90E2;
}
#login .login-brand .foot { font-size: 11.5px; color: #607B9E; letter-spacing: .02em; }

#login .login-form { flex: 1 1 54%; background: #fff; padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
#login .login-form h1 { font-size: 20px; margin-bottom: 6px; }
#login .login-form .sub { color: var(--text-3); font-size: 12.5px; margin-bottom: 26px; }
#login .field { margin-bottom: 15px; }
#login .field label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
#login .field input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
#login .field input:focus { outline: none; border-color: var(--brand-2); background: #fff; box-shadow: 0 0 0 3px rgba(47,123,209,.12); }
#login .err { color: var(--neg); font-size: 12px; min-height: 18px; margin-bottom: 6px; }

/* ────────────────────────── 布局 ────────────────────────── */

#app { display: none; height: 100%; }
#app.on { display: flex; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--nav-bg); color: var(--nav-text);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0;
}
.sidebar .brand {
  height: var(--topbar-h); display: flex; align-items: center; gap: 9px;
  padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.06);
  flex: 0 0 var(--topbar-h);
}
.sidebar .brand .dot {
  width: 22px; height: 22px; border-radius: 6px; flex: 0 0 22px;
  background: linear-gradient(140deg, #4A90E2, #1F5FA8);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.sidebar .brand .txt { font-size: 13.5px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.sidebar .brand .txt small { display: block; font-size: 9.5px; font-weight: 400; color: #5F7391; letter-spacing: .12em; margin-top: -2px; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav .group-label {
  font-size: 10px; letter-spacing: .14em; color: #4C5C77; padding: 14px 10px 6px; font-weight: 600;
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--nav-text); font-size: 13px; margin-bottom: 2px;
  transition: background .13s, color .13s;
}
.nav a:hover { background: var(--nav-bg-2); color: #D3DEEC; }
.nav a.active { background: #1B2C49; color: #fff; font-weight: 500; }
.nav a.active .ic { background: #2F7BD1; color: #fff; }
.nav a .ic {
  width: 22px; height: 22px; border-radius: 5px; flex: 0 0 22px;
  display: grid; place-items: center; font-size: 11px;
  background: rgba(255,255,255,.05); color: #7E90AC;
  transition: background .13s, color .13s;
}
.sidebar .side-foot {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 11px; color: #4E5F7A;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 15px; font-weight: 600; }
.topbar .crumb { font-size: 12px; color: var(--text-3); }
.topbar .spacer { flex: 1; }

.content { padding: 20px 22px 60px; max-width: 1560px; width: 100%; }

/* ────────────────────────── 通用控件 ────────────────────────── */

.btn {
  height: 32px; padding: 0 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  transition: all .13s; white-space: nowrap;
}
.btn:hover { border-color: #C9D3E4; background: var(--surface-2); }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #1A5292; border-color: #1A5292; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { color: var(--neg); border-color: #EFD5D1; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.select, .input {
  height: 32px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--text); font-size: 12.5px;
  transition: border-color .13s, box-shadow .13s;
}
.select:focus, .input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(47,123,209,.11); }
.select { padding-right: 26px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238D97AC' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }

.field-sm label { font-size: 11.5px; color: var(--text-2); display: block; margin-bottom: 4px; }
.field-sm input, .field-sm select { width: 100%; }

/* ────────────────────────── 卡片 ────────────────────────── */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.card-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.card-hd h3 { font-size: 13.5px; }
.card-hd .sub { font-size: 11.5px; color: var(--text-3); }
.card-hd .spacer { flex: 1; }
.card-bd { padding: 16px; }
.card-bd.flush { padding: 0; }

.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }

@media (max-width: 1280px) {
  .g-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .g-2, .g-3, .g-4, .g-6, .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ────────────────────────── KPI ────────────────────────── */

.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 15px 13px; box-shadow: var(--shadow-1); position: relative; overflow: hidden;
}
.kpi .lbl { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.kpi .val { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 5px; line-height: 1.2; }
.kpi .val small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.kpi .val.neg { color: var(--neg); }
.kpi .val.pos { color: var(--pos); }
.kpi .meta { font-size: 11.5px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi .hint { position: absolute; right: 11px; top: 10px; font-size: 10.5px; color: var(--text-3); opacity: .8; }

.delta { font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--text-3); }

/* ────────────────────────── 表格 ────────────────────────── */

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
table.tbl th {
  text-align: right; font-weight: 500; color: var(--text-3); font-size: 11.5px;
  padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface-2); position: sticky; top: 0; z-index: 2;
}
table.tbl th:first-child, table.tbl td:first-child { text-align: left; padding-left: 16px; }
table.tbl th.l, table.tbl td.l { text-align: left; }
table.tbl th.c, table.tbl td.c { text-align: center; }
table.tbl td {
  padding: 9px 12px; border-bottom: 1px solid var(--line-2);
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
}
table.tbl tbody tr:hover td { background: #FAFCFF; }
table.tbl tbody tr.row-sum td { background: var(--surface-2); font-weight: 600; border-top: 1px solid var(--line); }
table.tbl tbody tr.row-sect td { background: #F5F8FC; font-weight: 600; color: var(--text-2); font-size: 12px; }
table.tbl tbody tr.row-sub td { color: var(--text-2); font-size: 12px; }
table.tbl td.neg { color: var(--neg); }
table.tbl td.pos { color: var(--pos); }
table.tbl td.em { font-weight: 600; }
table.tbl th.sortable { cursor: pointer; user-select: none; }
table.tbl th.sortable:hover { color: var(--text); }

.row-idx { color: var(--text-3); font-size: 11.5px; width: 30px; }

/* ────────────────────────── 标签 ────────────────────────── */

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 20px; padding: 0 7px; border-radius: 4px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag.blue { background: var(--info-soft); color: var(--brand); }
.tag.green { background: var(--ok-soft); color: var(--pos); }
.tag.red { background: var(--danger-soft); color: var(--neg); }
.tag.amber { background: var(--warn-soft); color: var(--warn); }
.tag.gray { background: var(--surface-3); color: var(--text-2); }
.tag.dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* 主体色点 */
.ent-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: 0 0 8px; margin-right: 7px; }

/* ────────────────────────── 提示条 ────────────────────────── */

.alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 13px; border-radius: var(--radius-sm); font-size: 12.5px;
  border: 1px solid transparent;
}
.alert .ai { flex: 0 0 16px; font-size: 13px; line-height: 1.4; }
.alert.warn { background: var(--warn-soft); border-color: #F0E0BC; color: #6E4A05; }
.alert.danger { background: var(--danger-soft); border-color: #F2D8D4; color: #8C2418; }
.alert.info { background: var(--info-soft); border-color: #D6E4F6; color: #1A4C86; }
.alert.ok { background: var(--ok-soft); border-color: #CFE9DF; color: #0A5C43; }
.alert b { font-weight: 600; }

/* ────────────────────────── 进度条 / 迷你条 ────────────────────────── */

.bar-track { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width .4s ease; }

.hbar { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.hbar .hb-nm { width: 96px; flex: 0 0 96px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .hb-tr { flex: 1; height: 18px; background: var(--surface-3); border-radius: 4px; overflow: hidden; position: relative; }
.hbar .hb-fl { height: 100%; border-radius: 4px; }
.hbar .hb-vl { width: 88px; flex: 0 0 88px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }

/* ────────────────────────── 弹窗 ────────────────────────── */

.modal-mask {
  position: fixed; inset: 0; background: rgba(13,21,38,.42);
  backdrop-filter: blur(2px); z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px; overflow-y: auto;
  animation: fadeIn .14s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-3);
  width: min(720px, 100%); animation: slideUp .18s cubic-bezier(.2,.7,.3,1);
}
.modal.wide { width: min(1040px, 100%); }
.modal.narrow { width: min(440px, 100%); }
@keyframes slideUp { from { transform: translateY(10px); opacity: .6 } to { transform: none; opacity: 1 } }
.modal-hd { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-hd h3 { font-size: 15px; }
.modal-hd .sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.modal-bd { padding: 20px; max-height: calc(100vh - 240px); overflow-y: auto; }
.modal-ft { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 12px 12px; }
.x-btn { margin-left: auto; width: 26px; height: 26px; border-radius: 5px; border: none; background: transparent; color: var(--text-3); font-size: 16px; line-height: 1; }
.x-btn:hover { background: var(--surface-3); color: var(--text); }

.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }
.form-grid .hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff;
}
.form-grid textarea { height: auto; padding: 8px 10px; resize: vertical; min-height: 64px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(47,123,209,.11);
}
.form-grid input:disabled { background: var(--surface-3); color: var(--text-3); }

/* ────────────────────────── Toast ────────────────────────── */

#toast-host {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: #16213E; color: #fff; padding: 9px 16px; border-radius: 8px;
  font-size: 12.5px; box-shadow: 0 8px 28px rgba(0,0,0,.24);
  animation: toastIn .2s ease; max-width: 460px;
}
.toast.err { background: #A93226; }
.toast.ok { background: #0E6B4E; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ────────────────────────── 空态 ────────────────────────── */

.empty { text-align: center; padding: 46px 20px; color: var(--text-3); }
.empty .big { font-size: 26px; margin-bottom: 8px; opacity: .35; }
.empty p { font-size: 12.5px; }

/* ────────────────────────── 分部/页签 ────────────────────────── */

.seg { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 2.5px; gap: 2px; }
.seg button {
  height: 27px; padding: 0 12px; border: none; background: transparent; border-radius: 6px;
  font-size: 12px; color: var(--text-2); font-weight: 500; transition: all .13s;
}
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(22,33,62,.1); }

.entity-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.entity-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 7px;
  border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--text-2);
  transition: all .13s;
}
.entity-chip:hover { border-color: #C9D3E4; }
.entity-chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 500; }

/* ────────────────────────── 图表容器 ────────────────────────── */

.chart-box { width: 100%; }
.chart-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--text-2); }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* ────────────────────────── 差异徽标 ────────────────────────── */

.gap-pill {
  display: inline-flex; align-items: center; gap: 3px;
  height: 19px; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.gap-pill.hi { background: var(--danger-soft); color: var(--neg); }
.gap-pill.mid { background: var(--warn-soft); color: var(--warn); }
.gap-pill.lo { background: var(--ok-soft); color: var(--pos); }

/* ────────────────────────── 工具 ────────────────────────── */

.flex { display: flex; }
.items-center { align-items: center; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-14 { gap: 14px; }
.mb-0 { margin-bottom: 0; } .mb-10 { margin-bottom: 10px; } .mb-14 { margin-bottom: 14px; } .mb-20 { margin-bottom: 20px; }
.mt-14 { margin-top: 14px; } .mt-20 { margin-top: 20px; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.small { font-size: 11.5px; }
.strong { font-weight: 600; }
.tc { text-align: center; } .tr { text-align: right; }
.nowrap { white-space: nowrap; }
.pos-t { color: var(--pos); } .neg-t { color: var(--neg); }
.link { color: var(--brand); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ────────────────────────── 打印 ────────────────────────── */

@media print {
  .sidebar, .topbar, .no-print, #toast-host { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .grid { gap: 8px; }
}

/* 报表矩阵：数值列固定宽度，科目列吸收剩余空间，避免两列时数字列被拉得过宽 */
table.tbl.tbl-fit { table-layout: auto; }
table.tbl.tbl-fit th,
table.tbl.tbl-fit td { width: 112px; min-width: 96px; }
table.tbl.tbl-fit th:first-child,
table.tbl.tbl-fit td:first-child { width: auto; min-width: 180px; }

/* 空态三步引导：固定三列，窄屏单列，避免 3 个卡片被挤成 2+1 */
.onboard-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .onboard-steps { grid-template-columns: 1fr; }
}

/* 紧凑型报表：列多时进一步收窄数值列，避免出现横向滚动条 */
table.tbl.tbl-compact th,
table.tbl.tbl-compact td { width: 96px; min-width: 86px; padding-left: 9px; padding-right: 9px; }
table.tbl.tbl-compact th:first-child,
table.tbl.tbl-compact td:first-child { width: auto; min-width: 168px; }
