/* ============================================================
   Order workspace styles. Shared components and scoped screen refinements
   keep the business workspace separate from the inherited print layouts.
   ============================================================ */

/* 页面显隐：线上 .home{display:flex} 会盖掉 hidden 属性，必须强制 */
[hidden] { display: none !important; }

/* 基础重置（登录页只加载本文件，没有线上内联 reset；浏览器默认 body 有 8px 边距会出滚动条） */
* { box-sizing: border-box; }
body { margin: 0; }

/* 设计变量（与线上 index.html 内联 :root 保持一致；登录页单独加载本文件时需要） */
:root {
  --ink: #16222e;
  --ink2: #40505f;
  --muted: #7a8794;
  --line: #d7e0e7;
  --brand: #1d4e63;
  --brand-d: #12303c;
  --gold: #c9a227;
  --danger-bg: #fdeeee;
  --bg: #eef1f4;
  --panel: #ffffff;
  --soft: #f5f8fa;
  --hd: 58px;
  --nav-w: 200px;
}

.lz-pages { max-width: 1320px; margin: 0 auto; padding: 26px 22px 8px; }

.lz-page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.lz-page-head h2 { font-size: 20px; color: var(--brand-d); letter-spacing: 1px; font-weight: 700; }
.lz-page-head p { margin-top: 6px; color: var(--muted); font-size: 12.5px; letter-spacing: .3px; }
.lz-page-actions { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }

.lz-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(20, 40, 60, .06);
}
.lz-panel-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.lz-panel-hd h3 { font-size: 13.5px; font-weight: 700; letter-spacing: .6px; color: var(--brand-d); }
.lz-panel-hd .hint { margin-left: auto; font-size: 11.5px; color: var(--muted); }

.lz-toolbar {
  display: flex; gap: 8px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); background: var(--soft);
}
.lz-toolbar input {
  flex: 1; max-width: 320px; padding: 8px 12px; font: inherit; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.lz-toolbar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 99, .12); }

.lz-table-wrap { overflow-x: auto; }
table.lz-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.lz-table th, table.lz-table td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.lz-table th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .4px; background: #fbfcfd; }
table.lz-table tbody tr:last-child td { border-bottom: 0; }
table.lz-table tbody tr:hover { background: #f7fafc; }
td.lz-empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 13px; }
.lz-table .lz-key { color: var(--muted); width: 180px; font-weight: 600; white-space: nowrap; background: #fbfcfd; }
.lz-note { padding: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }

.lz-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .4px;
  transition: filter .15s ease;
}
.lz-btn:hover { filter: brightness(1.08); }
.lz-btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.lz-btn.ghost:hover { border-color: var(--brand); background: var(--soft); filter: none; }
.lz-btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.lz-btn.danger { background:#a33d32; border-color:#a33d32; color:#fff; }
.lz-btn.ghost.danger { background:#fff; border-color:#d6aaa4; color:#a33d32; }
.lz-btn.ghost.danger:hover { background:#fcf0ee; border-color:#a33d32; }
.lz-btn.row-action { min-height:30px; height:auto; padding:6px; border:0; background:transparent; color:var(--brand); font-size:12px; font-weight:500; }
.lz-btn.row-action.danger { color:#a33d32; background:transparent; }
.lz-btn.row-action:hover { background:transparent; text-decoration:underline; text-underline-offset:4px; filter:none; }

.lz-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; padding: 18px; }
.lz-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: #fbfcfd; }
.lz-kpi .k { font-size: 12px; color: var(--muted); }
.lz-kpi .v { margin-top: 6px; font-size: 24px; font-weight: 700; color: var(--brand-d); }
.lz-kpi .t { margin-top: 4px; font-size: 11px; color: var(--muted); }

.lz-footer {
  max-width: 1320px; margin: 0 auto; padding: 14px 22px 24px;
  display: flex; gap: 12px; align-items: center;
  color: var(--muted); font-size: 11.5px; letter-spacing: .3px;
}
.lz-foot-meta { margin-left: auto; }

/* 通用小弹窗（修改密码等） */
.lz-mask {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(16, 34, 44, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lz-dlg {
  width: min(400px, 94vw); background: #fff; border-radius: 14px; padding: 22px;
  box-shadow: 0 30px 70px -30px rgba(16, 34, 44, .5);
}
.lz-dlg h3 { font-size: 16px; color: var(--brand-d); margin-bottom: 14px; letter-spacing: .5px; }
.lz-dlg .lz-field { margin-top: 12px; }
.lz-dlg label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.lz-dlg input {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.lz-dlg input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 99, .12); }
.lz-dlg .lz-msg { display: none; margin-top: 12px; padding: 9px 11px; border-radius: 8px; font-size: 12.5px; }
.lz-dlg .lz-msg.err { display: block; background: #fdeeee; color: #a33; border: 1px solid #f3caca; }
.lz-dlg .lz-msg.ok { display: block; background: #eaf7ef; color: #1d7a46; border: 1px solid #cbe8d6; }
.lz-dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* 导航子项选中（父项高亮由线上 .on 负责） */
#mainNav .nav-sub.sub-on { background: #eaf2f6; color: #173f50; font-weight: 600; }

/* 登录页（左右分栏：左侧品牌面板 + 右侧登录表单；整屏不滚动） */
.lz-auth { height: 100vh; overflow: hidden; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.lz-auth-wrap {
  display: grid; grid-template-columns: 520px minmax(0, 480px);
  width: min(1000px, 96vw); max-height: calc(100vh - 48px);
  background: #fff;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(16, 34, 44, .45);
}
.lz-auth-side {
  position: relative; padding: 48px 42px;
  display: flex; flex-direction: column;
  color: #e8f1f5;
  background:
    radial-gradient(600px 300px at 110% -10%, rgba(201, 162, 39, .18), transparent 60%),
    radial-gradient(500px 260px at -20% 110%, rgba(82, 155, 190, .25), transparent 60%),
    linear-gradient(155deg, #12303c 0%, #1d4e63 58%, #0e2530 100%);
}
.lz-auth-side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.lz-auth-logo {
  position: relative; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
}
.lz-auth-logo img { width: 40px; height: 40px; display: block; object-fit: contain; }
.lz-auth-side h2 { position: relative; margin-top: 22px; font-size: 24px; letter-spacing: 1px; color: #fff; }
.lz-auth-lead { position: relative; margin-top: 10px; color: #b9d3dd; font-size: 13px; line-height: 1.8; }
.lz-auth-points { position: relative; list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.lz-auth-points li { display: flex; gap: 10px; font-size: 12.5px; color: #d5e5eb; line-height: 1.7; }
.lz-auth-points span { color: var(--gold); font-family: Consolas, monospace; font-size: 12px; }
.lz-auth-foot { position: relative; margin-top: auto; padding-top: 30px; font-size: 11px; color: #8fb0bd; letter-spacing: .4px; }

.lz-auth-main { padding: 36px 34px; display: flex; align-items: center; overflow-y: auto; }
.lz-auth-main form { width: 100%; }
.lz-auth-main h1 { font-size: 24px; color: var(--brand-d); letter-spacing: 1.5px; }
.lz-auth-main .lz-company { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: .5px; }
.lz-auth-main .lz-sub { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.lz-auth-main .lz-field { margin-top: 16px; }
.lz-auth-main label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.lz-auth-main input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
.lz-auth-main input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 99, .12); }

/* 带图标的输入框 */
.lz-auth-main .lz-input { position: relative; }
.lz-auth-main .lz-input .lz-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; pointer-events: none;
  fill: none; stroke: #9aa8b4; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .15s ease;
}
.lz-auth-main .lz-input:focus-within .lz-ico { stroke: var(--brand); }
.lz-auth-main .lz-input input { padding-left: 38px; }

/* 密码标签行 + 忘记密码 */
.lz-auth-main .lz-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.lz-auth-main .lz-forgot {
  border: 0; background: none; padding: 0; margin: 0;
  color: var(--brand); font: inherit; font-size: 12px; cursor: pointer;
}
.lz-auth-main .lz-forgot:hover { text-decoration: underline; }
.lz-auth-main .lz-msg.info { display: block; background: #eef4f8; color: #2a5164; border: 1px solid #d3e0e8; }

/* 验证码 */
.lz-cap { display: flex; gap: 10px; align-items: stretch; }
.lz-cap .lz-input { flex: 1; min-width: 0; }
.lz-cap .lz-input input { width: 100%; letter-spacing: 2px; text-transform: uppercase; }
.lz-cap-img {
  flex: 0 0 auto; width: 132px; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 9px; background: #f2f7f9;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lz-cap-img:hover { border-color: #b7c8d2; }
.lz-cap-img svg { display: block; width: 132px; height: 44px; }
.lz-cap-loading { color: var(--muted); font-size: 12px; }

.lz-auth-main .lz-btn { width: 100%; margin-top: 22px; height: 40px; }
.lz-auth-main .lz-msg { margin-top: 14px; padding: 10px 12px; border-radius: 9px; font-size: 12.5px; display: none; }
.lz-auth-main .lz-msg.err { display: block; background: #fdeeee; color: #a33; border: 1px solid #f3caca; }
.lz-auth-main .lz-help { margin-top: 16px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }

@media (max-width: 860px) {
  .lz-auth { height: auto; min-height: 100vh; overflow: auto; padding: 0; }
  .lz-auth-wrap { grid-template-columns: 1fr; width: 100%; min-height: 100vh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .lz-auth-side { display: none; }
  .lz-auth-main { padding: 32px 24px; }
}

/* ================= 顶栏横幅：左侧圆角品牌区 + 右侧纯白 ================= */
/* 用 body 前缀提高优先级，盖过 index.html 内联的 .app-header 规则 */
body .app-header {
  min-height: 64px; gap: 12px; padding: 0 24px 0 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
/* 品牌区底色：与左侧导航同宽，右下角圆角 */
body .app-header::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 200px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}
body .app-header > *:not(.nav) { position: relative; z-index: 1; }
body .app-header .mark { margin-left: 20px; width: 36px; height: 36px; box-shadow: none; border: 0; }
body .app-header .mark img { width: 34px; height: 34px; }
body .app-header .app-brand { width: 120px; overflow: hidden; flex: 0 0 auto; }
body .app-header .brand-workspace { display: none; }
body .app-header .app-brand h1 { font-size: 18px; letter-spacing: 1px; color: var(--brand-d); }
body .app-header .app-brand .sub { font-size: 11px; line-height: 18px; letter-spacing: .5px; color: #63756f; }
body .app-header .company-name {
  font-size: 16px; font-weight: 600; color: var(--brand-d); letter-spacing: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 38vw; margin: 0 12px 0 28px;
}
body .app-header .conn { color: #526878; }
body .app-header .conn.ok .dot { box-shadow: none; }
/* 右上角用户区改白底深字，去掉深青块 */
body .app-header .user { padding: 0; background: transparent; border: 0; color: var(--brand-d); }
body .app-header .user-chip { min-height: 40px; padding: 4px 10px 4px 6px; background: #fff; border-color: var(--line); color: var(--brand-d); }
body .app-header .user-chip:hover, body .app-header .user-chip[aria-expanded="true"] { background: #f2f7f9; border-color: var(--brand); }
body .app-header .user-chip .av { width: 28px; height: 28px; background: #eef3f1; color: var(--brand); }
body .app-header .user .role-badge { color: #63756f; }
body .app-header .nav { background: var(--panel); }
@media (max-width: 900px) {
  body .app-header { background: #fff; }
  body .app-header::before { display: none; }
  body .app-header .company-name { display: none; }
  body .app-header .app-brand { width: auto; }
  body .app-header .user { color: var(--brand-d); }
  body .app-header .user-chip { color: var(--brand-d); }
}
/* 滚动条改浅色（原本深灰青，出现在右上/右缘像残留色块） */
html { scrollbar-color: #c6d2da transparent; scrollbar-width: thin; }
html::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-thumb { background: #c6d2da; border-radius: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: #c6d2da; }

/* Compact workspace: business shortcuts lead, release notes support. */
@media screen {
  body:not(.lz-auth) {
    --ink: #243b37; --ink2: #526661; --muted: #63756f;
    --line: #dce5e1; --bg: #f4f6f5; --soft: #f8faf9;
    height: auto; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--ink); font-size: 14px;
  }
  body:not(.lz-auth) ::selection { background: #d4e7e1; color: #123f38; }
  body:not(.lz-auth) :is(input,textarea) { caret-color: var(--brand); }
  body .app-header .nav { box-shadow: none; }
  body #mainNav { padding: 16px 12px; gap: 4px; }
  body #mainNav .nav-caption { display: none; }
  body #mainNav > button:not(.nav-sub) { min-height: 40px; margin-top: 0; margin-bottom: 0; padding: 8px 12px; font-size: 14px; color: var(--ink2); }
  body #mainNav > button.on:not(.nav-sub), body #mainNav button[aria-current=page] {
    background: #e8f0ed; color: #1e554b; font-weight: 600;
  }
  body #mainNav .nav-sub[aria-current=page] { background: #e8f0ed; color: #1e554b; }
  body #mainNav button:hover { background: #f0f4f2; color: #1e554b; }
  body #mainNav .nav-sub { font-size: 13px; }
  body #mainNav button:focus-visible, body .app-header :is(.mark,.user-chip):focus-visible {
    outline: 2px solid var(--brand); outline-offset: -2px;
  }
  .lz-pages, body #view-home, .lz-footer { width: 100%; max-width: 1320px; }
  .lz-pages { flex: 1 0 auto; padding: 32px 28px 16px; }
  .lz-page-head { align-items: center; gap: 24px; margin-bottom: 24px; }
  .lz-page-head h2, .lz-home-head h2 { font-size: 26px; line-height: 1.4; letter-spacing: 0; color: var(--ink); }
  .lz-page-head p, .lz-home-head p { margin-top: 8px; font-size: 13px; line-height: 1.7; letter-spacing: 0; color: var(--muted); }
  .lz-page-head > div:first-child { min-width: 0; }
  .lz-panel { box-shadow: none; }
  .lz-panel-hd { min-height: 60px; padding: 16px 20px; }
  .lz-panel-hd h3 { font-size: 15px; letter-spacing: 0; }
  .lz-panel-hd .hint { font-size: 12px; color: #755d25; background: #f7f1e4; padding: 4px 8px; border-radius: 5px; }
  .lz-toolbar { padding: 16px 20px; background: #fff; }
  .lz-toolbar input { max-width: 360px; min-height: 38px; font-size: 14px; }
  .lz-toolbar input:disabled { background: var(--soft); color: var(--muted); opacity: 1; }
  .lz-toolbar input::placeholder { color: var(--muted); opacity: 1; }
  .lz-btn, .lz-btn.sm { height: 38px; padding: 0 16px; font-size: 13px; letter-spacing: 0; }
  .lz-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
  .lz-btn:disabled { cursor: not-allowed; background: #f0f3f1; border-color: var(--line); color: #687b74; filter: none; }
  table.lz-table { font-size: 14px; }
  table.lz-table :is(th,td) { padding: 14px 20px; }
  table.lz-table th { background: var(--soft); color: var(--ink2); font-size: 13px; letter-spacing: 0; }
  .lz-empty-state { display: grid; justify-items: center; align-content: center; gap: 12px; width: 100%; max-width: 400px; min-height: 264px; padding: 32px 20px; margin: 0 auto; text-align: center; }
  .lz-empty-state svg { width: 40px; height: 40px; fill: none; stroke: #66877b; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
  .lz-empty-state strong { color: var(--ink); font-size: 16px; font-weight: 600; }
  .lz-empty-state p { font-size: 13px; color: var(--muted); line-height: 1.8; }
  .lz-note { font-size: 14px; line-height: 1.9; }
  .lz-footer { margin-top: auto; padding: 16px 28px; font-size: 12px; line-height: 1.8; letter-spacing: 0; }
  .lz-home-head { margin-bottom: 20px; }
  body .app-header .conn {
    background: #edf5f1; border-color: #c9dfd3; color: #275b44;
  }
  body .app-header .conn.err {
    background: #fdeeee; border-color: #efc4c4; color: #943d3d;
  }
  body .app-header .conn.ok .dot { background: #287b50; }
  body #view-home {
    height: auto; min-height: 0; padding: 28px 28px 8px;
    display: block; flex: 1 0 auto;
  }
  body #view-home .home-grid {
    /* 右栏 2026-10-31 由 260–300 放宽到 300–400：更新说明补足当日条目后 300px 每行文字过挤，
       也回到 2026-10-15「更新说明宽度加大」的既定口径；窄屏仍由 1100px 断点收成一列。 */
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    grid-template-rows: auto; align-items: start; gap: 24px;
  }
  /* 右栏面板卡：紧凑块显式保证容器观感（边框 / 圆角 / 轻投影），与左侧卡片成一对。 */
  body #view-home .home-side {
    align-self: start; padding: 14px 18px 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 1px 2px rgba(20,40,60,.05);
    position: sticky; top: calc(var(--hd, 57px) + 16px);
  }
  body #view-home .home-sec, body #view-home .home-side h3 {
    font-size: 16px; line-height: 24px; font-weight: 600;
  }
  body #view-home .home-sec-tip, body #view-home .home-side .side-tip {
    margin: 6px 0 8px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 20px;
  }
  body #view-home .cards {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; border: 0; border-radius: 0; background: transparent;
    overflow: visible;
  }
  body #view-home .card {
    min-width: 0; min-height: 156px; padding: 20px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto; column-gap: 12px; row-gap: 8px;
    border: 1px solid var(--line); border-radius: 12px;
  }
  body #view-home .card.home-first { border-top: 1px solid var(--line); }
  body #view-home .card:hover { border-color: #9bb7c5; background: #f8fbfc; }
  body #view-home .card .ico { grid-row: 1; width: 36px; height: 36px; border-radius: 9px; background: #edf3f0; color: #2f6757; }
  body #view-home .card .ico svg { width: 22px; height: 22px; }
  body #view-home .card h3 { align-self: center; font-size: 17px; line-height: 24px; }
  body #view-home .card .desc {
    grid-column: 1 / -1; margin: 4px 0 0; color: var(--ink2);
    font-size: 13px; line-height: 1.8;
  }
  body #view-home .card .stat { grid-column: 1 / -1; }
  body #view-home .card .stat span { color: var(--muted); font-size: 12px; }
  body #view-home .card .go { grid-row: 1; gap: 8px; }
  body #view-home .changelog {
    flex: none; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; scrollbar-gutter: auto;
  }
  /* 更新说明（2026-11-01 使用者：首页更新说明收在一页内、不要浏览器滚动条）：
     只展示最近 5 条（interface.css 负责隐藏第 6 条起），并用紧凑行距把 5 条压进侧栏。 */
  body #view-home .changelog li, body #view-home .changelog li:first-child { padding: 7px 0 8px; }
  body #view-home .changelog p { margin-top: 4px; font-size: 12px; line-height: 1.62; }
  body #view-home .changelog .d { font-size: 11px; color: var(--muted); }
  body #view-home .foot { margin-top: 20px; padding-top: 12px; color: var(--muted); }
  body #view-home .home-help summary { min-height: 36px; color: var(--ink2); font-size: 12px; }
  body #mainNav > button.fin-nav-group {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 36px; width: calc(100% - 30px); margin: 0 0 0 30px;
    padding: 8px 12px; border: 0; background: transparent;
    color: #415a6b; font-size: 12.5px; font-weight: 600; line-height: 20px;
    cursor: pointer; text-align: left;
  }
  body #mainNav > button.fin-nav-group::before { display: none; }
  body #mainNav > button.fin-nav-group::after {
    content: ''; flex: none; width: 6px; height: 6px; min-width: 0;
    border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
  }
  body #mainNav > button.fin-nav-group[aria-expanded=true]::after { transform: rotate(45deg); }
  body #mainNav > button.fin-nav-group:hover { background: #f0f5f7; }
  body #mainNav .fin-nav-group:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
  body #mainNav .nav-sub[data-fin-nav]:not([data-fin-nav=sum]) {
    margin-left: 42px; width: calc(100% - 42px);
  }
}
/* 矮屏（≤840px 高）先收起首页底部「单号规则」折叠说明：
   更新说明 5 条 + 卡片区已经占满一屏，这一块再留着就会把整页撑出浏览器滚动条。 */
@media screen and (max-height: 840px) {
  body #view-home .home-help { display: none; }
}
@media screen and (max-width: 1100px) {
  body #view-home .home-grid { grid-template-columns: minmax(0, 1fr); }
  body #view-home .changelog { max-width: none; }
}
@media screen and (max-width: 760px) {
  body .app-header { min-height: 64px; padding-right: 16px; }
  body .app-header .mark { margin-left: 16px; }
  body .app-header .app-brand { flex: 1; min-width: 0; }
  body .app-header .mobile-nav-toggle { color: var(--brand); border-color: var(--line); }
  body .app-header .mobile-nav-toggle:hover, body .app-header .mobile-nav-toggle[aria-expanded=true] { background: #edf3f0; border-color: #9db7ad; }
  body .app-header .user-chip { width: 40px; min-height: 40px; padding: 5px; }
  .lz-home-head { margin-bottom: 24px; }
  .lz-home-head h2, .lz-page-head h2 { font-size: 24px; }
  body #view-home { padding: 24px 16px 16px; }
  body #view-home .cards { grid-template-columns: minmax(0, 1fr); }
  body #view-home .card { min-height: 156px; padding: 16px; }
  body #mainNav > button.fin-nav-group { min-height: 44px; font-size: 14px; }
  body #mainNav > :is(.nav-parent,[data-goto=home]) { min-height: 44px; }
  body .app-header #mainNav {
    display: none; position: fixed; top: var(--hd, 64px); bottom: 0; left: 0;
    width: min(300px, calc(100vw - 48px)); margin: 0; padding: 16px 12px;
    flex-direction: column; flex-wrap: nowrap; gap: 4px;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    background: var(--panel); border-right: 1px solid var(--line);
  }
  body.mobile-nav-open .app-header #mainNav { display: flex; }
  body .app-header #mainNav button { flex: 0 0 auto; text-align: left; }
  body .app-header #mainNav > :is(.nav-parent,[data-goto=home]) { width: 100%; min-height: 44px; }
  body .app-header #mainNav .nav-sub { min-height: 44px; }
  .lz-page-head { flex-wrap: wrap; }
  .lz-page-actions { margin-left: 0; width: 100%; }
  .lz-page-actions .lz-btn { flex: 1; }
  .lz-pages { padding: 24px 16px 8px; }
  .lz-toolbar { flex-wrap: wrap; padding: 12px; }
  .lz-toolbar input { min-width: 0; }
  .lz-btn, .lz-btn.sm { min-height: 44px; }
  .lz-panel-hd { padding: 16px; }
  table.lz-table :is(th,td) { padding: 12px 16px; }
  .lz-footer { flex-wrap: wrap; padding: 16px; line-height: 1.8; }
  .lz-foot-meta { margin-left: 0; }
}

/* ---------- 地磅配置（表单竖排 + 空提示不显示） ---------- */
.lz-scale .lz-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.lz-scale .lz-field label { display: block; font-size: 12.5px; color: var(--muted, #6b7c8c); font-weight: 600; }
.lz-scale .lz-field input, .lz-scale .lz-field select { width: 100%; }
.lz-scale .hint:empty { display: none; }
.lz-scale .lz-toolbar label { font-weight: 400; }

/* ---------- 双地磅（状态卡 / 切换 / 顶栏状态） ---------- */
.lz-scale-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding: 18px; }
.lz-scale-card { border: 1px solid #e2e8ee; border-radius: 10px; padding: 14px 16px; background: #fff; }
.scc-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #33475a; }
.scc-dot { width: 9px; height: 9px; border-radius: 50%; background: #c3ccd6; flex: 0 0 auto; }
.scc-dot.on { background: #2e7d32; box-shadow: 0 0 0 3px rgba(46, 125, 50, .14); }
.scc-dot.err { background: #c62828; }
.scc-dot.off { background: #b7c2cd; }
.scc-weight { font-size: 28px; font-weight: 700; color: #102a3a; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.scc-sub { font-size: 12px; color: #6b7c8c; }
.scc-err { font-size: 12px; color: #c62828; min-height: 16px; word-break: break-all; margin-top: 4px; }
.scc-actions { display: flex; gap: 8px; margin-top: 8px; }
.lz-scale-tabs { display: flex; gap: 8px; padding: 0 18px 14px; }
.lz-scale-tabs .lz-btn.on { background: #123a4f; color: #fff; border-color: #123a4f; }
.scale-badges { display: flex; gap: 8px; align-items: center; margin-right: 10px; }
.scale-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #dbe3ea; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; color: #33475a; cursor: pointer; font-family: inherit; }
.scale-badge:hover { border-color: #9fb4c6; }
.scale-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #b7c2cd; }
.scale-badge .dot.on { background: #2e7d32; }
.scale-badge .dot.err { background: #c62828; }
.scale-badge .val { color: #102a3a; font-weight: 600; font-variant-numeric: tabular-nums; }



/* Scale configuration: instruments, connection controls and grouped settings. */
.lz-scale { --scale-ink: #173e43; --scale-muted: #526c70; --scale-line: #d8e5e2; --scale-soft: #f3f8f6; }
.lz-scale .lz-page-head { margin-bottom: 20px; }
.lz-scale-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.lz-scale-panel { min-width: 0; border: 1px solid var(--scale-line); border-radius: 14px; background: #fff; overflow: hidden; }
.lsp-head { padding: 18px 22px; background: var(--scale-soft); border-bottom: 1px solid var(--scale-line); }
.lsp-top { display: flex; align-items: center; gap: 12px; }
.lsp-top h3 { margin: 0; font-size: 16px; font-weight: 650; color: var(--scale-ink); }
.lsp-pill { margin-left: auto; font-size: 12px; line-height: 20px; padding: 2px 10px; border-radius: 999px; background: #e7eeeb; color: #526862; }
.lsp-pill.on { background: #dfefe4; color: #24623f; }
.lsp-pill.err { background: #fbe6e3; color: #a12e26; }
.lsp-instrument { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.lsp-instrument > div:first-child { min-width: 0; }
.lsp-reading { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.lsp-reading span { font-size: clamp(34px, 3.1vw, 48px); font-weight: 650; color: var(--scale-ink); line-height: 1.1; letter-spacing: -.025em; }
.lsp-reading small { font-size: 14px; color: var(--scale-muted); font-weight: 500; }
.lsp-reading.stale span { color: #718984; }
.lsp-quick-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.lz-scale .lsp-quick-actions .lz-btn { height: 34px; padding: 0 12px; }
.lsp-meta { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--scale-muted); font-variant-numeric: tabular-nums; }
.lsp-meta i { font-style: normal; color: #9aaca6; }
.lsp-meta .is-stable { color: #24623f; }
.lsp-meta .is-moving { color: #925900; }
.lsp-err { font-size: 12px; line-height: 1.65; color: #a12e26; margin-top: 12px; overflow-wrap: anywhere; }
.lsp-err:empty { display: none; }
.lsp-body { padding: 0 22px; }
.lsp-section { padding: 16px 0; }
.lsp-section + .lsp-section { border-top: 1px solid var(--scale-line); }
.lsp-sec { margin: 0 0 12px; font-size: 13px; line-height: 20px; font-weight: 650; color: var(--scale-ink); }
.lsp-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lsp-radio { display: flex !important; align-items: flex-start; gap: 8px; border: 1px solid var(--scale-line); border-radius: 8px; padding: 10px 11px; cursor: pointer; background: #fff; transition: border-color .15s ease, background .15s ease; }
.lsp-radio input { margin: 3px 0 0; width: 14px !important; height: 14px; flex: 0 0 auto; accent-color: var(--brand); }
.lsp-radio span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lsp-radio b { font-size: 13px; color: var(--scale-ink); font-weight: 600; }
.lsp-radio em { font-style: normal; font-size: 11px; color: var(--scale-muted); line-height: 1.5; overflow-wrap: anywhere; }
.lsp-radio:hover { border-color: #7c9c92; }
.lsp-radio.on { border-color: #3e776b; background: #f0f7f3; }
.lsp-radio:has(input:disabled) { cursor: default; }
.lsp-address { margin-top: 10px; }
.lsp-fixed { font-size: 11.5px; line-height: 1.6; color: var(--scale-muted); font-family: Consolas, "Cascadia Code", monospace; overflow-wrap: anywhere; }
.lsp-auto-row { display: flex; align-items: center; margin-top: 8px; }
.lsp-check { display: inline-flex !important; align-items: center; gap: 7px; font-size: 12px !important; font-weight: 400 !important; color: var(--scale-ink) !important; cursor: pointer; }
.lsp-check input { width: 14px !important; height: 14px; margin: 0; accent-color: var(--brand); }
.lsp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lsp-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lz-scale .lsp-body .lz-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.lz-scale .lsp-body .lz-field > label { font-size: 12px; line-height: 18px; color: #395752; font-weight: 500; }
.lz-scale .lsp-body .lz-field :is(input,select) { width: 100%; min-width: 0; height: 36px; border: 1px solid #c9d8d2; border-radius: 7px; background: #fff; color: #203f38; padding: 0 10px; font: inherit; font-size: 13px; }
.lz-scale .lsp-body .lz-field :is(input,select):focus-visible { outline: 2px solid #3c7969; outline-offset: 2px; }
.lz-scale .lsp-body .lz-field :is(input,select):disabled { background: #f2f5f3; color: #63766e; cursor: not-allowed; }
.lz-scale .lsp-body .lz-field small, .lsp-field-hint { font-size: 11.5px; line-height: 1.6; color: var(--scale-muted); }
.lsp-field-hint { margin: 8px 0 0; overflow-wrap: anywhere; }
.lsp-advanced { margin-top: 14px; }
.lz-scale summary { cursor: pointer; color: var(--scale-muted); font-size: 12px; line-height: 20px; }
.lz-scale summary::marker { color: #68877b; }
.lz-scale summary:focus-visible { outline: 2px solid #3c7969; outline-offset: 4px; border-radius: 2px; }
.lsp-advanced > .lsp-grid { padding-top: 12px; }
.lsp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 0 18px; border-top: 1px solid var(--scale-line); }
.lsp-actions > .lz-btn { flex: 0 0 auto; height: 36px; }
.lsp-actions > .hint { flex: 1 1 180px; min-width: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.lsp-local { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding: 10px; border-radius: 7px; background: #f4f7f5; font-size: 12px; color: var(--scale-muted); }
.lsp-local > span:nth-child(2) { flex: 1 1 160px; min-width: 0; line-height: 1.6; overflow-wrap: anywhere; }
.lz-scale .lsp-local .lz-btn { height: 28px; padding: 0 9px; font-size: 11.5px; background: transparent; }
.lsp-local-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a69e; flex: 0 0 auto; }
.lsp-local-dot.on { background: #287b50; }
.lsp-local-dot.off { background: #a94b40; }
.lsp-local-dot.checking { background: #a6761d; }
.lsp-serial { padding-top: 14px; }
.lsp-serial-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.lsp-serial-footer > span { font-size: 11.5px; color: var(--scale-muted); line-height: 1.6; }
.lz-scale .lsp-serial-footer .lz-btn { flex: 0 0 auto; height: 30px; font-size: 12px; padding: 0 10px; }
.lsp-raw { border-top: 1px solid var(--scale-line); background: #fafcfb; }
.lz-scale .lsp-raw-hd { display: flex; align-items: center; gap: 8px; padding: 12px 22px; }
.lsp-raw-hd::before { content: ''; width: 6px; height: 6px; border-right: 1px solid #68877b; border-bottom: 1px solid #68877b; transform: rotate(-45deg); margin-right: 4px; }
.lsp-raw[open] > .lsp-raw-hd::before { transform: rotate(45deg); }
.lsp-raw-hd > span:last-child { margin-left: auto; font-size: 11px; }
.lsp-raw-scroll { padding: 0 14px 12px; overflow-x: auto; }
.lsp-raw .lz-table { width: 100%; table-layout: fixed; }
.lz-scale .lsp-raw .lz-table :is(th,td) { font-size: 11.5px; padding: 7px; white-space: normal; color: var(--scale-muted); overflow-wrap: anywhere; }
.lsp-raw .lz-table th { font-weight: 500; background: transparent; }
.lsp-guide { margin-top: 18px; padding: 0 2px 12px; }
.lsp-guide p { font-size: 12px; line-height: 1.8; color: var(--scale-muted); margin-top: 8px; }
@media (max-width: 1120px) {
  .lz-scale-panels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lz-scale-panels { gap: 16px; }
  .lsp-head { padding: 18px; }
  .lsp-body { padding: 0 18px; }
  .lsp-instrument { flex-wrap: wrap; }
  .lsp-reading span { font-size: 42px; }
  .lsp-quick-actions { margin-left: auto; }
  .lz-scale .lsp-body .lz-field :is(input,select) { height: 40px; font-size: 16px; }
  .lz-scale .lsp-quick-actions .lz-btn, .lz-scale .lsp-serial-footer .lz-btn, .lz-scale .lsp-local .lz-btn, .lz-scale .lsp-actions .lz-btn { min-height: 40px; }
  .lsp-serial-footer { align-items: flex-start; flex-direction: column; }
  .lsp-radio { padding: 10px 8px; }
  .lsp-radio em { font-size: 11px; }
}

.scale-badge { padding: 5px 11px; gap: 7px; }
.scale-badge .nm { color: #33475a; }
.scale-badge .val { font-size: 12.5px; }
.scale-badge .unit { font-size: 11px; color: #6b7c8c; }
.scale-badge .stable { font-size: 11px; color: #8a9bab; }
.scale-badge .stable.ok { color: #2e7d32; }
.scale-badge .stable.warn { color: #c88a00; }
.scale-badge .stable.err { color: #c62828; }
.scale-badge .val:empty { display: none; }

.lsp-help { margin-top: 8px; padding: 10px 12px; border: 1px solid #eef2f6; border-radius: 8px; background: #fbfdfe; font-size: 12px; color: #5a6b78; display: flex; flex-direction: column; gap: 4px; }
.lsp-help b { color: #1b3a4c; }
.lsp-help a { color: #2b6b85; align-self: flex-end; }
.lsp-ports { margin-top: 8px; font-size: 11.5px; line-height: 1.6; color: var(--scale-muted); overflow-wrap: anywhere; }

/* Draft values keep the existing field shape and keyboard focus treatment. */
body :is(input,select,textarea).is-unsaved { border-color:#c54b4b !important; }
body input:is([type=checkbox],[type=radio]).is-unsaved { outline:2px solid #c54b4b; outline-offset:3px; }

/* 打印预览共享组件（print-preview.js）：滚轮缩放 + 按住平移。 */
.pp-dialog { width:calc(100vw - 40px); max-width:1080px; }
.pp-dialog .pp-hint { color:var(--ink2); font-size:12px; margin-left:12px; }
.pp-dialog header { display:flex; align-items:center; gap:10px; }
.pp-dialog header h3 { margin:0; font-size:16px; }
.pp-dialog header [data-close] { margin-left:auto; }
.pp-viewport { position:relative; height:70dvh; overflow:hidden; border:1px solid #525659; border-radius:8px; background:#525659; cursor:grab; touch-action:none; }
.pp-viewport.dragging { cursor:grabbing; }
.pp-canvas { position:absolute; top:14px; left:0; width:100%; transform-origin:0 0; }
.pp-frame { display:block; width:100%; border:0; background:#fff; pointer-events:none; box-shadow:0 6px 24px rgba(0,0,0,.35); }
.pp-dialog footer { display:flex; align-items:center; gap:8px; margin-top:12px; }
.pp-dialog .pp-zoom-label { margin-right:auto; color:var(--ink2); font-size:12px; font-variant-numeric:tabular-nums; }

/* 记录查询九类页面：表头与数据统一居中（与财务弹窗明细口径一致） */
:is(#view-rec-sg,#view-rec-rk,#view-rec-ck,#view-rec-fh,#view-rec-cg,#view-rec-pay,#view-rec-cgpay,#view-rec-sales,#view-rec-refund) table.lz-table :is(th,td) { text-align:center; }

.rec-dialog table.lz-table :is(th,td) { text-align:center; }

/* 主导航总览页的入口卡片（2026-11-01）：统一 3 列 × 最多两行，卡片放大；
   单据记录 / 财务记录也复用这套样式。 */
.rec-index { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(150px,auto); gap:16px; margin-top:6px; }
.rec-card { display:flex; flex-direction:column; gap:8px; padding:20px 22px; text-align:left; border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--ink); font:inherit; cursor:pointer; transition:border-color .18s, box-shadow .18s, transform .18s; }
.rec-card b { font-size:17px; font-weight:600; }
.rec-card span { font-size:13px; line-height:1.65; color:var(--muted); }
.rec-card .go { margin-top:auto; font-size:13px; font-weight:600; color:var(--brand); font-style:normal; }
.rec-card:hover { border-color:var(--brand); box-shadow:0 14px 30px -16px rgba(16,34,44,.4); transform:translateY(-2px); }
.rec-card:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
@media(max-width:1100px) { .rec-index { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .rec-index { grid-template-columns:1fr; } }

/* 自定义弹窗（替代原生 dialog）：遮罩 + 居中容器，保留 [open] 属性供既有样式命中。 */
[data-lz-modal] { position:fixed; inset:0; margin:auto !important; width:fit-content; height:fit-content; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); overflow:auto; border:1px solid var(--line); border-radius:12px; background:var(--panel,#fff); color:var(--ink); z-index:1000; }
[data-lz-modal][hidden] { display:none !important; }
.lz-modal-backdrop { position:fixed; inset:0; background:rgba(16,34,44,.45); z-index:999; }
body.lz-modal-open { overflow:hidden; }

/* 记录查询明细弹窗：统一标题区、内容区与底部操作区，边框阴影与业务弹窗一致。 */
.rec-dialog { padding:0; border:1px solid var(--line); border-radius:14px; background:var(--panel); box-shadow:0 28px 80px -28px rgba(16,34,44,.45); }
.rec-dialog .dlg { display:flex; flex-direction:column; max-height:calc(100dvh - 40px); }
.rec-dialog .dlg-hd { display:flex; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); background:var(--soft); }
.rec-dialog .dlg-hd h3 { margin:0; font-size:16px; font-weight:600; color:var(--ink); }
.rec-dialog .dlg-hd button { margin-left:auto; }
.rec-dialog .dlg-bd { padding:16px 20px; overflow:auto; min-height:0; }
.rec-dialog .dlg-ft { display:flex; justify-content:flex-end; gap:10px; padding:12px 20px; border-top:1px solid var(--line); background:var(--panel); }
.rec-dialog .pay-meta { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:10px 20px; margin:0 0 14px; }
.rec-dialog .pay-meta dt { color:var(--ink2); font-size:12px; margin:0 0 4px; }
.rec-dialog .pay-meta dd { margin:0; color:var(--ink); font-size:13px; }

/* ---------- 记录查询 · 指标卡片式筛选（2026-11-02 使用者要求：单据记录 / 财务记录） ---------- */
.rec-quicks { display:flex; flex-wrap:wrap; gap:8px; width:100%; }
.rec-page .lz-toolbar { flex-wrap:wrap; }
.rec-page .lz-toolbar .rec-quicks { flex:1 1 100%; width:auto; }
.rec-page .lz-toolbar .rec-module-quicks { flex:0 1 auto; width:auto; }
.rec-page .lz-toolbar .rec-kpis { flex:1 1 100%; }
.rec-page .lz-toolbar .lz-btn { flex:0 0 auto; white-space:nowrap; }
.rec-page .lz-toolbar input[type="search"] { flex:1 1 220px; min-width:160px; }
.rec-quick { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; min-width:96px; padding:8px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--ink); font:inherit; text-align:left; cursor:pointer; transition:border-color .15s, background .15s, color .15s, box-shadow .15s; }
.rec-quick b { font-size:13px; font-weight:600; line-height:1.35; }
.rec-quick small { color:var(--muted); font-size:11px; line-height:1.3; }
.rec-quick:hover { border-color:var(--brand); color:var(--brand-d); }
.rec-quick:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.rec-quick.on { border-color:var(--brand); background:var(--brand); color:#fff; box-shadow:0 4px 12px -6px rgba(16,34,44,.45); }
.rec-quick.on small { color:rgba(255,255,255,.78); }
.rec-quick.on:hover { color:#fff; }
.rec-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; width:100%; }
.rec-kpis > span { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--muted); font-size:12px; line-height:1.45; }
.rec-kpis > span b { color:var(--brand-d); font-size:18px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.rec-page .pay-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; padding:0 0 12px; border-bottom:0; background:transparent; }
.rec-page .pay-totals .pay-total { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--muted); font-size:12px; }
.rec-page .pay-totals .pay-total b { color:var(--brand-d); font-size:18px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.rec-page .pay-totals .pay-total i { margin-left:4px; font-size:11px; font-style:normal; color:var(--muted); }
.rec-page .pay-totals > span { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--panel); color:var(--muted); font-size:12px; line-height:1.45; }
.rec-page .pay-totals > span b { color:var(--brand-d); font-size:18px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
@media(max-width:640px) { .rec-quick { flex:1 1 calc(50% - 8px); min-width:0; } }

/* ---------- 财务汇总 · 分组页签与开票追踪（2026-11-02 使用者要求） ---------- */
.fin-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0; border-top:1px solid var(--line); margin-top:4px; }
.fin-tabs .fin-tab { flex:0 0 auto; white-space:nowrap; }
.fin-tab-panel .lz-toolbar .lz-btn { flex:0 0 auto; white-space:nowrap; }
.fin-tab { padding:8px 18px; border:1px solid var(--line); border-radius:999px; background:var(--panel); color:var(--ink2); font:inherit; font-size:13px; cursor:pointer; transition:border-color .15s, background .15s, color .15s; }
.fin-tab:hover { border-color:var(--brand); color:var(--brand-d); }
.fin-tab:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.fin-tab.on { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:600; }
.fin-tab-panel .lz-toolbar { flex-wrap:wrap; }
.fin-tab-panel .lz-toolbar .rec-quicks { flex:0 1 auto; width:auto; }
.fin-tab-panel .lz-kpis { padding:12px 0; }
/* 开票追踪表：表头与数据行统一居中（含数值列），采购付款行显示「第 N 行」 */
#view-fin-sum .trk-table :is(th,td) { text-align:center; }
#view-fin-sum .trk-table td.num { text-align:center; }
/* 财务汇总四个页签的表格统一：表头与数据行居中（模块明细 / 往来 TOP / 账龄分析 / 开票追踪） */
#view-fin-sum .fin-tab-panel table.lz-table :is(th,td) { text-align:center; }
#view-fin-sum .fin-tab-panel table.lz-table td.num { text-align:center; }