/* ==========================================================================
   集团外派人员签证管理系统 · 业务组件样式
   仅补充 app.css 未覆盖的签证域组件；基础变量、按钮、表格、表单主色沿用 app.css。
   ========================================================================== */

/* ── 基础排版补充 ─────────────────────────────────────────────── */
.text-danger { color: #dc2626 !important; }
.text-success { color: #059669 !important; }
.text-warn { color: #b45309 !important; }
.text-info { color: #0369a1 !important; }
.small, .text-sm { font-size: var(--fs-xs, .75rem); }
.mono { font-family: var(--font-num, "SF Mono", Consolas, monospace); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.right { text-align: right; }
.center { text-align: center; }
.row-title { font-weight: 650; color: var(--text, #1e293b); text-decoration: none; }
a.row-title:hover { color: var(--accent, #0d9488); text-decoration: underline; }
.row-sub { margin-top: 2px; font-size: var(--fs-xs, .75rem); color: var(--muted, #64748b); line-height: 1.45; }
.bg-light { background: #eef2f6; color: #334155; }
tr.row-active td { background: #ecfdf5 !important; }
tr.row-danger td { background: #fef2f2 !important; }
tr.row-danger:hover td { background: #fee2e2 !important; }

/* ── 页头 ─────────────────────────────────────────────────────── */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.page-head h1 {
  margin: 0 0 .25rem; font-size: var(--fs-xl, 1.3125rem);
  line-height: 1.35; font-weight: 750; letter-spacing: -.015em;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.page-head p { margin: 0; max-width: 68rem; line-height: 1.6; }
.page-head-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.page-head-badge { display: inline-flex; }

/* ── 卡片与栅格 ───────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1rem; align-items: start; }
.split-2 > .card, .split-2 > .stack > .card { margin: 0; }
.stat-grid { display: grid; gap: .85rem; margin-bottom: 1rem; }
.stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card {
  display: block; padding: .95rem 1.05rem; border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px; background: var(--card, #fff); text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .15s, transform .15s;
}
a.stat-card:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.stat-card .label { font-size: var(--fs-xs, .75rem); color: var(--muted, #64748b); }
.stat-card .value { margin-top: .25rem; font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-card .hint { margin-top: .2rem; font-size: var(--fs-xs, .75rem); color: var(--muted, #64748b); }
.stat-card.warn { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); }

.summary-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.summary-card { margin: 0 !important; }

/* ── 标签页 / 筛选 chip ──────────────────────────────────────── */
.tabs-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .85rem; }
.tab {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem;
  border: 1px solid var(--border, #e2e8f0); border-radius: 9px; background: #fff;
  color: var(--text, #1e293b); font-size: var(--fs-sm, .8125rem); text-decoration: none;
  line-height: 1.2; transition: .15s;
}
.tab:hover { border-color: var(--accent, #0d9488); color: var(--accent, #0d9488); }
.tab.is-active { background: var(--accent, #0d9488); border-color: var(--accent, #0d9488); color: #fff; }
.tab.is-danger { color: #b91c1c; border-color: #fecaca; }
.tab.is-danger.is-active { background: #dc2626; border-color: #dc2626; color: #fff; }
.tab-count { min-width: 1.25rem; padding: 0 .3rem; border-radius: 99px; background: rgba(15, 23, 42, .08); font-size: .6875rem; text-align: center; }
.tab.is-active .tab-count { background: rgba(255, 255, 255, .22); }
.chip-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .85rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem;
  border: 1px solid var(--border, #e2e8f0); border-radius: 99px; background: #fff;
  font-size: var(--fs-xs, .75rem); color: var(--muted, #64748b); text-decoration: none;
}
.chip b { color: var(--text, #1e293b); font-variant-numeric: tabular-nums; }
.chip.is-active { background: #ecfdf5; border-color: #99f6e4; color: #0f766e; }
.card-header .chip-row { margin-bottom: 0; }

/* ── 表单布局 ─────────────────────────────────────────────────── */
.form-card { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.form-grid .form-group { margin: 0; min-width: 0; }
.form-span-2 { grid-column: span 2; }
.form-group > label { display: block; margin-bottom: .3rem; font-size: var(--fs-xs, .75rem); font-weight: 650; color: #334155; }
.field-row { display: flex; gap: .4rem; }
.field-row .form-control { min-width: 0; }
.field-help { margin-top: .25rem; font-size: var(--fs-xs, .75rem); color: var(--muted, #64748b); line-height: 1.5; }
.field-inline { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm, .8125rem); color: var(--muted, #64748b); }
.form-checks { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.check-line { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--fs-sm, .8125rem); color: #334155; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .3rem .8rem; padding: .55rem .65rem; border: 1px solid var(--border, #e2e8f0); border-radius: 9px; background: #f8fafc; }
.form-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; padding-top: .2rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-form .form-control { width: auto; min-width: 10rem; }
.inline-actions { display: flex; gap: .35rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.inline-upload { display: inline-flex; gap: .3rem; align-items: center; margin: 2px 0; }
.inline-upload .form-control { width: 9.5rem; }

/* ── 进度 / 占比 ──────────────────────────────────────────────── */
.progress-line { height: 6px; border-radius: 99px; background: #e8eef4; overflow: hidden; }
.progress-line > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #0d9488); transition: width .3s; }
.progress-lg { height: 9px; }
.progress-line > span.bg-danger { background: #ef4444; }
.progress-line > span.bg-warning { background: #f59e0b; }
.progress-line > span.bg-info { background: #0ea5e9; }
.progress-line > span.bg-success { background: #10b981; }
.bar-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: .55rem; align-items: center; margin-bottom: .45rem; font-size: var(--fs-xs, .75rem); }
.bar-row > span:first-child { color: var(--muted, #64748b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row > b { font-variant-numeric: tabular-nums; }
.quota-box { padding: .65rem .75rem; border: 1px solid #ccfbf1; border-radius: 10px; background: #f0fdfa; margin-bottom: .75rem; }
.quota-box > div:first-child { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; font-size: var(--fs-xs, .75rem); color: #0f766e; }

/* ── 预警与提示 ───────────────────────────────────────────────── */
.notice { padding: .7rem .85rem; border-radius: 10px; margin-bottom: .8rem; font-size: var(--fs-sm, .8125rem); line-height: 1.55; border: 1px solid transparent; }
.notice ul { margin: .3rem 0 0; padding-left: 1.15rem; }
.notice li { margin: .15rem 0; }
.notice-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.notice-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.notice-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.hint-box { padding: .7rem .85rem; border-left: 3px solid #5eead4; border-radius: 0 8px 8px 0; background: #f0fdfa; color: #115e59; font-size: var(--fs-sm, .8125rem); line-height: 1.6; }
.hint-box b { display: block; margin-bottom: .15rem; }
.hint-box p { margin: 0; }
.legend { display: inline-flex; gap: .6rem; align-items: center; font-size: var(--fs-xs, .75rem); color: var(--muted, #64748b); }
.dot { width: .5rem; height: .5rem; border-radius: 50%; display: inline-block; margin-right: .15rem; }
.dot-ok { background: #10b981; } .dot-warn { background: #f59e0b; } .dot-bad { background: #ef4444; }

/* ── 三方归属 / 详情栅格 ─────────────────────────────────────── */
.triple-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; border-bottom: 1px solid var(--border, #e2e8f0); }
.triple-cell { padding: .55rem .7rem; border: 1px solid var(--border, #e2e8f0); border-radius: 9px; background: #f8fafc; }
.triple-cell span { display: block; font-size: var(--fs-2xs, .6875rem); color: var(--muted, #64748b); }
.triple-cell b { display: block; margin: .15rem 0; font-size: var(--fs-sm, .8125rem); }
.triple-cell small { font-size: var(--fs-2xs, .6875rem); color: var(--muted, #64748b); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .65rem 1rem; }
.detail-grid > div { min-width: 0; }
.detail-grid span { display: block; font-size: var(--fs-2xs, .6875rem); color: var(--muted, #64748b); margin-bottom: .12rem; }
.detail-grid b { display: block; font-size: var(--fs-sm, .8125rem); font-weight: 600; word-break: break-word; }
.detail-grid-1 { grid-template-columns: 1fr; }
.mini-detail { margin-top: .5rem; padding: .55rem; border: 1px dashed var(--border, #e2e8f0); border-radius: 8px; background: #f8fafc; }

/* ── 流程步骤条 ───────────────────────────────────────────────── */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 1rem; padding: .7rem .9rem; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; background: #fff; overflow-x: auto; }
.step { display: flex; align-items: center; gap: .4rem; flex: 1; min-width: 5.5rem; color: var(--muted, #64748b); font-size: var(--fs-xs, .75rem); position: relative; }
.step:not(:last-child)::after { content: ''; flex: 1; height: 2px; margin: 0 .45rem; background: #e2e8f0; border-radius: 2px; }
.step-no { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #eef2f6; color: #64748b; font-size: .6875rem; font-weight: 700; flex: 0 0 auto; }
.step-label { white-space: nowrap; }
.step.is-done { color: #0f766e; }
.step.is-done .step-no { background: #ccfbf1; color: #0f766e; }
.step.is-done:not(:last-child)::after { background: #5eead4; }
.step.is-current .step-no { background: var(--accent, #0d9488); color: #fff; box-shadow: 0 0 0 3px #ccfbf1; }
.step.is-current .step-label { font-weight: 700; color: #0f766e; }

/* ── 节点时间线 ───────────────────────────────────────────────── */
.node-timeline { list-style: none; margin: 0; padding: 0 0 0 .2rem; }
.node-timeline li { position: relative; display: flex; gap: .65rem; padding: 0 0 1rem .1rem; }
.node-timeline li::before { content: ''; position: absolute; left: .31rem; top: 1rem; bottom: 0; width: 2px; background: #e2e8f0; }
.node-timeline li:last-child::before { display: none; }
.node-dot { width: .7rem; height: .7rem; margin-top: .25rem; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; flex: 0 0 auto; z-index: 1; }
.node-timeline li.is-done .node-dot { border-color: #10b981; background: #10b981; }
.node-timeline li.is-current .node-dot { border-color: var(--accent, #0d9488); background: #fff; box-shadow: 0 0 0 3px #ccfbf1; }
.node-timeline b { font-size: var(--fs-sm, .8125rem); }
.node-timeline .row-sub { font-size: var(--fs-xs, .75rem); }

/* ── 日志 / 邮件 / 回执 ──────────────────────────────────────── */
.log-list { list-style: none; margin: 0; padding: 0; }
.log-list li { display: flex; gap: .6rem; padding: .4rem 0; border-bottom: 1px dashed var(--border, #e2e8f0); font-size: var(--fs-sm, .8125rem); line-height: 1.55; }
.log-list li:last-child { border-bottom: 0; }
.log-time { flex: 0 0 4.5rem; color: var(--muted, #64748b); font-size: var(--fs-2xs, .6875rem); font-variant-numeric: tabular-nums; padding-top: .1rem; }
.reply-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.reply-list > li { padding: .7rem .8rem; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; background: #fff; }
.reply-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.reply-subject { margin: .25rem 0 .35rem; font-size: var(--fs-sm, .8125rem); font-weight: 600; color: #334155; }
.mail-body { margin: .35rem 0; padding: .55rem .65rem; max-height: 15rem; overflow: auto; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border, #e2e8f0); font-family: var(--font-num, Consolas, monospace); font-size: var(--fs-xs, .75rem); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
details > summary { cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* ── 中介候选与能力矩阵 ──────────────────────────────────────── */
.candidate-list { border-top: 1px solid var(--border, #e2e8f0); }
.candidate { padding: .7rem .85rem; border-bottom: 1px solid var(--border, #e2e8f0); }
.candidate:last-child { border-bottom: 0; }
.candidate.is-picked { background: #f0fdfa; box-shadow: inset 3px 0 0 var(--accent, #0d9488); }
.candidate-head { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.candidate-head b { font-size: var(--fs-sm, .8125rem); }
.match-score { display: inline-flex; flex-direction: column; align-items: center; min-width: 2.5rem; padding: .1rem .3rem; border-radius: 8px; background: #ecfdf5; color: #0f766e; font-size: .9375rem; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.match-score small { font-size: .625rem; font-weight: 500; color: #64748b; }
.candidate-reasons { display: flex; gap: .25rem; flex-wrap: wrap; margin: .35rem 0; }
.tag { display: inline-block; padding: .1rem .4rem; border-radius: 5px; background: #f1f5f9; color: #475569; font-size: var(--fs-2xs, .6875rem); }

/* ?? ??????D08 / D09????????????????????????????????????? */
.approval-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.chain-step { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .65rem; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; background: #fff; }
.chain-step.is-current { border-color: var(--accent, #0d9488); background: #f0fdfa; box-shadow: inset 3px 0 0 var(--accent, #0d9488); }
.chain-step.is-rejected { border-color: #fecaca; background: #fef2f2; }
.chain-no { flex: 0 0 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f1f5f9; color: #475569; font-size: var(--fs-2xs, .6875rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.chain-step.is-approved .chain-no { background: #dcfce7; color: #15803d; }
.chain-step.is-current .chain-no { background: var(--accent, #0d9488); color: #fff; }
.chain-step.is-rejected .chain-no { background: #fee2e2; color: #b91c1c; }
.chain-main { flex: 1 1 auto; min-width: 0; }
.chain-main b { font-size: var(--fs-sm, .8125rem); }
.chain-step .badge { flex: 0 0 auto; align-self: center; }
.candidate-actions { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; }
.action-stack { display: flex; flex-direction: column; gap: .55rem; }
.action-row { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px dashed var(--border, #e2e8f0); }
.action-row:last-child { border-bottom: 0; padding-bottom: 0; }
.action-row > div:first-child { flex: 1; min-width: 10rem; }
.action-row .form-control { max-width: 15rem; }

.agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .85rem; }
.agency-card { display: flex; flex-direction: column; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; background: #fff; padding: .85rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.agency-card.is-danger { border-color: #fecaca; background: #fff7f7; }
.agency-card header { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.agency-card h3 { margin: 0; font-size: var(--fs-md, .9375rem); }
.agency-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem .6rem; margin: .65rem 0; }
.agency-meta > div { min-width: 0; }
.agency-meta span { display: block; font-size: var(--fs-2xs, .6875rem); color: var(--muted, #64748b); }
.agency-meta b { font-size: var(--fs-sm, .8125rem); font-weight: 600; }
.stars { color: #d97706; letter-spacing: -.05em; }
.agency-cost { padding-top: .5rem; border-top: 1px dashed var(--border, #e2e8f0); font-size: var(--fs-xs, .75rem); color: var(--muted, #64748b); }
.agency-cost b { color: var(--text, #1e293b); }
.agency-card footer { display: flex; gap: .35rem; margin-top: .55rem; }
.matrix-table th, .matrix-table td { text-align: center; }
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; }
.cap-cell { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; font-size: var(--fs-xs, .75rem); font-variant-numeric: tabular-nums; }
.cap-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #10b981; }
.cap-limited .cap-dot { background: #f59e0b; }
.cap-no { opacity: .45; }
.cap-no .cap-dot { background: #ef4444; }

/* ── 图表（纯 CSS） ──────────────────────────────────────────── */
.trend-chart { display: flex; align-items: flex-end; gap: .55rem; height: 9rem; padding: .4rem .2rem 0; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.trend-value { font-size: var(--fs-xs, .75rem); font-weight: 700; color: #0f766e; font-variant-numeric: tabular-nums; }
.trend-bar { width: 100%; max-width: 2.6rem; min-height: 4px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5eead4, #0d9488); }
.trend-label { margin-top: .3rem; font-size: var(--fs-2xs, .6875rem); color: var(--muted, #64748b); }
.pipe-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 2.2rem auto; gap: .5rem; align-items: center; margin-bottom: .55rem; }
.pipe-label { font-size: var(--fs-xs, .75rem); color: #334155; }
.pipe-row > b { text-align: right; font-variant-numeric: tabular-nums; font-size: var(--fs-sm, .8125rem); }
.entity-bar { margin-bottom: .7rem; }
.entity-bar-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .3rem; }
.entity-bar-head > b:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.entity-bar-head .small { flex: 1; }

/* ── 人员选择卡 ──────────────────────────────────────────────── */
.picked-person { display: flex; gap: .7rem; align-items: center; padding: .65rem .75rem; border: 1px solid #ccfbf1; border-radius: 10px; background: #f0fdfa; }
.picked-person .avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent, #0d9488); color: #fff; font-weight: 700; flex: 0 0 auto; }
.picked-person > div:nth-child(2) { flex: 1; min-width: 0; }
.picked-person b { font-size: var(--fs-sm, .8125rem); }

/* ── 时间线列表（说明卡） ────────────────────────────────────── */
.timeline-list { margin: 0; padding-left: 1.2rem; }
.timeline-list li { margin-bottom: .7rem; font-size: var(--fs-sm, .8125rem); line-height: 1.55; }
.timeline-list li b { display: block; color: #0f766e; }
.timeline-list li p { margin: .15rem 0 0; color: var(--muted, #64748b); font-size: var(--fs-xs, .75rem); }
.side-note { position: sticky; top: .8rem; }

/* ── 兼容旧页面的 card-link ──────────────────────────────────── */
.card-link { font-size: var(--fs-xs, .75rem); color: var(--accent, #0d9488); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ── 表格横向滚动 ────────────────────────────────────────────── */
/* timeline (person profile / group replies / mobile) */
.timeline { display: flex; flex-direction: column; gap: .75rem; }
.timeline-item { position: relative; display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm, .8125rem); line-height: 1.55; color: inherit; text-decoration: none; }
.timeline-dot { flex: 0 0 auto; width: .55rem; height: .55rem; margin-top: .4rem; border-radius: 50%; background: #cbd5e1; box-shadow: 0 0 0 3px #f1f5f9; }
.timeline-dot.ok { background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
.timeline-dot.danger { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.timeline-body { flex: 1 1 auto; min-width: 0; display: block; }
.timeline-body b { display: block; }
.timeline-time { flex: 0 0 auto; color: var(--muted, #64748b); font-size: var(--fs-xs, .75rem); white-space: nowrap; }
.timeline-list { list-style: none; margin: 0; padding-left: 0; }
.timeline-list .timeline-item { margin-bottom: 0; }
.timeline-list .timeline-item.is-active { background: #f0fdfa; border-radius: 8px; padding: .35rem .45rem; }

/* mobile-first panels (L07): phone width, big tap targets */
.mobile-panel { max-width: 44rem; }
.mobile-panel .card-body { padding: .85rem; }
@media (max-width: 640px) {
  .mobile-panel { max-width: none; }
  .mobile-panel .btn, .mobile-panel .form-control { min-height: 2.6rem; font-size: 1rem; }
  .timeline-item { flex-wrap: wrap; }
  .timeline-time { width: 100%; }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap.is-scrollable { box-shadow: inset -8px 0 8px -8px rgba(15, 23, 42, .18); }
.table-wrap .table { min-width: 44rem; }

/* ── 移动端侧栏抽屉 ──────────────────────────────────────────── */
.mobile-nav-btn { display: none; }
@media (max-width: 768px) {
  .mobile-nav-btn { display: inline-flex; }
  .layout { display: block; }
  .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0;
    width: min(84vw, 20rem);
    height: 100dvh;
    z-index: 1200;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: 0 12px 40px rgba(2, 6, 23, .35);
  }
  .layout.is-mobile-nav-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(2, 6, 23, .45);
    backdrop-filter: blur(2px);
  }
  .sidebar-backdrop[hidden] { display: none; }
  .sidebar-toggle { display: none; }
  .main { min-height: 100dvh; }
  .content { padding: 1rem .85rem 1.5rem; }
  .topbar { flex-wrap: wrap; gap: .5rem; }
  .topbar-user { display: none; }
  .stepper { padding: .55rem .6rem; }
  .step { min-width: 4.5rem; }
}

/* ── 响应式 ──────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .split-2 { grid-template-columns: minmax(0, 1fr); }
  .side-note { position: static; }
  .stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .stat-grid-3, .stat-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-row { grid-template-columns: 1fr; }
  .triple-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .page-head { flex-direction: column; }
  .page-head-actions { width: 100%; }
  .candidate-head { align-items: center; }
  .pipe-row { grid-template-columns: 4.2rem minmax(0, 1fr) 2rem; }
  .pipe-row .badge { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .stat-grid-3, .stat-grid-4 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.15rem; }
  .agency-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-row { align-items: stretch; }
  .action-row .form-control { max-width: none; }
  .bar-row { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
}

/* ֪ͨÖÐÐÄÓ붥À¸Áåîõ */
.notif-bell { position: relative; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; color: var(--ink-2, #3b4753); background: rgba(15,90,104,.08); text-decoration:none; transition: background .18s ease; }
.notif-bell:hover { background: rgba(15,90,104,.16); }
.notif-bell.has-danger { color:#b42318; background: rgba(180,35,24,.1); }
.notif-count { position:absolute; top:-3px; right:-4px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:#b42318; color:#fff; font-size:10px; line-height:17px; text-align:center; font-weight:700; box-shadow:0 0 0 2px #fff; }
.table tr.is-unread td { background: #f6fbfc; }
.table tr.is-unread .row-title::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#0f5a68; margin-right:6px; vertical-align:middle; }
