:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-sub: #fafbfc;
  --border: #e4e7ec;
  --border-strong: #cfd4dc;
  --text: #16191f;
  --text-2: #5a6371;
  --text-3: #8b929d;
  --primary: #1f4e79;
  --primary-dark: #173d5f;
  --primary-soft: #eef3f9;
  --ok: #1b7f5a;
  --ok-soft: #e9f5ef;
  --warn: #9a6a10;
  --warn-soft: #fdf4e3;
  --danger: #b02a21;
  --danger-soft: #fceceb;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 左侧纵向导航 ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 212px;
  flex: 0 0 212px;
  height: 100vh;
  padding: 20px 12px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand { padding: 0 8px; display: flex; flex-direction: column; gap: 5px; }
.brand-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--text);
}
.brand-name::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--primary);
}
.brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: .2px; padding-left: 12px; }

.sidebar nav { display: flex; flex-direction: column; gap: 4px; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-btn .nav-ico {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  flex: 0 0 18px;
  width: 18px;
}
.nav-btn:hover { background: #f3f5f8; color: var(--text); }
.nav-btn.active {
  position: relative;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}
.nav-btn.active .nav-ico { color: var(--primary); }
.nav-btn.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
}
.sidebar-foot { margin-top: auto; padding: 0 10px; font-size: 11px; color: var(--text-3); }

.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- 主体 ---------- */
main { width: 100%; max-width: none; margin: 0; padding: 24px 32px 56px; }

h2 {
  margin: 4px 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2px;
}
h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.hidden { display: none !important; }
.muted { color: var(--text-3); font-size: 12px; }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar input { width: 300px; }
.toolbar select { width: auto; min-width: 150px; }
.toolbar .muted { margin-left: auto; }

/* ---------- 表单 ---------- */
input, select, textarea {
  height: 34px;
  padding: 0 10px;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
/* 复选/单选不套用表单控件尺寸（否则会被拉满行宽、高 38px，勾选列表极其松散） */
input[type=checkbox], input[type=radio] {
  width: auto; height: auto; min-height: 0; padding: 0;
  border: 0; background: none; box-shadow: none;
  accent-color: var(--primary); cursor: pointer;
}
textarea { height: auto; min-height: 62px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, .10);
}
input::placeholder { color: #aeb4bd; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 14px 18px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: .2px;
}
.form-grid .full { grid-column: 1 / -1; }

/* ---------- 按钮 ---------- */
button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
button:hover { background: #f7f9fb; border-color: #b9c0ca; }
button:active { background: #eef1f5; }
button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}
button.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
button.danger {
  color: var(--danger);
  border-color: #e7c9c6;
  background: var(--surface);
}
button.danger:hover { background: var(--danger-soft); }
td button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.toolbar button { height: 34px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

/* ---------- 表格（重点：行高与列宽） ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
table.biz { min-width: 1120px; width: 100%; table-layout: fixed; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-sub);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: left;
  padding: 11px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid #eff1f4;
  vertical-align: middle;
  line-height: 1.5;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f8fafc; }
td:first-child { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
td .muted { display: block; font-size: 11.5px; color: var(--text-3); }

/* 业务列表列宽（按字段特性定宽，避免挤压） */
#bid-table th:nth-child(1), #bid-table td:nth-child(1) { width: 104px; white-space: nowrap; }
#bid-table th:nth-child(2), #bid-table td:nth-child(2) { white-space: normal; }
#bid-table th:nth-child(3), #bid-table td:nth-child(3) { width: 100px; }
#bid-table th:nth-child(4), #bid-table td:nth-child(4) { width: 136px; }
#bid-table th:nth-child(5), #bid-table td:nth-child(5) { width: 88px; }
#bid-table th:nth-child(6), #bid-table td:nth-child(6) { width: 96px; }
#bid-table th:nth-child(7), #bid-table td:nth-child(7) { width: 210px; }
#bid-table th:nth-child(8), #bid-table td:nth-child(8) { width: 124px; white-space: nowrap; }
#bid-table th:nth-child(9), #bid-table td:nth-child(9) { width: 86px; }
#bid-table td:nth-child(7) { font-size: 12.5px; line-height: 1.45; }

/* 承接方式徽标：中性蓝/灰，不占用状态色语义 */
.badge.type { background: #eef2f7; color: #445367; }
.badge.type.direct { background: #f2f4f6; color: #6b7481; }

/* #project-table 列宽与换行统一由 ui.css 管理（与项目承接列表同款式，2026-11-21） */

/* 详情页内嵌表格（无外层 wrap 时也不塌） */
.card > table { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.card > table th { background: #f7f9fb; width: 140px; }
.card > table td { background: var(--surface); }

/* ---------- 状态徽标 ---------- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.doing { background: var(--warn-soft); color: var(--warn); }
.badge.no { background: #f1f3f6; color: var(--text-3); }
.badge.rej { background: var(--danger-soft); color: var(--danger); }

/* ---------- 页签 ---------- */
.tabs {
  display: flex;
  gap: 2px;
  margin: 18px 0 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tab-btn {
  height: auto;
  padding: 9px 14px 11px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
}
.tab-btn:hover { background: transparent; color: var(--text); border-bottom-color: var(--border-strong); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
  background: transparent;
}
.tab-panel { margin-top: 16px; }

/* ---------- 状态步骤条 ---------- */
.approval-bar, .claim-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-2);
}
.claim-bar strong { color: var(--text); font-weight: 600; }
.flow-step {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-sub);
  color: var(--text-2);
  white-space: nowrap;
}
.flow-step.passed {
  background: var(--primary-soft);
  border-color: #c9d8e8;
  color: var(--primary);
  font-weight: 500;
}
.flow-step.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
}
.flow-step.todo { color: var(--text-3); }
.flow-arrow { color: #c6ccd5; font-size: 12px; }
.approval-bar .muted { margin-left: auto; }

/* ---------- 其它 ---------- */
.attach-link {
  color: var(--primary);
  text-decoration: none;
  margin-right: 10px;
  display: inline-block;
}
.attach-link:hover { text-decoration: underline; }
a { color: var(--primary); }

#snap-preview { line-height: 1.7; }
#snap-preview strong { font-weight: 600; color: var(--text); }

/* 新建承接：分组区块与主表单拉开层次 */
#nb-ann-group, #nb-contract-group { margin-top: 22px; }
#nb-ann-group h3, #nb-contract-group h3 { margin-top: 0; }
#bid-new-box > h3 { margin-bottom: 16px; }
#bid-new-box .form-grid + .form-grid { margin-top: 4px; }

.detail-back { margin-bottom: 12px; }

/* 滚动条 */
.table-wrap::-webkit-scrollbar { height: 10px; }
.table-wrap::-webkit-scrollbar-thumb { background: #d3d8df; border-radius: 5px; }
.table-wrap::-webkit-scrollbar-track { background: #f4f6f8; }

/* 响应式 */
@media (max-width: 1100px) {
  .form-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  main { padding: 18px 20px 40px; }
  .sidebar { width: 190px; flex-basis: 190px; }
}
@media (max-width: 860px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    position: static;
    width: 100%;
    flex: none;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .brand { flex-direction: row; align-items: center; }
  .brand-sub { display: none; }
  .sidebar nav { flex-direction: row; gap: 4px; }
  .sidebar-foot { display: none; }
  .nav-btn { width: auto; white-space: nowrap; }
  .nav-btn.active::before { display: none; }
}

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .toolbar input { width: 100%; }
  main { padding: 16px 14px 40px; }
}

/* 详情模式：隐藏列表工具条，聚焦当前记录 */
#view-bid.detail-mode .toolbar,
#view-bid.detail-mode #bid-new-box,
#view-projects.detail-mode .toolbar,
#view-projects.detail-mode #project-form-box { display: none; }

/* 操作列吸附右侧：横向滚动时始终可见 */
#bid-table th:last-child, #bid-table td:last-child,
#project-table th:last-child, #project-table td:last-child,
#fin-table th:last-child, #fin-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--surface);
  border-left: 1px solid #f0f2f5;
  box-shadow: -8px 0 10px -10px rgba(16, 24, 40, .18);
}
#bid-table th:last-child, #project-table th:last-child, #fin-table th:last-child {
  background: var(--surface-sub);
  z-index: 3;
}
tbody tr:hover td:last-child { background: #f8fafc; }

/* 详情模式：连列表表格一起隐藏，只留当前记录 */
#view-bid.detail-mode > .table-wrap,
#view-projects.detail-mode > .table-wrap { display: none; }

/* 空状态 */
td.empty {
  padding: 56px 16px;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
  line-height: 2;
  background: var(--surface);
}
td.empty:hover { background: var(--surface); }

/* 长文本单行省略 */
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 附件预览弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
.modal-box {
  position: relative;
  width: min(1080px, 92vw);
  height: min(82vh, 900px);
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-sub);
}
.modal-title { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.modal-actions .attach-link { margin: 0; font-size: 12.5px; }
.modal-body { flex: 1; min-height: 0; overflow: auto; background: #f7f8fa; }
.att-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.att-imgwrap { display: flex; align-items: center; justify-content: center; padding: 16px; min-height: 100%; }
.att-img { max-width: 100%; max-height: 72vh; display: block; background: #fff; }
.att-text {
  margin: 0; padding: 18px 20px; background: #fff; min-height: 100%;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word; color: var(--text);
}
.att-doc { background: #fff; padding: 28px 40px; min-height: 100%; font-size: 13px; line-height: 1.85; color: var(--text); }
.att-doc h1, .att-doc h2, .att-doc h3 { margin: 18px 0 10px; font-size: 15px; }
.att-doc p { margin: 8px 0; }
.att-doc table { width: auto; border-collapse: collapse; margin: 12px 0; }
.att-doc td, .att-doc th { border: 1px solid var(--border); padding: 6px 10px; font-size: 12.5px; }
.att-sheet-title { margin: 0; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }
.att-table { background: #fff; overflow: auto; padding: 0 0 12px; }
.att-table table { border-collapse: collapse; }
.att-table td, .att-table th { border: 1px solid var(--border); padding: 5px 10px; font-size: 12.5px; white-space: nowrap; }
.att-note { padding: 60px 20px; text-align: center; color: var(--text-2); background: #fff; min-height: 100%; }

/* 附件链接胶囊：名称 + 下载图标 */
.att-chip { display: inline-flex; align-items: center; gap: 2px; margin-right: 10px; }
.att-name { color: var(--primary); text-decoration: none; }
.att-name:hover { text-decoration: underline; }
.att-dl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; color: var(--text-3);
  text-decoration: none; font-size: 12px; background: #f1f3f6;
}
.att-dl:hover { background: var(--primary-soft); color: var(--primary); }

/* PDF 逐页渲染 */
.att-pdf-wrap { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.att-pdf-holder { position: relative; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.att-pdf-page { display: block; max-width: 100%; height: auto; }
.att-pdf-tag {
  position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: var(--text-3);
  background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 4px;
}

/* ============ 尺寸放大（14px 基准，结构与控件同步加大） ============ */
body { font-size: 15px; line-height: 1.62; }

.sidebar { width: 248px; flex-basis: 248px; padding: 24px 14px 20px; gap: 26px; }
.brand-name { font-size: 17px; }
.brand-name::before { height: 18px; }
.brand-sub { font-size: 12.5px; }
.nav-btn { height: 48px; font-size: 16px; gap: 12px; padding: 0 13px; }
.nav-btn .nav-ico { font-size: 13px; flex: 0 0 21px; width: 21px; }
.sidebar-foot { font-size: 12.5px; }

main { padding: 26px 32px 60px; }
h2 { font-size: 18px; margin: 6px 0 18px; }
h3 { font-size: 14.5px; padding-bottom: 11px; margin-bottom: 15px; }
.muted { font-size: 12.5px; }

.toolbar { gap: 11px; margin-bottom: 15px; }
.toolbar input { width: 300px; }
.toolbar select { min-width: 160px; }
input, select, textarea { height: 38px; font-size: 14.5px; padding: 0 11px; }
textarea { min-height: 70px; padding: 9px 11px; }
.form-grid { gap: 15px 19px; }
.form-grid label { font-size: 12.5px; gap: 7px; }
button { height: 36px; font-size: 14px; padding: 0 15px; }
.toolbar button { height: 36px; }
td button { height: 29px; font-size: 13px; padding: 0 11px; }

table { font-size: 14.5px; }
table.biz { min-width: 1080px; }
th { font-size: 13px; padding: 13px 15px; }
td { padding: 15px 15px; }
.card { padding: 19px; }
.badge { font-size: 12.5px; padding: 3px 9px; }

.tabs { margin-top: 19px; }
.tab-btn { font-size: 13.5px; padding: 10px 15px 12px; }
.approval-bar, .claim-bar { font-size: 13px; padding: 15px 17px; gap: 9px; }
.flow-step { font-size: 13px; padding: 7px 13px; }
td.empty { font-size: 14px; padding: 60px 16px; }

.modal-head { padding: 13px 17px; }
.modal-title { font-size: 13.5px; }
.att-doc { font-size: 13.5px; padding: 30px 42px; }
.att-table td, .att-table th { font-size: 12.5px; padding: 6px 11px; }

/* 列宽重新配比：保证 1440 宽度下不出现横向滚动 */
#bid-table th:nth-child(1), #bid-table td:nth-child(1) { width: 108px; }
#bid-table th:nth-child(3), #bid-table td:nth-child(3) { width: 96px; }
#bid-table th:nth-child(4), #bid-table td:nth-child(4) {
  width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#bid-table th:nth-child(5), #bid-table td:nth-child(5) { width: 88px; }
#bid-table th:nth-child(6), #bid-table td:nth-child(6) { width: 96px; }
#bid-table th:nth-child(7), #bid-table td:nth-child(7) { width: 190px; }
#bid-table th:nth-child(8), #bid-table td:nth-child(8) { width: 120px; }
#bid-table th:nth-child(9), #bid-table td:nth-child(9) { width: 86px; }

@media (max-width: 1100px) {
  .sidebar { width: 200px; flex-basis: 200px; }
  main { padding: 20px 22px 48px; }
}

/* 两行截断（项目名称） */
.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

/* 录入页：附件行内预览链接 */
.att-inline { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.att-inline .att-name { font-size: 13px; }

/* ============ 表单一行四列（紧凑排版） ============ */
.form-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 13px 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid .span-4 { grid-column: span 4; }

@media (max-width: 1400px) {
  .form-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .form-grid .span-2 { grid-column: span 2; }
  .form-grid .span-3 { grid-column: span 3; }
  .form-grid .span-4 { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .form-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .form-grid .span-2, .form-grid .span-3 { grid-column: span 2; }
  .form-grid .span-4 { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-3, .form-grid .span-4 { grid-column: 1 / -1; }
}

/* 表单承接方式提示（替代下拉选择） */
.form-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--text-2);
  font-size: 12.5px;
}
.form-mode strong { color: var(--primary); font-weight: 600; }

/* 子栅格：日期 / 保证金字段独立成行 */
.sub-grid-3, .sub-grid-4 { display: grid; gap: 13px 16px; }
.sub-grid-3 { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
.sub-grid-4 { grid-template-columns: repeat(4, minmax(160px, 1fr)); }
@media (max-width: 1100px) {
  .sub-grid-3, .sub-grid-4 { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}
@media (max-width: 720px) {
  .sub-grid-3, .sub-grid-4 { grid-template-columns: 1fr; }
}

/* 长文本字段：内容多时自动换行并增高 */
textarea.auto-grow {
  min-height: 66px;
  height: auto;
  resize: none;
  overflow: hidden;
  line-height: 1.55;
  padding: 8px 11px;
}
.form-grid { row-gap: 16px; }
.form-grid label { align-items: stretch; }

/* 同一行字段高度对齐：控件随行高拉伸 */
.form-grid { align-items: stretch; }
.form-grid > label { display: flex; flex-direction: column; }
.form-grid > label > input,
.form-grid > label > select,
.form-grid > label > textarea { flex: 1 1 auto; }
.form-grid > label > input,
.form-grid > label > select { min-height: 38px; }
.form-grid .sub-grid-3 > label,
.form-grid .sub-grid-4 > label { display: flex; flex-direction: column; }

/* 两列子栅格（日期行） */
.sub-grid-2 { display: grid; gap: 13px 16px; grid-template-columns: repeat(2, minmax(160px, 1fr)); }
@media (max-width: 720px) { .sub-grid-2 { grid-template-columns: 1fr; } }

/* 五列子栅格：专业类别 / 市 / 区县 / 报名截止 / 递交截止 同处一行 */
.sub-grid-5 { display: grid; gap: 13px 16px; grid-template-columns: 1.1fr 1.1fr 1.1fr 1fr 1fr; }
@media (max-width: 1280px) { .sub-grid-5 { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }
@media (max-width: 720px) { .sub-grid-5 { grid-template-columns: 1fr; } }

/* 同一行的控件文字统一上下居中（含多行框） */
.form-grid > label > input,
.form-grid > label > select,
.form-grid > label > textarea { align-content: center; }
textarea.auto-grow { display: block; padding-top: 0; padding-bottom: 0; }

/* 附件删除小链接 */
.att-del {
  margin-left: 6px;
  font-size: 12px;
  color: var(--danger);
  text-decoration: none;
}
.att-del:hover { text-decoration: underline; }

/* 费用多行录入表 */
.exp-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.exp-table th { background: var(--surface-sub); font-size: 12.5px; padding: 10px 12px; }
.exp-table td { padding: 8px 12px; border-bottom: 1px solid #eff1f4; }
.exp-table input, .exp-table select { height: 34px; }
.exp-table tr:last-child td { border-bottom: none; }

/* 费用录入表：加大间距，视觉更舒展 */
.exp-table th { padding: 12px 16px; }
.exp-table td { padding: 12px 16px; }
.exp-table input, .exp-table select { height: 36px; }

/* 必填星号 */
.req-mark { color: var(--danger); margin-left: 3px; font-size: 12.5px; }

/* 详情页签吸附顶部，滚动时始终可见 */
.tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--bg);
  padding-top: 6px;
}

/* 承接列表（8 列）列宽配平：其余空间全部留给项目名称 */
#bid-table th:nth-child(1), #bid-table td:nth-child(1) { width: 138px; white-space: nowrap; }
#bid-table th:nth-child(3), #bid-table td:nth-child(3) { width: 84px; }
#bid-table th:nth-child(4), #bid-table td:nth-child(4) { width: 150px; }
#bid-table th:nth-child(5), #bid-table td:nth-child(5) { width: 88px; }
#bid-table th:nth-child(6), #bid-table td:nth-child(6) { width: 88px; }
#bid-table th:nth-child(7), #bid-table td:nth-child(7) { width: 210px; }
#bid-table th:nth-child(8), #bid-table td:nth-child(8) { width: 80px; }
#bid-table th:nth-child(2), #bid-table td:nth-child(2) { white-space: normal; }

/* 项目列表列宽与换行统一由 ui.css 管理（与项目承接列表同款式，2026-11-21） */

/* 组织机构 */
.org-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 16px; }
.org-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eff1f4; font-size: 14px; }
.org-item:last-child { border-bottom: none; }
@media (max-width: 900px) { .org-grid { grid-template-columns: 1fr; } }

/* 人员表操作按钮更紧凑 */
#staff-groups td:last-child { white-space: nowrap; }
#staff-groups td button { padding: 0 9px; margin-right: 4px; }

/* 页面顶部切换器 */
.page-switch { display: flex; gap: 6px; margin-bottom: 16px; }
.ps-btn {
  height: 34px; padding: 0 18px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); border-radius: 6px; cursor: pointer;
}
.ps-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }

/* 折叠箭头更清晰 */

/* 岗位权限配置面板 */
.perm-panel-box { padding: 4px 0 2px; }
.perm-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.perm-head strong { font-size: 14px; }
.perm-panel { display: flex; flex-wrap: wrap; gap: 10px; }
.perm-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 13.5px; color: var(--text-2);
  transition: all .15s; user-select: none;
}
.perm-item:hover { border-color: #b9c0ca; }
.perm-item input {
  width: 16px !important; height: 16px !important; flex: 0 0 16px !important;
  margin: 0; accent-color: var(--primary); cursor: pointer;
}
.perm-item:has(input:checked) {
  background: var(--primary-soft); border-color: #c9d8e8; color: var(--primary); font-weight: 500;
}
.perm-approve:has(input:checked) { background: var(--warn-soft); border-color: #ecd6a8; color: var(--warn); }
.perm-actions { margin-top: 16px; display: flex; gap: 8px; }

/* 人员调动弹窗 */
.modal-box.modal-sm { max-height: 92vh; }
.tf-grid { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 16px 22px; }
.tf-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.tf-grid label input, .tf-grid label select { height: 38px; font-size: 14px; }
.tf-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 720px) { .tf-grid { grid-template-columns: 1fr; } }

/* 财务汇总卡片 */
.fin-summary { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.fin-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; }
.fin-card .fin-num { font-size: 20px; font-weight: 600; color: var(--text); margin: 4px 0 2px; }

/* 财务待收款库列宽（11 列：勾选/类型/承接编号/项目/建设单位/阶段/金额/应收日期/开票/收款/操作） */
#fin-table { width: 100%; min-width: 1400px; table-layout: fixed; }
#fin-table th:nth-child(1), #fin-table td:nth-child(1) { width: 40px; text-align: center; }
#fin-table th:nth-child(2), #fin-table td:nth-child(2) { width: 90px; white-space: nowrap; }
#fin-table th:nth-child(3), #fin-table td:nth-child(3) { width: 144px; white-space: nowrap; }
#fin-table th:nth-child(4), #fin-table td:nth-child(4) { width: 176px; }
#fin-table th:nth-child(5), #fin-table td:nth-child(5) { width: 130px; }
#fin-table th:nth-child(6), #fin-table td:nth-child(6) { width: 96px; white-space: nowrap; }
#fin-table th:nth-child(7), #fin-table td:nth-child(7) { width: 112px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#fin-table th:nth-child(8), #fin-table td:nth-child(8) { width: 112px; white-space: nowrap; }
#fin-table th:nth-child(9), #fin-table td:nth-child(9) { width: 196px; }
#fin-table th:nth-child(10), #fin-table td:nth-child(10) { width: 132px; white-space: nowrap; }
#fin-table th:nth-child(11), #fin-table td:nth-child(11) { width: 186px; white-space: nowrap; }
#fin-table td.ck, #fin-table th.ck { padding-left: 10px; padding-right: 0; }
#fin-table input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }
#fin-table td:nth-child(9) .inv-nos { cursor: pointer; color: var(--primary); line-height: 1.5;
  font-size: 12px; letter-spacing: .1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fin-table td:nth-child(9) .inv-files { cursor: pointer; line-height: 1.5; font-size: 11.5px; }
#fin-table td:nth-child(9) .inv-files:hover { text-decoration: underline; }
#fin-table td:nth-child(9) .inv-nos:hover { text-decoration: underline; }

/* 收款进度维护 */
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-head button { height: 28px; font-size: 12.5px; padding: 0 10px; }

/* 运行轨迹时间轴 */
.tl-meta { font-size: 12.5px; color: var(--text-2); background: var(--surface-sub); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.tl-item { position: relative; padding: 0 0 18px 22px; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: -6px; width: 1px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #c6ccd5; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.tl-item.tl-done .tl-dot { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.tl-item.tl-doing .tl-dot { background: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.tl-item.tl-warn .tl-dot { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.tl-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-title { font-size: 13.5px; font-weight: 500; color: var(--text); margin: 2px 0 2px; }
.tl-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }

/* 项目轨迹数轴 */
.axis-scroll { overflow-x: auto; padding: 8px 4px 4px; }
.axis-track { display: flex; flex-direction: column; align-items: stretch; min-width: max-content; position: relative; }
/* 每行一条时间基线，节点多时排成 2~3 行 */
.axis-row { display: flex; align-items: flex-end; padding: 0 8px; position: relative; }
.axis-row::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 34px; height: 1px; background: var(--border-strong); }
.axis-row + .axis-row { margin-top: 30px; }

.ax-node { position: relative; width: 158px; flex: 0 0 158px; padding-bottom: 34px; }
.ax-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; min-height: 82px; }
.ax-tip { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ax-title { font-size: 12.5px; font-weight: 500; color: var(--text); margin-top: 2px; line-height: 1.4; }
.ax-desc { font-size: 11.5px; color: var(--text-2); margin-top: 2px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ax-extra { font-size: 11px; color: var(--primary); margin-top: 4px; cursor: help; }
.ax-dot { position: absolute; left: 50%; bottom: 30px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #c6ccd5; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.ax-done .ax-dot { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.ax-doing .ax-dot { background: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.ax-warn .ax-dot { background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.ax-gap { position: relative; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px; }
.ax-gap::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 34px; border-top: 1px dashed var(--border-strong); }
.ax-gap-label { font-size: 11px; color: var(--text-3); background: var(--surface); padding: 0 4px; position: relative; top: 6px; }

/* 关键节点 vs 过程节点 */
.ax-node.ax-primary { width: 196px; flex: 0 0 196px; }
.ax-node.ax-secondary { width: 132px; flex: 0 0 132px; }
.ax-primary .ax-card {
  border-left: 3px solid var(--primary);
  background: #fbfcfe;
  min-height: 104px;
}
.ax-primary .ax-title { font-size: 13px; font-weight: 600; }
.ax-primary .ax-dot { width: 13px; height: 13px; margin-left: -6.5px; bottom: 28px; }
.ax-secondary .ax-card { min-height: 70px; background: var(--surface-sub); }
.ax-secondary .ax-title { font-size: 12px; color: var(--text-2); }
.ax-secondary .ax-dot { width: 7px; height: 7px; margin-left: -3.5px; bottom: 31px; }
.ax-flag {
  display: inline-block; font-size: 10px; color: var(--primary);
  background: var(--primary-soft); border-radius: 3px; padding: 1px 5px; margin-bottom: 4px;
}
.ax-legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-size: 11.5px; color: var(--text-3); }
.ax-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ax-legend .lg-primary { background: var(--primary); }
.ax-legend .lg-secondary { background: #c6ccd5; margin-left: 8px; }

/* 轨迹弹窗：接近全屏 */
.modal-box.modal-full { border-radius: 10px; }
.modal-box.modal-full .modal-body { display: flex; flex-direction: column; }
.modal-box.modal-full .axis-scroll { flex: 1; align-items: flex-start; display: flex; overflow: auto; }
.modal-box.modal-full .axis-track { padding-bottom: 10px; }
.modal-box.modal-full .ax-node.ax-primary { width: 208px; flex: 0 0 208px; }
.modal-box.modal-full .ax-primary .ax-card { min-height: 108px; }
#track-modal .modal-mask { background: rgba(16, 24, 40, .5); }

/* 待收款库筛选区 */
.fin-filters { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
.fin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fin-row input[type="date"] { width: 150px; }
.fin-row input:not([type]) { width: 180px; }
.fin-row select { width: auto; min-width: 168px; }
.fin-ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 22px;
  align-items: start; padding-top: 14px; border-top: 1px dashed var(--border); }
.fin-range { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fin-range > label { font-size: 12.5px; color: var(--text-2); line-height: 1; letter-spacing: .2px; }
.fin-range-ctl { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fin-range-ctl > span { flex: 0 0 auto; font-size: 12.5px; color: var(--text-3); }
.fin-range-ctl input[type="date"] { flex: 1 1 0; min-width: 0; width: auto; }
@media (max-width: 1200px) { .fin-ranges { grid-template-columns: 1fr; } }
.fin-gtable th.num, .fin-gtable td.num { text-align: right; }
.fin-gtable thead th.num { text-align: right; }
.fin-gtable tfoot td { background: #f7f9fc; font-weight: 600; color: var(--text); border-top: 1px solid var(--border); }
.fin-gtable tbody td { color: var(--text); }
.fin-gtable td.fin-gcode { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-hint { font-size: 12px; color: var(--text-3); line-height: 1.7; padding-top: 2px; }

/* 财务待审批表列宽（提交时间/类型/项目/费用类型/金额/垫付人/当前步骤/操作） */
#flow-table { min-width: 1300px; }
#flow-table th:nth-child(1), #flow-table td:nth-child(1) { width: 150px; white-space: nowrap; }
#flow-table th:nth-child(2), #flow-table td:nth-child(2) { width: 84px; }
#flow-table th:nth-child(3), #flow-table td:nth-child(3) { width: 320px; }
#flow-table .flow-proj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#flow-table th:nth-child(4), #flow-table td:nth-child(4) { width: 160px; }
#flow-table th:nth-child(5), #flow-table td:nth-child(5) { width: 112px; text-align: right; font-variant-numeric: tabular-nums; }
#flow-table th:nth-child(6), #flow-table td:nth-child(6) { width: 100px; white-space: nowrap; }
#flow-table th:nth-child(7), #flow-table td:nth-child(7) { width: 168px; }
#flow-table th:nth-child(8), #flow-table td:nth-child(8) { width: 160px; white-space: nowrap; }

/* ==================== 数据看板 ==================== */
.dash-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; }
.dash-lb { font-size: 13px; color: var(--text-2); }
.dash-bar input[type="date"] { width: 160px; }

.dash-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border-strong);
  border-radius: 8px; padding: 14px 16px; }
.kpi-card.blue { border-left-color: var(--primary); }
.kpi-card.loss { border-left-color: #c0392b; }
.kpi-label { font-size: 12.5px; color: var(--text-3); }
.kpi-value { font-size: 21px; font-weight: 600; color: var(--text); margin: 6px 0 4px; letter-spacing: .3px;
  font-variant-numeric: tabular-nums; }
.kpi-value.loss { color: #b02a21; }
.kpi-sub { font-size: 12px; color: var(--text-3); }

.dash-sec { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.dash-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dash-sec-head h3 { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; }
.dash-sec-head .muted { font-size: 12px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-cols > .dash-sec { margin-bottom: 18px; }
@media (max-width: 1280px) { .dash-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-cols { grid-template-columns: 1fr; } }

/* 柱状图 */
.dash-chart { padding: 4px 2px 0; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.chart-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.chart-legend .rev { background: #1f4e79; }
.chart-legend .cost { background: #c9a227; }
.chart-legend .net { background: #1b7f5a; }
.chart-plot { display: flex; align-items: flex-end; gap: 18px; height: 176px; padding: 0 6px 0 2px;
  border-bottom: 1px solid var(--border); overflow-x: auto; }
.chart-col { flex: 0 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.chart-bars i { display: block; width: 13px; border-radius: 2px 2px 0 0; }
.chart-bars .bar-rev { background: #1f4e79; }
.chart-bars .bar-cost { background: #c9a227; }
.chart-bars .bar-net.pos { background: #1b7f5a; }
.chart-bars .bar-net.neg { background: #c0392b; }
.chart-x { font-size: 11.5px; color: var(--text-3); margin-top: 6px; white-space: nowrap; }

/* 迷你条 / 进度条 */
.mini-bar { height: 7px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.mini-bar > i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.mini-bar.warn > i { background: #c9a227; }
.prog-wrap { display: flex; align-items: center; gap: 8px; }
.prog-wrap .mini-bar { flex: 1 1 auto; min-width: 40px; }
.prog-wrap span { font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 看板表格 */
.dash-table { min-width: 0; width: 100%; table-layout: fixed; }
.dash-table th, .dash-table td { font-size: 13px; padding: 9px 10px; }
.dash-table th { white-space: nowrap; }
.dash-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 亏损/负数用红，正数保持常规色 */
.dash-table td.neg { color: #b02a21; }
.dash-table td.pos { color: var(--text); }
.dash-table tfoot td { background: #f7f9fc; font-weight: 600; border-top: 1px solid var(--border); }
.dash-sec .table-wrap { overflow-x: auto; }

.dash-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.dash-form input[type="month"] { width: 160px; }
.dash-form select { width: 150px; flex: 0 0 auto; }
.dash-form #pe-amount { width: 150px; }
.dash-form #pe-note { width: 260px; }

.dash-note ul { margin: 0; padding-left: 18px; line-height: 1.9; font-size: 12.5px; color: var(--text-2); }
.dash-note li b { color: var(--text); }

/* ==================== 合并开票 ==================== */
.recv-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; flex-wrap: wrap; }
.recv-bar .muted { font-size: 12.5px; }
.recv-sel-count { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.recv-sel-count.ok { color: var(--primary); font-weight: 600; }
.recv-sel-count.warn { color: var(--danger); font-weight: 600; }

.modal-box.inv-box { width: min(1240px, 96vw); height: auto; max-height: 92vh; }
.inv-box .modal-body { background: var(--surface); padding: 18px 22px; }
.inv-box .modal-head { padding: 15px 20px; }
.inv-box .modal-title { font-size: 15px; }
.inv-box .modal-foot { padding: 14px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px;
  border-top: 1px solid var(--border); background: var(--surface-sub); }
.inv-summary { background: var(--surface-sub); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 16px; }
.inv-sum-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13.5px; line-height: 2.1; }
.inv-sum-line .muted { font-size: 12.5px; margin-right: 2px; }
.inv-sum-line b { font-weight: 600; color: var(--text); margin-right: 24px; }
.inv-sum-line b:last-child { margin-right: 0; }
.inv-stages { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.inv-chip { font-size: 12px; background: var(--primary-soft); color: var(--primary);
  border-radius: 12px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.inv-table { min-width: 0; width: 100%; table-layout: fixed; }
.inv-table th, .inv-table td { padding: 9px 10px; font-size: 13.5px; }
.inv-table input:not([type="file"]) { width: 100%; height: 38px; font-size: 14px; padding: 0 10px; }
.inv-table input[type="file"] { width: 100%; font-size: 12.5px; }
.inv-file-tip { font-size: 11.5px; margin-top: 4px; line-height: 1.5; word-break: break-all; }
.inv-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.inv-actions .muted { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.inv-tip { font-size: 12px; margin-top: 10px; line-height: 1.7; }
.ok-tip { color: var(--ok); font-weight: 600; }
.warn-tip { color: var(--danger); font-weight: 600; }

/* 开票校验区 */
.inv-check { margin-top: 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-sub); padding: 10px 14px; }
.inv-chk-title { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.inv-chk-title .muted { font-weight: 400; margin-left: 6px; font-size: 11.5px; }
.inv-chk-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; line-height: 1.9; }
.inv-chk-lb { flex: 0 0 56px; color: var(--text-3); font-size: 12.5px; }
.inv-chk-val { flex: 1 1 auto; }
.inv-chk-val .muted { font-size: 12px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.chk { font-weight: 600; margin-right: 6px; }
.chk.ok { color: var(--ok); }
.chk.bad { color: var(--danger); }
.chk.na { color: var(--text-3); font-weight: 400; }
.inv-table .inv-buyer { width: 100%; }

/* 阶段成果回传区（应收 / 开票 / 收款） */
#report-table td { vertical-align: top; }
#report-table .po-cell { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; line-height: 1.7; }
#report-table .po-cell + .po-cell { margin-top: 2px; }
.inv-link { color: var(--primary); font-size: 12px; text-decoration: none; font-variant-numeric: tabular-nums; }
.inv-link:hover { text-decoration: underline; }
#report-table td:nth-child(7) { text-align: right; font-variant-numeric: tabular-nums; }

/* 换行处的时间间隔：只保留一个小间隔与天数标签 */
.ax-gap-break::before { left: 4px; right: 4px; }
.ax-gap-break .ax-gap-label { top: 4px; }
