:root {
  /* ---- 品牌色：靛蓝主色（清新 · AI 平台感），旧的 navy/blue 变量名保留兼容全部老模块 ---- */
  --indigo: #4C6EF5;
  --indigo-deep: #3B5BDB;
  --indigo-soft: #EDF1FE;
  --navy: #33415C;          /* 旧"主色"，收敛成蓝灰，与靛蓝同族 */
  --navy-dark: #242E42;
  --ink: #1C2438;           /* 标题/重点数字 */
  --blue: #4C6EF5;
  --blue-soft: #EDF1FE;
  --green: #2FA46A;
  --green-soft: #E9F7F0;
  --orange: #EE822F;
  --orange-soft: #FDF1E6;
  --red: #D6455D;
  --red-soft: #FCEEF1;

  /* ---- 中性色与表面 ---- */
  --bg: #F3F5FA;
  --card: #FFFFFF;
  --line: #E6EAF2;
  --line-soft: #EEF1F7;
  --text: #333B4E;
  --muted: #7C8698;
  --radius: 12px;
  --radius-lg: 16px;

  /* ---- 阴影体系：极轻打底，悬停浮起 ---- */
  --shadow-sm: 0 1px 2px rgba(23, 32, 64, .05), 0 1px 3px rgba(23, 32, 64, .04);
  --shadow-md: 0 4px 14px rgba(23, 32, 64, .07), 0 1px 3px rgba(23, 32, 64, .05);
  --shadow-lg: 0 12px 36px rgba(23, 32, 64, .14), 0 3px 10px rgba(23, 32, 64, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(1200px 400px at 50% -180px, rgba(76, 110, 245, .07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(76, 110, 245, .18); }

/* 细滚动条：默认的粗灰条很破坏整体观感 */
* { scrollbar-width: thin; scrollbar-color: #C9D1DE transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #C9D1DE; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: #AEB9CB; }
*::-webkit-scrollbar-track { background: transparent; }

button { font-family: inherit; cursor: pointer; }
a { color: var(--blue); text-decoration: none; }

/* 覆盖浏览器自动填充造成的底色（Edge/Chrome 会给输入框加淡绿色底） */
input {
  background-color: #fff;
  background-image: linear-gradient(#fff, #fff);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-internal-autofill-selected {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--text) !important;
  transition: background-color 99999s ease-in-out 0s;
}

/* ---------------- 登录 ---------------- */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 480px at 15% 10%, rgba(76, 110, 245, .10), transparent 60%),
    radial-gradient(800px 420px at 88% 85%, rgba(47, 164, 106, .08), transparent 60%),
    linear-gradient(160deg, #F6F8FD 0%, #EEF2FA 100%);
  padding: 24px;
}

.login-card {
  width: 420px;
  background: var(--card);
  border: 1px solid rgba(230, 234, 242, .8);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 38px 38px 30px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4C6EF5, #6A5CF0);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(76, 110, 245, .35);
}

.login-title { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.login-sub { color: var(--muted); font-size: 12.5px; margin: 8px 0 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(76, 110, 245, .13); }

.btn-primary {
  width: 100%; height: 44px;
  background: linear-gradient(135deg, #4C6EF5, #5A5FF0);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(76, 110, 245, .28);
  transition: filter .15s, box-shadow .15s, transform .12s;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 5px 16px rgba(76, 110, 245, .36); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(76, 110, 245, .3); }
.btn-primary:disabled { opacity: .6; cursor: default; }

.login-error {
  color: var(--red);
  font-size: 12.5px;
  min-height: 18px;
  margin-top: 10px;
}

.demo-box { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 16px; }
.demo-title { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #FAFBFC;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text);
  transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* ---------------- 布局 ---------------- */

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

.topbar {
  height: 58px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 14px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .brand-mark {
  width: 32px; height: 32px; font-size: 14px;
  border-radius: 9px;
}

.topbar-title { font-size: 15px; font-weight: 700; letter-spacing: .3px; color: var(--ink); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }

.scope-tag {
  background: #F1F3F9;
  border: 1px solid var(--line);
  color: #5A6478;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 12px;
}
.role-tag {
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
}
.user-name { color: #4A5568; font-weight: 500; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: #5A6478;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  transition: all .14s;
}
.btn-ghost:hover { border-color: #F3B6C0; color: var(--red); background: var(--red-soft); }

.body-row { display: flex; flex: 1; min-height: 0; }

.sidebar {
  width: 212px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #57627A;
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: all .13s;
  user-select: none;
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: rgba(76, 110, 245, .06); color: var(--ink); }
.nav-item.active {
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  border-radius: 0 3px 3px 0;
  background: var(--indigo);
}
.nav-item .nav-ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item .soon {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 15px;
}
.nav-sep { height: 1px; background: var(--line); margin: 10px 12px; }

.main { flex: 1; padding: 22px 28px 40px; min-width: 0; }

.page-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.page-title {
  font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: .2px;
}
.page-sub { font-size: 12.5px; color: var(--muted); }

/* ---------------- 工作台 ---------------- */

.workbench { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.card-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.card-sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.card-title .count {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 7px;
  margin-left: 6px;
  font-weight: 700;
}

.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab {
  border: none;
  background: transparent;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--muted);
  transition: all .13s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--indigo-soft); color: var(--indigo-deep); font-weight: 600; }

.todo-list { max-height: calc(100vh - 220px); overflow-y: auto; }

.todo-item {
  display: flex;
  gap: 11px;
  padding: 13px 16px;
  border-bottom: 1px solid #F0F2F5;
  cursor: pointer;
  transition: background .12s;
}
.todo-item:last-child { border-bottom: none; }
.todo-item:hover { background: #FAFBFC; }

.todo-bar { width: 3px; border-radius: 2px; background: #C9D3E0; flex-shrink: 0; }
.todo-item.urgent .todo-bar { background: var(--red); }
.todo-item.overdue .todo-bar { background: var(--red); }
.todo-item.confirm .todo-bar { background: var(--orange); }

.todo-body { flex: 1; min-width: 0; }
.todo-title { font-size: 13.5px; font-weight: 500; color: var(--text); margin-bottom: 5px; line-height: 1.45; }
.todo-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.badge-module {
  background: #F0F3F7;
  color: #5A6B80;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 11px;
}
.badge-overdue { color: var(--red); font-weight: 600; }
.badge-urgent { color: var(--orange); font-weight: 600; }

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* KPI */

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 15px 18px;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #4C6EF5, #6A5CF0);
  opacity: 0;
  transition: opacity .15s;
}
.kpi:hover::before { opacity: 1; }
.kpi-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.kpi-value {
  font-size: 27px; font-weight: 700; color: var(--ink); line-height: 1.25;
  letter-spacing: -0.5px; font-variant-numeric: tabular-nums;
}
.kpi-unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpi-hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.kpi.hl .kpi-value { color: var(--indigo); }

/* 模块入口 */

.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  transition: all .16s;
}
.module-card:hover { border-color: #C4D0F6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .16s;
}
.module-card:hover .module-ico { background: var(--indigo); color: #fff; }
.module-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.module-desc { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* 老板端大区分布 */

.region-bars { padding: 6px 16px 16px; }
.region-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.region-name { width: 82px; font-size: 12.5px; color: var(--text); flex-shrink: 0; }
.region-track { flex: 1; height: 8px; background: #F0F3F7; border-radius: 4px; overflow: hidden; }
.region-fill { height: 100%; background: linear-gradient(90deg, #4874CB, #6D93DB); border-radius: 4px; }
.region-num { width: 46px; text-align: right; font-size: 12.5px; color: var(--muted); flex-shrink: 0; }

/* ---------------- 组织视图 ---------------- */

/* 四级组织（二级部门 > 大区 > 圆心圈 > 门店）后，名称变长，
   268px 会把"张店齐悦国际核心圈"截断，放宽到 320px 并允许横向滚动兜底 */
.org-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }

.tree { padding: 10px 8px; max-height: calc(100vh - 200px); overflow: auto; }
.tree > * { min-width: 0; }

.tree-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #4A5568;
  user-select: none;
}
.tree-node:hover { background: #F5F7FA; }
.tree-node.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.tree-node .arrow {
  width: 12px; height: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #A8B3C0; flex-shrink: 0;
  transition: transform .15s ease;
}
.tree-node .arrow.open { transform: rotate(90deg); }
.tree-node .node-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node .node-count { font-size: 11px; color: var(--muted); }
.tree-type {
  font-size: 10px;
  padding: 0 4px;
  border-radius: 3px;
  background: #EEF2F7;
  color: #7A8B9F;
  line-height: 15px;
}
.tree-type.region { background: #E8EEF9; color: #4874CB; }
.tree-type.circle { background: #EAF4E2; color: #5C9C34; }
.tree-type.store { background: #FDF0E5; color: #D97726; }
/* 二级部门是最顶一层，只用中性灰，避免和"大区"抢视觉 */
.tree-type.sector { background: #ECEEF1; color: #5A6B7F; font-weight: 600; }

/* 员工档案弹窗：花名册 31 列一屏看完 */
.emp-link {
  font-weight: 600; color: var(--navy-dark);
  border-bottom: 1px dashed transparent; cursor: pointer;
}
.emp-link:hover { color: #4874CB; border-bottom-color: #4874CB; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.dl-block { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.dl-title {
  font-size: 12px; font-weight: 700; color: var(--navy-dark);
  background: #F5F7FA; padding: 7px 11px; border-bottom: 1px solid var(--line);
  letter-spacing: .3px;
}
.dl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dl-table th, .dl-table td {
  padding: 6px 11px; text-align: left; vertical-align: top;
  border-bottom: 1px solid #F1F3F6;
}
.dl-table tr:last-child th, .dl-table tr:last-child td { border-bottom: none; }
.dl-table th { width: 90px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.dl-table td { color: var(--text); word-break: break-all; }
.dl-table td .dim, .dim { color: #C2C9D2; }
/* 学历层次：第一学历 → 最高学历。箭头与图例都是给"别把两个学历看成一个"用的 */
.edu-lv { white-space: nowrap; }
.edu-arrow { margin: 0 6px; color: var(--muted); }
.edu-legend { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.dl-path {
  margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}

/* ---- 结构化视图：左树 + 右人，点行内联展开档案 ---- */

.org-tree-hint { margin-left: auto; font-size: 12px; color: var(--muted); }
/* 集团是合成出来的根，比其它节点更实一点，一眼看出这是"全部" */
.tree-node.company { font-weight: 700; color: var(--navy-dark); }
.tree-node.company .node-count { color: var(--blue); }

/* 12 列一定放不下 320px 的列，宁横向滑也不把中文压成竖排 */
.org-table-wrap { overflow-x: auto; }
/* 栅格子项默认 min-width:auto，不显式归零的话表格会把整个页面撑宽 */
.org-wrap > .card { min-width: 0; }
.org-table { min-width: 1000px; font-size: 12.5px; }
.org-table th, .org-table td { padding: 7px 9px; }
.org-table td { white-space: nowrap; }
.org-table td.emp-name { font-weight: 600; color: var(--navy-dark); }
.org-table td.mono { font-variant-numeric: tabular-nums; color: #5A6B7B; }
.org-row-hint { font-size: 11.5px; color: var(--muted); }

.emp-row { cursor: pointer; }
.emp-row:hover td { background: #F7F9FC; }
.emp-row.open td { background: var(--blue-soft); }
.emp-caret { display: inline-block; width: 13px; color: #A8B3C0; font-size: 11px; }
.emp-row.open .emp-caret { color: var(--blue); }

.emp-detail-tr > td { padding: 0 !important; background: #FAFBFD; }
.emp-detail {
  padding: 13px 16px 15px; border-top: 1px solid #E6EBF2;
  /* 表格比可视区宽时，档案跟着横向滚动钉在左边，宽度由 fitDetail() 按容器给 */
  position: sticky; left: 0;
}
.emp-detail-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 11px; flex-wrap: wrap;
}
.emp-detail-title { font-size: 13px; font-weight: 700; color: var(--navy-dark); }
.emp-detail-path { font-size: 11.5px; color: var(--muted); }
.emp-detail-close {
  margin-left: auto; height: 26px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  font-size: 12px; color: #5A6B7B; cursor: pointer;
}
.emp-detail-close:hover { border-color: #C6D2E2; color: var(--blue); }
.emp-detail-loading { padding: 18px 16px; font-size: 12.5px; color: var(--muted); }
/* 三组字段并排；窄了自动降成两列、单列，不硬挤 */
.dl-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.org-empty { padding: 74px 26px; text-align: center; }
.org-empty-title { font-size: 15px; font-weight: 600; color: var(--navy-dark); }
.org-empty-text {
  margin-top: 9px; font-size: 12.5px; color: var(--muted);
  line-height: 1.9; max-width: 430px; margin-left: auto; margin-right: auto;
}

.org-picked { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.org-picked-name {
  font-size: 13.5px; font-weight: 700; color: var(--navy-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.org-picked-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

@media (max-width: 640px) {
  .dl-grid { grid-template-columns: 1fr; }
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.search-input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  width: 220px;
  transition: border-color .14s, box-shadow .14s;
}
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12); }
/* 抑制浏览器自动填充造成的黄绿色底 */
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--text);
}
.toolbar-info { margin-left: auto; font-size: 12.5px; color: var(--muted); }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left;
  font-weight: 600;
  color: #8A93A5;
  font-size: 12px;
  letter-spacing: .3px;
  padding: 10px 14px;
  background: #F8F9FC;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
table.grid td { padding: 11px 14px; border-bottom: 1px solid #F1F3F8; }
table.grid tbody tr { transition: background .1s; }
table.grid tbody tr:hover { background: #F7F9FE; }
table.grid tbody tr:last-child td { border-bottom: none; }

.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.status-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.status-dot.off::before { background: #B0B8C1; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; }
.pager button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12.5px;
  color: var(--text);
  transition: all .13s;
}
.pager button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); background: var(--indigo-soft); }
.pager button:disabled { opacity: .45; cursor: default; }

/* ---------------- 提示 ---------------- */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #232B42;
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 13px;
  opacity: 0;
  transition: all .22s;
  pointer-events: none;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.loading { padding: 60px; text-align: center; color: var(--muted); }

.data-note {
  background: #FFFBF2;
  border: 1px solid #F3E3C3;
  color: #A9762A;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: inline-block;
}

@media (max-width: 1180px) {
  .workbench { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .org-wrap { grid-template-columns: 1fr; }
  .ob-wrap { grid-template-columns: 1fr !important; }
}

/* ---------------- 入职管家 ---------------- */

.page-head-actions { margin-left: auto; }

.ob-btn {
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text);
  transition: all .14s;
  white-space: nowrap;
}
.ob-btn:hover { border-color: var(--blue); color: var(--blue); }
.ob-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.ob-btn.primary:hover { background: var(--navy-dark); color: #fff; }
.ob-btn.danger { color: var(--red); border-color: #EBC9C4; }
.ob-btn.danger:hover { background: #FDF3F2; border-color: var(--red); color: var(--red); }
.ob-btn.small { height: 26px; font-size: 12px; padding: 0 10px; }
.ob-btn.tiny { height: 24px; font-size: 12px; padding: 0 9px; }
.ob-btn:disabled { opacity: .55; cursor: default; }

.ob-channel-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ob-ch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); }
.ob-ch i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.ob-ch.ready i { background: var(--green); }
.ob-ch em { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.ob-ch.ready em { color: #5C9C34; border-color: #D8EBC9; background: #F4FAEF; }
.ob-ch-hint { font-size: 11.5px; color: var(--muted); }
.ob-beat { font-size: 11.5px; color: #7A8B9F; display: inline-flex; align-items: center; gap: 5px; }
.ob-beat::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #C9D3E0; }
.ob-beat.on::before { background: var(--green); }
.ob-beat.off::before { background: var(--orange); }
.ob-beat.err { color: var(--red); }
.ob-beat.err::before { background: var(--red); }
.ob-channel-bar .ob-btn { margin-left: auto; }

.kpi.warn .kpi-value { color: var(--red); }

.ob-wrap { display: grid; grid-template-columns: 318px 1fr; gap: 16px; align-items: start; }

.ob-list { overflow: hidden; }
.ob-list-head { padding: 12px 14px 8px; }
.ob-list-head .search-input { width: 100%; }
.ob-filters { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; }
.ob-filter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 3px 11px;
  font-size: 12px;
  color: var(--muted);
}
.ob-filter.active { background: var(--blue-soft); border-color: #C9DAF4; color: var(--blue); font-weight: 600; }

.ob-list-body { max-height: calc(100vh - 300px); overflow-y: auto; }

.ob-case { padding: 12px 14px; border-top: 1px solid #F0F2F5; cursor: pointer; transition: background .12s; }
.ob-case:hover { background: #FAFBFC; }
.ob-case.active { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.ob-case-top { display: flex; align-items: center; gap: 8px; }
.ob-case-name { font-size: 14px; font-weight: 600; color: var(--navy-dark); }
.ob-case-meta { font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.ob-case-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #5A6B80; }
.ob-case-badge { margin-left: auto; background: #FDF0E5; color: #C96A18; border-radius: 4px; padding: 0 6px; font-size: 11px; }
.ob-case-badge.red { background: #FBECEA; color: var(--red); font-weight: 600; }
.ob-case-ok { margin-left: auto; color: var(--green); font-size: 11px; }

.ob-chip { font-size: 11px; border-radius: 10px; padding: 1px 8px; background: #EEF2F7; color: #6B7A8C; font-weight: 500; }
.ob-chip.live { background: #E8F0FC; color: #3D6BB8; }
.ob-chip.arrived { background: #EFF7E8; color: #5C9C34; }
.ob-chip.passed { background: #EAF3EA; color: #4B8A3A; }
.ob-chip.cancelled { background: #F2F3F5; color: #98A2AE; }

.ob-detail { padding: 18px 20px 22px; }
.ob-detail-head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ob-detail-name { font-size: 18px; font-weight: 700; color: var(--navy-dark); display: flex; align-items: center; gap: 8px; }
.ob-detail-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.ob-detail-path { margin-left: 8px; }
.ob-detail-no { margin-left: 8px; color: #A8B3C0; }
.ob-detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.ob-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 16px; padding: 14px 0 4px; }
.ob-fact { display: flex; flex-direction: column; gap: 2px; }
.ob-fact span { font-size: 11.5px; color: var(--muted); }
.ob-fact b { font-size: 13px; font-weight: 600; color: var(--text); }

.ob-section-title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--navy-dark);
  margin: 20px 0 12px;
}
.ob-section-hint { font-size: 11.5px; font-weight: 400; color: var(--muted); }

.ob-timeline { padding-left: 2px; }
.ob-node { display: flex; gap: 12px; position: relative; }
.ob-node-rail { width: 16px; display: flex; justify-content: center; position: relative; flex-shrink: 0; }
.ob-node-rail::before {
  content: ''; position: absolute; top: 8px; bottom: -6px; width: 1px; background: var(--line);
}
.ob-node:last-child .ob-node-rail::before { display: none; }
.ob-node-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #C9D3E0; margin-top: 7px; z-index: 1;
  box-shadow: 0 0 0 3px #fff;
}
.ob-node.waiting .ob-node-dot { background: var(--orange); }
.ob-node.sent .ob-node-dot { background: var(--green); }
.ob-node.done .ob-node-dot { background: var(--blue); }
.ob-node.failed .ob-node-dot, .ob-node.expired .ob-node-dot { background: var(--red); }
.ob-node.skipped .ob-node-dot { background: #B0B8C1; }

.ob-node-body { flex: 1; min-width: 0; padding-bottom: 18px; }
.ob-node-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ob-node-code {
  font-size: 11px; font-weight: 700; color: #5A6B80;
  background: #F0F3F7; border-radius: 4px; padding: 1px 6px; min-width: 32px; text-align: center;
}
.ob-node-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ob-node-status { font-size: 11px; border-radius: 4px; padding: 1px 6px; }
.ob-node-status.st-pending { background: #F2F3F5; color: #8A96A3; }
.ob-node-status.st-waiting { background: #FDF0E5; color: #C96A18; }
.ob-node-status.st-sent { background: #EFF7E8; color: #5C9C34; }
.ob-node-status.st-done { background: #E8F0FC; color: #3D6BB8; }
.ob-node-status.st-skipped { background: #F2F3F5; color: #98A2AE; }
.ob-node-status.st-failed, .ob-node-status.st-expired { background: #FBECEA; color: var(--red); }
.ob-node-remind { font-size: 11px; color: #C96A18; }
.ob-node-remind.red { color: var(--red); font-weight: 600; }
.ob-tag { font-size: 10.5px; color: #7A8B9F; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.ob-tag.red { color: var(--red); border-color: #EBC9C4; }

.ob-node-meta { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.ob-node-remark { font-size: 11.5px; color: #A9762A; margin-top: 3px; }
.ob-node-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ob-link {
  border: none; background: transparent; color: var(--blue);
  font-size: 12px; padding: 0;
}
.ob-link:hover { text-decoration: underline; }

.ob-draft { display: none; margin-top: 10px; background: #FAFBFC; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.ob-draft.open { display: block; }
.ob-draft-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ob-draft-row label { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.ob-draft-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 6px;
  padding: 5px 9px; font-size: 12.5px; font-family: inherit; outline: none;
  background: #fff;
}
.ob-draft textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.85; font-family: inherit;
  color: var(--text); background: #fff; outline: none; resize: vertical;
}
.ob-draft-row input:focus, .ob-draft textarea:focus { border-color: var(--blue); }
.ob-draft textarea[readonly], .ob-draft input[readonly] { background: #F7F8FA; color: #5A6B80; }
.ob-draft-hint { font-size: 11px; color: var(--muted); margin-top: 7px; }

.ob-events { border-left: 2px solid #EEF2F7; padding-left: 12px; }
.ob-event { display: flex; gap: 10px; font-size: 12px; color: var(--muted); padding: 3px 0; }
.ob-event-time { flex-shrink: 0; width: 96px; color: #A8B3C0; }
.ob-event-detail { color: #5A6B80; }

/* 弹窗 */

.ob-mask {
  position: fixed; inset: 0;
  background: rgba(24, 32, 52, .44);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 40px;
  z-index: 120; overflow-y: auto;
}
.ob-modal {
  width: 720px; max-width: 100%;
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: obIn .18s cubic-bezier(.2, .8, .3, 1);
}
@keyframes obIn { from { opacity: 0; transform: translateY(-10px) scale(.99); } to { opacity: 1; transform: none; } }
.ob-modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.ob-modal-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ob-modal-close { margin-left: auto; border: none; background: transparent; color: var(--muted); font-size: 14px; }
.ob-modal-close:hover { color: var(--text); }
.ob-modal-body { padding: 18px 20px 20px; }
.ob-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.ob-field.full { grid-column: 1 / -1; }
.ob-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.ob-field label i { color: var(--red); font-style: normal; }
.ob-field input, .ob-field select, .ob-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: inherit;
  color: var(--text); background: #fff; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.ob-field input:focus, .ob-field select:focus, .ob-field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12);
}
.ob-field textarea { resize: vertical; }
.ob-field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.ob-static {
  font-size: 12.5px; color: #5A6B80; line-height: 1.6;
  background: #F7F9FC; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.ob-modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft);
}

/* ---- 弹窗通用原语（labor / 手续等模块的头部 · 内容 · 底栏） ---- */

.ob-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.ob-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.ob-x {
  margin-left: auto;
  width: 28px; height: 28px;
  border: none; background: transparent; border-radius: 8px;
  color: var(--muted); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .13s;
}
.ob-x:hover { background: #F1F3F9; color: var(--ink); }
.ob-body { padding: 18px 20px 20px; }
.ob-body label { display: block; font-size: 12.5px; color: #5A6478; margin-bottom: 11px; }
.ob-body label input, .ob-body label select, .ob-body label textarea {
  width: 100%; margin-top: 5px; padding: 8px 11px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box;
  color: var(--text); background: #fff; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.ob-body label input:focus, .ob-body label select:focus, .ob-body label textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12);
}
.ob-body label textarea { resize: vertical; line-height: 1.6; }
.ob-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  background: #FBFCFE;
  border-radius: 0 0 16px 16px;
}
/* 主按钮默认是登录页整行样式，弹窗底栏收成常规尺寸 */
.ob-foot .btn-primary, .ob-foot .btn-line {
  width: auto; height: 36px; padding: 0 20px;
  font-size: 13px; margin-top: 0; flex-shrink: 0;
}
/* 详情弹窗里不套 label 的裸输入控件（如处置结论） */
.ob-body > textarea, .ob-body > input, .ob-body > select {
  width: 100%; padding: 8px 11px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box;
  color: var(--text); background: #fff; outline: none; resize: vertical; line-height: 1.6;
  transition: border-color .14s, box-shadow .14s;
}
.ob-body > textarea:focus, .ob-body > input:focus, .ob-body > select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12);
}

@media (max-width: 1180px) {
  .ob-facts { grid-template-columns: repeat(2, 1fr); }
  .ob-form-grid { grid-template-columns: 1fr; }
}

/* ============================================================ M3 人事咨询 */

.kb-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.kb-tab {
  height: 32px; padding: 0 15px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; font-size: 13px; color: var(--muted);
  transition: all .13s;
}
.kb-tab:hover { color: var(--indigo-deep); border-color: #C4D0F6; }
.kb-tab.active { background: var(--indigo-soft); border-color: #C4D0F6; color: var(--indigo-deep); font-weight: 600; }

.kb-ask-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 14px; align-items: start; }
.kb-compose { padding: 16px; position: sticky; top: 14px; }
.kb-input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-family: inherit; font-size: 13.5px; line-height: 1.65; color: var(--text);
  resize: vertical; outline: none; background: #fff;
}
.kb-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(72, 116, 203, .08); }
.kb-ask-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.kb-kbd { font-size: 11.5px; color: var(--muted); }
.kb-samples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.kb-sample {
  border: 1px solid var(--line); background: #FAFBFC; border-radius: 20px;
  padding: 4px 11px; font-size: 12px; color: #5A6B7B;
}
.kb-sample:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.kb-compose-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 11.5px; color: var(--muted); line-height: 1.7;
}

.kb-result { min-width: 0; }
.kb-empty { padding: 40px 26px; }
.kb-empty-title { font-size: 15px; font-weight: 600; color: var(--navy-dark); }
.kb-empty-text { color: var(--muted); font-size: 13px; margin-top: 4px; }
.kb-empty-list { margin-top: 18px; display: grid; gap: 8px; font-size: 12.5px; color: #5A6B7B; }
.kb-empty-list b { color: var(--navy-dark); }

.kb-answer { padding: 18px 20px 16px; }
.kb-ans-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kb-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.kb-status.ok { background: #EDF7E6; color: #4B8A1F; }
.kb-status.warn { background: #FDF3E4; color: #B76A15; }
.kb-status.none { background: #F2F4F6; color: #6B7A88; }
.kb-status.out { background: #F7F1F0; color: #9E5B52; }
.kb-conf, .kb-cover { font-size: 11.5px; color: var(--muted); }
.kb-ans-q { font-size: 15px; font-weight: 600; color: var(--navy-dark); margin-top: 10px; }
.kb-ans-note { font-size: 12.5px; margin-top: 6px; color: #5A6B7B; }
.kb-ans-note.warn { color: #B76A15; }
.kb-ans-note.none, .kb-ans-note.out { color: #8A5A52; }
.kb-gap {
  margin-top: 8px; padding: 8px 12px; background: #FFFBEF; border: 1px solid #F2E2BC;
  border-radius: 7px; font-size: 12px; color: #8A6A1F;
}

.kb-cite {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
}
.kb-cite-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #F8FAFC; border-bottom: 1px solid var(--line);
}
.kb-cite-idx {
  width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kb-cite-ref { font-size: 13px; font-weight: 600; color: var(--navy-dark); }
.kb-tag {
  font-size: 11px; padding: 1px 7px; border-radius: 4px; background: #EEF1F4; color: #6B7A88;
}
.kb-tag.main { background: var(--blue-soft); color: var(--blue); }
.kb-cite-path {
  padding: 7px 14px; font-size: 11.5px; color: var(--muted); background: #fff;
  border-bottom: 1px dashed var(--line); display: flex; gap: 10px; flex-wrap: wrap;
}
.kb-docno { color: #9AA7B4; }
.kb-cite-text {
  margin: 0; padding: 13px 15px; font-family: inherit; font-size: 13px; line-height: 1.85;
  color: #2F3B48; white-space: pre-wrap; word-break: break-word; background: #fff;
}
.kb-cite-text mark { background: #FFF1B8; color: inherit; padding: 0 1px; border-radius: 2px; }
.kb-cite-foot {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  border-top: 1px solid var(--line); background: #FCFDFE; font-size: 11.5px; color: var(--muted);
}
.kb-link {
  margin-left: auto; border: none; background: transparent; color: var(--blue);
  font-size: 11.5px; padding: 0;
}
.kb-link:hover { text-decoration: underline; }

.kb-maybe { margin-top: 14px; padding: 12px 14px; background: #FAFBFC; border-radius: 8px; }
.kb-maybe-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.kb-maybe-item { font-size: 12.5px; color: #5A6B7B; line-height: 1.9; }

.kb-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.kb-actions-hint { font-size: 11.5px; color: var(--muted); margin-left: auto; }

.kb-cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.kb-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 3px 11px;
  font-size: 11.5px; color: var(--muted);
}
.kb-chip.active { background: var(--blue-soft); border-color: #C9D6EE; color: var(--blue); font-weight: 600; }

.kb-ingest {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #FCFDFE; flex-wrap: wrap;
}
.kb-ingest .search-input { flex: 1; min-width: 260px; }
.kb-ingest-hint { font-size: 11px; color: var(--muted); width: 100%; }

.kb-doc-title { font-size: 13px; font-weight: 600; color: var(--navy-dark); }
.kb-doc-file { font-size: 11px; color: var(--muted); margin-top: 1px; }
.kb-row-off { opacity: .55; }
.kb-cat { font-size: 11.5px; padding: 2px 8px; border-radius: 4px; background: #F0F3F6; color: #5A6B7B; }
.kb-cat.c1 { background: #EDF2FB; color: #4874CB; }
.kb-cat.c2 { background: #FDF3E4; color: #B76A15; }
.kb-cat.c3 { background: #EDF7E6; color: #4B8A1F; }
.kb-cat.c4 { background: #F1EDF9; color: #6B4FA8; }
.kb-cat.c5 { background: #E9F5F6; color: #2C7A82; }
.kb-cat.c6 { background: #FBEEF2; color: #A8496A; }
.kb-loc { font-size: 11.5px; color: var(--muted); }
.status-dot.err::before { background: var(--red); }
.kb-fail-note {
  padding: 10px 16px; font-size: 11.5px; color: #8A5A52; background: #FCF7F6;
  border-top: 1px solid #F0E2DF; line-height: 1.8;
}

.kb-doc-modal { width: 860px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; }
.kb-doc-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.kb-doc-warn {
  font-size: 12px; color: #8A6A1F; background: #FFFBEF; border: 1px solid #F2E2BC;
  border-radius: 6px; padding: 7px 10px; margin-bottom: 10px;
}
.kb-chunk-list { overflow-y: auto; flex: 1; }
.kb-chunk { border-top: 1px solid var(--line); padding: 12px 0; }
.kb-chunk:first-child { border-top: none; }
.kb-chunk-loc { font-size: 12.5px; font-weight: 600; color: var(--navy-dark); margin-bottom: 4px; }
.kb-chunk-loc span { font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 8px; }
.kb-chunk-text {
  margin: 0; font-family: inherit; font-size: 12.5px; line-height: 1.8; color: #4A5866;
  white-space: pre-wrap; word-break: break-word;
}

.kb-ticket { border-top: 1px solid var(--line); }
.kb-ticket:first-of-type { border-top: none; }
.kb-ticket.open { background: #FCFDFE; }
.kb-ticket-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer;
}
.kb-ticket-head:hover { background: #F8FAFC; }
.kb-ticket-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.kb-ticket-dot.answered { background: var(--green); }
.kb-ticket-dot.closed { background: #B0B8C1; }
.kb-ticket-q { font-size: 13px; font-weight: 600; color: var(--navy-dark); }
.kb-ticket-meta { font-size: 11.5px; color: var(--muted); }
.kb-ticket-status { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.kb-ticket-status.open { color: var(--orange); font-weight: 600; }
.kb-ticket-body { padding: 0 16px 16px; }
.kb-ticket-note { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.kb-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.kb-ticket-answer { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.kb-ticket-answer-head {
  padding: 8px 12px; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line);
}
.kb-ticket-answer-text {
  margin: 0; padding: 12px; font-family: inherit; font-size: 13px; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
}
.kb-ticket-promoted { padding: 7px 12px; font-size: 11.5px; color: #4B8A1F; background: #F6FBF1; }
.kb-handoff-q {
  font-size: 13px; color: var(--navy-dark); background: #F8FAFC; border-radius: 7px;
  padding: 10px 12px; margin-bottom: 10px;
}

@media (max-width: 1180px) {
  .kb-ask-wrap { grid-template-columns: 1fr; }
  .kb-compose { position: static; }
}

/* ================================================================
   M4 · 月度报表
   ================================================================ */

.btn-line {
  background: #fff;
  border: 1px solid var(--line);
  color: #46536B;
  border-radius: 9px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: all .14s;
}
.btn-line:hover { border-color: #B9C8F2; color: var(--indigo-deep); background: #F7F9FF; }
.btn-line:disabled { opacity: .55; cursor: default; }

.link-btn {
  background: none; border: none; padding: 0;
  color: var(--blue); font-size: 12.5px;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--red); }

.rp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rp-actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.rp-month {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
  font-size: 12.5px; color: var(--text); background: #fff; font-family: inherit;
}
.rp-kpi { grid-template-columns: repeat(4, 1fr); }

.rp-table th.num, .rp-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-table td.num.strong { font-weight: 700; color: var(--navy-dark); }
.rp-table td.num.muted, .rp-table .muted { color: var(--muted); }
.rp-metric { font-weight: 600; color: var(--navy-dark); }
.rp-note { color: var(--muted); font-size: 12px; max-width: 320px; }

.rp-delta { font-size: 12px; color: var(--muted); }
.rp-delta.up { color: var(--red); }
.rp-delta.down { color: #4B8A1F; }
.rp-delta.na { color: #A8B3C0; }

.rp-badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 11.5px; font-weight: 600; line-height: 18px;
}
.rp-badge.lv-red { background: #FBEDEB; color: var(--red); }
.rp-badge.lv-yellow { background: #FDF3E7; color: #D97726; }
.rp-badge.lv-green { background: #F0F7EA; color: #4B8A1F; }
.rp-badge.lv-none { background: #F2F4F7; color: var(--muted); }

.rp-hot { color: var(--red); font-weight: 600; }
.rp-warm { color: #D97726; }

.rp-anomaly { border-left: 3px solid var(--orange); }
.rp-anomaly-list { padding: 2px 16px 14px; }
.rp-anomaly-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed #EEF1F5; font-size: 13px;
}
.rp-anomaly-item:last-child { border-bottom: none; }
.rp-tag {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px;
  font-size: 11px; font-weight: 700; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.rp-tag.red { background: var(--red); }
.rp-tag.yellow { background: var(--orange); }
.rp-anomaly-label { font-weight: 600; color: var(--navy-dark); width: 120px; flex-shrink: 0; }
.rp-anomaly-reason { color: var(--muted); }
.rp-legend { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.rp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rp-dot.red { background: var(--red); }
.rp-dot.yellow { background: var(--orange); }

.rp-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.rp-chart { padding: 4px 10px 8px; }
.rp-svg-axis { font-size: 10px; fill: #9AA7B5; }
.rp-svg-val { font-size: 10px; fill: var(--navy-dark); font-weight: 600; }

.rp-tabs { display: flex; gap: 4px; }
.rp-tab {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 3px 10px; border-radius: 6px; font-size: 12.5px;
}
.rp-tab:hover { background: #F5F7FA; }
.rp-tab.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

.rp-foot { padding: 8px 16px 16px; font-size: 11.5px; color: var(--muted); }
.rp-modal { width: 460px; }
.rp-form { display: grid; gap: 12px; }
.rp-form label { font-size: 12px; color: var(--muted); display: grid; gap: 5px; }
.rp-form input {
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
  font-size: 13px; font-family: inherit; color: var(--text);
}
.rp-hintbox {
  margin-top: 14px; padding: 9px 12px; border-radius: 7px;
  background: #F8FAFC; color: var(--muted); font-size: 12px; line-height: 1.7;
}

/* ================================================================
   M4 · 谈话助手
   ================================================================ */

.tk-wrap { display: grid; grid-template-columns: 306px 1fr; gap: 16px; align-items: start; margin-top: 16px; }
.tk-list-card { padding-bottom: 6px; }
.tk-tabs { display: flex; gap: 4px; }
.tk-tab {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 3px 10px; border-radius: 6px; font-size: 12.5px;
}
.tk-tab:hover { background: #F5F7FA; }
.tk-tab.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

.tk-list { max-height: calc(100vh - 340px); overflow-y: auto; padding: 4px 8px 10px; }
.tk-item {
  border: 1px solid transparent; border-radius: 8px;
  padding: 9px 11px; margin-bottom: 6px; cursor: pointer;
}
.tk-item:hover { background: #F7F9FC; }
.tk-item.active { background: var(--blue-soft); border-color: #CCDCF5; }
.tk-item-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tk-name { font-weight: 600; color: var(--navy-dark); font-size: 13.5px; }
.tk-item-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.tk-sep { color: #C4CCD6; }
.tk-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.tk-dot-wait { background: var(--orange); }
.tk-dot-done { background: var(--green); }
.tk-dot-off { background: #B0B8C1; }

.tk-scene {
  font-size: 10.5px; padding: 1px 7px; border-radius: 4px; line-height: 17px;
  background: #EEF2F7; color: #62748A; font-weight: 500;
}
.tk-scene.s1 { background: #FBEDEB; color: #B03A2E; }
.tk-scene.s2 { background: #EAF1FB; color: #36609F; }
.tk-scene.s3 { background: #FDF3E7; color: #C06A1C; }
.tk-scene.s4 { background: #F0F7EA; color: #4B8A1F; }
.tk-scene.s5 { background: #F2F0FA; color: #5B4FA8; }
.tk-scene.s6 { background: #EAF6F6; color: #1F7A78; }   /* 续签面谈：青 */
.tk-scene.s7 { background: #FBF0E9; color: #A85520; }   /* 晋升谈话：赭 */

.tk-detail-card { min-height: 420px; }
.tk-detail { padding: 16px 18px 20px; }
.tk-detail-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tk-detail-name { font-size: 17px; font-weight: 700; color: var(--navy-dark); display: flex; align-items: center; gap: 8px; }
.tk-status-tag { font-size: 11px; color: var(--muted); font-weight: 400; }
.tk-detail-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tk-reason { font-size: 12.5px; color: #8A6A1F; background: #FFFBEF; border-radius: 6px; padding: 5px 9px; margin-top: 8px; display: inline-block; }
.tk-detail-meta { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.9; flex-shrink: 0; }

.tk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 14px; }
.tk-block-title { font-size: 13px; font-weight: 700; color: var(--navy-dark); margin-bottom: 10px; }
.tk-block-title .muted { font-weight: 400; font-size: 11.5px; color: var(--muted); }

.tk-sec { margin-bottom: 13px; }
.tk-sec-title { font-size: 12.5px; font-weight: 600; color: var(--navy-dark); }
.tk-tips {
  font-size: 11.5px; color: #7A6A3F; background: #FFFBEF;
  border-radius: 6px; padding: 5px 8px; margin: 5px 0 6px; line-height: 1.65;
}
.tk-qs { margin: 0; padding-left: 18px; }
.tk-qs li { font-size: 12.5px; color: #4A5568; line-height: 1.85; }
.tk-outline-foot { margin-top: 4px; }

.tk-field { display: block; margin-bottom: 11px; }
.tk-field > span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.tk-field input, .tk-field select, .tk-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 6px;
  padding: 7px 10px; font-size: 12.5px; font-family: inherit; color: var(--text);
  background: #fff; resize: vertical;
}
.tk-field input:focus, .tk-field select:focus, .tk-field textarea:focus {
  outline: none; border-color: #9CB8E8; box-shadow: 0 0 0 3px rgba(72,116,203,.08);
}
.tk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }

.tk-read-row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #EEF1F5; font-size: 12.5px; }
.tk-read-label { color: var(--muted); }
.tk-read-value { color: var(--text); line-height: 1.75; white-space: pre-wrap; }

.tk-suggest { margin-top: 16px; border-left: 3px solid var(--blue); }
.tk-suggest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 18px; padding: 2px 16px 14px; }
.tk-suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed #EEF1F5;
}
.tk-sug-main { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.tk-sug-name { font-weight: 600; color: var(--navy-dark); font-size: 13px; }
.tk-sug-label {
  font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  background: #EEF2F7; color: #62748A;
}
.tk-suggest-item.high .tk-sug-label { background: #FBEDEB; color: #B03A2E; }
.tk-sug-hint { flex: 1; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-mini-btn {
  border: 1px solid var(--line); background: #fff; color: var(--blue);
  border-radius: 5px; padding: 2px 10px; font-size: 11.5px; flex-shrink: 0;
}
.tk-mini-btn:hover { border-color: var(--blue); background: var(--blue-soft); }

.tk-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.tk-empty.tall { padding: 120px 16px; }
.tk-empty.small { padding: 14px; }

.tk-modal { width: 620px; }
.tk-cand-list { max-height: 218px; overflow-y: auto; border: 1px solid var(--line); border-radius: 7px; padding: 4px; margin: 4px 0 14px; }
.tk-cand { padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.tk-cand:hover { background: #F7F9FC; }
.tk-cand.active { background: var(--blue-soft); }
.tk-cand-name { font-size: 13px; font-weight: 600; color: var(--navy-dark); }
.tk-cand-sub { font-size: 11.5px; color: var(--muted); }

@media (max-width: 1240px) {
  .tp-charts, .rp-charts { grid-template-columns: 1fr; }
  .tk-cols { grid-template-columns: 1fr; }
  .tk-wrap { grid-template-columns: 1fr; }
  .tk-list { max-height: 280px; }
}

/* 主按钮默认是登录页的整行样式，在弹窗与工具条里需要收成常规尺寸 */
.ob-modal-foot .btn-primary, .ob-modal-foot .btn-line,
.tk-actions .btn-primary, .tk-actions .btn-line,
.rp-actions .btn-primary, .rp-actions .btn-line {
  width: auto; height: 34px; padding: 0 16px;
  font-size: 13px; margin-top: 0; flex-shrink: 0; white-space: nowrap;
}
.ob-modal-foot button { flex-shrink: 0; }
.tk-actions { flex-wrap: wrap; }
.tk-list-card { align-self: start; }

/* ================================================================
   M5 · 薪酬申诉（员工自助 me-* / 处理台 ap-*）
   ================================================================ */

.rp-count {
  display: inline-block; min-width: 20px; padding: 0 6px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: #F0F3F7; border-radius: 9px; text-align: center;
}

/* ---------------- 员工自助：我的申诉 ---------------- */

.me-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #F7F9FC, #FFFFFF);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.me-hero-title { font-size: 15px; font-weight: 600; color: var(--navy); }
.me-hero-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.7; }
.me-new-btn { width: auto !important; height: 34px; margin: 0; padding: 0 18px; flex: 0 0 auto; }

.me-dot {
  display: inline-block; min-width: 17px; margin-left: 5px; padding: 0 4px;
  font-size: 11px; line-height: 16px; color: #fff; background: var(--red);
  border-radius: 8px; text-align: center; vertical-align: 1px;
}

.me-list { padding: 4px 0; }
.me-item { border-bottom: 1px solid #F0F3F7; }
.me-item:last-child { border-bottom: none; }
.me-item-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; padding: 13px 18px; cursor: pointer;
}
.me-item-head:hover { background: #FAFBFD; }
.me-item.open .me-item-head { background: #F7F9FC; }
.me-item-main { min-width: 0; }
.me-item-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.me-item-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 5px; font-size: 12px; color: var(--muted);
}
.me-amount { color: var(--navy); font-weight: 600; }
.me-item-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.me-caret { font-size: 12px; color: var(--blue); }

.me-item-body { padding: 4px 18px 16px; background: #F7F9FC; }
.me-block { margin-bottom: 12px; }
.me-block-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.me-block-text {
  font-size: 13px; color: var(--text); line-height: 1.8;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}

.me-reply {
  margin: 4px 0 12px; padding: 12px 14px;
  background: #fff; border: 1px solid #CFE0F7; border-left: 3px solid var(--blue);
  border-radius: 8px;
}
.me-reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.me-reply-title { font-size: 13px; font-weight: 700; color: var(--blue); }
.me-reply-type {
  font-size: 11.5px; color: var(--blue); background: var(--blue-soft);
  border-radius: 10px; padding: 1px 8px;
}
.me-reply-at { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.me-reply-text { font-size: 13px; line-height: 1.85; color: var(--text); }
.me-notify { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.me-notify-warn { color: var(--red); margin-left: 6px; }

.me-pending {
  font-size: 12.5px; color: var(--muted); background: #fff;
  border: 1px dashed var(--line); border-radius: 8px; padding: 9px 12px;
}
.me-pending .link-btn { margin-left: 6px; }

.me-timeline { margin-top: 12px; }
.me-tl-row { display: flex; gap: 10px; font-size: 12px; color: var(--muted); padding: 3px 0; }
.me-tl-at { flex: 0 0 92px; color: #A6B0BB; font-variant-numeric: tabular-nums; }

.me-form-card { margin-top: 16px; }
.me-form { padding: 4px 18px 18px; }
.me-form-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.me-form label, .ap-reply-row label { display: block; font-size: 12.5px; color: var(--muted); }
.me-form input, .me-form select, .me-form textarea {
  width: 100%; margin-top: 5px; padding: 8px 10px;
  font-family: inherit; font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.me-form input:focus, .me-form select:focus, .me-form textarea:focus,
.ap-reply-box select:focus, .ap-reply-box textarea:focus {
  outline: none; border-color: #B9CBEA; box-shadow: 0 0 0 3px rgba(72,116,203,.08);
}
.me-form textarea { resize: vertical; line-height: 1.7; }
.me-form-full { margin-top: 12px; }
.me-cat-hint { font-size: 11.5px; color: #A6B0BB; margin-top: 6px; }
.me-form-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #F0F3F7;
}
.me-form-note { font-size: 11.5px; color: var(--muted); }
.me-form-btns { display: flex; gap: 10px; flex: 0 0 auto; }
.me-form-btns .btn-primary { width: auto; height: 34px; margin: 0; padding: 0 18px; }

.me-tip {
  margin-top: 16px; padding: 11px 14px; font-size: 12.5px; line-height: 1.8;
  color: var(--muted); background: #FBFCFD; border: 1px dashed var(--line); border-radius: 8px;
}
.me-tip strong { color: var(--navy); }

.me-empty-box { padding: 28px 22px 26px; text-align: left; max-width: 760px; }
.me-empty-title { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.me-empty-text { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 10px; }
.me-empty-box .btn-line { margin-top: 6px; }

/* ---------------- 处理台：薪酬申诉 ---------------- */

.ap-kpis {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px;
}
.ap-kpis .kpi { padding: 14px 16px; }
.kpi.danger .kpi-value { color: var(--red); }

.ap-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.ap-tools { display: flex; align-items: center; gap: 8px; }
.ap-tools select, .ap-tools input {
  height: 32px; padding: 0 10px; font-family: inherit; font-size: 12.5px;
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.ap-tools input { width: 190px; }
.ap-tools select:focus, .ap-tools input:focus {
  outline: none; border-color: #B9CBEA;
}

.ap-layout {
  display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start;
}
.ap-list-card { align-self: start; }
.ap-list { max-height: 640px; overflow-y: auto; }
.ap-row {
  padding: 11px 16px; border-bottom: 1px solid #F0F3F7; cursor: pointer;
  border-left: 3px solid transparent;
}
.ap-row:hover { background: #FAFBFD; }
.ap-row.active { background: var(--blue-soft); border-left-color: var(--blue); }
.ap-row-top { display: flex; align-items: center; gap: 8px; }
.ap-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ap-row-sub {
  font-size: 12.5px; color: var(--text); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ap-row-meta {
  display: flex; gap: 10px; align-items: center;
  margin-top: 5px; font-size: 11.5px; color: var(--muted);
}
.ap-amt { color: var(--navy); font-weight: 600; }
.ap-age { margin-left: auto; }
.ap-no { font-family: Consolas, Menlo, monospace; font-size: 11.5px; color: #8A96A3; }

.ap-st {
  font-size: 11.5px; padding: 1px 8px; border-radius: 10px; flex: 0 0 auto;
  background: #F0F3F7; color: var(--muted);
}
.ap-st-wait { background: #FDF3E7; color: #D97726; }
.ap-st-doing { background: var(--blue-soft); color: var(--blue); }
.ap-st-done { background: #EDF7E8; color: #4E9226; }
.ap-st-off { background: #F2F4F7; color: #98A2AE; }

.ap-flag {
  font-size: 11px; padding: 1px 7px; border-radius: 10px;
  flex: 0 0 auto; white-space: nowrap;
}
.ap-flag.lv-red { background: #FBEDEB; color: var(--red); }
.ap-flag.lv-yellow { background: #FDF3E7; color: #D97726; }

.ap-detail { padding: 18px 20px 22px; }
.ap-detail-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; padding-bottom: 14px; border-bottom: 1px solid #F0F3F7;
}
.ap-detail-title { font-size: 15.5px; font-weight: 700; color: var(--navy-dark); }
.ap-detail-sub {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 7px; font-size: 12.5px; color: var(--muted);
}
.ap-detail-right { text-align: right; flex: 0 0 auto; }
.ap-time { font-size: 13px; font-weight: 600; color: var(--navy); }
.ap-time-hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.ap-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0;
}
.ap-fact {
  background: #FAFBFD; border: 1px solid #EFF2F6; border-radius: 8px; padding: 9px 12px;
  font-size: 12px; color: var(--muted);
}
.ap-fact b { display: block; margin-top: 3px; font-size: 13.5px; color: var(--text); }

.ap-block { margin-bottom: 14px; }
.ap-block-label { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.ap-block-text {
  font-size: 13.5px; line-height: 1.9; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
}

.ap-replied {
  margin: 4px 0 14px; padding: 13px 15px;
  background: #F8FBF7; border: 1px solid #D5E8C8; border-left: 3px solid var(--green);
  border-radius: 8px;
}
.ap-replied-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ap-replied-title { font-size: 13px; font-weight: 700; color: #4E9226; }
.ap-replied-type {
  font-size: 11.5px; color: #4E9226; background: #EDF7E8; border-radius: 10px; padding: 1px 8px;
}
.ap-replied-at { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.ap-replied-text { font-size: 13px; line-height: 1.85; color: var(--text); }

.ap-notify { font-size: 12px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #D5E8C8; }
.ap-notify.ok { color: #4E9226; }
.ap-notify.sim { color: var(--muted); }
.ap-notify.bad { color: var(--red); }
.ap-notify-err { color: var(--muted); font-size: 11.5px; }
.ap-notify .link-btn { margin-left: 8px; }

.ap-timeline { border-left: 2px solid #EFF2F6; margin-left: 4px; padding-left: 14px; }
.ap-tl-row { position: relative; padding: 4px 0; font-size: 12px; color: var(--muted); }
.ap-tl-row::before {
  content: ''; position: absolute; left: -19px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: #C9D3DE;
}
.ap-tl-at { display: inline-block; width: 96px; color: #A6B0BB; font-variant-numeric: tabular-nums; }

.ap-reply-box {
  margin-top: 16px; padding: 15px 16px 16px;
  background: #FAFBFD; border: 1px solid #E7ECF3; border-radius: 10px;
}
.ap-reply-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ap-reply-row { margin-top: 12px; }
.ap-reply-row select {
  width: 300px; margin-top: 5px; padding: 7px 10px;
  font-family: inherit; font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.ap-reply-full { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.ap-reply-full textarea {
  width: 100%; margin-top: 5px; padding: 9px 11px; resize: vertical;
  font-family: inherit; font-size: 13px; line-height: 1.75; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.ap-reply-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 12px;
}
.ap-reply-note { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.ap-reply-foot .btn-primary { width: auto; height: 34px; margin: 0; padding: 0 18px; flex: 0 0 auto; }

.ap-actions { margin-top: 14px; display: flex; gap: 10px; }
.ap-readonly {
  margin-top: 14px; padding: 10px 13px; font-size: 12.5px; color: var(--muted);
  background: #FBFCFD; border: 1px dashed var(--line); border-radius: 8px;
}

@media (max-width: 1180px) {
  .ap-kpis { grid-template-columns: repeat(3, 1fr); }
  .ap-layout { grid-template-columns: 1fr; }
  .ap-list { max-height: 320px; }
  .ap-facts { grid-template-columns: repeat(2, 1fr); }
  .me-form-row { grid-template-columns: 1fr; }
}

.ap-action-hint { font-size: 11.5px; color: var(--muted); align-self: center; }

/* 申诉/自助列表的空态收紧一点，避免一张卡空出半屏 */
.me-list .empty, .ap-list .empty { padding: 22px 16px; font-size: 12.5px; }

/* ================================================================
   M5.1 · 考勤核对（员工端日历 me-cal-* / HR 端 at-*）
   ================================================================ */

/* 状态色：同一套色在员工端与 HR 端复用，避免两边理解不一致 */
.g-work     { background: #F3F8FF; color: #3C64A8; border-color: #DCE9FA; }
.g-rest     { background: #F5F7FA; color: #8A96A3; border-color: #ECEFF3; }
.g-leave    { background: #EEF4FD; color: #4874CB; border-color: #DCE7F9; }
.g-trip     { background: #EAF6F6; color: #2C7A7B; border-color: #D3EBEB; }
.g-overtime { background: #FDF3E7; color: #C96A1C; border-color: #F6E3CC; }
.g-abnormal { background: #FBEDEB; color: var(--red); border-color: #F3D6D2; }
.g-unknown  { background: #FAF7EE; color: #9A7B3A; border-color: #EFE7D3; }
.g-none     { background: #FCFDFE; color: #B4BCC6; border-color: #EDF0F4; border-style: dashed; }

/* ---------------- 员工端：考勤日历 ---------------- */

.at-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.at-month {
  height: 30px; padding: 0 8px; font-family: inherit; font-size: 12.5px;
  color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.at-month:focus { outline: none; border-color: #B9CBEA; }

.me-att-sum {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  padding: 14px 18px 4px;
}
.me-att-kpi {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  background: #fff;
}
.me-att-kpi b { display: block; font-size: 19px; line-height: 1.2; font-weight: 700; }
.me-att-kpi span { font-size: 11.5px; color: var(--muted); }
.me-att-kpi.g-work b { color: #3C64A8; }
.me-att-kpi.g-rest b { color: #8A96A3; }
.me-att-kpi.g-leave b { color: var(--blue); }
.me-att-kpi.g-trip b { color: #2C7A7B; }
.me-att-kpi.g-overtime b { color: #C96A1C; }
.me-att-kpi.g-abnormal b { color: var(--red); }

.me-cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  padding: 12px 18px 0;
}
.me-cal-head div {
  font-size: 11.5px; color: var(--muted); text-align: center; padding-bottom: 2px;
}
.me-cal {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  padding: 6px 18px 12px;
}
.me-cal-cell {
  min-height: 54px; padding: 6px 7px;
  border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 2px;
  cursor: pointer; transition: box-shadow .12s, transform .12s;
}
.me-cal-cell:hover { box-shadow: 0 2px 8px rgba(68,84,106,.10); }
.me-cal-cell.is-blank { border: none; background: transparent; cursor: default; }
.me-cal-cell.is-blank:hover { box-shadow: none; }
.me-cal-cell.is-sel { box-shadow: 0 0 0 2px var(--blue) inset; }
.me-cal-cell.is-static { cursor: default; }
.me-cal-cell.is-abn { font-weight: 600; }
.me-cal-d { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.me-cal-s { font-size: 11px; line-height: 1.3; opacity: .95; }

.me-cal-legend {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding: 0 18px 14px;
}
.me-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.me-lg i {
  width: 11px; height: 11px; border-radius: 3px; border: 1px solid; display: inline-block;
}
.me-cal-hint {
  margin: 0 18px 16px; padding: 9px 12px; font-size: 12.5px; color: var(--muted);
  background: #FAFBFD; border: 1px dashed var(--line); border-radius: 8px;
}

.me-day { margin: 0 18px 16px; padding: 13px 15px; border: 1px solid #DCE9FA; border-radius: 10px; background: #FAFCFF; }
.me-day-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-day-date { font-size: 14px; font-weight: 700; color: var(--navy-dark); }
.me-day-wd { font-size: 12.5px; color: var(--muted); }
.me-day-raw { font-size: 11.5px; color: var(--muted); }
.me-day-close { margin-left: auto; }
.me-day-body { margin-top: 10px; }
.me-day-alert { font-size: 12.5px; line-height: 1.85; color: var(--red); margin-bottom: 10px; }
.me-day-plain { font-size: 12.5px; line-height: 1.85; color: var(--muted); margin-bottom: 10px; }
.me-day-body .btn-line { width: auto; }

.at-chip {
  display: inline-block; padding: 1px 8px; font-size: 11.5px; border-radius: 10px;
  border: 1px solid var(--line); background: #F5F7FA; color: var(--muted);
  white-space: nowrap;
}
.at-chip.is-abn { font-weight: 600; }

.me-att-ref {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; font-size: 12.5px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}

/* ---------------- HR 端：考勤核对 ---------------- */

.at-kpis {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px;
}
.at-kpis .kpi { padding: 13px 15px; }
.kpi.danger .kpi-value { color: var(--red); }
.kpi.warn .kpi-value { color: var(--orange); }

.at-tools .at-search {
  height: 30px; width: 180px; padding: 0 10px;
  font-family: inherit; font-size: 12.5px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.at-tools .at-search:focus { outline: none; border-color: #B9CBEA; }
.at-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.at-check input { width: 13px; height: 13px; }

.at-table td { font-size: 12.5px; }
.at-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.at-name { font-size: 13px; font-weight: 600; }
.at-no { font-family: Consolas, Menlo, monospace; font-size: 11px; color: #94A0AC; }
.at-org { color: var(--muted); }
.at-abn { color: var(--red); font-weight: 700; }
.at-dim { color: var(--muted); }
.at-row { cursor: pointer; }
.at-row:hover td { background: #FAFBFD; }
.at-row.active td { background: var(--blue-soft); }
.at-empty { padding: 26px 18px; font-size: 12.5px; }

.at-detail-body { padding: 4px 0 6px; }
.at-detail-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 4px 18px 16px; }
.at-foot-block { background: #FAFBFD; border: 1px solid #EFF2F6; border-radius: 8px; padding: 10px 12px; }
.at-foot-title { font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.at-foot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.at-foot-note { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.at-unmatched-hint {
  padding: 10px 18px; font-size: 12.5px; color: var(--muted); line-height: 1.8;
  background: #FFFCF5; border-bottom: 1px solid #F3E9D5;
}
.at-bind-table td { font-size: 12.5px; }
.at-bind-select {
  width: 100%; max-width: 320px; height: 30px; padding: 0 8px;
  font-family: inherit; font-size: 12.5px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.at-bind-btn { height: 28px !important; padding: 0 12px !important; font-size: 12.5px; }

.at-import-body { padding: 14px 18px 16px; }
.at-import-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.at-file { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.at-file input { display: none; }
.at-file-btn {
  display: inline-block; height: 32px; line-height: 30px; padding: 0 14px;
  font-size: 12.5px; color: var(--navy); background: #fff;
  border: 1px solid #CBD4DF; border-radius: 8px;
}
.at-file:hover .at-file-btn { border-color: var(--blue); color: var(--blue); }
.at-file-name { font-size: 12.5px; color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-month-box { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.at-month-box input {
  height: 32px; padding: 0 8px; font-family: inherit; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.at-import-btn { width: auto !important; height: 32px; margin: 0 !important; padding: 0 18px; }
.at-import-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.85; }
.at-import-note b { color: var(--navy); }

.at-report { border-left: 3px solid var(--green); }
.at-report.has-warn { border-left-color: var(--orange); }
.at-report-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 12px 18px;
}
.at-report-grid div { font-size: 12px; color: var(--muted); }
.at-report-grid b { display: block; margin-top: 2px; font-size: 15px; color: var(--text); }
.at-report-grid b.ok { color: #4E9226; }
.at-report-grid b.bad { color: var(--red); }
.at-report-warn {
  margin: 0 18px 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.85;
  color: #9A6A18; background: #FFFCF5; border: 1px solid #F3E9D5; border-radius: 8px;
}
.at-report-warn .at-chip { margin: 0 4px; }
.at-report-warn-hint { margin-top: 5px; color: var(--muted); font-size: 12px; }
.at-report-list { margin: 0 18px 14px 34px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }

.at-history td { font-size: 12.5px; }
.at-history .num { text-align: right; font-variant-numeric: tabular-nums; }
.at-file-cell { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .at-kpis { grid-template-columns: repeat(3, 1fr); }
  .me-att-sum { grid-template-columns: repeat(3, 1fr); }
  .at-detail-foot { grid-template-columns: 1fr; }
  .at-report-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 汇总表内部滚动：76 个人全铺开会把页面拉到几千像素，导入按钮和明细都被顶到很远 */
.at-table-wrap { max-height: 540px; overflow-y: auto; }
.at-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #FBFCFD;
  box-shadow: inset 0 -1px 0 var(--line);
}
.at-detail { scroll-margin-top: 12px; }

/* 图例色块用实色，浅底在这个尺寸下几乎看不见 */
.me-lg i.g-work { background: #9DB8DE; }
.me-lg i.g-rest { background: #C9D1D9; }
.me-lg i.g-leave { background: #4874CB; }
.me-lg i.g-trip { background: #2C7A7B; }
.me-lg i.g-overtime { background: #EE822F; }
.me-lg i.g-abnormal { background: #C0392B; }
.me-lg i.g-none { background: #fff; border-style: dashed; border-color: #CBD4DF; }
.at-scroll-hint {
  margin-left: 8px; font-size: 11.5px; font-weight: 400; color: #A6B0BB;
  border: 1px dashed var(--line); border-radius: 8px; padding: 0 7px;
}
.at-report-note {
  margin: 0 18px 12px; padding: 9px 12px; font-size: 12.5px; line-height: 1.8;
  color: var(--muted); background: #FAFBFD; border: 1px solid #EFF2F6; border-radius: 8px;
}
.at-report-note b { color: var(--navy); }

/* .at-chip 定义在 .g-* 之后，会盖掉状态底色；这里按组把 chip 的颜色补回来 */
.at-chip.g-work     { background: #F3F8FF; color: #3C64A8; border-color: #DCE9FA; }
.at-chip.g-rest     { background: #F5F7FA; color: #8A96A3; border-color: #ECEFF3; }
.at-chip.g-leave    { background: #EEF4FD; color: #4874CB; border-color: #DCE7F9; }
.at-chip.g-trip     { background: #EAF6F6; color: #2C7A7B; border-color: #D3EBEB; }
.at-chip.g-overtime { background: #FDF3E7; color: #C96A1C; border-color: #F6E3CC; }
.at-chip.g-abnormal { background: #FBEDEB; color: var(--red); border-color: #F3D6D2; }
.at-chip.g-unknown  { background: #FAF7EE; color: #9A7B3A; border-color: #EFE7D3; }
.at-chip.g-none     { background: #FCFDFE; color: #B4BCC6; border-color: #EDF0F4; }

/* ---------------- M5.2：打卡时间补录 ---------------- */

/* 8 张卡排 4 列 × 2 行，比 6 列挤成一行更好读 */
.at-kpis { grid-template-columns: repeat(4, 1fr); }

/* 日历格里的打卡时间：小一号，不抢状态的视线 */
.me-cal-t {
  font-size: 10px; line-height: 1.2; letter-spacing: -.2px;
  font-variant-numeric: tabular-nums; opacity: .72; white-space: nowrap;
}
.me-cal-cell:has(.me-cal-t) { min-height: 60px; }

/* HR 单人明细里的补录行 */
.at-clock-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding: 9px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.at-clock-label { font-size: 12.5px; color: var(--muted); }
.at-clock-field {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text);
}
.at-clock-field input[type="time"] {
  height: 30px; padding: 0 8px;
  font-family: inherit; font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-variant-numeric: tabular-nums;
}
.at-clock-field input[type="time"]:focus { outline: none; border-color: #B9CBEA; }
.at-clock-save { height: 30px !important; padding: 0 14px !important; }
.at-clock-span { font-size: 12px; color: var(--muted); }
.at-clock-note {
  margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--muted);
  background: #FAFBFD; border: 1px dashed var(--line); border-radius: 8px;
  padding: 8px 11px;
}

/* 员工端某一天的打卡时间行 */
.me-clock {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px; padding: 8px 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.me-clock-label { font-size: 12px; color: var(--muted); }
.me-clock-val {
  font-size: 13px; font-weight: 600; color: var(--navy-dark);
  font-variant-numeric: tabular-nums;
}
.me-clock-span { font-size: 12px; color: var(--muted); }
.me-clock-muted { font-size: 12.5px; color: #A6B0BB; }
.at-clock-sum {
  margin-left: auto; font-size: 11.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------------- M5.3：迟到 / 旷工判定 ---------------- */

/* 10 张统计卡：5 列 × 2 行 */
.at-kpis { grid-template-columns: repeat(5, 1fr); }
.at-warn { color: #B8802A; font-weight: 600; }

/* 8 个统计位（含迟到/旷工），列宽自适应，窄屏也不挤成一条 */
.me-att-sum { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }

/* 口径提示：这位员工按门店还是后台算，依据是什么 */
.at-rule-note {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 10px 18px 0; padding: 8px 12px;
  background: #FAFBFD; border: 1px solid #EFF2F6; border-radius: 8px;
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.at-rule-note b { font-size: 12px; color: var(--navy-dark); }
.at-rule-note i { font-style: normal; margin-left: auto; color: #A6B0BB; }
.at-rule-note.is-warn { background: #FFF9EE; border-color: #F3E3C3; }
.at-rule-note.is-warn b { color: #B8802A; }

/* 当日到岗判定条 */
.at-judge {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.at-judge-k { font-size: 12px; color: var(--muted); }
.at-judge b { font-size: 13px; }
.at-judge-note { font-size: 12px; color: var(--muted); }
.at-judge.is-ok { background: #F3F8F4; border-color: #DCEADF; }
.at-judge.is-ok b { color: #2F7A45; }
.at-judge.is-bad { background: #FDF6F6; border-color: #F3DFDF; }
.at-judge.is-bad b { color: var(--red); }
.at-judge.is-idle { background: #FAFBFD; }
.at-judge.is-idle b { color: var(--muted); font-weight: 600; }

/* 日历角标：迟到/旷工一眼可见，不用点进去 */
.me-cal-cell { position: relative; }
.me-cal-flag {
  position: absolute; top: 4px; right: 5px;
  font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 1;
  padding: 2px 3px; border-radius: 4px;
  background: #FDECEC; color: var(--red);
}
.at-judge-src { margin-left: auto; font-size: 11.5px; color: #A6B0BB; }

/* ---------------- M5.4：门店排班 ---------------- */

.sp-badge {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  font-size: 11.5px; font-weight: 600; line-height: 1.6;
  color: var(--red); background: #FDECEC; border-radius: 6px;
}
.sp-badge.ok { color: #2F7A45; background: #EDF5EF; }
.sp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.sp-dot.ok { background: #4C9A6A; }

.sp-remind { border-left: 3px solid #4C9A6A; }
.sp-remind.is-warn { border-left-color: #D9A441; background: #FFFDF8; }
.sp-remind-body { display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; padding: 4px 18px 12px; }
.sp-meter { min-width: 190px; }
.sp-meter-num { font-size: 22px; font-weight: 700; color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.sp-meter-num span { margin-left: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.sp-meter-bar { height: 6px; margin: 7px 0 5px; background: #EDF0F4; border-radius: 4px; overflow: hidden; }
.sp-meter-bar i { display: block; height: 100%; background: #4C9A6A; border-radius: 4px; }
.sp-remind.is-warn .sp-meter-bar i { background: #D9A441; }
.sp-meter-hint { font-size: 12px; color: var(--muted); }

.sp-missing { flex: 1; min-width: 260px; }
.sp-missing-title { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; font-size: 12.5px;
  background: #fff; border: 1px solid #E6E2D8; border-radius: 6px; color: var(--text);
}
.sp-chip i { font-style: normal; font-size: 10.5px; color: #A6B0BB; }

.sp-partial {
  flex-basis: 100%; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted);
}
.sp-partial b { color: var(--text); font-weight: 600; }

.sp-remind-hint {
  padding: 9px 18px 13px; font-size: 12px; line-height: 1.75; color: var(--muted);
  border-top: 1px solid var(--line);
}

.sp-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 4px 18px 0; }
.sp-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.sp-field select, .sp-field input[type="week"] {
  height: 32px; min-width: 130px; padding: 0 9px;
  font-family: inherit; font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.sp-upload {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 14px 18px 0; padding: 11px 13px;
  background: #FAFBFD; border: 1px dashed var(--line); border-radius: 8px;
}
.sp-upload-hint { font-size: 12px; color: var(--muted); }
.sp-hint {
  padding: 10px 18px 15px; font-size: 12px; line-height: 1.8; color: var(--muted);
}
.sp-hint b { color: var(--text); }

.sp-rule-body { display: flex; flex-direction: column; gap: 9px; padding: 4px 18px 16px;
  font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.sp-rule-body b { color: var(--navy-dark); }

/* 迟到/旷工公示说明（M5.4） */
.at-public-note {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 0; padding: 9px 13px;
  background: #FBFCFE; border: 1px solid #EFF2F6; border-radius: 9px;
  font-size: 12.5px; line-height: 1.75; color: var(--muted);
}
.at-public-note b { color: var(--text); font-weight: 600; }
.at-public-tag {
  padding: 1px 7px; font-size: 11px; font-weight: 600;
  color: var(--navy-dark); background: #EDF1F8; border-radius: 5px;
}
.at-public-sub { flex-basis: 100%; font-size: 11.5px; color: #A6B0BB; }

/* 上传按钮在弹性行里不要被拉满整行 */
.sp-upload .btn-primary {
  width: auto; flex: 0 0 auto;
  height: 36px; padding: 0 20px; margin-top: 0; font-size: 13.5px;
}

/* ---------------- 招聘管理（M6） ---------------- */

.rj-tabs {
  display: flex; gap: 4px; margin: 0 0 16px;
  background: #E9ECF5;
  border-radius: 11px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.rj-tab {
  background: none; border: none; padding: 7px 16px;
  font-size: 13.5px; color: #6B7488;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  transition: all .14s;
}
.rj-tab:hover { color: var(--ink); }
.rj-tab.on {
  color: var(--indigo-deep);
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(23, 32, 64, .12);
}
.rj-tab i {
  font-style: normal; font-size: 11.5px; background: rgba(23, 32, 64, .07); color: #6B7488;
  border-radius: 9px; padding: 0 7px; line-height: 17px;
}
.rj-tab.on i { background: var(--indigo-soft); color: var(--indigo-deep); }

.rj-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.rj-kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.rj-kpi-n { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.rj-kpi-l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.rj-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.rj-grid2 > .card, .rj-funnel > .card { margin-bottom: 0; }
.card + .card, .rj-grid2 + .card, .rj-kpis + .card { margin-top: 0; }
.rj-grid2 + .card, .card + .card { margin-top: 14px; }

.rj-badge {
  display: inline-block; font-size: 12px; line-height: 19px; padding: 0 8px;
  border-radius: 4px; border: 1px solid transparent; white-space: nowrap;
}
.rj-g-excellent { background: var(--navy); color: #fff; border-color: var(--navy); }
.rj-g-good { background: var(--blue-soft); color: var(--blue); border-color: #C9D8F2; }
.rj-g-watch { background: #FFF3E8; color: #B4611A; border-color: #F5D4B5; }
.rj-g-reject { background: #F2F4F6; color: var(--muted); border-color: #E1E6EB; }
.rj-g-veto { background: var(--red); color: #fff; border-color: var(--red); }
.rj-g-none { background: #F7F8FA; color: #A6AFB8; border-color: #E8ECEF; }

.rj-fg { margin-bottom: 14px; }
.rj-fg:last-child { margin-bottom: 0; }
.rj-fg-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text); margin-bottom: 5px;
}
.rj-fg-head b { font-size: 15px; color: var(--navy); }
.rj-bar { height: 7px; background: #EFF2F5; border-radius: 4px; overflow: hidden; }
.rj-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.rj-bar.sm { height: 6px; flex: 1; }
.rj-fg-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.rj-chip {
  font-size: 12px; color: var(--text); background: #F6F8FA; border: 1px solid #E8ECEF;
  border-radius: 4px; padding: 1px 8px; display: inline-flex; gap: 5px;
}
.rj-chip b { color: var(--navy); }
.rj-chip.zero { color: #B3BBC3; }
.rj-chip.zero b { color: #B3BBC3; }

.rj-bp { padding: 10px 0; border-bottom: 1px dashed #EDF0F3; }
.rj-bp:last-of-type { border-bottom: none; }
.rj-bp-main { display: flex; align-items: baseline; gap: 8px; }
.rj-bp-main b { font-size: 19px; color: #AEB6BE; min-width: 26px; }
.rj-bp.hit .rj-bp-main b { color: var(--red); }
.rj-bp-main span { font-size: 13.5px; }
.rj-bp-hint { font-size: 12px; color: var(--muted); padding-left: 34px; }

.rj-note {
  font-size: 12.5px; color: var(--muted); background: #F8FAFB;
  border-left: 2px solid #DDE3E9; padding: 8px 12px; margin-top: 10px;
  line-height: 1.7; border-radius: 0 4px 4px 0;
}

.rj-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.rj-search {
  width: 170px; height: 32px; padding: 0 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 6px; font-family: inherit;
}
.rj-tools select {
  height: 32px; padding: 0 8px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.rj-new { height: 32px; margin-top: 0; width: auto; padding: 0 14px; font-size: 13px; }

.rj-table-wrap { overflow-x: auto; }
.rj-table { min-width: 760px; }
.rj-table td { white-space: nowrap; }
.rj-row { cursor: pointer; }
.rj-no { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.rj-dim { color: var(--muted); font-size: 12.5px; }
.rj-empty { text-align: center; color: var(--muted); padding: 22px 0; font-size: 13px; }
.rj-stage {
  font-size: 12px; background: #F2F5F8; border-radius: 4px; padding: 1px 7px;
  color: #55636F; display: inline-block;
}
.rj-mini { height: 27px; padding: 0 10px; font-size: 12.5px; margin: 0; }
.rj-veto-dot {
  display: inline-block; font-size: 11px; color: #fff; background: var(--red);
  border-radius: 3px; padding: 0 4px; margin-left: 5px; vertical-align: 1px;
}
.rj-group-row td {
  background: #F7F9FA; font-size: 12px; color: var(--muted);
  font-weight: 600; letter-spacing: .04em;
}
.rj-anchor { font-size: 12.5px; color: #55636F; white-space: normal; line-height: 1.6; }
.rj-ap { font-size: 12px; padding: 1px 7px; border-radius: 4px; background: #F2F5F8; color: #55636F; }
.rj-ap.approved { background: var(--blue-soft); color: var(--blue); }
.rj-ap.pending { background: #FFF3E8; color: #B4611A; }
.rj-ap.rejected { background: #FBECEA; color: var(--red); }
.rj-pend .card-head { background: #FFF9F3; }

.rj-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--muted); }
.rj-meta b { color: var(--text); font-weight: 600; }
.rj-warn { color: var(--red) !important; }

.rj-form { padding-top: 4px; }
.rj-form-head {
  font-size: 13px; font-weight: 600; color: var(--navy); margin: 6px 0 10px;
}
.rj-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 12px; }
.rj-form-grid label, .rj-form-full {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--muted);
}
.rj-form-full { margin-top: 10px; }
.rj-form-grid input, .rj-form-grid select, .rj-form-full input, .rj-form-full textarea {
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
  font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
  width: 100%;
}
.rj-form-grid input:focus, .rj-form-full textarea:focus {
  outline: none; border-color: var(--blue);
}
.rj-upload { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rj-upload input[type="file"] { font-size: 12.5px; }
.rj-hint { font-size: 12px; color: var(--muted); }
.rj-form-actions { display: flex; gap: 10px; margin-top: 12px; }
.rj-form-actions .btn-primary, .rj-form-actions .btn-line { width: auto; margin-top: 0; padding: 0 18px; height: 34px; }

/* 归属组织模糊搜索组合框（Offer 交接） */
.rj-combo { position: relative; }
.rj-combo input { width: 100%; }
.rj-combo-list {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
  max-height: 264px; overflow-y: auto; background: #fff;
  border: 1px solid #C9D4DE; border-top: none; border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(30, 45, 60, 0.12);
}
.rj-combo-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 12px; cursor: pointer; font-size: 13px;
}
.rj-combo-item:hover { background: #EEF4FA; }
.rj-combo-name { color: #1F2D3C; white-space: nowrap; }
.rj-combo-path {
  color: #8A97A5; font-size: 11.5px; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%;
}
.rj-combo-empty { padding: 10px 12px; font-size: 12.5px; color: var(--muted); }

.rj-src { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.rj-src > span { width: 84px; flex: 0 0 84px; color: #55636F; }
.rj-src > b { width: 26px; text-align: right; color: var(--navy); }

.rj-veto { padding: 8px 0; border-bottom: 1px dashed #EDF0F3; }
.rj-veto:last-child { border-bottom: none; }
.rj-veto b { display: block; font-size: 13px; color: var(--red); margin-bottom: 2px; }
.rj-veto span { font-size: 12.5px; color: var(--muted); }
.rj-band {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed #EDF0F3; font-size: 13px;
}
.rj-band:last-child { border-bottom: none; }
.rj-band-range { font-size: 12px; color: var(--muted); width: 46px; }
.rj-band-act { font-size: 12.5px; color: #55636F; flex: 1; }

.rj-rev { padding: 10px 0; border-bottom: 1px dashed #EDF0F3; }
.rj-rev:last-child { border-bottom: none; }
.rj-rev-head { display: flex; justify-content: space-between; font-size: 13px; }
.rj-rev-note { font-size: 12.5px; color: #55636F; margin-top: 3px; }
.rj-rev-list { margin: 6px 0 0 18px; font-size: 12.5px; color: var(--muted); }
.rj-rule p { font-size: 13px; line-height: 1.85; margin-bottom: 8px; color: #3C4C5B; }
.rj-rule p:last-child { margin-bottom: 0; }
.rj-rule code { background: #F4F6F8; padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }

.rj-headcard { padding: 16px 18px; }
.rj-head-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.rj-cand-name { font-size: 20px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.rj-cand-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.rj-head-score { text-align: right; }
.rj-big { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.rj-big-l { font-size: 11.5px; color: var(--muted); }
.rj-head-actions {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid #F0F2F5; flex-wrap: wrap;
}
.rj-head-actions select {
  height: 30px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 8px; font-family: inherit; background: #fff;
}
.rj-head-actions .btn-line { height: 30px; font-size: 12.5px; margin: 0; padding: 0 12px; }
.rj-head-actions .rj-dim { margin-right: auto; }

.rj-kv { width: 100%; font-size: 13px; }
.rj-kv th {
  text-align: left; font-weight: 400; color: var(--muted); font-size: 12.5px;
  padding: 5px 0; width: 96px; vertical-align: top;
}
.rj-kv td { padding: 5px 0; color: var(--text); }
.rj-resume { margin-top: 10px; }
.rj-resume summary {
  font-size: 12.5px; color: var(--blue); cursor: pointer; padding: 6px 0;
}
.rj-resume pre {
  white-space: pre-wrap; word-break: break-word; font-size: 12.5px; color: #4A5A68;
  background: #FAFBFC; border: 1px solid #EEF1F4; border-radius: 6px;
  padding: 10px 12px; max-height: 320px; overflow: auto; line-height: 1.75;
  font-family: inherit;
}

.rj-eval-top { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.rj-eval-score { text-align: center; }
.rj-eval-score b { display: block; font-size: 30px; color: var(--navy); line-height: 1.1; }
.rj-eval-score span { font-size: 11.5px; color: var(--muted); }
.rj-eval-mid { flex: 1; }
.rj-eval-act { font-size: 12.5px; color: #55636F; margin-top: 5px; }
.rj-eval-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.rj-eval-actions .btn-primary, .rj-eval-actions .btn-line {
  width: auto; margin: 0; height: 33px; padding: 0 16px; font-size: 13px;
}
.rj-veto-hit {
  background: #FBECEA; border-left: 2px solid var(--red); border-radius: 0 4px 4px 0;
  padding: 8px 12px; margin: 8px 0;
}
.rj-veto-hit div { font-size: 12.5px; color: #7A2A22; display: flex; gap: 8px; flex-wrap: wrap; }
.rj-veto-hit span { color: #9A5B52; }

.rj-dims { margin: 10px 0; }
.rj-dim-row {
  display: grid; grid-template-columns: 152px 72px 1fr; gap: 10px;
  align-items: center; padding: 6px 0; border-bottom: 1px solid #F5F7F9;
}
.rj-dim-row:last-child { border-bottom: none; }
.rj-dim-label { display: flex; align-items: baseline; gap: 6px; }
.rj-dim-label b { font-size: 13px; font-weight: 500; }
.rj-dim-w { font-size: 11px; color: var(--muted); }
.rj-dim-row select {
  height: 30px; font-size: 13px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 6px; font-family: inherit; background: #fff;
}
.rj-dim-row input {
  height: 30px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 9px; font-family: inherit; width: 100%;
}
.rj-veto-form { margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid #F0F2F5; }
.rj-veto-line {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px;
  color: #4A5A68; padding: 4px 0;
}
.rj-veto-line b { color: var(--red); font-weight: 600; }
.rj-veto-line input { margin-top: 4px; }

.rj-bars { margin-top: 8px; }
.rj-bar-row {
  display: grid; grid-template-columns: 110px 1fr 34px 62px;
  gap: 8px; align-items: center; padding: 5px 0; font-size: 12.5px;
}
.rj-bar-label { color: #3C4C5B; }
.rj-bar-val { text-align: right; font-weight: 600; color: var(--navy); }
.rj-bar-w { font-size: 11px; color: var(--muted); text-align: right; }
.rj-bar-ev {
  grid-column: 2 / -1; font-size: 11.5px; color: var(--muted);
  line-height: 1.5; margin-top: -2px;
}

.rj-iv { border-top: 1px solid #F0F2F5; padding: 12px 18px; }
.rj-iv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rj-iv-head b { font-size: 13.5px; color: var(--navy); }
.rj-iv-score { font-size: 12.5px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.rj-iv-adjust {
  font-size: 12px; color: #B4611A; background: #FFF8F2; border-radius: 4px;
  padding: 3px 8px; margin-top: 6px; display: inline-block;
}
.rj-iv-notes {
  font-size: 12.5px; color: #4A5A68; white-space: pre-wrap; line-height: 1.8;
  background: #FAFBFC; border-radius: 6px; padding: 10px 12px; margin-top: 8px;
}
.rj-iv-adjustbar { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.rj-iv-adjustbar input {
  height: 30px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 9px; font-family: inherit;
}
.rj-iv-adjustbar .rj-adj-score { width: 118px; }
.rj-iv-adjustbar .rj-adj-reason { flex: 1; min-width: 160px; }
.rj-offer-form { grid-template-columns: repeat(2, 1fr); max-width: 460px; }

/* ---------------- 窄屏：手机 / 平板竖屏 ---------------- */

/* 店长多在店里用手机填排班，760px 以下侧栏必须让位给正文，
   否则 208px 侧栏 + 正文挤在 430px 里，标题只能竖着排 */
/* ---------------- 培训台账（M7） ---------------- */

.tr-btn {
  border: 1px solid var(--line); background: #fff; color: #46536B;
  border-radius: 8px; padding: 6px 14px; font-size: 13px; line-height: 1.4;
  font-weight: 500; transition: all .13s;
}
.tr-btn:hover { border-color: #B9C8F2; color: var(--indigo-deep); background: #F7F9FF; }
.tr-btn-primary { background: var(--indigo); border-color: var(--indigo); color: #fff; box-shadow: 0 2px 6px rgba(76, 110, 245, .26); }
.tr-btn-primary:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); color: #fff; }
.tr-btn-ghost { background: #fff; }

.tr-btn.tr-del { color: var(--red); border-color: #F0D2CE; }
.tr-btn.tr-del:hover { background: var(--red-soft); border-color: #E8BEB8; }

.tr-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.tr-crumb .tr-back { padding: 4px 10px; }
.tr-link {
  background: none; border: none; padding: 0 4px; color: var(--blue);
  font-size: 12.5px;
}
.tr-link:hover { text-decoration: underline; }
.tr-link.tr-muted { color: var(--muted); }
.tr-link.tr-danger { color: var(--red); }

.tr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.tr-kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tr-kpi-n { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.tr-kpi-l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tr-kpi-h { font-size: 11.5px; color: #A9B4C0; margin-top: 2px; }

.tr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.tr-grid2 > .card { margin-bottom: 0; }

.tr-cat-rows { padding: 12px 16px 14px; display: grid; gap: 10px; }
.tr-cat-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; align-items: center; }
.tr-cat-name { font-size: 12.5px; }
.tr-cat-num { font-size: 12px; color: var(--muted); white-space: nowrap; }

.tr-cat {
  display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11.5px;
  border: 1px solid var(--line); color: var(--muted); background: #F7F9FB;
}
.tr-cat-new { color: #2F5FA8; border-color: #CFDDF5; background: #EDF2FB; }
.tr-cat-skill { color: #4C8B22; border-color: #D8E9C8; background: #F1F8EA; }
.tr-cat-manage { color: var(--navy); border-color: #D3DAE4; background: #EFF2F6; }
.tr-cat-comp { color: #B4651A; border-color: #F5DCC2; background: #FDF3E8; }
.tr-cat-culture { color: #6B5B8A; border-color: #DED8EA; background: #F5F2FA; }

.tr-track { height: 6px; border-radius: 999px; background: #EDF0F3; overflow: hidden; }
.tr-fill { height: 100%; background: var(--blue); border-radius: 999px; transition: width .3s; }
.tr-track.ok .tr-fill { background: var(--green); }

.tr-rules { padding: 10px 16px 14px 30px; display: grid; gap: 7px; font-size: 12.5px; color: #5A6B7B; }
.tr-rules li { line-height: 1.65; }
.tr-rules b { color: var(--navy-dark); }

.tr-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tr-input, .tr-select {
  height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px;
  font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
}
.tr-input { width: 240px; }
.tr-count { font-size: 12px; color: var(--muted); margin-left: 2px; }
.tr-new-btn { margin-left: auto; }

.tr-list { display: grid; gap: 12px; }
.tr-pcard { padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tr-pcard:hover { border-color: #C3CFDD; box-shadow: 0 2px 10px rgba(68,84,106,.06); }
.tr-pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.tr-pcard-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-pname { font-size: 15px; font-weight: 600; color: var(--navy-dark); }
.tr-pname-lg { font-size: 18px; }
.tr-pcard-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tr-pcard-right { text-align: right; flex: none; }
.tr-pcard-pct { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.tr-pcard-pl { font-size: 11px; color: var(--muted); }
.tr-pcard-foot {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px;
  font-size: 12px; color: var(--muted);
}
.tr-pcard-foot b { color: var(--navy-dark); font-weight: 600; }
.tr-pcard-go { margin-left: auto; color: var(--blue); }

.tr-pill {
  display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 11.5px;
  border: 1px solid var(--line); background: #F7F9FB; color: var(--muted); font-weight: 400;
}
.tr-st-planning { color: var(--muted); }
.tr-st-ongoing { color: #2F5FA8; border-color: #CFDDF5; background: #EDF2FB; }
.tr-st-finished { color: #4C8B22; border-color: #D8E9C8; background: #F1F8EA; }
.tr-st-cancelled, .tr-st-overdue { color: var(--red); border-color: #F0D2CE; background: #FCF0EE; }

.tr-ss-pending { color: var(--muted); }
.tr-ss-done { color: #4C8B22; border-color: #D8E9C8; background: #F1F8EA; }
.tr-ss-skipped { color: #9AA5B1; border-color: #E7EBEF; background: #F4F6F8; text-decoration: line-through; }

.tr-ms-training { color: #2F5FA8; border-color: #CFDDF5; background: #EDF2FB; }
.tr-ms-graduated { color: #4C8B22; border-color: #D8E9C8; background: #F1F8EA; }
.tr-ms-failed { color: #B4651A; border-color: #F5DCC2; background: #FDF3E8; }
.tr-ms-quit { color: var(--muted); }

.tr-form { padding: 0 0 14px; margin-bottom: 14px; }
.tr-form-grid { padding: 14px 16px 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tr-form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.tr-form-grid input, .tr-form-grid select, .tr-form-grid textarea {
  height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px;
  font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
}
.tr-form-grid textarea { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.trf-wide { grid-column: 1 / -1; }
.tr-form-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 0; }

.tr-head { padding: 16px; margin-bottom: 14px; }
.tr-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tr-head-ops { display: flex; gap: 8px; flex: none; }
.tr-nums {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.tr-nums > div { display: flex; flex-direction: column; gap: 2px; }
.tr-nums b { font-size: 17px; color: var(--navy); font-weight: 700; }
.tr-nums span { font-size: 11.5px; color: var(--muted); }
.tr-goal, .tr-note {
  margin-top: 12px; font-size: 12.5px; color: #5A6B7B; background: #FAFBFC;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; line-height: 1.7;
}
.tr-goal b { color: var(--navy-dark); margin-right: 8px; }

.tr-sec-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.tr-sec-n { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.tr-sec-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* label 当按钮用：文件选择框藏起来，点label等于点input */
.tr-file-btn { display: inline-flex; align-items: center; cursor: pointer; }

.tr-imp { padding: 14px 16px; margin-bottom: 12px; border-color: #C9DCF5; background: #F7FAFF; }
.tr-imp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tr-imp-head b { font-size: 13.5px; color: var(--navy-dark); }
.tr-imp-sub { margin-left: 10px; font-size: 12px; color: var(--muted); }
.tr-imp-note { font-size: 12px; color: #8A5A00; margin: 10px 0 8px; }
.tr-imp-ok { font-size: 12.5px; color: #2C7A4B; margin-top: 8px; }
.tr-imp-table { margin-top: 2px; }
.tr-imp-no { background: #FDECEA; color: #C0392B; }
.tr-imp-warn { background: #FFF6E5; color: #8A5A00; }

.tr-classes { display: grid; gap: 12px; }
.tr-ccard { padding: 14px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tr-ccard:hover { border-color: #C3CFDD; box-shadow: 0 2px 10px rgba(68,84,106,.06); }
.tr-ccard-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tr-ccard-title { font-size: 14.5px; font-weight: 600; color: var(--navy-dark); }
.tr-over { color: var(--red); font-size: 11.5px; }

.tr-sess-card { padding: 4px 0 0; overflow: hidden; margin-bottom: 14px; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tr-table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12px;
  padding: 10px 12px; background: #FAFBFC; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tr-table td { padding: 9px 12px; border-bottom: 1px solid #F0F3F6; vertical-align: middle; }
.tr-table tr:last-child td { border-bottom: none; }
.tr-table-wrap { overflow-x: auto; }
.tr-nowrap { white-space: nowrap; }
.tr-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tr-ops { white-space: nowrap; text-align: right; }
.tr-is-done td { background: #FBFDFA; }
.tr-res { font-size: 12px; color: #4C8B22; }
.tr-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.tr-empty-sm { padding: 12px 0; color: var(--muted); font-size: 12.5px; }

.tr-pick-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; }
.tr-pick-list {
  padding: 4px 16px 8px; max-height: 260px; overflow: auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px;
}
.tr-pick-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px;
  font-size: 12.5px; cursor: pointer;
}
.tr-pick-item:hover { background: #F7F9FB; }
.tr-pick-name { font-weight: 600; color: var(--navy-dark); }
.tr-pick-sub { color: var(--muted); font-size: 11.5px; }

/* ---------------- 老板端 · 经营罗盘（M8） ---------------- */

.bs-head { align-items: flex-start; }
.bs-monthbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bs-month {
  display: flex; align-items: center; gap: 2px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 2px;
}
.bs-mbtn {
  width: 28px; height: 28px; border: none; background: transparent; border-radius: 6px;
  color: var(--navy); font-size: 16px; line-height: 1; padding: 0;
}
.bs-mbtn:hover { background: #F1F5FA; }
.bs-mlabel {
  min-width: 92px; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--navy-dark); white-space: nowrap;
}
.bs-mhint { font-size: 12px; color: var(--muted); }

/* 结论条：老板先看这一句，再往下看明细 */
.bs-verdict {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); margin-bottom: 18px; font-size: 13.5px;
}
.bs-verdict.warn { border-left-color: var(--orange); background: #FFFCF4; }
.bs-verdict.bad { border-left-color: var(--red); background: #FFF9F8; }
.bs-verdict b { color: var(--navy-dark); }
.bs-vdot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.bs-verdict.warn .bs-vdot { background: var(--orange); }
.bs-verdict.bad .bs-vdot { background: var(--red); }

.bs-group { margin-bottom: 22px; }
.bs-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bs-gno {
  font-size: 12px; font-weight: 700; color: #AEB8C4; letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}
.bs-glabel { font-size: 15px; font-weight: 600; color: var(--navy-dark); }
.bs-gbadge { font-size: 11.5px; padding: 1px 8px; border-radius: 10px; line-height: 18px; }
.bs-gbadge.red { background: #FBEAE7; color: var(--red); }
.bs-gbadge.yellow { background: #FDF0E4; color: #B4701F; }
.bs-gbadge.ok { background: #EEF7E6; color: #4C8B22; }
.bs-gbadge.gray { background: #F1F3F6; color: var(--muted); }

.bs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bs-card {
  display: flex; flex-direction: column; min-height: 134px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid #DDE3EA;
  border-radius: var(--radius); padding: 13px 16px;
}
.bs-card.bs-lv-red { border-left-color: var(--red); }
.bs-card.bs-lv-yellow { border-left-color: var(--orange); }
.bs-card.bs-lv-green { border-left-color: var(--green); }

.bs-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bs-label { font-size: 12.5px; color: var(--muted); }
.bs-flag {
  flex: 0 0 auto; font-size: 10.5px; line-height: 16px; padding: 0 6px;
  border-radius: 8px; background: #E6EAEF; color: #6B7885;
}
.bs-lv-red .bs-flag { background: var(--red); color: #fff; }
.bs-lv-yellow .bs-flag { background: var(--orange); color: #fff; }
.bs-lv-green .bs-flag { background: #EAF4E1; color: #4C8B22; }

.bs-value {
  font-size: 26px; font-weight: 700; color: var(--navy-dark); line-height: 1.25;
  margin-top: 5px; letter-spacing: -.5px; font-variant-numeric: tabular-nums;
}
.bs-unit { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.bs-dash { color: #B9C2CC; }

/* 涨跌只标方向和幅度，不染色：离职率涨是坏事、入职涨不一定是好事，
   好坏由后端判定的 level 决定，别让箭头替口径说话 */
.bs-delta { font-size: 11.5px; color: #5F7080; margin-top: 1px; }
.bs-delta em { font-style: normal; color: #AEB8C4; margin-left: 4px; }
.bs-delta.flat { color: #AEB8C4; }

.bs-hint {
  font-size: 11.5px; color: #8B98A5; line-height: 1.55;
  margin-top: auto; padding-top: 8px;
}

.bs-pend-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bs-pend {
  background: #FAFBFC; border: 1px dashed #D6DDE5; border-radius: var(--radius);
  padding: 12px 14px;
}
.bs-pend-label { font-size: 13px; font-weight: 600; color: #5A6875; margin-bottom: 4px; }
.bs-pend-why { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

.bs-foot {
  display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap;
  padding: 14px 2px 0; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.bs-links a { color: var(--blue); }

.bs-error {
  background: #FFF9F8; border: 1px solid #F2D6D1; border-radius: var(--radius);
  padding: 14px 16px; font-size: 13px; color: var(--red);
  display: flex; align-items: center; gap: 12px;
}
.bs-retry {
  border: 1px solid #E3BDB7; background: #fff; color: var(--red);
  border-radius: 6px; padding: 3px 10px; font-size: 12px;
}

/* ------------------------------------------------------- 手续办理（M5 流程建设） */

.hv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hv-tools { display: flex; gap: 12px; align-items: center; }
.hv-field { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.hv-field select {
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px;
  font-size: 12.5px; color: var(--navy-dark); background: #fff;
}

.hv-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.hv-kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
}
.hv-kpi-label { font-size: 12px; color: var(--muted); }
.hv-kpi-value { font-size: 22px; font-weight: 600; color: var(--navy-dark); margin-top: 2px; }
.hv-kpi-hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.hv-unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.hv-kpi-warn { border-color: #F0D9A8; background: #FFFBF2; }
.hv-kpi-warn .hv-kpi-value { color: var(--orange, #C77700); }
.hv-kpi-bad { border-color: #F2D6D1; background: #FFF9F8; }
.hv-kpi-bad .hv-kpi-value { color: var(--red); }

.hv-card { margin-bottom: 16px; }
.hv-card .card-note { font-size: 11.5px; color: var(--muted); }

.hv-buckets {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.hv-bucket {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: #FCFCFD; cursor: pointer;
}
.hv-bucket:hover { border-color: var(--blue); }
.hv-bucket.hot { border-color: #F0D9A8; background: #FFFBF2; }
.hv-bucket.on { border-color: var(--blue); background: #F5F8FF; }
.hv-bucket-top { display: flex; justify-content: space-between; align-items: baseline; }
.hv-bucket-label { font-size: 12px; color: var(--muted); }
.hv-bucket-num { font-size: 16px; font-weight: 600; color: var(--navy-dark); }
.hv-bucket-track { height: 4px; background: #EEF1F5; border-radius: 2px; margin-top: 6px; }
.hv-bucket-fill { height: 4px; border-radius: 2px; background: var(--blue); }
.hv-bucket.hot .hv-bucket-fill { background: var(--orange, #E8A33D); }

.hv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.hv-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 12.5px; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.hv-tab.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.hv-tab.hot { border-color: #E3BDB7; color: var(--red); }
.hv-tab.hot.active { background: var(--red); border-color: var(--red); color: #fff; }
.hv-tab-n {
  font-size: 11px; background: #EEF1F5; color: var(--muted);
  border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center;
}
.hv-tab.active .hv-tab-n { background: rgba(255, 255, 255, .28); color: #fff; }

.hv-table-wrap { overflow-x: auto; }
.hv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 720px; }
.hv-table th {
  text-align: left; font-weight: 600; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: #FAFBFC;
}
.hv-table td {
  padding: 8px 10px; border-bottom: 1px solid #F2F4F7; white-space: nowrap;
  color: var(--navy-dark);
}
.hv-table tbody tr:hover { background: #FAFBFC; }

.hv-dash { color: var(--muted); }
.hv-days { color: var(--navy-dark); }
.hv-days.overdue { color: var(--red); font-weight: 600; }
.hv-days.urgent { color: var(--orange, #C77700); font-weight: 600; }
.hv-pill {
  display: inline-block; border-radius: 4px; padding: 1px 6px;
  font-size: 11px; border: 1px solid transparent;
}
.hv-pill.overdue { background: #FDECEA; color: var(--red); border-color: #F2D6D1; }
.hv-pill.urgent { background: #FFF3E0; color: #C77700; border-color: #F0D9A8; }
.hv-pill.soon { background: #F5F8FF; color: var(--blue); border-color: #D6E0F5; }

.hv-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.hv-more { padding: 8px 2px; font-size: 11.5px; color: var(--muted); }

.hv-notes .hv-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.hv-notes .hv-list li { margin-bottom: 4px; }
.hv-pending { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.hv-pending-title { font-size: 12.5px; font-weight: 600; color: var(--navy-dark); margin-bottom: 4px; }

/* 「转正日未录」提示：不是红色告警（那会像出了事故），也不是安静无事，
   用中性偏黄的一条把「算不出来」讲清楚 */
.hv-notice {
  background: #FFFDF5; border: 1px solid #F0E3C0; border-left: 3px solid #E0B457;
  border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 0;
  font-size: 12.5px; line-height: 1.7; color: #6B5527;
}
.hv-notice b { color: #8A6512; font-weight: 600; }
/* 历史未录那档是"待核实"，不是告警，用中性灰别用警示黄，
   否则 2000 多人的一条说明看着比真逾期还刺眼 */
.hv-notice-quiet {
  background: #FAFAFA; border-color: #E6E6E6; border-left-color: #BFBFBF; color: #5A5A5A;
}
.hv-notice-quiet b { color: #333; }
.hv-src { color: var(--text-2); font-size: 12px; }

.hv-error {
  background: #FFF9F8; border: 1px solid #F2D6D1; border-radius: var(--radius);
  padding: 14px 16px; font-size: 13px; color: var(--red);
  display: flex; align-items: center; gap: 12px;
}
.hv-retry {
  border: 1px solid #E3BDB7; background: #fff; color: var(--red);
  border-radius: 6px; padding: 3px 10px; font-size: 12px;
}
.hv-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.hv-links a { color: var(--blue); }

/* 员工自助 · 我的资格 */
.me-qual-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 16px;
}
.me-qual-lv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.me-qual-k { color: var(--muted); font-size: 12.5px; }
.me-qual-lv b { font-size: 26px; color: var(--navy-dark); }
.me-qual-next { color: var(--muted); font-size: 12.5px; }
.me-qual-sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.me-qual-t {
  font-size: 13.5px; font-weight: 600; color: var(--navy-dark);
  margin: 16px 0 8px;
}
.me-qual-note {
  margin-top: 16px; color: var(--muted); font-size: 12px;
  border-top: 1px solid var(--line); padding-top: 10px;
}

/* --- 任职资格（M9） --- */
.q-wrap { padding: 4px 0 24px; }
.q-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.q-title { margin: 0; font-size: 19px; font-weight: 600; color: var(--navy-dark); }
.q-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.q-head-act { display: flex; gap: 8px; }

.q-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.q-tab {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 6px; padding: 5px 14px; font-size: 13px; cursor: pointer;
}
.q-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.q-btn {
  border: 1px solid var(--line); background: #fff; color: #46536B;
  border-radius: 8px; padding: 5px 13px; font-size: 13px; cursor: pointer;
  font-weight: 500; transition: all .13s;
}
.q-btn:hover { border-color: #B9C8F2; color: var(--indigo-deep); background: #F7F9FF; }
.q-btn-pri { background: var(--indigo); color: #fff; border-color: var(--indigo); box-shadow: 0 2px 6px rgba(76, 110, 245, .26); }
.q-btn-pri:hover { background: var(--indigo-deep); color: #fff; border-color: var(--indigo-deep); }
.q-btn.q-mini { padding: 3px 8px; font-size: 12px; }
.q-btn.q-danger { color: var(--red); border-color: #E3BDB7; }
.q-right { float: right; }

.q-input {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
  font-size: 13px; min-width: 150px;
}
.q-input.q-num { min-width: 72px; }
select.q-input, .q-toolbar select {
  border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
  font-size: 13px; background: #fff; color: var(--navy);
}
.q-note { color: var(--muted); font-size: 12px; margin-left: 8px; }
.q-dash { color: var(--muted); }
.q-dim { color: var(--muted); font-size: 12px; }
.q-unit { color: var(--muted); font-size: 12px; margin-left: 2px; }
.q-err {
  background: #FDECEA; border: 1px solid #E3BDB7; color: var(--red);
  border-radius: 6px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px;
}
.q-empty { color: var(--muted); font-size: 13px; padding: 14px 0; }
.q-ok { color: #2F7A2F; font-size: 12px; }
.q-del { color: var(--red); font-size: 12px; cursor: pointer; margin-left: 6px; }
.q-check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--navy); }

.q-pill {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-size: 11.5px; background: #EEF1F6; color: var(--navy); margin-left: 5px;
}
.q-pill.ok { background: #E4F2E4; color: #2F7A2F; }
.q-pill.no { background: #FDECEA; color: var(--red); }
.q-pill.warn { background: #FFF4E0; color: #A56A00; }
.q-pill.off { background: #F0F0F0; color: #7A7A7A; }
.q-pill.cat { background: #E8EDF7; color: var(--blue); }

.q-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.q-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
}
.q-card-label { color: var(--muted); font-size: 12px; }
.q-card-value { font-size: 21px; font-weight: 600; color: var(--navy-dark); margin: 3px 0 2px; }
.q-card-hint { color: var(--muted); font-size: 11.5px; }

.q-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.q-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.q-panel-t { font-size: 13.5px; font-weight: 600; color: var(--navy-dark); margin-bottom: 9px; }

.q-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.q-table th {
  text-align: left; color: var(--muted); font-weight: 500; font-size: 12px;
  padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line);
}
.q-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid #F0F2F5; color: var(--navy); vertical-align: top; }
.q-w60 { width: 60px; } .q-w70 { width: 70px; } .q-w80 { width: 80px; }
.q-w90 { width: 90px; } .q-w100 { width: 100px; } .q-w110 { width: 110px; }
.q-w120 { width: 120px; } .q-w140 { width: 140px; } .q-w160 { width: 160px; }
.q-w180 { width: 180px; }
.q-dims { color: var(--muted); font-size: 11.5px; }

.q-bar { background: #EEF1F6; border-radius: 3px; height: 7px; overflow: hidden; }
.q-bar-in { background: var(--blue); height: 100%; }

/* 认证待录：发起认证后在这里录成绩/观察，录完自动进审批 */
.q-pending { margin-bottom: 12px; border-color: #C9DCF5; background: #F7FAFF; }
.q-pending-n { font-weight: 700; color: var(--navy-dark); font-size: 14px; }
.q-nowrap { white-space: nowrap; }
.q-ops { white-space: nowrap; }
.q-ops .q-btn + .q-btn { margin-left: 6px; }
.q-inline { margin-left: 10px; }
.q-fill-form { margin-top: 12px; border-top: 1px dashed #CFDCEC; padding-top: 12px; }

.q-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

.q-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q-tpl { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.q-tpl.off { opacity: .62; }
.q-tpl-h { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.q-tpl-name { font-weight: 600; color: var(--navy-dark); cursor: pointer; font-size: 14px; }
.q-tpl-name:hover { color: var(--blue); }
.q-tpl-meta { color: var(--muted); font-size: 12px; margin-top: 6px; }

.q-back { color: var(--blue); font-size: 13px; cursor: pointer; margin-bottom: 10px; }
.q-detail-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.q-detail-h h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy-dark); }
.q-mod { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.q-mod-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.q-mod-name { font-weight: 600; color: var(--navy-dark); }
.q-mod-type { color: var(--muted); font-size: 12px; }
.q-pre { font-size: 13px; color: var(--navy); padding: 5px 0; border-bottom: 1px dashed var(--line); }

.q-form { background: #FAFBFD; border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; margin-bottom: 14px; }
.q-form-t { font-size: 13.5px; font-weight: 600; color: var(--navy-dark); margin-bottom: 10px; }
.q-form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.q-form-row label { width: 78px; color: var(--muted); font-size: 13px; flex: none; }
.q-dim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.q-dim-row { display: flex; align-items: center; gap: 6px; }
.q-dim-row label { width: 118px; font-size: 12px; color: var(--navy); flex: none; }

.q-pick-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 8px 0; }
.q-pick {
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px;
  cursor: pointer; background: #fff;
}
.q-pick:hover, .q-pick.on { border-color: var(--blue); background: #F2F6FD; }
.q-pick-name { font-weight: 600; color: var(--navy-dark); font-size: 13px; }
.q-pick-sub { color: var(--muted); font-size: 11.5px; }
.q-picked { font-size: 12.5px; color: var(--green, #2F7A2F); margin-bottom: 8px; }

.q-gates { display: flex; gap: 4px; }
.q-gate { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #F0F0F0; color: #7A7A7A; }
.q-gate.ok { background: #E4F2E4; color: #2F7A2F; }
.q-gate.no { background: #FDECEA; color: var(--red); }
.q-gate-why { color: var(--red); font-size: 11px; margin-top: 3px; }

.q-grid-table td { text-align: center; }
.q-grid-table td.q-cell-on { background: #E8EDF7; font-weight: 600; color: var(--navy-dark); }
.q-grid-table th { text-align: center; }

.q-foot { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.q-foot-t { font-size: 12.5px; font-weight: 600; color: var(--navy-dark); margin-bottom: 6px; }
.q-foot-t.q-warn-t { color: #A56A00; margin-top: 10px; }
.q-foot-i { color: var(--muted); font-size: 12px; line-height: 1.9; }
.q-foot-i.q-warn { color: #A56A00; }

@media (max-width: 1180px) {
  .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-pend-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hv-buckets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-dim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ---------------------------------------------------- 手续办理：单人办理弹窗 */
.hv-op { text-align: right; white-space: nowrap; }
.hv-op .tr-btn { padding: 3px 10px; font-size: 12px; }

/* 固定高度：头尾不动、中间滚。原来整张卡一起滚，
   滚到"办理离职"那一块才看见保存按钮，容易以为页面没保存入口。 */
.hv-detail {
  width: 720px; max-width: calc(100vw - 48px); max-height: 88vh;
  overflow: hidden; display: flex; flex-direction: column;
}
.hv-detail .ob-modal-head { flex: 0 0 auto; }
/* min-height:0 不能省：flex 子项默认 min-height:auto 会按内容撑开，
   结果把底部的保存栏顶出可视区，被 overflow:hidden 裁掉——按钮明明在 DOM 里却看不见。 */
.hv-detail .ob-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.hv-detail-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-top: 1px solid var(--line);
  background: #fff; border-radius: 0 0 12px 12px;
}
.hv-detail-tip { margin-right: auto; font-size: 11.5px; color: var(--muted); }
.hv-detail-sub {
  font-size: 12px; font-weight: 400; color: var(--muted);
  margin-left: 10px; white-space: nowrap;
}
.hv-detail-meta { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.7; }

.hv-warn-box {
  background: #FFFBF2; border: 1px solid #F0D9A8; border-radius: 6px;
  padding: 10px 12px; font-size: 12.5px; color: #8A5A00;
  line-height: 1.8; margin-bottom: 14px;
}

.hv-form-block {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 12px; background: #fff;
}
.hv-danger-block { border-color: #F0D2CE; background: #FFFDFD; }
.hv-form-title {
  font-size: 13px; font-weight: 700; color: var(--navy-dark);
  margin-bottom: 10px;
}
.hv-form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px; margin-bottom: 10px;
}
.hv-form-grid label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.hv-form-grid label input,
.hv-form-grid label select {
  flex: 1; min-width: 0; height: 32px; padding: 0 8px;
  border: 1px solid #DDE3EA; border-radius: 5px;
  font-size: 13px; color: var(--text); background: #fff;
}
.hv-form-note {
  font-size: 11.5px; color: var(--muted); line-height: 1.7;
  margin-bottom: 10px;
}
/* ============================================================
   评估标准 · 四模块（M11 岗位画像库）
   ============================================================ */
.rjp-subtabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.rjp-subtab {
  height: 32px; padding: 0 14px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.rjp-subtab:hover { border-color: #B9CBEA; color: var(--blue); }
.rjp-subtab.on {
  background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600;
}
.rjp-subtab i {
  font-style: normal; margin-left: 6px; padding: 0 5px;
  border-radius: 8px; background: var(--blue-soft); color: var(--blue);
  font-size: 11px;
}
.rjp-subtab.on i { background: rgba(255, 255, 255, .22); color: #fff; }

.rjp-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: #FAFBFC;
}
.rjp-toolbar .rj-dim { margin-left: auto; font-size: 12px; }

.rjp-table { min-width: 1000px; }
.rjp-row { cursor: pointer; }
.rjp-row:hover td { background: #F7F9FC; }
.rjp-row.on td { background: var(--blue-soft); }
.rjp-ops { white-space: nowrap; }
.rjp-ops .tr-btn { margin-right: 4px; }

.rjp-tag {
  display: inline-block; margin-left: 6px; padding: 0 6px;
  border-radius: 3px; font-size: 11px; line-height: 17px; vertical-align: 1px;
}
.rjp-tag-def { background: var(--blue-soft); color: var(--blue); }
.rjp-tag-off { background: #F1F3F5; color: var(--muted); }

.rjp-fam {
  display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 11.5px;
}
.rjp-fam-manage { background: #EEF2F8; color: var(--navy); }
.rjp-fam-pro { background: #EDF2FB; color: var(--blue); }
.rjp-fam-front { background: #F1F8EC; color: #4E8C2C; }

.rjp-detail td { background: #FBFCFD; }
.rjp-detail-body { padding: 12px 4px 16px; }
.rjp-detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px; margin-top: 12px; align-items: start;
}
.rjp-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--navy-dark);
  margin: 14px 0 7px; padding-left: 8px; border-left: 3px solid var(--blue);
}
.rjp-h:first-child { margin-top: 0; }
.rjp-h .tr-btn { margin-left: auto; font-weight: 400; }

/* 画像编辑器 */
.rjp-modal { width: 940px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); }
.rjp-form { padding: 14px 18px 18px; overflow-y: auto; }
.rjp-form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.rjp-form-grid label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; color: var(--muted);
}
.rjp-form-grid label.span2 { grid-column: 1 / -1; }
.rjp-form-grid input,
.rjp-form-grid select {
  height: 33px; padding: 0 9px; border: 1px solid #DDE3EA; border-radius: 5px;
  font-size: 13px; color: var(--text); background: #fff;
}
.rjp-form-grid label.rjp-check {
  flex-direction: row; align-items: center; gap: 8px;
}
.rjp-form-grid label.rjp-check input { width: 16px; height: 16px; }

.rjp-dims { min-width: 800px; }
.rjp-dims input, .rjp-dims select {
  width: 100%; height: 30px; padding: 0 7px;
  border: 1px solid #DDE3EA; border-radius: 4px; font-size: 12.5px;
}
.rjp-veto-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 8px; margin-bottom: 8px;
}
.rjp-veto-row input {
  height: 32px; padding: 0 9px; border: 1px solid #DDE3EA; border-radius: 5px;
  font-size: 12.5px;
}
.rjp-form-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.rjp-form-foot .rj-dim { margin-left: auto; font-size: 12px; }
.rjp-save { width: auto; height: 36px; padding: 0 26px; }

/* 匹配自测 */
.rjp-testbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.rjp-testbar .search-input { max-width: 300px; }
.rjp-test-ok, .rjp-test-miss {
  padding: 11px 14px; margin: 12px 16px; border-radius: 6px;
  font-size: 13px; line-height: 1.8;
}
.rjp-test-ok { background: #F1F8EC; border: 1px solid #D6EBC6; }
.rjp-test-miss { background: #FDF3EC; border: 1px solid #F6DCC7; }
.rjp-rev-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13px;
}
.rjp-rev-row:first-child { border-top: 0; }
.rjp-rev-row .rj-dim { margin-left: auto; }

/* 候选人评估页「本次用哪把尺」提示条 */
.rj-pfbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 9px 12px; margin-bottom: 12px; border-radius: 6px;
  background: #F5F8FE; border: 1px solid #DCE6F8;
  font-size: 12.5px; color: var(--text);
}
.rj-pfbar.warn { background: #FDF3EC; border-color: #F6DCC7; }
.rj-pf-name b { color: var(--navy-dark); }
.rj-pf-name i { font-style: normal; color: var(--muted); }
.rj-pf-tag {
  padding: 0 7px; border-radius: 3px; font-size: 11.5px; line-height: 18px;
}
.rj-pf-tag.ok { background: #EDF7E6; color: #4E8C2C; }
.rj-pf-tag.warn { background: #FBE7D8; color: #B4652A; }
.rj-pf-hint { color: var(--muted); font-size: 11.5px; }
.rj-eval-pf {
  margin: 8px 0 4px; padding: 6px 10px; border-radius: 5px;
  background: #F7F9FC; font-size: 12px; color: var(--muted);
}
.rj-eval-pf b { color: var(--text); }
.rj-eval-pf i { font-style: normal; }

/* ============================================================
   编制管理（M12）
   ============================================================ */
.hc-kpis {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.hc-kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 13px; min-height: 84px;
}
.hc-kpi-label { font-size: 12px; color: var(--muted); }
.hc-kpi-value {
  font-size: 24px; font-weight: 600; color: var(--navy-dark);
  line-height: 1.35; margin: 2px 0;
}
.hc-kpi-value i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 3px; }
.hc-kpi-hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.hc-kpi.bad { border-color: #F0C9C3; background: #FDF6F5; }
.hc-kpi.bad .hc-kpi-value { color: var(--red); }
.hc-kpi.warn { border-color: #F3DCC8; background: #FEFAF6; }
.hc-kpi.warn .hc-kpi-value { color: var(--orange); }

/* ---- M12.1 花名册比对 ---- */
button.hc-kpi.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.hc-resolved td { opacity: .55; }
.hc-badge.over { background: #FDF0EF; color: #B03232; }

.hc-note {
  background: #FDF8F2; border: 1px solid #F3E2CD; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 12px; font-size: 12.5px; color: #8A5A28;
}
.hc-note ul { margin: 0; padding-left: 18px; }
.hc-note li { line-height: 1.85; }
.hc-note b { color: #77461A; }

.hc-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.hc-subtabs { margin-bottom: 0; }
.hc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.hc-field { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.hc-field select {
  height: 32px; padding: 0 8px; border: 1px solid #DDE3EA; border-radius: 5px;
  font-size: 13px; background: #fff;
}
.hc-sel {
  height: 32px; padding: 0 8px; border: 1px solid #DDE3EA; border-radius: 5px;
  font-size: 12.5px; background: #fff; color: var(--text);
}
.hc-search { max-width: 240px; height: 32px; }
.hc-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.hc-check input { width: 15px; height: 15px; }

.hc-table { min-width: 900px; }
.hc-row.over > td:first-child { box-shadow: inset 3px 0 0 #E6A6A0; }
.hc-ind { display: inline-block; }
.hc-name { font-weight: 500; }
.hc-name.alert { color: var(--red); font-weight: 600; }
.hc-type {
  display: inline-block; margin-left: 6px; padding: 0 5px;
  border-radius: 3px; background: #F1F3F5; color: var(--muted);
  font-size: 11px; line-height: 16px; vertical-align: 1px;
}
.hc-hint {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px;
  background: #FBE7D8; color: #B4652A; font-size: 11px; line-height: 16px;
  vertical-align: 1px;
}
.hc-dash { color: #B7BFC8; }
.hc-zero { color: var(--muted); }
.hc-over { color: var(--red); }
.hc-under { color: var(--blue); }
.hc-quiet { color: var(--muted); font-size: 11.5px; }

.hc-badge {
  display: inline-block; padding: 1px 8px; border-radius: 9px;
  font-size: 11.5px; white-space: nowrap;
}
.hc-badge.over { background: #FBEAE7; color: var(--red); }
.hc-badge.soft-over { background: #FDF1E7; color: var(--orange); }
.hc-badge.full { background: #EDF7E6; color: #4E8C2C; }
.hc-badge.under { background: #EDF2FB; color: var(--blue); }
.hc-badge.none { background: #F1F3F5; color: var(--muted); }

.hc-ops { white-space: nowrap; }
.hc-ops .tr-btn { margin-right: 4px; }
.hc-op-over { color: var(--red); border-color: #EBC7C2; }
.hc-op-under { color: var(--blue); border-color: #C9D8F2; }

.hc-exp > td { background: #FBFCFD; padding: 0 !important; }
.hc-detail-body { padding: 12px 16px 14px; }
.hc-detail-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 9px;
}
.hc-detail-head b { color: var(--navy-dark); }
.hc-detail-head .tr-btn { margin-left: auto; }
.hc-detail { margin-top: 14px; }
.hc-detail-note {
  padding: 9px 16px 12px; font-size: 11.5px; color: var(--muted); line-height: 1.75;
  border-top: 1px solid var(--line);
}

/* 导入弹窗 */
.hc-modal { width: 720px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); }
.hc-modal-body { padding: 14px 18px 18px; overflow-y: auto; }
.hc-form-row {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 11px;
}
.hc-form-row label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; color: var(--muted); flex: 1 1 220px;
}
.hc-form-row input, .hc-form-row select {
  height: 33px; padding: 0 9px; border: 1px solid #DDE3EA; border-radius: 5px;
  font-size: 13px; background: #fff;
}
.hc-file-label input { height: auto; padding: 6px 0; border: 0; }
.hc-note-quiet {
  font-size: 11.5px; color: var(--muted); line-height: 1.8;
  background: #F7F9FC; border-radius: 6px; padding: 9px 12px; margin-bottom: 12px;
}
.hc-report { border-top: 1px solid var(--line); padding-top: 12px; }
.hc-report-title { font-size: 13px; font-weight: 600; color: var(--navy-dark); margin-bottom: 9px; }
.hc-report-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-bottom: 10px;
}
.hc-report-grid div {
  background: #F7F9FC; border-radius: 6px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.hc-report-grid span { font-size: 11.5px; color: var(--muted); }
.hc-report-grid b { font-size: 17px; color: var(--navy-dark); }
.hc-report-grid b i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.hc-report-line { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.hc-report-warn {
  background: #FDF3EC; border: 1px solid #F6DCC7; border-radius: 6px;
  padding: 9px 12px; margin-bottom: 9px; font-size: 12px; line-height: 1.75;
}
.hc-report-warn b { display: block; color: #B4652A; margin-bottom: 2px; }
.hc-report-warn .hc-quiet { display: block; margin-top: 3px; }

/* 绑定弹窗 */
.hc-bind-modal { width: 620px; max-width: calc(100vw - 40px); }
.hc-bind-sum {
  font-size: 12.5px; line-height: 1.8; margin-bottom: 10px;
  background: #F7F9FC; border-radius: 6px; padding: 9px 12px;
}
.hc-bind-search { width: 100%; height: 34px; margin-bottom: 8px; }
.hc-bind-list {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 6px;
}
.hc-bind-item {
  padding: 8px 12px; font-size: 13px; cursor: pointer;
  border-bottom: 1px solid #F0F2F5;
}
.hc-bind-item:last-child { border-bottom: 0; }
.hc-bind-item:hover { background: #F7F9FC; }
.hc-bind-item.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

/* ============================================================
   调动流程（M13）
   ============================================================ */
.hv-modes { display: flex; gap: 6px; }
.hv-mode {
  height: 32px; padding: 0 16px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.hv-mode:hover { border-color: #B9CBEA; color: var(--blue); }
.hv-mode.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }

.tf-table { min-width: 940px; }
.tf-row { cursor: pointer; }
.tf-row:hover td { background: #F7F9FC; }
.tf-org { font-size: 12.5px; line-height: 1.6; color: var(--text); }
.tf-org.to { color: var(--blue); }
.tf-node { font-size: 12.5px; }
.tf-need { font-size: 11px; color: var(--red); margin-top: 2px; }
.tf-badge {
  display: inline-block; padding: 1px 8px; border-radius: 9px;
  font-size: 11.5px; white-space: nowrap;
}
.tf-badge.sm { padding: 0 6px; font-size: 11px; }
.tf-badge.running { background: #FDF1E7; color: var(--orange); }
.tf-badge.done { background: #EDF7E6; color: #4E8C2C; }
.tf-badge.rejected { background: #FBEAE7; color: var(--red); }
.tf-badge.cancelled { background: #F1F3F5; color: var(--muted); }
.tf-badge.pending { background: #F1F3F5; color: var(--muted); }
.tf-badge.approved { background: #EDF7E6; color: #4E8C2C; }
.tf-badge.skipped { background: #F1F3F5; color: var(--muted); }

/* 发起表单 */
.tf-form { display: flex; flex-direction: column; gap: 12px; }
.tf-form-row { display: flex; align-items: flex-start; gap: 12px; }
.tf-lbl {
  flex: 0 0 84px; font-size: 12.5px; color: var(--muted);
  line-height: 34px; text-align: right;
}
.tf-form-row > div, .tf-form-row > input, .tf-form-row > select { flex: 1 1 auto; min-width: 0; }
.tf-form-row input, .tf-form-row select {
  height: 34px; padding: 0 10px; border: 1px solid #DDE3EA; border-radius: 5px;
  font-size: 13px; background: #fff; width: 100%;
}
.tf-org-sel, .tf-type-sel { max-width: 420px; }
.tf-emp-pick { position: relative; }
.tf-emp-on {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 7px; padding: 8px 12px; border-radius: 6px;
  background: var(--blue-soft); font-size: 13px;
}
.tf-emp-list {
  margin-top: 7px; border: 1px solid var(--line); border-radius: 6px;
  max-height: 240px; overflow-y: auto;
}
.tf-emp-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 12px; font-size: 13px; cursor: pointer;
  border-bottom: 1px solid #F0F2F5;
}
.tf-emp-item:last-child { border-bottom: 0; }
.tf-emp-item:hover { background: #F7F9FC; }
.tf-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.tf-sug {
  margin-top: 7px; padding: 8px 12px; border-radius: 6px;
  background: #F7F9FC; font-size: 12.5px; line-height: 1.8;
}
.tf-chain {
  margin-top: 8px; padding: 10px 12px; border-radius: 6px;
  background: #FAFBFC; border: 1px dashed #DDE3EA;
}
.tf-chain-t { font-size: 12px; color: var(--muted); margin-bottom: 6px; line-height: 1.7; }
.tf-chain-nodes { display: flex; flex-wrap: wrap; gap: 2px; font-size: 12.5px; }
.tf-chain-node { white-space: nowrap; }
.tf-chain-node i { font-style: normal; color: #B7BFC8; margin: 0 5px; }
.tf-cc {
  display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 3px;
  background: #F1F3F5; color: var(--muted); font-size: 10.5px; line-height: 15px;
}
.tf-form-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.tf-form-foot .rj-dim { margin-left: auto; font-size: 12px; }
.tf-submit { width: auto; height: 36px; padding: 0 26px; }
.tf-role-form { border-top: 1px solid var(--line); padding-top: 14px; }

/* 单据详情 */
.tf-modal { width: 880px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); }
.tf-modal-body { padding: 14px 20px 20px; overflow-y: auto; }
.tf-sum {
  background: #F7F9FC; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
}
.tf-sum-main { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.tf-sum-org {
  display: flex; align-items: center; gap: 10px; margin: 7px 0;
  font-size: 13px; color: var(--text);
}
.tf-sum-org i { font-style: normal; color: var(--blue); }
.tf-sum-org .to { color: var(--blue); font-weight: 600; }
.tf-sum .rj-meta { margin-top: 6px; }
.tf-reason { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.tf-alert {
  background: #FBEAE7; border: 1px solid #EBC7C2; border-radius: 6px;
  padding: 10px 13px; margin-bottom: 12px; font-size: 12.5px; line-height: 1.8;
}
.tf-alert b { color: var(--red); }
.tf-alert span { display: block; color: var(--muted); }

.tf-steps { display: flex; flex-direction: column; }
.tf-step {
  display: flex; gap: 12px; padding: 9px 0;
  border-left: 2px solid var(--line); margin-left: 13px; padding-left: 18px;
  position: relative;
}
.tf-step-dot {
  position: absolute; left: -13px; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 1px solid #DDE3EA; color: var(--muted);
  font-size: 11px; line-height: 22px; text-align: center;
}
.tf-step.cur { border-left-color: var(--orange); }
.tf-step.cur .tf-step-dot { border-color: var(--orange); color: var(--orange); font-weight: 600; }
.tf-step.approved .tf-step-dot { border-color: #A8D48B; color: #4E8C2C; }
.tf-step.rejected .tf-step-dot { border-color: #E6A6A0; color: var(--red); }
.tf-step.cc { opacity: .8; }
.tf-step-main { flex: 1; min-width: 0; }
.tf-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.tf-step-op {
  margin-top: 4px; font-size: 12.5px; color: var(--text);
  background: #FBFCFD; border-radius: 5px; padding: 6px 10px;
}
.tf-act { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tf-opinion {
  width: 100%; height: 34px; padding: 0 10px; margin-bottom: 10px;
  border: 1px solid #DDE3EA; border-radius: 5px; font-size: 13px;
}
.tf-act-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tf-ok { width: auto; height: 34px; padding: 0 22px; }
.tf-no { width: auto; height: 34px; padding: 0 18px; }
.tf-done {
  margin-top: 12px; padding: 10px 13px; border-radius: 6px;
  background: #F7F9FC; font-size: 12.5px; color: var(--muted);
}

/* ================= 劳动关系（M14 · 20261105 版式重设计） ================= */

/* ---- 筛选工具条：卡片内顶部工具区 ---- */
.lb-filter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.lb-filter input[type="text"], .lb-filter input:not([type]) {
  flex: 1 1 220px; min-width: 180px; height: 34px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0 11px; font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.lb-filter input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12); }
.lb-filter select {
  width: auto; min-width: 110px; height: 34px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0 8px; font-size: 13px; font-family: inherit; color: var(--text);
  background: #fff; outline: none; cursor: pointer;
}
.lb-filter select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12); }
.lb-filter .tr-btn { flex-shrink: 0; }
.lb-chk {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #5A6478; white-space: nowrap;
  background: #F6F8FC; border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 6px 11px; cursor: pointer; user-select: none;
}
.lb-chk input { accent-color: var(--indigo); cursor: pointer; }

/* ---- 表格 ---- */
.lb-table td { vertical-align: top; }
.lb-desc { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }

/* ---- 状态徽章：胶囊 + 状态点，一眼读出阶段 ---- */
.lb-st {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2.5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  white-space: nowrap; line-height: 1.5;
}
.lb-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.lb-st-new { background: #EDF1FE; color: #3E63DD; }
.lb-st-doing { background: var(--orange-soft); color: #C4661A; }
.lb-st-wait { background: #F1EFFB; color: #6748D8; }
.lb-st-done { background: var(--green-soft); color: #238551; }
.lb-st-arch { background: #F0F2F6; color: #8A93A5; }
.lb-st-arch::before { opacity: .5; }

.lb-urgent { background: #FFF9F8; box-shadow: inset 3px 0 0 #E8590C; }
.lb-urgent-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--red-soft); color: #C22F4A;
  font-size: 11px; font-weight: 600; padding: 1.5px 8px; border-radius: 999px; margin-left: 4px;
}
.lb-urgent-tag::before { content: '⚠'; font-size: 10px; }

/* ---- KPI 卡：统计卡统一气质 ---- */
.lb-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.lb-kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 14px 16px;
  position: relative; overflow: hidden;
}
.lb-kpi::after {
  content: ''; position: absolute; right: -18px; top: -18px;
  width: 62px; height: 62px; border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 110, 245, .08), transparent 70%);
  pointer-events: none;
}
.lb-kpi-n {
  font-size: 22px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.3; letter-spacing: -.3px;
}
.lb-kpi-n.c-red { color: #C22F4A; }
.lb-kpi-l { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---- 弹窗尺寸 ---- */
.lb-modal { width: min(640px, 94vw); }
.lb-modal-lg { width: min(860px, 96vw); }
.lb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lb-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.lb-form-actions { display: flex; gap: 10px; margin-top: 8px; }
.lb-form-actions .btn-line, .lb-form-actions .btn-primary { width: auto; height: 36px; padding: 0 20px; margin-top: 0; }

/* ---- 花名册选人下拉 ---- */
.lb-pick { position: relative; z-index: 5; }
.lb-pick-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid var(--line); border-top: none; background: #fff;
  cursor: pointer; font-size: 12.5px; transition: background .1s;
}
.lb-pick-item:first-child { border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.lb-pick-item:last-child { border-radius: 0 0 10px 10px; }
.lb-pick-item:only-child { border-radius: 10px; }
.lb-pick-item:hover { background: #F5F8FF; }
.lb-pick-item b { min-width: 4em; color: var(--ink); }
.lb-pick-item span { color: var(--muted); font-size: 12px; }
.lb-pick-none {
  padding: 9px 12px; font-size: 12px; color: var(--muted); background: #FAFBFD;
  border: 1px dashed var(--line); border-radius: 10px;
}
.lb-picked {
  margin: 2px 0 12px; font-size: 12.5px; color: #3E63DD;
  background: var(--indigo-soft); border-radius: 8px; padding: 6px 11px;
  display: inline-flex; align-items: center; gap: 8px;
}
.lb-picked b { font-weight: 600; }
.lb-picked.hide { display: none; }
.lb-picked:empty { display: none; }
.lb-picked .tr-btn { height: 24px; padding: 1px 9px; font-size: 11.5px; }

/* ---- 单据信息表：去掉满格边框，改为账目式行 ---- */
.lb-info { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 14px; }
.lb-info th {
  width: 92px; text-align: left; color: var(--muted); font-weight: 500;
  padding: 8px 12px 8px 0; vertical-align: top; white-space: nowrap;
  border-bottom: 1px solid #F1F3F8;
}
.lb-info td {
  padding: 8px 10px; border-bottom: 1px solid #F1F3F8;
  color: var(--text); line-height: 1.6;
}
.lb-info tr:last-child th, .lb-info tr:last-child td { border-bottom: none; }

/* ---- 详情弹窗内的动作条 / 小节标题 ---- */
.lb-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; margin: 4px 0 8px;
  background: #F7F9FE; border: 1px solid #E4EAF8; border-radius: 10px;
}
.lb-actions .lb-sub { display: inline; margin-right: 2px; }
.lb-sec {
  font-weight: 700; font-size: 13px; margin: 18px 0 8px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.lb-sec::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, #4C6EF5, #6A5CF0);
}

/* ---- 处置步骤：编号圆点时间线 ---- */
.lb-steps { margin: 0 0 10px; padding: 0; font-size: 13px; line-height: 1.7; list-style: none; counter-reset: lbstep; }
.lb-steps li {
  counter-increment: lbstep;
  position: relative; padding: 5px 0 5px 34px;
}
.lb-steps li::before {
  content: counter(lbstep);
  position: absolute; left: 0; top: 7px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--indigo-soft); color: var(--indigo-deep);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lb-steps.lb-risk li { color: #B03A3A; }
.lb-steps.lb-risk li::before { background: var(--red-soft); color: #C22F4A; }

/* ---- 关联条目 / 可跳转 ---- */
.lb-link-row {
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 7px; font-size: 12.5px; background: #FBFCFE;
  transition: all .13s;
}
.lb-jump { cursor: pointer; }
.lb-jump:hover { background: #F5F8FF; border-color: #B9C8F2; }
.lb-jump:hover .lb-sub { color: var(--indigo-deep); }

/* ---- 操作留痕：时间线 ---- */
.lb-logs {
  max-height: 230px; overflow-y: auto;
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 10px 14px; background: #FBFCFE;
}
.lb-log {
  font-size: 12.5px; padding: 7px 0 7px 16px;
  position: relative; border-bottom: 1px dashed #EEF1F6;
}
.lb-log::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #C4D0F6; box-shadow: 0 0 0 2.5px #EDF1FE;
}
.lb-log:last-child { border-bottom: none; }
.lb-log-t { color: var(--muted); font-size: 11.5px; margin-right: 8px; font-variant-numeric: tabular-nums; }

/* ---- M15 全流程工单：时间线 + 阶段卡 ---- */
.lb-flow {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 16px; margin-bottom: 14px;
  background: linear-gradient(180deg, #F7F9FE, #FBFCFE);
  border: 1px solid var(--line-soft); border-radius: 12px;
  overflow-x: auto;
}
.lb-flow-step { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 58px; }
.lb-flow-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid #C9D4EE;
}
.lb-flow-step.done .lb-flow-dot { background: var(--indigo, #4C6EF5); border-color: var(--indigo, #4C6EF5); }
.lb-flow-step.cur .lb-flow-dot {
  background: var(--indigo, #4C6EF5); border-color: var(--indigo, #4C6EF5);
  box-shadow: 0 0 0 4px rgba(76, 110, 245, .18);
}
.lb-flow-step.dim { opacity: .45; }
.lb-flow-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lb-flow-step.cur .lb-flow-label { color: var(--indigo, #4C6EF5); font-weight: 700; }
.lb-flow-step.done .lb-flow-label { color: var(--ink, #1F2937); }
.lb-flow-bar { flex: 1; height: 2px; min-width: 14px; background: #DDE4F2; border-radius: 1px; }
.lb-flow-step.done + .lb-flow-bar { background: var(--indigo, #4C6EF5); }

.lb-stage {
  border: 1px solid var(--line-soft); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; background: #fff;
}
.lb-stage-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 14px; font-size: 13px; font-weight: 700; color: var(--ink, #1F2937);
  background: #F8FAFD; border-bottom: 1px solid var(--line-soft);
}
.lb-stage-head .lb-sub { font-weight: 400; }
.lb-stage-body { padding: 11px 14px; font-size: 13px; line-height: 1.8; }
.lb-stage-body label { display: block; margin-bottom: 9px; font-size: 12.5px; color: var(--muted); }
.lb-stage-body input:not([type="radio"]):not([type="file"]), .lb-stage-body select, .lb-stage-body textarea {
  width: 100%; margin-top: 4px; padding: 7px 10px; font-size: 13px;
  border: 1px solid var(--line, #D8DFE8); border-radius: 8px; box-sizing: border-box;
  font-family: inherit; outline: none;
}
.lb-stage-body input:focus, .lb-stage-body textarea:focus {
  border-color: var(--indigo, #4C6EF5); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12);
}
.lb-stage-act { border-color: #B9C8F2; box-shadow: 0 2px 10px rgba(76, 110, 245, .07); }
.lb-stage-act .lb-stage-head { background: #F0F4FE; color: #3B5BDB; }
.lb-stage-ai { border-color: #CBE3D4; }
.lb-stage-ai .lb-stage-head { background: #F2FAF5; }
.lb-ai-text { white-space: pre-wrap; font-size: 12.5px; line-height: 1.9; color: #33415C; }
.lb-reason { margin-top: 6px; padding: 8px 10px; background: #FAFBFD;
  border-left: 3px solid #C9D4EE; border-radius: 0 8px 8px 0;
  font-size: 12.5px; color: #44506A; white-space: pre-wrap; }
.lb-route-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lb-route-row .btn-primary, .lb-route-row .btn-line { width: auto; height: 38px; padding: 0 20px; }
.lb-trial { border: 1px dashed var(--line, #D8DFE8); border-radius: 10px; padding: 10px 12px; }
.lb-trial b { display: block; font-size: 12.5px; margin-bottom: 6px; color: var(--ink, #1F2937); }
.lb-trial .lb-chk { display: inline-flex; margin-right: 14px; }
.lb-form-actions { display: flex; gap: 10px; margin-top: 4px; }
.lb-form-actions .btn-line, .lb-form-actions .btn-primary { width: auto; height: 36px; padding: 0 18px; }

/* ---- 处置指引：封面卡 ---- */
.lb-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lb-guide-card {
  cursor: pointer; position: relative; padding: 18px 18px 16px;
  transition: all .16s;
}
.lb-guide-card::before {
  content: '🛡';
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--indigo-soft); font-size: 18px;
  margin-bottom: 12px;
}
.lb-guide-card:hover { border-color: #C4D0F6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lb-guide-scene { font-weight: 700; font-size: 14.5px; margin-bottom: 7px; color: var(--ink); }
.lb-type-badge { margin-bottom: 7px; display: inline-block; }

/* ---- 类型徽章 ---- */
.lb-badge-law { background: #EDF1FE; color: #3E63DD; }
.lb-badge-pol { background: var(--green-soft); color: #238551; }
.lb-badge-gd { background: var(--orange-soft); color: #C4661A; }
.lb-demo-tag {
  background: #FFF6D9; color: #9C7A0B; font-size: 11px; font-weight: 500;
  padding: 1.5px 8px; border-radius: 999px; margin-left: 6px;
}

/* ---- 知识库 ---- */
.lb-kb-hint { font-size: 12px; color: var(--muted); padding: 13px 18px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-inline-sel {
  width: auto; font-size: 12px; padding: 3px 8px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text);
  font-family: inherit; outline: none; cursor: pointer;
}
.lb-kb-list { display: flex; flex-direction: column; gap: 9px; padding: 0 18px 18px; }
.lb-kb-list > .lb-sub, .lb-kb-list > .rj-empty {
  border: 1px dashed var(--line); border-radius: 12px;
  padding: 26px 16px; text-align: center; color: var(--muted);
  font-size: 12.5px; background: #FBFCFE;
}
.lb-kb-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
  cursor: pointer; transition: all .14s; background: #fff;
  position: relative;
}
.lb-kb-item::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 0 3px 3px 0; background: #D6DDE9;
  transition: background .14s;
}
.lb-kb-item.t-law::before { background: #4C6EF5; }
.lb-kb-item.t-policy::before { background: #2FA46A; }
.lb-kb-item.t-guide::before { background: #EE822F; }
.lb-kb-item:hover { background: #F8FAFF; border-color: #C4D0F6; box-shadow: var(--shadow-sm); }
.lb-kb-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.lb-kb-meta { font-size: 11.5px; color: var(--muted); margin: 4px 0 2px; }
.lb-content {
  font-size: 13px; line-height: 2; white-space: pre-wrap;
  background: #FAFBFD; border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 16px 18px; margin: 10px 0; color: #3A4356;
}
.lb-hr-action {
  background: var(--green-soft); border: 1px solid #BFE4CF; color: #1F6B43;
  border-radius: 10px; padding: 11px 14px; font-size: 12.5px; margin: 10px 0;
  line-height: 1.7;
}
.lb-hr-action b { margin-right: 8px; }

/* ---- 决策树 ---- */
.lb-tree {
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 12px 15px; font-size: 12.5px; background: #FBFCFE;
}
.lb-tree-q { font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.lb-tree-branch { display: flex; flex-direction: column; gap: 5px; padding-left: 16px; border-left: 2px solid #E4EAF8; }
.lb-tree-a b { color: #3E63DD; margin-right: 8px; font-weight: 600; }

/* ---- 补偿金：左表单右结果双栏 ---- */
.lb-comp-wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px; align-items: start;
}
.lb-comp-form { padding: 18px 20px 20px; }
.lb-comp-form label { display: block; margin-bottom: 12px; font-size: 12.5px; color: #5A6478; }
.lb-comp-form input {
  width: 100%; margin-top: 5px; padding: 8px 11px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box;
  font-family: inherit; color: var(--text); background: #fff; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.lb-comp-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 110, 245, .12); }
.lb-comp-side { display: flex; flex-direction: column; gap: 16px; }
.lb-comp-result {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 18px;
}
.lb-comp-result .lb-grid2, .lb-comp-result .lb-grid3 { gap: 10px; }
.lb-comp-basis {
  font-size: 11.5px; color: var(--muted); line-height: 1.7;
  background: #F7F9FC; border-radius: 8px; padding: 8px 12px;
}
.lb-empty-side {
  padding: 34px 20px; text-align: center; color: var(--muted); font-size: 12.5px;
  grid-column: 1 / -1; line-height: 1.8;
}
/* 弹窗内复用筛选条时，收成一块浅底工具区 */
.ob-body .lb-filter {
  padding: 10px 12px; margin: 6px 0 4px;
  background: #F8FAFD; border: 1px solid var(--line-soft); border-radius: 10px;
}

@media (max-width: 1180px) {
  .hc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hc-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-modal { width: auto; }
}
@media (max-width: 760px) {
  .topbar {
    height: auto; min-height: 52px; padding: 8px 14px; gap: 10px; flex-wrap: wrap;
  }
  .topbar-title { font-size: 14px; }
  .topbar-right { gap: 8px; font-size: 12px; }
  /* 手机上一行放不下四样，数据范围让位，角色与姓名保留 */
  .scope-tag { display: none; }

  .body-row { flex-direction: column; }

  /* 侧栏改成可左右滑的横向标签条，不再占掉一半宽度 */
  .sidebar {
    width: 100%; display: flex; align-items: center; gap: 4px;
    padding: 7px 12px; overflow-x: auto; overflow-y: hidden;
    border-right: none; border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .nav-item {
    flex: 0 0 auto; margin-bottom: 0; padding: 7px 10px;
    font-size: 13px; white-space: nowrap;
  }
  .nav-item .soon { display: none; }
  .nav-sep { flex: 0 0 auto; width: 1px; height: 16px; margin: 0 3px; }

  .main { padding: 14px 14px 26px; }
  .page-head { flex-wrap: wrap; gap: 2px 10px; margin-bottom: 12px; }
  .page-title { font-size: 17px; }

  .kpi-grid,
  .module-grid,
  .at-kpis { grid-template-columns: repeat(2, 1fr); }

  .card-head { flex-wrap: wrap; gap: 4px 10px; padding: 12px 14px; }

  /* 申诉页工具条：固定 190px 的搜索框会把卡片撑破，窄屏改为整行 */
  .ap-tools { flex-wrap: wrap; width: 100%; }
  .ap-tools input { width: 100%; min-width: 0; }
  .ap-tools select { min-width: 0; flex: 1 1 auto; }

  /* 排班表单：一列到底，下拉与文件选择占满宽度 */
  .sp-remind-body { gap: 16px; padding: 4px 14px 12px; }
  .sp-meter, .sp-missing { min-width: 0; flex: 1 1 100%; }
  .sp-form { flex-direction: column; align-items: stretch; gap: 10px; padding: 2px 14px 0; }
  .sp-field select, .sp-field input[type="week"] { width: 100%; min-width: 0; }
  .sp-upload {
    flex-direction: column; align-items: stretch; gap: 10px;
    margin: 14px 14px 0;
  }
  .sp-upload .btn-primary { width: 100%; }
  .sp-hint, .sp-remind-hint, .sp-rule-body { padding-left: 14px; padding-right: 14px; }
  .sp-rule-body { font-size: 12px; }

  /* 汇总表在窄屏保留横向滚动，不要把列压到看不清 */
  .at-table-wrap { overflow-x: auto; }
  /* 表格宁可横向滑，也不要把「章丘明水店」压成竖排一列字；
     单元格不换行后表格会自己撑到内容宽度，由上面的 wrap 承接滚动 */
  .at-table { min-width: 620px; }
  .at-table td { white-space: nowrap; }
  .at-public-note { font-size: 12px; }
  /* 招聘页：钢性四列表单收成一列，候选人表横向滑动 */
  .rj-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rj-kpi { padding: 10px 12px; }
  .rj-kpi-n { font-size: 19px; }
  .rj-grid2 { grid-template-columns: 1fr; gap: 10px; }
  .rj-form-grid { grid-template-columns: repeat(2, 1fr); }
  .rj-form-grid, .rj-form-grid + * { min-width: 0; }
  .rj-tools { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .rj-search { flex: 1; min-width: 120px; width: auto; }
  .rj-table { min-width: 720px; }
  .rj-dim-row { grid-template-columns: 1fr 68px; row-gap: 4px; }
  .rj-dim-row input { grid-column: 1 / -1; }
  .rj-bar-row { grid-template-columns: 78px 1fr 30px; }
  .rj-bar-w { display: none; }
  .rj-tabs { overflow-x: auto; }
  .rj-tab { white-space: nowrap; }
  .rj-head-main { gap: 10px; }
  .rj-big { font-size: 24px; }
  .rj-cand-name { font-size: 17px; }
  .rj-iv { padding: 10px 14px; }
  .rj-iv-notes { max-height: 220px; overflow: auto; }


  .tr-kpis { grid-template-columns: repeat(2, 1fr); }
  .tr-grid2 { grid-template-columns: 1fr; }
  .tr-form-grid { grid-template-columns: 1fr; }
  .tr-nums { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .tr-toolbar .tr-input { width: 100%; }
  .tr-toolbar .tr-select { flex: 1; min-width: 0; }
  .tr-new-btn { margin-left: 0; width: 100%; }
  .tr-head-top { flex-direction: column; }
  .tr-head-ops { width: 100%; flex-wrap: wrap; }
  .tr-pcard-top, .tr-ccard-top { flex-direction: column; gap: 8px; }
  .tr-pcard-right { text-align: left; }
  .tr-pcard-foot { gap: 10px; }
  .tr-pcard-go { margin-left: 0; }
  .tr-table { min-width: 680px; }
  .tr-sess-table { min-width: 560px; }
  .tr-pick-list { grid-template-columns: 1fr; }
  .tr-cat-row { grid-template-columns: 88px 1fr; }
  .tr-cat-num { grid-column: 1 / -1; }

  /* 老板端罗盘：一屏变一列往下读，结论条与月份条占满整行 */
  .bs-head { flex-direction: column; gap: 10px; }
  .bs-monthbar { width: 100%; justify-content: space-between; }
  .bs-mlabel { min-width: 84px; }
  .bs-verdict { font-size: 12.5px; align-items: flex-start; padding: 10px 13px; }
  .bs-verdict .bs-vdot { margin-top: 6px; }
  .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bs-card { min-height: 0; padding: 11px 12px; }
  .bs-value { font-size: 22px; }
  .bs-hint { font-size: 11px; }
  .bs-pend-list { grid-template-columns: 1fr; }
  .bs-foot { flex-direction: column; gap: 8px; }

  .hv-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .hv-tools { flex-wrap: wrap; gap: 8px; }
  .hv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hv-kpi-value { font-size: 19px; }
  .hv-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-tabs { gap: 5px; }
  .hv-tab { padding: 4px 11px; font-size: 12px; }
  .hv-foot { flex-direction: column; gap: 8px; }

  .q-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-cols { grid-template-columns: 1fr; }
  .q-tpl-grid { grid-template-columns: 1fr; }
  .q-dim-grid { grid-template-columns: 1fr; }
  .q-pick-list { grid-template-columns: 1fr; }
  .q-form-row label { width: 64px; }
  .q-dim-row label { width: 108px; }
  .q-tabs { gap: 5px; }
  .q-tab { padding: 4px 11px; font-size: 12px; }
  .q-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .q-right { float: none; margin-left: 8px; }
  .q-table { font-size: 12px; }
  .q-dims { display: none; }

  /* 手续办理 · 手机端 */
  .hv-detail { width: auto; max-width: calc(100vw - 24px); }
  .hv-detail-foot { flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .hv-detail-tip { flex: 1 0 100%; margin: 0 0 2px; }
  .hv-form-grid { grid-template-columns: 1fr; }
  .hv-form-grid label { flex-direction: column; align-items: stretch; gap: 4px; }
  .hv-detail-sub { display: block; margin: 4px 0 0; white-space: normal; }
  .hv-op .tr-btn { padding: 2px 7px; font-size: 11px; }

/* ---- 结构化视图 · 手机端（追加在 760 断点末尾，别新建断点） ---- */
.org-wrap { gap: 12px; }
.tree { max-height: 340px; }
.org-table { min-width: 860px; }
.dl-grid.three, .dl-grid.two { grid-template-columns: 1fr; }
.emp-detail { padding: 11px 12px 13px; }
.emp-detail-path { display: none; }
.org-empty { padding: 46px 18px; }

/* 结构化视图工具栏：手机上「节点名 + 人数 + 搜索 + 合计」一行放不下，
   让它换行，别把节点名压成「营…」 */
.table-toolbar { flex-wrap: wrap; row-gap: 8px; }
.org-picked { flex: 1 1 auto; }
.org-picked-name { max-width: 46vw; }
.search-input { flex: 1 1 180px; min-width: 140px; }

  /* ---- 评估标准四模块 · 手机端 ---- */
  .rjp-modal { width: auto; max-width: calc(100vw - 20px); max-height: calc(100vh - 28px); }
  .rjp-form { padding: 12px 13px 16px; }
  .rjp-form-grid { grid-template-columns: 1fr; }
  .rjp-detail-grid { grid-template-columns: 1fr; }
  .rjp-veto-row { grid-template-columns: 1fr; }
  .rjp-subtab { height: 28px; padding: 0 11px; font-size: 12px; }
  .rjp-table { min-width: 880px; }
  .rjp-toolbar { padding: 9px 12px; }
  .rjp-toolbar .rj-dim { margin-left: 0; flex-basis: 100%; }
  .rj-pf-hint { flex-basis: 100%; }

  /* ---- 编制管理 · 手机端 ---- */
  .hc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .hc-kpi { min-height: 0; padding: 9px 11px; }
  .hc-kpi-value { font-size: 20px; }
  .hc-kpi-hint { font-size: 11px; }
  .hc-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .hc-tools { margin-left: 0; flex-wrap: wrap; }
  .hc-search { max-width: none; flex: 1 1 140px; }
  .hc-table { min-width: 820px; }
  .hc-ops .tr-btn { padding: 2px 7px; font-size: 11px; }
  .hc-modal, .hc-bind-modal { width: auto; max-width: calc(100vw - 20px); }
  .hc-form-row { flex-direction: column; gap: 9px; }
  .hc-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-bind-list { max-height: 240px; }

  /* ---- 调动流程 · 手机端 ---- */
  .hv-modes { flex: 1 0 100%; }
  .hv-mode { flex: 1; padding: 0 10px; font-size: 12.5px; }
  .tf-table { min-width: 860px; }
  .tf-modal { width: auto; max-width: calc(100vw - 20px); max-height: calc(100vh - 24px); }
  .tf-modal-body { padding: 12px 14px 16px; }
  .tf-lbl { flex: 0 0 62px; font-size: 12px; }
  .tf-form-row { gap: 8px; }
  .tf-org-sel, .tf-type-sel { max-width: none; }
  .tf-sum-main { font-size: 14px; flex-wrap: wrap; gap: 7px; }
  .tf-act-btns { gap: 8px; }
  .tf-ok, .tf-no { flex: 1; }
}

@media (max-width: 760px) {
  .lb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-guide-grid { grid-template-columns: 1fr; }
  .lb-grid2, .lb-grid3 { grid-template-columns: 1fr; }
  .lb-desc { max-width: 160px; }
  .lb-info th { width: 72px; }
  .lb-modal, .lb-modal-lg { width: 96vw; }
  .lb-table { min-width: 620px; }
  .lb-comp-wrap { grid-template-columns: 1fr; }
  .lb-kb-list { padding: 0 14px 14px; }
  .lb-filter { padding: 12px 14px; }
}

/* ================= 工作清单（M16） ================= */
.ck-stagebar { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.ck-hint { font-size: 12.5px; color: var(--muted); }
.ck-warnbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #FFF7E8; border: 1px solid #F2BA02; border-radius: 10px;
  padding: 10px 14px; margin: 0 0 14px; font-size: 13px; color: #5C4A00; }
.ck-warnbar .tr-btn { flex: none; }
/* 批导弹窗（M16.3） */
.ck-imp-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.ck-imp-mode-on { background: #EDF2FE; border-color: var(--blue); color: var(--blue); font-weight: 600; }
.ck-imp-head { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; font-size: 13px; }
.ck-imp-cands { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.ck-imp-list { max-height: 320px; overflow-y: auto; }
.ck-imp-result { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #F8FAFD; font-size: 13px; }
.ck-period-sel { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px;
  font-size: 13px; font-family: inherit; background: #fff; margin-left: auto; }
.ck-kpis { grid-template-columns: repeat(5, 1fr); }
.ck-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.ck-form-grid label, .ck-form label { display: block; font-size: 12px; color: var(--muted); }
.ck-form-grid input, .ck-form-grid select,
.ck-form input, .ck-form select {
  width: 100%; margin-top: 4px; padding: 8px 10px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 7px; box-sizing: border-box; outline: none;
}
.ck-form-grid input:focus, .ck-form-grid select:focus { border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(76, 110, 245, .12); }
.ck-form .lb-form-actions { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.ck-form .btn-primary { width: auto; height: 36px; padding: 0 22px; }
.ck-calc { font-size: 12px; color: var(--muted); margin-top: 10px; }
.ck-plan-card .card-sub { margin-right: auto; }
.ck-table td { vertical-align: top; }
.ck-table .ck-title { max-width: 340px; }
.ck-lv { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.ck-lv-l1 { background: #EEF2F7; color: #5A6B80; }
.ck-lv-l2 { background: #EAF1FB; color: #36609F; }
.ck-lv-l3 { background: #FDF3E7; color: #C06A1C; }
.ck-out-cell { display: flex; gap: 6px; align-items: flex-start; }
.ck-out-input { flex: 1; min-width: 150px; padding: 6px 9px; font-size: 12.5px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 6px; outline: none; }
.ck-out-input:focus { border-color: var(--blue); }
.ck-inline-sel { padding: 4px 6px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px;
  font-family: inherit; background: #fff; }
.ck-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ck-flow-step { font-size: 12.5px; padding: 5px 14px; border-radius: 999px;
  background: #F1F4F9; color: var(--muted); white-space: nowrap; }
.ck-flow-step.on { background: var(--blue-soft, #EAF1FB); color: var(--blue); font-weight: 600; }
.ck-flow i { flex: 0 0 18px; height: 1px; background: var(--line); }
.ck-result-grid { display: grid; grid-template-columns: 380px 1fr; gap: 14px; align-items: start; }
.ck-score-hero { display: flex; align-items: center; gap: 18px; padding: 10px 0 16px; }
.ck-score-num { font-size: 46px; font-weight: 700; color: var(--indigo, #4C6EF5); line-height: 1; }
.ck-score-meta { font-size: 13px; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.ck-score-rows { display: flex; flex-direction: column; }
.ck-score-rows > div { display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px dashed var(--line-soft, #EEF1F6); font-size: 13px; }
.ck-score-rows > div:last-child { border-bottom: none; }
.ck-score-rows span { color: var(--muted); }
.ck-grade { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.ck-g-b { background: #F2EAFB; color: #7C3AED; }
.ck-g-cp { background: #EAF1FB; color: #36609F; }
.ck-g-c { background: #EAF7EF; color: #2F8A4C; }
.ck-g-cm { background: #FDF3E7; color: #C06A1C; }
.ck-g-d { background: #FBEDEB; color: #B03A2E; }
.ck-opinion { margin-top: 12px; background: #F7F9FC; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font-size: 12.5px; }
.ck-opinion b { display: block; margin-bottom: 4px; color: var(--navy, #33415C); }
.ck-adjusted { color: #C06A1C; }
.ck-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.ck-eval select, .ck-eval input { font-size: 12px; }

@media (max-width: 1180px) {
  .ck-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ck-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ck-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-form-grid { grid-template-columns: 1fr; }
  .ck-flow i { display: none; }
  .ck-eval { min-width: 760px; }
}

/* ================= 线上档案室（M18） ================= */
.ar-layout { display: flex; gap: 16px; align-items: flex-start; }
.ar-side { width: 300px; flex-shrink: 0; }
.ar-main { flex: 1; min-width: 0; }
.ar-search-row { display: flex; gap: 8px; padding: 0 16px 12px; }
.ar-search-row input { flex: 1; min-width: 0; }
.ar-emp-item { padding: 8px 16px; cursor: pointer; border-top: 1px solid var(--line); }
.ar-emp-item:hover { background: var(--hover, #f4f6fb); }
.ar-emp-item span { margin-left: 8px; color: var(--muted); font-size: 12.5px; }
.ar-dim { color: var(--muted); font-size: 12.5px; }
.ar-picked { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.ar-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.ar-empty-ico { font-size: 40px; margin-bottom: 10px; }
.ar-group-title { font-size: 13px; font-weight: 600; color: var(--text);
  margin: 14px 16px 8px; padding-left: 8px; border-left: 3px solid var(--brand, #4C6EF5); }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px; padding: 0 16px 16px; }
.ar-cell { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--card, #fff); }
.ar-cell.has { border-color: rgba(76, 110, 245, .35); }
.ar-cell.miss { opacity: .75; }
.ar-cell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ar-cell-name { font-size: 13px; font-weight: 600; }
.ar-badge { font-size: 11.5px; background: rgba(76, 110, 245, .12); color: var(--brand, #4C6EF5);
  border-radius: 999px; padding: 1px 8px; }
.ar-badge.miss { background: #f1f3f7; color: var(--muted); }
.ar-file { display: flex; flex-direction: column; gap: 2px; padding: 6px 0;
  border-top: 1px dashed var(--line); font-size: 12.5px; }
.ar-file-name { font-weight: 500; word-break: break-all; }
.ar-file-ops { display: flex; gap: 10px; }
.ar-del { color: #d64545; }
.ar-up-btn { margin-top: 8px; width: 100%; height: 30px; font-size: 12.5px; }
.ar-up-modal { max-width: 460px; width: 92%; }
.ar-form-row { margin-bottom: 12px; }
.ar-form-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ar-form-note { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.ar-block .ar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.ar-chip { font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.ar-chip.has { background: rgba(76, 175, 80, .12); color: #2e7d32; }
.ar-chip.miss { background: #f1f3f7; color: var(--muted); }
.ar-bar { height: 8px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.ar-bar-in { height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #4C6EF5, #748FFC); }

/* ---- M18.3 档案看板 ---- */
.ar-rate { display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; border: 1px solid; }
.ar-rate.ok { background: rgba(117, 189, 66, .1); color: #3d7a1e; border-color: rgba(117,189,66,.4); }
.ar-rate.warn { background: rgba(238, 130, 47, .1); color: #a55d1f; border-color: rgba(238,130,47,.4); }
.ar-rate.red { background: rgba(214, 69, 69, .1); color: #b03232; border-color: rgba(214,69,69,.4); }
.ar-rate.dim { background: #f1f3f7; color: var(--muted); border-color: var(--line); }
.ar-rate-ok { color: #3d7a1e; }
.ar-rate-warn { color: #a55d1f; }
.ar-rate-red { color: #b03232; }
.ck-sum-num.ar-rate-ok { color: #3d7a1e; }
.ck-sum-num.ar-rate-warn { color: #a55d1f; }
.ck-sum-num.ar-rate-red { color: #b03232; }
.ar-dash-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin: 0 0 12px; }
.ar-dash-grp { padding: 14px 16px; }
.ar-dash-grp-head { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 14px; }
.ar-dash-grp .ar-dim { font-size: 12px; margin-top: 8px; }
.ar-dash-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.ar-chip { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; border: 1px solid; }
.ar-chip.red { background: rgba(214, 69, 69, .07); color: #b03232; border-color: rgba(214,69,69,.3); }
.ar-chip.ok { background: rgba(117, 189, 66, .08); color: #3d7a1e; border-color: rgba(117,189,66,.35); }
.ar-dash-row { cursor: pointer; }
.ar-dash-row:hover { background: #f6f8fc; }
.ar-bar-in.ok { background: linear-gradient(90deg, #75BD42, #8fce5e); }
.ar-bar-in.warn { background: linear-gradient(90deg, #EE822F, #f5a05a); }
.ar-bar-in.red { background: linear-gradient(90deg, #D64545, #e46a6a); }
.ar-bar-in.dim { background: #c9cfdb; }
.ar-dash-entry { display: flex; gap: 10px; margin-top: 4px; }


/* ---- M18.1 证照资料 ---- */
.ar-exp-banner { display: flex; align-items: center; gap: 8px; cursor: pointer;
  margin: 0 0 12px; padding: 10px 16px; border-radius: 10px; font-size: 13.5px;
  border: 1px solid; }
.ar-exp-banner.red { background: rgba(214, 69, 69, .08); border-color: rgba(214, 69, 69, .35);
  color: #b03232; }
.ar-exp-banner.yellow { background: rgba(238, 130, 47, .08); border-color: rgba(238, 130, 47, .4);
  color: #a55d1f; }
.ar-cert { font-size: 12px; display: flex; align-items: center; gap: 8px; }
.ar-cert.ok { color: #2e7d32; }
.ar-cert.warn { color: #a55d1f; }
.ar-cert.red { color: #d64545; }
.ar-cert.miss { color: var(--muted); }
.ar-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ar-form-note-hl { background: rgba(76, 110, 245, .07); border: 1px solid rgba(76, 110, 245, .25);
  border-radius: 8px; padding: 8px 10px; color: var(--text); }
.ar-chk { flex-direction: row !important; align-items: center; gap: 6px !important; font-size: 13px; }

/* ---- M18.2 批量扫描拆分 ---- */
.ar-split-modal { max-width: 600px; width: 94%; }
.ar-split-report { display: flex; flex-direction: column; gap: 6px; }
.ar-split-headline { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.ar-split-row { display: flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 6px 8px; border-radius: 8px; }
.ar-split-row.ok { background: rgba(76, 175, 80, .08); }
.ar-split-row.pend { background: rgba(238, 130, 47, .07); flex-wrap: wrap; }
.ar-split-pend-title { font-weight: 600; font-size: 13px; color: #a55d1f; margin-top: 6px; }
.ar-claim-sel { max-width: 240px; }
@media (max-width: 1180px) {
  .ar-layout { flex-direction: column; }
  .ar-side { width: 100%; }
}
