/* ==========================================================================
   视觉精修层：品牌长标 / 卡片与表格细节 / 详情页 / 台账分区 / 附件面板
   （覆盖 base.css 的观感调整，必须在 base.css 之后引入）
   ========================================================================== */
/* ==========================================================================
   第十一轮：品牌长标 + 整体视觉精修（更接近真实业务系统）
   ========================================================================== */
:root {
    --sidebar-w: 236px;
    --topbar-h: 58px;
    --panel-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .03);
}

/* ---- 左上角公司长形 LOGO ---- */
.sb-brand {
    height: auto; min-height: 62px; padding: 12px 13px 11px;
    position: relative;
    border-bottom: 1px solid var(--sb-line, rgba(148, 170, 210, .14));
    background: linear-gradient(180deg, rgba(148, 170, 210, .08) 0%, rgba(148, 170, 210, 0) 100%);
}
.logo-lockup { display: flex; align-items: center; gap: 9px; width: 100%; }
.logo-mark {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
    filter: drop-shadow(0 5px 12px rgba(24, 108, 255, .5));
}
.sb-brand-txt { overflow: hidden; line-height: 1.18; }
.sb-brand-txt b {
    display: block; font-size: 13px; font-weight: 700; letter-spacing: .6px;
    color: #f4f9ff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 10, 30, .5);
}
.sb-brand-txt span {
    display: block; font-size: 10px; color: #7e93b8; letter-spacing: 1px;
    white-space: nowrap; margin-top: 3px;
}
/* 品牌区域下沿一道细高光，模拟真实系统标题栏 */
.sb-brand::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 1px;
    background: linear-gradient(90deg, rgba(124, 181, 255, .5), rgba(124, 181, 255, 0));
}

/* ---- 顶栏：贴近真实后台系统的层次 ---- */
.topbar {
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.crumb { letter-spacing: .2px; }
.crumb small { letter-spacing: .1px; }

/* ---- 卡片 / 表格：去条纹、去渐变，扁平细边框 ---- */
.card { box-shadow: var(--panel-shadow); }
table.gt thead th {
    box-shadow: inset 0 -1px 0 var(--border);
    letter-spacing: .3px;
}
table.gt tbody td { transition: background .12s ease; }
table.gt .mono { letter-spacing: .2px; }

/* ---- 侧栏：当前项左侧高亮条，滚动条更细 ---- */
.sidebar .sb-item { position: relative; }
.sidebar .sb-item.active::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
    border-radius: 2px; background: #9cc6ff; box-shadow: 0 0 8px rgba(124, 181, 255, .8);
}
.sb-menu::-webkit-scrollbar { width: 6px; }
.sb-menu::-webkit-scrollbar-thumb { background: rgba(148, 170, 210, .28); border-radius: 4px; }
.sb-menu::-webkit-scrollbar-thumb:hover { background: rgba(148, 170, 210, .45); }

/* ---- 输入框 / 按钮：焦点与悬停更真实 ---- */
.btn:hover { box-shadow: 0 2px 6px rgba(15, 23, 42, .06); }
.btn-primary { box-shadow: 0 2px 8px rgba(24, 108, 255, .22); }
.ipt:focus, input:focus, select:focus, textarea:focus { outline: none; }

/* ---- 首页 KPI：悬停轻微上浮 ---- */
.kpi { transition: transform .16s ease, box-shadow .16s ease; }
.kpi:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }

/* ---- 标签：圆角胶囊，贴近业务系统观感 ---- */
.tag { border-radius: 999px; padding: 2px 9px; font-weight: 500; }

/* ===================== 第十二轮：附件总库分组面板样式（同项目详细信息） ===================== */
.at-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); gap: 14px; padding: 12px 0 6px; }
.at-panel {
    margin-bottom: 0 !important;
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(23, 60, 110, .05);
    padding: 0 14px 8px;
    overflow: hidden;
}
.at-panel .form-group-t {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 0 8px; border-bottom: 1px solid var(--border-2); margin-bottom: 2px;
}
.at-panel .at-cnt { font-weight: 400; font-size: 12px; color: var(--text-3, #8296b3); }
.at-panel .at-up { margin-left: auto; }
.at-row { padding: 8px 2px; border-bottom: 1px dashed var(--border-2); }
.at-row:last-child { border-bottom: 0; }
.at-row-n { font-size: 13px; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.at-row-f { font-size: 12.5px; line-height: 1.8; word-break: break-all; }
.at-panel .at-empty-line { padding: 9px 2px; }

/* ---- 系统信息配置：自定义 LOGO 预览 ---- */
.logo-img {
    height: 34px; max-width: 132px; flex-shrink: 0; object-fit: contain;
    border-radius: 8px; background: rgba(255, 255, 255, .08); padding: 2px 4px;
}
.brand-preview {
    display: block; max-height: 64px; max-width: 320px; margin-top: 8px;
    border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 14px;
    background: #fff;
}
.brand-preview-empty {
    color: var(--muted); font-size: 12.5px; line-height: 1.9; text-align: center;
    border-style: dashed; background: #fbfdff;
}

/* ---- 登录页自定义 LOGO ---- */
.login-logo.has-img {
    background: transparent; box-shadow: none; padding: 0;
    width: auto; max-width: 168px; height: 52px; border-radius: 0;
}
.login-logo.has-img img { height: 52px; max-width: 168px; object-fit: contain; display: block; }

/* ==========================================================================
   第十四轮：经营台账（经营指标 / 产值回款）
   ========================================================================== */

/* ---- 产值回款：页内上下分区 ---- */
.fc-tip {
    padding: 9px 16px; background: #f8fafd; border-bottom: 1px solid var(--border-2);
    font-size: 12.5px; color: var(--text-2); line-height: 1.7;
}
.fc-tip .fc-lock { color: var(--muted); margin-left: 6px; }

.fc-sec { padding: 4px 0 10px; }
.fc-sec + .fc-sec { border-top: 8px solid #f3f5f8; }

.fc-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px 10px;
}
.fc-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.fc-ico {
    width: 26px; height: 26px; border-radius: 8px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 14px;
}
.fc-ico.b { background: var(--brand-soft); }
.fc-ico.g { background: var(--ok-soft); }
.fc-sub { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }

.fc-nums { margin-left: auto; display: flex; gap: 22px; }
.fc-nums span { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.fc-nums i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.fc-nums b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text); }
.fc-nums b.ok { color: var(--ok); }

.fc-empty {
    margin: 0 16px; padding: 18px; border: 1px dashed var(--border);
    border-radius: var(--radius); background: #fbfdff; color: var(--muted);
    font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 12px;
}

.fc-table td { vertical-align: top; }
.fc-badge {
    display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
    font-size: 11px; background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(21, 163, 74, .18);
}
.cell-ed { cursor: pointer; position: relative; }
.cell-ed:hover { background: #f2f8ff; box-shadow: inset 0 0 0 1px rgba(47, 139, 247, .35); }
.cell-lock { color: var(--text-2); background: #fafcff; }
.cell-edit {
    border: 1px solid var(--brand-2); border-radius: 6px; padding: 4px 6px;
    font: inherit; color: var(--text); background: #fff; outline: none;
    box-shadow: var(--glow); resize: vertical; line-height: 1.5;
}
.fc-remark { max-width: 340px; }
.fc-remark .cell-txt { white-space: pre-wrap; line-height: 1.5; font-size: 12.5px; color: var(--text-2); }

/* ---- 经营指标：KPI 卡片 ---- */
.kpi-title {
    padding: 16px 16px 8px; font-size: 14px; font-weight: 700; color: var(--text);
}
.kpi-title.sub { padding-top: 20px; border-top: 8px solid #f3f5f8; margin-top: 10px; }

.kpi-empty {
    margin: 14px 16px 0; padding: 12px 14px; border-radius: var(--radius);
    background: var(--warn-soft); color: #8a5b00; font-size: 12.5px; line-height: 1.7;
    border: 1px solid rgba(224, 143, 11, .22);
}

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 16px; }
@media (max-width: 1180px) { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-card {
    border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 1px 2px rgba(10, 61, 143, .04);
}
.kpi-card.b { border-top: 3px solid var(--brand-2); }
.kpi-card.g { border-top: 3px solid var(--ok); }
.kpi-card.i { border-top: 3px solid #7a5cd6; }

.kpi-h { display: flex; align-items: center; justify-content: space-between; }
.kpi-name { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi-ico { font-size: 14px; }
.kpi-rate { font-size: 13px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.kpi-rate.full { color: var(--ok); }

.kpi-main { font-size: 25px; font-weight: 700; color: var(--text); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi-sub b { color: var(--text-2); }

.kpi-bar { height: 6px; border-radius: 999px; background: #eef4fc; margin: 10px 0 12px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .5s ease; }
.kpi-card.g .kpi-bar i { background: linear-gradient(90deg, #35c46f, var(--ok)); }
.kpi-card.i .kpi-bar i { background: linear-gradient(90deg, #9d86ea, #7a5cd6); }

.kpi-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi-row3 div { display: flex; flex-direction: column; gap: 2px; }
.kpi-row3 span { font-size: 11.5px; color: var(--muted); }
.kpi-row3 b { font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }

.kpi-foot {
    margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border-2);
    font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.kpi-foot b { font-variant-numeric: tabular-nums; }
.kpi-foot b.warn { color: var(--warn); }
.kpi-foot b.ok { color: var(--ok); }

.kpi-strip {
    margin: 14px 16px 4px; padding: 9px 14px; border-radius: var(--radius);
    background: #f6faff; border: 1px solid var(--border-2);
    display: flex; align-items: center; gap: 24px; font-size: 12.5px; color: var(--text-2);
}
.kpi-strip b { font-variant-numeric: tabular-nums; color: var(--text); }
.kpi-strip .muted { margin-left: auto; font-size: 12px; }

.kpi-table th.grp { text-align: center; font-size: 12px; }
.kpi-table th.grp.b { background: #eef6ff; color: var(--brand-deep); }
.kpi-table th.grp.g { background: #edfaf2; color: #0d6b33; }
.kpi-table th.grp.i { background: #f4f1fe; color: #4b349c; }
.kpi-table tr.total td { background: #f7fbff; font-weight: 600; border-top: 2px solid var(--border); }

/* ---- 发票识别面板：自动关联提示条（新增发票弹窗内锁定时使用） ---- */
.ii-scope {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-bottom: 12px; padding: 9px 14px; border-radius: var(--radius);
    background: #f2f8ff; border: 1px solid var(--border-2);
    font-size: 12.5px; color: var(--text-2);
}
.ii-scope b { color: var(--text); }

/* ---- 第十七轮 ---- */
/* 发票：开票超额红字提醒（不阻止保存） */
.inv-gap-tip { color: var(--danger, #d93a3a); font-weight: 600; }
/* 附件总库：面板内超出 5 条折叠 */
.at-fold { padding: 4px 0 2px 2px; }
.at-fold .btn-link { font-size: 12.5px; }

/* ---- 结算前置 ---- */
.ps-over, table.gt tr.ps-over > td { background: #fdecec !important; }
table.gt tr.ps-over > td:first-child { box-shadow: inset 3px 0 0 var(--danger, #d93a3a); }
.ps-sec-t {
    font-size: 13px; font-weight: 700; color: var(--text);
    margin: 18px 0 8px; padding-left: 9px; border-left: 3px solid var(--brand);
}
.ps-mini-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.ps-mini {
    min-width: 160px; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--bg-sub);
    display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted);
}
.ps-mini b { font-size: 15px; color: var(--text); }
.ps-tabs.tabs { padding: 0 16px; border-bottom: 1px solid var(--border); }

/* ===== 第24轮：结算前置 A4 版式 / 签字区 / 合同清单折叠 ===== */
.ps-a4 {
    max-width: 210mm; margin: 0 auto; background: var(--card);
    padding: 24px 30px; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: var(--shadow, 0 1px 3px rgba(15,23,42,.06));
}
.ps-a4-sec {
    text-align: center; font-weight: 700; background: var(--bg-sub);
    padding: 5px 0; margin: 12px 0 8px; border-radius: 6px;
}
.ps-a4-t { width: 100%; border-collapse: collapse; }
.ps-a4-t td { border: 1px solid var(--border); padding: 6px 8px; font-size: 13px; }
.ps-wrap { word-break: break-all; }
.ps-sign { margin-top: 34px; font-size: 13px; }
.ps-sign-grid { display: flex; gap: 0 60px; }
.ps-sign-col { flex: 1; min-width: 0; }
.ps-sign-t { font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.ps-sign-row {
    margin-top: 18px; min-height: 22px;
    border-bottom: 1px dashed var(--border); padding-bottom: 2px;
}
.ps-sign-stamp { margin-top: 18px; min-height: 30mm; border-bottom: 1px solid var(--border); }
/* 清单分级折叠样式已迁移到 collapse-arco.css（.ac-item-boq） */

/* ===== 第28轮：结算单 Office 页面布局功能区 + 打印预览 ===== */
.ps-ribbon {
    display: flex; align-items: stretch; gap: 0;
    background: linear-gradient(180deg, #fbfcfe, #eef1f6);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 4px 10px 2px; overflow-x: auto;
}
.rb-tab {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 600; color: var(--brand);
    padding: 0 12px 0 4px; border-right: 1px solid var(--border);
    margin-right: 10px; white-space: nowrap;
}
.rb-tab-ic { font-size: 14px; }
.rb-group { display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.rb-row { display: flex; align-items: center; gap: 5px; }
.rb-row .ipt { font-size: 12px; padding: 3px 6px; height: 26px; }
.rb-row .ipt[type="number"] { width: 66px; }
.rb-unit { font-size: 11px; color: var(--muted); }
.rb-btn {
    font-size: 12px; padding: 3px 10px; border: 1px solid var(--border);
    border-radius: 5px; background: var(--card); cursor: pointer; color: var(--text);
}
.rb-btn:hover { border-color: var(--brand); color: var(--brand); }
.rb-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.rb-cap { font-size: 10.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.rb-sep { width: 1px; background: var(--border); margin: 2px 4px; }
.modal.xl { max-width: 1240px; width: 94vw; }
.ps-a4.land { max-width: 297mm; }

/* ===== 第26轮：双击编辑单元格 ===== */
td.ps-ed { cursor: cell; }
td.ps-ed:hover { background: rgba(24, 108, 255, 0.07); box-shadow: inset 0 0 0 1.5px var(--brand); }
td.ps-ed input { font: inherit; }

/* ===== 第25轮：清单层级折叠标签 / 打印页 LOGO / 请款表表格版式 ===== */
/* 层级标签与各层底色已迁移到 collapse-arco.css（.ac-tag.level / .ac-lvN） */
.ps-logo { height: 50px; margin-bottom: 6px; }
.ps-logo img { height: 46px; max-width: 210px; object-fit: contain; }
table.req-t td.lb { text-align: center; font-weight: 600; background: var(--bg-sub); white-space: nowrap; }
table.req-t td.sec { text-align: center; font-weight: 700; letter-spacing: 6px; background: var(--bg-sub); }
table.req-t td.signlb { text-align: center; font-weight: 600; background: var(--bg-sub); width: 26%; }
.ckrow { margin: 14px 0 6px; font-size: 13px; color: var(--text); }

/* ===== 第44轮：清单含税金额提示 ===== */
.boq-diff {
    display: inline-block; margin-left: 10px; padding: 2px 10px;
    border-radius: 10px; font-size: 12px; font-weight: 600;
    color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca;
}

/* ===== 第45轮：项目收支情况（左收入 / 中支出 / 右穿透） ===== */
.flow-opt { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.flow-grid {
    display: grid; grid-template-columns: 1fr 1.15fr .92fr;
    gap: 12px; align-items: start;
}
@media (max-width: 1400px) { .flow-grid { grid-template-columns: 1fr; } }
.flow-panel {
    border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden; background: var(--panel);
    box-shadow: var(--shadow);
}
.flow-ph {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 7px 11px; font-size: 13px; font-weight: 700; color: #fff;
}
.flow-ph b { font-weight: 600; font-size: 12px; opacity: .95; }
.flow-ph.inc { background: linear-gradient(90deg, #b45309, #f59e0b); }
.flow-ph.exp { background: linear-gradient(90deg, #0b47c9, #4b8bff); }
.flow-ph.pie { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.flow-pw { overflow-x: auto; }
table.flow-pt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.flow-pt th {
    padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--text-2);
    background: var(--panel-2); border-bottom: 1px solid var(--border);
    white-space: nowrap; text-align: left;
}
table.flow-pt td {
    padding: 6px 8px; border-bottom: 1px solid var(--border-2); vertical-align: middle;
}
table.flow-pt tbody tr:last-child td { border-bottom: none; }
table.flow-pt th.r, table.flow-pt td.r { text-align: right; white-space: nowrap; }
table.flow-pt td.fname a { font-weight: 500; }
table.flow-pt td.fname i {
    display: block; font-style: normal; font-size: 11px; color: var(--muted);
    margin-top: 2px;
}
table.flow-pt tr.sub td { font-weight: 700; background: var(--panel-2); }
table.flow-pt td.flow-nil {
    text-align: center; color: var(--muted); font-size: 12px; padding: 18px 8px;
}
.flow-tag {
    display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px;
    font-size: 10.5px; font-weight: 600; color: #0f766e;
    background: #ecfdf5; border: 1px solid #99f6e4; vertical-align: 1px;
}
table.flow-balt { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
table.flow-balt th { background: var(--brand-soft); color: var(--brand-deep); }
table.flow-balt tr.bal td { font-weight: 700; background: color-mix(in srgb, var(--brand) 7%, transparent); }
table.flow-balt tr.bal td:first-child { font-weight: 600; }
.flow-btag {
    display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 8px;
    font-size: 11px; font-weight: 600;
}
.flow-btag.pos { color: #15803d; background: #ecfdf3; border: 1px solid #bbf7d0; }
.flow-btag.neg { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.flow-foot {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
/* 收支面板：名称列固定占比，数值列窄列不换行 */
table.flow-pt th:first-child { width: 40%; }
table.flow-pt th.r { width: 12%; }
/* 收支面板补丁：面板最小宽度 + 外层横向滚动，防止名称列被数值列挤成竖排 */
.flow-grid-wrap { overflow-x: auto; }
.flow-grid { min-width: 1596px; grid-template-columns: 1fr 1.08fr .92fr; }
table.flow-pt th:first-child { width: auto; min-width: 126px; }
table.flow-pt th.r { width: auto; min-width: 82px; }
table.flow-pt td.r { font-size: 11.5px; padding-left: 5px; padding-right: 5px; font-variant-numeric: tabular-nums; }

/* ===== 第46轮：收支情况样张结构（对上在前 + 对下合同纵向合并 + 穿透子行） ===== */
.flow-stack { display: flex; flex-direction: column; gap: 16px; }
.flow-sec-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.flow-sec-t.inc { color: #b45309; }
.flow-sec-t.exp { color: #0b47c9; }
.flow-sec-t .small { font-weight: 500; color: var(--muted); }
table.flow-tbl2 { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--panel); }
table.flow-tbl2 th {
    padding: 7px 8px; font-size: 12px; font-weight: 600; color: var(--text-2);
    background: var(--panel-2); border: 1px solid var(--border);
    white-space: nowrap; text-align: left;
}
table.flow-tbl2 td { padding: 6px 8px; border: 1px solid var(--border-2); vertical-align: middle; }
table.flow-tbl2 th.r, table.flow-tbl2 td.r { text-align: right; white-space: nowrap; }
table.flow-tbl2 td.fname i, table.flow-tbl2 td.pname i {
    display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px;
}
table.flow-tbl2 td.pname a { font-weight: 500; }
table.flow-tbl2 tr.sub td { font-weight: 700; background: var(--panel-2); }
table.flow-tbl2 td.sub-c { font-weight: 600; background: var(--panel-2); text-align: right; }
table.flow-tbl2 td.flow-nil { text-align: center; color: var(--muted); font-size: 12px; }

/* ===== 第48轮：收支情况三块并排样张布局 ===== */
table.flow-main { table-layout: auto; }
.flow-grouphd th.ghd {
    font-size: 13px; font-weight: 700; text-align: center; color: #fff;
    letter-spacing: 1px; padding: 8px 6px;
}
.flow-grouphd th.ghd.inc { background: linear-gradient(90deg, #b45309, #f59e0b); }
.flow-grouphd th.ghd.exp { background: linear-gradient(90deg, #0b47c9, #4b8bff); }
.flow-grouphd th.ghd.pie { background: linear-gradient(90deg, #0f766e, #14b8a6); }
table.flow-tbl2 td.flow-blank {
    background: color-mix(in srgb, var(--panel-2) 55%, transparent);
    border-color: var(--border-2);
}
table.flow-main td.fname { min-width: 150px; }
table.flow-main td.pname { min-width: 130px; }
/* 第51轮：对上块整块合并（名称格罗列收入合同，金额格纵向合并显示合计） */
table.flow-main td.inc-merged { vertical-align: middle; }
table.flow-main .inc-item { padding: 5px 0; }
table.flow-main .inc-item + .inc-item { border-top: 1px dashed var(--border-2); }
table.flow-main .inc-item i { display: block; margin-top: 2px; }
