/* ============================================================
   Views · 各视图专有样式
   ============================================================ */

/* ---------------- 登录 ---------------- */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
}
.login-left {
  background: linear-gradient(155deg, #4B4BC4 0%, #6D6AF0 55%, #22C3D6 100%);
  color: #fff;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::before,
.login-left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.login-left::before { width: 460px; height: 460px; right: -170px; top: -130px; }
.login-left::after { width: 320px; height: 320px; left: -120px; bottom: -120px; background: rgba(255,255,255,.05); }
.login-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.login-logo {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 14px rgba(8, 30, 80, .28), 0 0 0 2px rgba(255, 255, 255, .32);
}
.login-brand-mark {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.login-h1 {
  font-size: 33px;
  font-weight: 650;
  letter-spacing: -.8px;
  line-height: 1.28;
  position: relative; z-index: 1;
  margin-bottom: 14px;
}
.login-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.75;
  max-width: 400px;
  position: relative; z-index: 1;
}
.login-points {
  display: flex; flex-direction: column; gap: 13px;
  position: relative; z-index: 1;
  margin-top: 34px;
}
.login-point { display: flex; gap: 11px; align-items: flex-start; }
.login-point-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.login-point-t { font-size: 13px; font-weight: 600; }
.login-point-d { font-size: 11.5px; color: rgba(255,255,255,.72); line-height: 1.55; margin-top: 1px; }
.login-foot-note {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  position: relative; z-index: 1;
}

.login-right {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-panel-2);
  overflow-y: auto;
}
.login-form-title { font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.login-form-desc { font-size: 13px; color: var(--c-text-3); margin-top: 4px; }
.role-list { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.role-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
  text-align: left;
  width: 100%;
}
.role-card:hover { border-color: var(--c-primary-line); box-shadow: var(--sh-sm); transform: translateY(-1px); }
.role-card.is-active { border-color: var(--c-primary); box-shadow: var(--sh-ring); }
.role-card-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.role-card-desc { font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; line-height: 1.45; }
.role-card-go {
  margin-left: auto;
  color: var(--c-text-4);
  transition: color var(--tr-fast), transform var(--tr-fast);
  flex-shrink: 0;
}
.role-card:hover .role-card-go { color: var(--c-primary); transform: translateX(2px); }

/* ---------------- 工作台 ---------------- */
.todo-list { display: flex; flex-direction: column; padding-bottom: 4px; }
.todo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid #F1F3F9;
  cursor: pointer;
  transition: background var(--tr-fast);
}
.todo-row:hover { background: #FAFBFF; }
/* 末行贴到卡片 16px 圆角上，hover 底色要跟着圆角收，否则会顶出直角 */
.todo-row:last-child { border-bottom: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.todo-ico {
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 13px; font-weight: 500; line-height: 1.4; }
.todo-meta { font-size: 11px; color: var(--c-text-3); margin-top: 1px; }
.todo-go { color: var(--c-text-4); flex-shrink: 0; }

/* 到期时间轴（横向 90 天） */
.expiry-axis { padding: 8px 4px 2px; }
.expiry-track {
  position: relative;
  height: 54px;
  margin: 20px 0 6px;
}
.expiry-line {
  position: absolute; left: 0; right: 0; top: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #FBD5D2 0%, #FBE3C8 34%, #FDF4D6 64%, #CBEFE2 100%);
}
.expiry-tick {
  position: absolute; top: 16px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
}
.expiry-tick i {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 4px rgba(16,24,40,.2);
  z-index: 1;
}
.expiry-tick span {
  font-size: 10px;
  color: var(--c-text-3);
  margin-top: 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.expiry-scale {
  position: relative;
  height: 16px;
  font-size: 10px;
  color: var(--c-text-4);
}
.expiry-scale span { position: absolute; transform: translateX(-50%); }

/* 密集降级：超过 8 条只画圆点，靠 hover 看详情，避免「N天」文字互相压叠 */
.expiry-track.is-dense { height: 58px; }
.expiry-tick.is-dot { z-index: 2; }
.expiry-tick.is-dot:hover { z-index: 6; }
.expiry-tick.is-dot i {
  width: 9px; height: 9px;
  border-width: 2px;
  transition: transform var(--tr-fast);
}
.expiry-tick.is-dot:hover i { transform: scale(1.55); }
.expiry-edge {
  position: absolute;
  top: 36px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

/* ---------------- 员工列表 ---------------- */
.emp-cell { display: flex; align-items: center; gap: 9px; }
.emp-cell-main { min-width: 0; }
.emp-cell-name { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 5px; }
/* 档案号形如 GA05-2026-0009-5，不能折成两行把行高撑歪 */
.emp-cell-sub { font-size: 11px; color: var(--c-text-3); margin-top: 1px; white-space: nowrap; }
/* 单行单元格：超出用省略号，hover 看 title，避免长岗位名换行导致行高参差 */
.cell-nowrap {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-ring { display: flex; align-items: center; gap: 6px; }
.mini-ring-num { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------- 员工 360 ---------------- */
.emp-hero {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--sh-xs);
  position: relative;
  overflow: hidden;
}
.emp-hero::after {
  content: '';
  position: absolute;
  right: -40px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  opacity: .55;
}
.emp-hero-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.emp-name-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.emp-name { font-size: 20px; font-weight: 650; letter-spacing: -.3px; }
.emp-meta-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--c-text-2);
  flex-wrap: wrap;
}
.emp-meta-row .sep { color: var(--c-border-strong); }
.emp-hero-side {
  display: flex; align-items: center; gap: 20px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}

/* 齐全度大环 */
.completeness-box { text-align: center; }
.completeness-cap { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }

/* 材料清单表 */
.mat-table td { padding: 8px 10px; }

/* ---------------- 入职 / 离职向导 ---------------- */
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .wizard-layout { grid-template-columns: minmax(0, 1fr); } }

.wizard-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 16px; }
.gate-list { display: flex; flex-direction: column; gap: 0; }
.gate-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 0;
  border-bottom: 1px dashed #F1F3F9;
  font-size: 12.5px;
}
.gate-item:last-child { border-bottom: none; }
.gate-ico {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.gate-ico.is-ok { background: var(--c-success-bg); color: var(--c-success); }
.gate-ico.is-no { background: var(--c-danger-bg); color: var(--c-danger); }
.gate-ico.is-wait { background: var(--c-bg-deep); color: var(--c-text-4); }
.gate-txt { flex: 1; min-width: 0; }
.gate-name { font-weight: 500; line-height: 1.4; }
.gate-hint { font-size: 10.5px; color: var(--c-text-3); margin-top: 1px; line-height: 1.45; }

/* 审批链 */
.chain { display: flex; flex-direction: column; gap: 0; }
.chain-item { display: flex; gap: 10px; position: relative; padding-bottom: 14px; }
.chain-item:last-child { padding-bottom: 0; }
.chain-item::before {
  content: '';
  position: absolute;
  left: 9px; top: 20px; bottom: 0;
  width: 1.5px;
  background: var(--c-border);
}
.chain-item:last-child::before { display: none; }
.chain-dot {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--c-border-strong);
  background: #fff;
  flex-shrink: 0;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--c-text-3);
}
.chain-dot.is-done { background: var(--c-success); border-color: var(--c-success); color: #fff; }
.chain-dot.is-current { border-color: var(--c-primary); color: var(--c-primary); box-shadow: 0 0 0 3px rgba(91, 91, 214),.12); }
.chain-main { flex: 1; min-width: 0; padding-top: 1px; }
.chain-name { font-size: 12.5px; font-weight: 600; }
.chain-role { font-size: 11px; color: var(--c-text-3); }

/* 交接单 */
.handover-group { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.handover-head {
  padding: 8px 12px;
  background: var(--c-panel-2);
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.handover-list { padding: 6px 12px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
@media (max-width: 640px) { .handover-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- 档案中心 ---------------- */
.archive-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .archive-layout { grid-template-columns: minmax(0, 1fr); } }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.file-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  transition: box-shadow var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
  cursor: pointer;
}
.file-card:hover { box-shadow: var(--sh-md); border-color: var(--c-border-strong); transform: translateY(-1px); }
.file-thumb {
  height: 104px;
  background: var(--c-bg-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-4);
  position: relative;
  overflow: hidden;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb .file-ext {
  position: absolute; top: 7px; left: 7px;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  background: rgba(255,255,255,.92);
  color: var(--c-text-2);
  letter-spacing: .3px;
}
.file-thumb .file-pages {
  position: absolute; bottom: 7px; right: 7px;
  font-size: 9.5px;
  padding: 1px 5px; border-radius: 3px;
  background: rgba(16,24,40,.62);
  color: #fff;
}
.file-info { padding: 8px 10px 9px; }
.file-name { font-size: 12px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.file-meta { font-size: 10px; color: var(--c-text-3); margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

/* 缺失卡片 */
.file-card.is-missing {
  border-style: dashed;
  background: #FEFCFC;
}
.file-card.is-missing .file-thumb { background: #FDF2F2; color: #E0A3A3; }
.file-card.is-expired .file-thumb { background: var(--c-warning-bg); color: #D9AE5A; }

/* ---------------- 档案室平面图 ---------------- */
.room-wrap {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px;
  position: relative;
}
.room-legend { display: flex; align-items: center; gap: 14px; font-size: 11px; color: var(--c-text-3); flex-wrap: wrap; }
.room-legend-item { display: flex; align-items: center; gap: 5px; }
.room-legend-swatch { width: 10px; height: 10px; border-radius: 3px; }
.rack-detail { display: flex; flex-direction: column; gap: 8px; }
.shelf-row {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}
.shelf-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.box-chip {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  padding: 6px;
  font-size: 10.5px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: all var(--tr-fast);
  position: relative;
}
.box-chip:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.box-chip.is-active { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: 0 0 0 2px rgba(91, 91, 214),.12); }
.box-chip-code { font-weight: 600; font-family: var(--font-num); font-size: 10px; }
.box-chip-use { font-size: 9px; color: var(--c-text-3); margin-top: 1px; }
.box-chip .fill-bar { height: 2px; border-radius: 1px; background: var(--c-bg-deep); margin-top: 4px; overflow: hidden; }
.box-chip .fill-bar i { display: block; height: 100%; }

/* 袋列表 */
.bag-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #F1F3F9;
  font-size: 12px;
  cursor: pointer;
}
.bag-row:hover { background: #FAFBFF; }
.bag-row:last-child { border-bottom: none; }
.bag-no { font-family: var(--font-num); font-size: 11px; color: var(--c-text-2); width: 122px; flex-shrink: 0; }
.bag-name {
  font-weight: 600; width: 110px; flex-shrink: 0;
  /* 姓名列固定宽度：长姓名用省略号，不能让它一个字一行地折成竖排 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------- 合同台账 ---------------- */
.ct-progress { display: flex; flex-direction: column; gap: 3px; min-width: 108px; }
.ct-bar { height: 4px; border-radius: 2px; background: var(--c-bg-deep); overflow: hidden; }
.ct-bar i { display: block; height: 100%; border-radius: 2px; transition: width var(--tr); }

/* ---------------- 提醒中心 ---------------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 1px 0 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.cal-dow {
  background: var(--c-panel-2);
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c-text-3);
  padding: 6px 0;
}
.cal-cell {
  background: #fff;
  min-height: 62px;
  padding: 5px 6px;
  position: relative;
  cursor: pointer;
  transition: background var(--tr-fast);
}
.cal-cell:hover { background: #FAFBFF; }
.cal-cell.is-out { background: #FCFCFD; cursor: default; }
.cal-cell.is-out .cal-day { color: var(--c-text-4); }
.cal-cell.is-today { background: var(--c-primary-soft); }
.cal-cell.is-today .cal-day { color: var(--c-primary); font-weight: 700; }
.cal-day { font-size: 11px; color: var(--c-text-2); font-variant-numeric: tabular-nums; }
.cal-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5px; margin-top: 5px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; }
/* 溢出数量与圆点同一行（9px），不再单独占一行，避免被格子底边裁切 */
.cal-more { font-size: 9px; line-height: 1; color: var(--c-text-3); margin-left: 1px; font-variant-numeric: tabular-nums; }

/* ---------------- 报表 ---------------- */
.chart-box { width: 100%; }
.heat-legend { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--c-text-3); }
.heat-scale { display: flex; gap: 2px; }
.heat-scale i { width: 11px; height: 11px; border-radius: 2px; }

/* ---------------- 设置 ---------------- */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #F1F3F9;
}
.setting-row:last-child { border-bottom: none; }
.setting-name { font-size: 13px; font-weight: 500; }
.setting-desc { font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; line-height: 1.5; }

/* 模板项编辑行 */
.tpl-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 12px;
  margin-bottom: 6px;
}
.tpl-seq { width: 20px; color: var(--c-text-4); font-size: 10.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tpl-name { flex: 1; min-width: 0; font-weight: 500; }

/* ---------------- 审计 ---------------- */
.audit-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F1F3F9; font-size: 12.5px; }
.audit-row:last-child { border-bottom: none; }
.audit-time { width: 118px; flex-shrink: 0; color: var(--c-text-3); font-size: 11px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.audit-body { flex: 1; min-width: 0; }
.audit-act { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.audit-detail { color: var(--c-text-2); margin-top: 2px; line-height: 1.55; word-break: break-all; }
.audit-row.is-sensitive .audit-act { color: #B45309; }

/* ---------------- 403 / 404 ---------------- */
.state-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  min-height: 60vh;
  text-align: center;
}
.state-code { font-size: 46px; font-weight: 700; color: var(--c-border-strong); letter-spacing: -2px; line-height: 1; }

/* ---------------- 员工自助 H5 ---------------- */
.m-brand {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; letter-spacing: .2px;
  opacity: .82;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.m-brand-logo { width: 18px; height: 18px; border-radius: var(--r-xs); display: block; }

.m-portrait {
  display: flex; align-items: center; gap: 12px;
}
.m-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.m-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  margin-bottom: 12px;
}
.m-card-head {
  padding: 11px 13px;
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.m-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid #F3F5F8;
  font-size: 12.5px;
}
.m-row:last-child { border-bottom: none; }
.m-row-k { color: var(--c-text-3); flex-shrink: 0; }
.m-row-v { color: var(--c-text); text-align: right; min-width: 0; }
.m-big-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--c-primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  width: 100%;
}

/* ============================================================
   登录页 · 账号密码表单（需求 4.1 / 4.2）
   ============================================================ */
.login-form { margin-top: 20px; }
.login-submit { width: 100%; height: 40px; font-size: 14px; letter-spacing: 2px; }
.login-err {
  background: var(--c-danger-bg); color: #B42318; border: 1px solid #F6C7C7;
  border-radius: var(--r-sm); padding: 7px 10px; font-size: 12px; line-height: 1.5;
  margin: 2px 0 10px;
}
.login-or {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 12px;
  font-size: 11.5px; color: var(--c-text-4);
}
.login-or::before,
.login-or::after {
  content: ''; flex: 1; height: 1px; background: var(--c-border);
}
.login-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.login-quick-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 9px; text-align: left;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: #fff; cursor: pointer;
  font-size: 12px; color: var(--c-text-2);
  transition: border-color .14s, background .14s;
}
.login-quick-item:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.login-quick-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.login-quick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 未改密提示条 */
#pwd-banner {
  display: flex; align-items: center;
  margin: 0 24px 14px;
  padding: 9px 15px;
  background: var(--c-warning-bg);
  border: none;
  border-radius: var(--r-md);
  color: #B45309;
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   角色与权限页
   ============================================================ */
.perm-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 16px; align-items: start; }
.perm-left { padding: 9px; }
.perm-right { padding: 14px 16px; }
.perm-role-list { display: flex; flex-direction: column; gap: 2px; }
.perm-role {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border: none; background: transparent;
  border-radius: var(--r-sm); cursor: pointer;
  font-size: 12.5px; color: var(--c-text-2);
  transition: background .12s, color .12s;
}
.perm-role:hover { background: var(--c-bg-deep); }
.perm-role.is-active { background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.perm-role-n { font-size: 10.5px; color: var(--c-text-4); font-variant-numeric: tabular-nums; }
.perm-role.is-active .perm-role-n { color: var(--c-primary); }

.perm-group-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 600; color: var(--c-text-3);
  margin: 14px 0 6px; padding-top: 10px;
  border-top: 1px solid var(--c-border);
}
.perm-group-head:first-of-type { border-top: none; padding-top: 0; margin-top: 6px; }
.perm-group-n { font-weight: 500; color: var(--c-text-4); font-variant-numeric: tabular-nums; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 6px; }
.perm-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 9px; border: 1px solid var(--c-border);
  border-radius: var(--r-sm); font-size: 12px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.perm-item:hover { border-color: var(--c-primary-line); }
.perm-item.is-on { border-color: var(--c-primary-line); background: var(--c-primary-soft); }
.perm-item.is-readonly { cursor: default; }
.perm-item.is-readonly:hover { border-color: var(--c-border); }
.perm-box {
  width: 13px; height: 13px; border-radius: 3px;
  border: 1.4px solid var(--c-border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; background: #fff;
}
.perm-item.is-on .perm-box { background: var(--c-primary); border-color: var(--c-primary); }
.perm-tip {
  font-size: 9.5px; color: #B45309; background: #FEF0E4;
  padding: 1px 4px; border-radius: 3px; flex-shrink: 0;
}

/* 日志行 */
.log-line {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: 11.5px;
  border-top: 1px dashed var(--c-border);
}
.log-line:first-child { border-top: none; }
.log-time { color: var(--c-text-4); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.log-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-success); flex-shrink: 0; }
.log-dot.is-fail { background: var(--c-danger); }
.log-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-by { color: var(--c-text-4); flex-shrink: 0; font-size: 10.5px; }

/* 创建关系矩阵 */
.matrix-tbl th, .matrix-tbl td { padding: 7px 8px; font-variant-numeric: tabular-nums; }
.matrix-tbl td:hover { background: var(--c-primary-soft) !important; outline: 1px solid var(--c-primary-line); }

/* ============================================================
   续签中心
   ============================================================ */
.grade-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin-bottom: 4px;
}
.grade-item {
  background: #fff;
  border: none;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  padding: 12px 14px;
}
.grade-day { font-size: 15px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.grade-txt { font-size: 11px; color: var(--c-text-3); line-height: 1.5; margin-top: 2px; }

.info-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; padding: 10px 12px;
  background: var(--c-bg-deep); border-radius: var(--r-md);
}
.info-cell-l { font-size: 10.5px; color: var(--c-text-3); }
.info-cell-v {
  font-size: 12px; font-weight: 600; margin-top: 1px;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.drawer-pane { padding: 16px 20px 24px; }

.renew-flow { display: flex; flex-direction: column; }
.renew-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0 10px 0;
  border-top: 1px solid var(--c-border);
  opacity: .62;
}
.renew-step:first-child { border-top: none; }
.renew-step.is-active { opacity: 1; }
.renew-step.is-done { opacity: 1; }
.renew-step-no {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-bg-deep); color: var(--c-text-3);
  font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.renew-step.is-active .renew-step-no { background: var(--c-primary); color: #fff; }
.renew-step.is-done .renew-step-no { background: var(--c-success); color: #fff; }
.renew-step-main { flex: 1; min-width: 0; }
.renew-step-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; }
.renew-step-who {
  font-size: 10px; color: var(--c-text-3);
  border: 1px solid var(--c-border); border-radius: 3px; padding: 0 4px;
}
.renew-step-out { font-size: 10.5px; color: var(--c-success); }
.renew-step-desc { font-size: 11.5px; color: var(--c-text-3); line-height: 1.55; margin-top: 2px; }
.renew-step-act { flex-shrink: 0; align-self: center; }

/* ============================================================
   AI 接管
   ============================================================ */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 12px;
}
.slot-card { padding: 13px 15px; }

/* ============================================================
   系统日志与追溯
   ============================================================ */
.trace-chips {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 5px;
}
.trace-chip {
  display: inline-flex; align-items: center;
  font-size: 11px; line-height: 1.5;
  padding: 1px 7px; border-radius: var(--r-xs);
  background: var(--c-bg-deep); color: var(--c-text-2);
  border: 1px solid var(--c-border);
  cursor: default;
}
.trace-chip.is-new {
  background: var(--c-success-bg); color: var(--c-success);
  border-color: rgba(18, 185, 129, .22);
}
.trace-chip.is-gone {
  background: transparent; color: var(--c-text-3);
  border-style: dashed; border-color: var(--c-border-strong, #D6DBE3);
  text-decoration: line-through;
}

/* ============================================================
   首次登录强制改密（V2.2 4.2）
   ============================================================ */
.force-pwd-wrap {
  min-height: calc(100vh - 56px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px; gap: 14px;
}
.force-pwd-card {
  width: 100%; max-width: 520px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .06);
}
.force-pwd-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-deep);
}
.force-pwd-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); background: var(--c-primary-soft); color: var(--c-primary);
}
.force-pwd-title { font-size: 15px; font-weight: 700; color: var(--c-text); }
.force-pwd-sub { font-size: 11.5px; color: var(--c-text-3); margin-top: 2px; }
.force-pwd-body { padding: 18px 20px 20px; }
.force-pwd-label {
  font-size: 12px; font-weight: 600; color: var(--c-text-2);
  margin: 10px 0 5px;
}
.force-pwd-body .btn { width: 100%; margin-top: 14px; justify-content: center; }
.force-pwd-err {
  min-height: 17px; margin-top: 8px;
  font-size: 12px; color: var(--c-danger);
  visibility: hidden;
}
.force-pwd-rule {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--c-border);
  font-size: 11px; color: var(--c-text-3); line-height: 1.9;
}
.force-pwd-foot { padding-bottom: 8px; }

/* ============================================================
   人员类型标签（V2.2 第 4 章）
   ============================================================ */
.kind-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; line-height: 1.6;
  padding: 0 6px; border-radius: var(--r-xs);
  border: 1px solid transparent; white-space: nowrap;
}
.kind-tag.is-internal {
  color: #1F6FEB; background: rgba(31, 111, 235, .09);
  border-color: rgba(31, 111, 235, .2);
}
.kind-tag.is-dispatch {
  color: #8A5CF6; background: rgba(138, 92, 246, .09);
  border-color: rgba(138, 92, 246, .2);
}

/* ============================================================
   短信验证码意愿校验（V2.3 5.2 / 5.6）
   ============================================================ */
.sms-box {
  margin-top: 10px; padding: 12px 13px;
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-bg-deep);
}
.sms-box.is-ok { border-color: rgba(18, 185, 129, .3); background: var(--c-success-bg); }
.sms-box.is-bad { border-color: rgba(240, 68, 56, .3); background: var(--c-danger-bg); }
.sms-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.sms-title { font-size: 12px; font-weight: 600; color: var(--c-text); }
.sms-meta { font-size: 11px; color: var(--c-text-3); }
.sms-row { display: flex; gap: 8px; align-items: center; }
.sms-row .input { flex: 1; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.sms-code-hint {
  margin-top: 7px; font-size: 10.5px; color: var(--c-text-4); line-height: 1.7;
}
.sms-demo {
  margin-top: 7px; padding: 6px 9px; border-radius: var(--r-xs);
  font-size: 11px; color: #8A5CF6; background: rgba(138, 92, 246, .08);
  border: 1px dashed rgba(138, 92, 246, .3);
}
.sms-sign-file {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 11px; margin-top: 8px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-surface);
}
.sms-sign-file.is-done { border-color: rgba(18, 185, 129, .28); background: var(--c-success-bg); }
.sms-sign-name { font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.sms-sign-sub { font-size: 10.5px; color: var(--c-text-3); margin-top: 1px; }

/* badge 色调别名：ui.badge 历史上用 ok/warn，样式表里只有 success/warning */
.badge-ok   { background: var(--c-success-bg); color: var(--c-success); }
.badge-warn { background: var(--c-warning-bg); color: var(--c-warning); }

/* ============================================================
   环节二 · 资质核验：材料拍照上传（多图 / 学历豁免）
   ============================================================ */
.qa-stat { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 2px; }
.qa-stat-item {
  flex: 1 1 150px; padding: 9px 12px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: var(--c-panel-2);
}
.qa-stat-label { font-size: 10.5px; color: var(--c-text-3); }
.qa-stat-value {
  margin-top: 2px; font-size: 14px; font-weight: 700;
  color: var(--c-text); font-variant-numeric: tabular-nums;
}
.qa-stat-item.is-ok { border-color: rgba(18, 185, 129, .28); background: var(--c-success-bg); }
.qa-stat-item.is-ok .qa-stat-value { color: var(--c-success); }
.qa-stat-item.is-warn { border-color: rgba(247, 144, 9, .26); background: var(--c-warning-bg); }
.qa-stat-item.is-warn .qa-stat-value { color: var(--c-warning); }
.qa-stat-item.is-muted .qa-stat-value { color: var(--c-text-3); font-size: 13px; }

.qa-sec-title {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 10px; font-size: 12.5px; font-weight: 700; color: var(--c-text);
}
.qa-sec-title::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }

.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 980px) { .qa-grid { grid-template-columns: 1fr; } }

.qa-slot {
  padding: 11px 12px 12px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: var(--c-panel);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.qa-slot.is-got { border-color: rgba(18, 185, 129, .3); }
.qa-slot.is-off {
  background: repeating-linear-gradient(135deg, #FAFBFC, #FAFBFC 9px, #F2F4F8 9px, #F2F4F8 18px);
}
.qa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.qa-name { font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.qa-tags { display: flex; gap: 4px; flex-shrink: 0; }
.qa-tags .badge { font-size: 10px; padding: 1px 6px; }
.qa-desc { margin-top: 3px; font-size: 10.5px; line-height: 1.6; color: var(--c-text-3); }

.qa-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.qa-thumb {
  position: relative; width: 60px; height: 60px; border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--c-border);
  background: var(--c-bg-deep); cursor: zoom-in;
}
.qa-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qa-thumb-ph {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center; color: var(--c-text-4);
}
.qa-thumb-i {
  position: absolute; left: 0; bottom: 0; line-height: 13px; padding: 0 4px;
  font-size: 9px; color: #fff; background: rgba(23, 32, 43, .62);
  border-top-right-radius: 5px;
}
.qa-thumb-del {
  position: absolute; right: 2px; top: 2px; width: 15px; height: 15px;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(23, 32, 43, .62);
}
.qa-thumb-del:hover { background: var(--c-danger); }
.qa-thumb.is-doc {
  background: var(--c-primary-soft); border-color: var(--c-primary-line);
  cursor: pointer;
}
.qa-thumb-doc {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
  color: var(--c-primary);
}
.qa-thumb-doc-ico { display: flex; }
.qa-thumb-doc-ext { font-size: 8.5px; font-weight: 700; letter-spacing: .02em; }
.qa-thumb-empty {
  flex: 1; min-height: 60px; padding: 6px 8px; border-radius: var(--r-sm);
  border: 1px dashed var(--c-border-strong); text-align: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: var(--c-text-4);
}
.qa-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 环节五签约材料行：左侧状态 + 中间说明 + 右侧操作（可换行） */
.sign-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--c-border); background: #fff;
  border-radius: var(--r-md); margin-bottom: 7px;
}
.sign-row.is-ok { border-color: #BFE3D5; background: #F7FCFA; }
.sign-row-hint { margin-top: 2px; font-size: 10px; color: var(--c-text-4); }
.sign-row-acts {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 6px; flex-shrink: 0; max-width: 62%;
}
.sign-ok { font-size: 11px; font-weight: 600; color: var(--c-success); white-space: nowrap; }
@media (max-width: 760px) {
  .sign-row { flex-wrap: wrap; }
  .sign-row-acts { max-width: 100%; width: 100%; justify-content: flex-start; }
}

.qa-edu-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 10px; border-radius: var(--r-md);
  border: 1px solid var(--c-primary-line); background: var(--c-primary-soft);
}
.qa-edu-label { font-size: 12px; font-weight: 600; color: var(--c-text); }
.qa-edu-bar select { flex: 0 0 340px; width: 340px; height: 32px; }
.qa-edu-hint { flex: 1 1 100%; font-size: 10.5px; line-height: 1.6; color: var(--c-text-2); }
@media (max-width: 980px) { .qa-edu-bar select { flex: 1 1 100%; width: 100%; } }

/* ============================================================
   劳动法条款提示（环节三 · 合同期限与试用期）
   ============================================================ */
.clause-panel {
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-panel); overflow: hidden;
}
.clause-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--c-border);
  background: var(--c-panel-2);
}
.clause-head-title { font-size: 12.5px; font-weight: 700; color: var(--c-text); }
.clause-head-sub { font-size: 10.5px; color: var(--c-text-3); }
.clause-item {
  display: flex; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid var(--c-border);
}
.clause-item:last-child { border-bottom: 0; }
.clause-item.is-core { background: rgba(91, 91, 214, .035); }
.clause-art {
  flex: 0 0 62px; font-size: 10.5px; font-weight: 700; color: var(--c-primary);
  padding-top: 1px; font-variant-numeric: tabular-nums;
}
.clause-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--c-text);
}
.clause-title .badge { font-size: 9.5px; padding: 0 5px; }
.clause-text {
  margin-top: 3px; font-size: 10.5px; line-height: 1.75; color: var(--c-text-2);
}

/* ============================================================
   劳务派遣单位管理：规则说明
   ============================================================ */
.rule-list { display: flex; flex-direction: column; gap: 8px; }
.rule-row { display: flex; align-items: flex-start; gap: 9px; }
.rule-dot {
  flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  margin-top: 5px; background: var(--c-text-4);
}
.rule-dot.is-info { background: #7C4DFF; }
.rule-dot.is-warn { background: var(--c-warning); }
.rule-dot.is-danger { background: var(--c-danger); }
.rule-dot.is-muted { background: var(--c-border-strong); }
.rule-name { font-size: 12px; font-weight: 600; color: var(--c-text); }
.rule-desc { font-size: 10.5px; line-height: 1.6; color: var(--c-text-3); }

/* ============================================================
   登录页 · 账号诊断
   「登录不上」多是账号不存在 / 被锁定 / 被旧版本重建覆盖，
   先让用户自己查清楚，而不是反复试密码把账号锁死
   ============================================================ */
.login-diag {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--c-border);
}
.login-diag-hint { font-size: 11.5px; color: var(--c-text-3); }
.login-diag-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.login-diag-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 11.5px; line-height: 1.6; color: var(--c-primary);
  text-decoration: underline; text-underline-offset: 2px;
}
.login-diag-link:hover { color: var(--c-primary-hover); }
.login-diag-link.is-sub { color: var(--c-text-3); }
.login-diag-link.is-sub:hover { color: var(--c-primary); }

/* 诊断结果 */
.diag-row { display: flex; align-items: center; gap: 8px; }
.diag-note { font-size: 11px; line-height: 1.6; color: var(--c-text-4); margin: 10px 0 2px; }
.diag-out > * + * { margin-top: 10px; }
.diag-block {
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-text-4);
  border-radius: var(--r-sm); padding: 10px 12px; background: #fff;
}
.diag-block-t { font-size: 12.5px; font-weight: 600; color: var(--c-text); margin-bottom: 4px; }
.diag-line { font-size: 11.5px; line-height: 1.75; color: var(--c-text-2); }
.diag-line + .diag-line { margin-top: 3px; }
.diag-danger { border-left-color: var(--c-danger); background: var(--c-danger-bg); }
.diag-danger .diag-block-t { color: #B42318; }
.diag-warn { border-left-color: var(--c-warning); background: var(--c-warning-bg); }
.diag-warn .diag-block-t { color: #B45309; }
.diag-success { border-left-color: var(--c-success); background: var(--c-success-bg); }
.diag-success .diag-block-t { color: #0B7A55; }
.diag-info { border-left-color: var(--c-primary); background: var(--c-primary-soft); }
.diag-info .diag-block-t { color: var(--c-primary); }
.diag-actions { display: flex; gap: 8px; }

/* ============================================================
   首次登录强制改密 · 成功态提示
   这一页最容易被误读成「登录失败」，用绿色成功条先给结论
   ============================================================ */
.force-pwd-ok {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 11px; margin-bottom: 12px;
  border: 1px solid #C7EBD9; border-radius: var(--r-sm); background: var(--c-success-bg);
}
.force-pwd-ok-ico { display: inline-flex; margin-top: 1px; color: var(--c-success); }
.force-pwd-ok-t { font-size: 12.5px; font-weight: 600; color: #0B7A55; }
.force-pwd-ok-d { font-size: 11px; line-height: 1.6; color: #2F6B55; margin-top: 2px; }
.force-pwd-acct {
  font-size: 12.5px; font-weight: 600; color: var(--c-text);
  padding: 6px 9px; border-radius: var(--r-sm); background: var(--c-bg-deep);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   基础配置 · 本机数据备份
   ============================================================ */
.bak-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid #F1F3F9;
}
.bak-row:last-child { border-bottom: 0; }
.bak-main { flex: 1; min-width: 0; }
.bak-time { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bak-sub { font-size: 11px; color: var(--c-text-3); margin-top: 1px; }
.bak-acts { display: flex; gap: 4px; flex-shrink: 0; }

/* ============================================================
   离职办理 · 环节六 纸质材料上传（V2.4）
   优先复用 .qa-* 系列，这里只补离职特有的性质条与确认行
   ============================================================ */
.of-nature {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 14px; padding: 11px 13px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: var(--c-panel-2);
}
.of-nature.is-normal { border-left: 3px solid var(--c-success); }
.of-nature.is-abnormal { border-left: 3px solid var(--c-danger); background: var(--c-danger-bg); }
.of-nature-main { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 380px; min-width: 0; }
.of-nature-badge {
  flex: 0 0 auto; padding: 2px 8px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 700; line-height: 1.6;
  background: var(--c-success-bg); color: var(--c-success);
}
.of-nature.is-abnormal .of-nature-badge { background: #FBE3E3; color: #B42318; }
.of-nature-txt { font-size: 12px; line-height: 1.6; color: var(--c-text-2); min-width: 0; }
.of-nature-sub { margin-top: 2px; font-size: 10.5px; line-height: 1.6; color: var(--c-text-3); }
.of-nature-switch { flex: 0 0 auto; font-size: 11.5px; color: var(--c-text-2); }
.of-nature.is-abnormal .of-nature-switch { font-weight: 600; color: #B42318; }

/* 选传项：灰底提示本情形非必需 */
.of-opt-hint {
  margin-top: 4px; font-size: 10.5px; line-height: 1.6;
  color: var(--c-text-3); font-style: normal;
}
/* 建议上传项：橙色提示，仍不阻断办结 */
.of-opt-hint.is-suggest { color: var(--c-warning); }

/* ============================================================
   办理方式选择卡（纸质化 / 电子签）
   ============================================================ */
.ch-pick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 720px) { .ch-pick { grid-template-columns: 1fr; } }

.ch-pick-item {
  position: relative; padding: 12px 13px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background: #fff;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.ch-pick-item:hover { border-color: var(--c-primary); box-shadow: 0 2px 10px rgba(91, 91, 214,.08); }
.ch-pick-item.is-on {
  border-color: var(--c-primary); background: var(--c-primary-soft);
  box-shadow: 0 0 0 1px var(--c-primary) inset;
}
.ch-pick-head { display: flex; align-items: center; gap: 7px; }
.ch-pick-ico {
  width: 26px; height: 26px; border-radius: var(--r-sm); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft); color: var(--c-primary);
}
.ch-pick-item.is-on .ch-pick-ico { background: #fff; }
.ch-pick-t { font-size: 13px; font-weight: 650; color: var(--c-text-1); flex: 1; }
.ch-pick-pick { font-size: 11px; color: var(--c-primary); }
.ch-pick-d {
  margin-top: 7px; font-size: 11px; line-height: 1.6; color: var(--c-text-2);
}
.ch-pick-meta {
  margin-top: 6px; font-size: 10px; line-height: 1.5; color: var(--c-text-3);
  font-family: var(--font-num);
}
.ch-pick-hint {
  grid-column: 1 / -1; font-size: 10.5px; line-height: 1.6; color: var(--c-text-3);
  padding-top: 2px;
}

/* 登录页入口切换 */
.login-mode { margin-bottom: 16px; }
.login-mode .segment { width: 100%; }
.login-mode .segment-item { flex: 1; text-align: center; }

/* 签名按手印确认行 */
.of-finger-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--c-border);
  font-size: 11px; color: var(--c-text-2);
}
.of-finger-tip { font-size: 10.5px; color: var(--c-warning); }
.of-finger-tip.is-ok { color: var(--c-success); }

/* 侧栏缺失项清单 */
.of-miss-row {
  font-size: 10.5px; line-height: 1.7; color: var(--c-text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 向导底部阻断提示 */
.of-nav-tip { font-size: 11px; color: var(--c-danger); }

/* ============================================================
   缺口定位芯片（提示条里「缺哪项」可点，直达那一栏）
   ============================================================ */
.gap-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px;
}
.alert .gap-chips { margin-top: 8px; }
.gap-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px 3px 9px; border-radius: 999px;
  border: 1px solid rgba(240, 68, 56, .32);
  background: #fff; color: var(--c-danger);
  font-family: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.55;
  cursor: pointer; white-space: nowrap;
  transition: background var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
}
.gap-chip:hover {
  background: #FFF3F3; border-color: var(--c-danger);
  box-shadow: 0 2px 7px rgba(240, 68, 56, .16); transform: translateY(-1px);
}
.gap-chip:active { transform: translateY(0); box-shadow: none; }
.gap-chip:focus-visible { outline: 2px solid rgba(240, 68, 56, .35); outline-offset: 2px; }
.gap-chip-go {
  font-size: 10px; font-weight: 500; padding: 1px 5px; border-radius: 999px;
  background: rgba(240, 68, 56, .1); color: var(--c-danger);
}
.gap-chip:hover .gap-chip-go { background: rgba(240, 68, 56, .18); }
/* 提示条内部的芯片是白底，深浅背景下都要能读 */
.alert-danger .gap-chip { border-color: rgba(255, 255, 255, .5); }

/* 定位后的高亮脉冲：让办理人一眼看到「就是这一栏」 */
@keyframes gapPulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 68, 56, .42); }
  65%  { box-shadow: 0 0 0 9px rgba(240, 68, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0); }
}
.is-gap-focus {
  animation: gapPulse 1.15s ease-out 2;
  border-color: var(--c-danger) !important;
  background: #FFFAFA !important;
}
.qa-slot.is-gap-focus .qa-name,
.up-cell.is-gap-focus .up-name { color: var(--c-danger); }

/* 侧栏阻断项可点：整行给出「定位」提示 */
.gate-item.is-jump { cursor: pointer; border-radius: var(--r-sm); }
.gate-item.is-jump:hover { background: var(--c-panel-2); }
.gate-item.is-jump:hover .gate-name { color: var(--c-danger); }
.gate-jump {
  margin-left: auto; flex-shrink: 0; font-size: 10px; font-weight: 600;
  color: var(--c-danger); opacity: .55; white-space: nowrap;
}
.gate-item.is-jump:hover .gate-jump { opacity: 1; }

/* 侧栏缺失行可点定位 */
.of-miss-row.is-jump {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; border-radius: var(--r-xs); padding: 1px 3px;
}
.of-miss-row.is-jump:hover { background: var(--c-panel-2); color: var(--c-danger); }
.of-miss-row.is-jump .gate-jump { margin-left: auto; }

/* 离职向导底部：阻断提示独占一行，芯片右对齐排在按钮上方 */
.of-nav { margin-top: 18px; }
.of-nav > .of-nav-actions:first-child { margin-top: 0; }
.of-nav-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.of-nav-tip-box { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.of-nav-tip-box .of-nav-tip { text-align: right; line-height: 1.7; font-size: 11.5px; }
.of-nav-tip-hint { font-size: 10.5px; color: var(--c-text-3); }
.of-nav-tip-box .gap-chips { justify-content: flex-end; margin-top: 0; }

/* 覆盖：阻断提示改为纵向排列（文字 + 提示 + 芯片右对齐） */
.of-nav-tip {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  text-align: right; font-size: 11.5px; line-height: 1.7;
}
.of-nav-tip-hint { font-size: 10.5px; color: var(--c-text-3); font-weight: 400; }
.of-nav-tip .gap-chips { justify-content: flex-end; margin-top: 0; }

/* 脉冲之外再给一圈常驻红环：截图与静止瞬间也能看出被定位的是哪一栏 */
.is-gap-focus {
  outline: 2px solid rgba(240, 68, 56, .5);
  outline-offset: 2px;
}

/* 提示条内的小字说明（非右侧导航提示） */
.gap-note { margin-top: 6px; font-size: 10.5px; line-height: 1.6; color: var(--c-text-2); opacity: .85; }

/* 小字说明跟随提示条前景色，浅红底上比灰字更清楚 */
.gap-note { color: inherit; opacity: .78; }

/* ============================================================
   工作台 · 人员结构卡（V2.7 需求 7）
   悬停浮层用纯 CSS 显隐：不依赖 JS 计时器，鼠标扫过就能看，
   也不占页面高度。浮层内每个分档可点，直达该档名单。
   ============================================================ */
.staff-card { transition: box-shadow 150ms, transform 150ms; }
.staff-card:hover { box-shadow: var(--sh-lg); }
.staff-pop {
  position: absolute; left: 0; right: 0; top: calc(100% - 6px); z-index: 60;
  background: #fff; border: none; border-radius: var(--r-lg);
  box-shadow: 0 20px 48px rgba(79, 70, 229, .18), 0 4px 12px rgba(16, 24, 40, .06);
  padding: 13px 15px 11px;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
  pointer-events: none;
}
.staff-card:hover .staff-pop,
.staff-card:focus-within .staff-pop {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.staff-pop-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11.5px; font-weight: 650; color: var(--c-text);
  padding-bottom: 7px; margin-bottom: 6px; border-bottom: 1px dashed var(--c-border);
}
.staff-pop-tip { font-size: 10px; font-weight: 400; color: var(--c-text-3); }
.staff-pop-row { display: flex; gap: 8px; padding: 4px 0; }
.staff-pop-k {
  flex: 0 0 52px; font-size: 10.5px; color: var(--c-text-3);
  padding-top: 3px; letter-spacing: .2px;
}
.staff-pop-chips { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.staff-chip {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 3px 9px; border-radius: var(--r-pill); cursor: pointer;
  background: #F5F6FC; border: 1px solid transparent;
  transition: all 120ms; white-space: nowrap;
}
.staff-chip:hover { border-color: var(--c-primary-line); background: var(--c-primary-soft); }
.staff-chip.is-zero { opacity: .45; }
.staff-chip-k { font-size: 10.5px; color: var(--c-text-2); }
.staff-chip-v { font-size: 11.5px; font-weight: 650; color: var(--c-text); font-variant-numeric: tabular-nums; }
.staff-chip-p { font-size: 9.5px; color: var(--c-text-3); }
.staff-pop-foot { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--c-border); font-size: 9.5px; color: var(--c-text-4); }
