/* ============ 费用结算系统 - 全局样式 ============ */
:root {
  --ink-strong: #12201e;
  --ink: #263634;
  --ink-soft: #5c6f6c;
  --ink-faint: #8fa3a0;
  --brand: #0d3b39;
  --brand-deep: #082b29;
  --brand-soft: #e3efec;
  --accent: #e08a2e;
  --accent-soft: #fbeedb;
  --bg: #f2f5f4;
  --panel: #ffffff;
  --line: #e2e9e7;
  --ok: #1c7c54;
  --ok-soft: #e4f3ec;
  --warn: #b7791f;
  --warn-soft: #fdf3dc;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(13, 59, 57, 0.08), 0 6px 20px rgba(13, 59, 57, 0.06);
  /* v7.38 工作区顶部锁定区域：--lock-h 锁定区域高度（可调整）；--lock-divider 渐变分割线位置（固定不动） */
  --lock-h: 104px;
  --lock-divider: 94px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }

.app-shell { display: flex; min-height: 100vh; }

/* ============ 侧栏 ============ */
.sidebar {
  width: 236px; flex: 0 0 236px;
  background: linear-gradient(180deg, #0d3b39 0%, #0a322f 100%);
  color: #dce9e6;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: #fff; color: #fff;
  display: grid; place-items: center; overflow: hidden;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: 0.5px; white-space: nowrap; }
.brand span { display: block; color: #9fc0bb; font-size: 11px; margin-top: 2px; line-height: 1.3; }

.nav-list { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.app-version { padding: 10px 16px 14px; font-size: 11px; color: #6f8d87; text-align: center; flex: none; }
.nav-group { margin-top: 14px; }
.nav-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.6px;
  color: #8fb3ad; padding: 2px 10px 8px; text-transform: uppercase;
  cursor: pointer; user-select: none; border-radius: 6px;
}
.nav-group-title:hover { color: #c6d9d5; }
.nav-group-title .nav-group-arrow {
  font-size: 11px; color: #6f8d87; transition: transform 0.18s ease;
  flex: 0 0 auto; line-height: 1;
}
.nav-group.collapsed .nav-group-title .nav-group-arrow { transform: rotate(-90deg); }
.nav-group.collapsed .nav-item { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; color: #d5e5e1; font-size: 15px; font-weight: 600;
  padding: 10px 10px; border-radius: 8px; cursor: pointer;
  text-align: left; margin: 1px 0; transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.is-active { background: var(--accent); color: #fff; font-weight: 700; }
.nav-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ============ 工作区 ============ */
.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.page-heading { flex: 1; min-width: 0; }
.page-heading p { margin: 0; font-size: 12px; color: var(--ink-faint); }
.page-heading h1 { margin: 0; font-size: 18px; color: var(--ink-strong); }
.topbar-account { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.topbar-account .account-name { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.button-sm { padding: 5px 10px; font-size: 12px; }
.icon-button {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.icon-button:hover { background: var(--brand-soft); }
.mobile-menu { display: none; }
.content { padding: 22px 24px 40px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ============ 概览 ============ */
.hero-panel {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: linear-gradient(120deg, #0d3b39, #15534f);
  color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero-panel .eyebrow { color: #8fc4ba; font-size: 12px; letter-spacing: 1px; }
.hero-panel h2 { margin: 6px 0 4px; font-size: 22px; }
.hero-panel p { margin: 0; color: #c3ddd8; font-size: 13px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .button { background: var(--accent); color: #fff; border: 0; }
.hero-actions .button:hover { background: #cb7c20; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.metric-card > span { font-size: 12.5px; color: var(--ink-soft); }
.metric-card strong { display: block; font-size: 24px; color: var(--ink-strong); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.metric-card small { color: var(--ink-faint); }
.metric-card.accent { background: var(--brand); border-color: var(--brand); color: #fff; }
.metric-card.accent > span { color: #9fc0bb; }
.metric-card.accent strong { color: #fff; }
.metric-card.accent small { color: #9fc0bb; }

.dashboard-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.eyebrow { font-size: 11.5px; letter-spacing: 1px; color: var(--ink-faint); text-transform: uppercase; display: block; }
.panel-heading h3 { margin: 4px 0 0; font-size: 16px; color: var(--ink-strong); }
.status-chip { font-size: 11.5px; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.status-chip.muted { background: #eef1f0; color: var(--ink-soft); }
.status-chip.success { background: var(--ok-soft); color: var(--ok); }
.status-chip.warn { background: var(--warn-soft); color: var(--warn); }
.status-chip.danger { background: var(--danger-soft); color: var(--danger); }
.status-chip.pending { background: var(--warn-soft); color: var(--warn); }
.file-upload-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.input-file { font-size: 12.5px; color: var(--ink-soft); max-width: 260px; }
.file-name { font-size: 12.5px; color: var(--ink); }
.pdf-frame { width: 100%; height: 56vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.file-view { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.file-view-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.file-view-head .nav-icon { width: 15px; height: 15px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 3px; }
.detail-grid span { font-size: 12px; color: var(--ink-soft); }
.detail-grid b { font-size: 13px; color: var(--ink); font-weight: 600; word-break: break-all; }
.doc-content { margin-top: 14px; }
.doc-content span { font-size: 12px; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.doc-content pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; background: #f6f8f7; border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: 200px; overflow: auto; }
.import-file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto; }
.import-file-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.import-file-item .nav-icon { width: 15px; height: 15px; flex: none; }
.import-file-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-file-item b { color: var(--ink-soft); font-weight: 500; font-size: 12px; }

.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.process-list li:last-child { border-bottom: 0; }
.step-number {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.process-list li.done .step-number { background: var(--ok); color: #fff; }
.process-list strong { display: block; font-size: 13.5px; color: var(--ink-strong); }
.process-list small { color: var(--ink-soft); }
.process-list .nav-icon { margin-left: auto; color: var(--ink-faint); }
.empty-visual { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.empty-visual .nav-icon { width: 22px; height: 22px; }

/* ============ 按钮 ============ */
.button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; cursor: pointer;
  font-family: inherit; transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button .nav-icon { width: 15px; height: 15px; }
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--brand-deep); }
.button-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.button-secondary:hover:not(:disabled) { background: var(--brand-soft); }
.button-quiet { background: none; color: var(--ink); border-color: var(--line); }
.button-quiet:hover:not(:disabled) { background: var(--brand-soft); }
.button-danger-quiet { background: none; color: var(--danger); border-color: #f0c4bd; }
.button-danger-quiet:hover:not(:disabled) { background: var(--danger-soft); }
.button-small { padding: 5px 10px; font-size: 12px; }
.button-block { width: 100%; justify-content: center; }

/* ============ 表单 ============ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field > span { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 13.5px; font-family: inherit; color: var(--ink-strong); background: #fff;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,59,57,0.12);
}
.form-field input[readonly] { background: #f4f7f6; color: var(--ink-soft); }
.form-hint { font-size: 12px; color: var(--ink-faint); }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.checkbox-card {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px;
  background: #fff; transition: border-color 0.15s, background 0.15s;
}
.checkbox-card:hover { border-color: var(--brand); }
.checkbox-card input { accent-color: var(--brand); }
.checkbox-card.checked { background: var(--brand-soft); border-color: var(--brand); }

/* ============ 月份多选 chips ============ */
.month-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 36px; }
.month-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 12.5px;
  background: #fff; transition: border-color 0.15s, background 0.15s;
}
.month-chip:hover { border-color: var(--brand); }
.month-chip input { accent-color: var(--brand); margin: 0; }
.month-chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }

/* ============ 工具栏 / 筛选 ============ */
.section-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-btns { display: inline-flex; gap: 8px; align-items: center; }
.section-toolbar h2 { margin: 4px 0 0; font-size: 20px; color: var(--ink-strong); }
.section-toolbar p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.filter-bar {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.filter-bar .form-field { min-width: 150px; }

/* ============ 通用筛选行 / 卡片头部（间距优化） ============ */
.filter-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.filter-row .field { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; margin-bottom: 0; }
.filter-row .field > span { white-space: nowrap; font-size: 13px; color: var(--ink-soft); flex-shrink: 0; line-height: 1; }
.filter-row .input { flex: none; width: 180px; min-width: 0; }
/* v7.40 时间筛选单独一排 */
.filter-row .time-range { flex: 1 1 100%; min-width: 100%; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-row-spaced { gap: 22px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.card-heading h3 { margin: 0; }
.card-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ============ 表格 ============ */
.table-wrap { overflow: auto; max-height: 66vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table th, .data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.data-table th { background: #f7faf9; color: var(--ink-soft); font-weight: 600; font-size: 12px; position: sticky; top: 0; z-index: 1; }
/* 冻结前 3 列（序号/身份证号/姓名）：横向滚动时保持固定 */
table.data-table.freeze-3 thead th:nth-child(-n+3),
table.data-table.freeze-3 tbody td:nth-child(-n+3) { position: sticky; left: 0; z-index: 2; background: var(--panel); }
table.data-table.freeze-3 thead th:nth-child(-n+3) { z-index: 3; background: #f7faf9; top: 0; }
table.data-table.freeze-3 thead th:nth-child(1), table.data-table.freeze-3 tbody td:nth-child(1) { min-width: 56px; max-width: 56px; }
table.data-table.freeze-3 thead th:nth-child(2), table.data-table.freeze-3 tbody td:nth-child(2) { left: 56px; min-width: 170px; max-width: 170px; }
table.data-table.freeze-3 thead th:nth-child(3), table.data-table.freeze-3 tbody td:nth-child(3) { left: 226px; min-width: 96px; max-width: 96px; }
table.data-table.freeze-3 tbody tr:hover td:nth-child(-n+3) { background: #f8fbfa; }
/* 冻结左 3 列 + 最右 1 列（序号/姓名/身份证固定，最右操作列固定） */
table.data-table.freeze-l3r1 thead th:nth-child(-n+3),
table.data-table.freeze-l3r1 tbody td:nth-child(-n+3) { position: sticky; left: 0; z-index: 2; background: var(--panel); }
table.data-table.freeze-l3r1 thead th:nth-child(-n+3) { z-index: 3; background: #f7faf9; top: 0; }
table.data-table.freeze-l3r1 thead th:nth-child(1), table.data-table.freeze-l3r1 tbody td:nth-child(1) { min-width: 48px; max-width: 48px; }
table.data-table.freeze-l3r1 thead th:nth-child(2), table.data-table.freeze-l3r1 tbody td:nth-child(2) { left: 48px; min-width: 96px; max-width: 96px; }
table.data-table.freeze-l3r1 thead th:nth-child(3), table.data-table.freeze-l3r1 tbody td:nth-child(3) { left: 144px; min-width: 176px; max-width: 176px; }
table.data-table.freeze-l3r1 thead th:last-child, table.data-table.freeze-l3r1 tbody td:last-child { position: sticky; right: 0; z-index: 2; background: var(--panel); }
table.data-table.freeze-l3r1 thead th:last-child { z-index: 3; background: #f7faf9; top: 0; }
table.data-table.freeze-l3r1 tbody tr:hover td:nth-child(-n+3), table.data-table.freeze-l3r1 tbody tr:hover td:last-child { background: #f8fbfa; }
/* 批量模式：勾选列 + 序号/姓名/身份证 固定，最右操作列固定 */
table.data-table.freeze-l3r1-batch thead th:nth-child(-n+4),
table.data-table.freeze-l3r1-batch tbody td:nth-child(-n+4) { position: sticky; left: 0; z-index: 2; background: var(--panel); }
table.data-table.freeze-l3r1-batch thead th:nth-child(-n+4) { z-index: 3; background: #f7faf9; top: 0; }
table.data-table.freeze-l3r1-batch thead th:nth-child(1), table.data-table.freeze-l3r1-batch tbody td:nth-child(1) { min-width: 48px; max-width: 48px; }
table.data-table.freeze-l3r1-batch thead th:nth-child(2), table.data-table.freeze-l3r1-batch tbody td:nth-child(2) { left: 48px; min-width: 48px; max-width: 48px; }
table.data-table.freeze-l3r1-batch thead th:nth-child(3), table.data-table.freeze-l3r1-batch tbody td:nth-child(3) { left: 96px; min-width: 96px; max-width: 96px; }
table.data-table.freeze-l3r1-batch thead th:nth-child(4), table.data-table.freeze-l3r1-batch tbody td:nth-child(4) { left: 192px; min-width: 176px; max-width: 176px; }
table.data-table.freeze-l3r1-batch thead th:last-child, table.data-table.freeze-l3r1-batch tbody td:last-child { position: sticky; right: 0; z-index: 2; background: var(--panel); }
table.data-table.freeze-l3r1-batch thead th:last-child { z-index: 3; background: #f7faf9; top: 0; }
table.data-table.freeze-l3r1-batch tbody tr:hover td:nth-child(-n+4), table.data-table.freeze-l3r1-batch tbody tr:hover td:last-child { background: #f8fbfa; }
.data-table td.l, .data-table th.l { text-align: left; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f8fbfa; }
.data-table tfoot td { background: #f2f7f5; font-weight: 700; color: var(--ink-strong); border-top: 2px solid var(--brand); }
.data-table .num { font-variant-numeric: tabular-nums; }
.row-warn { background: var(--warn-soft); }
.row-danger { background: var(--danger-soft); }

/* ============ 客户卡片 ============ */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.client-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px; }
.client-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.client-card-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.client-avatar {
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: 0 0 auto;
}
.client-card-top strong { display: block; font-size: 15px; color: var(--ink-strong); }
.client-card-top span { font-size: 12px; color: var(--ink-faint); }
.client-card dl { margin: 14px 0 0; display: grid; gap: 6px; }
.client-card dl > div { display: flex; justify-content: space-between; font-size: 12.5px; }
.client-card dt { color: var(--ink-soft); }
.client-card dd { margin: 0; color: var(--ink-strong); font-weight: 500; text-align: right; }
.client-details { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 6px; }
.client-details p { margin: 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; }
.client-details p span { color: var(--ink-soft); }
.client-card-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ============ 数据中心 ============ */
.import-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.import-card { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--panel); padding: 16px; text-align: center; }
.import-card h3 { margin: 8px 0 2px; font-size: 15px; color: var(--ink-strong); }
.import-card p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-soft); }
.import-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto; }
.import-icon .nav-icon { width: 20px; height: 20px; }
.import-card input[type="file"] { display: none; }
.import-card label.upload-label { cursor: pointer; }

.batch-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: 8px;
}
.batch-item .batch-kind {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.kind-payroll { background: #3a7ca5; }
.kind-social { background: #1c7c54; }
.kind-fund { background: #b7791f; }
.batch-item .batch-meta { flex: 1; min-width: 0; }
.batch-item .batch-meta strong { display: block; font-size: 13.5px; color: var(--ink-strong); }
.batch-item .batch-meta span { font-size: 12px; color: var(--ink-faint); }
.batch-status { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

/* ============ 通知书/单据 ============ */
.notice-doc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; box-shadow: var(--shadow); }
.notice-doc h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: 6px; text-align: center; color: var(--ink-strong); }
.notice-doc .notice-sub { text-align: center; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 12px; }
.notice-doc .notice-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 10px; flex-wrap: wrap; }
.notice-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.notice-total-card { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.notice-total-card span { display: block; font-size: 11.5px; color: var(--ink-soft); }
.notice-total-card strong { font-size: 17px; color: var(--brand); font-variant-numeric: tabular-nums; }
.notice-total-card.highlight { background: var(--accent-soft); }
.notice-total-card.highlight strong { color: #9a6418; }
/* 付款通知书 / 归档详情表格：深青表头白字、合计与说明行浅黄 */
.notice-doc table.data-table thead th { background: var(--brand); color: #fff; font-weight: 700; }
.notice-doc table.data-table.freeze-3 thead th:nth-child(-n+3) { background: var(--brand); color: #fff; }
.notice-doc table.data-table tfoot td { background: #fdf6e3; }
.notice-doc .notice-footnote { margin-top: 10px; font-size: 12px; color: var(--ink-soft); background: #fdf6e3; border: 1px solid #ecd9a8; border-radius: 8px; padding: 8px 12px; }
/* 汇总报表：深青表头、浅黄合计行 */
table.data-table.report-table thead th { background: var(--brand); color: #fff; font-weight: 700; }
table.data-table.report-table tfoot td { background: #fdf6e3; }

/* ============ 计算器 ============ */
.calculator-feature { margin-bottom: 16px; }
.calculator-feature-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.calculator-feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.calculator-feature-icon .nav-icon { width: 22px; height: 22px; }
.calculator-feature-heading h3 { margin: 0; font-size: 17px; color: var(--ink-strong); }
.calculator-feature-heading p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.calculator-columns { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .calculator-columns { grid-template-columns: 1fr; } }
.calculator-input-panel { display: grid; gap: 14px; }
.calculator-input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.calculator-result-area {
  background: #f7faf9; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.calculator-result-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.calculator-result-total span { color: var(--ink-soft); font-size: 13px; }
.calculator-result-total strong { font-size: 26px; color: var(--brand); font-variant-numeric: tabular-nums; }
.calculator-result-total small { display: block; color: var(--ink-faint); font-size: 12px; }
.calculator-formula-line { font-size: 13px; color: var(--ink-soft); background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.calculator-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.calculator-result-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.calculator-result-card span { display: block; font-size: 11.5px; color: var(--ink-soft); }
.calculator-result-card strong { font-size: 17px; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.calculator-result-card small { color: var(--ink-faint); font-size: 11.5px; }
.calculator-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calculator-actions span { font-size: 12px; color: var(--ink-faint); }
.calculator-rules { background: #f7faf9; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.calculator-rules h4 { margin: 2px 0 8px; font-size: 14px; color: var(--ink-strong); }
.calculator-rules ul { margin: 0 0 10px; padding-left: 18px; }
.calculator-rules li { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; }
.calculator-example { background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; color: var(--ink-soft); }
.calculator-example strong { color: var(--ink-strong); }
.inline-alert { display: flex; gap: 8px; border-radius: 8px; padding: 10px 12px; font-size: 12.5px; }
.inline-alert.info { background: var(--brand-soft); color: var(--brand); }
.inline-alert.warn { background: var(--warn-soft); color: var(--warn); }
.inline-alert .nav-icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.inline-alert p { margin: 0; }

/* ============ 图表 ============ */
.chart-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.chart-wrap h3 { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-strong); }

/* ============ 空状态 ============ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.empty-state .empty-visual { margin: 0 auto 12px; }
.empty-state strong { display: block; font-size: 15px; color: var(--ink-strong); margin-bottom: 4px; }
.empty-state p { margin: 0 0 14px; font-size: 13px; }

/* ============ Toast ============ */
.toast-region { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; gap: 8px; }
.toast {
  background: var(--ink-strong); color: #fff; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); max-width: 360px;
  display: flex; gap: 8px; align-items: flex-start; animation: toast-in 0.2s ease;
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.toast.warn { background: #a06a12; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============ 弹窗 ============ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(8,32,30,0.5); z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal {
  background: var(--panel); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; padding: 22px 24px; position: relative;
}
.modal.wide { max-width: 860px; }
.modal-body { max-height: 62vh; overflow-y: auto; }
.modal h3 { margin: 0 0 14px; font-size: 17px; color: var(--ink-strong); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-close { float: right; }
.preview-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.preview-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }
.preview-list table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.preview-list th, .preview-list td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.preview-list th { position: sticky; top: 0; background: #f2f7f5; z-index: 1; }

/* ============ 打印 ============ */
#print-area { display: none; }
@media print {
  body * { visibility: hidden !important; }
  #print-area, #print-area * { visibility: visible !important; }
  #print-area {
    display: block !important; position: absolute; left: 0; top: 0; width: 100%;
    font-size: 12px; color: #000;
  }
  #print-area h2 { text-align: center; letter-spacing: 4px; margin: 0 0 6px; }
  #print-area table { width: 100%; border-collapse: collapse; }
  #print-area th, #print-area td { border: 1px solid #000; padding: 4px 6px; font-size: 11px; text-align: right; }
  #print-area th.l, #print-area td.l { text-align: left; }
  #print-area th { background: #eee !important; -webkit-print-color-adjust: exact; }
  .print-meta { display: flex; justify-content: space-between; margin: 8px 0; }
  .print-foot { margin-top: 14px; display: flex; justify-content: space-between; }
}

/* ============ 归档列表（结算单） ============ */
.archive-list { display: flex; flex-direction: column; gap: 10px; }
.archive-batch { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.archive-batch label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); cursor: pointer; user-select: none; }
.archive-sel-count { font-size: 13px; color: var(--ink-soft); }
.archive-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.archive-check { display: grid; place-items: center; padding: 0 6px; cursor: pointer; }
.archive-check input, .archive-check-all input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.archive-item:has(.archive-check input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.archive-row {
  display: grid; grid-template-columns: 34px 118px 1.1fr 2.2fr 84px 130px 22px; gap: 10px; align-items: center;
  width: 100%; padding: 13px 16px; border: 0; background: transparent; cursor: pointer; text-align: left;
  font-size: 13.5px; color: var(--ink); transition: background 0.15s;
}
.archive-row:hover { background: var(--brand-soft); }
.archive-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-date { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.archive-unit { font-weight: 600; color: var(--ink-strong); }
.archive-name { color: var(--ink); }
.archive-count { color: var(--ink-soft); text-align: right; }
.archive-total { font-weight: 700; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.archive-caret { display: grid; place-items: center; color: var(--ink-faint); transition: transform 0.18s; }
.archive-item.open .archive-caret { transform: rotate(180deg); }
.archive-detail { border-top: 1px solid var(--line); padding: 16px; background: #fafcfb; }
.archive-detail .table-wrap { max-height: 52vh; }
.archive-actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 860px) {
  .archive-row { grid-template-columns: 34px 96px 1fr 22px; }
  .archive-name { grid-column: 3; grid-row: 2; }
  .archive-count, .archive-total { display: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform 0.2s; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .content { padding: 16px; }
}

/* ===== 电子签（线上签署工作台）===== */
.esign-workbench { display: flex; gap: 14px; align-items: stretch; }
.esign-preview { position: relative; flex: 1; min-width: 0; height: 460px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.esign-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.esign-preview .esign-blank { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.esign-mask { position: absolute; inset: 0; z-index: 4; cursor: move; }
.esign-drag { position: absolute; z-index: 5; cursor: move; user-select: none; }
.esign-drag img { pointer-events: none; }
.esign-seal-drag img { width: 96px; height: 96px; opacity: 0.92; }
.esign-sign-drag img { height: 56px; }
.esign-sign-drag .esign-placeholder { border: 1.5px dashed var(--accent); color: var(--accent); padding: 8px 12px; font-size: 12px; background: rgba(255,255,255,0.9); border-radius: 4px; }
.esign-panel { width: 300px; flex: none; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.esign-sec { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.esign-sec h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink-strong); }
.esign-sec .esign-info { margin: 0; font-size: 13px; line-height: 1.9; }
.esign-seal-show img { width: 84px; height: 84px; border: 1px dashed var(--line); border-radius: 6px; object-fit: contain; background: #fff; }
.esign-board-wrap { border: 1px dashed var(--line); border-radius: 6px; background: #fbfdfc; overflow: hidden; }
.esign-board-wrap canvas { display: block; width: 100%; height: 140px; cursor: crosshair; touch-action: none; }
.esign-sec .hint { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-soft); line-height: 1.6; }
.esign-doc-preview { position: relative; height: 420px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.esign-doc-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.esign-doc-preview .esign-blank { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.esign-overlay { position: absolute; z-index: 3; pointer-events: none; }
.esign-stamp-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: #fdecea; color: #c62828; border: 1px solid #f5c6c6; margin-top: 6px; }

/* 招聘管理：操作菜单（点「操作」展开，点外部收起） */
.col-op { text-align: center; white-space: nowrap; }
.op-wrap { position: relative; display: inline-block; }
.op-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 172px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 26px rgba(31,58,95,.16); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.op-menu button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; color: var(--ink); font-size: 13px; padding: 8px 10px; border-radius: 7px; cursor: pointer; text-align: left; }
.op-menu button:hover { background: var(--ink-soft-bg, #eef3f8); }
.op-menu button.danger { color: var(--danger, #d9534f); }
.op-menu button.danger:hover { background: #fdecea; }
.op-menu .nav-icon { width: 15px; height: 15px; }
.hint { font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.card .hint { padding: 10px 16px 14px; margin: 0; }
.status-chip.success { background: var(--ok-soft); color: var(--ok); }
.status-chip.muted { background: var(--line); color: var(--ink-soft); }

/* 招聘管理：职位卡片网格 */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 16px; }
.job-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 2px 8px rgba(31,58,95,.05); }
.job-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-card-head h4 { margin: 0; font-size: 15px; color: var(--ink-strong); }
.job-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.job-card-grid > div { display: flex; flex-direction: column; gap: 2px; }
.job-card-grid span { font-size: 11.5px; color: var(--ink-soft); }
.job-card-grid b { font-size: 13px; color: var(--ink); font-weight: 600; word-break: break-all; }
.job-card-req { border-top: 1px dashed var(--line); padding-top: 10px; }
.job-card-req span { display: block; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 4px; }
.job-card-req p { margin: 0; font-size: 12.5px; color: var(--ink); line-height: 1.7; word-break: break-all; }
.job-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.job-card-actions .button { flex: 1 1 auto; }

/* 工作概览：项目日志 */
.project-log-panel { display: flex; flex-direction: column; gap: 4px; }
.project-log-add { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 4px 0 10px; }
.project-log-add textarea { flex: 1; min-width: 260px; resize: vertical; font-family: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.project-log-add textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,58,95,.08); }
.project-log-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.project-log-item { display: grid; grid-template-columns: 150px 90px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; background: #f7fbfa; border: 1px solid #e3eeea; border-radius: 10px; }
.project-log-item .project-log-meta { display: contents; }
.project-log-item .project-log-meta span { font-size: 12px; color: var(--ink-soft); }
.project-log-item p { margin: 0; font-size: 13.5px; color: var(--ink); line-height: 1.6; word-break: break-all; }
.project-log-empty { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--ink-faint); font-size: 13px; padding: 26px 0; }

/* ===== 面试中心模块 ===== */
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }
.modal-body-wide { max-height: 62vh; overflow-y: auto; }
.intv-pick { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; background: #fbfcfd; }
.intv-group-title { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin: 6px 0 8px; }
.intv-group-title:first-child { margin-top: 0; }
.intv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; margin-bottom: 8px; }
.sel-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); cursor: pointer; padding: 4px 2px; }
.sel-item em { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.ai-cand { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fbfcfd; }
.ai-cand-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ai-cand-head em { font-style: normal; font-size: 11.5px; color: var(--ink-faint); }
.ai-cand p { margin: 6px 0 4px; font-size: 12.5px; color: var(--ink); line-height: 1.6; word-break: break-all; }
.ai-cand .hint { font-size: 12px; }
.ai-cand-actions { margin-top: 8px; }
.ai-dims { margin: 6px 0 4px; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 6px 14px; }
.ai-dim { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.ai-dim > span { width: 56px; flex: none; }
.ai-dim-bar { flex: 1; height: 6px; border-radius: 4px; background: #e7ebf1; overflow: hidden; }
.ai-dim-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #16357A, #1E4FD0); }
.ai-dim b { width: 26px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.ai-pq { margin: 6px 0 4px; padding: 6px 10px; background: #f6f8fb; border-radius: 8px; }
.ai-pq p { margin: 3px 0; font-size: 12.5px; color: var(--ink); line-height: 1.6; }
.ai-sw-wrap { display: flex; gap: 10px; margin: 6px 0 4px; flex-wrap: wrap; }
.ai-sw { flex: 1; min-width: 180px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; }
.ai-sw.good { background: #eef7f2; }
.ai-sw.bad { background: #fdf1ef; }
.ai-sw b { display: block; margin-bottom: 3px; font-size: 12px; }
.ai-sw.good b { color: #1f9d5c; }
.ai-sw.bad b { color: #d9534f; }
.ai-sw ul { margin: 0; padding-left: 16px; }
.ai-sw li { margin: 2px 0; line-height: 1.5; }
.ai-ans { margin: 6px 0 4px; }
.ai-ans summary { cursor: pointer; font-size: 12px; color: var(--brand, #1f6b64); }
.ai-ed-add { margin-top: 6px; }
.link-cell { font-size: 12px; color: var(--brand, #1f6b64); word-break: break-all; }

/* ================================================================
   v6.74 UI 改版（祈信品牌视觉：深蓝渐变 + 蓝紫渐变 + 幕墙背景）
   依据《祈信资质》企业文化与用户确认的效果图落地，覆盖上方旧样式
   ================================================================ */
:root {
  --ink-strong: #16357A;
  --ink: #24354f;
  --ink-soft: #54647f;
  --ink-faint: #8b98b5;
  --brand: #16357A;
  --brand-deep: #12265c;
  --brand-soft: #eaf1ff;
  --accent: #2B5BE0;
  --accent-deep: #1E4FD0;
  --accent-soft: #eaf1ff;
  --brand-grad: linear-gradient(135deg, #1E4FD0, #5B4FE0 60%, #7B4FE8);
  --brand-grad-side: linear-gradient(180deg, #12265c 0%, #16357A 45%, #1E4FD0 135%);
  --brand-gold: #F5C518;
  --brand-orange: #F07A1A;
  --bg: #f4f7fd;
  --panel: #ffffff;
  --line: #e3eaf6;
  --ok: #0e8a5f;
  --ok-soft: #eafaf2;
  --warn: #a67a00;
  --warn-soft: #fff6dd;
  --danger: #c2400a;
  --danger-soft: #fff0e6;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(22, 53, 122, 0.07), 0 6px 22px rgba(22, 53, 122, 0.07);
}

/* 全局字体放大 + 品牌幕墙背景（白膜保证可读性） */
body {
  font-size: 15px;
  background:
    linear-gradient(rgba(246, 249, 253, 0.86), rgba(246, 249, 253, 0.86)),
    url("bg.png") center top / cover no-repeat fixed,
    #eef2f8;
}

/* ===== 登录页（品牌化） ===== */
#login-layer { background: url("bg.png") center/cover no-repeat, #eef2f8; }
#login-layer > div {
  width: min(92vw, 430px);
  background: #fff;
  border-radius: 18px;
  padding: 38px 42px 34px;
  box-shadow: 0 18px 60px rgba(18, 38, 92, 0.16);
  text-align: center;
}
#login-layer .login-brand { margin-bottom: 24px; }
#login-layer .login-logo { width: 200px; height: auto; margin: 0 auto 10px; display: block; border-radius: 10px; }
#login-layer h1 { margin: 0; font-size: 24px; color: #16357A; letter-spacing: 1px; line-height: 1.35; }
#login-layer .login-ver { margin: 4px 0 0; font-size: 13px; color: #8b98b5; letter-spacing: 1px; }
#login-layer .login-slogan {
  margin: 10px auto 0; width: fit-content; background: linear-gradient(90deg, #F7C948, #F5B820);
  color: #4a3a00; font-size: 12.5px; font-weight: 600; padding: 4px 16px; border-radius: 999px; letter-spacing: 3px;
}
#login-layer .login-input {
  width: 100%; height: 46px; border: 1px solid #dbe3f0; border-radius: 10px;
  padding: 0 14px; font-size: 15px; background: #f7fafd; color: #24354f; outline: none; font-family: inherit;
}
#login-layer .login-input:focus { border-color: #2B5BE0; box-shadow: 0 0 0 3px rgba(43, 91, 224, 0.12); background: #fff; }
#login-layer .login-submit { height: 48px; font-size: 17px; letter-spacing: 6px; font-weight: 600; background: var(--brand-grad); box-shadow: 0 8px 22px rgba(43, 91, 224, 0.35); }
#login-layer .login-url { margin: 18px 0 0; font-size: 13px; color: #8b98b5; }
#login-layer .login-url b { color: #F07A1A; font-weight: 600; }

/* ===== 侧栏（深蓝渐变 + 放大 + 醒目导航） ===== */
.sidebar {
  width: 252px; flex: 0 0 252px;
  background: var(--brand-grad-side);
  color: #e8eefc;
  box-shadow: 4px 0 24px rgba(18, 38, 92, 0.25);
}
.brand { gap: 14px; padding: 20px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.brand-mark { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 2px 10px rgba(12, 30, 80, 0.3); }
.brand strong { font-size: 23px; letter-spacing: 1.5px; }
.brand span { font-size: 11px; color: rgba(255, 255, 255, 0.78); margin-top: 3px; }
.app-version { padding: 12px 16px 16px; font-size: 11.5px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.5px; }
.nav-list { padding: 10px 10px 16px; }
.nav-group-title {
  font-size: 15px; font-weight: 800; letter-spacing: 0.8px;
  color: #fff; padding: 4px 10px 9px;
}
.nav-group-title:hover { color: #fff; }
.nav-group-title .nav-group-arrow { font-size: 11px; color: rgba(255, 255, 255, 0.8); }
.nav-item {
  gap: 10px; color: #fff; font-size: 16px; font-weight: 700;
  padding: 11px 12px; border-radius: 9px; margin: 2px 0; letter-spacing: 0.3px;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav-item.is-active { background: #fff; color: #16357A; font-weight: 800; box-shadow: 0 4px 14px rgba(12, 30, 80, 0.25); }
.nav-icon { width: 18px; height: 18px; }

/* ===== 顶栏（透明 + 标题放大 + 账号功能区） ===== */
.topbar {
  background: rgba(255, 255, 255, 0.0);
  border-bottom: 1px solid rgba(227, 234, 246, 0.0);
  padding: 14px 24px 8px;
}
.page-heading p { font-size: 12px; color: var(--ink-faint); }
.page-heading h1 { font-size: 26px; font-weight: 800; color: #16357A; }
.topbar-account { gap: 10px; }
.topbar-account .account-name {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e2e8f4; border-radius: 999px; padding: 6px 16px;
  box-shadow: 0 2px 8px rgba(22, 53, 122, 0.06); font-size: 13.5px; font-weight: 700; color: #16357A;
  max-width: 320px; overflow: hidden; text-overflow: ellipsis;
}
.topbar-account .button-quiet {
  background: #fff; color: #2B5BE0; border-color: #dbe3f0;
  border-radius: 9px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(22, 53, 122, 0.06);
}
.topbar-account .button-quiet:hover { border-color: #2B5BE0; background: #fff; }
.topbar-account .button-quiet[data-admin-logout] { color: #c2400a; }
.topbar-account .button-quiet[data-admin-logout]:hover { border-color: #c2400a; background: #fff6f1; }
.content { padding: 20px 24px 40px; }

/* ===== 品牌渐变主按钮 / 首屏横幅 / 卡片 ===== */
.button-primary { background: var(--brand-grad); box-shadow: 0 4px 14px rgba(43, 91, 224, 0.22); }
.button-primary:hover:not(:disabled) { background: linear-gradient(135deg, #1744c0, #4a41d0 60%, #6a3fd8); }
.button-secondary { color: #2B5BE0; border-color: #2B5BE0; }
.button-secondary:hover:not(:disabled) { background: #eaf1ff; }
.hero-panel {
  background: linear-gradient(120deg, #16357A, #1E4FD0 70%, #5B4FE0);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(22, 53, 122, 0.22);
}
.hero-panel .eyebrow { color: #b9caf5; }
.hero-panel p { color: #c9d6f2; }
.hero-actions .button { background: var(--brand-gold); color: #4a3a00; }
.hero-actions .button:hover { background: #e0ac00; }
.metric-card, .panel, .filter-row, .filter-bar {
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(22, 53, 122, 0.07);
  border-color: #edf1f9;
}
.metric-card strong { font-size: 28px; color: #16357A; }
.metric-card.accent { background: linear-gradient(135deg, #16357A, #1E4FD0); border-color: transparent; }
.metric-card > span { font-size: 13.5px; }
.panel-heading h3, .card-heading h3, .section-toolbar h2 { font-size: 17px; color: #16357A; }
.status-chip.success { background: #eafaf2; color: #0e8a5f; }
.status-chip.warn, .status-chip.pending { background: #fff6dd; color: #a67a00; }
.status-chip.danger { background: #fff0e6; color: #c2400a; }

/* 常用表单控件轻微放大，保持可读性 */
.form-field > span { font-size: 13px; }
.form-field input, .form-field select, .form-field textarea { font-size: 14px; }
.data-table { font-size: 13.5px; }
.data-table th { font-size: 12.5px; color: #54647f; background: #f8fafd; }
.data-table th.l, .data-table td.l { text-align: left; }
.filter-row .field > span { font-size: 13.5px; }
.filter-row .input, .filter-row input, .filter-row select { font-size: 14px; }
.section-toolbar p { font-size: 13.5px; }
.hint { font-size: 12.5px; }
.op-menu button { font-size: 13.5px; }

/* ===== v6.75 点击 Logo 替换品牌 Logo / 个人头像 ===== */
#brand-mark { cursor: pointer; transition: transform 0.15s; }
#brand-mark:hover { transform: scale(1.05); }
#brand-mark img { object-fit: contain; }
.account-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 0 0 1px #dbe3f0, 0 2px 6px rgba(22, 53, 122, 0.12);
  flex: 0 0 auto; background: #eef2f8;
}
.brand-edit-card { border: 1px solid #e3eaf6; border-radius: 12px; padding: 14px 16px; background: #fbfcfe; }
.brand-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.brand-edit-head b { font-size: 14px; color: #16357A; }
.brand-edit-tip { font-size: 11.5px; color: #8b98b5; }
.brand-edit-body { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.brand-edit-body img {
  width: 84px; height: 84px; border-radius: 12px; object-fit: contain;
  background: #fff; border: 1px solid #e3eaf6; flex: 0 0 auto;
}
.brand-edit-body .bd-avatar-preview { border-radius: 50%; object-fit: cover; }
.crop-wrap { position: relative; width: 300px; height: 300px; margin: 14px auto 4px; }
.crop-wrap canvas { display: block; width: 300px; height: 300px; border-radius: 12px; background: #0f1626; touch-action: none; cursor: grab; }
.crop-wrap .crop-ring { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; border-radius: 12px; }

/* ===== v6.76 工作概览再放大 ===== */
.hero-panel { padding: 30px 34px; }
.hero-panel .eyebrow { font-size: 15px; letter-spacing: 1.5px; }
.hero-panel h2 { font-size: 30px; margin: 8px 0 10px; }
.hero-panel p { font-size: 15.5px; line-height: 1.7; }
.hero-actions { gap: 12px; }
.hero-actions .button { font-size: 15px; padding: 11px 22px; }
.metric-grid { gap: 16px; }
.metric-card { padding: 20px 22px; }
.metric-card span { font-size: 15px; }
.metric-card strong { font-size: 34px; }
.metric-card small { font-size: 13px; margin-top: 6px; }
.dashboard-grid { gap: 18px; }
.dashboard-grid .panel { padding: 22px 24px; }
.dashboard-grid .panel-heading h3 { font-size: 19px; }
.dashboard-grid .panel-heading .eyebrow { font-size: 13.5px; }
.process-list strong { font-size: 15px; }
.process-list .step-number { font-size: 13px; }
.ready-panel strong { font-size: 17px; }
.ready-panel p { font-size: 14.5px; }
.ready-panel .button { font-size: 14px; padding: 9px 18px; }
.project-log-add textarea { font-size: 14.5px; }
.project-log-item p { font-size: 14.5px; }
.project-log-item .project-log-meta span { font-size: 13px; }
.project-log-empty { font-size: 14px; }

/* ===== v6.77 工作概览再放大（第二档） ===== */
.hero-panel { padding: 34px 40px; }
.hero-panel .eyebrow { font-size: 16px; }
.hero-panel h2 { font-size: 34px; margin: 10px 0 12px; }
.hero-panel p { font-size: 17px; line-height: 1.75; }
.hero-actions .button { font-size: 16.5px; padding: 13px 26px; }
.metric-card { padding: 26px 28px; }
.metric-card span { font-size: 17px; }
.metric-card strong { font-size: 42px; }
.metric-card small { font-size: 14.5px; margin-top: 8px; }
.dashboard-grid .panel { padding: 26px 28px; }
.dashboard-grid .panel-heading h3 { font-size: 22px; }
.dashboard-grid .panel-heading .eyebrow { font-size: 15px; }
.dashboard-grid .status-chip { font-size: 14px; padding: 6px 14px; }
.process-list { gap: 14px; }
.process-list strong { font-size: 17px; }
.process-list .step-number { font-size: 15px; width: 40px; height: 40px; }
.ready-panel strong { font-size: 20px; }
.ready-panel p { font-size: 16px; line-height: 1.7; }
.ready-panel .button { font-size: 15.5px; padding: 11px 22px; }
.project-log-add textarea { font-size: 16px; }
.project-log-add .button { font-size: 15px; padding: 10px 20px; }
.project-log-item { padding: 12px 16px; }
.project-log-item p { font-size: 16px; }
.project-log-item .project-log-meta span { font-size: 14px; }
.project-log-empty { font-size: 15.5px; padding: 32px 0; }

/* ================================================================
   v6.78 工作概览对齐效果图（v8 定稿）：
   4 张渐变卡片 + 项目日志/待处理事项两栏 + 侧栏底部云端状态与操作人
   ================================================================ */
/* 顶栏：效果图只有大标题 + 右侧功能区，隐藏日期条 */
#today-label { display: none; }
.page-heading h1 { font-size: 26px; font-weight: 800; color: #16357A; }
.topbar { padding: 18px 30px 10px; }
.content { padding: 24px 30px 26px; }

/* 侧栏品牌：大字「祈信企服」+ 小字版本号（效果图顺序） */
.brand strong { font-size: 23px; font-weight: 800; letter-spacing: 1.5px; color: #fff; }
.brand span { font-size: 11px; color: rgba(255, 255, 255, 0.78); margin-top: 3px; letter-spacing: 0.5px; }

/* 侧栏底部 foot：云端状态 + 操作人 */
.sidebar { padding-bottom: 0; }
.sidebar-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 16px 15px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px; color: rgba(255, 255, 255, 0.85);
}
.sidebar-foot .cloud-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 6px #3DD68C; display: inline-block; }
.sidebar-foot #fx-cloud-badge.off .cloud-dot { background: #F5A623; box-shadow: 0 0 6px #F5A623; }
#fx-cloud-badge .cloud-text { color: rgba(255,255,255,.9); }

/* 工作概览：4 张渐变卡片 */
.ov-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0 20px; }
.ov-card {
  background: rgba(255, 255, 255, 0.94); border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 6px 22px rgba(26, 60, 140, 0.08); border: 1px solid #edf1f9;
  position: relative; overflow: hidden;
}
.ov-ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 12px; }
.ov-ic .nav-icon { width: 21px; height: 21px; fill: #fff; }
.ov-num { font-size: 34px; font-weight: 800; color: #16357A; line-height: 1.1; }
.ov-lbl { font-size: 15px; color: #7486a6; margin-top: 6px; }
.ov-tag { position: absolute; top: 16px; right: 16px; font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 600; }

/* 工作概览：两栏面板（项目日志 / 待处理事项） */
.ov-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.ov-panel { background: rgba(255, 255, 255, 0.94); border-radius: 14px; box-shadow: 0 6px 22px rgba(26, 60, 140, 0.08); border: 1px solid #edf1f9; padding-bottom: 14px; }
.ov-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eef2f9; font-weight: 700; font-size: 16px; color: #16357A; }
.ov-more { font-size: 13px; color: #2B5BE0; font-weight: 600; cursor: pointer; }
.ov-logs { padding: 4px 20px 8px; }
.ov-log { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed #edf1f9; font-size: 15px; color: #43536f; }
.ov-log:last-child { border-bottom: none; }
.ov-log-time { color: #F07A1A; font-weight: 700; white-space: nowrap; flex: 0 0 auto; font-size: 13.5px; }
.ov-log-body { flex: 1; word-break: break-all; line-height: 1.6; }
.ov-log-body b { color: #16357A; }
.ov-empty { padding: 26px 0; text-align: center; color: #8b98b5; font-size: 14px; }
.ov-table { width: 100%; border-collapse: collapse; }
.ov-table th { text-align: left; font-size: 13px; color: #8b98b5; font-weight: 600; padding: 11px 20px; border-bottom: 1px solid #eef2f9; background: #f8fafd; }
.ov-table td { padding: 12px 20px; font-size: 14px; color: #43536f; border-bottom: 1px solid #f1f4fa; }
.ov-table tbody tr[data-todo-nav] { cursor: pointer; transition: background .12s; }
.ov-table tbody tr[data-todo-nav]:hover { background: #f2f6ff; }
.ov-table tbody tr[data-todo-nav]:hover td:first-child { color: #1E4FD0; }
.ov-table .ov-empty-td { text-align: center; color: #8b98b5; }
.ov-st { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.ov-st.blue { background: #eaf1ff; color: #1E4FD0; }
.ov-st.yellow { background: #fff6dd; color: #a67a00; }
.ov-st.green { background: #eafaf2; color: #0e8a5f; }

/* 登录页 label（效果图：账号/密码文字标签） */
.login-field { text-align: left; }
.login-field label { font-size: 13px; color: #5a6b8c; margin-left: 2px; display: block; margin-bottom: 6px; }
.login-input { width: 100%; }

/* ================================================================
   v6.79 与效果图（UI效果预览.html v8）逐项完全对齐：
   登录页 + 工作概览 + 顶栏 + 侧栏的全部字号/图标颜色大小/间距
   ================================================================ */
/* ---- 登录页 ---- */
#login-layer {
  background: linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)), url("bg.png") center/cover no-repeat, #eef2f8;
}
#login-layer > div { width: 430px; padding: 42px 46px 38px; box-shadow: 0 18px 60px rgba(26, 60, 140, 0.16); }
#login-layer .login-card .login-brand { margin-bottom: 0; }
#login-layer .login-logo { width: 180px; margin: -8px auto 10px; }
#login-layer h1 { font-size: 24px; font-weight: 700; }
#login-layer .login-ver { font-size: 12px; margin-top: 4px; }
#login-layer .login-slogan { margin: 8px auto 0; font-size: 12px; padding: 4px 14px; }
#login-layer .login-field { margin-top: 26px; }
#login-layer .login-field label { margin: 0 0 0 2px; }
#login-layer .login-field input { margin-top: 7px; }
#login-layer #login-err { margin-top: 12px; }
#login-layer .login-submit { margin-top: 30px; font-size: 17px; letter-spacing: 4px; }
#login-layer .login-url { margin-top: 18px; }
/* ---- 主界面背景白膜（效果图 .main::before rgba(244,247,253,.72)） ---- */
body {
  background: linear-gradient(rgba(244, 247, 253, 0.72), rgba(244, 247, 253, 0.72)), url("bg.png") center top/cover no-repeat fixed, #eef2f8;
}
/* ---- 侧栏导航（效果图 padding 12px 14px · 800） ---- */
.nav-item { padding: 12px 14px; font-weight: 800; }
/* ---- 顶栏账号胶囊（效果图 .acct：头像圆 + 名字在前 + 分隔点） ---- */
.account-avatar { width: 22px; height: 22px; }
.account-avatar-letter {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #1E4FD0, #7B4FE8);
  color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 2px 6px rgba(22,53,122,.15);
}
/* ---- 工作概览 4 张卡片（效果图 .card 全值） ---- */
.ov-cards { margin: 136px 0 20px; }
.ov-card { padding: 18px 20px; }
.ov-ic { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; line-height: 1; margin-bottom: 12px; }
.ov-ic .nav-icon { display: none; }
.ov-num { font-size: 30px; }
.ov-lbl { font-size: 14px; margin-top: 5px; }
.ov-tag { top: 16px; right: 16px; }
/* ---- 顶栏按钮（效果图 .tb-btn padding 7px 14px） ---- */
.topbar-account .button-quiet { padding: 7px 14px; }
.topbar { margin-bottom: 16px; }
.account-name { padding: 7px 16px; font-size: 13px; }
.nav-item { margin-bottom: 4px; }

/* ================================================================
   v6.81 导航完全对齐效果图：无左侧图标、一级 16/800 + 右侧三角 11px、
   子项缩进竖线 14/600、选中白底 18%
   ================================================================ */
/* 一级导航（工作概览）与组标题（项目管理▾ 等） */
.nav-list > .nav-item { font-size: 15px; font-weight: 800; letter-spacing: 0.5px; padding: 12px 14px; margin: 0 0 4px; gap: 10px; }
.nav-group-title {
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px;
  padding: 12px 14px; margin: 0 0 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-group-title .nav-group-arrow { font-size: 10px; opacity: 0.9; line-height: 1; }
/* v7.15 分组标题（项目管理▾ / 招聘管理▾ 等）：悬停同样显示半透明白框，与一级/二级导航一致 */
.nav-group-title:hover { background: rgba(255,255,255,.16); color: #fff; border-radius: 9px; }
/* 二级子项：保留缩进与左侧图标，无竖线 */
.nav-group .nav-item {
  font-size: 13px; font-weight: 600;
  width: calc(100% - 16px);
  padding: 9px 12px 9px 14px; margin: 0 0 6px 16px;
  border-radius: 7px; gap: 8px; opacity: 0.92; letter-spacing: 0.2px;
}
.nav-group .nav-item:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
.nav-group .nav-item.is-active { background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 700; opacity: 1; box-shadow: none; }
.nav-list { padding: 12px 10px 20px; }
.brand { padding: 20px 16px 18px; }

/* ================================================================
   v6.86 升级（UI升级预览 v14 定稿）：
   顶头锁定 + 品牌蓝紫渐变分割线（雾隐收尾）
   + 日期时间（标题下方·整行橙色）+ 个人头像放大 36px / 顶栏按钮缩小
   + 内容区下移 + 导航选中才显底色框（半透明白底白字）
   + 导航暗纹 A 款（45° 斜向细纹 + 顶部光晕）
   ================================================================ */
/* ---- 导航暗纹：顶部光晕 + 丝绸风中飘逸波浪暗纹，叠加品牌渐变（v6.97 网格→丝绸） ---- */
.sidebar {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420'%3E%3Cpath d='M0,210 C110,140 250,300 390,220 C530,140 690,310 900,210' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1.8'/%3E%3Cpath d='M0,255 C150,190 300,340 460,260 C620,180 760,320 900,255' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1.3'/%3E%3Cpath d='M0,165 C130,100 280,240 420,170 C560,100 720,250 900,165' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1.1'/%3E%3Cpath d='M0,300 C140,240 300,370 460,300 C620,230 760,350 900,300' fill='none' stroke='rgba(255,255,255,0.022)' stroke-width='1'/%3E%3C/svg%3E") center/cover no-repeat,
    radial-gradient(120% 55% at -5% -5%, rgba(255,255,255,.09), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #12265c 0%, #16357A 45%, #1E4FD0 135%);
}

/* ---- 导航选中态：一级与二级统一半透明白底白字；未选中无底色框 ---- */
.nav-list > .nav-item.is-active,
.nav-group .nav-item.is-active { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.nav-group .nav-item.is-active { font-weight: 800; }

/* v7.14 导航：选中项默认无底色（仅左侧白色竖条标识），鼠标悬停到导航文字上时显示半透明白框 */
.nav-list > .nav-item, .nav-group .nav-item { position: relative; }
.nav-list > .nav-item.is-active,
.nav-group .nav-item.is-active { background: transparent; color: #fff; font-weight: 800; box-shadow: none; }
.nav-list > .nav-item.is-active::before,
.nav-group .nav-item.is-active::before { content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 3px; height: 15px; border-radius: 3px; background: #fff; opacity: .95; }
.nav-list > .nav-item:hover,
.nav-group .nav-item:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---- 顶头锁定：工作区 100vh 内部滚动，顶头固定 + 渐变分割线 ---- */
.workspace { position: relative; height: 100vh; overflow: hidden; }
.workspace::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--lock-divider); height: 3px; z-index: 5;
  background: linear-gradient(90deg,#12265C,#1E4FD0 20%,#7B4FE8 45%,rgba(123,79,232,.55) 65%,rgba(123,79,232,.18) 82%,rgba(238,242,248,0) 100%);
}
.topbar {
  position: relative; z-index: 6;
  background: transparent;
  border-bottom: none; margin-bottom: 0;
  padding: 17px 30px 18px;
  min-height: var(--lock-h);
}
.page-heading h1 { line-height: 1.2; }
.content { flex: 1; overflow-y: auto; min-height: 0; padding: 24px 30px 26px; }

/* ---- 日期时间：标题下方，整行橙色 ---- */
.top-clock {
  display: block; font-size: 12.5px; font-weight: 600; color: #F07A1A;
  letter-spacing: .3px; line-height: 1.3; margin-top: 9px;
}
/* v7.21 手机/平板端顶栏版本号：PC 默认隐藏，仅移动端显示 */
.top-ver { display: none; }

/* ---- 个人头像放大 36px（字母头像同步） ---- */
.account-avatar { width: 36px; height: 36px; }
.account-avatar-letter { width: 36px; height: 36px; font-size: 15px; }

/* ---- 顶栏按钮缩小 ---- */
.topbar-account .button-quiet { padding: 5px 10px; font-size: 12px; }

/* ---- 全量滚动条圆角（导航区 / 内容区 / 弹窗等所有滚动条边角收圆） ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(43, 91, 224, 0.4) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(43, 91, 224, 0.38);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(43, 91, 224, 0.58); }
::-webkit-scrollbar-corner { background: transparent; }

/* ================================================================
   v6.89 响应式适配（手机 / 平板）
   原则：桌面（>1024px）样式完全不变；以下规则仅在窄屏生效。
   平板/手机统一改为抽屉式导航 + 顶栏自适应 + 表格横向滚动。
   ================================================================ */
/* ---- 抽屉遮罩（JS 控制 body.nav-open 显隐） ---- */
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(10, 22, 52, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
body.nav-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }

/* ---- 平板 / 手机（≤1024px） ---- */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50;
    transform: translateX(-100%); transition: transform 0.22s ease;
    box-shadow: 0 0 0 transparent;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 40px rgba(10, 22, 52, 0.28); }
  body.nav-open { overflow: hidden; }

  .mobile-menu { display: grid; }
  .topbar { z-index: 60; padding: 14px 18px 16px; }
  /* v7.38 移动端渐变分割线不再贴顶栏底部，与 PC 端一致固定于 --lock-divider（调整锁定区域时不移动） */

  .content { padding: 20px 18px 26px; }
  .hero-panel { flex-direction: column; align-items: stretch; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .calculator-columns { grid-template-columns: 1fr; }

  /* 大表格：单元格不换行，横向滚动（不挤压变形） */
  #app-content table.data-table { white-space: nowrap; }

  /* 弹窗宽度适配 */
  .modal { max-width: calc(100vw - 28px); }

  /* 结算单归档行精简（原 860px 规则提升到 1024） */
  .archive-row { grid-template-columns: 34px 96px 1fr 22px; }
  .archive-name { grid-column: 3; grid-row: 2; }
  .archive-count, .archive-total { display: none; }

  /* 电子签工作台纵向堆叠 */
  .esign-workbench { flex-direction: column; }
  .esign-panel { width: 100%; max-height: none; }

  /* 顶栏账号按钮允许换行 */
  .topbar-account { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
}

/* ---- 手机（≤640px） ---- */
@media (max-width: 640px) {
  .topbar { padding: 12px 12px 14px; gap: 8px; }
  .page-heading h1 { font-size: 16px; }
  .page-heading p { font-size: 11px; }
  .top-clock { font-size: 11.5px; margin-top: 7px; }
  .topbar-account .account-name { display: none; }
  .topbar-account { gap: 5px; }
  .topbar-account .button-quiet { padding: 4px 8px; font-size: 11px; }
  .topbar-account .account-avatar { width: 30px; height: 30px; }
  .topbar-account .account-avatar-letter { width: 30px; height: 30px; font-size: 13px; }

  .content { padding: 16px 12px 24px; }
  .hero-panel { padding: 18px 16px; }
  .hero-panel h2 { font-size: 18px; }
  .metric-grid { gap: 10px; }
  .metric-card { padding: 13px 14px; }
  .metric-card strong { font-size: 20px; }
  .panel { padding: 14px; }
  .panel-heading { flex-direction: column; align-items: stretch; }
  .section-toolbar h2 { font-size: 17px; }
  .filter-bar, .filter-row { padding: 12px; }
  .filter-row .field { flex: 1 1 100%; min-width: 0; }
  .filter-row .input { flex: 1; width: auto; }

  .modal-backdrop { padding: 10px; }
  .modal { padding: 16px 14px; }
  .modal-actions { flex-wrap: wrap; justify-content: stretch; }
  .modal-actions .button { flex: 1 1 auto; }

  .notice-doc { padding: 14px; }
  .notice-doc h2 { font-size: 18px; letter-spacing: 3px; }
  .archive-batch { flex-wrap: wrap; }
  .toast-region { left: 12px; right: 12px; top: 12px; }
  .import-card { padding: 12px; }
  .client-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   v6.90 移动端专属 UI
   原则：PC（>1024px）样式完全不变；以下规则仅在窄屏生效。
   手机（≤640px）：底部 Tab 导航 + 模块抽屉 + 顶栏品牌头像 + 登录页专属卡片。
   平板（641–1024px）：左侧收窄为图标导航栏 + 内容双列。
   ================================================================ */

/* ---- 移动端顶栏品牌头像（手机显示 / 桌面与平板隐藏） ---- */
.m-brand-avatar {
  display: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  flex: none; cursor: pointer; box-shadow: 0 3px 10px rgba(30, 79, 208, 0.35);
  background: #fff; align-items: center; justify-content: center;
}
.m-brand-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- 底部 Tab 栏与模块抽屉（默认隐藏，手机断点显示） ---- */
#m-tabbar { display: none; }
.m-sheet-backdrop {
  position: fixed; inset: 0; z-index: 74; background: rgba(10, 22, 52, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.m-sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.m-sheet {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 75;
  background: #fff; border-radius: 20px; box-shadow: 0 14px 40px rgba(18, 38, 92, 0.3);
  transform: translateY(120%); transition: transform 0.24s ease;
  max-height: 62vh; overflow-y: auto; padding: 12px 0 14px;
  -webkit-overflow-scrolling: touch;
}
.m-sheet.show { transform: translateY(0); }
.m-sheet .m-sheet-grab { width: 40px; height: 4px; border-radius: 99px; background: #dbe3f0; margin: 2px auto 10px; }
.m-sheet .m-sheet-head { display: flex; align-items: center; font-size: 13px; font-weight: 700; color: #16357A; padding: 4px 18px 8px; }
.m-sheet .m-sheet-head .m-sheet-cnt { margin-left: auto; font-size: 11px; color: #8b98b5; font-weight: 400; }
.m-sheet .m-sheet-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 14px;
  color: #16357A; border-radius: 10px; margin: 0 8px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.m-sheet .m-sheet-row:active { background: #eef3ff; }
.m-sheet .m-sheet-row .m-ic {
  width: 30px; height: 30px; border-radius: 9px; background: #f2f6fd; display: grid; place-items: center;
  font-size: 15px; color: #2B5BE0; flex: none;
}
.m-sheet .m-sheet-row .m-ar { margin-left: auto; color: #8b98b5; font-size: 13px; }
.m-sheet .m-sheet-divider { height: 1px; background: #eef2fa; margin: 8px 18px; }

/* ============ 手机（≤640px）：底部 Tab + 专属顶栏 + 登录页 ============ */
@media (max-width: 640px) {
  /* 顶栏：品牌头像 + 标题/日期 + 账号 */
  .mobile-menu { display: none !important; }
  .m-brand-avatar { display: flex; }
  .topbar { padding: 10px 12px 12px; gap: 9px; }
  .page-heading p { display: none; }
  .page-heading h1 { font-size: 17px; }
  .top-clock { font-size: 11px; margin-top: 3px; }
  .topbar-account .button-quiet { display: none; }
  .topbar-account .account-name { display: block; font-size: 12px; }
  .topbar-account .account-avatar { width: 30px; height: 30px; }
  .topbar-account .account-avatar-letter { width: 30px; height: 30px; font-size: 13px; }

  /* 内容底部留出 Tab 高度 */
  .content { padding-bottom: 104px; }

  /* v7.21 手机端顶栏版本号：与日期同一行小字显示 */
  .top-clock { display: inline; }
  .top-ver { display: inline-block; margin-left: 8px; font-size: 10.5px; color: #8b98b5; font-weight: 600; vertical-align: baseline; }

  /* 底部 Tab 栏 */
  #m-tabbar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px);
    border: 1px solid #e3eaf6; border-radius: 22px; box-shadow: 0 8px 26px rgba(18, 38, 92, 0.16);
    padding: 8px 4px; -webkit-tap-highlight-color: transparent;
  }
  .m-tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 5px 2px; border-radius: 14px; color: #8b98b5; font-size: 10.5px; font-weight: 600;
    cursor: pointer; border: 0; background: transparent; font-family: inherit;
  }
  .m-tab-item .m-tab-ic { width: 22px; height: 22px; display: grid; place-items: center; font-size: 16px; line-height: 1; }
  .m-tab-item.on { background: linear-gradient(135deg, #EEF3FF, #E6ECFF); color: #2B5BE0; }
  .m-tab-item.on .m-tab-ic { color: #2B5BE0; }

  /* 通用卡片化：面板/指标卡圆角阴影、筛选横滑、按钮单排 */
  .panel { border-radius: 14px; box-shadow: 0 2px 10px rgba(31, 58, 95, 0.05); }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { border-radius: 13px; padding: 13px 14px; }
  .metric-card strong { font-size: 20px; }
  .filter-bar, .filter-row { border-radius: 14px; }
  .filter-bar { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filter-bar .field { flex: none; }
  .button, .button span, .upload-label span, .modal-actions .button { white-space: nowrap; }

  /* 登录页专属：深蓝渐变全屏 + 白色圆角卡片 + 大控件 */
  #login-layer {
    background: linear-gradient(165deg, #0d1b46 0%, #122A63 40%, #16357A 72%, #1E4FD0 125%) !important;
    padding: 22px 18px;
  }
  #login-layer > div {
    width: 100% !important; max-width: 420px; padding: 30px 24px 26px !important;
    border-radius: 22px !important; box-shadow: 0 20px 60px rgba(8, 18, 58, 0.45) !important;
  }
  #login-layer .login-logo { width: 66px !important; height: auto; border-radius: 50%; }
  #login-layer h1 { font-size: 21px; }
  #login-layer .login-ver { font-size: 11.5px; }
  #login-layer .login-slogan { font-size: 12px; }
  #login-layer .login-input { height: 46px; border-radius: 12px; font-size: 14.5px; padding: 0 14px; }
  #login-layer .login-submit { height: 48px; border-radius: 12px; font-size: 16px; letter-spacing: 6px; }
}

/* ============ 平板（641–1024px）：左侧图标导航栏 ============ */
@media (min-width: 641px) and (max-width: 1024px) {
  .mobile-menu { display: none !important; }
  .m-brand-avatar { display: none; }
  /* 侧栏收窄为图标导航栏（覆盖 v6.89 抽屉规则） */
  .sidebar { position: fixed; left: 0; top: 0; width: 76px; transform: none !important; z-index: 50; box-shadow: none; }
  .sidebar .brand { flex-direction: column; gap: 6px; padding: 16px 0 12px; align-items: center; }
  .sidebar .brand-mark { width: 42px; height: 42px; margin: 0 auto; }
  .sidebar .brand > div:last-child { display: none; }
  .nav-list { padding: 6px 0 12px; }
  .nav-group-title { display: none; }
  .nav-group.collapsed .nav-item { display: none; }
  .nav-item {
    flex-direction: column; gap: 4px; justify-content: center;
    width: 54px; margin: 3px auto; padding: 8px 2px; border-radius: 11px;
  }
  .nav-item .nav-icon { width: 20px; height: 20px; }
  .nav-item span { display: block; font-size: 10px; line-height: 1.15; margin: 0; text-align: center; }
  .sidebar-foot { display: none; }
  /* 工作区 */
  .workspace { margin-left: 76px; }
  .topbar { padding: 14px 22px 16px; }
  .content { padding: 20px 22px 26px; }
  /* 渐变分割线贴顶栏底部 */
  .workspace::before { display: none; }
  .topbar {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #12265C, #1E4FD0 20%, #7B4FE8 45%, rgba(123,79,232,.55) 65%, rgba(123,79,232,.18) 82%, rgba(238,242,248,0) 100%) 1;
  }
  /* 工作概览统计 4 列、内容双列 */
  .dashboard-grid { grid-template-columns: 1.15fr 0.85fr; }
  .metric-grid { grid-template-columns: repeat(4, 1fr); }
  /* 大表格横向滚动不挤压 */
  #app-content table.data-table { white-space: nowrap; }
  /* v7.21 平板端顶栏版本号：与日期同一行小字显示 */
  .top-clock { display: inline; }
  .top-ver { display: inline-block; margin-left: 8px; font-size: 11px; color: #8b98b5; font-weight: 600; }
}

/* ================================================================
   v6.91 移动端 UI 优化（效果图确认版）
   1) 工作概览欢迎卡（仅手机/平板显示，PC 隐藏）
   2) 手机/平板工作区背景：浅蓝渐变 + 品牌光晕 + 丝绸波浪暗纹
   3) 手机登录卡片缩小居中 + 白色丝绸波浪背景（覆盖 v6.90 尺寸）
   4) 工作概览统计卡：手机 2×2 居中 / 平板 4 列
   ================================================================ */

/* 欢迎卡：默认（PC 也显示，v6.92 起三端统一） */
.dash-hero { display: block; }

/* v6.92 PC 端欢迎卡专属尺寸 */
@media (min-width: 1025px) {
  .dash-hero {
    background: linear-gradient(135deg, #12265C 0%, #1E4FD0 62%, #5B4FE0 130%);
    border-radius: 16px; padding: 26px 28px 18px; color: #fff;
    box-shadow: 0 10px 26px rgba(30, 79, 208, 0.28); position: relative; overflow: hidden;
    margin: 0 0 18px;
  }
  .dash-hero::after {
    content: ""; position: absolute; right: -46px; top: -52px; width: 150px; height: 150px;
    border-radius: 50%; background: radial-gradient(circle, rgba(123, 79, 232, 0.55), transparent 68%);
    pointer-events: none;
  }
  .dash-hero h3 { font-size: 22px; margin: 2px 0 4px; letter-spacing: 0.5px; position: relative; z-index: 1; }
  .dash-hero p { font-size: 14px; color: #cfdcfa; position: relative; z-index: 1; }
  .dash-hero-actions { display: flex; gap: 10px; margin-top: 14px; position: relative; z-index: 1; }
  .dash-hero-btn {
    border: 0; border-radius: 999px; font-size: 13px; padding: 9px 20px; font-weight: 700;
    white-space: nowrap; cursor: pointer; font-family: inherit;
  }
  .dash-hero-btn.gold { background: #F5C518; color: #4a3a00; box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4); }
  .dash-hero-btn.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); font-weight: 600; }
}

@media (max-width: 1024px) {
  .dash-hero {
    display: block; background: linear-gradient(135deg, #12265C 0%, #1E4FD0 62%, #5B4FE0 130%);
    border-radius: 18px; padding: 26px 18px 16px; color: #fff;
    box-shadow: 0 10px 26px rgba(30, 79, 208, 0.32); position: relative; overflow: hidden;
    margin: 0 0 14px; flex: none;
  }
  .dash-hero::after {
    content: ""; position: absolute; right: -46px; top: -52px; width: 150px; height: 150px;
    border-radius: 50%; background: radial-gradient(circle, rgba(123, 79, 232, 0.55), transparent 68%);
    pointer-events: none;
  }
  .dash-hero h3 { font-size: 19px; margin: 2px 0 2px; letter-spacing: 0.5px; position: relative; z-index: 1; }
  .dash-hero p { font-size: 12px; color: #cfdcfa; position: relative; z-index: 1; }
  .dash-hero-actions { display: flex; gap: 8px; margin-top: 13px; position: relative; z-index: 1; }
  .dash-hero-btn {
    border: 0; border-radius: 999px; font-size: 12px; padding: 7px 15px; font-weight: 700;
    white-space: nowrap; cursor: pointer; font-family: inherit;
  }
  .dash-hero-btn.gold { background: #F5C518; color: #4a3a00; box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4); }
  .dash-hero-btn.ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); font-weight: 600; }
}

/* ===== v7.00 新样式 ===== */
/* 欢迎卡合同到期提醒 */
.dash-hero-remind { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; position: relative; z-index: 1; }
.dash-hero-remind-tag { font-size: 12px; font-weight: 800; background: rgba(245, 197, 24, 0.18); color: #ffd76a; border: 1px solid rgba(245, 197, 24, 0.35); border-radius: 999px; padding: 3px 12px; }
.dash-hero-remind-item { font-size: 12.5px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.dash-hero-remind-item:hover { background: rgba(30, 79, 208, 0.45); border-color: rgba(120, 160, 255, 0.6); transform: translateY(-1px); }
.dash-hero-remind-item.urgent { background: rgba(255, 84, 84, 0.28); border-color: rgba(255, 130, 130, 0.5); color: #ffe9e9; font-weight: 700; }

/* 功能设置页 */
.appcfg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.appcfg-row:last-of-type { border-bottom: 0; }
.appcfg-label b { display: block; font-size: 14px; color: var(--ink-strong); margin-bottom: 3px; }
.appcfg-label span { font-size: 12px; color: var(--ink-soft); }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5dc; border-radius: 999px; transition: 0.2s; }
.switch .slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* 客户单位档案：按状态分列 */
.client-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.client-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 13px; }
.client-col-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink-strong); margin: 0 0 10px; }
.client-col-title b { margin-left: auto; background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-size: 12px; padding: 1px 9px; }
.client-col-dot { width: 9px; height: 9px; border-radius: 50%; }
.client-col-dot--active { background: #0e8a5f; }
.client-col-dot--negotiating { background: #d97400; }
.client-col-dot--paused { background: #9aa8a3; }
.client-col-dot--expired { background: #c2400a; }
.client-col-empty { font-size: 12.5px; color: var(--ink-faint); padding: 12px 0 6px; text-align: center; }
.client-col .client-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
/* 状态颜色标记卡片（顶部色条） */
.client-card { position: relative; overflow: hidden; padding: 12px 13px 11px; }
.client-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; }
.client-card--active::before { background: linear-gradient(90deg, #0e8a5f, #3DD68C); }
.client-card--negotiating::before { background: linear-gradient(90deg, #d97400, #F7B500); }
.client-card--paused::before { background: linear-gradient(90deg, #9aa8a3, #c2ccc8); }
.client-card--expired::before { background: linear-gradient(90deg, #c2400a, #ff6a3d); }
/* 卡片信息双列条（瘦身版） */
.client-kvs { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.client-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; min-width: 0; }
.client-kv span { color: var(--ink-soft); flex: 0 0 auto; }
.client-kv b { color: var(--ink-strong); font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-kv.coop { grid-column: 1 / -1; padding-top: 2px; }
.client-avatar { width: 34px; height: 34px; }
/* 卡片堆叠收纳（v7.02） */
.client-stack { position: relative; min-height: 214px; }
.client-stack-item { position: absolute; left: 0; right: 0; transition: transform .18s ease, box-shadow .18s ease; will-change: transform; }
.client-stack-item.card-layer-0 { top: 0; z-index: 3; }
.client-stack-item.card-layer-1 { top: 12px; z-index: 2; }
.client-stack-item.card-layer-2 { top: 24px; z-index: 1; }
/* 悬停浮起：鼠标移到哪张卡片，哪张就临时浮起显示（活动卡始终在上层） */
.client-stack-item:hover:not(.stack-active) { z-index: 30; transform: translateY(-14px) scale(1.02); box-shadow: 0 14px 28px rgba(20, 40, 120, 0.18); }
/* 滚轮切换的活动卡片：最高层级 + 品牌蓝描边，切换清晰可见 */
.client-stack-item.stack-active { z-index: 40; transform: translateY(-10px) scale(1.02); }
.client-stack-item.stack-active .client-card { box-shadow: 0 16px 32px rgba(30, 79, 208, 0.24); outline: 2px solid rgba(30, 79, 208, 0.5); outline-offset: -1px; }
/* 客户档案搜索栏（v7.07） */
.client-searchbar { display: flex; gap: 10px; margin: -4px 0 14px; }
.client-search { position: relative; flex: 0 1 380px; }
.client-search input { width: 100%; padding: 9px 36px 9px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff; color: var(--ink-strong); transition: border-color .15s, box-shadow .15s; }
.client-search input::placeholder { color: var(--ink-faint); }
.client-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 79, 208, 0.08); }
.client-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; border: none; background: #eef0f4; color: #6b7280; font-size: 11px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; }
.client-search-clear:hover { background: #dfe3ea; color: #374151; }
.client-search-none { padding: 44px 20px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.client-stack-more { position: absolute; top: 36px; left: 0; right: 0; z-index: 0; text-align: center; font-size: 12px; color: var(--ink-soft); background: rgba(255, 255, 255, 0.75); border: 1px dashed var(--line); border-radius: 10px; padding: 9px 0; cursor: pointer; }
.client-stack-more:hover { background: var(--brand-soft); color: var(--brand); }
.client-stack.expanded { position: static; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.client-stack.expanded .client-stack-item { position: static; }
.client-stack.expanded .client-stack-more { display: none; }
/* 卡片可点击进入详情 */
.client-card[data-client-detail] { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.client-card[data-client-detail]:hover { box-shadow: 0 6px 18px rgba(30, 79, 208, 0.14); transform: translateY(-1px); }
/* 列标题收纳交互 */
.client-col-title { user-select: none; }
.client-col-title:hover { background: rgba(30, 79, 208, 0.05); border-radius: 8px; padding-left: 8px; margin-left: -8px; }
/* 客户详情弹窗（分组排版 v7.04） */
.cd-head { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cd-avatar { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 20px; font-weight: 800; flex: 0 0 auto; }
.cd-head h4 { margin: 0 0 3px; font-size: 17px; color: var(--ink-strong); }
.cd-head p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }
.cd-head .status-chip { margin-left: auto; }
.cd-sec { margin-top: 14px; border-radius: 12px; padding: 12px 14px; }
.cd-sec-title { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: 0.5px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.cd-sec-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--brand); }
.cd-sec--coop { background: #eef4ff; box-shadow: 0 4px 12px rgba(30, 79, 208, 0.10); }
.cd-sec--fee { background: #f4f0ff; box-shadow: 0 4px 12px rgba(124, 77, 255, 0.10); }
.cd-sec--contact { background: #edf9f1; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.10); }
.cd-sec--sys { background: #fff7ec; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.10); }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.cd-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; padding: 8px 11px; background: rgba(255, 255, 255, 0.85); border-radius: 8px; min-width: 0; }
.cd-kv-full { grid-column: 1 / -1; }
.cd-kv span { color: var(--ink-soft); flex: 0 0 auto; }
.cd-kv b { color: var(--ink-strong); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cd-actions { display: flex; gap: 10px; margin-top: 18px; }
/* 关闭按钮：X 图标 + 文字，右上角 */
.cd-close-x { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: 12.5px; cursor: pointer; box-shadow: 0 2px 8px rgba(20, 30, 60, 0.08); transition: all .15s; z-index: 2; }
.cd-close-x:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.cd-close-x-icon { font-size: 12px; line-height: 1; }

/* ---- 手机（≤640px） ---- */
@media (max-width: 640px) {
  /* 工作区背景：浅蓝渐变 + 品牌光晕 + 丝绸波浪暗纹 */
  .workspace {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420'%3E%3Cpath d='M0,210 C110,140 250,300 390,220 C530,140 690,310 900,210' fill='none' stroke='rgba(30,79,208,0.05)' stroke-width='1.8'/%3E%3Cpath d='M0,255 C150,190 300,340 460,260 C620,180 760,320 900,255' fill='none' stroke='rgba(91,79,224,0.04)' stroke-width='1.3'/%3E%3Cpath d='M0,165 C130,100 280,240 420,170 C560,100 720,250 900,165' fill='none' stroke='rgba(30,79,208,0.03)' stroke-width='1.1'/%3E%3Cpath d='M0,300 C140,240 300,370 460,300 C620,230 760,350 900,300' fill='none' stroke='rgba(91,79,224,0.022)' stroke-width='1'/%3E%3C/svg%3E") center/cover no-repeat,
      radial-gradient(620px 300px at 82% -8%, rgba(30, 79, 208, 0.07), transparent 62%),
      radial-gradient(560px 300px at 6% 112%, rgba(123, 79, 232, 0.07), transparent 60%),
      linear-gradient(180deg, #edf3fd 0%, #f7f9fd 48%, #eef3fc 100%);
    min-height: 100vh;
  }
  /* 登录页：卡片缩小居中 + 白色丝绸波浪 + 渐变增强（覆盖 v6.90） */
  #login-layer {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420'%3E%3Cpath d='M0,210 C110,140 250,300 390,220 C530,140 690,310 900,210' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1.8'/%3E%3Cpath d='M0,255 C150,190 300,340 460,260 C620,180 760,320 900,255' fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1.3'/%3E%3Cpath d='M0,165 C130,100 280,240 420,170 C560,100 720,250 900,165' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1.1'/%3E%3Cpath d='M0,300 C140,240 300,370 460,300 C620,230 760,350 900,300' fill='none' stroke='rgba(255,255,255,0.022)' stroke-width='1'/%3E%3C/svg%3E") center/cover no-repeat,
      radial-gradient(620px 340px at 86% -6%, rgba(91, 79, 224, 0.62), transparent 62%),
      radial-gradient(540px 320px at 6% 114%, rgba(30, 79, 208, 0.62), transparent 60%),
      linear-gradient(168deg, #0a1740 0%, #0f2152 26%, #16357A 58%, #2249A8 84%, #1E4FD0 112%) !important;
  }
  #login-layer > div { max-width: 300px !important; padding: 24px 22px 20px !important; }
  #login-layer .login-logo { width: 58px !important; }
  #login-layer h1 { font-size: 20px !important; line-height: 1.35; }
  #login-layer .login-ver { font-size: 11px !important; margin: 5px 0 0 !important; }
  #login-layer .login-slogan { font-size: 10.5px !important; padding: 4px 14px !important; margin-top: 10px !important; }
  #login-layer .login-field { margin-top: 16px !important; }
  #login-layer .login-input { height: 42px !important; border-radius: 11px !important; font-size: 14px !important; }
  #login-layer .login-submit { height: 44px !important; border-radius: 11px !important; font-size: 15.5px !important; letter-spacing: 5px !important; margin-top: 20px !important; }
  /* 工作概览统计卡：2×2 居中 */
  .ov-cards { grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 14px; }
  .ov-card { padding: 14px 13px; border-radius: 13px; text-align: center; }
  .ov-ic { width: 30px; height: 30px; border-radius: 9px; margin: 0 auto 8px; }
  .ov-ic .nav-icon { width: 15px; height: 15px; }
  .ov-num { font-size: 21px; }
  .ov-lbl { font-size: 11.5px; margin-top: 4px; }
  .ov-tag { top: 10px; right: 10px; font-size: 9.5px; padding: 2px 7px; }
  .ov-cols { grid-template-columns: 1fr; gap: 12px; }
  .ov-panel { border-radius: 14px; }
}

/* ---- 平板（641–1024px） ---- */
@media (min-width: 641px) and (max-width: 1024px) {
  .workspace {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420'%3E%3Cpath d='M0,210 C110,140 250,300 390,220 C530,140 690,310 900,210' fill='none' stroke='rgba(30,79,208,0.05)' stroke-width='1.8'/%3E%3Cpath d='M0,255 C150,190 300,340 460,260 C620,180 760,320 900,255' fill='none' stroke='rgba(91,79,224,0.04)' stroke-width='1.3'/%3E%3Cpath d='M0,165 C130,100 280,240 420,170 C560,100 720,250 900,165' fill='none' stroke='rgba(30,79,208,0.03)' stroke-width='1.1'/%3E%3Cpath d='M0,300 C140,240 300,370 460,300 C620,230 760,350 900,300' fill='none' stroke='rgba(91,79,224,0.022)' stroke-width='1'/%3E%3C/svg%3E") center/cover no-repeat,
      radial-gradient(620px 300px at 82% -8%, rgba(30, 79, 208, 0.07), transparent 62%),
      radial-gradient(560px 300px at 6% 112%, rgba(123, 79, 232, 0.07), transparent 60%),
      linear-gradient(180deg, #edf3fd 0%, #f7f9fd 48%, #eef3fc 100%);
    min-height: 100vh;
  }
  /* 工作概览统计 4 列 */
  .ov-cards { grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 16px; }
  .ov-card { padding: 16px 15px; }
  .ov-num { font-size: 24px; }
  .ov-lbl { font-size: 12.5px; }
  .ov-cols { grid-template-columns: 1.15fr 0.85fr; }
}

/* ================================================================
   v6.96 工作概览间距调整（PC 端，效果图确认版）
   欢迎卡下移 30px；统计卡及其他内容上移 60px（合计压缩间距 90px）
   ================================================================ */
@media (min-width: 1025px) {
  .dash-hero { margin: 30px 0 18px; }
  .ov-cards { margin-top: 46px; }
}

/* ================================================================
   v7.14 项目管理模块：项目卡片 + 项目详情（任务/动态）+ 表单
   ================================================================ */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.field > span { font-weight: 600; color: #42536b; }
.field .req { color: #d93026; font-style: normal; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 18px; }
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  cursor: pointer; box-shadow: 0 4px 16px rgba(18, 38, 92, 0.06);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(18, 38, 92, 0.14); border-color: #c7d6f5; }
.project-card-head { display: flex; flex-direction: column; gap: 6px; }
.project-card-name { display: flex; align-items: center; gap: 8px; }
.project-card-name strong { font-size: 16px; color: #16357A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-meta { font-size: 12.5px; color: var(--ink-faint); }
.project-card-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 8px 12px; background: #f3f7ff; border-radius: 9px; font-size: 12.5px; color: #42536b; }
.project-card-log { margin-top: 10px; font-size: 12.5px; color: #5a6a85; background: #fafbfe; border-radius: 8px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-log.muted { color: #9aa7bd; }
.project-card-actions { display: flex; gap: 8px; margin-top: 12px; }
/* 项目详情：任务清单 */
.ptask { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.85); margin-bottom: 6px; font-size: 13px; }
.ptask.done { opacity: .62; }
.ptask.done .ptask-text { text-decoration: line-through; }
.ptask-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; color: #42536b; white-space: nowrap; }
.ptask-text { flex: 1; color: #23344d; word-break: break-all; }
.ptask-due { font-style: normal; font-size: 11.5px; color: #d97400; background: #fff3e2; border-radius: 5px; padding: 1px 6px; }
.ptask-add { display: flex; gap: 8px; margin-top: 10px; }
.ptask-add .ptask-due { width: 138px; }
/* 项目详情：进展动态 */
.plog { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.85); margin-bottom: 6px; font-size: 13px; }
.plog-time { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.plog-body { flex: 1; color: #23344d; word-break: break-all; }
.plog-body b { color: #1E4FD0; font-weight: 700; }
.plog-add { margin-top: 10px; }
.plog-add textarea { width: 100%; margin-bottom: 8px; }
.cd-empty { font-size: 12.5px; color: var(--ink-faint); padding: 10px 12px; background: rgba(255,255,255,.7); border-radius: 8px; border: 1px dashed var(--line); margin-bottom: 6px; }
/* 工作概览：项目动态行（项目名 chip） */
.ov-log-pname { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #1E4FD0; background: #eaf1ff; border-radius: 6px; padding: 2px 8px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-log[data-project-detail] { cursor: pointer; }
.ov-log[data-project-detail]:hover { background: #f3f7ff; }

/* v7.16 hero 欢迎卡：提示信息列表（与待处理事项同源，点击进入处理；超长收纳滚动） */
.dash-hero-hints { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-width: 640px; }
.dash-hero-hint {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid #e7edf8;
  font-size: 12.5px; color: #42536b; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.dash-hero-hint:hover { background: #fff; border-color: #c7d6f5; transform: translateX(3px); }
.dash-hero-hint-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.dash-hero-hint-dot.yellow { background: #F7B500; }
.dash-hero-hint-dot.blue { background: #1E4FD0; }
.dash-hero-hint-dot.green { background: #0e8a5f; }
.dash-hero-hint-dot.warn { background: #F07A1A; }
.dash-hero-hint-dot.urgent { background: #d93026; box-shadow: 0 0 0 3px rgba(217, 48, 38, 0.15); }
.dash-hero-hint-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-hero-hint-go { color: var(--ink-faint); font-size: 12px; flex: 0 0 auto; }
.dash-hero-hint--none { cursor: default; background: rgba(255, 255, 255, 0.5); }
.dash-hero-hint--none:hover { transform: none; border-color: #e7edf8; }
.dash-hero-hint--none .dash-hero-hint-txt { font-weight: 700; color: #33486b; }
.dash-hero-hints--scroll { max-height: 130px; overflow-y: auto; padding-right: 3px; }
.dash-hero-hints--scroll::-webkit-scrollbar { width: 5px; }
.dash-hero-hints--scroll::-webkit-scrollbar-thumb { background: rgba(30, 79, 208, 0.28); border-radius: 3px; }
.dash-hero-hints--scroll::-webkit-scrollbar-track { background: rgba(30, 79, 208, 0.06); border-radius: 3px; }
@media (max-width: 860px) {
  .project-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .ptask-add { flex-wrap: wrap; }
  .ptask-add .input { flex: 1 1 100%; }
  .ptask-add .ptask-due { flex: 1 1 100%; width: auto; }
}

/* ================================================================
   v7.17/v7.18 工作概览：统计卡片与欢迎卡独立开，卡片底色为白色
   ================================================================ */
.ov-cards { margin: 22px 0 20px; }
.ov-card {
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(26, 60, 140, 0.08);
  border: 1px solid #edf1f9;
}
.ov-ic { box-shadow: 0 4px 12px rgba(30, 79, 208, 0.18); }
.ov-st.red { background: #fdecea; color: #d93026; }
@media (max-width: 860px) {
  .ov-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ===== v7.25 全站输入框/选择框/勾选框统一圆角 ===== */
input:not([type]), input[type="text"], input[type="password"], input[type="number"], input[type="date"], input[type="month"], input[type="time"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  border-radius: 8px !important;
}
#login-layer .login-input { border-radius: 10px !important; }
.client-search input { border-radius: 10px !important; }
/* 勾选框 / 单选框：统一圆角勾选样式 */
input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin: 0;
  border: 1px solid #c3cede; border-radius: 4px;
  background: #fff; cursor: pointer;
  position: relative; vertical-align: -3px; flex: 0 0 auto;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--brand); border-color: var(--brand); }
input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="radio"]:checked::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  background: #fff; border-radius: 50%; transform: translate(-50%, -50%);
}
/* 开关控件隐藏的 input 保持隐藏 */
.switch input { opacity: 0; width: 0; height: 0; }

/* ===== v7.26 全量按钮配色体系（深蓝品牌风） ===== */
.button {
  border-radius: 8px;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}
/* 主按钮：品牌蓝渐变 + 白字 + 光晕 */
.button-primary {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(43, 91, 224, 0.22);
}
.button-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1744c0, #4a41d0 60%, #6a3fd8);
  box-shadow: 0 6px 18px rgba(43, 91, 224, 0.30);
  transform: translateY(-1px);
}
.button-primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 8px rgba(43, 91, 224, 0.20); }
/* 次按钮：白底 + 亮蓝字 + 亮蓝边 */
.button-secondary {
  background: #fff;
  color: #2B5BE0;
  border-color: #2B5BE0;
  box-shadow: 0 2px 6px rgba(43, 91, 224, 0.08);
}
.button-secondary:hover:not(:disabled) {
  background: #eaf1ff;
  box-shadow: 0 4px 10px rgba(43, 91, 224, 0.14);
}
/* 静默按钮：浅蓝底 + 深蓝字（清晰可点） */
.button-quiet {
  background: #f0f4ff;
  color: #16357A;
  border-color: #cddaf5;
}
.button-quiet:hover:not(:disabled) { background: #e3ecff; border-color: #2B5BE0; }
/* 危险确认按钮：红色渐变 + 白字（删除等强操作） */
.button-danger {
  background: linear-gradient(135deg, #e5484d, #d93026);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(217, 48, 38, 0.22);
}
.button-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #d43c41, #c2271d);
  box-shadow: 0 6px 16px rgba(217, 48, 38, 0.30);
  transform: translateY(-1px);
}
/* 危险静默按钮：浅红底 + 红字 */
.button-danger-quiet {
  background: #fdecea;
  color: #d93026;
  border-color: #f0b8ae;
}
.button-danger-quiet:hover:not(:disabled) { background: #fbdbd6; border-color: #e5484d; }
/* hero 主操作按钮：品牌金渐变 + 深棕字（欢迎卡醒目操作） */
.hero-actions .button {
  background: linear-gradient(135deg, #ffd84d, #f5c518);
  color: #4a3a00;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.30);
}
.hero-actions .button:hover {
  background: linear-gradient(135deg, #ffe266, #e8b800);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.38);
  transform: translateY(-1px);
}
/* 登录提交按钮：品牌渐变 + 白字 + 光晕 */
#login-layer .login-submit {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(43, 91, 224, 0.35);
}
#login-layer .login-submit:hover { box-shadow: 0 10px 26px rgba(43, 91, 224, 0.45); transform: translateY(-1px); }
/* 子超级管理员勾选时权限区置灰 */
.perm-disabled { opacity: 0.45; pointer-events: none; }



/* ================= v7.36 组织机构 ================= */
.org-tabs { display:inline-flex; gap:6px; }
.org-client-pick { margin:0 10px 0 4px; }
.org-layout { display:flex; gap:14px; align-items:flex-start; margin-top:14px; }
.org-tree-panel { width:300px; min-width:300px; background:#fff; border:1px solid var(--line,#e3eeea); border-radius:12px; overflow:hidden; }
.org-tree-head { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; border-bottom:1px solid var(--line,#e3eeea); font-size:14px; }
.org-tree-add { color:#1E4FD0; cursor:pointer; font-size:13px; }
.org-tree { padding:8px; max-height:calc(100vh - 260px); overflow:auto; }
.org-node { padding:6px 8px; border-radius:8px; cursor:pointer; display:flex; align-items:center; gap:6px; font-size:13px; user-select:none; }
.org-node:hover { background:#f2f7f5; }
.org-node.is-sel { background:#e8f0ff; outline:1px solid #9dc0ff; }
.org-node.org-drop { outline:2px dashed #1E4FD0; background:#eef4ff; }
.org-children { margin-left:16px; border-left:1px dashed #d8e6e2; padding-left:6px; }
.org-arrow { width:14px; color:#7b928d; font-size:11px; flex:none; text-align:center; }
.org-arrow--leaf { color:#c4d4d0; }
.org-name { flex:0 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.org-leader { color:var(--ink-soft,#5c6f6c); font-size:12px; flex:none; }
.org-tag { font-size:11px; line-height:1.5; padding:0 6px; border-radius:8px; flex:none; }
.org-tag--co { background:#eaf1ff; color:#1E4FD0; }
.org-tag--over { background:#fdecec; color:#d93026; }
.org-tag--nol { background:#fff3e2; color:#d97400; }
.org-count { margin-left:auto; font-size:12px; color:var(--ink-soft,#5c6f6c); flex:none; }
.org-detail-panel { flex:1; min-width:0; background:#fff; border:1px solid var(--line,#e3eeea); border-radius:12px; padding:16px; }
.org-detail-head { display:flex; align-items:center; gap:8px; }
.org-detail-head h3 { margin:0; font-size:17px; }
.org-detail-chain { color:var(--ink-soft,#5c6f6c); font-size:12px; margin:4px 0 10px; }
.org-kv-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; margin:10px 0; }
.org-kv { background:#f7faf9; border:1px solid var(--line,#e3eeea); border-radius:8px; padding:8px 10px; }
.org-kv span { display:block; font-size:11px; color:var(--ink-soft,#5c6f6c); }
.org-kv b { font-size:13px; font-weight:600; }
.org-stat-row { display:flex; gap:8px; margin:10px 0; flex-wrap:wrap; }
.org-stat-cell { flex:1; min-width:70px; text-align:center; background:linear-gradient(135deg,#f2f7ff,#eef4ff); border:1px solid #dbe8ff; border-radius:10px; padding:10px 6px; }
.org-stat-cell span { display:block; font-size:11px; color:#5c6f6c; }
.org-stat-cell b { font-size:19px; color:#16357A; }
.org-stat-cell b.org-over-num { color:#d93026; }
.org-detail-actions { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0; }
.org-detail-sec { margin-top:12px; border-top:1px solid var(--line,#e3eeea); padding-top:10px; }
.org-detail-sec-title { display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:600; margin-bottom:8px; }
.org-detail-sec-act { color:#1E4FD0; cursor:pointer; font-size:13px; font-weight:400; }
.org-empty { color:var(--ink-soft,#5c6f6c); font-size:13px; padding:16px 8px; text-align:center; }
.org-over-num { color:#d93026; font-weight:700; }
/* 组织统计 */
.org-bars { padding:6px 0; }
.org-bar-row { display:flex; align-items:center; gap:8px; margin:6px 0; }
.org-bar-lbl { width:120px; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:right; }
.org-bar { flex:1; height:10px; background:#eef4f2; border-radius:6px; overflow:hidden; }
.org-bar-fill { height:100%; border-radius:6px; background:linear-gradient(90deg,#1E4FD0,#5B4FE0); transition:width .3s; }
.org-bar-fill.over { background:linear-gradient(90deg,#d93026,#f07a1a); }
.org-bar-num { width:74px; font-size:12px; color:#5c6f6c; text-align:right; }
/* 客户详情组织树 */
.org-tree--ro { max-height:260px; overflow:auto; }
.org-node--ro { cursor:default; }
/* 客户管理弹窗布局 */
.org-layout--modal .org-tree-panel { width:280px; min-width:280px; }
/* 手机端：组织布局纵向堆叠 */
@media (max-width: 900px) {
  .org-layout { flex-direction:column; }
  .org-tree-panel { width:100%; min-width:0; }
  .org-tree { max-height:40vh; }
  .org-layout--modal { flex-direction:column; }
  .org-layout--modal .org-tree-panel { width:100%; min-width:0; }
}
@media (max-width: 640px) {
  .org-bar-lbl { width:84px; }
  .org-detail-actions .button span { display:none; }
}

/* ================================================================
   v7.38 工作区顶部锁定区域：红色虚线标注锁定下沿 + 拖拽/双击调整
   渐变分割线固定于 --lock-divider，不随锁定高度移动；适用于所有工作区页面
   ================================================================ */
.lock-line {
  position: absolute; left: 0; right: 0; top: calc(var(--lock-h) - 1px); height: 0;
  border-top: 2px dashed rgba(229,72,77,.8); z-index: 8; pointer-events: none;
}
.lock-handle {
  position: absolute; right: 20px; top: calc(var(--lock-h) - 11px);
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(160deg,#e5484d,#b52a30); color:#fff;
  font-size: 13px; line-height: 22px; text-align: center;
  cursor: ns-resize; z-index: 9; box-shadow: 0 2px 8px rgba(0,0,0,.28);
  user-select: none; touch-action: none;
}
.lock-handle:hover { box-shadow: 0 3px 12px rgba(0,0,0,.38); transform: scale(1.08); }
.lock-done {
  position: absolute; right: 50px; top: calc(var(--lock-h) - 13px);
  height: 24px; padding: 0 10px; border-radius: 7px;
  background: rgba(255,255,255,.95); color: #c0392b;
  font-size: 12px; font-weight: 600; line-height: 24px;
  border: 1px solid rgba(229,72,77,.55);
  cursor: pointer; z-index: 9; box-shadow: 0 1px 5px rgba(0,0,0,.16);
  user-select: none;
}
.lock-done:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
@media (max-width: 640px) {
  .lock-handle { right: 10px; width: 20px; height: 20px; line-height: 20px; font-size: 12px; top: calc(var(--lock-h) - 10px); }
  .lock-done { right: 36px; top: calc(var(--lock-h) - 12px); height: 22px; line-height: 22px; }
}
/* ===== v8.2 审批中心 + 公告 ===== */
.apv-type-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.apv-type-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.apv-type-name { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 2px; }
.apv-type-name b { font-size: 14px; }
.apv-flow-sel { width: 150px; }
.apv-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.apv-toggle input { width: 15px; height: 15px; }
.apv-log { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.apv-log-time { color: var(--ink-soft); min-width: 140px; }
.apv-log b { font-weight: 600; }
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); }
.notice-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.notice-card-head > div { display: flex; align-items: center; gap: 10px; }
.notice-card-head b { font-size: 15px; }
.notice-body { color: var(--ink); font-size: 13px; line-height: 1.6; margin: 0 0 10px; }
.notice-card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 12.5px; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 12px; max-height: 200px; overflow: auto; margin-top: 6px; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 13px; }
/* ===== v8.4 飞书式细节增强 ===== */
.metric-card { transition: transform .15s, box-shadow .15s; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,42,102,.10); }
.data-table thead th { position: sticky; top: 0; background: #f6f8fb; z-index: 1; }
.data-table tbody tr { transition: background .12s; }
.data-table td:first-child { color: #98a2b3; }
.input:focus { box-shadow: 0 0 0 3px rgba(30,79,208,.10); }
.filter-row, .card, .notice-card { transition: box-shadow .18s; }
.notice-card:hover { box-shadow: 0 6px 18px rgba(16,42,102,.08); }
.col-op { white-space: nowrap; }
/* 公告已读回执进度条（飞书式） */
.read-progress { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 150px; max-width: 320px; }
.read-progress .rp-bar { flex: 1; height: 6px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.read-progress .rp-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1E4FD0, #4E7BFF); transition: width .4s; }
.chk input { width: 15px; height: 15px; }
.notice-detail-body { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13.5px; line-height: 1.7; }

/* ===== v8.86 合同档案分页条 ===== */
.cf-pager {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px 6px; font-size: 12.5px; color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
.cf-pager .cf-pager-info { margin-right: auto; }
.cf-pager .cf-pager-size { display: inline-flex; align-items: center; gap: 5px; }
.cf-pager .cf-pager-size .input { height: 30px; padding: 0 6px; font-size: 12.5px; width: auto; }
.cf-pager .cf-pager-btns { display: inline-flex; gap: 6px; }
.cf-pager button[disabled] { opacity: .45; cursor: default; }



/* ===================== v8.96 工作事项 + 强提醒 ===================== */
.wk-banner { display: flex; align-items: center; gap: 12px; background: #fdecea; border: 1px solid #f5c6c0; border-left: 4px solid #c0392b; border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.wk-banner-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8c2b1c; white-space: nowrap; }
.wk-banner-ic { width: 18px; height: 18px; border-radius: 50%; background: #c0392b; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.wk-banner-sum { color: #c0392b; font-weight: 700; }
.wk-banner-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.wk-chip-b { font-size: 12px; padding: 3px 10px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.wk-chip-b.bad { background: #fff; color: #c0392b; border-color: #f0b7b0; }
.wk-chip-b.warn { background: #fff; color: #b7791f; border-color: #f0dcb0; }
.wk-banner-more { font-size: 12px; color: #c0392b; cursor: pointer; white-space: nowrap; }

.wk-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.wk-card { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 22px rgba(26,60,140,.08); cursor: pointer; border: 1px solid transparent; transition: box-shadow .16s, transform .16s; }
.wk-card:hover { box-shadow: 0 10px 28px rgba(26,60,140,.14); transform: translateY(-1px); }
.wk-card--bad { border-color: #f0b7b0; }
.wk-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wk-card-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.wk-card-bad { font-size: 11px; color: #c0392b; background: #fdecea; padding: 2px 8px; border-radius: 999px; }
.wk-card-soon { font-size: 11px; color: #b7791f; background: #fff8e6; padding: 2px 8px; border-radius: 999px; }
.wk-card-num { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.wk-card-lbl { font-size: 13px; color: #5c6f6c; margin-top: 2px; }
.wk-card-bar { height: 4px; background: #eef2f1; border-radius: 3px; overflow: hidden; margin: 10px 0 8px; }
.wk-card-bar i { display: block; height: 100%; border-radius: 3px; }
.wk-card-foot { display: flex; justify-content: space-between; font-size: 11px; color: #8a94a6; }

.wk-todo { margin-bottom: 14px; padding: 0; overflow: hidden; }
.wk-todo-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; color: #0d3b39; }
.wk-todo-cnt { background: #fdecea; color: #c0392b; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 700; }
.wk-todo .wk-more { margin-left: auto; font-size: 12px; color: #8a94a6; cursor: pointer; font-weight: 400; }
.wk-todo-list { padding: 2px 0; }
.wk-todo-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid #f2f5f4; }
.wk-todo-row:last-child { border-bottom: 0; }
.wk-todo-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.wk-todo-dot.bad { background: #c0392b; }
.wk-todo-dot.warn { background: #e08a2e; }
.wk-todo-mid { flex: 1; min-width: 0; }
.wk-todo-nm { display: block; font-size: 13px; color: #16357A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-todo-mid small { font-size: 11px; color: #8a94a6; }
.wk-todo-due { font-size: 12px; color: #8a94a6; font-family: ui-monospace, Menlo, monospace; }
.wk-todo-btn { border: 1px solid #dbe4f2; background: #fff; color: #1E4FD0; font-size: 12px; padding: 3px 12px; border-radius: 8px; cursor: pointer; flex: none; }
.wk-todo-btn:hover { background: #eaf1ff; }
.wk-todo-empty { padding: 24px 16px; text-align: center; color: #9aa6b6; font-size: 13px; }

.wk-wrap { background: #fff; border-radius: 14px; box-shadow: 0 6px 22px rgba(26,60,140,.06); overflow: auto; }
.wk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wk-table th { text-align: left; font-weight: 700; color: #5c6f6c; font-size: 12px; padding: 11px 10px; background: #f7f9f8; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wk-table td { padding: 10px 10px; border-bottom: 1px solid #f2f5f4; vertical-align: middle; }
.wk-table tr:hover td { background: #fafcfb; }
.wk-late td { background: #fffafa; }
.wk-table .mono { font-family: ui-monospace, Menlo, monospace; color: #44515e; font-size: 12px; }
.wk-nm { display: flex; flex-direction: column; gap: 2px; color: #16357A; }
.wk-nm small { color: #8a94a6; font-size: 11px; font-weight: 400; }
.wk-chip { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.wk-chip.ok { background: #eafaf2; color: #1c7c54; }
.wk-chip.warn { background: #fff8e6; color: #b7791f; }
.wk-chip.bad { background: #fdecea; color: #c0392b; }
.wk-chip.mute { background: #f2f4f7; color: #7a8794; }
.wk-prio { font-size: 11px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.wk-prio.p1 { background: #fdecea; color: #c0392b; }
.wk-prio.p2 { background: #fff8e6; color: #b7791f; }
.wk-prio.p3 { background: #f2f4f7; color: #7a8794; }
.wk-op { border: 1px solid #dbe4f2; background: #fff; color: #1E4FD0; font-size: 12px; padding: 3px 12px; border-radius: 8px; cursor: pointer; }
.wk-op:hover { background: #eaf1ff; }
.wk-matcell { text-align: center; }
.wk-mat { font-size: 12px; color: #5c6f6c; }
.wk-board td { background: #f7f9f8; font-weight: 700; color: #0d3b39; font-size: 12px; padding: 7px 12px !important; }
.wk-empty { padding: 44px; text-align: center; color: #9aa6b6; }

.wk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.wk-stat { background: #fff; border-radius: 12px; padding: 13px 16px; box-shadow: 0 4px 16px rgba(26,60,140,.06); }
.wk-stat b { display: block; font-size: 22px; color: #16357A; }
.wk-stat b.warn { color: #b7791f; }
.wk-stat b.bad { color: #c0392b; }
.wk-stat span { font-size: 12px; color: #8a94a6; }
.wk-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wk-tab { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #5c6f6c; }
.wk-tab.on { background: #eaf1ff; border-color: #c7d8fb; color: #1E4FD0; font-weight: 700; }

.wk-modal-sub { font-size: 12px; color: #8a94a6; margin: -6px 0 12px; }
.wk-fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.wk-fld > span, .wk-fld > label { font-size: 12px; color: #5c6f6c; font-weight: 700; }
.wk-fld input, .wk-fld select, .wk-fld textarea { border: 1px solid #dbe3ea; border-radius: 9px; padding: 8px 10px; font-size: 13px; background: #fff; color: #243447; width: 100%; box-sizing: border-box; }
.wk-fld input:focus, .wk-fld select:focus, .wk-fld textarea:focus { outline: none; border-color: #1E4FD0; box-shadow: 0 0 0 3px rgba(30,79,208,.1); }
.wk-area { min-height: 64px; resize: vertical; }
.wk-hint { font-size: 11px; color: #9aa6b6; font-style: normal; }
.wk-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.wk-inline { display: flex; align-items: center; gap: 6px; }
.wk-inline input { width: 62px !important; }
.wk-seg { display: flex; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #f7f9f8; }
.wk-seg button { flex: 1; border: 0; background: transparent; padding: 7px 10px; font-size: 13px; border-radius: 8px; cursor: pointer; color: #5c6f6c; }
.wk-seg button.on { background: #fff; color: #1E4FD0; font-weight: 700; box-shadow: 0 1px 4px rgba(26,60,140,.12); }
.wk-seg-big { margin-bottom: 14px; }
.wk-mats { display: flex; flex-direction: column; gap: 7px; max-height: 190px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.wk-mat-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #44515e; }
.wk-mat-item input { width: auto !important; }
.wk-tip { background: #fff8e6; border-left: 3px solid #e08a2e; border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #8a5a12; margin: 6px 0 12px; }
.wk-ok { background: #eafaf2; border-left: 3px solid #1c7c54; border-radius: 8px; padding: 9px 12px; font-size: 12px; color: #14603f; margin: 6px 0 12px; }
.wk-cur { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f7f9f8; border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; }
.wk-cur b { font-size: 14px; color: #16357A; display: block; }
.wk-cur small { font-size: 11px; color: #8a94a6; }
.wk-cur-r { text-align: right; white-space: nowrap; }
.wk-cur-r span { display: block; font-size: 12px; color: #8a94a6; }
.wk-cur-r b { color: #b7791f; }
.wk-empty-panel { text-align: center; padding: 54px 20px; }
.wk-empty-title { font-size: 16px; font-weight: 700; color: #0d3b39; margin-bottom: 6px; }
.wk-empty-sub { font-size: 13px; color: #8a94a6; margin-bottom: 20px; }
.wk-empty-btns { display: flex; gap: 10px; justify-content: center; }
.wk-bk-sum { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.wk-bk-sum b { font-size: 22px; color: #16357A; }
.wk-bk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.wk-bk-row.dis { opacity: .55; background: #fafbfb; }
.wk-bk-nm { font-size: 13px; color: #16357A; }
.wk-bk-meta { display: block; font-size: 11px; color: #8a94a6; }
.wk-pop-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f2f5f4; font-size: 13px; }
.wk-pop-list { margin: 6px 0 10px; }
.wk-cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wk-cat-row input { border: 1px solid #dbe3ea; border-radius: 8px; padding: 7px 9px; font-size: 13px; }
.wk-cat-row input:first-child { flex: 1; }
.wk-cat-row input[type=number] { width: 64px; }
.wk-cat-row em { font-size: 12px; color: #8a94a6; font-style: normal; }
.wk-cat-add { margin-top: 8px; }
.wk-cat-add input { width: 100%; border: 1px dashed #cfd9e4; border-radius: 9px; padding: 9px 11px; font-size: 13px; }
.wk-note { font-size: 12px; color: #8a94a6; margin-top: 10px; line-height: 1.6; }
.wk-nav-dot { background: #c0392b; color: #fff; font-size: 10px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 9px; margin-left: auto; padding: 0 4px; font-weight: 700; }

@media (max-width: 1024px) {
  .wk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .wk-grid2 { grid-template-columns: 1fr; }
  .wk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-table { font-size: 12px; }
  .wk-table th, .wk-table td { padding: 8px; }
}
@media (max-width: 641px) {
  .wk-cards { grid-template-columns: 1fr !important; }
  .wk-stats { grid-template-columns: 1fr; }
  .wk-banner-chips { width: 100%; }
  .wk-todo-due { display: none; }
}

.wk-fld.wk-num input { max-width: 150px; }

/* ===== v8.97 首页三块（按 v5 效果图） ===== */
.wk-banner2{background:linear-gradient(96deg,#c0392b,#a93226 92%);border-radius:14px;padding:14px 18px 13px;margin-bottom:16px;box-shadow:0 8px 24px rgba(192,57,43,.22)}
.wk-b2-head{display:flex;align-items:center;gap:9px}
.wk-b2-ic{width:22px;height:22px;border-radius:50%;background:#fff;color:#c0392b;font-weight:800;font-size:13px;display:grid;place-items:center;flex:none}
.wk-b2-head b{color:#fff;font-size:15px;letter-spacing:.6px}
.wk-b2-sum{color:#ffe3df;font-size:13px;margin-left:2px}
.wk-b2-go{margin-left:auto;background:#fff;color:#c0392b;border:0;border-radius:8px;padding:6px 15px;font-weight:600;font-size:12.5px;cursor:pointer;transition:transform .15s}
.wk-b2-go:hover{transform:translateY(-1px)}
.wk-b2-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px;align-items:center}
.wk-cb{display:inline-flex;align-items:center;gap:7px;background:#fff;border-radius:9px;padding:5px 11px 5px 6px;font-size:12.5px;color:#8d2a20;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.wk-cb.bad{border:1px solid #f3c4bd}
.wk-cb.warn{border:1px solid #f7d9a8}
.wk-cb i{width:19px;height:19px;border-radius:50%;background:#fbe6e3;color:#c0392b;font-style:normal;font-weight:700;font-size:11.5px;display:grid;place-items:center;flex:none}
.wk-cb em{font-style:normal;color:#9b6b64;font-size:11.5px}
.wk-cb b{font-weight:600;color:#a93226}
.wk-cb.warn b{color:#b7791f}
.wk-b2-more{color:#ffe3df;font-size:12.5px;cursor:pointer}

.wk-card2{background:#fff;border-radius:14px;padding:14px 15px 12px;box-shadow:0 6px 22px rgba(26,60,140,.08);border:1px solid #eef1f7;cursor:pointer;transition:box-shadow .18s,transform .18s}
.wk-card2:hover{box-shadow:0 10px 28px rgba(26,60,140,.13);transform:translateY(-2px)}
.wk-c2-head{display:flex;align-items:center;gap:7px;margin-bottom:10px}
.wk-c2-dot{width:9px;height:9px;border-radius:50%;flex:none}
.wk-c2-tt{font-size:13.5px;font-weight:600;color:#1b2437}
.wk-c2-tag{margin-left:auto;font-size:11.5px;padding:2px 9px;border-radius:999px;font-weight:600}
.wk-c2-tag.bad{background:#fdecea;color:#c0392b}
.wk-c2-tag.warn{background:#fdf3e3;color:#b7791f}
.wk-c2-body{display:flex;align-items:center;gap:14px}
.wk-ring{width:74px;height:74px;border-radius:50%;flex:none;display:grid;place-items:center;position:relative}
.wk-ring-in{width:58px;height:58px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:16px;font-weight:700;color:#1b2437}
.wk-c2-ms{flex:1;min-width:0;display:grid;gap:4px}
.wk-c2-m{display:flex;align-items:baseline;justify-content:space-between;font-size:12.5px;color:#6b7385;line-height:1.5}
.wk-c2-m b{font-size:13px;font-weight:600;color:#1b2437}
.wk-c2-m.bad,.wk-c2-m.bad b{color:#c0392b}
.wk-c2-foot{display:flex;align-items:center;justify-content:space-between;margin-top:11px;padding-top:10px;border-top:1px solid #f0f2f7;font-size:11.5px;color:#98a1b3}
.wk-c2-enter{border:1px solid #d7def0;background:#fff;color:#1E4FD0;border-radius:8px;padding:3px 13px;font-size:12px;cursor:pointer}
.wk-c2-enter:hover{background:#f4f8ff}

.wk-todo2{display:grid;gap:2px}
.wk-t2-row{display:flex;align-items:center;gap:10px;padding:11px 4px;border-bottom:1px solid #f2f4f9}
.wk-t2-row:last-child{border-bottom:0}
.wk-t2-n{width:20px;height:20px;border-radius:50%;background:#eef2fa;color:#5a6a86;font-style:normal;font-size:11.5px;font-weight:600;display:grid;place-items:center;flex:none}
.wk-t2-nm{font-size:13.5px;color:#1b2437;font-weight:500}
.wk-t2-tag{font-size:11.5px;color:#8b94a6}
.wk-t2-st{margin-left:auto;font-size:11.5px;padding:3px 10px;border-radius:999px;font-weight:600;flex:none}
.wk-t2-st.bad{background:#fdecea;color:#c0392b}
.wk-t2-st.warn{background:#fdf3e3;color:#b7791f}
.wk-t2-btn{background:#1E4FD0;color:#fff;border:0;border-radius:8px;padding:5px 15px;font-size:12px;cursor:pointer;flex:none}
.wk-t2-btn.alt{background:#c0392b}
.wk-t2-btn:hover{filter:brightness(1.08)}
@media (max-width:1024px){.wk-c2-body{gap:10px}.wk-ring{width:62px;height:62px}.wk-ring-in{width:48px;height:48px;font-size:14px}}
@media (max-width:641px){.wk-c2-body{gap:10px}.wk-ring{width:56px;height:56px}.wk-ring-in{width:44px;height:44px;font-size:13px}.wk-t2-tag{display:none}}

/* v8.97 首页欢迎卡统计行 */
.dash-hero-stat{color:#cfe0ff;font-size:13px;margin-top:6px}

/* v8.97 四卡并排时收紧指标行，禁止换行 */
.wk-c2-m{white-space:nowrap;overflow:hidden}
.wk-c2-m span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.wk-c2-m b{flex:0 0 auto;margin-left:6px}
@media (max-width:1400px){
  .wk-card2 .wk-c2-m{font-size:11.5px;line-height:1.75}
  .wk-card2 .wk-c2-m b{font-size:12px}
  .wk-cards .wk-ring{width:56px;height:56px}
  .wk-cards .wk-ring-in{width:44px;height:44px;font-size:12.5px}
  .wk-c2-body{gap:10px;padding:10px 0 12px}
  .wk-c2-tt{font-size:13.5px}
}

/* ---- v8.98 列表操作收纳（操作按钮 + fixed 浮层） ---- */
.wk-ops{position:relative;display:inline-block}
.wk-ops .wk-op{display:inline-flex;align-items:center;gap:3px}
.wk-ops-ar{font-size:10px;opacity:.55;line-height:1}
.wk-ops-menu{display:none}
.wk-ops-pop{position:fixed;z-index:9999;min-width:118px;background:#fff;border:1px solid #e2e6ec;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.16);padding:4px}
.wk-ops-pop button{display:block;width:100%;text-align:left;padding:8px 12px;border:0;background:transparent;font:inherit;font-size:13px;line-height:1.3;color:#1f2937;border-radius:7px;cursor:pointer;white-space:nowrap}
.wk-ops-pop button:hover{background:#f2f4f7}
.wk-ops-pop button.danger{color:#c0392b}
.wk-ops-pop button.danger:hover{background:#fdf2f0}
.wk-form{display:flex;flex-direction:column;gap:12px}
.wk-fld{display:flex;flex-direction:column;gap:5px}
.wk-fld>span{font-size:12px;color:#6b7280}
.wk-fld input,.wk-fld select{height:36px;padding:0 10px;border:1px solid #dcdfe4;border-radius:8px;font:inherit;font-size:13px;background:#fff;color:#1f2937}
.wk-fld input:focus,.wk-fld select:focus{outline:0;border-color:#1f3a5f}

.wk-own{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:6px;background:#eef2f8;color:#3d5a80;font-size:11px;font-style:normal;font-weight:500;vertical-align:middle}


/* ===== v8.99 资质：筛选条 / 附件 / 记录 ===== */
.wk-qfilter{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.wk-qfilter .wk-sel{height:34px;line-height:32px;border:1px solid #dfe3ec;border-radius:8px;background:#fff;color:#2f3446;font-size:13px;padding:0 10px;min-width:158px;outline:none}
.wk-qfilter .wk-sel:focus{border-color:#2f6fed;box-shadow:0 0 0 3px rgba(47,111,237,.12)}
.wk-att-fld input[type="file"]{font-size:12px;color:#6b7280;padding:4px 0}
.wk-att-box{max-height:250px;overflow:auto;margin:10px 0 4px}
.wk-att-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #eceff5;border-radius:8px;margin-bottom:6px;background:#fbfcfe}
.wk-att-nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#2f3446}
.wk-att-sz{color:#98a0b3;font-size:12px}
.wk-att-btn{border:1px solid #dfe3ec;background:#fff;border-radius:6px;height:26px;padding:0 9px;font-size:12px;color:#2f6fed;cursor:pointer}
.wk-att-btn:hover{background:#f2f6ff;border-color:#b9cdfb}
.wk-att-btn.danger{color:#d2463e}
.wk-att-btn.danger:hover{background:#fdf3f2;border-color:#f3c6c2}
.wk-att-up{display:flex;align-items:center;gap:10px;margin-top:6px}
.wk-hist{max-height:330px;overflow:auto;margin-top:12px}
.wk-hrow{border:1px solid #eceff5;border-radius:8px;padding:9px 11px;margin-bottom:7px;background:#fbfcfe}
.wk-hrow-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;color:#2f3446}
.wk-hrow-h span{color:#98a0b3;font-size:12px}
.wk-hrow-b{font-size:12px;color:#5b6273;margin-top:5px;display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.wk-hrow-b small{display:block;width:100%;color:#8a90a2}
.wk-hrow-b i{color:#b6bccb;font-style:normal}
.wk-from{color:#a1463e;background:#fdf3f2;border-radius:5px;padding:1px 6px}
.wk-to{color:#1f7a4a;background:#f1faf4;border-radius:5px;padding:1px 6px}
.wk-empty-min{color:#98a0b3;font-size:13px;padding:16px 0;text-align:center}

/* v8.99 批量模式：勾选框默认隐藏 */
.wk-selcol { display: none !important; }
.wk-wrap.batch-on .wk-selcol { display: table-cell !important; }
.wk-batchbar { display: inline-flex; gap: 8px; align-items: center; }
.wk-bfsel { padding: 5px 10px; border: 1px solid #c9d6d3; border-radius: 8px; background: #fff; font-size: 13px; color: #16357A; }
.wk-cyc { white-space: nowrap; }
/* 工作节点表格：短列不换行 */
.wk-table td.mono, .wk-table td.wk-cyc, .wk-table .wk-ops, .wk-table .wk-prio, .wk-table .wk-matcell { white-space: nowrap; }

/* v8.99 表格：序号/事项 左侧固定，操作 右侧固定，中间列横向滚动 */
#app-content .wk-wrap { overflow-x: auto; }
#app-content .wk-table { width: max-content; min-width: 100%; }
.wk-table th:nth-child(2), .wk-table td:nth-child(2) { position: sticky; left: 0; z-index: 4; background: #fff; }
.wk-table th:nth-child(3), .wk-table td:nth-child(3) { position: sticky; left: 42px; z-index: 4; background: #fff; }
.wk-wrap.batch-on .wk-table th:nth-child(2), .wk-wrap.batch-on .wk-table td:nth-child(2) { left: 34px; }
.wk-wrap.batch-on .wk-table th:nth-child(3), .wk-wrap.batch-on .wk-table td:nth-child(3) { left: 76px; }
.wk-table th:last-child, .wk-table td:last-child { position: sticky; right: 0; z-index: 4; background: #fff; }
.wk-table thead th:nth-child(2), .wk-table thead th:nth-child(3), .wk-table thead th:last-child { background: #f7f9f8; }
.wk-table tr.wk-late td:nth-child(2), .wk-table tr.wk-late td:nth-child(3), .wk-table tr.wk-late td:last-child { background: #fffafa; }
