/* ============================================================================
   极客跳动 · 人事管理系统
   视觉体系：方案 A「糖果便当」
   —— 黑胶囊侧栏 + 白色大圆角壳 + 马卡龙点缀 + 便当格网格
   规则：中性底承载信息，颜色只用来标注状态与阶段，不用于大面积铺底
   ========================================================================== */

:root {
  /* 界面字号倍数（个人中心可调，默认 1 = 原始尺寸）与换算出来的「一屏高度」 */
  --ui-zoom: 1;
  --vh100: calc(100vh / var(--ui-zoom));

  /* 中性 */
  --ink: #171717;
  --ink-2: #333333;
  --ink-3: #5c5c5c;
  --muted: #8f8a84;
  --muted-2: #b3ada6;
  --bg: #efece7;
  --bg-2: #f6f3ef;
  --card: #ffffff;
  --card-2: #faf8f5;
  --line: #ece7e1;
  --line-2: #e2dbd3;

  /* 马卡龙 */
  --pink: #f7aed4;
  --pink-soft: #fde4f1;
  --lilac: #c9b8f2;
  --lilac-soft: #ede7fc;
  --blue: #aac6f4;
  --blue-soft: #e2edfd;
  --lemon: #f4d95e;
  --lemon-soft: #fdf4cf;
  --mint: #a8e6cf;
  --mint-soft: #ddf7ee;
  --orange: #f8c39a;
  --orange-soft: #fdeade;
  --red: #e8756b;
  --red-soft: #fbe3e0;
  --green: #4fae7f;
  --green-soft: #dff3e8;

  --r-shell: 34px;
  --r-card: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.04);
  --shadow: 0 1px 3px rgba(23, 23, 23, 0.05), 0 10px 28px -12px rgba(23, 23, 23, 0.14);
  --shadow-lg: 0 20px 60px -20px rgba(23, 23, 23, 0.28);

  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --f-num: ui-rounded, "SF Pro Rounded", -apple-system, "Helvetica Neue", sans-serif;

  --rail-w: 232px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 界面字号（个人中心「界面字号」可调；默认 1 = 完全不缩放，即原始尺寸）
     整套样式是 px 写死的，改 rem 等于重写；要放大时用 CSS zoom 等比放大，
     字号/间距/图标一起变大，布局关系不变。
     放大后 body 的 CSS 高度要除以倍数，否则 #app（100%）会撑出整页滚动条。 */
  zoom: var(--ui-zoom, 1);
  /* 缩放后 CSS 里的 1vh 仍是「未缩放」的视口高度，直接用会多出放大倍数；
     所以整份样式里的 100vh 全部换成了 --vh100（:root 里按倍数算好） */
  height: var(--vh100);
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--lemon); color: var(--ink); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #d8d2ca;
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #c2bab1; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.mono { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; }
.right { margin-left: auto; }
.hide { display: none !important; }

/* ============================== 登录页 ============================== */

.login-screen {
  display: grid;
  grid-template-columns: 3fr 7fr;
  min-height: var(--vh100);
  padding: 18px;
  gap: 18px;
  background: var(--bg);
}

.login-art {
  position: relative;
  border-radius: var(--r-shell);
  background: var(--ink);
  color: #fff;
  padding: 34px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.9;
}
.login-blob.b1 { width: 246px; height: 246px; right: -100px; top: -96px; background: var(--lilac); opacity: 0.42; }
.login-blob.b2 { width: 204px; height: 204px; right: -66px; bottom: -122px; background: var(--pink); opacity: 0.28; }
.login-blob.b3 { width: 74px; height: 74px; left: -24px; bottom: 238px; background: var(--lemon); opacity: 0.26; }

.login-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.login-brand strong { display: block; font-size: 16px; letter-spacing: 0.01em; }
.login-brand em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.03em; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--lemon);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  overflow: hidden;
}
/* 图片版品牌标：logo 自带白底，铺满圆角块即可 */
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-brand .brand-mark, .rail-brand .brand-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }

/* 品牌标识设置页 */
.brand-preview { display: flex; flex-direction: column; gap: 14px; }
.brand-drop {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--card-2);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: 0.16s ease;
}
.brand-drop.over { border-color: var(--ink); background: #fff; }
.brand-drop-tile {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  background: #fff; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid var(--line);
}
.brand-drop-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-drop-tile.wide { width: 88px; }
.brand-drop-tile.wide img { object-fit: contain; }
.brand-rail-demo {
  background: var(--ink); color: #fff; border-radius: var(--r-md);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.brand-rail-demo .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-rail-demo strong { display: block; font-size: 12.5px; }
.brand-rail-demo em { font-style: normal; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }

/* 登录页口号预览（黑底，跟登录左栏同一调性） */
.brand-login-demo {
  background: var(--ink); color: #fff; border-radius: var(--r-md);
  padding: 16px 16px 18px; position: relative;
}
.brand-login-demo::before {
  content: ''; position: absolute; left: 16px; top: 10px;
  width: 22px; height: 2px; border-radius: 2px; background: var(--lemon); opacity: .8;
}
.brand-login-demo strong {
  display: block; margin-top: 12px; font-size: 17px; font-weight: 650; letter-spacing: -.02em;
}
.brand-login-demo em {
  display: block; margin-top: 6px; font-style: normal;
  font-size: 11.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.55);
}

/* 左栏只占 3 成宽，文案改成一句「主张」而不是功能罗列 */
.login-copy { position: relative; z-index: 1; }
.login-copy::before {
  content: '';
  display: block;
  width: 26px; height: 2px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--lemon);
  opacity: 0.8;
}
.login-copy h1 {
  font-size: clamp(19px, 1.9vw, 31px);
  line-height: 1.54;
  letter-spacing: 0.002em;
  font-weight: 600;
  text-wrap: balance;
}
.login-copy p {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
}

.login-panel {
  position: relative;
  border-radius: var(--r-shell);
  background: var(--card);
  display: grid;
  place-items: center;
  padding: 40px;
}
/* 手机上左栏整块不显示，品牌位挪到表单上方，不然整页看不到 logo */
.login-panel-brand { display: none; }

.login-form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-form h2 { font-size: 26px; letter-spacing: -0.02em; }
.login-form > p { margin-top: -8px; margin-bottom: 6px; }

/* 登录页：钉钉登录分隔线 */
.dt-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 12px; color: var(--muted); font-size: 12px;
}
.dt-divider::before, .dt-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.login-hint {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.hint-title { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.hint-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.hint-grid button {
  border: 1px solid var(--line);
  background: var(--card-2);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--ink-3);
  transition: 0.15s;
}
.hint-grid button:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

/* ============================== 布局骨架 ============================== */

.app {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  height: var(--vh100);
  overflow: hidden;
}

.rail {
  background: var(--ink);
  border-radius: var(--r-shell);
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  min-height: 0;
}

.rail-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; }
.rail-brand-text { min-width: 0; }
.rail-brand-text strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-brand-text em { display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, 0.42); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rail-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.rail-nav::-webkit-scrollbar { width: 0; }

.rail-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font-size: 13.5px;
  transition: 0.16s ease;
  position: relative;
}
.rail-item svg { flex: 0 0 auto; opacity: 0.8; }
.rail-item:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.rail-item.active { background: rgba(255, 255, 255, 0.13); color: #fff; }
.rail-item.active svg { opacity: 1; }
.rail-item.active::before {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lemon);
  transform: translateY(-50%);
}
.rail-item .rail-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--pink);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.rail-item .rail-badge.lemon { background: var(--lemon); }

.rail-foot { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 8px; }
.rail-user {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: 0; background: transparent;
  padding: 8px; border-radius: 14px; color: #fff; text-align: left;
  transition: 0.15s;
}
.rail-user:hover { background: rgba(255, 255, 255, 0.08); }
.rail-user-info { min-width: 0; }
.rail-user-info strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-user-info em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.45); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.avatar {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}
/* 钉钉头像：铺满圆底，加载失败由 onerror 移除，露回首字 */
.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  background: var(--card-2);
}
.avatar.lg { width: 52px; height: 52px; font-size: 19px; border-radius: 18px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }
.avatar.pink { background: var(--pink); }
.avatar.blue { background: var(--blue); }
.avatar.lemon { background: var(--lemon); }
.avatar.mint { background: var(--mint); }
.avatar.orange { background: var(--orange); }
.avatar.dark { background: var(--ink); color: #fff; }

.shell {
  background: var(--card);
  border-radius: var(--r-shell);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.topbar h1 { font-size: 21px; letter-spacing: -0.02em; }
.page-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

/* ---- 视图切换 + 隐私遮罩（2026-11-19） ---- */
.top-icon.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
/* 2026-11-22 用户：「这个切换视图不写文字，只放前面切换的那个图标就好了，和后面的那个眼睛一样」
   → 原来的 .view-switch-btn（药丸 + 文字 + 下拉箭头）已删掉，顶栏两个按钮统一用 .icon-btn .top-icon。 */

.view-stop-btn {
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--red); color: #fff;
  border: 0; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.view-stop-btn:hover { filter: brightness(0.95); }

.view-menu {
  position: fixed; z-index: 2600;
  min-width: 264px; padding: 6px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.view-menu-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: transparent; border: 0; cursor: pointer;
}
.view-menu-item:hover { background: var(--bg-2); }
.view-menu-item.is-on { background: var(--lemon-soft); }
.view-menu-item span { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink); }
.view-menu-item em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.view-menu-item .vm-check { font-style: normal; color: var(--ink); font-weight: 700; }
.view-menu-item.vm-as span { color: var(--red); }
.view-menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.viewas-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 9px 16px;
  background: var(--red); color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.viewas-banner b { font-weight: 700; }
.viewas-banner button {
  height: 28px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: #fff; color: var(--red);
  border: 0; font-size: 12px; font-weight: 700; cursor: pointer;
}
/* 横幅是悬浮的，整个壳层往下让一条（侧栏 + 顶栏一起让，别只让一半） */
body.has-viewas .app { padding-top: 54px; }

.searchbox {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.15s;
}
.searchbox:focus-within { border-color: var(--ink); background: #fff; }
.searchbox input { border: 0; background: transparent; outline: none; width: 200px; font-size: 13px; color: var(--ink); }
.searchbox input::placeholder { color: var(--muted-2); }

.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: 0.15s;
}
.icon-btn:hover { background: var(--card-2); border-color: var(--line-2); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
}

.view {
  /* --view-px 给「吸顶后要铺满整宽」的元素用（团队介绍的三栏页签），各断点跟着 padding 一起改 */
  --view-px: 26px;
  --view-py: 22px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px var(--view-px) 32px;
  scroll-behavior: smooth;
}

.only-mobile { display: none; }

/* ============================== 通用组件 ============================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.chip-pink { background: var(--pink-soft); color: #9c3f70; }
.chip-lilac { background: var(--lilac-soft); color: #5b3fa8; }
.chip-blue { background: var(--blue-soft); color: #2b5a9e; }
.chip-lemon { background: var(--lemon-soft); color: #8a6d00; }
.chip-mint { background: var(--mint-soft); color: #1f7a58; }
.chip-orange { background: var(--orange-soft); color: #9c531c; }
.chip-red { background: var(--red-soft); color: #a8392f; }
.chip-line { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); }
.chip-ghost { background: var(--card-2, #f6f4f1); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip-dark { background: var(--ink); color: #fff; }
/* 职级标签：颜色由 levelChip() 按「序列 + 级别」算出来，这里只管形状 */
.lvchip { border: 1px solid transparent; font-variant-numeric: tabular-nums; }

.dotmark { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.dotmark.pink { background: var(--pink); }
.dotmark.lilac { background: var(--lilac); }
.dotmark.blue { background: var(--blue); }
.dotmark.lemon { background: var(--lemon); }
.dotmark.mint { background: var(--mint); }
.dotmark.orange { background: var(--orange); }
.dotmark.red { background: var(--red); }
.dotmark.gray { background: var(--muted-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  transition: 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn-ghost:hover { background: var(--card-2); border-color: var(--ink-3); }
.btn-soft { background: var(--card-2); color: var(--ink-2); border-color: var(--line); }
.btn-soft:hover { background: #f2eee9; }
.btn-danger { background: var(--red-soft); color: #a8392f; border-color: #f3ccc6; }
.btn-danger:hover { background: #f9d7d2; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--ink-3); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; color: var(--ink-3); font-weight: 550; }
.field > span .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  height: 38px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 0 12px;
  outline: none;
  transition: 0.15s;
  width: 100%;
}
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06); }
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: var(--card-2); color: var(--muted); cursor: not-allowed;
}
.field .hint { font-size: 11.5px; color: var(--muted); }

/* 列表页筛选下拉（不要复用 .field——那是表单标签布局，作用在 select 本体上会错位） */
.filter-select {
  height: 34px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: #fff;
  padding: 0 32px 0 14px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238f8a84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  transition: border-color 0.15s;
}
.filter-select:hover { border-color: var(--ink-3); }
.filter-select:focus { border-color: var(--ink); }
.form-error {
  background: var(--red-soft);
  color: #a8392f;
  border-radius: var(--r-md);
  padding: 9px 12px;
  font-size: 12.5px;
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
/* 编辑公司文件：附件 / 培训视频两行（就地换，不另开按钮） */
.cf-att { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.cf-att-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2, #faf9f7); }
.cf-att-k { flex: 0 0 64px; font-size: 12.5px; color: var(--muted); }
.cf-att-v { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-att-v em { font-style: normal; margin-left: 6px; font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--lemon-soft); color: #8a6d00; }
.cf-att-v em:only-child { margin-left: 0; background: none; color: var(--muted); padding: 0; }

/* 述职材料：链接 / 本地文件 二选一（分段药丸，选中态用实心，不抢表单主色） */
.mat-mode {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  width: fit-content;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.mat-mode button {
  border: 0;
  background: transparent;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.mat-mode button:hover { color: var(--ink); }
.mat-mode button.is-on { background: var(--ink); color: #fff; }
.mat-file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 述职材料·已选文件：一行一份，名字超长省略，右侧可单独移除 */
.mat-files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mat-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  font-size: 12.5px;
}
.mat-file .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.mat-file .sz { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mat-file .rm {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.mat-file .rm:hover { background: var(--red-soft); color: var(--red); }
.mat-file-tip { margin-top: 8px; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 20px;
}
.card.flat { background: var(--card-2); border-color: transparent; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-title-row { display: flex; align-items: baseline; gap: 8px; }

.section-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 650; color: var(--ink);
  margin: 22px 0 12px;
}
.section-title:first-child { margin-top: 0; }
.section-title em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; }

/* 便当格 */
.bento { display: grid; gap: 12px; }
.bento.home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
}
.cell {
  border-radius: var(--r-card);
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.cell-tinted { border-color: transparent; }
/* 卡片也可能是一个按钮（可点击的统计卡），去掉按钮的默认居中与字体差异。
   注意不要在这里写 color: inherit——它的优先级高于 .cell-ink，会把黑卡文字压成黑色 */
button.cell, a.cell { text-align: left; font: inherit; }
/* 晋升与调薪顶部四张统计卡（2026-11-13）：都要有颜色，且点一下筛明细 */
.prm-card { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.prm-card:hover { transform: translateY(-1px); }
.prm-card.is-on { box-shadow: inset 0 0 0 2px rgba(23, 23, 23, .55); }
.prm-fchip { cursor: pointer; border: 0; }
.cell.span2 { grid-column: span 2; }
.cell.span3 { grid-column: span 3; }
.cell.span4 { grid-column: span 4; }
.cell.span2r { grid-row: span 2; }

/* 工作台并排双卡：固定同高，内容区内部滚动，保证左右两张卡尺寸完全一致 */
.cell.home-card { height: 392px; }
/* 表格卡底部渐隐，避免滚动边界把行切成半截 */
.cell.home-card.home-table-card::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 30px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--cell-tint, var(--card)));
  pointer-events: none;
  z-index: 2;
}
.cell.home-card .scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cell.home-card .scroll-area.list { gap: 0; }
.cell.home-card .home-tbl .tbl thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--cell-tint, var(--card));
}
/* 沙色卡底色与页面一致后，行分隔线加深一档，避免列表行糊在一起 */
.cell-sand .list-row { border-bottom-color: var(--line-2); }
/* 沙色卡底部的渐隐不要从"白色透明"起，否则米色底上会浮出一条白雾 */
.cell-sand.home-table-card::after {
  background: linear-gradient(to bottom, rgba(239, 236, 231, 0), var(--bg));
}
.cell-sand .home-tbl .tbl td,
.cell-sand .home-tbl .tbl th { border-bottom-color: var(--line-2); }
.cell.home-card .home-tbl .tbl td,
.cell.home-card .home-tbl .tbl th { padding-left: 10px; padding-right: 10px; }
.cell.home-card .home-tbl .tbl td:first-child,
.cell.home-card .home-tbl .tbl th:first-child { padding-left: 18px; }
.cell.home-card .home-tbl .tbl td:last-child,
.cell.home-card .home-tbl .tbl th:last-child { padding-right: 18px; }
.cell.home-card .home-tbl .person em {
  display: block;
  max-width: 150px;
  overflow: hidden;  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 工作台半宽表格卡（在途入职 / 在途离职并排，2026-11-22）：
   4 列在 ~400px 的卡宽里会按内容撑开、把「状态」列挤出卡外（1080 屏实测）→ 固定列宽 + 省略号，
   日期列不再换行，状态签永远留在卡内。 */
.home-tbl .tbl.cols-4 { table-layout: fixed; }
.home-tbl .tbl.cols-4 th:nth-child(1) { width: 37%; }
.home-tbl .tbl.cols-4 th:nth-child(2),
.home-tbl .tbl.cols-4 th:nth-child(3) { width: 23%; }
.home-tbl .tbl.cols-4 th:nth-child(4) { width: 17%; }
.home-tbl .tbl.cols-4 td { overflow: hidden; text-overflow: ellipsis; }
.home-tbl .tbl.cols-4 .due-line,
.home-tbl .tbl.cols-4 th { white-space: nowrap; }
.home-tbl .tbl.cols-4 .person em { max-width: none; }
/* 卡片着色：同一族低饱和淡彩，一张黑卡做重音。
   每个变体同时定义底色 / 正文色 / 弱化色，卡片内文字颜色跟着底色走，
   视图里不再写死色值（写死会导致同一张卡在不同色底下对比度失控）。 */
.cell-pink { --cell-tint: var(--pink-soft); --tint-ink: #8c3d68; --tint-soft: rgba(140, 61, 104, 0.6); }
.cell-lilac { --cell-tint: var(--lilac-soft); --tint-ink: #4a3680; --tint-soft: rgba(74, 54, 128, 0.6); }
.cell-blue { --cell-tint: var(--blue-soft); --tint-ink: #2a4a7a; --tint-soft: rgba(42, 74, 122, 0.6); }
.cell-lemon { --cell-tint: var(--lemon-soft); --tint-ink: #77620a; --tint-soft: rgba(119, 98, 10, 0.6); }
.cell-mint { --cell-tint: var(--mint-soft); --tint-ink: #1f6b52; --tint-soft: rgba(31, 107, 82, 0.6); }
.cell-orange { --cell-tint: var(--orange-soft); --tint-ink: #8a4517; --tint-soft: rgba(138, 69, 23, 0.6); }
.cell-cream { --cell-tint: #f8f2e6; --tint-ink: var(--ink); --tint-soft: var(--muted); }
.cell-rose { --cell-tint: #fceef5; --tint-ink: var(--ink); --tint-soft: var(--muted); }
/* 中性卡片：和工作台（.shell 白底）完全同色，只用一道极淡描边区分边界。
   之前用的是 --bg（米灰 #efece7），在白色壳子里看起来比周围深一档，用户反馈「太深了」。 */
.cell-sand { --cell-tint: var(--card); --tint-ink: var(--ink); --tint-soft: var(--muted); border-color: var(--line); }
.cell-pink, .cell-lilac, .cell-blue, .cell-lemon, .cell-mint, .cell-cream, .cell-rose, .cell-orange, .cell-sand {
  background: var(--cell-tint);
}
.cell-tinted .cell-label,
.cell-tinted .cell-value,
.cell-tinted .cell-value small,
.cell-tinted .tint-ink { color: var(--tint-ink, inherit); }
.cell-tinted .cell-foot,
.cell-tinted .tint-soft { color: var(--tint-soft, var(--muted)); }
/* 工作台「今日日程」「招聘在途」：色相不变、只降饱和与不透明度（cell-wash）。
   这两块是背景信息，压淡之后上面那排 KPI 和下面的数据表才是视觉重心。
   用原色的低 alpha 而不是「混白」，白壳底下自带一点透的感觉。 */
.cell.cell-mint.cell-wash { --cell-tint: rgba(168, 230, 207, 0.2); }
.cell.cell-lilac.cell-wash { --cell-tint: rgba(201, 184, 242, 0.18); }
.cell.cell-blue.cell-wash { --cell-tint: rgba(168, 198, 242, 0.2); }
/* 工作台四张卡（KPI / 最近动态 / 今日日程 / 招聘在途）等高：都是 home-card + home-half = 300px，
   少数卡片缺失（无权限）时剩下的仍按 2 列排，不会一张高一张矮（2026-11-19 用户：大小保持一致） */
.cell-ink { --cell-tint: var(--ink); background: var(--ink); color: #fff; border-color: transparent; }
.cell-ink .cell-label, .cell-ink .muted { color: rgba(255, 255, 255, 0.55); }
.cell-ink .cell-foot { color: rgba(255, 255, 255, 0.5); }
.cell-ink .cell-value small { color: rgba(255, 255, 255, 0.45); }

/* 可点击卡片：正常态安静，hover 才抬起来，右上角出一个箭头提示「能进去」 */
.cell-link {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cell-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cell-link:active { transform: translateY(0); }
.cell-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cell-link .cell-go {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--tint-soft, var(--muted));
  opacity: 0.55;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.cell-link:hover .cell-go { opacity: 1; transform: translate(1px, -1px); }
.cell-ink.cell-link .cell-go { color: rgba(255, 255, 255, 0.6); }

.cell-label {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.cell-value {
  font-family: var(--f-num);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.cell-value small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.cell-foot { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

/* ============================================================================
   工作台顶部「我的生命周期」大卡（2026-11-16）
   用户要的是「给所有员工看的一张横向大卡」：Hello + 第几天 + 入职→两周→转正→组织变动。
   底色只加两层极淡的马卡龙光晕（左上柠檬 / 右上粉），保证它比其它卡更"有温度"，
   但仍是中性底承载信息 —— 颜色不铺满，正文全靠 --ink 与 --muted。
   ========================================================================== */
.cell.journey {
  gap: 14px;
  padding: 20px 22px 18px;
  background:
    radial-gradient(78% 150% at 0% 0%, rgba(244, 217, 94, 0.16) 0%, rgba(244, 217, 94, 0) 55%),
    radial-gradient(70% 150% at 100% 0%, rgba(247, 174, 212, 0.18) 0%, rgba(247, 174, 212, 0) 55%),
    var(--card);
}
.jrn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.jrn-hello { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
/* 「第 729 天」的大数字嵌在句子里：字体走 rounding 数字字体，基线下压 3px 让它坐稳 */
.jrn-since { margin-top: 1px; font-size: 13.5px; color: var(--muted); }
.jrn-since b {
  font-family: var(--f-num);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ink);
  vertical-align: -3px;
  padding: 0 4px;
}
.jrn-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* 时间轴：一条贯穿整行的细线做轨道，节点按内容宽度两端对齐（首尾圆点正好压住线头），
   读起来是「从入职走到今天」的一条完整时间线，最后一个节点后面不留空白。 */
.jrn-track {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.jrn-track::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-2);
}
.jrn-node { position: relative; flex: 0 1 auto; min-width: 0; max-width: 240px; padding: 22px 20px 0 0; }
.jrn-node:last-child { padding-right: 0; text-align: right; }
.jrn-node:last-child .jrn-dot { left: auto; right: 0; }
.jrn-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.06);
  z-index: 1;
}
/* 事件类型定色相：入职粉 / 两周柠檬 / 转正薄荷 / 组织变动丁香 */
.jrn-node[data-k="join"] .jrn-dot { background: var(--pink); }
.jrn-node[data-k="two_week"] .jrn-dot { background: var(--lemon); }
.jrn-node[data-k="regular"] .jrn-dot { background: var(--mint); }
.jrn-node[data-k="change"] .jrn-dot { background: var(--lilac); }
.jrn-date {
  font-family: var(--f-num);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.jrn-label {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jrn-note {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 未来节点：空心点，文字退一档，跟「已发生」一眼区分 */
.jrn-node.is-planned .jrn-dot {
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.jrn-node.is-planned .jrn-label { color: var(--muted); font-weight: 600; }
.jrn-node.is-planned .jrn-date { color: var(--muted-2); }
/* 「今天」是时间轴的终点刻度：深色细环 */
.jrn-node[data-k="now"] .jrn-dot {
  background: var(--card);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.jrn-node[data-k="now"] .jrn-label { color: var(--muted); font-weight: 600; }

.kpi-strip { display: flex; gap: 18px; flex-wrap: wrap; }
.kpi-strip > div { display: flex; flex-direction: column; gap: 2px; }
.kpi-strip b { font-family: var(--f-num); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.kpi-strip span { font-size: 11.5px; color: var(--muted); }

/* 进度 */
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width 0.4s ease; }
.bar.thin { height: 4px; }
.bar.pink > i { background: var(--pink); }
.bar.lilac > i { background: var(--lilac); }
.bar.blue > i { background: var(--blue); }
.bar.lemon > i { background: var(--lemon); }
.bar.mint > i { background: var(--mint); }
.bar.red > i { background: var(--red); }

.ring { --p: 0; --size: 88px; width: var(--size); height: var(--size); position: relative; flex: 0 0 auto; }
.ring::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ink) calc(var(--p) * 1%), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
}
.ring.pink::before { background: conic-gradient(var(--pink) calc(var(--p) * 1%), var(--line) 0); }
.ring.lilac::before { background: conic-gradient(var(--lilac) calc(var(--p) * 1%), var(--line) 0); }
.ring.blue::before { background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--line) 0); }
.ring-center {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-num); font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); }
/* 列多的业务表格（晋升与调薪 10 列等）：按内容撑开、允许横向滚动，不要在词中间断行。
   2026-11-13 加「审批人」列后列宽不够，「傅裕珉（后端组）」「Gina（COO)」「2026-11-13」都被拆成两行。 */
.tbl.tbl-nowrap th, .tbl.tbl-nowrap td { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.tbl.tbl-nowrap td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
/* 窄屏保「操作」列可见：依次隐掉阶段 → 申请时间 → 生效日期（详情抽屉里都有，不是关键信息） */
/* 2026-11-19 晋升与调薪加「单号」列后整表 1090 > 容器 1034，右侧「操作」表头被裁 →
   这张表用更紧的内边距（8px → 5px，省 66px），列结构与文案都不动。 */
.tbl.tbl-dense th, .tbl.tbl-dense td { padding-left: 5px; padding-right: 5px; }
@media (max-width: 1380px) { .tbl.tbl-nowrap [data-c="stage"] { display: none; } }
@media (max-width: 1300px) { .tbl.tbl-nowrap [data-c="applied"] { display: none; } }
@media (max-width: 1150px) { .tbl.tbl-nowrap [data-c="effective"] { display: none; } }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.tbl th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 14px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: background 0.12s; }
table.tbl tbody tr:hover { background: #fcfaf7; }
table.tbl tbody tr.clickable { cursor: pointer; }
/* 数字列：等宽表格数字，但对齐跟表头一致（都用左对齐）
   —— 原来这里 text-align:right，导致「入职日 / 试用期结束」等列表头在左、数值贴右边，
   视觉上表头和数据各站一边，被认为"字段名和字段没对齐"。 */
table.tbl td.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
/* 日期/数字不折行：界面放大到 1.5 后，"2026-11-10" 被拆成两行最难认（2026-11-16）。
   日期常常包在 <span class="num"> 里（不是 td 本身带类），所以这里连 .num 一起管。 */
table.tbl td.num, .num { white-space: nowrap; }
/* 人员单元格：tbl 与 .table 两套表格类名都要吃到（离职办理用的是 .table） */
table .person { display: flex; align-items: center; gap: 9px; min-width: 0; }
table .person > div { min-width: 0; }
table .person strong { font-weight: 600; font-size: 13px; display: block; white-space: nowrap; }
table .person em { font-style: normal; font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; }

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 4px; }

/* 分段控件 */
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--card-2);
  border: 1px solid var(--line);
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 550;
  transition: 0.15s;
}
/* 选中态用「实心黑 + 白字」（2026-11-18 用户口径：「选中的那一块用黑色，用白色不是很明显」）。
   和快速筛选 chip 的选中态（.rc-qchip.is-on）同一套色：--ink #171717 底 + 白字，
   在浅灰轨道上一眼就能看出选的是哪一个 —— 白底白卡的同色问题彻底没有。 */
.segmented button.active { background: var(--ink); color: #fff; font-weight: 650; }
/* 选中块里的计数 / 小徽标：不能再用深色字（黑底上看不见），统一降到半透明白 */
.segmented button.active b,
.segmented button.active em { color: rgba(255, 255, 255, .74); }

.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button {
  border: 0; background: none; padding: 10px 0;
  font-size: 13.5px; color: var(--muted); font-weight: 550;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: 0.15s;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 650; }
.tabs button:hover { color: var(--ink-2); }

/* 列表行 */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.list-row:last-child { border-bottom: 0; }
.list-row .title { font-size: 13px; font-weight: 550; }
.list-row .sub { font-size: 11.5px; color: var(--muted); }
/* 行尾时间/倒计时（今日日程等）：不允许被中间的标题挤成两三行，「已开会」折成「已开/会」很难看 */
.sched-time { white-space: nowrap; flex: 0 0 auto; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line-2);
}
.tl-item { position: relative; padding: 0 0 16px 0; }
.tl-item::before {
  content: ""; position: absolute; left: -20px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink-2);
}
.tl-item.pink::before { border-color: var(--pink); }
.tl-item.lilac::before { border-color: var(--lilac); }
.tl-item.blue::before { border-color: var(--blue); }
.tl-item.lemon::before { border-color: var(--lemon); }
.tl-item.mint::before { border-color: var(--mint); }
.tl-item .tl-date { font-size: 11.5px; color: var(--muted); font-family: var(--f-num); }
.tl-item .tl-title { font-size: 13px; font-weight: 600; margin-top: 1px; }
.tl-item .tl-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* 键值行（inset 行风格） */
.kv-list { display: flex; flex-direction: column; }
.kv {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  min-width: 0;
}
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); flex: 0 0 auto; font-size: 12.5px; }
.kv > span:last-child { font-weight: 550; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 字段组 */
.field-group { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.field-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px;
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}
.field-group-head strong { font-size: 12.5px; letter-spacing: 0.01em; }
.frow {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  min-width: 0;
}
.frow:last-child { border-bottom: 0; }
.frow > .flabel { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.frow > .fvalue { font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.frow > .fvalue.empty-val { color: var(--muted-2); font-weight: 400; }
.frow input, .frow select {
  height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  padding: 0 9px; font-size: 12.5px; width: 100%; outline: none;
}
.frow input:focus { border-color: var(--ink); }
.frow .fmeta { display: flex; align-items: center; gap: 6px; }

.src-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.src-badge.ding { background: var(--blue-soft); border-color: transparent; color: #2b5a9e; }
.src-badge.recruit { background: var(--lilac-soft); border-color: transparent; color: #5b3fa8; }
.src-badge.hr { background: var(--lemon-soft); border-color: transparent; color: #8a6d00; }
.src-badge.self { background: var(--mint-soft); border-color: transparent; color: #1f7a58; }
.src-badge.sys { background: var(--card-2); border-color: transparent; color: var(--muted); }

/* 阶段步骤 */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 14px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted);
  z-index: 1;
}
.step.done .step-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.step.current .step-dot { background: var(--lemon); border-color: var(--lemon); color: var(--ink); }
.step-line { position: absolute; left: 11px; top: 24px; bottom: 4px; width: 1px; background: var(--line-2); }
.step:last-child .step-line { display: none; }

/* SOP 勾选行 */
.task-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: 0.13s;
  border: 1px solid transparent;
}
.task-row:hover { background: var(--card-2); }
.task-row.overdue { background: var(--red-soft); border-color: #f6d5d1; }
.task-check {
  width: 18px; height: 18px; flex: 0 0 auto;
  border-radius: 6px; border: 1.6px solid var(--line-2);
  display: grid; place-items: center; margin-top: 1px;
  background: #fff; transition: 0.15s;
}
.task-row.done .task-check { background: var(--ink); border-color: var(--ink); color: #fff; }
.task-row.skipped .task-check { background: var(--card-2); border-color: var(--line-2); }
.task-row.done .task-title { color: var(--muted); text-decoration: line-through; }
.task-title { font-size: 13px; font-weight: 550; }
.task-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 3px; font-size: 11.5px; color: var(--muted); }

/* 看板列 */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.lane { background: var(--card-2); border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; gap: 9px; min-height: 240px; }
.lane-head { display: flex; align-items: center; gap: 7px; padding: 0 2px 4px; }
.lane-head strong { font-size: 12.5px; }
.lane-head .count { font-size: 11px; color: var(--muted); font-family: var(--f-num); }
.lane-card {
  background: #fff; border-radius: var(--r-md); padding: 11px 12px;
  border: 1px solid var(--line); cursor: pointer;
  transition: 0.15s; display: flex; flex-direction: column; gap: 6px;
}
.lane-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--line-2); }
.lane-card .lc-title { font-size: 12.5px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-card .lc-sub { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 模态 */
.modal-host, .drawer-host { position: fixed; inset: 0; z-index: 90; }
/* 弹窗要能盖住抽屉：候选人侧边栏里点「预约面试」，出来的是标准表单弹窗。
   两个 host 同 z-index 时谁在 DOM 后面谁在上，而 drawer-host 写在 modal-host 之后 —— 不提这一档，
   弹窗会被抽屉整个挡住，看起来像点了没反应（2026-11-13）。 */
.modal-host { z-index: 96; }
.modal-mask, .drawer-mask { position: absolute; inset: 0; background: rgba(23, 23, 23, 0.36); backdrop-filter: blur(2px); }
.modal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  width: min(560px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop 0.18s ease;
}
.modal.wide { width: min(880px, calc(100vw - 32px)); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.985); } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 16px; }
.modal-head .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1 1 auto; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--card-2);
}

.drawer {
  position: absolute;
  right: 14px; top: 14px; bottom: 14px;
  width: min(680px, calc(100vw - 28px));
  background: #fff;
  border-radius: var(--r-shell);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide 0.2s ease;
}
@keyframes slide { from { opacity: 0; transform: translateX(16px); } }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-body { padding: 18px 22px 28px; overflow-y: auto; flex: 1 1 auto; }
.drawer-foot { padding: 13px 22px; border-top: 1px solid var(--line); background: var(--card-2); display: flex; gap: 9px; justify-content: flex-end; }

/* ---------------------------------------------------------------------------
   操作反馈弹窗（原右下角 Toast → 居中卡片）
   成功：打勾；失败：圆圈感叹号；提醒：圆圈问号；提示：圆圈 i
   卡片白底 + 唯一强调色只落在图标盘与进度条上，符合「中性底承载信息」
   --------------------------------------------------------------------------- */
.toast-host {
  position: fixed;
  inset: 0;
  z-index: 130;              /* 高于 modal(90)，弹窗内保存也能盖住 */
  display: grid;
  place-items: center;
  pointer-events: none;
}
.toast-host:empty { display: none; }

.toast-veil {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.15);
  backdrop-filter: blur(3px) saturate(1.04);
  -webkit-backdrop-filter: blur(3px) saturate(1.04);
  animation: veilIn 0.18s ease both;
}
.toast-veil.is-out { animation: veilOut 0.18s ease both; }
@keyframes veilIn { from { opacity: 0; } }
@keyframes veilOut { to { opacity: 0; } }

.toast {
  position: relative;
  width: min(372px, calc(100vw - 40px));
  padding: 34px 30px 32px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(23, 23, 23, 0.03),
    0 30px 70px -26px rgba(23, 23, 23, 0.42),
    0 2px 6px rgba(23, 23, 23, 0.05);
  animation: toastPop 0.3s cubic-bezier(0.18, 0.9, 0.26, 1.1) both;
}
.toast.is-out { animation: toastOut 0.18s ease both; }
@keyframes toastPop {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-4px) scale(0.975); }
}

/* 状态图标盘 */
.toast-ico {
  position: relative;
  width: 78px; height: 78px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  animation: icoPop 0.34s cubic-bezier(0.2, 1.25, 0.4, 1) both;
}

/* ---------------------------------------------------------------------------
   轻提示：成功 / 普通提示 —— 中上部一枚小胶囊，自己弹一下就走
   不遮屏、不要关闭按钮、不要倒计时条。失败的才用下面那套居中大卡片。
   --------------------------------------------------------------------------- */
.toast-host.is-light {
  place-items: start center;
  padding-top: 84px;
}
.toast.toast-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: min(420px, calc(100vw - 48px));
  padding: 9px 16px 9px 11px;
  border-radius: 999px;
  text-align: left;
  cursor: default;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(23, 23, 23, 0.06),
    0 12px 28px -16px rgba(23, 23, 23, 0.3),
    0 1px 3px rgba(23, 23, 23, 0.04);
  animation: toastDrop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.05) both;
}
.toast.toast-light.is-out { animation: toastLift 0.14s ease both; }
@keyframes toastDrop {
  from { opacity: 0; transform: translateY(-9px) scale(0.97); }
}
@keyframes toastLift {
  to { opacity: 0; transform: translateY(-6px); }
}
.toast.toast-light .toast-ico {
  width: 21px; height: 21px;
  margin: 0;
  flex: 0 0 auto;
  animation: none;
}
.toast.toast-light .toast-ico::after { display: none; }
.toast.toast-light .toast-ico svg { width: 15px; height: 15px; }
.toast.toast-light .toast-ico svg [data-draw] { animation: none; stroke-dashoffset: 0; }
.toast.toast-light .toast-msg {
  font-size: 13px;
  font-weight: 560;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.toast-light .toast-msg.is-long { font-size: 13px; font-weight: 560; line-height: 1.5; }
.toast.toast-light .toast-note {
  margin: 0 0 0 2px;
  font-size: 12px;
  color: var(--muted-2);
  white-space: nowrap;
}
.toast.toast-light.ok { background: #fff; }
.toast.toast-light.info { background: #fff; }
@keyframes icoPop {
  from { opacity: 0; transform: scale(0.78); }
}
.toast-ico::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px currentColor;
  opacity: 0;
  animation: icoHalo 0.75s 0.1s ease-out both;
}
@keyframes icoHalo {
  0% { opacity: 0.28; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.28); }
}
.toast-ico svg { width: 40px; height: 40px; display: block; }
.toast-ico svg [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawStroke 0.42s 0.08s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

.toast-msg {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.toast-msg.is-long { font-size: 15px; font-weight: 600; line-height: 1.62; }
.toast-note {
  margin: 8px 0 0;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--muted);
}
.toast-hint {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

/* 关闭 */
.toast-x {
  position: absolute;
  top: 11px; right: 11px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  transition: 0.15s;
}
.toast-x:hover { background: var(--card-2); color: var(--ink-3); }

/* 自动关闭进度条 */
.toast-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(23, 23, 23, 0.045);
}
.toast-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  animation: barDrain var(--dur, 2200ms) linear forwards;
}
@keyframes barDrain { to { transform: scaleX(0); } }

/* 四种状态配色 */
.toast.ok {
  background: radial-gradient(140% 88% at 50% -26%, #eff9f4 0%, #ffffff 58%);
}
.toast.err {
  background: radial-gradient(140% 88% at 50% -26%, #fdf2f0 0%, #ffffff 58%);
}
.toast.warn {
  background: radial-gradient(140% 88% at 50% -26%, #fdf8e4 0%, #ffffff 58%);
}
.toast.info {
  background: radial-gradient(140% 88% at 50% -26%, #eef4fd 0%, #ffffff 58%);
}
.toast.ok .toast-ico { background: var(--green-soft); color: #2f9d6d; }
.toast.ok .toast-bar i { background: #8ad8b3; }
.toast.err .toast-ico { background: var(--red-soft); color: #cf4a38; }
.toast.err .toast-bar i { background: #f2ab9f; }
.toast.warn .toast-ico { background: var(--lemon-soft); color: #a87c00; }
.toast.warn .toast-bar i { background: #f3dd8a; }
.toast.info .toast-ico { background: var(--blue-soft); color: #2f6bbf; }
.toast.info .toast-bar i { background: #b3cdf5; }

@media (prefers-reduced-motion: reduce) {
  .toast, .toast-veil, .toast-ico, .toast-ico::after { animation-duration: 0.01ms !important; }
  .toast-ico svg [data-draw] { animation-duration: 0.01ms !important; stroke-dashoffset: 0; }
  .toast-bar i { animation-duration: var(--dur, 2200ms) !important; }
}

/* 统计小卡片 */
.stat-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--card-2);
  min-width: 0;
}
.stat-mini .icon {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.stat-mini b { font-family: var(--f-num); font-size: 16px; display: block; line-height: 1.2; }
.stat-mini span { font-size: 11px; color: var(--muted); }

/* 通知列表 */
.notice-item {
  display: flex; gap: 11px; padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.notice-item:last-child { border-bottom: 0; }
.notice-item .n-title { font-size: 13px; font-weight: 600; }
.notice-item .n-body { font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: pre-line; }
.notice-item .n-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* 权限矩阵 */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.matrix th, .matrix td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.matrix th { position: sticky; top: 0; background: var(--card-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); z-index: 1; }
.matrix th:first-child, .matrix td:first-child { position: sticky; left: 0; background: #fff; }
.matrix th:first-child { background: var(--card-2); z-index: 2; }
.matrix tbody tr:hover td { background: #fcfaf7; }
.matrix tbody tr:hover td:first-child { background: #fcfaf7; }
.matrix .cbox {
  width: 16px; height: 16px; border-radius: 5px; border: 1.4px solid var(--line-2);
  display: grid; place-items: center; margin: 0 auto; background: #fff; cursor: pointer;
}
.matrix .cbox.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.matrix td.mid { text-align: center; }
.matrix .mod-row td { background: var(--card-2); font-weight: 650; font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); }

/* 空/加载 */
.skeleton {
  background: linear-gradient(90deg, #f3f0ec 25%, #faf8f5 37%, #f3f0ec 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--r-md);
  height: 14px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--line-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-block { display: grid; place-items: center; padding: 60px; }

/* 分页 */
.pager { display: flex; align-items: center; gap: 10px; padding-top: 14px; font-size: 12.5px; color: var(--muted); }

/* 无限滚动列表的页脚：只报「已显示多少 / 共多少」，滑到底自动续上，不再有翻页按钮 */
.feed-foot {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 16px 0 6px; font-size: 12px; color: var(--muted);
  letter-spacing: .01em;
}
.feed-foot.is-error { color: var(--red); }
.feed-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3, #98a2b3);
  animation: feedPulse 1s ease-in-out infinite;
}
@keyframes feedPulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* 打印证书 */
.certificate {
  background: linear-gradient(160deg, #fffdf7, #fff);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}
.certificate::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--lemon);
  opacity: 0.16;
}
.cert-grade {
  font-family: var(--f-num);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ============================== 组织架构 ============================== */

/* 顶部四格统计，跟随首页便当格节奏 */
.org-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 左右两栏：左树右详情 */
.org-layout {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;   /* 右侧详情卡跟部门树等高，避免下方留一截空白 */
  margin-top: 12px;
}
.org-layout > * { min-width: 0; }

/* ---- 左：部门树 ---- */
.org-panel { padding: 14px 14px 10px; }

.org-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--muted);
  flex: 1 1 auto;
  min-width: 0;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.org-search:focus-within { border-color: var(--line-2); background: #fff; }
.org-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
.org-search input::placeholder { color: var(--muted-2); }
.org-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.org-alert {
  margin-bottom: 8px;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  background: var(--red-soft);
  color: #98352a;
  font-size: 12px;
  line-height: 1.5;
}

.org-tree {
  overflow: auto;
  overscroll-behavior: contain;
  height: min(600px, calc(var(--vh100) - 330px));
  min-height: 320px;
  padding-right: 4px;
  margin-right: -4px;
}
.org-tree::-webkit-scrollbar { width: 8px; }
.org-tree::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid #fff; }

.org-node { position: relative; }

.org-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px 0 calc(6px + var(--d, 0) * 15px);
  border-radius: var(--r-sm);
  cursor: pointer;
  user-select: none;
  transition: background 0.13s ease;
}
.org-row:hover { background: var(--card-2); }
.org-row.active { background: var(--ink); }
.org-row.active .org-label { color: #fff; font-weight: 600; }
.org-row.active .org-num { color: rgba(255, 255, 255, 0.62); background: rgba(255, 255, 255, 0.12); }
.org-row.active .org-caret { color: rgba(255, 255, 255, 0.7); }
.org-row.active .chip-line { background: rgba(255, 255, 255, 0.14); border-color: transparent; color: rgba(255, 255, 255, 0.8); }

.org-caret,
.org-caret-ph {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  display: grid; place-items: center;
}
.org-caret {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.16s ease, color 0.13s ease;
}
.org-caret:hover { color: var(--ink); background: rgba(23, 23, 23, 0.05); }
.org-caret.open { transform: rotate(90deg); }

.org-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.8px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.org-num {
  flex: 0 0 auto;
  min-width: 22px;
  text-align: center;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--card-2);
  color: var(--muted);
  font-family: var(--f-num);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

/* ---- 右：部门详情 ---- */
.org-side {
  position: sticky;
  top: 0;
  height: 100%;            /* 跟左边部门树等高，内容少时也不留半截白 */
  max-height: calc(var(--vh100) - 220px);
  overflow: auto;
  padding: 16px 20px;
}
.org-side::-webkit-scrollbar { width: 8px; }
.org-side::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid #fff; }

.org-side-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
}
.org-side-empty .empty { padding: 0 28px; }

/* 部门名 + 钉钉 ID 同一行：名字当主角，编号贴后面，省掉「部门」小标题那一行 */
.org-side-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.org-side-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  word-break: break-word;
}
.org-side-meta {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--f-num);
  letter-spacing: 0.01em;
}

.org-side-kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.org-side-kpi > div {
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--card-2);
  min-width: 0;
}
.org-side-kpi b {
  display: block;
  font-family: var(--f-num);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.org-side-kpi span { font-size: 11px; color: var(--muted); }

.org-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.org-kv:first-of-type { margin-top: 6px; }
.org-kv > span:first-child { color: var(--muted); flex: 0 0 auto; }
.org-kv > span:last-child { color: var(--ink-2); font-weight: 550; min-width: 0; text-align: right; }

/* 下级部门横排一行：标签 + chips 同一行，不再占两行 */
.org-subrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 14px;
}
.org-subrow-label { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.org-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.org-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.13s ease, background 0.13s ease;
}
.org-chip:hover { background: #fff; border-color: var(--line-2); }
/* 点亮态：只切下方成员列表，不换部门，所以用「描边加深 + 计数反色」表示选中，不做整块填色 */
.org-chip.on {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 650;
}
.org-chip.on:hover { background: #fff; border-color: var(--ink); }
.org-chip.on em { background: var(--ink); color: #fff; }
.org-chips-hint { margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.org-scope-name { font-weight: 500; color: var(--muted); font-size: 12px; }
.org-link {
  border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px;
  color: var(--ink-2); cursor: pointer; border-bottom: 1px solid var(--line-2);
  white-space: nowrap; line-height: 1.5;
}
.org-link:hover { color: var(--ink); border-color: var(--ink); }
.org-chip em {
  font-style: normal;
  font-family: var(--f-num);
  font-size: 10.5px;
  color: var(--muted);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 0 5px;
  min-width: 17px;
  text-align: center;
}

.org-members {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.org-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: background 0.13s ease;
}
.org-member:hover { background: var(--card-2); }
.org-member-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-member-sub {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
}

/* 待补录提示条 */
/* ---- 数据体检卡（可轮播）：一条一条切，缺几项就有几条 ---- */
.org-gap {
  grid-column: span 4;
  gap: 10px;
  padding: 13px 18px 15px;
  background: #fdfaf1;
  border-color: var(--line);
}
.org-gap-ok { flex-direction: row; align-items: center; gap: 12px; background: var(--card); }
.org-gap-ok .gap-desc { margin-top: 2px; }

.gap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-title { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink); }
.gap-nav { display: flex; align-items: center; gap: 6px; }
.gap-arrow {
  width: 22px; height: 22px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: #fff;
  color: var(--ink-3); display: grid; place-items: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.gap-arrow:hover { border-color: var(--ink-3); color: var(--ink); }
.gap-dots { display: flex; align-items: center; gap: 5px; padding: 0 2px; }
.gap-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); transition: 0.18s ease; }
.gap-dots i.on { width: 14px; border-radius: 3px; background: var(--ink); }

.gap-track { position: relative; }
.gap-item { display: none; align-items: center; gap: 12px; }
.gap-item.on { display: flex; animation: gapIn 0.26s ease; }
@keyframes gapIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
.gap-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lemon);
  color: #6b4d00;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--f-num);
}
.gap-icon.ok { background: var(--mint); color: #1f6b52; }
.gap-name { font-size: 13px; font-weight: 650; color: var(--ink); }
.gap-num {
  font-family: var(--f-num);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 2px;
}
.gap-desc { font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.5; }

/* 补录弹窗 */
.org-bf-tip {
  padding: 10px 13px;
  border-radius: var(--r-md);
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.org-bf-list {
  margin: 0 -4px;
  padding: 0 4px;
}
.org-bf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.org-bf-row:last-child { border-bottom: 0; }
.org-bf-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.org-bf-name em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: #2b5a9e;
  background: var(--blue-soft);
  border-radius: var(--r-pill);
  padding: 1px 6px;
}
.org-bf-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-bf-date {
  flex: 0 0 auto;
  width: 152px;
  height: 32px;
  font-size: 12.5px;
  font-family: var(--f-num);
  color: var(--ink);
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: #fff;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
.org-bf-date:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06); }

/* 响应式 */
@media (max-width: 1280px) {
  .bento.home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell.span3, .cell.span4 { grid-column: span 2; }
  /* 工作台四张等高小卡：两列布局下各占一列（span2 在 2 列网格里会整行铺开，一张卡一行太浪费） */
  .bento.home > .cell.home-half { grid-column: auto; }
  .org-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-layout { grid-template-columns: 290px minmax(0, 1fr); }
  /* 生命周期卡只剩两列宽，节点右内边距收紧一档 */
  .jrn-node { padding-right: 14px; }
}

@media (max-width: 1024px) {
  :root { --rail-w: 76px; }
  .rail { padding: 18px 10px 12px; align-items: center; }
  .rail-brand-text, .rail-item span:not(.rail-badge), .rail-user-info { display: none; }
  .rail-brand { padding: 0 0 16px; }
  .rail-item { justify-content: center; padding: 10px; }
  .rail-item .rail-badge { position: absolute; top: 2px; right: 4px; margin: 0; }
  .rail-nav { align-items: center; width: 100%; }
  .rail-user { justify-content: center; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  /* 左栏只剩 290px 左右，标题再降一档，避免最后一行只剩一两个字 */
  .login-art { padding: 26px 22px 30px; }
  .login-copy h1 { font-size: 17.5px; line-height: 1.6; }
  .login-copy p { font-size: 11.5px; }
  .login-brand em { font-size: 10px; }
  /* 左栏变窄后圆块会压到品牌文字上，挪到品牌下方当装饰 */
  .login-blob.b1 { width: 150px; height: 150px; right: -74px; top: 122px; }
  .login-blob.b3 { width: 62px; height: 62px; bottom: 210px; }
}

@media (max-width: 860px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { padding: 84px 30px 40px; }
  .login-panel-brand {
    display: flex; align-items: center; gap: 10px;
    position: absolute; top: 24px; left: 28px;
  }
  .login-panel-brand strong { display: block; font-size: 15px; letter-spacing: 0.01em; }
  .login-panel-brand em { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
  .login-panel-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line); box-shadow: none; }
  .app { grid-template-columns: 1fr; padding: 8px; }
  .rail {
    position: fixed; left: 8px; top: 8px; bottom: 8px;
    width: 220px; z-index: 80;
    transform: translateX(-240px);
    transition: transform 0.22s ease;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }
  .rail.open { transform: translateX(0); }
  .rail-brand-text, .rail-item span:not(.rail-badge), .rail-user-info { display: block; }
  .rail-item { justify-content: flex-start; padding: 9px 12px; }
  .rail-nav { align-items: stretch; }
  .only-mobile { display: grid; }
  .bento.home { grid-template-columns: 1fr; }
  /* 单列时横向时间轴放不下一排节点，改成「圆点 + 一条竖线下来」的紧凑列表 */
  .jrn-head { flex-direction: column; gap: 8px; }
  .jrn-meta { justify-content: flex-start; }
  .jrn-track { flex-direction: column; justify-content: flex-start; margin-top: 4px; }
  .jrn-track::before { display: none; }
  .jrn-node {
    flex: 0 0 auto;
    max-width: none;
    padding: 16px 0 4px 18px;
    text-align: left;
  }
  .jrn-node .jrn-dot, .jrn-node:last-child .jrn-dot { left: 0; right: auto; }
  .jrn-node:last-child { text-align: left; }
  /* 竖线从圆点下沿一直画到下一行的圆点，节点之间不留断口 */
  .jrn-node::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 5px;
    bottom: -14px;
    width: 1px;
    background: var(--line-2);
  }
  .jrn-node:last-child::after { display: none; }
  .cell.span2, .cell.span3, .cell.span4 { grid-column: span 1; }
  .org-stats { grid-template-columns: 1fr; }
  .org-layout { grid-template-columns: 1fr; }
  .org-tree { height: auto; max-height: 46vh; }
  .org-side { position: static; height: auto; max-height: none; }
  .view { --view-px: 16px; --view-py: 16px; padding: 16px 16px 28px; }
  .topbar { padding: 14px 16px 12px; }
  .searchbox { display: none; }
  .frow { grid-template-columns: 100px minmax(0, 1fr); }
  .frow .fmeta { display: none; }
}

/* ============================================================================
   员工档案页（#/employees/:id）
   顶部只放「人」，下面按入职四步组织：钉钉信息 / 扫码自填 / 档案上传 / 办理完成
   ========================================================================== */

.archive-hero { padding: 20px 22px 18px; }
.hero-main {
  display: flex; gap: 16px; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap;
}
.hero-id { display: flex; gap: 16px; align-items: flex-start; min-width: 0; flex: 1 1 340px; }
.hero-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hero-name h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; }
.hero-join { display: flex; align-items: baseline; gap: 9px; margin-top: 9px; flex-wrap: wrap; }
.hero-join-label { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.hero-join-date {
  font-family: var(--f-num); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.hero-join-date.pending { color: var(--ink-3); }
.hero-actions { margin-left: auto; }

/* 四步时间线 ---------------------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow-step { position: relative; padding-top: 32px; }
.flow-step::before {
  content: ""; position: absolute; top: 11px; left: 26px; right: -16px; height: 1px;
  background: var(--line-2);
}
.flow-step:last-child::before { display: none; }
.flow-step.done::before { background: var(--mint); }
.flow-dot {
  position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--f-num);
}
.flow-step.done .flow-dot { background: var(--mint); border-color: transparent; color: #14523c; }
.flow-step.ready .flow-dot { background: var(--lemon); border-color: transparent; color: #5a4a05; }
.flow-label { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.flow-date {
  font-size: 11.5px; color: var(--muted); margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.flow-note { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

/* 卡片骨架 ---------------------------------------------------------------- */
.archive-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; align-items: start;
}
.archive-grid .span-2 { grid-column: 1 / -1; }
.card-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.card-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
}
.card-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.card-empty {
  font-size: 12.5px; color: var(--muted); background: var(--card-2);
  border-radius: var(--r-md); padding: 16px 14px; text-align: center; line-height: 1.6;
}

/* 键值网格 ---------------------------------------------------------------- */
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.kv span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.kv b {
  display: block; font-size: 13px; font-weight: 550; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kv b.v-empty { color: var(--muted-2); font-weight: 450; }
.kv-mask {
  font-style: normal; font-size: 9.5px; color: #9a6a2a; background: var(--orange-soft);
  border-radius: 5px; padding: 0 4px; margin-left: 4px; vertical-align: 1px;
}

/* 扫码填写 ---------------------------------------------------------------- */
.scan-wrap { display: flex; gap: 16px; align-items: flex-start; }
.qr-frame {
  flex: none; width: 132px; height: 132px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  display: grid; place-items: center; overflow: hidden;
}
.qr-frame svg { width: 100%; height: 100%; display: block; }
.qr-frame.big { width: 260px; height: 260px; margin: 0 auto; }
.qr-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; font-size: 11px; color: var(--muted); height: 100%;
}
.qr-skeleton {
  width: 100%; height: 100%; border-radius: 10px;
  background: linear-gradient(100deg, #f3efe9, #e7e2db, #f3efe9);
  background-size: 200% 100%; animation: qrshimmer 1.3s ease-in-out infinite;
}
@keyframes qrshimmer { 0% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
.scan-side { min-width: 0; }
.scan-stat b { font-family: var(--f-num); font-size: 26px; letter-spacing: -0.03em; }
.scan-stat b em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 500; }
.scan-stat span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.missing-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.missing-chip {
  font-size: 10.5px; color: var(--ink-3); background: var(--card-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 8px;
}
.scan-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
}
.scan-field {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--ink-3); min-width: 0;
}
.scan-field b {
  font-weight: 500; color: var(--muted-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.scan-field.ok b { color: var(--ink-2); }

/* 上传 -------------------------------------------------------------------- */
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-md);
  background: var(--card-2); padding: 22px 16px; text-align: center;
  cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease;
}
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: #fff; }
.dz-icon {
  width: 40px; height: 40px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center;
  margin: 0 auto 9px; color: var(--ink-2);
}
.dz-text { font-size: 12.5px; color: var(--ink-2); }
.dz-text b { font-weight: 600; }
.dz-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.doc-list { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
/* 文件行：两行网格——第一行「类型徽章 + 标题（省略） + 图标按钮」，
   第二行 meta（大小 · 来源 · 时间）整行铺满、单行省略。
   这样即使单栏只有 240px，meta 也不会被按钮挤成竖排。 */
.doc-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'kind head' 'meta meta';
  column-gap: 9px; row-gap: 3px; align-items: center;
  padding: 9px 2px; border-bottom: 1px solid var(--line);
  /* 整行可点：点标题/元信息就直接打开文件（行内的打开、删除按钮各管各的） */
  cursor: pointer; border-radius: 8px; outline: none;
  transition: background .13s ease;
}
.doc-row:hover { background: var(--card-2); }
.doc-row:focus-visible { background: var(--card-2); box-shadow: 0 0 0 2px var(--line-2); }
.doc-row:last-child { border-bottom: 0; }
.doc-kind {
  grid-area: kind; flex: none; width: 42px; height: 26px; border-radius: 7px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.doc-kind.pdf { background: var(--orange-soft); color: #9a5a2a; }
.doc-kind.doc { background: var(--blue-soft); color: #2f5c96; }
.doc-head { grid-area: head; display: flex; align-items: center; gap: 6px; min-width: 0; }
.doc-title { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta {
  grid-area: meta; font-size: 11px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 图标动作（打开 / 删除）：窄栏里比文字按钮省一半宽度 */
.doc-acts { flex: none; display: flex; align-items: center; gap: 2px; }
.doc-act {
  width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--muted); display: grid; place-items: center;
  cursor: pointer; text-decoration: none; padding: 0; transition: 0.15s;
}
.doc-act:hover { background: var(--card-2); border-color: var(--line); color: var(--ink); }
.doc-act.is-del:hover { background: var(--red-soft, #fdeceb); border-color: var(--red); color: var(--red); }

/* 字段附件槽（身份证 / 学历证件 / 形象照 / 工牌照 / 工资卡 / 背调文件） --------- */
.hero-sub { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-sub span { font-size: 11.5px; color: var(--muted); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; align-items: stretch; }
.fslot {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2);
  padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  /* 卡片高度只由结构决定：头 + 56 高的图区 + 按钮。传 1 张还是 8 张，卡片一样高（用户口径 2026-11-09） */
  height: 100%;
}
.fslot-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fslot-head > span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.fslot-multi { font-size: 10px; font-weight: 500; color: var(--muted-2); font-style: normal; margin-left: 4px; }
/* 图区固定 56px 高：多张时横向排开、超出可横向滑动（滚动条隐藏，露出半张就是"还有更多"的暗示），
   绝不换行 —— 一换行整张卡就被顶高，同排卡片高矮不齐 */
.fslot-body {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  height: 56px; flex: 0 0 56px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  /* 右边一间淡出：多图横向溢出时不会像被硬切了一刀（单图/空槽时遮的是留白，肉眼无感） */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent 100%);
}
.fslot-body::-webkit-scrollbar { display: none; }
.fslot-item { position: relative; flex: 0 0 auto; }
.fslot-thumb {
  display: block; width: 56px; height: 56px; border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--line); background: #fff;
}
.fslot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fslot-doc {
  display: block; max-width: 190px; padding: 8px 10px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 删除按钮挪进图片内角：图区是滚动容器（overflow:hidden），浮在外侧会被裁掉半个圆 */
.fslot-del {
  position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 11px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18);
}
.fslot-del:hover { color: var(--red); border-color: var(--red); }
.fslot-empty {
  width: 100%; height: 56px; border-radius: var(--r-sm); border: 1px dashed var(--line-2);
  display: grid; place-items: center; font-size: 11px; color: var(--muted-2); background: #fff;
}
.fslot-btn { align-self: flex-start; }

/* 档案选项（系统设置） ------------------------------------------------------ */
.opt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.opt-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 4px 0 11px;
  border-radius: var(--r-pill); background: var(--card-2); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2);
}
.opt-chip button {
  width: 16px; height: 16px; border-radius: 50%; border: 0; background: transparent;
  color: var(--muted-2); font-size: 13px; line-height: 1; cursor: pointer; padding: 0;
}
.opt-chip button:hover { background: var(--red-soft); color: var(--red); }
.opt-chip.off { color: var(--muted-2); text-decoration: line-through; }

/* 合同版本引用 ------------------------------------------------------------ */
.con-list { margin-top: 12px; display: flex; flex-direction: column; }
.con-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.con-row:last-child { border-bottom: 0; }
.con-kind {
  flex: none; padding: 3px 9px; border-radius: var(--r-pill); background: var(--blue-soft);
  color: #2f5c96; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.con-ver { font-size: 12.5px; font-weight: 550; }

/* 考核 / 访谈 -------------------------------------------------------------- */
.review-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; padding-bottom: 0; }
.review-comment {
  font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.6;
  background: var(--card-2); border-radius: 10px; padding: 8px 10px;
}
.iv-list { display: flex; flex-direction: column; }
.iv-row {
  display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.iv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.iv-date {
  flex: none; width: 42px; font-family: var(--f-num); font-size: 12px;
  color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px;
}
.iv-summary { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.55; }

/* SOP --------------------------------------------------------------------- */
.sop-line { display: flex; gap: 10px; background: var(--card-2); border-radius: var(--r-md); padding: 12px 13px; }
.sop-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card-2); border-radius: var(--r-md); padding: 12px 14px;
}
.sop-row .sop-url { margin-top: 2px; }
.sop-title { font-size: 12.5px; font-weight: 600; }
.sop-url, .qr-link {
  font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.5;
}
.qr-link { background: var(--card-2); border-radius: 10px; padding: 9px 11px; margin-top: 12px; text-align: left; }
.qr-modal { text-align: center; }
.sop-modal { text-align: left; }

/* 编辑 / 表格 -------------------------------------------------------------- */
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.edit-group + .edit-group { margin-top: 16px; }
.edit-group-head {
  font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em;
  margin-bottom: 8px; text-transform: none;
}
.cell-clip { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid .span-2 { grid-column: span 1; }
}
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 15px; }
  .flow-step { padding-top: 0; padding-left: 34px; }
  .flow-step::before {
    top: 28px; left: 11px; right: auto; bottom: -15px; width: 1px; height: auto;
  }
  .flow-dot { top: 0; }
  .hero-id { flex: 1 1 100%; }
  .hero-actions { margin-left: 0; width: 100%; }
  .hero-name h2 { font-size: 21px; }
  .scan-wrap { flex-direction: column; }
  .kv-grid, .scan-fields, .edit-grid { grid-template-columns: 1fr; }
  .qr-frame { width: 112px; height: 112px; }
}

@media print {
  .rail, .topbar, .drawer-foot, .modal-foot, .no-print { display: none !important; }
  .app { display: block; padding: 0; height: auto; }
  .shell { box-shadow: none; border-radius: 0; }
  .view { --view-px: 0px; --view-py: 0px; overflow: visible; padding: 0; }
}

/* ============================================================================
   试用期流程（新版）：成员列表 / 员工子页面 / 两个看板
   —— 评级配色统一为 S 金 / A 蓝 / B 绿 / C 黄 / D 红
   ========================================================================== */

.chip-gold { background: #f7e0a2; color: #6d4f06; }

/* 层级分布：先把「含义」写出来，人数写在下面 */
.grade-dist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.grade-dist-item { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.gd-code { width: 26px; height: 22px; justify-content: center; padding: 0; }
.gd-label { font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1.25; }
.gd-num { font-family: var(--f-num); font-size: 17px; font-weight: 700; line-height: 1.1; }
/* 统计卡版本：字母 → 含义 → 人数，人数给到最大，一眼看出人堆在哪一档 */
.grade-dist.compact { gap: 3px; }
.grade-dist.compact .grade-dist-item { gap: 2px; }
.grade-dist.compact .gd-code { width: 24px; height: 20px; font-size: 11px; }
.grade-dist.compact .gd-label { font-size: 9.5px; font-weight: 600; letter-spacing: -0.01em; }
.grade-dist.compact .gd-num { font-size: 21px; font-weight: 750; line-height: 1.05; margin-top: 1px; }

/* 成员表：日期与人名不折行，群名过长用省略号（完整名放 title）
 * 2026-11-09 加了「招聘 HR」列后列数到 10，内边距从 14 收到 12（姓名改成只显示短名，
 * 把「（后端组）」这类后缀交给部门列），配合「操作」列吸右，1440 下不用横向滚动。 */
.pm-tbl td, .pm-tbl th { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.pm-tbl .person em { white-space: nowrap; }

/* 成员表里的轻量元素（文档/群名走 .dg-*，见文件末尾的统一块） */
.pm-dash { color: var(--muted-2); font-size: 12.5px; }

/* 姓名只显示短名（「（后端组）」这类后缀交给部门列），特别长的英文名再省略，全名放 title */
.pm-tbl .person > div { min-width: 0; max-width: 108px; }
.pm-tbl .person strong {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pm-tbl tbody td:nth-child(2) > div { max-width: 108px; overflow: hidden; text-overflow: ellipsis; }

/* 招聘 HR：只是一段人名，不是按钮 —— 点行本身进员工主页，这里不再叠交互 */
.pm-rec { display: inline-flex; align-items: baseline; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.pm-rec-former {
  font-style: normal; font-size: 10px; line-height: 1.5; letter-spacing: .01em;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 5px;
}

/* 10 列在 1440 下仍会略微溢出 → 「操作」列吸右（与候选人名单同一套做法），
 * 这样横向滚动时「进入」始终停在可视区右边缘，不用先滚到底。 */
.pm-tbl th:last-child, .pm-tbl td:last-child {
  position: sticky; right: 0; padding-right: 14px;
  box-shadow: -12px 0 12px -14px rgba(0, 0, 0, .35);
}
.pm-tbl th:last-child { background: var(--card-2); z-index: 2; }
.pm-tbl td:last-child { background: var(--card); }
.pm-tbl tbody tr:hover td:last-child { background: #fcfaf7; }

/* ---------- 转正倒计时（跨页面通用） ----------
 * 口径见 ui.js 的 dueClass()：30 天内转正 = 红底小红点，已超期 = 再压一档字重。
 * 之前只有员工档案列表自己判 30 天，试用期管理和工作台只给「已超期」标红，
 * 同一个人在不同页面颜色不一样，2026-11-08 统一到这里。 */
.due-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 1.35; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 30 天内：做成和 chip 同族的红色小标签，扫一眼就能捞出来 */
.due-tag.is-soon,
.due-tag.is-over {
  height: 21px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 11.5px; background: var(--red-soft); color: #a8392f;
  font-weight: 620; letter-spacing: 0.01em;
}
.due-tag.is-over { color: #8f2e25; font-weight: 750; }
.due-tag.is-soon::before,
.due-tag.is-over::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex: none;
}
/* 表格里日期下面那一行：单独占一行，别把「计划转正日期」列撑宽（会把操作列挤出屏幕） */
.due-line { display: block; margin-top: 3px; }
/* 紧凑处（今日日程右侧那行字）只标红、不做药丸，避免和左边的状态 chip 两个色块打架 */
.due-warn { color: #a8392f; font-weight: 650; }

/* ---------- 员工子页面 ---------- */

.pm-hero { display: flex; gap: 14px; align-items: flex-start; }
.pm-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line);
}
.pm-meta > div { display: flex; flex-direction: column; gap: 2px; }
.pm-meta span { font-size: 11px; color: var(--muted); }
.pm-meta b { font-size: 13px; font-weight: 620; }
/* 计划转正日下面那行倒计时：dom 里是 <em>，跟着 .due-tag 走颜色，不要再被斜体/拉伸带歪 */
.pm-meta em { font-style: normal; align-self: flex-start; margin-top: 1px; }

.pm-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pm-action {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 13px 15px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card-2); cursor: pointer; font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pm-action:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pm-action-label { font-size: 13.5px; font-weight: 640; }
.pm-action-sub { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.pm-action.blue { background: var(--blue-soft); border-color: transparent; }
.pm-action.lilac { background: var(--lilac-soft); border-color: transparent; }
.pm-action.mint { background: var(--mint-soft); border-color: transparent; }

.pm-split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; }

/* 会议推进卡 */
.pm-meet { border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; background: var(--card-2); }
.pm-meet.done { background: #fff; }
.pm-meet-at { font-size: 13px; font-weight: 640; }

.pm-flow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pm-flow-item {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 9px 4px 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
}
.pm-flow-dot {
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700;
  background: var(--line); color: var(--muted);
}
.pm-flow-label { font-size: 11.5px; color: var(--ink-3); }
.pm-flow-item.done { background: var(--ink); border-color: transparent; }
.pm-flow-item.done .pm-flow-dot { background: #fff; color: var(--ink); }
.pm-flow-item.done .pm-flow-label { color: #fff; }
.pm-flow-item.current { border-color: var(--lemon); background: var(--lemon-soft); }
.pm-flow-item.current .pm-flow-dot { background: var(--lemon); color: #5a4a05; }
.pm-flow-item.current .pm-flow-label { color: #5a4a05; font-weight: 600; }

.pm-meet-body { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.pm-note {
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 11px; margin-top: 4px;
}
.pm-cert { width: 132px; border-radius: 10px; border: 1px solid var(--line); margin-top: 6px; }
.pm-empty { font-size: 12.5px; color: var(--muted); line-height: 1.7; padding: 8px 0 2px; }

/* 统计卡点开的名单抽屉 */
.pm-drawer-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer;
}
.pm-drawer-row:last-child { border-bottom: 0; }
.pm-drawer-row:hover { background: var(--card-2); }
.pm-drawer-row .title { font-size: 13px; font-weight: 600; }
.pm-drawer-row .sub { font-size: 11.5px; color: var(--muted); }

/* ---------- 参会人选择器 ---------- */

.att { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.att-head {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.att-head .searchbox { flex: 1 1 170px; }
.att-head .searchbox input { width: 100%; }
.att-list { max-height: 280px; overflow: auto; padding: 6px; }
.att-group + .att-group { margin-top: 4px; }
.att-group-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px; font-size: 11px; color: var(--muted);
  font-weight: 600; letter-spacing: 0.03em;
}
.att-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 9px; border-radius: 11px; border: 0;
  background: transparent; cursor: pointer; text-align: left; font: inherit;
}
.att-row:hover { background: var(--card-2); }
.att-row .title { font-size: 12.5px; font-weight: 560; }
.att-row .sub { font-size: 11px; color: var(--muted); }
.att-mark { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.att-row.on { background: var(--blue-soft); }
.att-row.on .att-mark { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.att-chips {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  padding: 9px 10px; border-top: 1px solid var(--line); background: var(--card-2);
}
.att-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2);
  font-size: 11.5px; cursor: pointer;
}
.att-chip em { font-style: normal; font-size: 10px; color: #2b5a9e; font-weight: 700; }
.att-chip:hover { border-color: var(--red); color: var(--red); }

/* ---------- 评级选择 ---------- */
/* 选中态不用描边（描边像表单控件），改用「浮起来 + 投影」，视觉上更像一张被拿起的卡片 */

.grade-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.grade-pick-item {
  position: relative;
  border: 0; border-radius: 14px;
  padding: 12px 6px 11px;
  display: flex; flex-direction: column;
  align-items: center; gap: 3px; cursor: pointer; font: inherit;
  opacity: .72;
  transition: box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}
.grade-pick-item b { font-size: 17px; font-family: var(--f-num); line-height: 1.1; }
.grade-pick-item span { font-size: 10.5px; }
.grade-pick-item:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 3px 10px -4px rgba(16, 20, 24, .18); }
.grade-pick-item.on {
  opacity: 1; transform: translateY(-2px); font-weight: 700;
  box-shadow: 0 12px 26px -12px rgba(16, 20, 24, .45), 0 2px 6px -2px rgba(16, 20, 24, .12);
}
/* 角上一个小实心点，说明"就是我"，不用边框 */
.grade-pick-item.on::after {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8;
}

/* 转正结论是四选一，字比 S/A/B/C/D 长，单独给一份排版：结论名当主标题、说明放小字 */
.grade-pick.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grade-pick-item.is-concl { padding: 13px 8px 12px; }
.grade-pick-item.is-concl b {
  font-size: 13px; font-family: inherit; letter-spacing: 0;
}
.grade-pick-item.is-concl span { font-size: 10px; line-height: 1.35; opacity: .82; }
.grade-pick-item.is-concl .gp-dot { font-size: 15px; line-height: 1; margin-bottom: 2px; }

/* ---------- 证书照片上传 ---------- */
/* 空态是一个虚线投放区 + 上传图标；选完变成居中的预览图（之前是原样塞进框里，图偏左很难看） */

.cert-up {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 20px 16px; width: 100%; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: 14px; background: #fbfcfd;
  transition: border-color .18s, background .18s;
}
.cert-up:hover { border-color: var(--ink-3); background: #f6f8fa; }
/* 点过之后的「可粘贴」状态：边框变实、底色微沉，提示文案由 JS 换成「已就绪」 */
.cert-up.is-armed { border-style: solid; border-color: var(--ink-3); background: #f2f6f9; }
.cert-up .btn { pointer-events: auto; }
.cert-up-icon {
  width: 36px; height: 36px; border-radius: 12px; background: #eceff4;
  display: grid; place-items: center; color: var(--ink-3);
}
.cert-up b { font-size: 12.5px; font-weight: 650; }
.cert-up span { font-size: 11px; color: var(--muted); }

.cert-preview { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.cert-preview > a { display: block; cursor: zoom-in; line-height: 0; }
.cert-preview img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 210px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; object-fit: contain;
}
.cert-preview-bar { display: flex; align-items: center; gap: 8px; }
.cert-preview-bar em { font-style: normal; font-size: 11px; color: var(--muted); }

/* 抽屉里的数字与占比条 */
.big-num { font-family: var(--f-num); font-size: 22px; font-weight: 700; }
.big-num small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.meter { height: 5px; border-radius: 999px; background: var(--line); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }

@media (max-width: 1080px) {
  .pm-split { grid-template-columns: 1fr; }
  .pm-actions { grid-template-columns: 1fr; }
  .grade-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------ 离职办理 ------------------------------ */
.tab-n { font-style: normal; margin-left: 4px; font-size: 10.5px; opacity: .55 }
.mini-select {
  height: 30px; padding: 0 8px; font-size: 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
}
.ob-note {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--card-2);
}
.ob-note.ok { border-color: var(--mint-line, #bfe3d0); background: var(--mint-bg, #f2faf5) }
.ob-note-main { flex: 1; min-width: 240px }
.ob-note-main strong { font-size: 13px }

.ob-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px }
.ob-tpl {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}
.ob-tpl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px }
.ob-tpl-body { flex: 1; min-height: 58px }
.ob-tpl-foot { display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px }
.ob-tpl-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink); text-decoration: none; word-break: break-all }
.ob-tpl-link:hover { color: var(--blue, #2f6fed) }
.ob-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue, #2f6fed); text-decoration: none; font-size: 12.5px }
.ob-link:hover { text-decoration: underline }

.ob-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
}
.ob-copy { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; background: var(--card-2) }
.ob-copy input { border: none; background: transparent; font-size: 12.5px }

.ob-state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.ob-state { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; background: var(--card) }
.tiny-seg button { height: 26px; padding: 0 9px; font-size: 11.5px }

.ob-rule {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}
.ob-rule.off { opacity: .6; background: var(--card-2) }
.ob-log {
  display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
}
.ob-td-body { max-width: 380px; white-space: normal; font-size: 12.5px; color: var(--muted) }
.ob-roster-tbl td { white-space: nowrap }
@media (max-width: 1180px) {
  .ob-tpl-grid { grid-template-columns: 1fr }
  .ob-state-grid { grid-template-columns: 1fr }
}
.ob-docset { display: flex; gap: 4px }
.ob-doc {
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 10.5px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--ink); background: var(--card);
}
.ob-doc:hover { border-color: var(--blue, #2f6fed); color: var(--blue, #2f6fed) }
.ob-doc.off { color: var(--muted); opacity: .4; border-style: dashed }
.bar.orange > i { background: #e79a63; }
.bar.gray > i { background: var(--muted); }

/* ========================= 入职办理 · 文档与考核群 ========================= */
/* 四张统计卡兼任筛选入口：点哪张就只看那一类人，卡片本身要像按钮 */
.bento.doc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doc-stat {
  min-height: 96px;
  padding: 15px 17px;
  gap: 6px;
  overflow: hidden;
}
.doc-stat .cell-label { font-size: 12px; letter-spacing: 0.02em; }
.doc-stat .cell-value { font-size: 27px; }
.doc-stat .cell-value small { font-size: 12px; font-weight: 600; }
.doc-stat .cell-value small { color: var(--tint-soft, var(--muted)); }
.doc-stat-go {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; letter-spacing: 0.03em;
  color: var(--tint-soft, var(--muted)); opacity: 0.75;
}
.doc-stat.on { box-shadow: inset 0 0 0 2px var(--ink); }
.doc-stat.on .doc-stat-go { opacity: 1; }
@media (max-width: 1180px) {
  .bento.doc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ========================= 消息通知 / 数据体检 ========================= */
.bento.nt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .bento.nt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.nt-gap { gap: 0; }
.nt-gap-h { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.nt-gap-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.nt-gap-list { margin-top: 14px; }
.nt-gap-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.nt-gap-row:first-child { border-top: 0; padding-top: 2px; }
.nt-ico {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--lemon-soft); color: #8a6d00;
}
.nt-ico.ok { background: var(--mint-soft); color: #1f7a58; }
.nt-gap-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nt-num { font-family: var(--f-num); font-size: 16px; font-weight: 700; margin-right: 1px; }
.nt-gap-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

.nt-list { gap: 0; }
.nt-rows { margin-top: 8px; }
.nt-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.nt-row:first-child { border-top: 0; }
.nt-dot {
  width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto;
  background: var(--line-2);
}
.nt-dot.on { background: #e79a63; }
.nt-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt-row-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.nt-row-body {
  font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 4px;
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nt-row-meta {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 11.5px; color: var(--ink-3);
}
.nt-link {
  border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px;
  color: var(--ink-2); cursor: pointer; border-bottom: 1px solid var(--line-2);
}
.nt-link:hover { color: var(--ink); border-color: var(--ink); }
.bento.nt-stats.one { grid-template-columns: minmax(0, 1fr); }

/* -------- 2026-11-03 三卡改版：数据体检 / 未读信息 / 连续提醒 -------- */
.bento.nt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento.nt-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nt-card {
  min-height: 138px; padding: 18px 20px; gap: 6px;
  justify-content: flex-start; overflow: hidden;
}
.nt-card .cell-label { font-size: 12px; letter-spacing: 0.02em; opacity: 0.9; }
.nt-card .cell-value {
  font-family: var(--f-num); font-size: 34px; font-weight: 700; line-height: 1.06;
  display: flex; align-items: baseline; gap: 5px;
}
.nt-card .cell-value small { font-size: 12px; font-weight: 600; }
.nt-card .cell-foot { margin-top: auto; font-size: 11.5px; line-height: 1.5; }
.nt-card-mark {
  position: absolute; top: 17px; right: 18px;
  font-size: 11px; letter-spacing: 0.04em; opacity: 0.62;
  color: var(--tint-soft, var(--muted));
}
.nt-card.on { box-shadow: inset 0 0 0 2px var(--ink); }
.cell-ink.nt-card.on { box-shadow: inset 0 0 0 2px var(--lemon); }
.nt-card.on .nt-card-mark { opacity: 1; }

.nt-panel { padding: 20px; gap: 0; }
.nt-panel-h { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.nt-panel-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.nt-hint { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 2px; }
.nt-seg { flex: 0 0 auto; }

/* 未读信息按流程分组 */
.nt-group { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.nt-group:first-child { border-top: 0; margin-top: 16px; padding-top: 0; }
.nt-group-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; color: var(--ink-2);
}
.nt-group-dot {
  width: 18px; height: 18px; border-radius: 6px; flex: 0 0 auto;
  background: var(--card-2); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px;
}
.nt-group-h em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.nt-group .nt-row { border-top: 0; padding: 10px 0 4px; }
.nt-group .nt-row + .nt-row { border-top: 1px solid var(--line); }
.nt-row.unread { cursor: pointer; }
.nt-row.unread:hover .nt-row-title { color: var(--ink); }

/* 连续提醒规则行 */
.nt-rules { margin-top: 4px; }
.nt-rule {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.nt-rule:first-child { border-top: 0; }
.nt-rule.off { opacity: 0.55; }
.nt-rule-name { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.nt-rule-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.nt-rule-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 5px; font-size: 11.5px; color: var(--ink-3);
}

/* 今日提醒状态条 */
.nt-today {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--card-2);
}
.nt-today.ok { background: var(--mint-soft); border-color: transparent; }
.nt-today-ico {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: var(--card); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.nt-today.ok .nt-today-ico { background: #fff; color: #1f7a58; }
.nt-today-h { font-size: 13px; font-weight: 650; }
.nt-today-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* 开关 */
.sw { position: relative; width: 40px; height: 23px; flex: 0 0 auto; cursor: pointer; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sw-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line-2); transition: background 0.16s ease; pointer-events: none;
}
.sw-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); transition: transform 0.16s ease;
}
.sw.on .sw-track { background: var(--ink); }
.sw.on .sw-track::after { transform: translateX(17px); }
.sw.disabled { opacity: 0.4; cursor: not-allowed; }
.sw.disabled input { cursor: not-allowed; }

@media (max-width: 1180px) {
  .bento.nt-cards, .bento.nt-cards.two { grid-template-columns: minmax(0, 1fr); }
  .nt-card { min-height: 0; }
}

/* 通知清单抽屉 */
.nt-cat-body { display: flex; flex-direction: column; gap: 20px; }
.nt-cat-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.nt-cat-h em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.nt-cat-sub { font-size: 11.5px; color: var(--muted); margin: 3px 0 4px; }
.nt-cat-row { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.nt-cat-row:first-of-type { border-top: 0; }
.nt-cat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); margin-top: 7px; flex: 0 0 auto; }
.nt-cat-dot.off { background: var(--line-2); }
.nt-cat-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.nt-cat-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.nt-cat-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

/* ========================= 员工档案（2026-11 改版） ========================= */
/* 顶部返回：细一点、贴上去，避免一屏开头浪费三行高度 */
.emp-topbar { margin: 0 0 8px; }
.emp-back { padding: 4px 9px; font-size: 12px; height: auto; border-radius: 8px; color: var(--ink-3); }
.emp-back:hover { color: var(--ink); }

/* 名字右边的两个入口：入职 SOP / 扫码填写 */
.hero-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; }
.hero-tools .btn { height: 26px; padding: 0 10px; font-size: 12px; }
.hero-dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #e79a63; margin-left: 6px; vertical-align: middle;
}

/* 档案进度：收紧内边距与步骤间距，操作按钮已在右上角 */
.emp-flow { padding: 13px 16px 11px; margin-top: 10px; }
.emp-flow .flow { margin-top: 12px; gap: 12px; }
.emp-flow .flow-step { padding-top: 26px; }
.emp-flow .flow-dot { width: 22px; height: 22px; font-size: 11.5px; }
.emp-flow .flow-label { font-size: 12.5px; }
.emp-flow .flow-note { font-size: 11px; margin-top: 3px; }

/* 个人信息：一栏一类，栏内单列 label/value。
   2026-12-01 用户口径：基础 / 身份 / 部门 / 社保与公积金 并成一行 4 栏、整体收窄，
   不再让「社保与公积金」自己掉到下一行占掉整块高度。
   4 栏后单栏约 250px，列间距相应收到 16px（原来 3 栏时 26px 是给长值留余量的）。 */
.pinfo-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; margin-top: 14px; }
/* 窗口收窄：1180 以下先退两栏，820 以下才退一栏 —— 直接从 4 栏跳成 1 栏会让卡片长到没法看 */
@media (max-width: 1180px) { .pinfo-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .pinfo-cols { grid-template-columns: 1fr; } }
.pinfo-col { min-width: 0; }
.pinfo-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; font-weight: 650; color: var(--ink-2);
  letter-spacing: 0.02em; padding-bottom: 6px; border-bottom: 1px solid var(--line-2);
}
.pinfo-head em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted-2); }
.pinfo-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.pinfo-row > span { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
/* 值默认右对齐单行显示；4 栏之后单栏 ~235px，公司全称这类长值会差 1-2px 被省略号吃掉，
   索性允许换行（只有超长的那一条会折成两行，普通值不受影响）——
   信息完整比「每行都齐平」重要，真放不下也别用 … 把内容藏起来。 */
.pinfo-row > b {
  font-size: 12.5px; font-weight: 550; color: var(--ink); text-align: right;
  min-width: 0; overflow-wrap: anywhere; line-height: 1.35;
}
.pinfo-row > b.v-empty { color: var(--muted-2); font-weight: 500; }
/* 姓名 / 身份证姓名的来源小签：钉钉（蓝）· 多维表（紫）。
   两类来源定色相、统一浅底深字，只做区分不做强调 —— 同屏还有更重要的状态色。 */
.pinfo-src {
  display: inline-block; margin-left: 5px; padding: 0 4px;
  font-style: normal; font-size: 9.5px; font-weight: 600; line-height: 14px;
  border-radius: 4px; vertical-align: 1px; white-space: nowrap;
  color: var(--muted); background: var(--line); border: 1px solid transparent;
}
.pinfo-src[data-src="SYNC_DINGTALK"] { color: #3f6aa8; background: #eaf1fd; border-color: #dbe7fa; }
.pinfo-src[data-src="SYNC_ROSTER"] { color: #6d4bb0; background: #f1eafc; border-color: #e6dcf8; }
/* 钉钉名里括号中的部门/职位：弱化成小字（部门有单独一行，不用跟着名字一起重读） */
.pinfo-suffix { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); }
/* 人员字段：姓名后面跟一个小号部门，说明「是哪一位」（招聘 HR 这类要按人算钱的字段） */
.pinfo-person-dept { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.pinfo-fill {
  border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px;
  color: var(--ink-2); cursor: pointer; border-bottom: 1px dashed var(--line-2);
}
.pinfo-fill:hover { color: var(--ink); border-color: var(--ink); }

/* 证件与照片：并进个人信息卡底部 */
.pinfo-cert { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.pinfo-cert-n { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); }
.pinfo-cert .file-grid { margin-top: 12px; }

/* 档案上传：两张同级卡片左右各一栏，宽高对齐（auto-fit 保证中等宽度也是两列，不会挤成一列） */
.up-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; align-items: stretch; }
/* 2026-11-09：Offer / 员工入职信息 / 劳动合同 三栏并列。
   用户窗口 1080 时内容区约 900px，三栏各约 290px —— 用 minmax(0,1fr) 让它自己分配，
   窄到 1000 以下才收成两栏，760 以下一栏（别在用户常用宽度下偷偷变两栏）。 */
.up-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1000px) { .up-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .up-three { grid-template-columns: minmax(0, 1fr); } }
.up-card { display: flex; flex-direction: column; min-width: 0; }

/* 卡内字段块：**一律「灰小字 label + 框」两段式**（用户口径 2026-11-20「这几张卡片应该格式统一」）。
   以前备注是裸文字、附件空态是灰框、有文件又成了无框列表，三张卡一对比就花：
   现在备注 / 结论 / 附件 / 背调文件全是同一款框（card-2 底 + 1px line + 10px 圆角），
   有内容没内容只差框里的东西，卡片高度由栅格 align-items:stretch 拉齐。 */
.up-files { display: flex; flex-direction: column; flex: 1 1 auto; margin-top: 12px; min-height: 0; }
/* 附件标题行：「附件」灰小字 + 右侧可选按钮（合同模板等）——靠一行对齐，别在卡底再加一行 */
.up-files-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; min-height: 22px; }
.up-files-head .up-note-label { margin-bottom: 0; }
.up-files-head .up-foot { margin: 0; }
.up-files-head .btn { height: 22px; padding: 0 8px; font-size: 11px; }
.up-box {
  flex: 1 1 auto; min-height: 84px; max-height: 216px; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2);
}
/* 纯文字块（备注 / 背调结论）：内容顶到上边，短文本也保持 46px 的最小高度 */
.up-box-text { justify-content: flex-start; min-height: 46px; padding: 8px 10px; }
.up-box .doc-list { margin: 0; }
.up-box .doc-row { padding: 8px 0; }
.up-box-empty { font-size: 12.5px; color: var(--muted-2); text-align: center; line-height: 1.6; }
/* 框内上传入口（后台）：无文件时整块就是放置区，有文件时退成底部一条虚线 */
.up-box .dropzone.up-zone { border: 0; background: none; padding: 0; }
/* 背调文件放进统一框里之后，改成「一行一份」：文件名占满、删除按钮跟在行尾
   （原来的 56px 横向滚动条 + 角标删除按钮在窄框里会把文件名遮掉半个字） */
.up-box .fslot-body {
  height: auto; flex: 0 0 auto; flex-wrap: wrap;
  overflow: visible; -webkit-mask-image: none; mask-image: none;
  align-items: stretch; gap: 6px;
}
.up-box .fslot-item { display: flex; align-items: center; gap: 6px; width: 100%; }
.up-box .fslot-doc { max-width: none; flex: 1 1 auto; }
.up-box .fslot-del {
  position: static; flex: none; width: 22px; height: 22px;
  box-shadow: none; background: none; border-color: transparent;
}
.up-box .fslot-empty { border: 0; background: none; height: auto; padding: 6px 0; }
.up-add {
  margin-top: 4px; padding: 7px 0; border-top: 1px dashed var(--line-2);
  font-size: 11.5px; color: var(--muted); text-align: center; cursor: pointer;
}
.up-add:hover { color: var(--ink); }

/* 三栏时单栏只有 ~240–290px：文件行压紧、kind 徽章收窄（标题/meta 已由 .doc-row 网格保证单行省略） */
.up-three .doc-row { column-gap: 8px; padding: 8px 0; }
.up-three .doc-kind { width: 34px; height: 24px; font-size: 9.5px; border-radius: 6px; }
.up-three .doc-title { font-size: 12px; }
.up-three .doc-meta { font-size: 10.5px; }
.up-three .doc-act { width: 24px; height: 24px; }
.up-three .up-zone { padding: 16px 12px; }
.up-three .card-head-row { gap: 8px; min-height: 56px; }
.up-three .card-sub { font-size: 11px; }
.up-foot { margin-top: 10px; }
.up-zone { padding: 18px 14px; }
.up-zone .dz-text { font-size: 12px; }
.up-zone .dz-hint { font-size: 10.5px; }
.up-meta { margin-bottom: 10px; }
.up-meta .pinfo-row { padding: 5px 0; }

/* 备注行：HR 直接写，失焦自动存 */
.up-note { margin: 10px 0 0; }
.up-note-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 5px; }
.up-note-in {
  width: 100%; min-height: 46px; resize: vertical;
  border: 1px solid var(--line); background: var(--card-2); border-radius: 10px;
  padding: 8px 10px; font: inherit; font-size: 12.5px; line-height: 1.65; color: var(--ink); outline: none;
  transition: 0.15s;
}
.up-note-in::placeholder { color: var(--muted-2); }
.up-note-in:focus { background: #fff; border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.04); }
/* 只读态与可编辑态同款框：HR 看到的就是「自己能填的那个框」，只是不能点（2026-11-20 统一格式） */
.up-note-val {
  min-height: 46px; padding: 8px 10px;
  border: 1px solid var(--line); background: var(--card-2); border-radius: 10px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.65; white-space: pre-line;
}
.up-note-val.is-empty { color: var(--muted-2); }

/* 「去填写」二选一：我来填 / 让他扫码 */
.fill-choice { display: grid; gap: 10px; }
.fill-opt {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; transition: 0.15s; font-family: inherit;
}
.fill-opt:hover { border-color: var(--line-2); background: var(--card-2); }
.fill-ico {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--card-2); color: var(--ink-2);
}
.fill-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fill-txt b { font-size: 13.5px; color: var(--ink); }
.fill-txt em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* 背景调查（2026-11-20）：结论与背调文件已并入统一骨架（.up-note / .up-files / .up-box），
   原来那套 .bg-conclusion / .bg-note-in / .bg-file 一并删掉，别再往这里加新样式。 */

/* 试用期三栏（两周考核 / 约访谈 / 转正述职） */
.emp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.emp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }

/* 转正述职卡内的三个步骤：材料 / 评审 / 结论，做成卡内嵌块，与外两张卡的信息密度对齐 */
.df-step {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: 10px;
  padding: 9px 11px 10px;
}
.df-step + .df-step { margin-top: 8px; }
.df-step-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.df-step-head b { font-size: 12.5px; font-weight: 620; letter-spacing: -0.005em; }
.df-step-head em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: auto; }
.df-num {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-num); font-size: 10.5px; font-weight: 700;
  background: rgba(119, 98, 10, 0.14); color: #6d5a0c;
}
.def-main { min-width: 0; }
.def-name { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-all; }
.def-btn { margin-top: 8px; }
/* 述职材料（可多条）：一行一份，左边名称右边来源（文件 / 链接 + 大小） */
.def-files { display: flex; flex-direction: column; gap: 6px; }
.def-file {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card-2); text-decoration: none; transition: border-color .15s ease, background .15s ease;
}
.def-file:hover { border-color: var(--line-2); background: #fff; }
.def-file-name {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.def-file em { flex: none; font-style: normal; font-size: 11px; color: var(--muted); }
.def-text {
  font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 1180px) {
  /* .pinfo-cols 的断点紧跟它的定义（4 → 2 → 1 栏），不要在这里再写一份，否则会被这条覆盖掉 */
  .up-grid { grid-template-columns: 1fr; }
  .emp-two { grid-template-columns: 1fr; }
}

/* 三张卡（两周考核 / 约访谈 / 转正述职）要一直并排：1080 左右的窗口内容区约 780px，一张 250px 仍能放下，
   真正窄到 900 以下（平板竖屏 / 小窗）才收成一列 */
@media (max-width: 900px) {
  .emp-three { grid-template-columns: 1fr; }
}

/* 试用期 / 转正述职的空态：轻量文字，不要大色块 */
.prob-none, .def-none {
  font-size: 12.5px; color: var(--muted-2); padding: 14px 0 4px;
}
.def-none { padding: 10px 0 2px; }

/* 三张卡只留「一行结论 + 一段评语」（2026-11-09 收矮）：不再有材料/评审/纪要这些块 */
.prob-list { display: flex; flex-direction: column; }
.prob-item { min-width: 0; }
.prob-item + .prob-item {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(23, 23, 23, 0.07);
}
/* 一行放完：标签 + 日期（可省略）+ 右侧链接；放不下时压日期，不让链接掉到第二行 */
.prob-head { display: flex; align-items: center; gap: 7px; min-width: 0; flex-wrap: nowrap; }
.prob-when { flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prob-note {
  margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prob-note.is-empty { color: var(--muted-2); }
.prob-link {
  flex: none; white-space: nowrap; margin-left: auto; font-size: 11.5px; color: var(--ink-2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1px dashed var(--line-2); padding-bottom: 1px;
}
.prob-link:hover { color: var(--ink); border-color: var(--ink); }
.prob-more { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* 登录页：钉钉报错时的「回调地址」提示（可直接复制去开放平台） */
.login-dt-hint {
  margin-top: 8px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md, 12px);
  background: var(--card-2);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.login-dt-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  word-break: break-all;
}
.login-dt-copy {
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.login-dt-copy:hover { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   试用期 · 预约与会议卡（2026-11-03 改版）
   ========================================================================== */

/* ---------------- 顶部三个预约入口：明确「可以点」 ---------------- */

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.book-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.book-card:active { transform: translateY(0); }

.book-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 620;
}

.book-card-sub { font-size: 12px; color: var(--muted); }

/* 「点击预约 →」是这张卡是按钮的最好说明 */
.book-card-go {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  background: var(--card-2);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.book-card:hover .book-card-go {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.book-card.blue { background: linear-gradient(180deg, #f7fbff 0%, #fff 62%); }
.book-card.lilac { background: linear-gradient(180deg, #faf8ff 0%, #fff 62%); }
.book-card.mint { background: linear-gradient(180deg, #f6fdfa 0%, #fff 62%); }

/* ---------------- 会议卡：左流程 / 右操作 ---------------- */

.mtg {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}

.mtg.is-done { background: var(--card-2); }

.mtg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.mtg-kind {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
}

.mtg-kind.blue { background: var(--blue-soft); color: #2b4f7d; }
.mtg-kind.lilac { background: var(--lilac-soft); color: #4b3a75; }
.mtg-kind.mint { background: var(--mint-soft); color: #1f5c45; }

.mtg-when { font-size: 12.5px; color: var(--ink-3); }

.mtg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
}

/* 左侧竖向流程：圆点 + 连线 + 文字 */
.mtg-flow {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfbf9 0%, #fff 100%);
}

.flow-node {
  position: relative;
  display: flex;
  gap: 10px;
  padding-bottom: 16px;
}

.flow-node:last-child { padding-bottom: 0; }

/* 连线：从一个圆点下方连到下一个圆点上方 */
.flow-node:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 1.5px;
  background: var(--line-2);
}

.flow-node.done:not(:last-child)::before { background: #bfe3d2; }

.flow-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--muted);
}

.flow-node.done .flow-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.flow-node.current .flow-dot {
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 23, 23, .06);
}

.flow-text { min-width: 0; padding-top: 1px; }

.flow-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.flow-node.done .flow-label { color: var(--ink); }
.flow-node.current .flow-label { color: var(--ink); font-weight: 680; }
.flow-at { font-size: 11.5px; margin-top: 1px; min-height: 15px; }

/* 右侧：日程 + 操作 + 事实 */
.mtg-side {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mtg-cal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  background: var(--card);
}

.mtg-cal:hover { border-color: var(--ink); color: var(--ink); }
.mtg-cal.warn { color: #9a5314; border-color: #f0dcc2; background: #fffaf2; }
.mtg-cal.ok { color: #17613f; border-color: #cfe6da; background: #f4fbf7; }
.mtg-cal.muted { color: var(--muted); border-style: dashed; }

.mtg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mtg-act { white-space: nowrap; }
.mtg-act.is-done { color: var(--green); border-color: #cfe9dc; background: #f6fdf9; }

.mtg-facts { display: flex; flex-direction: column; gap: 6px; }

.fact {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
}

.fact > span {
  flex: 0 0 34px;
  color: var(--muted);
}

.fact > b { font-weight: 500; color: var(--ink-2); min-width: 0; }
.fact-long { display: block; white-space: pre-wrap; }
.fact-long.rich p { margin: 0 0 4px; }
.fact-long.rich ul { margin: 2px 0 4px 16px; padding: 0; }

/* ---------------- 预约弹窗：日期 + 时间一行 ---------------- */

.sched-when {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, .85fr));
  gap: 8px;
}

.sched-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-2);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.sched-field:hover { border-color: var(--line-2); background: #fff; }

.sched-field-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
}

.sched-field b { font-size: 13.5px; font-weight: 650; }

.sched-field-time select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  padding: 0;
  outline: none;
  cursor: pointer;
}

#sc-date { position: relative; flex-direction: row; align-items: center; gap: 8px; }
#sc-date .sched-field-label { flex: 0 0 auto; }
#sc-date b { flex: 1; }
#sc-date svg { color: var(--muted); }

/* 日期时间浮层：左日历 + 右时间列，fixed 定位只盖在内容上，不把弹窗撑高 */
.dtp {
  position: fixed;
  z-index: 120;
  width: 470px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: 0 18px 48px rgba(23, 23, 23, .16), 0 2px 6px rgba(23, 23, 23, .06);
  padding: 10px 12px 8px;
}

.dtp-main { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }

.dtp-side { display: flex; flex-direction: column; min-height: 0; }

.dtp-side-head {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 2px 4px;
  letter-spacing: .02em;
}

/* 三列：08:00–20:00 一共 26 个半点，一屏全看得见，不用滚 */
.dtp-times {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  align-content: start;
}

.dtp-time {
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-2);
  text-align: center;
  padding: 5px 0;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.dtp-time:hover { background: var(--bg-2); }
.dtp-time.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 650; }

.dtp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.dtp-sum { font-size: 12.5px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 进场动画：从字段下方轻轻落下，像浮层而不是长出来的 */
@keyframes dtpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dtp { animation: dtpIn .12s ease-out; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cal-title { font-size: 13px; font-weight: 650; }

.cal-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cal-nav:hover { border-color: var(--ink); color: var(--ink); }

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 2px;
}

.cal-week span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 2px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-cell {
  height: 32px;
  border: 1px solid transparent;
  border-radius: 10px;      /* 圆角单元格，不再是方块 */
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.cal-cell:hover { background: var(--bg-2); }
.cal-cell.out { color: var(--muted-2); }

/* 今天：描边 + 轻底，不抢选中态 */
.cal-cell.today {
  border-color: var(--line-2);
  background: var(--bg-2);
  font-weight: 650;
}

.cal-cell.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 650;
}

.cal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

/* ---------------- 参会人：左右两栏 ---------------- */

.att2 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
}

.att2-col { display: flex; flex-direction: column; min-width: 0; }

.att2-left { border-right: 1px solid var(--line); }

.att2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
}

.att2-search { margin: 8px 10px; }
.att2-search input { font-size: 12.5px; }

.att2-list {
  max-height: 268px;
  overflow: auto;
  padding: 0 8px 10px;
}

.att2-group { margin-top: 4px; }

.att2-group-head {
  font-size: 11px;
  color: var(--muted);
  padding: 6px 4px 4px;
  letter-spacing: .02em;
}

.att2-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}

.att2-row:hover { background: var(--bg-2); }
.att2-row.on { background: #f4f8ff; border-color: #dbe7fa; }
.att2-row .title { font-size: 13px; font-weight: 600; }
.att2-row .sub { font-size: 11px; color: var(--muted); }

.att2-role {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}

.att2-plus {
  font-size: 11.5px;
  color: var(--muted);
  flex: 0 0 auto;
}

.att2-row.on .att2-plus { color: #2b6cb0; font-weight: 650; }

.att2-picked {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 312px;
  overflow: auto;
}

.att2-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card-2);
}

.att2-pill.preset { background: #fff; border-color: #dfe8f6; }
.att2-pill .title { font-size: 12.5px; font-weight: 620; }
.att2-pill .sub { font-size: 11px; color: var(--muted); }

.att2-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  display: inline-flex;
}

.att2-x:hover { background: var(--bg-2); color: var(--red); }

.att2-empty {
  padding: 26px 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------------- 参会人 7:3：左组织架构 / 右已选 ---------------- */

.att2.att-73 { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }

.att-73 .att2-list,
.att-73 .att2-picked {
  height: 322px;
  max-height: 322px;
}

.att-73 .att2-picked { padding: 8px; gap: 5px; }

/* 部门行：可折叠的目录，数字是「已选/总人数」，搜索时是命中数 */
.p-dept {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 2px;
  padding: 5px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
}

.p-dept:hover { background: var(--bg-2); }
.p-dept.static { cursor: default; margin-top: 6px; }
.p-dept.static:hover { background: transparent; }
.p-dept .p-caret { flex: 0 0 auto; color: var(--muted-2); transition: transform .15s ease; }
.p-dept.open .p-caret { transform: rotate(90deg); }
.p-dept .p-dept-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-dept .p-dept-n {
  margin-left: auto;
  padding-left: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.p-dept.has-sel { color: var(--ink); }
.p-dept.has-sel .p-dept-n { color: #2b6cb0; }

/* 成员行：头像 + 名字，选中时名字右边一个勾，不再画「已选」框 */
.p-row { padding: 5px 8px; }
.p-row .title { font-size: 12.5px; font-weight: 600; }
.p-row .sub { font-size: 10.5px; }
.p-row.on { background: #f4f8ff; border-color: transparent; }
.p-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2b6cb0;
  color: #fff;
}

.p-kids { display: block; }

/* ---------------- 日程预览弹窗 ---------------- */

.pv { display: flex; flex-direction: column; gap: 14px; }

.pv-when {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .82fr));
  gap: 8px;
}

#pv-date { flex-direction: row; align-items: center; gap: 8px; }
#pv-date .sched-field-label { flex: 0 0 auto; }
#pv-date b { flex: 1; }
#pv-time { flex-direction: row; align-items: center; gap: 8px; }
#pv-time .sched-field-label { flex: 0 0 auto; }
#pv-time b { flex: 1; font-variant-numeric: tabular-nums; }

.pv-span {
  margin-top: -6px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pv-block {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--card-2);
}

.pv-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 8px;
}

.pv-people { display: flex; flex-wrap: wrap; gap: 6px; }

.pv-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  font-size: 12.5px;
}

.pv-block textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 9px 11px;
  resize: vertical;
  outline: none;
}

.pv-block textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, .06); }

.pv-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: #a3702f;
}

/* ---------------- 富文本编辑器 ---------------- */

.rte {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
}

.rte-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--card-2);
}

.rte-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
}

.rte-btn:hover { background: #fff; border-color: var(--line); color: var(--ink); }

.rte-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; }

.rte-area {
  min-height: 190px;
  max-height: 420px;
  overflow: auto;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.7;
  outline: none;
}

.rte-area:empty::before {
  content: attr(data-placeholder);
  color: var(--muted-2);
}

.rte-area h3 { font-size: 14.5px; margin: 8px 0 4px; }
.rte-area p { margin: 0 0 6px; }
.rte-area ul, .rte-area ol { margin: 4px 0 6px 18px; padding: 0; }
.rte-area:focus { background: #fffefd; }

@media (max-width: 1100px) {
  .book-grid { grid-template-columns: 1fr; }
  .mtg-grid { grid-template-columns: 1fr; }
  .mtg-flow { border-right: 0; border-bottom: 1px solid var(--line); }
  .sched-when { grid-template-columns: 1fr 1fr; }
  .att2 { grid-template-columns: 1fr; }
  .att2.att-73 { grid-template-columns: 1fr; }
  .att2-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .att-73 .att2-list, .att-73 .att2-picked { height: 220px; max-height: 220px; }
  .pv-when { grid-template-columns: 1fr 1fr; }
  .dtp { width: min(470px, calc(100vw - 20px)); }
  .dtp-main { grid-template-columns: minmax(0, 1fr) 128px; }
}

/* ==========================================================================
   SOP 模板（链接 + 版本）—— 入职 / 离职共用
   ========================================================================== */

.sop-tpl-url {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf7;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sop-tpl-empty { border-style: dashed; background: #fdfcf9; }

.sop-ver {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.sop-ver-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 96px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}
.sop-ver-row:first-child { border-top: 0; }
.sop-ver-row.is-current { background: #f6fbf8; }

.sop-ver-no {
  font-family: var(--f-num);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.sop-ver-main { min-width: 0; }
.sop-ver-main a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.sop-ver-main a:hover { text-decoration: underline; }
.sop-ver-main .tiny {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.sop-ver-meta { text-align: right; line-height: 1.6; white-space: nowrap; }
.sop-ver-act { text-align: right; }

@media (max-width: 900px) {
  .sop-ver-row { grid-template-columns: 40px minmax(0, 1fr); }
  .sop-ver-meta, .sop-ver-act { grid-column: 2; text-align: left; }
}

/* ============================================================================
   SOP 模板 / 存放地址 配置面板（2026-11-05 改版）
   分桶：模板 = 紫（lilac），存放地址 = 琥珀（orange）
   一条配置一行：适用岗位 pill + 版本 + 链接 + 操作；版本历史折叠在行内
   ========================================================================= */

.sop-tone-tpl { --ct: #7b62c8; --ct-soft: #f2eefd; }
.sop-tone-folder { --ct: #b9773f; --ct-soft: #fdf1e5; }

.sop-secs { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

.sop-sec {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ct);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sop-sec-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--ct-soft);
  border-bottom: 1px solid var(--line);
}
.sop-sec-icon {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .85); color: var(--ct);
}
.sop-sec-head b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.sop-sec-head em {
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.6;
  color: var(--ct); background: rgba(255, 255, 255, .8);
  border-radius: 999px; padding: 0 7px;
}
.sop-sec-kind {
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ct); background: rgba(255, 255, 255, .7);
  border-radius: 5px; padding: 1px 6px;
}
.sop-sec-desc {
  font-size: 11.5px; color: var(--ink-3); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sop-sec-add {
  height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--ct); background: #fff; color: var(--ct);
  font-size: 12.5px; font-weight: 550; white-space: nowrap;
  transition: background .14s, color .14s;
}
.sop-sec-add:hover { background: var(--ct); color: #fff; }

.sop-sec-body { display: flex; flex-direction: column; }

/* ---- 一条配置 ---- */
.sop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 12px 14px 10px;
  border-top: 1px dashed var(--line);
}
.sop-item:first-child { border-top: 0; }
.sop-item:hover { background: #fcfbf8; }
.sop-item.is-empty { background: #fdfcf9; }
.sop-i-main { min-width: 0; }
.sop-i-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sop-i-ver {
  font-family: var(--f-num); font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--ct); background: var(--ct-soft); border-radius: 5px; padding: 1px 6px;
}
.sop-i-tag {
  font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 7px;
}
.sop-i-url {
  display: block; margin-top: 5px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-2); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.sop-i-url:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sop-i-url.is-empty { color: var(--muted-2); font-family: inherit; font-size: 12px; }
.sop-i-meta { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.sop-i-act { display: flex; align-items: flex-start; gap: 4px; flex: none; }
.sop-i-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px; margin-top: 2px;
}
.sop-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 11.5px; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.sop-link:hover { color: var(--ink); }
.sop-link.is-danger:hover { color: var(--red); }

/* 适用岗位 pill */
.sop-pill {
  font-size: 11px; line-height: 1.7; padding: 0 8px; border-radius: 999px;
  background: var(--ct-soft); color: var(--ct); border: 1px solid transparent;
  max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sop-pill.is-generic {
  background: #fff; color: var(--ink-3); border-color: var(--line-2);
}
.sop-pill.is-more { background: #fff; color: var(--ct); border-color: var(--ct); }

/* 空态 */
.sop-empty {
  display: block; width: 100%; padding: 22px 14px; border: 0; background: transparent;
  font-size: 12px; color: var(--muted); text-align: center;
}
.sop-empty:hover { color: var(--ct); background: var(--ct-soft); }
.sop-empty.is-static { cursor: default; }
.sop-empty.is-static:hover { color: var(--muted); background: transparent; }

/* ---- 行内表单 ---- */
.sop-form {
  margin: 10px 0 4px; padding: 13px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card-2); display: grid; gap: 10px;
}
.sop-form-pos { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sop-form-lbl { font-size: 11.5px; color: var(--muted-2); }
.sop-form-hint { font-size: 11px; color: var(--muted-2); }
.sop-posbtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px dashed var(--line-2); background: #fff;
  font-size: 12.5px; color: var(--ink-3); max-width: 100%;
}
.sop-posbtn:hover { border-color: var(--ct); color: var(--ink); }
.sop-posbtn.has-val {
  border-style: solid; border-color: var(--ct); background: var(--ct-soft); color: var(--ink);
}
.sop-form-field > span {
  display: block; font-size: 11.5px; color: var(--muted-2); margin-bottom: 4px;
}
.sop-form-field input { width: 100%; }
.sop-form-foot { display: flex; justify-content: flex-end; gap: 8px; }

/* ---- 版本历史 ---- */
.sop-ver {
  grid-column: 1 / -1;
  margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.sop-ver.is-empty { padding: 12px 14px; font-size: 12px; color: var(--muted); }
.sop-ver-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 88px;
  gap: 12px; align-items: center; padding: 10px 13px;
  border-top: 1px solid var(--line);
}
.sop-ver-row:first-child { border-top: 0; }
.sop-ver-row.is-current { background: #f6fbf8; }
.sop-ver-no { font-family: var(--f-num); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.sop-ver-main { min-width: 0; }
.sop-ver-main a { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.sop-ver-main a:hover { text-decoration: underline; }
.sop-ver-main .tiny { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sop-ver-meta { text-align: right; line-height: 1.6; white-space: nowrap; }
.sop-ver-act { text-align: right; }
@media (max-width: 900px) {
  .sop-ver-row { grid-template-columns: 38px minmax(0, 1fr); }
  .sop-ver-meta, .sop-ver-act { grid-column: 2; text-align: left; }
}

/* ---- 选岗位弹窗：窄一点、能搜、能多选 ---- */
.modal.sop-pick-modal { width: min(416px, calc(100vw - 24px)); }
.sop-pick-modal .modal-head { padding: 18px 20px 12px; }
.sop-pick-modal .modal-body { padding: 14px 20px 16px; }
.sop-pick { display: flex; flex-direction: column; gap: 10px; }
.sop-pick-search { height: 34px; }
.sop-pick-list {
  max-height: 292px; overflow-y: auto; padding: 5px;
  border: 1px solid var(--line); border-radius: 12px; background: #fdfcfa;
  display: flex; flex-direction: column; gap: 2px;
}
.sop-pick-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 9px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.sop-pick-opt:hover { background: #f4f1fb; }
.sop-pick-opt.is-on { background: #f2eefd; color: var(--ink); font-weight: 550; }
.sop-pick-opt input { accent-color: #7b62c8; width: 14px; height: 14px; flex: none; }
.sop-pick-none { padding: 22px 10px; text-align: center; font-size: 12px; color: var(--muted); }
.sop-pick-note {
  font-size: 11.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
}
.sop-pick-chip {
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-3);
}

/* ============================================================================
   离职前流程 · 流程详情页
   ========================================================================= */

.ofp-head { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 22px; align-items: center; }
.ofp-name { font-size: 22px; letter-spacing: -.02em; margin: 0; font-weight: 650; }
.ofp-meta { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 14px; }
.ofp-meta > div { display: flex; align-items: baseline; gap: 8px; }
.ofp-meta b { font-size: 14.5px; font-weight: 600; }
.ofp-days {
  font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-3);
}
.ofp-days.warn { background: var(--orange-soft); color: #8a4a13; }
.ofp-score { text-align: right; }
.ofp-score-num { font-size: 38px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.ofp-score-num span { font-size: 17px; color: var(--muted-2); font-weight: 500; }
.ofp-bar { height: 6px; border-radius: var(--r-pill); background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.ofp-bar i { display: block; height: 100%; background: var(--ink); border-radius: var(--r-pill); transition: width .25s ease; }

.ofp-flow { padding: 20px 22px 6px; }
.ofp-parallel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
/* 2026-11-03：并行卡压成单行（左圆点 · 中标题描述 · 右状态+操作），缩短纵向空间 */
.ofp-pcard {
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  padding: 9px 12px; background: var(--card-2);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
}
.ofp-pcard.is-done { border-style: solid; border-color: var(--mint); background: var(--mint-soft); }
.ofp-pmain { min-width: 0; }
.ofp-pmain .ofp-title-row { flex-wrap: nowrap; }
.ofp-pmain .ofp-title { font-size: 13.5px; white-space: nowrap; }
.ofp-pmain .ofp-desc { margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofp-pdot {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: #fff; font-size: 11px; color: var(--muted);
}
.ofp-pcard.is-done .ofp-pdot { background: var(--green); border-color: var(--green); color: #fff; }
.ofp-pright { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ofp-pright .ofp-at { margin: 0; }
.ofp-auto-chip {
  font-size: 12px; padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line-2);
}
.ofp-at { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

.ofp-merge { position: relative; text-align: center; margin: 16px 0 4px; height: 26px; }
.ofp-merge::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 12px;
  width: 1px; background: var(--line-2);
}
.ofp-merge span {
  position: relative; top: 12px; font-size: 11px; color: var(--muted);
  background: var(--card); padding: 0 8px;
}

.ofp-nodes { display: flex; flex-direction: column; }
.ofp-node {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px; padding: 15px 0; border-top: 1px solid var(--line);
  align-items: flex-start;
}
.ofp-node:first-child { border-top: 0; }
.ofp-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: #fff; font-size: 12px; color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.ofp-node.is-done .ofp-dot { background: var(--green); border-color: var(--green); color: #fff; }
.ofp-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ofp-title { font-size: 14.5px; font-weight: 600; }
.ofp-tag {
  font-size: 11px; padding: 1px 7px; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-3);
}
.ofp-at { margin-left: auto; }
.ofp-desc { margin-top: 3px; line-height: 1.6; }
.ofp-note {
  display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: var(--r-sm);
  background: var(--bg-2); color: var(--ink-2); font-size: 12px; line-height: 1.6;
  border-left: 2px solid var(--line-2);
}
.ofp-link { font-size: 12px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.ofp-act { padding-top: 2px; }

.ofp-foot { padding: 18px 22px; }
.ofp-foot-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ofp-done-note { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* 列表里的 8 节点迷你进度 */
.ofp-mini { display: flex; align-items: center; gap: 4px; }
.ofp-mini-dot {
  display: inline-block; width: 15px; height: 6px; border-radius: var(--r-pill);
  background: var(--line-2);
}
.ofp-mini-dot.is-done { background: var(--green); }
.ofp-mini-num {
  font: 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted); margin-left: 7px;
}
.ofp-list tr.is-clickable { cursor: pointer; }
.ofp-list tr.is-clickable:hover { background: var(--card-2); }

/* ============================================================================
   离职后状态（复刻多维表 + 时间轴）
   ========================================================================= */

/* 办理中名单只有 3 张卡、已办离职 4 张 —— auto-fit 让卡片始终占满整行，不留空列 */
.ofa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ofa-stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 16px 18px;
}
.ofa-stat-num { font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.ofa-stat-num span { font-size: 12.5px; color: var(--muted); margin-left: 4px; font-weight: 500; }
.ofa-stat.warn { background: var(--orange-soft); border-color: #f2d6ba; }

/* 离职后页的统计卡：与「试用期管理」「周报」同一套 .bento/.cell（2026-11-14 改版，
   原来是两个小小的 .ofa-kpi 标签，用户要求「参考我其他看板的卡片大小和颜色」） */
.bento.ofa-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 14px; }

.ofa-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: stretch; }
.ofa-config {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 14px 18px;
}
.ofa-config-vals { font-size: 13.5px; margin-top: 5px; }
.ofa-config-vals b { font-variant-numeric: tabular-nums; }
.ofa-sep { color: var(--muted-2); margin: 0 7px; }

.ofa-card { padding: 0; overflow: hidden; }

/* 已办离职列表：离职 SOP / 交接文档 两个链接格（2026-11-08 替换掉「减员」列）。
   2026-11-09：本页不再自己写一套链接样式（原来是「名字 + 外链小箭头」，和入职办理、
   试用期成员三处三种观感），改调 doc-group-cell.docLink 的 .dg-doc —— 见统一块。 */

.ofa-table { width: 100%; border-collapse: collapse; }
/* 减员一~四必须等宽：定宽布局 + colgroup，槽位启用几项都各占一份 */
.ofa-table.is-fixed { table-layout: fixed; min-width: 720px; }
.ofa-table.is-fixed th, .ofa-table.is-fixed td { padding-left: 10px; padding-right: 10px; }
.ofa-table.is-fixed .ofa-cutcell { min-width: 0; }
.ofa-table.is-fixed td.mono { font-size: 12.5px; }
.ofa-none { font-size: 12px; color: var(--muted); }
.ofa-table th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .04em; padding: 12px 14px; background: var(--card-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ofa-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ofa-table tr:last-child td { border-bottom: 0; }
.ofa-table tbody tr:hover { background: var(--card-2); }
.ofa-name { font-size: 14px; font-weight: 600; }
.ofa-warn {
  display: inline-grid; place-items: center; width: 15px; height: 15px;
  margin-left: 6px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 10px; vertical-align: middle;
}
.ofa-link { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.ofa-cut {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-3); white-space: nowrap;
}
.ofa-cut.is-pending { background: var(--orange-soft); border-color: #f0cfb4; color: #8a4a13; }
.ofa-cut.is-done { background: var(--mint-soft); border-color: #bfe9d8; color: #1c6b4c; }
.ofa-cut.is-none { background: var(--bg-2); color: var(--muted); }
.ofa-over { color: var(--red); font-weight: 600; }
.ofa-late {
  font-style: normal; font-size: 10.5px; margin-left: 6px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--red-soft); color: #a03a32;
}
.ofa-op { text-align: right; }

.ofa-tl-legend {
  display: flex; align-items: center; gap: 18px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); background: var(--card-2);
}
.ofa-tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg-d0 { background: var(--ink); }
.lg-d1 { background: var(--orange); }
.lg-d2 { background: var(--mint); }
.lg-line { width: 2px; height: 13px; background: var(--ink); display: inline-block; }

.ofa-tl-list { display: flex; flex-direction: column; }
.ofa-tl-row {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) 128px;
  gap: 18px; align-items: center; padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.ofa-tl-row:last-child { border-bottom: 0; }
.ofa-tl-row:hover { background: var(--card-2); }
.ofa-tl-track { position: relative; height: 58px; }
.ofa-tl-line { position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--line-2); }
.ofa-tl-dots { position: absolute; inset: 0; }
.ofa-dot {
  position: absolute; top: 10px; width: 12px; height: 12px; border-radius: 50%;
  transform: translateX(-50%); background: #fff; border: 2px solid var(--line-2);
}
.ofa-dot.d0 { left: 0; border-color: var(--ink); }
.ofa-dot.d1 { left: 50%; }
.ofa-dot.d2 { left: 100%; }
.ofa-dot.is-pending { background: var(--orange); border-color: #e79a5b; }
.ofa-dot.is-done { background: var(--green); border-color: var(--green); }
.ofa-dot.is-none { background: var(--muted-2); border-color: var(--muted-2); }
.ofa-today { position: absolute; top: 3px; width: 2px; height: 26px; background: var(--ink); transform: translateX(-50%); opacity: .45; }
.ofa-tl-date {
  position: absolute; top: 29px; transform: translateX(-50%);
  font-size: 11px; color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ofa-tl-date.is-start { transform: translateX(0); }
.ofa-tl-date.is-end { transform: translateX(-100%); }
.ofa-tl-date.is-low { top: 44px; }
.ofa-tl-who, .ofa-tl-state { min-width: 0; }
.ofa-tl-state { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.ofa-exec { display: flex; flex-direction: column; gap: 18px; }
.ofa-exec-sec { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ofa-exec-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.ofa-exec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; font-weight: 600;
}
.segmented.small { padding: 3px; }
.segmented.small button { font-size: 12px; padding: 4px 10px; }

.mini-select {
  height: 32px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--card); padding: 0 12px; font-size: 13px; color: var(--ink-2);
}

/* ---- 离职办理重构（2026-11-03）：四色卡片 / 减员槽位卡 / 减员格 / 个人时间轴 ---- */

/* 办理中名单顶部四张卡，四种颜色区分 */
.ofa-stat.blue { background: var(--blue-soft); border-color: #c6d8ee; }
.ofa-stat.lemon { background: var(--lemon-soft); border-color: #e5d98f; }
.ofa-stat.mint { background: var(--mint-soft); border-color: #bfe9d8; }
.ofa-stat.coral { background: var(--pink-soft); border-color: #f0c3cd; }

/* 提醒规则页：减员催办槽位卡（槽位支持新增，列数自适应） */
.ob-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ob-slot {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
}
.ob-slot.off { opacity: .62; background: var(--card-2); }
/* 卡片核心展示项：具体减员动作名称（用户 2026-11-07：序号只是管理用，动作名要最显眼） */
.ob-slot-act { margin-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .2px; }

/* 离职后状态表头：「减员状态N」小字在上，动作名称大字在下（长名称折两行，别整段省略号） */
.ofa-table th .ofa-th-slot { font-size: 11px; font-weight: 500; color: var(--muted); }
.ofa-table th .ofa-th-act {
  margin-top: 2px; font-size: 13px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; white-space: normal;
}
/* 执行抽屉里：减员状态N + 动作名称 */
.ofa-exec-slot { font-size: 12px; color: var(--muted); margin-right: 6px; }
.ofa-exec-act { font-size: 14px; font-weight: 700; }
@media (max-width: 1100px) { .ob-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 离职后状态表格：减员格子（状态在上、截止日期在下、逾期标红） */
.ofa-cutcell { min-width: 96px; white-space: nowrap; }
.ofa-cutcell.is-off { opacity: .55; }
/* 可点的格子：整块都是按钮，hover 给一点底、光标变手型（用户要求列表页直接改状态） */
.ofa-cutcell.is-edit {
  cursor: pointer; border-radius: var(--r-sm); outline-offset: -2px;
  transition: background .12s ease;
}
.ofa-cutcell.is-edit:hover { background: var(--card-2); }
.ofa-cutcell.is-edit:focus-visible { outline: 2px solid var(--ink-3); }
.ofa-cutdue {
  font-size: 11.5px; color: var(--muted); margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ofa-cutdue.ofa-over { color: var(--red); }

/* 格子点开的减员状态小浮层 */
.ofa-pop {
  position: fixed; z-index: 80; width: 196px; padding: 6px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.ofa-pop-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 5px 8px 7px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.ofa-pop-head b { font-size: 12.5px; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ofa-pop-head span { font-size: 11.5px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofa-pop button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 6px 8px; border: 0; background: transparent;
  border-radius: var(--r-sm); cursor: pointer; text-align: left;
}
.ofa-pop button:hover { background: var(--card-2); }
.ofa-pop button.is-on { background: var(--card-2); }
.ofa-pop-cur { font-style: normal; font-size: 10.5px; color: var(--muted); }
.ofa-pop-foot {
  margin-top: 4px; padding: 6px 8px 2px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* 抽屉里的个人时间轴：已完成高亮 · 未完成置灰 · 逾期标红 */
.ofa-steps { display: flex; flex-direction: column; margin: 4px 0; }
.ofa-step { position: relative; padding: 0 0 18px 26px; }
.ofa-step::before {
  content: ''; position: absolute; left: 7px; top: 18px; bottom: -2px;
  width: 2px; background: var(--line);
}
.ofa-step:last-child { padding-bottom: 4px; }
.ofa-step:last-child::before { display: none; }
.ofa-step-dot {
  position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-2);
  box-sizing: border-box;
}
.ofa-step-main { min-width: 0; }
.ofa-step-title { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ofa-step-title .mono { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ofa-step-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ofa-step.is-done .ofa-step-dot { background: var(--mint-soft); border-color: #3f9d76; }
.ofa-step.is-done .ofa-step-title { color: #1c6b4c; }
.ofa-step.is-late .ofa-step-dot { background: var(--pink-soft); border-color: var(--red); }
.ofa-step.is-late .ofa-step-title,
.ofa-step.is-late .ofa-step-sub { color: var(--red); }
.ofa-step.is-off { opacity: .55; }
.ofa-step.is-todo { opacity: .78; }

@media (max-width: 900px) {
  .ofa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofa-top { grid-template-columns: 1fr; }
  .ofp-head { grid-template-columns: 1fr; }
  .ofp-score { text-align: left; }
  .ofp-parallel { grid-template-columns: 1fr; }
  .ofp-pcard { grid-template-columns: auto minmax(0, 1fr); }
  .ofp-pright { grid-column: 1 / -1; justify-content: flex-end; }
  .ofa-tl-row { grid-template-columns: 96px minmax(0, 1fr); }
  .ofa-tl-state { grid-column: 2; align-items: flex-start; flex-direction: row; }
}

/* ============================================================================
   招聘管理 v2（看板 / 候选人名单 / 详情页 / 需求 / 等级奖金）
   ========================================================================= */

.rc-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rc-board-full { grid-column: 1 / -1; }
.rc-panel { margin-bottom: 0; }
@media (max-width: 900px) { .rc-board { grid-template-columns: 1fr; } }

/* ---- 未来 7 天面试 + Offer 池：并排等高，内容多了卡片内滚动 ---- */
.rc-board-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.rc-board-pair.is-single { grid-template-columns: 1fr; }
.rc-board-pair > .rc-pair-panel {
  display: flex; flex-direction: column;
  min-height: 268px; max-height: 392px;
}
.rc-pair-head { flex: 0 0 auto; margin-bottom: 10px; }
.rc-pair-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.rc-pair-body::-webkit-scrollbar { width: 6px; }
.rc-pair-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.rc-pair-list { display: flex; flex-direction: column; gap: 8px; }
.rc-pair-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
}
.rc-pair-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.rc-pair-title .tiny { font-weight: 400; }
/* 空状态在等高卡片里垂直居中 */
.rc-pair-empty {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 18px 8px; text-align: center;
}
.rc-pair-empty-ico {
  width: 34px; height: 34px; border-radius: 12px; margin-bottom: 4px;
  display: grid; place-items: center; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--line);
}
.rc-pair-empty strong { font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 900px) {
  .rc-board-pair { grid-template-columns: 1fr; }
  .rc-board-pair > .rc-pair-panel { min-height: 0; max-height: none; }
}

/* ---- 阶段漏斗：100% 堆叠条 + 图例 + 四列阶段明细 ---- */
.rc-funnel .blue { --fn: #8fb4ea; }
.rc-funnel .pink { --fn: #e78bbd; }
.rc-funnel .green { --fn: #58b487; }
.rc-funnel .red { --fn: #e57f74; }
/* 人才池：中性灰，别和「推进中」抢蓝、也别被当成淘汰的红 */
.rc-funnel .gray { --fn: #bdbab3; }

.rc-fn-bar {
  display: flex; gap: 2px; height: 12px;
  border-radius: 99px; overflow: hidden; background: var(--card-2);
}
.rc-fn-seg { display: block; min-width: 3px; background: var(--fn); }

.rc-fn-legend {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin: 11px 0 16px; font-size: 12px; color: var(--ink-2);
}
.rc-fn-key { display: inline-flex; align-items: center; gap: 6px; }
.rc-fn-key b { font-weight: 640; color: var(--ink); }
.rc-fn-key em { font-style: normal; font-size: 11px; color: var(--muted); }
.rc-fn-dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; background: var(--fn); }

.rc-fn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 24px; }
.rc-fn-col { min-width: 0; }
.rc-fn-colhead {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 620; color: var(--ink-2);
  padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.rc-fn-colhead b { margin-left: auto; font-weight: 640; color: var(--ink); }
.rc-fn-row { display: flex; align-items: center; gap: 8px; height: 21px; }
.rc-fn-name {
  flex: 0 0 auto; width: 92px; font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-fn-track {
  flex: 1 1 auto; min-width: 16px; height: 6px;
  border-radius: 99px; background: var(--card-2); overflow: hidden;
}
.rc-fn-track > i { display: block; height: 100%; border-radius: 99px; background: var(--fn); }
.rc-fn-row > b { flex: 0 0 auto; width: 36px; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--ink); }

@media (max-width: 1280px) { .rc-fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; } }
@media (max-width: 720px) {
  .rc-fn-grid { grid-template-columns: 1fr; }
  .rc-fn-name { width: 104px; }
  .rc-funnel { padding: 16px 16px; }
}

/* 候选人详情：头部 */
.rc-head { padding: 20px 24px; }
.rc-stage-big { text-align: right; }
.rc-stage-big em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.rc-stage-big strong { font-size: 20px; letter-spacing: -0.01em; }

/* 5 步流程条 */
.rc-steps { display: flex; gap: 6px; margin-top: 18px; }
.rc-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 12px 6px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card-2); position: relative;
}
.rc-step i {
  width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 13px; background: var(--line); color: var(--ink-3); font-weight: 600;
}
.rc-step span { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.rc-step.is-done i { background: var(--green); color: #fff; }
.rc-step.is-current i { background: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.rc-step.is-current { border-color: #d8d9dd; background: #fafafa; }
.rc-step.is-current span { color: var(--ink); font-weight: 600; }
.rc-step.is-done span { color: var(--ink-2); }
.rc-step.is-failed i { background: var(--red); color: #fff; }
.rc-step.is-failed { border-color: #f3d4d0; background: #fdf7f6; }
.rc-step.is-done { border-color: #cfe6da; background: #f4faf6; }
@media (max-width: 760px) { .rc-steps { flex-wrap: wrap; } .rc-step { flex: 1 1 30%; } }

/* 详情两栏 */
.rc-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; margin-top: 12px; align-items: start; }
@media (max-width: 980px) { .rc-cols { grid-template-columns: 1fr; } }
.rc-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* 面试卡 */
.rc-round.is-done { border-color: #cfe6da; background: #f7fcf9; }
.rc-round.is-failed { border-color: #f3d4d0; background: #fdf7f6; }
.rc-round-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .rc-round-grid { grid-template-columns: 1fr; } }
.rc-kv em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-bottom: 3px; }
.rc-kv b { font-weight: 600; font-size: 13.5px; }
.rc-comment {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card-2);
  font-size: 13px; line-height: 1.7; color: var(--ink-2); max-height: 220px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
}

/* Offer / 等级卡片里的字段栅格 */
.rc-offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
@media (max-width: 560px) { .rc-offer-grid { grid-template-columns: repeat(2, 1fr); } }
.rc-emp-link {
  margin-top: 12px; padding: 10px 12px; border: 1px solid #cfe6da; border-radius: 10px; background: #f4faf6;
  font-size: 13px; display: flex; flex-direction: column; gap: 3px;
}
.rc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rc-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
/* 截图格子是 <button> 不是 <a>：点开灯箱看大图，绝不触发浏览器下载/新开标签页。
   ⚠️ 必须显式 width:100% —— 表单控件（button）的 width:auto 是「按内容收缩」，
   外面套一层 div 之后就不再是 grid item，会被撑成图片自身的像素宽（2026-11-16 踩过）。 */
button.rc-galitem {
  display: block; width: 100%; padding: 0; border: 0; background: none; font-family: inherit;
  cursor: zoom-in; line-height: 0;
}
button.rc-galitem:hover img { border-color: var(--ink); }
/* 截图格子右上角常驻一个 ×：传错了要能当场删掉（2026-11-16 用户报障「没有一个删除按钮吗」） */
.rc-galcell { position: relative; }
.rc-gal-x {
  position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 999px; background: rgba(24, 24, 27, .55); color: #fff;
  font-size: 13px; line-height: 20px; text-align: center; cursor: pointer;
  opacity: .8; transition: opacity .12s, background .12s;
}
.rc-gal-x:hover { opacity: 1; background: var(--red); }

/* 需求卡 */
.rc-req { display: flex; flex-direction: column; margin-bottom: 0; }

/* 等级卡 */
.rc-level { margin-bottom: 0; }

/* 岗位等级与奖金：列表式，按奖金类型分块（说明文字允许换行，不挤成一行） */
.rc-bonus-tbl td { vertical-align: top; white-space: normal; }
.rc-bonus-tbl td.tiny { line-height: 1.6; }
.rc-bonus-tbl th { font-weight: 550; }

/* ---- 看板四张彩色数字卡（在招需求 / 推进中 / Offer 池 / 本周新增） ---- */
.rc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rc-stat {
  padding: 16px 18px 15px; border-radius: var(--r-card);
  border: 1px solid transparent;
  display: flex; flex-direction: column; gap: 2px;
}
.rc-stat em { font-style: normal; font-size: 12px; color: var(--ink-2); letter-spacing: .01em; }
.rc-stat strong { font-size: 30px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.rc-stat strong small { font-size: 12.5px; font-weight: 550; color: var(--ink-3); margin-left: 2px; }
.rc-stat span { font-size: 11.5px; color: var(--ink-3); }
.rc-stat.blue { background: #eef4fd; border-color: #dbe7fa; }
.rc-stat.mint { background: #eef8f2; border-color: #d9efe3; }
.rc-stat.lemon { background: #fdf8e4; border-color: #f3e9c4; }
.rc-stat.lilac { background: #f5f0fa; border-color: #e8ddf5; }

/* 卡片可点进子页面：右上角给一个「查看 →」，hover 时轻微抬起，键盘可聚焦 */
.rc-stat.is-link { position: relative; cursor: pointer; transition: transform .14s, box-shadow .16s, border-color .14s; }
.rc-stat.is-link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -20px rgba(23,23,23,.45); }
.rc-stat.is-link:active { transform: translateY(0); }
.rc-stat.is-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rc-stat-go {
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; color: var(--ink-3); opacity: 0; transform: translateX(-2px);
  transition: opacity .14s, transform .14s;
}
.rc-stat.is-link:hover .rc-stat-go,
.rc-stat.is-link:focus-visible .rc-stat-go { opacity: 1; transform: translateX(0); }
/* 「本周新增」这个数字自己也有去处（近 7 天新增名单），给一条悬停下划线 */
.rc-stat-part { border-bottom: 1px dashed transparent; transition: border-color .14s; }
.rc-stat-part:hover { border-color: var(--ink-3); }
@media (max-width: 1100px) { .rc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rc-stats { grid-template-columns: 1fr; } }

/* ---- 多维表同步：顶栏「上次同步 …」+ 立即同步按钮 ---- */
.rec-sync { display: inline-flex; align-items: center; gap: 8px; }
.rec-sync-at { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .rec-sync-at { display: none; } }

/* ---- 在招需求卡片网格：一行 5 个，卡片窄一点 ---- */
.rc-req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 10px; }
.rc-req-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 13px 14px 12px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card);
  cursor: pointer; transition: border-color .14s, box-shadow .14s, transform .14s;
}
.rc-req-card:hover { border-color: var(--line-2); box-shadow: 0 8px 20px -16px rgba(23,23,23,.35); transform: translateY(-1px); }
.rc-req-card .rc-req-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-req-card .rc-req-pos { font-size: 13.5px; font-weight: 620; letter-spacing: -0.01em; line-height: 1.35; }
.rc-req-card .rc-req-meta { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.rc-req-card .rc-req-nums { display: flex; gap: 10px; font-size: 11.5px; color: var(--ink-3); }
.rc-req-card .rc-req-nums b { color: var(--ink); font-weight: 600; }
.rc-req-empty { font-size: 12.5px; color: var(--muted); padding: 10px 0; }

/* ---- 表单：横向单行多选（级别这种只有 3 项，别换行） ---- */
.check-row {
  display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto;
  padding: 7px 9px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}
.check-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; background: var(--card);
  transition: border-color .14s, color .14s, background .14s;
}
.check-pill input { width: 13px; height: 13px; accent-color: var(--ink); }
.check-pill:has(input:checked) { border-color: var(--ink); color: var(--ink); background: var(--card-2); }

/* ---- 表单：面试官穿梭框 ---- */
.xfer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xfer-col { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.xfer-top {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  border-bottom: 1px solid var(--line); background: var(--card-2);
  font-size: 11.5px; color: var(--ink-3);
}
.xfer-top input {
  flex: 1; border: 0; background: transparent; font-size: 12.5px; color: var(--ink); outline: none;
}
.xfer-top.is-right { justify-content: flex-end; }
.xfer-list { height: 176px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.xfer-item {
  flex: 0 0 auto;
  text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 6px 9px; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xfer-item:hover { background: var(--card-2); color: var(--ink); }
.xfer-item.is-sel { background: #eef4fd; color: var(--ink); }
.xfer-item.is-sel::after { content: " ×"; color: var(--muted); }
.xfer-empty { padding: 10px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 720px) { .xfer { grid-template-columns: 1fr; } }

/* 表格行可点 */
.tbl tbody tr.is-clickable { cursor: pointer; }
.tbl tbody tr.is-clickable:hover { background: #fcfaf7; }

/* 迷你下拉（页签右侧筛选） */
.mini-select {
  height: 32px; padding: 0 26px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card); font-size: 12.5px; color: var(--ink);
}

/* ============================================================================
   合同协议模板管理（2026-11 改造）
   类型标签条 → 合同卡 → 版本行（当前 + 历史折叠）→ 预览弹窗
   ========================================================================== */

/* 类型色板：同一套马卡龙家族，取「深一档」的墨色做色条与文字、浅色做底，
   保证类型之间有区分度，又不跳出整套视觉体系 */
.ct-tone-all { --ct: var(--ink); --ct-soft: var(--card-2); }
.ct-tone-blue { --ct: #5d86c9; --ct-soft: #eaf1fc; }
.ct-tone-mint { --ct: #3d9a76; --ct-soft: #e4f6ee; }
.ct-tone-lemon { --ct: #a8831f; --ct-soft: #fdf5d4; }
.ct-tone-lilac { --ct: #7b62c8; --ct-soft: #f0ebfd; }
.ct-tone-pink { --ct: #c5639b; --ct-soft: #fdeaf3; }
.ct-tone-orange { --ct: #c2763f; --ct-soft: #fdefe2; }
.ct-tone-teal { --ct: #2f8a8a; --ct-soft: #e3f4f4; }
.ct-tone-slate { --ct: #5f6b7a; --ct-soft: #eceff3; }

.ct-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ct); flex: none; }

/* 顶部类型标签：每个标签本身就用该类型的颜色（浅底 + 彩色字），
   选中的变成实心色 + 微微放大，一眼看得出「现在在看哪一类」 */
.ctype-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ctype-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid transparent; background: var(--ct-soft);
  font-size: 12.5px; color: var(--ct); cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, border-color .14s, background .14s, color .14s;
}
.ctype-chip b { font-weight: 600; }
.ctype-chip .ctype-dot { background: var(--ct); }
.ctype-chip em {
  font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--ct);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .75);
}
.ctype-chip:hover { border-color: var(--ct); transform: translateY(-1px); }
.ctype-chip.is-on {
  background: var(--ct); color: #fff; border-color: var(--ct);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 18px -8px rgba(16, 24, 40, .45);
}
.ctype-chip.is-on .ctype-dot { background: rgba(255, 255, 255, .9); }
.ctype-chip.is-on em { background: rgba(255, 255, 255, .22); color: #fff; }
.ct-tone-all.is-on { background: var(--ink); border-color: var(--ink); }
.ctype-chip.is-off { opacity: .55; }
.ctype-chip.is-off .ctype-dot { background: var(--muted-2); }
.ctype-chip.is-off.is-on { opacity: 1; }

/* ---- 按协议类型分桶：类型是主角，合同是桶里的行 ---- */
/* 2026-11-18 用户口径：「这里的模板一排展示四个，而不是 3 个」——
   固定 4 列（原来 minmax(372px) 在 1440 宽下只排得下 3 个），窄屏再逐级降到 3/2/1。
   不用 auto-fill：那会在 1920 上自己变成 5 列，和「一排四个」不是一回事。 */
.ct-buckets {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .ct-buckets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ct-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ct-bucket {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  border-top: 3px solid var(--ct); box-shadow: var(--shadow-sm); overflow: hidden;
}
.ct-b-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px 11px 14px; background: var(--ct-soft);
  border-bottom: 1px solid var(--line);
}
.ct-b-head .ct-dot { width: 8px; height: 8px; }
.ct-b-head b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.ct-b-head em {
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.5;
  color: var(--ct); background: rgba(255, 255, 255, .78);
  border-radius: 999px; padding: 0 7px;
}
.ct-b-off {
  font-size: 10.5px; color: var(--muted); background: #fff;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px;
}
.ct-b-add {
  width: 23px; height: 23px; border-radius: 7px;
  border: 1px solid transparent; background: rgba(255, 255, 255, .7);
  color: var(--ct); font-size: 14px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.ct-b-add:hover { background: #fff; border-color: var(--ct); }
.ct-b-body { padding: 12px 12px 13px; }
.ct-b-offmore {
  border: 0; background: transparent; padding: 0 4px;
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.ct-b-offmore:hover { color: var(--ink); text-decoration: underline; }

/* ---- 版本卡片：一份合同的每一版都是一张卡 ---- */
.ct-cards { display: grid; gap: 10px; }
.ct-card {
  position: relative; display: flex; flex-direction: column;
  padding: 11px 12px 9px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.ct-card.is-on {
  border-color: var(--ct);
  background: linear-gradient(180deg, var(--ct-soft) 0%, var(--card) 58%);
}
.ct-card.is-on:hover {
  box-shadow: 0 8px 20px -14px rgba(16, 24, 40, .5);
  transform: translateY(-1px);
}
.ct-card.is-off { background: var(--card-2); border-color: var(--line-2); }
.ct-card.is-off .ct-c-name,
.ct-card.is-off .ct-c-fname,
.ct-card.is-off .ct-vbadge { color: var(--muted-2); }
.ct-card.is-off .ct-vbadge { background: #e6e2dc; color: #fff; }

.ct-c-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ct-vbadge {
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  color: #fff; background: var(--ct); border-radius: 5px; padding: 1px 6px;
}
.ct-c-name {
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-c-cur {
  flex: none; font-size: 10px; font-weight: 600; letter-spacing: .02em;
  color: var(--ct); border: 1px solid var(--ct); border-radius: 999px; padding: 0 6px;
}
.ct-card.is-off .ct-c-cur { color: var(--muted); border-color: var(--line-2); }
.ct-c-file { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; min-width: 0; }
.ct-c-fname {
  font-size: 12px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-c-fmeta { flex: none; font-size: 10.5px; color: var(--muted); }
.ct-c-nofile { font-size: 12px; color: var(--red); }
.ct-card.is-off .ct-c-nofile { color: var(--muted); }
.ct-c-meta {
  margin-top: 4px; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-sep { margin: 0 2px; }
.ct-c-meta .is-dim { color: var(--muted-2); }
.ct-c-note {
  margin-top: 5px; font-size: 11.5px; color: var(--ink-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ct-c-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line);
}
.ct-card.is-off .ct-c-foot { border-top-color: var(--line-2); }
.ct-c-tools { display: flex; align-items: center; gap: 2px; }
.ct-ico {
  width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent;
  color: var(--ink-3); display: inline-grid; place-items: center; padding: 0;
  transition: color .14s, background .14s;
}
.ct-ico:hover { color: var(--ct); background: var(--ct-soft); }
.ct-more {
  width: 26px; height: 26px; border-radius: 8px; border: 0;
  background: transparent; color: var(--ink-3); font-size: 15px; line-height: 1;
}
.ct-more:hover, .ct-more.is-open { background: var(--card-2); color: var(--ink); }
.ct-on {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 650; letter-spacing: .01em;
  color: #fff; background: var(--ct); border-radius: 999px;
  padding: 2px 8px 2px 6px; box-shadow: 0 2px 6px -3px rgba(16, 24, 40, .5);
}
.ct-off-tag {
  margin-left: auto; font-size: 10.5px; color: var(--muted-2);
}

/* ---- 类型详情页：一个类型下所有合同、所有版本 ---- */
.ct-one {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.ct-tp-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--ct-soft); border-bottom: 1px solid var(--line);
}
.ct-tp-head .ct-dot { width: 9px; height: 9px; }
.ct-tp-head b { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.ct-tp-stat { font-size: 11.5px; color: var(--ct); opacity: .85; }
.ct-cgroup { padding: 14px 16px 4px; }
.ct-cgroup + .ct-cgroup { border-top: 1px dashed var(--line); }
.ct-cg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ct-cg-head b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ct-cg-head em {
  font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ct);
  background: var(--ct-soft); border-radius: 999px; padding: 1px 7px;
}
.ct-cg-off {
  font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 6px;
}
.ct-one .ct-cards { grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); padding-bottom: 10px; }

/* 空桶：提示这一类还没配合同 */
.ct-b-empty {
  display: block; width: 100%; padding: 20px 12px;
  border: 0; background: transparent; font-size: 12px; color: var(--muted);
}
.ct-b-empty:hover { color: var(--ct); background: var(--ct-soft); }
.ct-b-empty.is-static { cursor: default; }
.ct-b-empty.is-static:hover { color: var(--muted); background: transparent; }

/* 逐行「⋯」菜单（fixed 定位，避免被桶的圆角裁切） */
.cmenu {
  position: fixed; z-index: 900; min-width: 186px; padding: 5px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
}
.cmenu button {
  text-align: left; border: 0; background: transparent; border-radius: 8px;
  padding: 7px 10px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
}
.cmenu button:hover { background: var(--card-2); color: var(--ink); }
/* 没有条件可清的时候「清空条件」是禁用的（别让人点了没反应） */
.cmenu button:disabled { color: var(--muted); opacity: .55; cursor: default; }
.cmenu button:disabled:hover { background: transparent; color: var(--muted); }
.cmenu button.is-danger { color: var(--red); }
.cmenu button.is-danger:hover { background: var(--red-soft); }
.cmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
@media (max-width: 720px) {
  .ct-buckets, .ct-one .ct-cards { grid-template-columns: 1fr; }
  .ctype-chip.is-on { transform: none; }
}

/* 预览弹窗 */
.doc-preview {
  min-height: 320px; max-height: 66vh; overflow: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
}
.doc-frame { width: 100%; height: 66vh; border: 0; background: #fff; border-radius: 12px; display: block; }

/* PDF 自己画（pdf.js）：没有浏览器阅读器那条带标注笔的工具栏，就是一叠纸往下翻（2026-11-14） */
.fp-pdf {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 14px; background: #f1f1ee;
}
.fp-pdf-page {
  flex: none; background: #fff; border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
  overflow: hidden;
}
.fp-pdf-page canvas { display: block; width: 100%; height: 100%; }
.fp-pdf-page.is-error::after {
  content: '这一页渲染失败，可以点右上角「下载」用本地程序打开';
  display: grid; place-items: center; height: 100%;
  font-size: 12.5px; color: var(--muted);
}
/* 网页格式的报告：沙箱 iframe（不透明来源，读不到本站 token） */
.fp-html { width: 100%; height: 68vh; border: 0; background: #fff; border-radius: 12px; display: block; }

/* PPT 按页排（jszip 抽文字+图片）：述职材料大半是 .pptx，至少能在这里翻完（2026-11-14） */
.fp-slides { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #f1f1ee; }
.fp-slide {
  background: #fff; border-radius: 10px; padding: 15px 18px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.fp-slide-n {
  font-size: 10.5px; letter-spacing: .08em; color: var(--muted-2);
  padding-bottom: 8px; margin-bottom: 9px; border-bottom: 1px solid var(--line);
}
.fp-slide-body {
  font-size: 13px; line-height: 1.78; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}
.fp-slide-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.fp-slide-imgs img { max-width: 100%; max-height: 420px; border-radius: 7px; border: 1px solid var(--line); }

.doc-html {
  background: #fff; padding: 34px 44px; min-height: 320px;
  font-size: 13.5px; line-height: 1.85; color: var(--ink-2);}
.doc-html h1 { font-size: 21px; margin: 0 0 14px; color: var(--ink); text-align: center; }
.doc-html h2 { font-size: 16.5px; margin: 22px 0 8px; color: var(--ink); }
.doc-html h3 { font-size: 14.5px; margin: 18px 0 6px; color: var(--ink); }
.doc-html p { margin: 0 0 10px; }
.doc-html table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; }
.doc-html th, .doc-html td { border: 1px solid var(--line-2); padding: 7px 10px; text-align: left; }
.doc-html th { background: var(--card-2); font-weight: 600; color: var(--ink); }
.doc-html ul, .doc-html ol { padding-left: 22px; margin: 0 0 10px; }
.doc-html img { max-width: 100%; height: auto; }
.doc-fallback {
  padding: 40px 32px; text-align: center; color: var(--ink-3); font-size: 13px;
}
.doc-fallback strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.doc-fallback p { margin: 0; max-width: 46ch; margin: 0 auto; line-height: 1.8; }

/* 类型管理弹窗 */
.ctm-list { display: flex; flex-direction: column; gap: 8px; }
.ctm-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2);
}
.ctm-name {
  flex: 1; min-width: 0; height: 32px; padding: 0 10px;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  font-size: 13px; color: var(--ink);
}
.ctm-name:hover { background: var(--card); }
.ctm-name:focus { background: var(--card); border-color: var(--ink); outline: none; }

/* 文档预览弹窗：比常规 wide 更宽，读文档更舒服 */
.modal.doc-modal { width: min(1080px, calc(100vw - 32px)); }
.modal.doc-modal .modal-body { padding: 16px 20px; }

/* ---------------------------------------------------------------
   全站文件预览（2026-11-13）：任何地方点文件都开这个弹窗，
   右上角固定一颗「下载」。图片/PDF/Word/文本/音视频各用各的容器。
   --------------------------------------------------------------- */
.modal.fp-modal { width: min(1180px, calc(100vw - 32px)); }
.modal.fp-modal .modal-body { padding: 14px 16px 16px; }
.modal.fp-modal .modal-head { align-items: center; }
/* 下载按钮贴在关闭按钮左边，别被「关闭」抢视觉 —— 用 ghost 样式，图标 + 文字 */
.fp-dl {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px; margin-right: 8px;
  font-size: 12.5px; flex: none;
  /* .modal-head 是 space-between：多插一个兄弟节点会被推到正中间，钉到右边才叫「右上角」 */
  margin-left: auto;
}
.fp-dl svg { flex: none; }
/* 手机上的 PDF 提示条：内嵌阅读器能力有限，把「看不清就下载」这句话先说出来 */
.fp-note {
  margin-bottom: 8px; padding: 9px 12px;
  border-radius: 10px; background: var(--lemon-soft); color: #7a5d00;
  font-size: 12px; line-height: 1.5;
}
.modal.fp-modal .doc-preview { max-height: 72vh; }
.modal.fp-modal .doc-frame { height: 72vh; }
.fp-img {
  display: grid; place-items: center; padding: 12px; min-height: 320px; background: #fff;
}
.fp-img img { max-width: 100%; max-height: 68vh; object-fit: contain; border-radius: 8px; }
.fp-media { display: grid; place-items: center; padding: 12px; background: #111; border-radius: 12px; }
.fp-media video { max-width: 100%; max-height: 68vh; border-radius: 8px; }
.fp-media.fp-audio { background: var(--card-2); padding: 32px 24px; }
.fp-media audio { width: min(560px, 100%); }
.fp-text {
  margin: 0; padding: 18px 20px; background: #fff; border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word; max-height: 68vh; overflow: auto;
}

/* ---------------------------------------------------------------
   侧边栏「可展开父级」（招聘管理）
   父级只负责展开/收起，子级才是页面入口；层用一条细竖线连起来，
   子级不抢父级的图标位置，也不额外加箭头装饰。
   --------------------------------------------------------------- */
.rail-group { display: flex; flex-direction: column; gap: 2px; }

.rail-parent .rail-caret {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  color: rgba(255, 255, 255, 0.34);
  transition: transform 0.18s ease, color 0.18s ease;
}
.rail-group.open .rail-parent .rail-caret { transform: rotate(90deg); color: rgba(255, 255, 255, 0.7); }

.rail-sub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 5px;
}
.rail-sub[hidden] { display: none; }
.rail-sub::before {
  content: '';
  position: absolute;
  left: 21px; top: 4px; bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.rail-child {
  /* 左边界 23px 让胶囊从竖线右侧起，文字再左移到 41px——正好对齐父级文字 */
  margin-left: 23px;
  padding: 7px 12px 7px 18px;
  font-size: 12.6px;
  color: rgba(255, 255, 255, 0.52);
  border-radius: 10px;
}
.rail-child:hover { color: #fff; }
.rail-child.active { color: #fff; background: rgba(255, 255, 255, 0.11); }
/* 子项不重复父级那个柠檬点：胶囊本身已经是位置提示，再点点会挤在文字边上 */
.rail-child.active::before { display: none; }

/* 子项已经填充高亮时，父级只留文字高亮，两层深底叠在一起太重 */
.rail-group.child-active .rail-parent.active { background: transparent; color: #fff; }
.rail-group.child-active .rail-parent.active::before { display: none; }

/* 861–1024px：侧边栏只剩图标，没有文字位置，子菜单不可用（点父级直接进第一个子页） */
@media (max-width: 1024px) and (min-width: 861px) {
  .rail-sub { display: none !important; }
  .rail-parent .rail-caret { display: none; }
}

/* ---------------------------------------------------------------
   员工档案 · 试用期三张卡分色
   两周考核＝冷色（评估）、约访谈＝紫（对话）、转正述职＝浅黄（待办/结果）；
   都用最浅一档，卡内的小块（无结论 / 备注 / 记录行 / 述职步骤）改成半透明白，
   避免在色底上发灰发脏。
   --------------------------------------------------------------- */
.card.card-review { background: var(--blue-soft); border-color: rgba(42, 74, 122, 0.12); }
.card.card-interview { background: var(--lilac-soft); border-color: rgba(74, 54, 128, 0.12); }
.card.card-defense { background: var(--lemon-soft); border-color: rgba(119, 98, 10, 0.14); }

.card-review .prob-none,
.card-review .review-comment,
.card-review .card-empty,
.card-interview .prob-none,
.card-interview .card-empty,
.card-defense .def-none { background: rgba(255, 255, 255, 0.62); }

/* 卡片收矮后空态不再需要白底块：一句灰字就够了，白块反而占掉半张卡 */
.card-review .prob-none,
.card-interview .prob-none,
.card-defense .prob-none { background: transparent; padding: 2px 0 0; }

/* 述职卡的空态落在嵌块里，直接透明就行，别再套一层白底 */
.card-defense .df-step .def-none { background: transparent; padding: 2px 0; }

.card-defense .def-file { background: rgba(255, 255, 255, 0.9); border-color: rgba(23, 23, 23, 0.07); }
.card-defense .def-file:hover { background: #fff; }

.card-review .review-row,
.card-interview .iv-row { border-bottom-color: rgba(23, 23, 23, 0.07); }

/* 色底上按钮用白底更稳，深色药丸会抢卡片本身的颜色识别 */
.card-review .btn-ghost,
.card-interview .btn-ghost,
.card-defense .btn-ghost { background: rgba(255, 255, 255, 0.66); }

/* 三张彩色卡等高：一高一矮一眼就看出来，等高才像一组 */
.emp-two.emp-two-tint { align-items: stretch; }
.emp-three.emp-three-tint { align-items: stretch; }

/* 等高之后内容少的那张会留一大片纯色，让空态块把剩余高度吃掉，看起来是「留白」而不是「没渲染」 */
.emp-two-tint > .card,
.emp-three-tint > .card { display: flex; flex-direction: column; }
.emp-two-tint > .card > :last-child { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0; }
.emp-three-tint > .card > :last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
.emp-two-tint .prob-none { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }

/* 述职卡：最后一个步骤（转正结论）吃掉剩余高度，空态居中，和另外两张卡的空态对齐 */
.emp-three-tint .df-step:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
.emp-three-tint .df-step:last-child .def-none { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }

/* 色底上任何色调的 chip 都会往底色里糊（蓝 chip 落在蓝卡上尤其看不见），
   统一给一圈白色描边让它浮出来，颜色语义保留 */
.card-review .chip,
.card-interview .chip,
.card-defense .chip { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.82); }

/* 述职卡里步骤块之间不需要额外的下边距，最后一块贴底 */
.card-defense #defense-body { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------
   建群弹窗：左「组织架构」右「群成员」
   左侧部门行是可折叠的目录，人挂在部门下面；右侧是选进来的人，可逐个移除。
   --------------------------------------------------------------- */
.att2-list.gp-list, .att2-picked.gp-picked { max-height: 44vh; }

.gp-dept {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink-3);
  text-align: left;
  cursor: pointer;
}
.gp-dept:hover { background: var(--bg-2); }
.gp-dept .gp-caret { flex: 0 0 auto; color: var(--muted-2); transition: transform 0.15s ease; }
.gp-dept.open .gp-caret { transform: rotate(90deg); }
.gp-dept .gp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-dept .gp-count {
  margin-left: auto;
  padding-left: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gp-dept.has-sel { color: var(--ink); }
.gp-dept.has-sel .gp-count { color: #2b6cb0; }

.gp-row.off { opacity: 0.45; cursor: not-allowed; }
.gp-row.off:hover { background: transparent; }


/* ---------------------------------------------------------------
   试用期员工页：7:3 版面
   左 7＝会议与流程（与右栏等高、内部滚动，按类型页签左右切换）；
   右 3＝个人信息 / 入职 SOP / 试用期考核群 三张卡。流程记录在两栏下方。
   --------------------------------------------------------------- */
.pm-main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 14px; align-items: stretch; }
.pm-left { min-width: 0; display: flex; }

.pm-panel { padding: 0; overflow: hidden; flex: 1; display: flex; flex-direction: column; min-height: 0; }
/* 卡内可滚时底部留一条渐隐，暗示"下面还有"；滚到底自动消失 */
.pm-ops-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pm-ops-wrap::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: linear-gradient(to top, var(--card) 24%, rgba(255, 255, 255, 0));
  opacity: 0; transition: opacity 0.15s ease; pointer-events: none;
}
.pm-ops-wrap.has-more::after { opacity: 1; }
.pm-ops::-webkit-scrollbar { width: 8px; }
.pm-ops::-webkit-scrollbar-track { background: transparent; }
.pm-ops::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.pm-ops::-webkit-scrollbar-thumb:hover { background: #cfc6bb; }
.pm-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
/* 高度不再写死：卡片随 grid stretch 与右栏等高，列表占满中间剩余空间、卡内滚动 */
.pm-ops { flex: 1; min-height: 0; overflow-y: auto; }
.pm-panel-foot {
  padding: 9px 16px 10px;
  border-top: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--muted-2);
  line-height: 1.55;
}

/* 每行一个步骤。原来最左边那一列彩色文字块（两周汇报 / 面谈 / 转正述职）已按用户要求撤掉
   ——「不需要再放一个蓝色的『两周汇报』」，改成时间轴：一个圆点 + 往下连的竖线（2026-11-14）。 */
.pm-op {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 32px;
  border-bottom: 1px solid var(--line-2);
}
.pm-op:last-child { border-bottom: 0; }
.pm-op.is-next { background: #f7fbff; }
.pm-op.is-todo { background: var(--card-2); }

/* 竖线：连到下一行的圆点；第一行从自己的圆点起、最后一行到自己的圆点止 */
.pm-op::before {
  content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
  width: 2px; background: var(--line-2);
}
.pm-op:first-child::before { top: 18px; }
.pm-op:last-child::before { bottom: calc(100% - 18px); }

/* 圆点：已办=实心绿、进行中=实心蓝、待办=空心蓝、还没轮到=空心灰 */
.pm-op::after {
  content: ''; position: absolute; left: 10px; top: 11px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2);
}
.pm-op.is-done::after { background: var(--green); border-color: var(--green); }
.pm-op.is-doing::after { background: #7fa9e6; border-color: #7fa9e6; }.pm-op.is-next::after { border-color: #7fa9e6; box-shadow: 0 0 0 3px rgba(127, 169, 230, .18); }
/* 已取消的场次（2026-12-01）：灰点 + 淡化，不能用「已办」的绿点 —— 取消不是完成 */
.pm-op.is-cancelled { background: var(--card-2); }
.pm-op.is-cancelled::after { background: #d5d8dd; border-color: #d5d8dd; }
.pm-op.is-cancelled .pm-op-op,
.pm-op.is-cancelled .pm-op-sub { color: var(--muted); }

.pm-op-body { min-width: 0; }
.pm-op-op { font-size: 13px; font-weight: 600; }
.pm-op-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pm-op-res { display: flex; justify-content: flex-end; }
.pm-op-act { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.pm-res-none { font-size: 11.5px; color: var(--muted-2); }
.pm-res-done { font-size: 11.5px; color: var(--muted); }

/* 右栏按自身内容取高（align-self:start），左栏高度由 JS 锁到右栏的自然高度：
   内容少 → 两栏拉平；内容多 → 在卡内滚，不会把页面顶长。
   若让右栏 stretch，它的高度就等于行高，而行高又取决于左栏，会互相较劲。 */
.pm-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; align-self: start; }
.pm-right-title { font-size: 13.5px; font-weight: 620; margin-top: 5px; line-height: 1.5; }
/* 卡片头：标题占满、右上角一个小按钮（去编辑 / 重新绑定群）。
   标题过长一律省略，别把按钮挤到下一行——右栏只有 200 多像素。 */
.pm-right-head { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.pm-right-head .pm-right-title { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-right-head .btn { flex: 0 0 auto; }
.pm-right-btn { width: 100%; justify-content: center; margin-top: 12px; }
.pm-conclusion {
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--muted);
}
.pm-conclusion b { color: var(--ink); }

.pm-facts { display: flex; flex-direction: column; gap: 10px; }
.pm-fact { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.pm-fact > span { font-size: 11.5px; color: var(--muted); padding-top: 2px; }
.pm-fact > div { line-height: 1.65; word-break: break-word; }

@media (max-width: 1100px) {
  /* minmax(0,1fr) 而不是 1fr：1fr 的自动最小宽度是 min-content，
     窄屏上会被「签段控件 + 按钮」顶到 516px，卡里内容直接被裁掉（2026-11-13 H5 适配） */
  .pm-main { grid-template-columns: minmax(0, 1fr); }
  .pm-panel, .pm-ops-wrap, .pm-ops { flex: none; }
  .pm-ops { overflow-y: visible; }
}
/* 页签上的场数小徽标 */
.pm-tab-n {
  font-style: normal; font-size: 10.5px; font-weight: 650; line-height: 1;
  padding: 2px 5px; border-radius: 99px; background: var(--line-2); color: var(--muted-2);
}
.segmented button.active .pm-tab-n { background: rgba(255, 255, 255, .2); color: #fff; }

/* ── 试用期 · 个人信息卡与群通道状态（2026-11） ── */
.pm-info-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 0; }
.pm-info-rows > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--line-2);
}
.pm-info-rows > div:last-child { border-bottom: 0; }
.pm-info-rows span { font-size: 11.5px; color: var(--muted); flex: none; }
.pm-info-rows b { font-size: 12.5px; font-weight: 600; text-align: right; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-info-acts, .pm-grp-acts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.pm-info-acts .pm-right-btn, .pm-grp-acts .pm-right-btn { margin-top: 0; }
.pm-info-hint { margin-top: 8px; font-size: 11px; color: var(--muted-2); line-height: 1.5; }

.pm-grp-src { flex: none; }
.pm-grp-state {
  margin-top: 8px; padding: 6px 9px; border-radius: 7px;
  background: var(--surface-2, rgba(0,0,0,0.03));
  font-size: 11.5px; line-height: 1.5; color: var(--muted);
}
.pm-grp-state.ok { background: var(--mint-soft, #e8f5ee); color: #1f7a58; }
.pm-grp-state.bad { background: var(--red-soft, #fdeaea); color: #b42318; }

/* 等级分布抽屉里，每一档下面直接列出人，点名字进他的主页 */
.pm-grade-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pm-grade-person {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 3px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  font-size: 12px; font-weight: 580; color: var(--ink); transition: border-color .15s, transform .15s;
}
.pm-grade-person:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.pm-grade-person .avatar { width: 20px; height: 20px; font-size: 10px; }

/* 列表/抽屉里的「进入 / 去处理」按钮：箭头贴着文字，别撑成两行 */
.pm-go { white-space: nowrap; display: inline-flex; align-items: center; gap: 1px; }

/* ── 工作台「招聘在途」：在途阶段横排（2026-11） ──
   原来是竖排「标签 + 进度条 + 人数」，会把卡片撑高、标签还会被压成两行。
   改成等分横排：标签单行不折、数字在下面，列间一条发丝竖线分开，卡片高度不动。
   阶段口径改叫一面/二面/三面（不再 HR/技术/老板）后补了「一面中」，现在是 6 格。 */
.fn-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* 同行其他卡更高时，让这排阶段把剩余高度吃满：分隔线贯穿成一条数据带，不留一块空 */
  flex: 1 1 auto;
  align-content: stretch;
  margin-top: 2px;
}
.fn-step {
  min-width: 0;
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;      /* 文字和数字都居中 */
  justify-content: center;
  text-align: center;
}
.fn-step + .fn-step { padding-left: 6px; border-left: 1px solid var(--line-2); }
.fn-name {
  display: block;
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1.3;
  color: var(--ink-3);
  white-space: nowrap;      /* 关键：无论如何都不折行 */
  letter-spacing: -0.02em;  /* 5 个字挤在一格里，收紧一点才不贴边 */
}
.fn-num {
  display: block;
  margin-top: 3px;
  font-family: var(--f-num);
  font-size: 24px;          /* 数字放大：一眼能看到各环节堆了多少人 */
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.fn-step.is-zero .fn-name,
.fn-step.is-zero .fn-num { color: var(--muted-2); }
.fn-step.is-zero .fn-num { font-weight: 600; }

/* ============================================================================
   系统设置 · 档案选项
   下拉选项与编码字典合并到一页，共用「分组 + 行」的字典式布局
   ========================================================================== */
.opt-intro {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-bottom: 14px;
}
.opt-intro > div {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 14px; font-size: 12px; line-height: 1.75; color: var(--ink-3);
}
.opt-intro b { margin-right: 6px; color: var(--ink); font-size: 12.5px; }

.opt-add {
  display: flex; gap: 8px; padding: 10px 14px;
  border-top: 1px dashed var(--line); background: var(--card-2);
}
.opt-add input {
  flex: 1; height: 30px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0 9px; font-size: 12.5px; outline: none; background: var(--card); min-width: 0;
}
.opt-add input:focus { border-color: var(--ink); }

.opt-del {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--muted-2); font-size: 14px; line-height: 1;
}
.opt-del:hover { background: var(--red-soft); color: var(--red); }

.opt-sec-head { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 10px; }
.opt-sec-head strong { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }

@media (max-width: 900px) {
  .opt-intro { grid-template-columns: 1fr; }
}

/* 档案选项分组内的行容器：条目多的分组内部滚动，避免一列拉得比另一列长很多 */
.fg-body { display: flex; flex-direction: column; }
.fg-body.is-scroll { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.fg-body.is-scroll::-webkit-scrollbar { width: 6px; }
.fg-body.is-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.fg-body.is-scroll::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------ 系统设置 · 群机器人 ------------------------------ */
/* 通道单选不做原生 radio（默认圆点在卡片里很违和），用一整块可点的行 + 左侧小圆点 */

.notify-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 13px; cursor: pointer;
  background: #fbfcfd; border: 1px solid var(--line);
  transition: background .16s, box-shadow .16s, border-color .16s;
}
.notify-opt:hover { background: #f6f8fa; }
.notify-opt.on {
  background: #fff; border-color: transparent;
  box-shadow: 0 8px 22px -12px rgba(16, 20, 24, .38), 0 2px 5px -2px rgba(16, 20, 24, .1);
}
.notify-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 3px;
  border: 1.5px solid var(--line-2); background: #fff; transition: border-color .16s, box-shadow .16s;
}
.notify-opt.on .notify-dot { border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--ink); }
.notify-opt b { display: block; font-size: 13px; font-weight: 650; }
.notify-opt em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.6; }

.notify-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.notify-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.notify-item {
  display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font: inherit;
}
.notify-item:hover { border-color: var(--ink-3); background: #fbfcfd; }
.notify-item b { font-size: 12.5px; font-weight: 650; }
.notify-item em { font-style: normal; font-size: 11px; color: var(--muted); font-family: var(--f-num); }

.notify-out {
  margin: 12px 0 0; padding: 11px 12px; border-radius: 11px;
  background: #0f1418; color: #d7e3ee; font-size: 11.5px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-all; max-height: 180px; overflow: auto;
}

.notify-steps { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.notify-steps li { margin-bottom: 7px; }
.notify-steps b { color: var(--ink); font-weight: 650; }
.notify-steps code {
  font-family: var(--f-num); font-size: 11.5px; background: #eef1f5;
  padding: 1px 5px; border-radius: 5px;
}

/* ------------------------------ 群消息预览卡（模拟钉钉群里的样子） ------------------------------ */
.dk-wrap { padding: 2px 0 4px; }
.dk-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 10px 30px -18px rgba(16, 20, 24, .35);
}
.dk-top {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: #fafbfc;
}
.dk-ava {
  width: 28px; height: 28px; border-radius: 9px; background: #eef1f5;
  display: grid; place-items: center; font-size: 15px; flex: none;
}
.dk-top b { display: block; font-size: 12.5px; font-weight: 650; }
.dk-top em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-body { padding: 13px 14px 15px; }
.dk-h { font-size: 14.5px; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 9px; }
.dk-l { font-size: 13px; line-height: 1.95; color: var(--ink-2); }
.dk-l b { color: var(--ink); font-weight: 650; }
.dk-l a { color: #1a5fd0; text-decoration: none; }
.dk-l a:hover { text-decoration: underline; }

/* 流程记录：展开 / 收起更早的记录（对齐时间线的内容列，不压在竖线上） */
.tl-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 2px 0 4px 20px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-3);
  font: inherit; font-size: 12px; cursor: pointer;
  transition: border-color .16s, color .16s, box-shadow .16s;
}
.tl-more:hover { color: var(--ink); border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.tl-more svg { transition: transform .18s ease; }

/* ══════════ 文档链接 / 群名：四处共用一套（2026-11-09 用户口径） ══════════
   用户原话：「你看现在这几个地方展示逻辑一个地方一个样：入职办理处的入职 SOP 和入职群、
   试用期人员处的入职 SOP 和试用期考核群、离职办理处的离职 SOP 和交接文档。我想统一展示样式，
   全部参考入职办理处的展示逻辑：文档名称作为链接，展示名称太长就打三个点省略，
   下面加一条横线，保持这个逻辑就好了。」

   所以类名统一成 .dg-*，结构只有两种：
     · 文档  = 文档真名（不是「打开」「SOP 链接」这种通名）+ 名字底下一条细横线
     · 群名  = 群名一行 + 下面一行小字（一般写人数）
   渲染函数在 public/js/views/doc-group-cell.js，四处都调它，样式只此一份。
   ⚠️ 不要再给某一张表单独写 width/max-width 覆盖，一覆盖就又「一个地方一个样」了。 */
.dg-doc { display: inline-block; max-width: 128px; vertical-align: middle; font-size: 12.5px; color: var(--ink); }
.dg-doc-t {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  /* 横线就是这条：贴着文字，比正下划线更细、更淡，悬停才加深 */
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(23, 23, 23, .24); text-decoration-thickness: 1px;
}
.dg-doc:hover .dg-doc-t { text-decoration-color: rgba(23, 23, 23, .62); }
/* 群名一律全称（【试用期考核群】-后端组-邓国金），放不下就单行三点省略，不缩写成「后端组-邓国金」 */
.dg-grp-t {
  max-width: 208px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  /* 12px 而不是 12.5：「【试用期考核群】-产品二组-林育宇」这种 16 字全名刚好能在 196px 里放完 */
  font-size: 12px; color: var(--ink-2);
}
.dg-grp-n { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.dg-empty { font-size: 12.5px; color: var(--muted-2); }
@media (max-width: 1400px) {
  .dg-doc { max-width: 104px; }
  .dg-grp-t { max-width: 176px; }
}
/* 1080 这类窗口里 8–10 列的表本来就挤，群名列再占 200px 会把「操作」顶出去 ——
   窄屏收到 140px（钉钉群名前缀就占 7 个字，剩下的靠悬停看 title） */
@media (max-width: 1200px) {
  .dg-grp-t { max-width: 140px; }
}
/* 周报页「姓名」单元格（群名已挪到单独一列，这里只剩姓名 + 岗位） */
.wk-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wk-name strong { display: inline; }

/* 招聘 HR：名字短，不换行挤成两行 */
.onb-recruiter { font-size: 12.5px; white-space: nowrap; }

/* ── 已离职同事的入职留档：低频入口（2026-11） ──
   从顶部页签里挪到「文档与考核群」页脚：日常没人需要它，
   但真要查某位离职同事的入职记录时得找得到 —— 所以放在表格扫完一眼能看到的位置，
   样式做成一行灰字，不抢主内容。 */
.docs-archive-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.docs-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 2px 0;
  font: inherit;
  font-size: 12px;
  color: var(--muted-2);
  cursor: pointer;
  transition: color .15s ease;
}
.docs-archive-link:hover {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-archive-link svg { opacity: .75; }

/* ============================== 选人弹窗（人员字段） ==============================
   招聘 HR 这类字段的值是「一个员工」，从组织架构里选：按部门折叠、可搜、点一下就选中。
   已离职的人不会出现在这里（但档案上已有的离职 HR 照常显示）。 */
.pp { display: flex; flex-direction: column; gap: 10px; }
.pp-search { width: 100%; }
.pp-list { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.pp-dept + .pp-dept { border-top: 1px solid var(--line-2); }
.pp-dept-head {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px;
  border: 0; background: var(--surface-2, rgba(0, 0, 0, 0.03)); font: inherit;
  font-size: 12.5px; color: var(--ink); cursor: pointer; text-align: left;
}
.pp-caret { flex: 0 0 auto; color: var(--muted); transition: transform .15s; }
.pp-dept.open .pp-caret { transform: rotate(90deg); }
.pp-dept-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pp-dept-n { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.pp-dept-body { display: none; }
.pp-dept.open .pp-dept-body { display: block; }
.pp-row {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 12px 7px 24px;
  border: 0; border-top: 1px solid var(--line-2); background: none; font: inherit;
  cursor: pointer; text-align: left;
}
.pp-row:hover { background: var(--surface-2, rgba(0, 0, 0, 0.03)); }
.pp-row.on { background: rgba(0, 0, 0, 0.035); }
.pp-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-row-txt b { font-size: 13px; font-weight: 550; color: var(--ink); }
.pp-row-txt em {
  font-style: normal; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pp-row-go { flex: 0 0 auto; font-size: 11.5px; color: var(--muted-2); }
.pp-row:hover .pp-row-go { color: var(--ink); }
.pp-row.on .pp-row-go { color: var(--muted); }
/* 多选：选中态要一眼看得出来（单选那套 3.5% 灰底在多选里等于没选中） */
.pp-multi .pp-row.on { background: var(--blue-soft); }
.pp-multi .pp-row.on .pp-row-go { color: #1d4ed8; font-weight: 650; }
.pp-multi .pp-row.on .pp-row-txt b { color: #1d4ed8; }
.pp-hint { line-height: 1.7; }

/* 表格里的「招聘 HR」单元格：空的时候是一个「补齐」按钮，有值时整块可点改 */
.onb-rec-pick {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; padding: 1px 3px; margin-left: -3px;
  font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer;
  border-radius: 5px;
}
.onb-rec-pick:hover { background: var(--surface-2, rgba(0, 0, 0, 0.04)); }
.onb-rec-pick.empty { color: var(--muted); font-size: 12px; border: 1px dashed #d9d2c9; }
.onb-rec-pick.empty:hover { color: var(--ink); border-color: var(--muted); background: var(--surface-2, rgba(0, 0, 0, 0.04)); }
.onb-rec-pick em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.onb-rec-former { font-size: 10.5px; color: var(--muted-2); margin-left: 3px; }

/* 编辑表单里的人员字段：只读输入框，点输入框本身就打开组织架构选人
   （用户口径 2026-11-06：右边的「选择」按钮去掉，所以给个右侧小箭头当可点的提示） */
.field-person { display: flex; align-items: center; gap: 6px; position: relative; }
.field-person input { flex: 1; min-width: 0; cursor: pointer; padding-right: 24px; }
.field-person .btn { flex: 0 0 auto; }
.field-person:has(input)::after {
  content: '▾';
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted-2);
  pointer-events: none;
}
.field-person:hover input { border-color: var(--line-strong, #c8ccd4); }

/* 入职信息弹窗：座位行（输入框可手打，不是选人那种只读，所以不复用 field-person 的 pointer 光标） */
.field-seat { display: flex; align-items: center; gap: 6px; }
.field-seat input { flex: 1; min-width: 0; }
.field-seat .btn { flex: 0 0 auto; }

/* 入职公司：原生 option 上不了色 → 值走 hidden input，控件是统一触发按钮 + .mpick 浮层
   （2026-11-09 收敛：原来的 .csel-pop 自研浮层已删，浮层统一由 picker.js 提供） */
.csel { position: relative; }
.csel .pk-trigger { width: 100%; }
.csel-text { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.csel-placeholder { color: var(--muted-2); }
.csel-dot {
  width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, .12);
}

/* 系统管理-下拉选项：公司选项的代表色小圆点 + 取色器 */
.opt-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 3px;
  margin-right: 6px; border: 1px solid rgba(0, 0, 0, .12);
}
/* 取色器：.frow input 的 width:100%/padding 0 9px 会把它压成细竖条，这里按行内小控件重写 */
.frow input.opt-color,
.opt-color {
  width: 26px; min-width: 26px; height: 22px; padding: 2px;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--card);
  cursor: pointer; appearance: none; -webkit-appearance: none; flex: 0 0 auto;
}
.opt-color::-webkit-color-swatch-wrapper { padding: 0; }
.opt-color::-webkit-color-swatch { border: none; border-radius: 4px; }
.opt-color::-moz-color-swatch { border: none; border-radius: 4px; }

/* 选人浮层：独立于 #modal-host，比普通弹窗高一层（可以从「编辑档案」里叠着打开） */
.pp-layer { z-index: 120; }

/* ============================================================================
   侧栏账号菜单（个人中心 / 后台系统 / 退出登录）
   贴着左下角账号卡向上弹出，所以用 fixed 层 + 绝对定位的白色菜单卡片
   ========================================================================== */
.user-menu-layer { position: fixed; inset: 0; z-index: 95; }

.user-menu {
  position: absolute;
  width: 208px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.16), 0 2px 6px rgba(23, 23, 23, 0.06);
}

.user-menu-head {
  padding: 8px 10px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.user-menu-head strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-head em {
  font-style: normal;
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-item {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.user-menu-item:hover { background: var(--bg-2); color: var(--ink); }
.user-menu-item:disabled { color: var(--muted-2); cursor: not-allowed; }
.user-menu-item:disabled:hover { background: none; color: var(--muted-2); }
.user-menu-item.danger { color: var(--red); }
.user-menu-item.danger:hover { background: var(--red-soft); color: var(--red); }

.user-menu-sep { height: 1px; background: var(--line); margin: 5px 6px; }

/* ============================================================================
   个人中心
   ========================================================================== */
.me-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin-bottom: 12px;
}
.me-hero-avatar .avatar { width: 54px; height: 54px; font-size: 19px; font-weight: 600; }
.me-hero-main { flex: 1; min-width: 0; }
.me-hero-name { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.2px; }
.me-hero-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.me-hero-side { text-align: right; }
.me-hero-account { font-size: 13px; color: var(--ink-2); margin-top: 3px; font-variant-numeric: tabular-nums; }

.me-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

.me-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.me-row:last-child { border-bottom: 0; padding-bottom: 0; }
.me-row > span { color: var(--muted); flex: 0 0 auto; }
.me-row > b { font-weight: 500; color: var(--ink); text-align: right; min-width: 0; overflow-wrap: anywhere; }

.me-emp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.me-emp-name { font-size: 14px; font-weight: 600; color: var(--ink); }

.me-empty { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.me-empty strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }

.me-links { display: flex; flex-direction: column; gap: 6px; }
.me-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: var(--card-2);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.me-link:hover { background: var(--bg-2); }
.me-link em { font-style: normal; font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }

@media (max-width: 900px) {
  .me-grid { grid-template-columns: minmax(0, 1fr); }
  .me-hero { flex-wrap: wrap; }
  .me-hero-side { text-align: left; }
}

/* 个人中心 · 界面字号（2026-11-16） */
.me-zoom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.me-zoom-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 6px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); color: var(--ink-2); line-height: 1.35;
  transition: 0.14s;
}
.me-zoom-btn b { font-size: 13px; font-weight: 600; }
.me-zoom-btn em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.me-zoom-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.me-zoom-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.me-zoom-btn.is-on em { color: rgba(255, 255, 255, 0.68); }
.me-zoom-demo {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* 个人中心 · 待办列表里的数字与说明 */
.me-link { align-items: center; }
.me-link > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.me-link-hint { font-style: normal; font-size: 11.5px; color: var(--muted); }
.me-count { font-size: 13px; font-weight: 500; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.me-count.on { color: var(--ink); }

/* ============================================================================
   组织架构 · 同步范围弹窗（哪几家单位不进这套系统）
   与「档案选项」同一套语法：白卡 + 发丝线 + 药丸 chip，颜色只用来标注状态
   ========================================================================== */
.scope-note {
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 14px; font-size: 12px; line-height: 1.8; color: var(--ink-3);
}
.scope-note b { color: var(--ink); font-weight: 650; }

.scope-block {
  border: 1px solid var(--line); border-radius: var(--r-md);
  margin-top: 12px; overflow: hidden; background: var(--card);
}
.scope-block-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--card-2); border-bottom: 1px solid var(--line);
}
.scope-block-head strong { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }

.scope-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 14px; }
.scope-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 26px;
  padding: 0 4px 0 11px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2);
}
.scope-chip button {
  width: 20px; height: 20px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted-2); font-size: 13px; line-height: 1; cursor: pointer;
}
.scope-chip button:hover { background: var(--red-soft); color: var(--red); }

.scope-preview {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px dashed var(--line);
}
.scope-preview > div {
  padding: 12px 14px; display: flex; align-items: baseline; gap: 5px;
  border-right: 1px solid var(--line);
}
.scope-preview > div:last-child { border-right: 0; }
.scope-preview b {
  font-size: 20px; font-weight: 500; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.scope-preview span { font-size: 11.5px; color: var(--muted); }

.scope-units { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 12px; }
.scope-unit {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--lemon-soft); border: 1px solid #f0e3a8;
  font-size: 11.5px; color: var(--ink-2);
}
.scope-unit em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.scope-dirty {
  margin: 0 14px 12px; padding: 7px 10px; border-radius: 8px;
  background: var(--lemon-soft); font-size: 11.5px; color: #7a6212;
}

.scope-people { display: flex; flex-direction: column; padding: 4px 0; max-height: 220px; overflow-y: auto; }
.scope-person {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 7px 14px; border-bottom: 1px solid var(--line);
}
.scope-person:last-child { border-bottom: 0; }
.scope-person-name { font-size: 12.5px; color: var(--ink); }

#scope-people { padding-bottom: 10px; }
#scope-people > .tiny { display: block; padding: 10px 14px; }

/* 同步范围：左「完整组织架构」勾选 + 右「已同步的部门」清单
   （用户口径 2026-11-06：要的是「同步哪些部门」，不是「不同步哪些部门」） */
.sc-picker {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px; margin-top: 12px; align-items: stretch;
}
.sc-pane {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
  overflow: hidden; display: flex; flex-direction: column;
}
.sc-pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--card-2); border-bottom: 1px solid var(--line);
}
.sc-pane-head strong { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; }
.sc-reload {
  border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.sc-reload:hover { color: var(--ink); }
.sc-search { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.sc-search input {
  width: 100%; height: 30px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); padding: 0 10px; font-size: 12.5px; color: var(--ink-2);
}
.sc-tree { max-height: 336px; overflow-y: auto; padding: 5px 0 8px; }
.sc-row {
  display: flex; align-items: center; gap: 8px; height: 29px; padding-right: 12px;
  cursor: pointer; user-select: none;
}
.sc-row:hover { background: var(--card-2); }
.sc-row.is-dim { opacity: .32; }
.sc-box {
  width: 15px; height: 15px; flex: 0 0 auto; border-radius: 5px;
  border: 1px solid var(--line-2); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; color: #fff;
}
.sc-box.is-on { background: var(--ink); border-color: var(--ink); }
.sc-box.is-half { border-color: var(--ink-3); color: var(--ink-3); }
.sc-name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-count { margin-left: auto; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sc-tag {
  font-size: 10px; color: var(--muted); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 1px 7px;
}
.sc-picked {
  display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 14px;
  max-height: 236px; overflow-y: auto;
}
.sc-picked .scope-chip em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 3px; }
.sc-stat {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  margin-top: auto;
}
.sc-stat > div { padding: 10px 12px; border-right: 1px solid var(--line); }
.sc-stat > div:last-child { border-right: 0; }
.sc-stat b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.sc-stat span { font-size: 11px; color: var(--muted); }
.sc-hint { padding: 10px 14px 12px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* 弹窗刚打开、钉钉部门树还在路上时的等待态 */
.sc-loading {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 44px 0 14px;
}
.sc-loading .sc-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
  animation: sc-blink 1.05s ease-in-out infinite;
}
.sc-loading .sc-dot:nth-child(2) { animation-delay: .16s; }
.sc-loading .sc-dot:nth-child(3) { animation-delay: .32s; }
@keyframes sc-blink {
  0%, 100% { opacity: .18; transform: translateY(0); }
  50% { opacity: .9; transform: translateY(-3px); }
}

@media (max-width: 860px) {
  .sc-picker { grid-template-columns: minmax(0, 1fr); }
  .sc-tree { max-height: 240px; }
}

@media (max-width: 640px) {
  .scope-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scope-preview > div { padding: 10px; flex-direction: column; gap: 2px; }
}

/* ============================================================================
   候选人名单 v2（2026-11）
   ① 7 列表格 + 表头点击排序  ② 右侧「筛选」展开的组合筛选面板
   ③ 看板 chips（仅自己 / 组织内同步 / 锁定）
   视觉语言沿用 KASUMI 语法：中性底 + 发丝线 + 药丸；激活态用墨色填充，不用彩色。
   ========================================================================== */

/* ---------- 看板 chips 行 ---------- */
.rc-viewbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rc-view-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }

/* 记录卡里的一行：筛选 + 共 N 人。
   筛选属于「当前这个视图」，所以放在卡片内部，不再飘在看板条下面。 */
/* ============ 快速筛选条（2026-11-12：全部候选人下面的岗位 / 面试阶段两行） ============
   一行一个维度，左边是行标；在招岗位永远排最前面。
   一行放不下**不横向滚**，而是把装不下的收起来，右边亮一个「展开」按钮，
   点开下拉里就是没显示出来的那些（用户口径 2026-11-12）。 */
.rc-quick {
  margin-bottom: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  background: var(--card);
  overflow: hidden;
}
.rc-q-row { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 7px 34px 7px 12px; }
.rc-q-row + .rc-q-row { border-top: 1px solid var(--line); }
.rc-q-key {
  flex: none; width: 30px; padding-top: 6px;
  font-size: 11.5px; font-weight: 650; color: var(--ink-3); letter-spacing: .04em;
}
/* 2026-11-19：改成换行排版 —— 在招岗位 / 全部阶段都要摆在行上，
   装不下就折到第二行，不再按宽度把尾巴藏起来（见 layoutQuickRow）。 */
.rc-q-items {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 5px; flex: 1 1 auto; min-width: 0;
  padding: 1px 0 3px;
}
/* 收起来的 chip / 分组标题 / 分隔线必须真的消失（inline-flex 会盖掉 [hidden] 的默认 display） */
.rc-q-items > [hidden] { display: none; }
/* 左边固定的一组（备选（人才池）/ offer 备选）：永不折叠 —— 先让它占位，右边再去折。
   2026-11-18 用户口径：「把备选人才池和 offer 备选都放到左边来」。 */
.rc-q-pin { display: flex; align-items: center; gap: 5px; flex: none; padding-top: 1px; }
.rc-q-group {
  flex: none; font-size: 10.5px; font-weight: 650; color: var(--muted);
  padding: 0 6px 0 2px; white-space: nowrap;
}
.rc-q-group.is-hot { color: var(--orange, #d1793a); }
.rc-q-sep { flex: none; width: 1px; height: 16px; background: var(--line-2); margin: 5px 4px 0; }
/* 装不下的时候才出现：点它下拉看剩余的岗位 / 阶段（icon 朝下 = 打开浮层，不是往后翻） */
.rc-q-more {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  cursor: pointer;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .45);
}
.rc-q-more:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-q-more[hidden] { display: none; }
/* 带字的折叠按钮（其余岗位 / 其他状态）：和 chip 同一套外观，跟在筛选行末尾（2026-11-19） */
.rc-q-row.is-label { padding-right: 12px; }
.rc-q-more.rc-q-more-label {
  position: static; transform: none; width: auto; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; padding: 0 8px 0 10px;
  font-size: 12px; color: var(--ink-2); box-shadow: none; flex: none; white-space: nowrap;
}
.rc-q-more-label .rc-q-more-n {
  font-style: normal; font-family: var(--f-num); font-size: 10.5px; font-weight: 650;
  background: var(--line); color: var(--muted);
  padding: 0 5px; height: 15px; line-height: 15px; border-radius: 99px;
}
.rc-q-more-label .rc-q-more-n:empty { display: none; }
.rc-q-more-label:hover .rc-q-more-n { background: rgba(255, 255, 255, .22); color: #fff; }
.rc-q-more-label.has-on { border-color: var(--ink); color: var(--ink); font-weight: 600; }

.rc-qchip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: 12px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: border-color .12s, background .12s, color .12s;
}
.rc-qchip:hover { border-color: #d2d3d8; background: var(--card-2); color: var(--ink); }
/* 在招岗位：不再写「在招 N」这个文字标（用户口径 2026-11-12），
   直接给这几个岗位铺浅橙底 —— 橙就是原来那个数字的颜色，扫一眼就知道现在真要人的是哪几个。
   选中的仍然走上面的黑色，黑 > 橙，不会被底色盖住。 */
.rc-qchip.is-hot {
  background: #fdf1e6; border-color: #f0cfb0; color: #a95c22; font-weight: 600;
}
.rc-qchip.is-hot em { background: rgba(209, 121, 58, .16); color: #a95c22; }
.rc-qchip.is-hot:hover { background: #fbe7d6; border-color: #e5bd98; color: #8f4d1c; }
.rc-qchip-t { max-width: 148px; overflow: hidden; text-overflow: ellipsis; }
.rc-qchip em {
  font-style: normal; font-family: var(--f-num); font-size: 10.5px; font-weight: 650;
  color: var(--muted); background: var(--line);
  padding: 0 5px; height: 15px; line-height: 15px; border-radius: 99px;
}
/* 人数为 0 的档位压暗：不藏起来（不然会问「已发 offer 去哪了」），但不抢注意力 */
.rc-qchip.is-zero { opacity: .5; }
/* 在招但还没人投的：别压太狠，否则橙底看不出来 */
.rc-qchip.is-hot.is-zero { opacity: .8; }
.rc-qchip.is-zero:hover, .rc-qchip.is-zero.is-on { opacity: 1; }
.rc-qchip.is-on,
.rc-qchip.is-hot.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-qchip.is-on em,
.rc-qchip.is-hot.is-on em { background: rgba(255, 255, 255, .22); color: #fff; }
.rc-qchip.is-on .mpick-dot { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); }
/* 每行最前面的「全部」：位置固定在首位，选它 / 不选任何具体项时高亮（2026-11-14） */
.rc-qchip-all { font-weight: 600; margin-right: 2px; }
.rc-qchip-all::after { display: none; }
.rc-qchip-all.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 「展开」里藏着当前选中的条件时点一个小黑点（位置固定后可能出现这种情况） */
.rc-q-more.has-on { border-color: var(--ink-3); color: var(--ink); }
.rc-q-more.has-on::after {
  content: ''; position: absolute; top: -2px; right: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 1.5px #fff;
}

.rc-cand-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.rc-cand-bar .rc-cand-count { margin-left: auto; white-space: nowrap; }
/* 「全部候选人」下的一句引导：这页不再有筛选按钮，告诉人两行 chip 怎么用 */
.rc-cand-bar .rc-cand-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 自定义看板：当前看板条件的回显（岗位 / 阶段 / 面试官 / 时间）
   2026-11-12 用户口径：不要「筛选」按钮 —— 条件直接摆在这一行，
   右边一个小图标点开才是 清空条件 / 公开·仅自己 / 锁定·不锁定。 */
.rc-cond-line { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
/* 报销筛选行 2026-11-30 加了 公司/报销人 下拉，右侧合计文字也变长：
   下拉不许被压扁，合计文字不许换行，放不下整体折行 */
.rc-cond-line .filter-select { flex-shrink: 0; }
.rc-cand-bar .rc-cand-count { flex-shrink: 0; }
.rc-cond-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.rc-cond-chip {
  font-size: 11.5px; color: var(--ink-2); background: var(--card-2);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 2px 9px; white-space: nowrap;
}
.rc-cond-more {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-3);
  cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.rc-cond-more:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* 面板嵌进卡片时去掉独立卡片的描边与圆角，只留一条分隔线 */
.ofa-card > .rc-filter-panel {
  margin: 0; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 12px 12px 4px;
}
.rc-cand-footline { padding: 8px 12px 0; }
.ofa-card #rec-cand-foot { padding: 0 12px 10px; }

.rc-vchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
  font-size: 12.5px; color: var(--ink-3); cursor: pointer; white-space: nowrap;
  transition: border-color .14s, color .14s, background .14s, box-shadow .14s;
}
.rc-vchip:hover { border-color: #d2d3d8; color: var(--ink); }
.rc-vchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-vchip.is-active .rc-vlock { border-color: rgba(255,255,255,.32); color: rgba(255,255,255,.86); }
.rc-vname { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.rc-vlock {
  flex: none; padding: 0 5px; height: 15px; line-height: 14px; border-radius: 4px;
  border: 1px solid var(--line-2); font-size: 10px; color: var(--muted);
}
.rc-vauthor { font-style: normal; font-size: 11px; color: var(--muted); }
.rc-vchip.is-active .rc-vauthor { color: rgba(255,255,255,.7); }
.rc-vchip-add { border-style: dashed; color: var(--muted); }
.rc-vchip-add:hover { border-color: var(--ink-3); color: var(--ink); background: var(--card-2); }

.rc-view-tools { display: inline-flex; gap: 2px; }
.rc-view-save { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* 看板条上的锁定快捷开关（在激活看板 chip 右边） */
.rc-vlockbtn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px dashed var(--line-2); background: transparent;
  font-size: 11.5px; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: border-color .14s, color .14s, background .14s;
}
.rc-vlockbtn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.rc-vlockbtn:hover { border-color: var(--ink-3); color: var(--ink); background: var(--card-2); }
.rc-vlockbtn.is-locked { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; }
.rc-view-save.is-busy { color: var(--ink-3); }

/* ---------- 筛选按钮（右上角） ---------- */
.rc-filter-btn { display: inline-flex; align-items: center; gap: 6px; }
.rc-filter-btn.is-on { border-color: var(--ink-3); color: var(--ink); background: var(--card-2); }
.rc-filter-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 600;
}

/* ---------- 组合筛选面板 ---------- */
.rc-filter-panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card-2); padding: 12px 14px; margin-bottom: 12px;
}
.rc-fp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; flex-wrap: wrap; }
.rc-fp-head strong { font-size: 12.5px; font-weight: 620; color: var(--ink); }
.rc-fp-spacer { margin-left: auto; }
/* 五个筛选格等宽（2026-11-06 用户口径：时间框跟上面一样长，每个格子统一长度） */
.rc-fp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 14px; }
.rc-fp { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rc-fp > em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.rc-fp select, .rc-fp input[type="date"] {
  width: 100%; height: 32px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card); font-size: 12.5px; color: var(--ink);
  font-family: inherit;
}
.rc-fp select:focus, .rc-fp input[type="date"]:focus { outline: none; border-color: var(--ink-3); }
.rc-fp-dates { display: flex; align-items: center; gap: 6px; }
.rc-fp-dates > span { flex: none; font-size: 11.5px; color: var(--muted); }
.rc-fp-foot { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

/* ---------- 多选筛选触发按钮（面试阶段 / 岗位 / HR 面试官） ---------- */
.rc-fp-multi {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  width: 100%; height: 32px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card); font: inherit; font-size: 12.5px; color: var(--ink);
  cursor: pointer; text-align: left;
}
.rc-fp-multi:hover { border-color: var(--ink-3); }
.rc-fp-multi.is-on { border-color: var(--ink); background: #fff; font-weight: 550; }
.rc-fp-multi-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-fp-multi-x {
  flex: none; width: 16px; height: 16px; line-height: 15px; text-align: center;
  border-radius: 99px; background: var(--card-2); color: var(--ink-3);
  font-style: normal; font-size: 12px;
}
.rc-fp-multi-x:hover { background: var(--red-soft); color: #a8392f; }
.rc-fp-multi svg { flex: none; width: 13px; height: 13px; color: var(--ink-3); }

/* ---------- 多选浮层 ---------- */
.mpick {
  position: fixed; z-index: 950; padding: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  max-height: min(430px, calc(var(--vh100) - 24px));
}
.mpick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 8px 7px; }
.mpick-head strong { font-size: 12px; font-weight: 620; color: var(--ink); letter-spacing: -.01em; }
.mpick-search { padding: 0 4px 7px; }
.mpick-search input {
  width: 100%; height: 28px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--bg-2); font: inherit; font-size: 12px; color: var(--ink);
}
.mpick-search input::placeholder { color: var(--muted); }
.mpick-search input:focus { outline: none; border-color: var(--ink-3); }
.mpick-list { overflow-y: auto; padding: 1px; display: flex; flex-direction: column; gap: 1px; }
.mpick-opt {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 8px; border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 12.5px; color: var(--ink-2); text-align: left; cursor: pointer;
}
.mpick-opt:hover { background: var(--card-2); }
.mpick-opt.is-on { background: var(--ink); color: #fff; }
.mpick-opt.is-on .mpick-hint { color: rgba(255, 255, 255, .66); }
.mpick-box {
  flex: none; width: 15px; height: 15px; border-radius: 5px;
  border: 1px solid var(--line-2); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.mpick-opt.is-on .mpick-box { background: #fff; border-color: #fff; color: var(--ink); }
.mpick-dot { flex: none; width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); }
.mpick-dot.is-blue { background: var(--blue); }
.mpick-dot.is-lilac { background: var(--lilac); }
.mpick-dot.is-lemon { background: var(--lemon); }
.mpick-dot.is-mint { background: var(--mint); }
.mpick-dot.is-pink { background: var(--pink); }
.mpick-dot.is-orange { background: var(--orange); }
.mpick-dot.is-red { background: #e3a49b; }
.mpick-dot.is-gray { background: #cfcac3; }
.mpick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpick-hint { flex: none; font-style: normal; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.mpick-empty { padding: 16px 10px; font-size: 12px; color: var(--muted); text-align: center; }
.mpick-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px 2px; margin-top: 6px; border-top: 1px solid var(--line);
}
.mpick-link {
  border: 0; background: none; padding: 0; font: inherit; font-size: 11.5px; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.mpick-link:hover { color: var(--ink); }

/* ---------- 保存为看板：条件回显 ---------- */
.nv-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.nv-chip {
  font-size: 11.5px; color: var(--ink-2); background: var(--card-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px;
}

/* ---------- 新建看板：岗位 / 阶段 勾选（2026-11-12） ---------- */
.nv-pick {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card-2); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 9px;
}
.nv-pick-row { display: flex; gap: 10px; align-items: flex-start; }
.nv-pick-key {
  flex: none; width: 32px; padding-top: 6px;
  font-size: 11.5px; font-weight: 650; color: var(--ink-3);
}
.nv-pick-items {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-right: 2px;
}
.nv-pick-empty { font-size: 11.5px; color: var(--muted); padding-top: 6px; }
/* 折叠起来的 chip 必须真的消失：.rc-qchip 是 inline-flex，会盖掉 [hidden] 的默认 display */
.nv-pick-items .rc-qchip[hidden] { display: none; }
.nv-pick-more {
  align-self: center; height: 26px; padding: 0 4px;
  border: 0; background: none; font: inherit; font-size: 11.5px;
  color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.nv-pick-more:hover { color: var(--ink); }

/* 2026-11-12 用户口径：岗位 / 阶段改成下拉框（能搜），不再把 20+ 个岗位铺一墙 */
.nv-pick-row { align-items: center; }
.nv-pick-key { padding-top: 0; }
.nv-mp { flex: 1 1 auto; width: 100%; min-width: 0; height: 32px; }
.nv-mp .nv-mp-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv-mp.is-empty .nv-mp-text { color: var(--muted); }
.nv-summary { align-items: center; padding: 10px 2px 0; }
.nv-summary[hidden] { display: none; }

/* ---------- 日期区间按钮（点一下弹双日历） ---------- */
.rc-fp-range {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  width: 100%; height: 32px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card); font: inherit; font-size: 12px; color: var(--ink);
  cursor: pointer; text-align: left;
}
.rc-fp-range:hover { border-color: var(--ink-3); }
.rc-fp-range.is-on { border-color: var(--ink); background: #fff; }
.rc-fp-range .rc-fp-range-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-fp-range .rc-fp-range-text.is-empty { color: var(--muted-2); }
.rc-fp-range svg { flex: none; width: 12px; height: 12px; stroke: var(--ink-3); fill: none; stroke-width: 1.5; }
.rc-fp-range-x {
  flex: none; width: 16px; height: 16px; line-height: 15px; text-align: center;
  border-radius: 99px; background: var(--card-2); color: var(--ink-3); font-style: normal; font-size: 12px;
}
.rc-fp-range-x:hover { background: var(--red-soft); color: #a8392f; }

/* ---------- 日期区间弹层：双月并排 ---------- */
.dr-pop {
  position: fixed; z-index: 140;   /* 高于 modal(90)，弹窗里也能正常显示 */
  width: 596px; max-width: calc(100vw - 24px);
  padding: 12px 14px 11px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}
.dr-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dr-head strong { font-size: 12.5px; font-weight: 620; color: var(--ink); }
.dr-hint { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.dr-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; }
.dr-spacer { flex: 1; }
.dr-nav-btn {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.dr-nav-btn:hover { background: var(--card-2); border-color: var(--line-2); }
.dr-months { display: flex; gap: 18px; }
.dr-month { flex: 1; min-width: 0; }
.dr-month-label { font-size: 12px; font-weight: 600; color: var(--ink); padding: 2px 0 6px 2px; }
.dr-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.dr-week span { font-size: 10.5px; color: var(--muted); text-align: center; }
.dr-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.dr-day {
  height: 28px; border: 0; background: transparent; border-radius: 0;
  font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer;
}
.dr-day:hover { background: var(--card-2); }
.dr-day.is-out { color: var(--muted-2); }
.dr-day.is-today { position: relative; font-weight: 700; color: var(--ink); }
.dr-day.is-today::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%;
  background: var(--ink); opacity: .35;
}
.dr-day.is-range.is-today::after { display: none; }
.dr-day.is-start.is-today::after, .dr-day.is-end.is-today::after { background: #fff; opacity: .75; }
.dr-day.is-range { background: var(--lemon-soft); }
.dr-day.is-start, .dr-day.is-end {
  background: var(--ink); color: #fff; font-weight: 600;
  border-radius: 99px;
}
.dr-day.is-start.is-end { border-radius: 99px; }
.dr-presets { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.dr-pre, .dr-clear, .dr-ok {
  height: 26px; padding: 0 10px; border-radius: 99px; font: inherit; font-size: 11.5px; cursor: pointer;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
}
.dr-pre:hover, .dr-clear:hover { background: var(--card-2); border-color: var(--ink-3); }
.dr-ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.dr-ok:hover { opacity: .88; }

@media (max-width: 700px) {
  .dr-pop { width: calc(100vw - 24px); }
  .dr-months { gap: 10px; }
  .dr-month:last-child { display: none; }   /* 窄屏只显示一个月 */
}

/* ---------- 单日卡片（入职时间这种只选一天的地方） ---------- */
.dr-pop.is-single { width: 312px; }
.dr-pop.is-single .dr-nav { justify-content: space-between; }
.dr-nav-title { font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dr-day.is-on { background: var(--ink); color: #fff; font-weight: 600; border-radius: 99px; }
.dr-day.is-on.is-today::after { background: #fff; opacity: .75; }
/* 单月卡只有 298px，底部四个按钮得挤得下：不许换行、内边距收窄一档 */
.dr-pop.is-single .dr-presets { gap: 5px; }
.dr-pop.is-single .dr-pre,
.dr-pop.is-single .dr-clear,
.dr-pop.is-single .dr-ok { padding: 0 8px; white-space: nowrap; font-size: 11px; }

/* ---------- 单选卡（复用多选浮层的骨架，选项是「点一下就选中」） ---------- */
.opick { min-width: 236px; }
.opick .mpick-list { max-height: 276px; }
.opick-tick { flex: none; width: 13px; text-align: center; font-size: 12px; line-height: 1; color: #fff; }
.opick .mpick-opt:not(.is-on) .opick-tick { color: transparent; }


@media (max-width: 1000px) {
  .rc-fp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .rc-fp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rc-fp-grid { grid-template-columns: 1fr; }
  .rc-view-save { margin-left: 0; width: 100%; }
}

/* ---------- 表头排序 ---------- */
.rc-th { cursor: pointer; user-select: none; white-space: nowrap; }
.rc-th-label { display: inline-flex; align-items: center; gap: 5px; }
.rc-sort { flex: none; display: block; }
.rc-sort path { fill: #d0d1d7; transition: fill .14s; }
.rc-th:hover { color: var(--ink); }
.rc-th:hover .rc-sort path { fill: #b4b5bd; }
.rc-th.is-sorted { color: var(--ink); font-weight: 620; }
.rc-sort.is-asc .up, .rc-sort.is-desc .dn { fill: var(--ink); }
.rc-th-static { white-space: nowrap; }

/* ---------- 名单表格 ---------- */
.rc-cand-wrap { overflow-x: auto; }
.rc-cand-tbl { min-width: 1000px; }
.rc-cand-tbl td { vertical-align: middle; }
.rc-hr { font-size: 12.5px; color: var(--ink-2); }
.rc-dash { color: var(--line-2); }
.rc-time { white-space: nowrap; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.rc-shot { display: inline-flex; align-items: center; gap: 7px; }
.rc-shot img {
  width: 26px; height: 26px; border-radius: 6px; object-fit: cover; display: block;
  border: 1px solid var(--line); background: var(--card-2);
}
.rc-shot-ph { width: 26px; height: 26px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); }
.rc-shot em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

/* 名单里「还没有面试截图」那一格的上传入口（2026-11-22 用户口径：做一个上传图标，点开弹框可粘贴） */
.rc-shotup {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 7px;
  border: 1px dashed var(--line-2); border-radius: 8px;
  background: transparent; color: var(--muted);
  font-family: inherit; font-size: 11px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: border-color .12s, color .12s, background .12s;
}
.rc-shotup:hover { border-color: var(--ink-3); color: var(--ink); background: var(--card-2); }
.rc-shotup:focus-visible { outline: none; border-color: var(--ink); color: var(--ink); }
.rc-shotup-dlg .upbox { min-height: 168px; }

/* ============================================================================
   候选人详情 v2（2026-11）
   左：当前状态卡 + 可折叠的流程时间线（一面 → 二面 → 三面 → 谈薪 → Offer → 入职）
   右：个人信息 + 三类附件 + 其他信息
   视觉沿用 KASUMI：中性底、发丝线、药丸标签；状态色只用在圆点和标签上，不铺大色块。
   ========================================================================== */

.rc-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); gap: 14px; align-items: start; }
.rc-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1100px) { .rc-layout { grid-template-columns: 1fr; } }

/* ---------- 当前状态卡 ---------- */
.rc-statuscard { padding: 18px 20px; }
.rc-statuscard > em { display: block; font-style: normal; font-size: 11.5px; letter-spacing: .05em; color: var(--ink-3); }
.rc-statuscard > strong { display: block; margin-top: 7px; font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.rc-statuscard > p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.rc-statusmeta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 13px; font-size: 11.5px; color: var(--muted); }
.rc-statuscard.is-failed { background: #fdf7f6; border-color: #f3d4d0; }
.rc-statuscard.is-failed > strong { color: #b3453a; }
.rc-statuscard.is-done { background: #f7fcf9; border-color: #cfe6da; }

/* ---------- 流程时间线 ---------- */
.rc-flow { display: flex; flex-direction: column; }
.rc-fstep { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; }
.rc-fstep:last-child { padding-bottom: 0; }
.rc-frail { position: relative; display: flex; justify-content: center; }
.rc-fdot {
  position: relative; z-index: 1; flex: none; width: 22px; height: 22px; margin-top: 9px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 700;
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink-3);
}
.rc-fstep:not(:last-child) .rc-frail::after {
  content: ''; position: absolute; top: 31px; bottom: -10px; left: 50%; width: 1px;
  transform: translateX(-50%); background: var(--line-2);
}
.rc-fstep.is-done .rc-fdot { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-fstep.is-failed .rc-fdot { background: #fdf1ef; border-color: #e9b3ab; color: #c2564a; }
.rc-fstep.is-failed .rc-frail::after { background: #f0d9d5; }
.rc-fstep.is-skipped .rc-fdot { background: var(--card-2); color: var(--muted); }
.rc-fstep.is-current .rc-fdot { border: 2px solid var(--ink); background: var(--card); box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.rc-fstep.is-current .rc-fdot::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--ink); }
.rc-fstep.is-todo .rc-fdot { border-style: dashed; }

.rc-fmain { min-width: 0; }
.rc-fhead {
  width: 100%; display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .14s, background .14s;
}
.rc-fhead:hover:not(:disabled) { border-color: #d2d3d8; }
.rc-fhead:disabled { cursor: default; background: var(--card-2); border-style: dashed; }
.rc-ftitle { font-size: 13.5px; font-weight: 620; white-space: nowrap; }
.rc-fwhen { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rc-fhint { margin-left: auto; font-size: 11.5px; color: var(--muted); }

.rc-ttag { flex: none; height: 18px; line-height: 17px; padding: 0 7px; border-radius: 99px; font-size: 10.5px; border: 1px solid transparent; }
.rc-ttag.is-done { background: #eaf6ef; color: #2f7a55; border-color: #cfe6da; }
.rc-ttag.is-failed { background: #fdeeec; color: #b3453a; border-color: #f3d4d0; }
.rc-ttag.is-current { background: #eef3fc; color: #3f6293; border-color: #d6e2f5; }
.rc-ttag.is-skipped, .rc-ttag.is-todo { background: var(--card-2); color: var(--ink-3); border-color: var(--line); }

.rc-fchev {
  margin-left: auto; flex: none; width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(-135deg) translate(-1px, -1px); transition: transform .18s;
}
.rc-fstep.is-collapsed .rc-fchev { transform: rotate(45deg) translate(-1px, -1px); }

.rc-fpanel {
  margin-top: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); display: flex; flex-direction: column; gap: 10px;
}
.rc-fstep.is-collapsed .rc-fpanel { display: none; }

.rc-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
@media (max-width: 720px) { .rc-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rc-flabel { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.rc-flabel > .upmini { margin-left: auto; }
.rc-kvline > .upmini { margin-left: auto; }
/* 面试官评价框（2026-11-09 用户口径：「所有面试官评价的框都是一样高，相对现在的高度缩到 1/3，
   做成固定高度；字多就往下滑，或者双击展开」）。
   所以这里写死高度，不再按内容撑开 —— 一/二/三面的框永远一样高，整页高度稳定；
   超出部分在框内滚动（细窄滚动条，不抢视线），双击框可展开全文 / 再双击收起。 */
.rc-fcomment {
  padding: 10px 12px; border-radius: 10px; background: var(--card-2);
  font-size: 13px; line-height: 1.75; color: var(--ink-2); word-break: break-word;
  height: 104px; overflow-y: auto; overscroll-behavior: contain;
}
.rc-fcomment.is-open { height: auto; overflow: visible; }
/* 内联评语编辑框（2026-11-30 用户口径：直接在框内点开写，不用点「写评语」按钮）：
   尺寸对齐只读评价框（固定 104px 高、内部滚动），聚焦时白底 + 描边加深 */
.rc-fedit {
  width: 100%; height: 104px; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: 10px; background: var(--card-2); color: var(--ink-2);
  font: inherit; font-size: 13px; line-height: 1.75; resize: vertical;
  min-height: 104px; max-height: 320px; overflow-y: auto;
}
.rc-fedit:focus { outline: none; background: #fff; border-color: var(--ink-2); }
.rc-fedit::placeholder { color: var(--muted-2); }
.rc-fcomment::-webkit-scrollbar { width: 6px; }
.rc-fcomment::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.rc-fcomment::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
.rc-fempty { font-size: 12.5px; color: var(--muted); }
.rc-facts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rc-fgrid + .rc-facts { margin-top: 10px; }
.rc-sec > .rc-fgrid + .tiny { margin-top: 10px; }
.rc-judge { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-btn-no { color: var(--red); }
.rc-failnote { padding: 8px 11px; border-radius: 9px; background: #fdeeec; color: #b3453a; font-size: 12px; line-height: 1.55; }

/* 面试已取消（2026-11-19）：不填色块，一条中性底 + 发丝线，跟页面其它 kv 行同一套语法；
   只有「已取消」三个字用红，其余信息保持灰，扫一眼先看到「取消了」，再看原因 */
.rc-cancelnote {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin-top: 10px; padding: 8px 11px; border-radius: 9px;
  background: var(--card-2); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
.rc-cancelnote b { color: var(--red-text, #c0392b); font-weight: 650; }
.rc-cancelnote-src { color: var(--muted); }
/* 取消原因：一排药丸，选中就是墨色实心（跟系统里 segmented 的激活态一致） */
.rc-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-reason {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink-2); font-size: 12.5px; font-family: inherit;
  cursor: pointer; transition: background .14s, border-color .14s, color .14s;
}
.rc-reason:hover { border-color: var(--ink-3); color: var(--ink); }
.rc-reason.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-cancelhint { font-size: 12px; line-height: 1.6; color: var(--ink-3); }

/* 评语里的极简 markdown */
.rc-fcomment .rc-md-h { margin: 10px 0 4px; font-size: 13px; font-weight: 650; color: var(--ink); }
.rc-fcomment .rc-md-h:first-child { margin-top: 0; }
.rc-fcomment .rc-md-p { margin: 0 0 6px; }
.rc-fcomment .rc-md-p:last-child { margin-bottom: 0; }
.rc-fcomment .rc-md-ul, .rc-fcomment .rc-md-ol { margin: 0 0 6px; padding-left: 18px; }
/* 评语是手写的：写的时候敲了几个空格 / 对齐，展示就得原样保留
   （2026-11-19 用户原话：「我写评语的时候空格了，那么你展示出来就应该要空格」）。
   HTML 默认会把连续空格压成一个，所以这几类块统一 pre-wrap —— 换行已经由 mdLite 拆成独立段落，
   这里只补空格与制表符，不会多出空行。 */
.rc-fcomment .rc-md-p, .rc-fcomment .rc-md-h,
.rc-fcomment .rc-md-ul li, .rc-fcomment .rc-md-ol li { white-space: pre-wrap; }
.rc-fcomment li { margin: 2px 0; }

/* ---------- 右栏信息卡 ---------- */
.rc-icard { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
/* 面试截图整卡可拖入：拖到卡片任意位置都算投放，给一点反馈（2026-11-20） */
.rc-icard.is-over { border-color: var(--ink-3); background: var(--card-2); }
/* 空态的上传框嵌在窄右栏里，收紧一点，别把卡片撑得太高 */
.rc-icard .upbox { margin-top: 2px; padding: 14px 12px; gap: 5px; }
.rc-ihead { display: flex; align-items: center; gap: 10px; }
.rc-ihead > .btn, .rc-ihead > label, .rc-ihead > .upmini { margin-left: auto; }
.rc-ihead > .tiny.muted + .upmini { margin-left: 0; }

/* ---------- 极简上传：平时只是标题右边一个小图标，hover / 聚焦才提示可粘贴 ---------- */
.upmini {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: inline-grid; place-items: center; cursor: pointer; outline: none;
  color: var(--muted); background: var(--card-2); border: 1px solid var(--line);
  transition: color .14s, border-color .14s, background .14s, box-shadow .14s;
}
.upmini:hover, .upmini.is-ready, .upmini.is-over {
  color: var(--ink); border-color: var(--ink-3); background: #fff;
}
.upmini.is-over { box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.07); }
.upmini.is-ready { box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.07); }
.upmini-tip {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 40;
  font-style: normal; font-size: 11px; line-height: 1.4; white-space: nowrap;
  color: #fff; background: rgba(23, 23, 23, 0.92); padding: 4px 9px; border-radius: 7px;
  opacity: 0; transform: translateY(-3px); pointer-events: none; transition: .14s;
}
.upmini-tip::before {
  content: ''; position: absolute; right: 9px; bottom: 100%;
  border: 4px solid transparent; border-bottom-color: rgba(23, 23, 23, 0.92);
}
.upmini:hover .upmini-tip, .upmini.is-ready .upmini-tip, .upmini.is-over .upmini-tip {
  opacity: 1; transform: none;
}
.rc-ititle { font-size: 13.5px; font-weight: 620; }
.rc-iname { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.rc-imeta { margin-top: 3px; font-size: 12px; line-height: 1.55; color: var(--ink-3); }
.rc-kvgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.rc-kvgrid .rc-kv.wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .rc-kvgrid { grid-template-columns: 1fr; } }
.rc-kv b a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.rc-none { color: var(--line-2); font-weight: 400; }
.rc-ifoot { display: flex; gap: 6px; flex-wrap: wrap; }

/* 简历 / 作品集并排（2026-11-09 用户口径：这两项作为候选人信息栏里面的信息，放到下面的左和右）。
   原来各占一张整宽卡片，右栏被拉长两百多像素；现在半栏一格，标题 + 份数 + 上传图标一行，
   文件列表按窄栏排（单行省略 + × 移除），件数多就在格子里滚。 */
.rc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rc-pair-col {
  min-width: 0; padding: 9px 10px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card);
}
.rc-pair-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; min-width: 0; }
.rc-pair-head > b { font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.rc-pair-head > .upmini { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; }
.rc-pair-body { display: flex; flex-direction: column; gap: 3px; max-height: 132px; overflow-y: auto; }
.rc-pair-body::-webkit-scrollbar { width: 5px; }
.rc-pair-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.rc-cfile { display: flex; align-items: center; gap: 2px; min-width: 0; }
.rc-cfile-name {
  flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.6; color: var(--ink-2);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-cfile-name:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.rc-cfile-x {
  flex: none; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 5px;
  background: none; color: var(--muted-2); font-size: 14px; line-height: 1; cursor: pointer;
}
.rc-cfile-x:hover { color: var(--red); background: var(--card-2); }
/* 顶部「内推」小标：只有从内推与转岗转过来的人才有 */
.rc-hero-meta .rc-ref {
  font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 0 6px; line-height: 1.7;
}
/* 其他信息里唯一还能动的操作就是「加/改备注」，实心红让它一眼能找到 */
.rc-btn-note {
  font-size: 11.5px; font-weight: 640; padding: 4px 12px;
  background: var(--red); color: #fff; border-color: var(--red);
}
.rc-btn-note:hover { background: #dd6459; border-color: #dd6459; color: #fff; }

/* ---------- 附件行 ---------- */
.rc-files { display: flex; flex-direction: column; gap: 6px; }
.rc-file {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card-2);
}
.rc-file img { flex: none; width: 32px; height: 32px; border-radius: 7px; object-fit: cover; cursor: zoom-in; }
.rc-file-ico {
  flex: none; width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); font-size: 9.5px; font-weight: 700; color: var(--ink-3);
}
.rc-file-name {
  flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--ink); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-file-name:hover { text-decoration: underline; }
.rc-file em { flex: none; font-style: normal; font-size: 11px; color: var(--muted); }

@media (max-width: 560px) {
  .rc-fhead { flex-wrap: wrap; }
  .rc-fwhen { width: 100%; }
  .rc-statuscard > strong { font-size: 22px; }
}

/* ============================================================================
   名单页 · 约面试快捷弹层 + 截图（2026-11-05）
   ========================================================================== */

/* ---------- 行尾「预约面试」按钮（2026-11-07 从阶段格挪到最右列，写明动作） ---------- */
/* 「操作」列吸右：窄屏横向滚动时按钮始终停在可视区右边缘，不用先滚到底 */
.rc-cand-tbl th:last-child, .rc-cand-tbl td:last-child {
  position: sticky; right: 0; text-align: right; padding-right: 16px;
  box-shadow: -12px 0 12px -14px rgba(0, 0, 0, .35);
}
.rc-cand-tbl th:last-child { z-index: 2; background: var(--card-2); }
.rc-cand-tbl td:last-child { background: var(--card); }
.rc-cand-tbl tbody tr:hover td:last-child { background: #fcfaf7; }
.rc-opcell { white-space: nowrap; }
.rc-bookbtn {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink-2);
  font-family: inherit; font-size: 12px; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.rc-bookbtn svg { flex: none; opacity: .72; }
.rc-bookbtn:hover { color: var(--ink); border-color: var(--ink); background: var(--card-2); }
.rc-bookbtn:hover svg { opacity: 1; }
.rc-bookbtn:active { transform: translateY(.5px); }

/* ---------- 操作列的两个图标按钮（2026-11-20 用户口径） ---------- */
/**
 * 用户原话：「预约、面试和改阶段可以不用显示文字，而缩成两个图标，这样的话，
 *   页面更宽敞，展示更松弛。」
 * 文字全部挪进 title / aria-label：鼠标悬停照样能看到完整说明（给谁约、放进人才池还是放回来），
 * 屏幕阅读器也读得到。26px 见方，比原来两个文字按钮省出约一半宽度。
 */
.rc-iconbtn {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; padding: 0; margin-left: 4px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink-2);
  cursor: pointer; vertical-align: middle;
  transition: color .14s, border-color .14s, background .14s;
}
.rc-iconbtn svg { flex: none; opacity: .78; }
.rc-iconbtn:hover { color: var(--ink); border-color: var(--ink); background: var(--card-2); }
.rc-iconbtn:hover svg { opacity: 1; }
.rc-iconbtn:active { transform: translateY(.5px); }

/* ---------- 面试录制入口（2026-11-20） ---------- */
/**
 * 「这个链接你也不是要整个填进去，而是写名字，然后冒号加链接，点击直接跳转。」
 * 所以这里只出现「▶ 一面」这种短标签（多条时「▶ 录制 2」，点开先选轮次），
 * 一整条 https 谁也不会去读，还占掉操作列一大半宽度。
 * 没有录制 = 灰虚线壳子、不可点，跟看板上「简历未上传就置灰」是同一套读法。
 */
.rc-rec {
  display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 8px; margin-right: 6px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--card); color: var(--ink-2);
  font-family: inherit; font-size: 11.5px; line-height: 1; white-space: nowrap;
  cursor: pointer; vertical-align: middle;
  transition: color .14s, border-color .14s, background .14s;
}
.rc-rec svg { flex: none; opacity: .78; }
.rc-rec em { font-style: normal; font-size: 10px; color: var(--muted); margin-left: -1px; }
.rc-rec.is-on { border-color: #c6d9f7; background: #eef4fe; color: #1c4b8f; font-weight: 600; }
.rc-rec.is-on em { color: #4d6f9c; }
.rc-rec.is-on:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-rec.is-on:hover svg { opacity: 1; }
.rc-rec.is-on:hover em { color: rgba(255, 255, 255, .72); }
.rc-rec.is-empty { border-style: dashed; border-color: var(--line); color: var(--muted); background: var(--card-2); cursor: default; }
.rc-rec.is-empty svg { opacity: .5; }

/* ---------- 轮次弹层 ---------- */
.rc-roundpop {
  position: fixed; z-index: 150; width: 232px; padding: 10px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.rp-head { padding: 2px 6px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.rp-head strong { display: block; font-size: 13px; }
.rp-head span { font-size: 11.5px; color: var(--muted); }
.rp-list { display: flex; flex-direction: column; gap: 2px; }
.rp-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px;
  border: 0; background: transparent; border-radius: 9px; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 12.5px; color: var(--ink);
}
.rp-item:hover:not(:disabled) { background: var(--card-2); }
.rp-item.is-current { background: var(--blue-soft); }
.rp-item.is-done { color: var(--muted-2); cursor: not-allowed; }
.rp-name { font-weight: 600; flex: none; }
.rp-sub {
  font-size: 11px; color: var(--muted); margin-left: auto;
  font-variant-numeric: tabular-nums;
  max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rp-item.is-done .rp-sub { color: var(--muted); }
/* 轮次状态（用户口径 2026-11-09）：进行中=蓝、未预约=灰、已淘汰=红 */
.rp-item.is-live .rp-sub { color: var(--blue); font-weight: 600; }
.rp-item.is-idle .rp-sub { color: var(--muted-2); }
.rp-item.is-failed { color: var(--muted-2); }
.rp-item.is-failed .rp-sub { color: var(--red); }
.rp-go {
  font-style: normal; font-size: 10.5px; color: var(--ink); padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--line-2);
}
.rp-item:hover:not(:disabled) .rp-go { border-color: var(--ink); }
.rp-foot { margin-top: 6px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }

/* ---------- 预约弹窗里的岗位信息块 ---------- */
.rc-book-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rc-book-info > div { padding: 9px 11px; background: var(--card-2); border-radius: 10px; }
.rc-book-info em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-bottom: 2px; }
.rc-book-info b { font-size: 12.5px; font-weight: 600; }
.rc-book-note { margin-top: 9px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 640px) { .rc-book-info { grid-template-columns: 1fr; } }

/* ---------- 截图缩略图变成按钮 ---------- */
button.rc-shot {
  padding: 0; border: 0; background: transparent; cursor: zoom-in; font-family: inherit;
}
button.rc-shot:hover img { border-color: var(--ink); }

/* ---------- 图片灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 16, 16, .82); backdrop-filter: blur(3px);
  padding: 66px 76px 64px; animation: lb-in .16s ease-out;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px;
  box-shadow: 0 24px 80px -24px rgba(0, 0, 0, .6); background: #fff;
}
.lb-tools {
  position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; z-index: 2;
}
.lb-tool {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff;
  font-family: inherit; font-size: 12.5px; letter-spacing: .02em; cursor: pointer;
  transition: background .14s;
}
.lb-tool:hover { background: rgba(255, 255, 255, .28); }
.lb-tool.lb-close { width: 34px; padding: 0; justify-content: center; }
.lb-nav {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
  border-radius: 999px; transition: background .14s;
}
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-nav { top: 50%; transform: translateY(-50%); width: 42px; height: 42px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-foot {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
}
.lb-count {
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 12px; letter-spacing: .04em;
}
.lb-hint { color: rgba(255, 255, 255, .5); font-size: 12px; }
/* 打不开时的提示卡 —— 跟系统里的卡片同一套语言：白底、细边、圆角、图标在上 */
.lb-err {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  max-width: 360px; padding: 26px 30px 22px; border-radius: 16px; text-align: center;
  background: #fff; color: var(--ink);
  box-shadow: 0 22px 64px -20px rgba(0, 0, 0, .55);
}
.lb-err[hidden] { display: none; }
.lb-err-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin-bottom: 5px; border-radius: 14px; background: var(--card-2); color: var(--muted);
}
.lb-err b { font-size: 14.5px; font-weight: 650; letter-spacing: .01em; }
.lb-err em { font-style: normal; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.lb-err .btn { margin-top: 10px; }
.lightbox.is-broken .lb-img { display: none; }

/* ============================================================================
   候选人详情 · 2026-11-05 改版
   ① 状态圆点：通过=绿底白勾、淘汰=红底白叉、进行中=蓝环实心点、跳过=灰
   ② 谈薪左右两个状态（要求 / 结论）
   ③ 改阶段：就地展开的浮层，选中项高亮
   ④ 入职日历：被邀请人可勾选
   ========================================================================== */

.rc-fstep.is-done .rc-fdot { background: var(--green); border-color: var(--green); color: #fff; }
.rc-fstep.is-failed .rc-fdot { background: var(--red); border-color: var(--red); color: #fff; }
.rc-fstep.is-skipped .rc-fdot { background: var(--card-2); border-color: var(--line-2); color: var(--muted); }
.rc-fstep.is-current .rc-fdot { border: 2px solid #4b74b3; background: var(--card); box-shadow: 0 0 0 4px rgba(75, 116, 179, .1); }
.rc-fstep.is-current .rc-fdot::before { background: #4b74b3; }
.rc-fstep.is-current .rc-fhead { border-color: #d6e2f5; background: #fbfcff; }
.rc-fstep.is-latest .rc-fhead { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

/* ---------- 谈薪：左右两个状态 ---------- */
.rs-tabs { display: inline-flex; gap: 2px; padding: 2px; background: var(--card-2); border-radius: 999px; margin-bottom: 12px; }
.rs-tab {
  border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--ink-3);
  padding: 5px 14px; border-radius: 999px; cursor: pointer; transition: background .14s, color .14s;
}
.rs-tab:hover { color: var(--ink); }
.rs-tab.is-on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.rs-tab-n {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 999px;
  background: rgba(0, 0, 0, .05); font-size: 10.5px; font-weight: 600; color: var(--ink-3);
  font-variant-numeric: tabular-nums; line-height: 15px; vertical-align: 1px;
}
.rs-tab.is-on .rs-tab-n { background: var(--mint-soft); color: #1c6b54; }
.rs-body > .rc-sec:only-child { border-bottom: 0; padding-bottom: 0; }

/* 点名框：直接点框换人，不再单开「改xx人」按钮 */
.rc-pick {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 4px 10px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--card); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .14s, background .14s;
}
.rc-pick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-pick > svg { flex: none; color: var(--ink-3); opacity: .55; transition: opacity .14s, transform .14s; }
.rc-pick:hover { border-color: var(--ink-3); background: var(--card-2); }
.rc-pick:hover > svg { opacity: .9; }
.rc-pick:active > svg { transform: translateY(1px); }
.rc-pick:focus-visible { outline: 2px solid var(--lemon); outline-offset: 2px; }
.rc-pick.is-empty { border-style: dashed; color: var(--ink-3); font-weight: 500; }

.rc-reqbox {
  padding: 10px 12px; border-radius: 10px; background: var(--lemon-soft);
  border: 1px solid #f0e2a4; font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  white-space: pre-wrap;
}
textarea.rc-ta { width: 100%; resize: vertical; font-size: 12.5px; line-height: 1.7; }

/* ---------- 已接 Offer 提示条 ---------- */
.rc-accepted {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 12px;
  background: var(--green-soft); border: 1px solid #cfe6da; border-radius: 10px;
}
.rc-accepted b { font-size: 12.5px; color: #2f7a55; }
.rc-accepted span { font-size: 11.5px; color: #47826a; }

/* ---------- 改阶段浮层 ---------- */
.rc-stagepop {
  position: fixed; z-index: 160; width: 430px; max-height: 70vh; overflow: auto;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 16px; box-shadow: var(--shadow-lg);
}
.sp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sp-head strong { font-size: 13px; }
.sp-head span { font-size: 11px; color: var(--muted); }
.sp-group { margin-bottom: 10px; }
.sp-group > em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-bottom: 5px; letter-spacing: .04em; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font: inherit; font-size: 12px;
  color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer; transition: border-color .14s, background .14s, color .14s;
}
.sp-chip:hover { border-color: var(--ink-3); background: var(--card-2); }
.sp-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.sp-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); }
.sp-dot.is-red { background: var(--red); }
.sp-dot.is-mint { background: var(--green); }
.sp-dot.is-blue { background: #6f9bd8; }
.sp-dot.is-lemon { background: #d9bd33; }
.sp-dot.is-pink { background: #e18cb8; }
.sp-dot.is-lilac { background: #9a83cf; }
.sp-dot.is-orange { background: #dd9a5f; }
.sp-chip.is-on .sp-dot { background: rgba(255,255,255,.85); }
.sp-check { font-size: 10px; margin-left: 2px; }
.sp-foot { padding-top: 8px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); }
@media (max-width: 560px) { .rc-stagepop { width: calc(100vw - 24px); } }

/* ---------- 入职日历弹窗 ---------- */
.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-field { display: flex; flex-direction: column; gap: 5px; }
.ob-field.full { grid-column: 1 / -1; }
.ob-field > span { font-size: 11.5px; color: var(--ink-3); }
.ob-list-head { margin: 16px 0 8px; font-size: 12.5px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.ob-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ob-person {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card-2);
}
.ob-person.is-off { opacity: .55; cursor: not-allowed; }
.ob-name { font-size: 12.5px; font-weight: 600; }
.ob-dept { font-size: 11px; color: var(--muted); }
.ob-warn { margin-left: auto; font-style: normal; font-size: 10.5px; color: #b3453a; }
@media (max-width: 640px) { .ob-grid, .ob-list { grid-template-columns: 1fr; } }

/* 小屏时轮次弹层自己滚动，别把最后一项挤到屏幕外 */
.rc-roundpop { max-height: calc(var(--vh100) - 24px); overflow: auto; }

/* 谈薪切换条只占内容宽度（父级是纵向 flex，不锁住会被拉成整行） */
.rs-tabs { align-self: flex-start; width: fit-content; }

/* ============================================================================
   招聘需求（列表 + 在招/未招子级分类） & 标准岗位表（按等级分段）
   —— 卡片改列表：需求条数多时要横向对比薪资/面试官/进度，卡片铺一屏反而难扫
   ========================================================================== */

.rc-scopebar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.segmented.sm { padding: 2px; }
.segmented.sm button { height: 26px; padding: 0 12px; font-size: 12px; }
.segmented.sm button b {
  font-family: var(--f-num); font-variant-numeric: tabular-nums;
  margin-left: 5px; font-weight: 650; color: var(--muted);
}
/* 选中态是实心黑（见 1030 行），这行不能再用深色字 */
.segmented.sm button.active b { color: rgba(255, 255, 255, .74); }

table.rc-req-tbl { min-width: 990px; }
table.rc-req-tbl th, table.rc-req-tbl td { padding-left: 12px; padding-right: 12px; }
table.rc-req-tbl td.rc-nowrap, table.rc-req-tbl th { white-space: nowrap; }
table.rc-req-tbl td { vertical-align: middle; }
/* 面试官（2026-11-12 用户口径：HR / 二面面试官 / 三面面试官 三档分开写）
   一格三行，左边固定宽度写「HR / 二面 / 三面」，右边姓名；空档留「—」 */
td.rc-ivcell { max-width: 150px; white-space: normal; }
.rc-iv { display: flex; align-items: baseline; gap: 7px; line-height: 1.52; }
.rc-iv em {
  flex: none; width: 22px; text-align: right; font-style: normal;
  font-size: 10px; font-weight: 650; color: var(--ink-3); letter-spacing: .02em;
}
.rc-iv span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; color: var(--ink-2);
}
.rc-iv.is-empty span { color: var(--muted-2, #b8b9c0); }
/* 招聘 HR 多人：只显示第一个人，剩下的人数收成 +N，避免把面试官列撑宽 */
.rc-iv-more {
  font-style: normal; font-size: 9.5px; font-weight: 650;
  color: var(--ink-3); background: var(--card-2);
  border-radius: 999px; padding: 0 4px; margin-left: 3px;
}
.rc-req-name { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rc-req-name strong { font-size: 13px; }
.rc-req-name a, .rc-req-name button {
  border: 0; background: var(--card-2); color: var(--ink-3); cursor: pointer;
  font-family: inherit; font-size: 10.5px; line-height: 1.6; padding: 0 7px;
  border-radius: 999px; text-decoration: none; transition: .14s;
}
.rc-req-name a:hover, .rc-req-name button:hover { background: var(--line); color: var(--ink); }
.rc-req-note {
  margin-top: 3px; max-width: 460px; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 岗位名下面那截 JD 摘要（2026-11-12）：正文在「JD」抽屉里看，这里只给个开头 */
.rc-req-jd {
  margin-top: 3px; max-width: 300px; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 「招聘需求」一列：说明原文，最多两行，悬停看全文 */
.rc-req-need > div {
  font-size: 11.5px; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.rc-req-nums3 { color: var(--ink-3); }
.rc-req-nums3 i { font-style: normal; color: var(--muted-2); margin: 0 3px; }
.rc-list-empty { padding: 34px 16px; text-align: center; }

/* 岗位等级分段：每段一条浅底小标题行，视觉上像分组列表而不是四张表 */
tr.rc-grp-row td { background: var(--bg-2); padding: 8px 14px; border-bottom: 1px solid var(--line); }
tr.rc-grp-row:hover td { background: var(--bg-2); }
.rc-grp-in { display: flex; align-items: center; gap: 8px; }
.rc-grp-in strong { font-size: 12px; letter-spacing: .02em; }
.rc-grp-in em { font-style: normal; font-size: 11px; color: var(--muted); }
.rc-grp-dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.rc-grp-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.rc-grp-tag i { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.rc-grp-tag b { font-family: var(--f-num); font-weight: 650; color: var(--ink); }

/* 等级标签可点：点一下只看这一档，再点回到全部（激活态用墨色填充，和看板 chip 一致） */
.rc-grp-btn {
  font-family: inherit; cursor: pointer; transition: border-color .14s, color .14s, background .14s;
}
.rc-grp-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.rc-grp-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-grp-btn.is-active b { color: #fff; }
@media (max-width: 720px) { .rc-grp-tag { display: none; } }

/* 工作台：今日日程 / 招聘在途 —— 固定高度，条数多了卡内滚动 */
.cell.home-card.home-half { height: 300px; }
/* 底部渐隐：滚到边界时不要把最后一行切成半截 */
.cell.home-half::after {
  content: '';
  position: absolute; left: 1px; right: 1px; bottom: 1px; height: 20px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  background: linear-gradient(to bottom, transparent, var(--cell-tint, var(--card)));
  pointer-events: none; z-index: 2;
}
/* 预留出渐隐高度，最后一行不会被压在渐变底下看不出是个可滚的列表 */
.cell.home-half .scroll-area { padding-right: 4px; margin-right: -4px; padding-bottom: 12px; }

/* ---------- 新增候选人：本地文件上传（简历 / 作品集） ---------- */
.file-drop {
  display: flex; flex-direction: column; gap: 9px;
  padding: 11px 13px; border-radius: var(--r-md);
  border: 1px dashed var(--line-2); background: var(--card-2);
  transition: border-color .15s, background .15s;
}
.file-drop.is-over { border-color: var(--ink-3); background: #fff; }
.file-drop.is-busy { opacity: .55; pointer-events: none; }
.file-drop-hit { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.file-drop-hit b { font-size: 13px; font-weight: 600; color: var(--ink); }
.file-drop-hit em {
  font-style: normal; font-size: 11.5px; color: var(--ink-3); line-height: 1.5;
}
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: 12px; color: var(--ink);
}
.file-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.file-chip > em { font-style: normal; font-size: 11px; color: var(--ink-3); flex: none; }
.file-chip > button {
  flex: none; border: 0; background: none; padding: 0 0 0 2px; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--ink-3);
}
.file-chip > button:hover { color: var(--red); }
/* 只读字段（初始阶段）：长得像输入框，但明确不可改 */
.nc-ro {
  display: flex; align-items: center; height: 38px; padding: 0 12px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--card-2); color: var(--ink-2); font-size: 13px;
}

/* 附件来源标签：简历 / 作品集 共用 resume_files，靠标签区分 */
.rc-ftag {
  flex: none; font-style: normal; font-size: 10.5px; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 1px 7px;
}

/* ============================================================================
   入职详情 · 下半部分 3:7 分栏（用户 2026-11-05）
   左 3 = 入职信息（入职部门 / 直属主管 / 入职职级 / 入职座位 / 入职公司）
   右 7 = 员工档案（原来折叠在下面，现在常驻右栏）
   ========================================================================= */

.onb-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

/* 左栏：窄，值可能很长（公司全称一长串），允许折行而不是截成「深圳极客跳动信息科技有限…」 */
.onb-intake .kv { align-items: flex-start; padding: 9px 0; }
.onb-intake .kv > b {
  white-space: normal; text-align: right; line-height: 1.45;
  max-width: 66%; word-break: break-word;
}
.onb-intake .kv-list { border-top: 1px solid var(--line-2); }

/* 右栏：档案字段一多，3 列在高分屏上更好读；窄屏自动减列 */
.onb-file-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.onb-file-body { padding: 14px 16px 16px; }
.onb-file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

@media (max-width: 1080px) {
  .onb-split { grid-template-columns: minmax(0, 1fr); }
  .onb-file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================================
   入职 SOP · 挂文档的「通知」相关（用户 2026-11-05）
   弹窗里预告会通知谁；挂完之后的结果提示（收件人 + 主管未设置的提醒）
   ========================================================================= */

.doc-note {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card-2);
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
}
.doc-note b { color: var(--ink); font-weight: 600; }
.doc-note-ic {
  flex: none; width: 16px; height: 16px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 10px; font-weight: 700; font-style: normal;
  color: #4b7d5b; background: #e6f2e9;
}
.doc-note.is-warn { background: #fdf6e7; border-color: #ecdcb8; color: #7a5a1e; }
.doc-note.is-warn b { color: #6b4c14; }
.doc-note.is-warn .doc-note-ic { color: #8a6212; background: #f6e4bb; }

/* 方式一：复制按钮 + 右边一栏链接。
   用户口径 2026-11-06：点「帮我复制一份」不再直接挂载+发通知，
   链接先落到这一栏，HR 确认后点「保存并通知」才生效。 */
.doc-copy-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.doc-copy-row > .btn { flex: none; }
.doc-copy-row > input {
  flex: 1 1 auto; min-width: 0;
  height: 30px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: #fff; color: var(--ink); outline: none;
  font-size: 12.5px; transition: 0.15s;
}
.doc-copy-row > input::placeholder { color: var(--muted); }
.doc-copy-row > input:hover { border-color: var(--muted-2); }
.doc-copy-row > input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06); }
.doc-copy-row > .btn[hidden] { display: none; }
.doc-copy-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* 「新的顶掉旧的」：默认勾上，但要让人看见自己被删了什么
   （.btn 的 display 会盖掉 [hidden]，所以单独处理） */
.doc-replace {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 9px 11px;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  font-size: 12.5px; color: var(--ink-2); line-height: 1.7;
  cursor: pointer;
}
.doc-replace:hover { background: var(--card-2); }
.doc-replace input { margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.doc-replace em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }

/* 底部「发送给谁」：主管 / HR / 抄送一排勾选。
   默认全勾，取消即可；没绑钉钉的人置灰不可点。 */
.doc-rcpt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-rcpt {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: #fff; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2);
  transition: 0.15s;
}
.doc-rcpt:hover { border-color: var(--muted-2); background: var(--card-2); }
.doc-rcpt input { margin: 0; accent-color: var(--ink); cursor: pointer; }
.doc-rcpt-name { font-weight: 550; color: var(--ink); }
.doc-rcpt em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.doc-rcpt:has(input:checked) { border-color: var(--ink); background: var(--card-2); }
.doc-rcpt.is-off { opacity: 0.55; cursor: not-allowed; }
.doc-rcpt.is-off input { cursor: not-allowed; }

.doc-rc-list { display: flex; flex-direction: column; gap: 6px; }.doc-rc {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 9px;
  background: var(--card-2); border: 1px solid var(--line-2);
  font-size: 12.5px;
}
.doc-rc > i {
  flex: none; width: 15px; height: 15px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-style: normal; font-weight: 700;
}
.doc-rc > i.ok { color: #3f7a52; background: #e4f1e8; }
.doc-rc > i.bad { color: #97402f; background: #fbe8e3; }
.doc-rc b { font-weight: 600; color: var(--ink); }
.doc-rc em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* 「看看消息内容」折叠：让 HR 能核对到底发了什么，不用去钉钉翻。
   注意类名不要用 .doc-preview —— 那个是「合同文档预览」的容器（min-height 320px），
   撞上之后折叠起来会变成一大块空白。 */
.msg-preview { margin-top: 10px; }
.msg-preview > summary {
  cursor: pointer; font-size: 12px; color: var(--muted);
  list-style: none; padding: 4px 0;
}
.msg-preview > summary::-webkit-details-marker { display: none; }
.msg-preview > summary::before { content: '▸ '; }
.msg-preview[open] > summary::before { content: '▾ '; }
.msg-preview > summary:hover { color: var(--ink-2); }
.msg-preview pre {
  margin: 6px 0 0; padding: 12px 14px;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  font-size: 12px; line-height: 1.85; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
  font-family: inherit;
}

/* ============================================================================
   2026-11-07 候选人详情页改版：顶部 hero / 一面面板 / 时间卡片 / 单选卡片 / 粘贴上传
   ========================================================================== */

/* ---------- 顶部 hero：左 姓名+岗位，右 当前状态 ---------- */
.rc-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 18px 20px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md);
}
.rc-hero-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rc-hero-txt { min-width: 0; }
.rc-hero-name { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.rc-hero-meta { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.rc-hero-meta i { font-style: normal; color: var(--line-2); }
.rc-hero-right { flex: none; max-width: 46%; text-align: right; }
.rc-hero-right > em { display: block; font-style: normal; font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }
.rc-hero-right > strong { display: block; margin-top: 5px; font-size: 21px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.rc-hero-right > p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.rc-hero-right.is-done > strong { color: #2f7a58; }
.rc-hero-right.is-failed > strong { color: #b3453a; }
.rc-hero-right.is-current > strong { color: #33507d; }

/* ---------- 当前状态徽标：圆角长方形卡片（图标 + 一句话），比纯文字显眼 ---------- */
.rc-state {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 8px; padding: 8px 16px 8px 9px;
  border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.04);
}
.rc-state-ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--ink);
}
.rc-state-txt { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
/* 已下线阶段的存量标注（2026-11-18）：灰签「原：改约」，单独占一行、贴右，
   跟状态徽标同族但要明显是注解、不是状态 */
.rc-legacy {
  display: block; width: fit-content; margin: 6px 0 0 auto; padding: 1px 8px;
  border-radius: 99px; border: 1px dashed var(--line-2); background: var(--card-2);
  font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.rc-state.is-red { background: var(--red-soft); border-color: rgba(232, 117, 107, 0.52); }
.rc-state.is-red .rc-state-ico { background: #d3554b; }
.rc-state.is-red .rc-state-txt { color: #97342a; }
.rc-state.is-mint { background: var(--mint-soft); border-color: rgba(31, 122, 88, 0.3); }
.rc-state.is-mint .rc-state-ico { background: #2f8b64; }
.rc-state.is-mint .rc-state-txt { color: #1b6a4e; }
.rc-state.is-blue { background: var(--blue-soft); border-color: rgba(43, 90, 158, 0.28); }
.rc-state.is-blue .rc-state-ico { background: #5179b9; }
.rc-state.is-blue .rc-state-txt { color: #2b5a9e; }
.rc-state.is-lilac { background: var(--lilac-soft); border-color: rgba(91, 63, 168, 0.26); }
.rc-state.is-lilac .rc-state-ico { background: #7d68c9; }
.rc-state.is-lilac .rc-state-txt { color: #5b3fa8; }
.rc-state.is-lemon { background: var(--lemon-soft); border-color: rgba(138, 109, 0, 0.32); }
.rc-state.is-lemon .rc-state-ico { background: #c9a11c; }
.rc-state.is-lemon .rc-state-txt { color: #7c6100; }
.rc-state.is-orange { background: var(--orange-soft); border-color: rgba(156, 83, 28, 0.3); }
.rc-state.is-orange .rc-state-ico { background: #d98243; }
.rc-state.is-orange .rc-state-txt { color: #9c531c; }
.rc-state.is-pink { background: var(--pink-soft); border-color: rgba(156, 63, 112, 0.28); }
.rc-state.is-pink .rc-state-ico { background: #cf71a8; }
.rc-state.is-pink .rc-state-txt { color: #9c3f70; }
.rc-state.is-gray { background: var(--card-2); border-color: var(--line-2); }
.rc-state.is-gray .rc-state-ico { background: #8d8781; }
.rc-state.is-gray .rc-state-txt { color: var(--ink-3); }
.rc-hero-sub { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 860px) {
  .rc-hero { flex-direction: column; }
  .rc-hero-right { max-width: none; text-align: left; }
  .rc-hero-sub { justify-content: flex-start; }
  .rc-legacy { margin-left: 0; }
}

/* ---------- 面板底部动作条：左边小按钮，右边通过 / 不建议 ---------- */
.rc-actbar { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: nowrap; }
.rc-actbar-l { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; min-width: 0; flex: 0 1 auto; }
.rc-actbar-l .btn { font-size: 10.5px; padding: 3px 7px; white-space: nowrap; }
.rc-actbar-l .rc-roundstate { margin-left: 0; }
.rc-actbar-r { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: 0 0 auto; }
.rc-btn-pass, .rc-btn-fail { padding: 7px 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.rc-btn-fail { border-color: var(--line-2); }
.rc-btn-fail:hover { border-color: #c2564a; color: #b3453a; }

/* ---------- 面试卡片右下角：这一轮的结论（一面已通过 / 二面未通过 …） ---------- */
.rc-roundstate {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  padding: 3px 9px; border-radius: 8px; border: 1px solid transparent;
  font-size: 12px; font-weight: 620; letter-spacing: -.01em; white-space: nowrap;
}
.rc-roundstate svg { flex: none; }
.rc-roundstate.is-done { color: #1b6a4e; background: var(--mint-soft); border-color: rgba(31, 122, 88, 0.26); }
.rc-roundstate.is-failed { color: #97342a; background: var(--red-soft); border-color: rgba(232, 117, 107, 0.42); }
.rc-roundstate.is-skipped { color: var(--ink-3); background: var(--card-2); border-color: var(--line); }
.rc-roundstate.is-current { color: #2b5a9e; background: var(--blue-soft); border-color: rgba(43, 90, 158, 0.26); }
.rc-roundstate.is-todo { color: var(--muted); background: transparent; border-color: var(--line-2); }
@media (max-width: 720px) { .rc-actbar { flex-wrap: wrap; row-gap: 6px; } }
@media (max-width: 1240px) {
  .rc-actbar-l .btn { padding: 3px 6px; }
  .rc-btn-pass, .rc-btn-fail { padding: 6px 9px; font-size: 11px; }
}
@media (max-width: 860px) {
  .rc-actbar { flex-wrap: wrap; }
  .rc-actbar-r { margin-left: 0; width: 100%; }
  .rc-btn-pass, .rc-btn-fail { flex: 1; justify-content: center; }
}

/* ---------- 面试安排编辑区（改时间） ---------- */
.rc-round-edit { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.dtcard { display: flex; flex-wrap: wrap; gap: 8px; }
.dtcell {
  flex: 1 1 132px; min-width: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 7px 10px 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px;
}
.dtcell em { font-style: normal; font-size: 10.5px; letter-spacing: .03em; color: var(--muted); }
.dtcell input {
  width: 100%; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.dtcell:focus-within { border-color: var(--ink); }
.dt-save { flex: 0 0 100%; justify-content: center; margin-top: 2px; }

.rc-method { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.rc-method-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-method-row > em { flex: none; width: 56px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.rc-seg { display: inline-flex; padding: 2px; background: var(--card); border: 1px solid var(--line-2); border-radius: 9px; }
.rc-seg button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 7px;
  font: inherit; font-size: 12px; color: var(--ink-3); cursor: pointer; transition: background .14s, color .14s;
}
.rc-seg button.on { background: var(--ink); color: #fff; }
.rc-linkinput { width: 100%; margin-top: 2px; }

/* ---------- 待预约时间的高亮 ---------- */
.rc-needtime {
  font-size: 11px; padding: 2px 8px; border-radius: 99px;
  background: #fdf1e4; color: #a2662a; border: 1px solid #f0d8bd;
}
.rc-fstep.is-needtime .rc-fhead { border-color: #f0d8bd; background: #fffbf5; }

/* ---------- 可视化单选卡片（岗位 / 年限 / 面试方式） ---------- */
.chgrid { display: grid; grid-template-columns: repeat(var(--ch-cols, 3), minmax(0, 1fr)); gap: 8px; }
.chgrid-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 11px; text-align: left; font: inherit; font-size: 12.5px; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.chgrid-item:hover { border-color: var(--ink-3); }
.chgrid-item.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chgrid-txt { min-width: 0; }
.chgrid-txt b { font-weight: 550; }
.chgrid-txt em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.chgrid-check { opacity: 0; font-style: normal; font-size: 11px; }
.chgrid-item.is-on .chgrid-check { opacity: 1; }
@media (max-width: 720px) { .chgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 粘贴上传大框 ---------- */
.upbox {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 8px; padding: 16px 14px;
  background: var(--card-2); border: 1px dashed var(--line-2); border-radius: 12px;
  cursor: text; outline: none; transition: background .14s, border-color .14s;
}
.upbox.is-ready { border-color: var(--ink-3); background: var(--card); }
.upbox.is-over { border-color: var(--ink); background: var(--card); }
.upbox-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  font: inherit; font-size: 12px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer;
  transition: border-color .14s, color .14s;
}
.upbox-btn:hover { border-color: var(--ink); }
.upbox-hint { font-style: normal; font-size: 11px; line-height: 1.5; color: var(--muted); text-align: center; }
.upbox-paste { display: none; font-size: 11px; color: var(--ink-3); }
.upbox.is-ready .upbox-paste { display: inline; }

/* ---------- 谈薪 / Offer / 预备入职 ---------- */
.rc-kvline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rc-round { border-radius: 12px; }
.rc-inline-save { display: flex; gap: 8px; margin-top: 8px; }
.rc-inline-save .input { flex: 1; min-width: 0; }
.rc-nextrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- 谈薪屏（2026-11-24）----------
   用户口径：左上角三个切换按钮（发起谈薪 / 谈薪记录 / 薪资流水，切哪个看哪个），
   按钮下面一排「三个圆点 + 连线」表示进度（做完打勾，顺序不卡人），
   内容区在下，「可以发放 offer」单独放最下面靠右。 */
.rs-tabs { margin-bottom: 10px; }
.rc-psteps { display: flex; align-items: flex-start; margin: 0 0 14px 2px; }
.rc-pstep { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 62px; }
.rc-pdot {
  width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--line-2); background: var(--card); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s, border-color .14s;
}
.rc-pdot svg { width: 11px; height: 11px; }
.rc-pstep.is-done .rc-pdot { background: #2f9e6f; border-color: #2f9e6f; }
.rc-pstep > span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rc-pstep.is-done > span { color: var(--ink-2); font-weight: 600; }
.rc-pline { flex: none; width: 30px; height: 2px; margin-top: 9px; border-radius: 2px; background: var(--line-2); }
.rc-pline.is-done { background: #2f9e6f; }
.rc-salary-body { min-height: 0; }
.rc-salary-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
/* 三个进度点挪到这一行左边（2026-11-25 用户口径：与右边「可以发放 offer」左右对称） */
.rc-salary-foot .rc-psteps { margin: 0 0 0 2px; }
.rc-salary-foot .rc-pstep > span { font-size: 10.5px; }
.rc-offer-side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* 「已确认」状态（2026-11-25）：绿点 + 薪资 + 确认人 + 时间，替代原来的按钮 */
.rc-offer-ok {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #2f9e6f;
  background: #eaf8f1; border: 1px solid #bfe9d4; border-radius: 999px; padding: 4px 12px;
}
.rc-offer-ok i { display: inline-flex; width: 13px; height: 13px; }
.rc-offer-ok i svg { width: 13px; height: 13px; }
.rc-offer-ok em { font-style: normal; font-weight: 400; color: #5f9b7e; font-size: 11px; }

.rc-sblock { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.rc-sblock + .rc-sblock { margin-top: 12px; }
.rc-sblock-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rc-sblock-h b { font-size: 12.5px; }
.rc-shint { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.rc-sblock textarea.rc-ta { min-height: 76px; }
/* 薪资流水备注：只留一行高（2026-11-25 用户口径），明细多的时候框内滚动 */
.rc-sblock.is-compact textarea.rc-ta { min-height: 38px; height: 38px; padding-top: 8px; padding-bottom: 8px; }
.rc-sblock .upbox { margin-top: 10px; }
.rc-sblock .rc-files { margin-top: 8px; }
/* 卡片底部那一行（状态 + 按钮）：2026-11-25 用户口径 —— 上面加一条横线、靠右下角，
   跟谈薪面板最底下「可以发放 offer」那一行同一套结构 */
.rc-sblock-f {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
/* 字段卡片（offer 两个 tab）：有边框、标签在上值在下，别再一串文字堆在一起 */
.rc-kvbox { border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); padding: 9px 12px; }
.rc-kvbox em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.rc-kvbox b { display: block; font-weight: 600; font-size: 13.5px; word-break: break-word; }
.rc-kvbox b.num { font-variant-numeric: tabular-nums; }
.rc-kvbox .rc-in {
  width: 100%; border: 0; background: transparent; padding: 0;
  font-size: 13.5px; font-weight: 600; color: var(--ink); font-family: inherit;
}
.rc-kvbox .rc-in:focus { outline: none; }
.rc-kvbox .rc-in.num { font-variant-numeric: tabular-nums; }
.rc-orec-files { margin-top: 10px; }
.rc-orec-files .rc-files { margin-bottom: 8px; }
.rc-sstate { font-size: 11.5px; color: var(--muted); }
.rc-sstate.is-sm { font-size: 11px; }
.rc-sstate.is-sent { color: #2f9e6f; }
.rc-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rc-sec:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rc-sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.rc-sec-head strong { font-size: 13px; }
.rc-sec-head > .upmini { margin-left: auto; align-self: center; }
.rc-linkline { margin-top: 6px; font-size: 12px; color: var(--ink-2); word-break: break-all; }
.rc-linkline a { color: #33507d; }

/* ---------- 面试录制一行（2026-11-20 新增） ---------- */
/**
 * 每轮面试都能填一个回放链接（非必填）。跟上面「会议链接」同一行风格，
 * 但右边多两颗弱按钮：填过是「改链接 / 清除」，没填只有一颗虚线「＋ 添加录制链接」。
 * 这里不用 break-all —— 这一行里除了链接还有按钮，按字符硬断会把按钮挤到下一行。
 */
.rc-recline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
  word-break: normal;
}
.rc-recline b { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.rc-recline .rc-none { font-size: 12px; }
.rc-linkbtn {
  height: 20px; padding: 0 8px;
  border: 1px dashed var(--line-2); border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: 11px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.rc-linkbtn:hover { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--card-2); }
/* 「＋ 添加录制链接」：要显眼，但不用实心 —— 橙色虚线框（2026-11-22 用户口径） */
.rc-linkbtn.is-add,
.rc-linkbtn.is-add:hover {
  border-style: dashed; border-color: #e2a06b; color: #b8621b; background: transparent;
}
.rc-linkbtn.is-add:hover { border-color: #c2681f; color: #a3540f; background: var(--orange-soft); }
.rc-linkbtn.is-quiet { border-color: transparent; color: var(--muted); }
.rc-linkbtn.is-quiet:hover { border-style: solid; border-color: var(--line-2); color: var(--red); background: var(--red-soft); }

/* ---------- 预备入职：一格一字段，点开是卡片（2026-11-08 重做） ---------- */
.rc-intake2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rc-if {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 1px 6px; padding: 7px 10px 8px; min-height: 52px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--card);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.rc-if:hover { border-color: var(--ink-3); }
.rc-if:focus-visible { outline: none; border-color: var(--ink); }
.rc-if-l { grid-column: 1; font-size: 11px; color: var(--muted); }
.rc-if-v {
  grid-column: 1; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-if.is-empty .rc-if-v { color: var(--muted-2); font-weight: 400; }
.rc-if-x { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 13px; height: 13px; color: var(--muted-2); }
.rc-if.is-ro { background: var(--card-2); cursor: default; }
/* 已保存的入职信息：格子锁住展示（2026-11-25 用户口径）——
   看着还是那张卡，但没有箭头、不响应悬停，点右下角「修改入职信息」才解锁 */
.rc-if.is-lock { background: var(--card-2); cursor: default; }
.rc-if.is-lock:hover { border-color: var(--line-2); }
.rc-if.is-lock .rc-if-x { display: none; }
.rc-if.is-lock .bc-switch { cursor: default; }
button.rc-if:disabled { opacity: 1; }
.rc-intake-f { margin-top: 12px; }
.rc-if-wide { grid-column: 1 / -1; }
.rc-if-tag { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.rc-if-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.rc-if-input {
  grid-column: 1; width: 100%; border: 0; background: none; padding: 0; margin: 0;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
}
.rc-if-input:focus { outline: none; }
.rc-if-input::placeholder { color: var(--muted-2); font-weight: 400; }
.rc-if.is-check { cursor: pointer; }
.rc-if.is-check input { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 15px; height: 15px; accent-color: var(--ink); }
/* 开关形态（2026-11-19 用户口径：背调这里要开关按钮，不要勾选框） */
.rc-if.is-switch { cursor: default; }
.rc-if.is-switch .bc-switch { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rc-intake-tip { margin-top: 8px; }
@media (max-width: 720px) { .rc-intake2 { grid-template-columns: 1fr; } }

.rc-onboard { padding: 14px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; }
.rc-onboard-state b { display: block; font-size: 13px; }
.rc-onboard-state span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.rc-onboard-state.is-done { color: #2f7a58; }
.rc-onboard .rc-facts { margin-top: 10px; }

/* ============================================================
   HR 绩效分析（招聘管理 › 第 5 个子页面，2026-11-07）
   两个面板左右滑动：招聘与离职数据 / HR 薪资核算
   ============================================================ */
.hrp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hrp-month { display: flex; align-items: center; gap: 8px; }
.hrp-month b { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; min-width: 96px; }
.hrp-nav {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink-2); font-size: 15px; line-height: 1;
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.hrp-nav:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.hrp-nav:disabled { opacity: .35; cursor: not-allowed; }
.hrp-quick { display: inline-flex; gap: 4px; margin-left: 2px; }
.hrp-quick .btn.is-on { background: var(--card-2); color: var(--ink); }

/* 视口 + 轨道：两个面板各占 100%，靠 translateX 滑动 */
.hrp-viewport { overflow: hidden; }
.hrp-viewport.is-loading { opacity: .5; transition: opacity .12s; }
.hrp-track { display: flex; width: 100%; transition: transform .34s cubic-bezier(.22,.61,.36,1); }
.hrp-panel { flex: 0 0 100%; min-width: 0; }

.hrp-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.hrp-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0;
  background: var(--line-2); cursor: pointer; transition: width .18s, background .18s;
}
.hrp-dots button.on { width: 20px; border-radius: 999px; background: var(--ink); }

/* 四张数字卡 */
.hrp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.hrp-kpi {
  padding: 15px 17px 14px; border-radius: var(--r-card);
  border: 1px solid transparent; display: flex; flex-direction: column; gap: 1px;
}
.hrp-kpi.mint { background: var(--mint-soft); }
.hrp-kpi.lemon { background: var(--lemon-soft); }
.hrp-kpi.blue { background: var(--blue-soft); }
.hrp-kpi.lilac { background: var(--lilac-soft); }
.hrp-kpi.red { background: var(--red-soft); }
.hrp-kpi em { font-style: normal; font-size: 12px; color: var(--ink-2); }
.hrp-kpi b { font-size: 28px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); font-family: var(--f-num); }
.hrp-kpi b.hrp-state { font-size: 21px; font-family: var(--f-sans); }
.hrp-kpi span { font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.hrp-kpi small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 1100px) { .hrp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hrp-kpis { grid-template-columns: 1fr; } }

/* 卡片 + 表格 */
.hrp-card { padding: 4px 4px 2px; }
.hrp-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 14px 10px; }
.hrp-card-head strong { font-size: 13.5px; }
.hrp-table { width: 100%; }
.hrp-table th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; }
.hrp-table td { vertical-align: middle; font-size: 13px; }
.hrp-row { cursor: pointer; }
.hrp-row:hover { background: var(--card-2); }
.hrp-num { font-family: var(--f-num); font-size: 15px; font-weight: 650; }
.hrp-num.is-in { color: var(--green); }
.hrp-num.is-out { color: var(--red); }
.hrp-num.is-zero { color: var(--muted-2); font-weight: 500; }
.hrp-money { font-family: var(--f-num); font-size: 14px; font-weight: 650; }
.hrp-total { font-family: var(--f-num); font-size: 15px; font-weight: 700; }
.hrp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.hrp-table tfoot td { border-top: 1px solid var(--line-2); background: var(--card-2); }

/* 面板一「招聘数据分析」：7 个累计指标一行排开，窄屏自动折行 */
.hrp-kpis-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 4px; }
.hrp-kpi.orange { background: var(--orange-soft); }
.hrp-kpi.pink { background: var(--pink-soft); }
.hrp-table .num { text-align: right; }
.hrp-num.is-mid { color: #b2600f; }
.hrp-career td small, .hrp-career td .tiny { font-size: 11px; }
.hrp-join { font-family: var(--f-num); white-space: nowrap; }
.hrp-tenure { white-space: nowrap; }
.hrp-career .hrp-monthhire { white-space: nowrap; }
.hrp-career th { white-space: nowrap; }
.hrp-tilde {
  font-style: normal; font-weight: 700; color: var(--orange, #c8762a);
  margin-left: 3px; cursor: help;
}
.hrp-drawer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }

/* 统计人多选筛选（只在薪资面板出现） */
.hrp-people { display: inline-flex; align-items: center; gap: 4px; }
.hrp-people[hidden] { display: none; }
.hrp-people .btn { height: 28px; }
.hrp-people-x {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.hrp-people-x:hover { color: var(--red); border-color: var(--red); }

/* 薪资表：列之间拉竖线，「人数 / 员工名单 / 奖金」三段才分得开；
   最后一列「全部奖金」用深蓝，和中间的黑色人数拉开层级 */
.hrp-pay th, .hrp-pay td { border-right: 1px solid var(--line-2); }
.hrp-pay th:last-child, .hrp-pay td:last-child { border-right: 0; }
.hrp-pay thead th { border-bottom: 1px solid var(--line); }
.hrp-pay .hrp-grp th { border-right-color: var(--line); }
.hrp-total { color: #1e40af; }
@media (max-width: 1360px) { .hrp-kpis-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { .hrp-kpis-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hrp-kpis-7 { grid-template-columns: 1fr; } }
/* 9 列 / 10 列的表在窄屏容易超宽：先收内边距（每列省 12px，10 列就是 120px），再不够才横向滚。
   选择器要写 .hrp-table.hrp-career —— 光写 .hrp-career 压不过 `table.tbl th` 的 padding */
@media (max-width: 1260px) {
  .hrp-table.hrp-career th, .hrp-table.hrp-career td,
  .hrp-table.hrp-pay th, .hrp-table.hrp-pay td { padding-left: 8px; padding-right: 8px; }
  .hrp-pay .hrp-c-num, .hrp-pay .hrp-c-money { padding-left: 6px; padding-right: 6px; }
}
/* 合计行里的「3 位 HR」别被挤成竖排 */
.hrp-pay tfoot td { white-space: nowrap; }



.hrp-detail > td { background: var(--card-2); padding: 12px 14px; }
.hrp-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hrp-detail-title { font-size: 12px; font-weight: 650; color: var(--ink-2); margin-bottom: 7px; }
.hrp-detail-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.hrp-detail-row:last-child { border-bottom: 0; }
.hrp-detail-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hrp-detail-row .tiny { flex: 1; min-width: 0; }
@media (max-width: 900px) { .hrp-detail-grid { grid-template-columns: 1fr; } }

/* 结算条 / 说明块 */
.hrp-settle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; margin-bottom: 12px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.hrp-settle .tiny { line-height: 1.7; max-width: 720px; }
.hrp-note {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--card-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.7;
}
.hrp-note b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }
.hrp-note.is-warn { background: var(--lemon-soft); border-color: transparent; color: var(--ink-2); }
/* 2026-11-14 下线：页面底部的「怎么算的」板块（.hrp-rules）已删，用户口径「不需要在这里展示，直接把这个板块删掉」 */

.hrp-drawer-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hrp-drawer-sec:last-child { border-bottom: 0; }
.hrp-drawer-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.hrp-drawer-row:last-child { border-bottom: 0; }

/* ---- HR 薪资结算：按绩效周期分组（2026-11-09 对齐多维表结构） ---- */
.hrp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hrp-period { margin-bottom: 14px; }
.hrp-period:last-of-type { margin-bottom: 0; }
.hrp-period-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 13px 14px 11px; border-bottom: 1px solid var(--line-2);
}
.hrp-period-title { display: flex; align-items: center; gap: 8px; }
.hrp-period-title strong { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.hrp-period-total { font-family: var(--f-num); font-size: 15px; font-weight: 700; color: var(--ink); }
.hrp-period-empty { padding: 16px 14px; }
.hrp-period-head .btn { vertical-align: middle; margin-left: 6px; }
.hrp-more { display: flex; justify-content: center; padding: 6px 0 14px; }

.hrp-pay { table-layout: fixed; }
/* 三组列宽（表是 fixed 布局，没给宽度的列会被压成一条）：
   HR 96 / 人数 40 / 名单 82 / 奖金 70 / 全部奖金 74 —— 合计 746px。
   1100 视口时左栏仍占 348，表格只剩 752 可放：原来合计 758 会挤出 6px 横向滚动 */
.hrp-pay .hrp-col-hr { width: 96px; }
.hrp-pay .hrp-col-num { width: 40px; }
.hrp-pay .hrp-col-list { width: 82px; }
.hrp-pay .hrp-col-money { width: 70px; }
.hrp-pay .hrp-col-total { width: 74px; }
.hrp-pay th { vertical-align: bottom; }
.hrp-pay .hrp-grp th {
  text-align: center; font-size: 12px; font-weight: 650; color: var(--ink-2);
  padding: 7px 8px; border-bottom: 1px solid var(--line);
}
.hrp-pay .hrp-g-full { background: var(--mint-soft); }
.hrp-pay .hrp-g-intern { background: var(--lemon-soft); }
.hrp-pay .hrp-g-reg { background: var(--lilac-soft); }
.hrp-pay .hrp-sub th {
  text-align: center; font-size: 11px; font-weight: 600; color: var(--muted);
  padding: 6px 8px 8px; background: var(--card);
}
.hrp-pay .hrp-c-hr { text-align: left; }
.hrp-pay td { padding: 9px 8px; vertical-align: middle; }
.hrp-pay td:first-child { text-align: left; white-space: nowrap; }
.hrp-pay td:nth-child(2), .hrp-pay td:nth-child(5), .hrp-pay td:nth-child(8) { text-align: center; }
.hrp-pay td:nth-child(4), .hrp-pay td:nth-child(7), .hrp-pay td:nth-child(10), .hrp-pay td:nth-child(11) { text-align: right; }
/* 组之间的竖分隔线：三块内容一眼能分开（不靠底色也看得清） */
.hrp-pay td:nth-child(5), .hrp-pay th:nth-child(5),
.hrp-pay td:nth-child(8), .hrp-pay th:nth-child(8) { border-left: 1px solid var(--line-2); }
.hrp-pay .hrp-chips { gap: 3px; }
/* 名单列把左右内边距让给名字：单元格 6px、chip 7px —— 三个字的名字默认宽度 50 → 两个能排一行，
   否则每个名字各占一行，一行 HR 能撑成三层高，扫起来很累 */
.hrp-table.hrp-pay th.hrp-c-list, .hrp-table.hrp-pay td.hrp-c-list { padding-left: 6px; padding-right: 6px; }
.hrp-pay .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 7px; }
.hrp-pay tfoot td { padding: 9px 8px; }
.hrp-pay tfoot td:first-child { text-align: left; }
.hrp-pay tfoot td:nth-child(2), .hrp-pay tfoot td:nth-child(5), .hrp-pay tfoot td:nth-child(8) { text-align: center; }
.hrp-pay tfoot td:nth-child(4), .hrp-pay tfoot td:nth-child(7), .hrp-pay tfoot td:nth-child(10), .hrp-pay tfoot td:nth-child(11) { text-align: right; }

/* 花名 ↔ 身份证姓名对照（苏禾 = 舒雯茜）：跟在名单 chips 后面，弱化成一行小字 */
.hrp-alias {
  display: block;
  width: 100%;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-3, #8a8f98);
  white-space: normal;
}

/* ============================================================================
   发布 / 编辑招聘需求（2026-11-07 重做）
   —— 岗位单选下拉（只到编号+名称）、级别联动卡（不可选置灰打叉）、
      紧急程度单选卡（图标 + 颜色）、期限快捷天数、组织架构选人
   ========================================================================== */

.rrf { display: flex; flex-direction: column; gap: 18px; }
.rrf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 22px 26px; }
.rrf-col { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.rrf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rrf-label { display: flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 550; color: var(--ink-3); }
.rrf-label small { font-size: 10.5px; font-weight: 500; color: var(--muted-2); }
.rrf-label .req { color: var(--red); }

.rrf input[type="text"], .rrf input:not([type]), .rrf input[type="search"], .rrf textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: #fff; outline: none; font-family: inherit; color: var(--ink);
  font-size: 13.5px; transition: 0.15s;
}
.rrf input[type="text"], .rrf input:not([type]) { height: 42px; padding: 0 12px; }
.rrf textarea { padding: 10px 12px; line-height: 1.66; resize: vertical; }
.rrf input:focus, .rrf textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06); }
.rrf input::placeholder, .rrf textarea::placeholder { color: var(--muted-2); }

/* ---------------- 岗位单选 ---------------- */
.rrf-pos-wrap { position: relative; }
.rrf-pos-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
  cursor: pointer; transition: 0.16s; text-align: left;
}
.rrf-pos-trigger:hover { border-color: var(--muted-2); }
.rrf-pos-trigger.is-open { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06); }
.rrf-pos-no {
  flex: 0 0 auto; font-family: var(--f-num); font-size: 11px; letter-spacing: 0.03em;
  color: var(--muted); background: var(--card-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 6px; line-height: 1.5;
}
.rrf-pos-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.rrf-pos-ph { flex: 1; font-size: 13.5px; color: var(--muted); }
.rrf-chev { flex: 0 0 auto; color: var(--muted); transition: 0.2s; }
.rrf-pos-trigger.is-open .rrf-chev { transform: rotate(180deg); }

.rrf-pos-pop {
  position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 20px 44px -16px rgba(23, 23, 23, 0.3), 0 2px 6px rgba(23, 23, 23, 0.05);
  overflow: hidden;
}
.rrf-pos-search {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: var(--card-2); border-bottom: 1px solid var(--line); color: var(--muted);
}
.rrf-pos-search input { flex: 1; height: 28px; border: 0; background: transparent; padding: 0; }
.rrf-pos-search input:focus { box-shadow: none; }
.rrf-pos-list { max-height: 300px; overflow: auto; padding: 6px; }
.rrf-pos-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left;
}
.rrf-pos-row:hover { background: var(--card-2); }
.rrf-pos-row.is-on { background: var(--bg-2); }
.rrf-pos-row .rrf-pos-name { font-size: 13.5px; font-weight: 550; }
.rrf-pos-tick {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff;
}
.rrf-pos-row.is-on .rrf-pos-tick { background: var(--ink); border-color: var(--ink); }
.rrf-pos-empty { padding: 20px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* 通用下拉（recruit-kit · pickerHtml）：与上方「岗位单选」同一套皮肤，
   只是放进普通表单里，触发行跟输入框一样高。
   注意：面板展开时会被搬到 <body> 上（躲开弹窗的 overflow:hidden），
   所以下面这些规则挂在面板自己的类名上，不能写成 .rpick 后代选择器。 */
.rpick { position: relative; }
.rpick .rrf-pos-trigger { height: 42px; }
.rpick .rrf-pos-search input { height: 26px; font-size: 13px; }
.rpick-pop { z-index: 9999; }
.rpick-pop .rrf-pos-row[hidden] { display: none; }
.rpick-pop .rrf-pos-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 目标人数 ---------------- */
.rrf-stepper {
  display: inline-flex; align-items: center; gap: 2px; width: fit-content;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; padding: 3px;
}
.rrf-stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--card-2);
  color: var(--ink-2); font-size: 15px; line-height: 1; cursor: pointer; transition: 0.14s;
}
.rrf-stepper button:hover { background: var(--line); }
.rrf-stepper b { min-width: 40px; text-align: center; font-family: var(--f-num); font-size: 15px; }

/* ---------------- 期限 ---------------- */
.rrf-deadline { display: flex; flex-direction: column; gap: 8px; }
.rrf-dchips { display: flex; gap: 6px; flex-wrap: wrap; }
.rrf-dchip {
  height: 27px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: #fff; font-size: 12px; color: var(--ink-3);
  cursor: pointer; transition: 0.14s;
}
.rrf-dchip:hover { border-color: var(--ink); color: var(--ink); }
.rrf-dbox {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
}
.rrf-dbox input[type="date"] {
  flex: 0 0 138px; height: 100%; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--ink);
}
.rrf-dtext { margin-left: auto; font-size: 11.5px; color: var(--muted); text-align: right; }
.rrf-dtext.is-over { color: var(--red); }

/* ---------------- 级别卡（四色 / 置灰打叉） ---------------- */
.rrf-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rrf-lv {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 13px; background: #fff;
  cursor: pointer; transition: 0.16s;
}
.rrf-lv:hover:not(.is-off) { border-color: var(--muted-2); }
.rrf-lv-box {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--line-2);
  background: #fff; display: grid; place-items: center; color: #fff;
}
.rrf-lv-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rrf-lv-txt b { font-size: 12.8px; font-weight: 600; color: var(--ink); }
.rrf-lv-txt small { font-size: 10.5px; color: var(--muted); }

.rrf-lv.is-off { background: #f5f3f0; border-color: #e9e5df; cursor: not-allowed; }
.rrf-lv.is-off .rrf-lv-txt b, .rrf-lv.is-off .rrf-lv-txt small { color: var(--muted-2); }
.rrf-lv.is-off .rrf-lv-box { background: #edebe7; border-color: #ded8d0; color: #bdb6ac; }

.rrf-lv.is-on.tone-blue { border-color: #6f9ce8; background: var(--blue-soft); }
.rrf-lv.is-on.tone-blue .rrf-lv-box { background: #3f74d0; border-color: #3f74d0; }
.rrf-lv.is-on.tone-blue .rrf-lv-txt b { color: #2b57a3; }
.rrf-lv.is-on.tone-lilac { border-color: #a48ce0; background: var(--lilac-soft); }
.rrf-lv.is-on.tone-lilac .rrf-lv-box { background: #7b5bc9; border-color: #7b5bc9; }
.rrf-lv.is-on.tone-lilac .rrf-lv-txt b { color: #5a3f9e; }
.rrf-lv.is-on.tone-orange { border-color: #eeb083; background: var(--orange-soft); }
.rrf-lv.is-on.tone-orange .rrf-lv-box { background: #d98544; border-color: #d98544; }
.rrf-lv.is-on.tone-orange .rrf-lv-txt b { color: #a75f22; }
.rrf-lv.is-on.tone-mint { border-color: #86d3b6; background: var(--mint-soft); }
.rrf-lv.is-on.tone-mint .rrf-lv-box { background: #35946f; border-color: #35946f; }
.rrf-lv.is-on.tone-mint .rrf-lv-txt b { color: #23714f; }

/* ---------------- 紧急程度（图标 + 颜色 + 单选） ---------------- */
.rrf-prios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rrf-prio {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 13px; background: #fff; cursor: pointer; transition: 0.16s;
}
.rrf-prio:hover { border-color: var(--muted-2); }
.rrf-prio-ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: var(--card-2); color: var(--ink-3); transition: 0.16s;
}
.rrf-prio-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rrf-prio-txt b { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.rrf-prio-txt small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrf-radio {
  flex: 0 0 auto; margin-left: auto; width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center;
}
.rrf-radio i { width: 7px; height: 7px; border-radius: 50%; background: transparent; transition: 0.14s; }

.rrf-prio.is-on.tone-red { border-color: #e88d85; background: var(--red-soft); }
.rrf-prio.is-on.tone-red .rrf-prio-ico { background: #f7d7d3; color: #bf453c; }
.rrf-prio.is-on.tone-red .rrf-radio, .rrf-prio.is-on.tone-red .rrf-radio i { border-color: #bf453c; background: #bf453c; }
.rrf-prio.is-on.tone-red .rrf-radio i { background: #fff; }
.rrf-prio.is-on.tone-orange { border-color: #eeb083; background: var(--orange-soft); }
.rrf-prio.is-on.tone-orange .rrf-prio-ico { background: #fbe0cb; color: #b96a2a; }
.rrf-prio.is-on.tone-orange .rrf-radio { border-color: #b96a2a; }
.rrf-prio.is-on.tone-orange .rrf-radio i { background: #b96a2a; }
.rrf-prio.is-on.tone-lilac { border-color: #a48ce0; background: var(--lilac-soft); }
.rrf-prio.is-on.tone-lilac .rrf-prio-ico { background: #e2d8fa; color: #6a4cb5; }
.rrf-prio.is-on.tone-lilac .rrf-radio { border-color: #6a4cb5; }
.rrf-prio.is-on.tone-lilac .rrf-radio i { background: #6a4cb5; }
.rrf-prio.is-on.tone-blue { border-color: #6f9ce8; background: var(--blue-soft); }
.rrf-prio.is-on.tone-blue .rrf-prio-ico { background: #d6e5fb; color: #2f63b8; }
.rrf-prio.is-on.tone-blue .rrf-radio { border-color: #2f63b8; }
.rrf-prio.is-on.tone-blue .rrf-radio i { background: #2f63b8; }
.rrf-prio.is-on.tone-mint { border-color: #86d3b6; background: var(--mint-soft); }
.rrf-prio.is-on.tone-mint .rrf-prio-ico { background: #cdf0e2; color: #23714f; }
.rrf-prio.is-on.tone-mint .rrf-radio { border-color: #23714f; }
.rrf-prio.is-on.tone-mint .rrf-radio i { background: #23714f; }
.rrf-prio.is-on.tone-gray { border-color: #b9b3ab; background: #f3f1ee; }
.rrf-prio.is-on.tone-gray .rrf-prio-ico { background: #e6e2dc; color: #6b655d; }
.rrf-prio.is-on.tone-gray .rrf-radio { border-color: #6b655d; }
.rrf-prio.is-on.tone-gray .rrf-radio i { background: #6b655d; }

/* ---------------- 面试官（负责HR / 二面 / 三面） ---------------- */
.rrf-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rrf-person-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rrf-plabel { display: flex; flex-direction: column; gap: 2px; }
.rrf-plabel > span { font-size: 12px; font-weight: 550; color: var(--ink-3); }
.rrf-plabel small { font-size: 10.5px; color: var(--muted-2); }
.rrf-opt {
  font-style: normal; font-size: 9.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 5px; margin-left: 2px;
}
.rrf-person {
  display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
}
.rrf-av {
  flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; background: var(--ink);
  color: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 600;
}
.rrf-pinfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.rrf-pinfo b { font-size: 12.8px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrf-pinfo small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrf-person-empty {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; width: 100%;
  border: 1px dashed var(--line-2); border-radius: var(--r-md); background: #fff;
  color: var(--muted); font-size: 12.5px; cursor: pointer; transition: 0.15s;
}
.rrf-person-empty:hover { border-color: var(--ink-3); color: var(--ink-2); background: var(--card-2); }
.rrf-plus {
  width: 20px; height: 20px; border-radius: 50%; background: var(--card-2);
  display: grid; place-items: center; font-size: 13px; color: var(--ink-3);
}

/* 招聘 HR 多选：一行放若干「头像 + 姓名」小片，末尾跟一个「修改」按钮 */
.rrf-hrs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  min-height: 46px; padding: 8px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
}
.rrf-hr {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 3px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line);
  max-width: 100%;
}
.rrf-hr .rrf-av { width: 22px; height: 22px; font-size: 10.5px; }
.rrf-hr.has-x { padding-right: 3px; }
.rrf-hr-x {
  flex: 0 0 auto; width: 18px; height: 18px; margin-left: -1px;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--muted); display: grid; place-items: center;
  cursor: pointer; font-size: 13px; line-height: 1; padding: 0;
}
.rrf-hr-x:hover { background: var(--red-soft, #fdeaea); color: var(--red, #d64545); }
.rrf-hr b {
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rrf-hrs-empty { font-size: 12px; color: var(--muted); }
.rrf-hrs > button { margin-left: auto; white-space: nowrap; }

.rrf-error {
  font-size: 12.5px; color: #b03a31; background: var(--red-soft);
  border-radius: 10px; padding: 9px 12px;
}

@media (max-width: 920px) {
  .rrf-grid { grid-template-columns: 1fr; }
  .rrf-people { grid-template-columns: 1fr; }
}

/* ============================================================================
   内推投递（2026-11-07 重做）
   —— 列表：姓名 / 岗位 / 简历 / 内推人 / 对应 HR / 结果跟进 / 提交时间
   —— 自荐介绍与结果备注是「填写人自己写的话」，默认收成一行，点开看全文
   —— 跟进弹窗：三选一 + 结果备注；登记弹窗：两栏；二维码弹窗：左码右说明
   ========================================================================== */

.chip-gray { background: var(--line); color: var(--ink-3); }

/* 8 列整张放下：2026-11-18 加「换个岗位聊」后，操作列挤到卡片外被裁（.ofa-card 是 overflow:hidden）。
   改成 table-layout:fixed + 显式 <col>，操作列定宽 132px（最多「跟进 + 候选人」两颗，够放）。 */
.tbl-ref { table-layout: fixed; width: 100%; }
.tbl-ref th, .tbl-ref td { vertical-align: middle; padding-left: 10px; padding-right: 10px; }
.tbl-ref td:nth-child(1) { overflow: hidden; }
.tbl-ref td:nth-child(2), .tbl-ref td:nth-child(3), .tbl-ref td:nth-child(6) { word-break: break-word; }
.tbl-ref td:nth-child(7) { white-space: nowrap; }
.tbl-ref td:nth-child(8) { white-space: nowrap; }
.tbl-ref .ref-file { max-width: 100%; }

/* 折叠文本 */
.ref-fold {
  display: block; max-width: 152px; margin-top: 2px;
  font-family: inherit; font-size: 11.5px; line-height: 1.5; text-align: left;
  color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ref-fold:hover { color: var(--ink-2); }
.ref-fold.is-open { white-space: normal; overflow: visible; display: block; word-break: break-word; }

/* 简历 / 作品集 */
.ref-flist { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ref-file {
  display: inline-flex; align-items: center; gap: 4px; max-width: 160px;
  font-size: 11.8px; color: var(--ink-2); text-decoration: none;
}
.ref-file em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-file svg { flex: none; color: var(--muted); }
.ref-file:hover { color: var(--ink); text-decoration: underline; }
.ref-file:hover svg { color: var(--ink-3); }
.ref-pf { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ref-pf > span { flex: none; font-size: 10px; color: var(--muted-2); }

/* ---------- 简历链接已失效 + 就地补传（2026-11-20） ---------- */
/**
 * 老内推的简历是钉盘签名直链，签名一过期就 403，点开只剩一句 410。
 * 现在过期文件直接标红「已失效」，点它进「进度跟进」补传 —— 别让人点开才知道打不开。
 */
.ref-file.is-dead {
  border: 1px solid var(--red-soft); border-radius: var(--r-pill);
  padding: 1px 7px 1px 5px; background: #fdf1ef; color: #b4473c; cursor: pointer;
  font-family: inherit;
}
.ref-file.is-dead svg { color: #c9705f; }
.ref-file.is-dead i {
  font-style: normal; flex: none; font-size: 10px; padding: 0 4px;
  border-radius: 4px; background: var(--red-soft); color: #b4473c;
}
.ref-file.is-dead:hover { background: var(--red-soft); color: #97382e; text-decoration: none; }

/* 跟进弹窗里的简历 / 作品集分组：一行标签 + 一串 chip + 一颗补传按钮 */
.fr-files { display: grid; gap: 8px; }
.fr-fgrp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fr-fgrp > b { flex: none; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.fr-fdel {
  flex: none; width: 16px; height: 16px; margin-left: -4px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 12px; line-height: 1; cursor: pointer;
}
.fr-fdel:hover { background: var(--red-soft); color: var(--red); }
.fr-fadd {
  flex: none; height: 22px; padding: 0 8px;
  border: 1px dashed var(--line-2); border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: 11px; line-height: 1; white-space: nowrap; cursor: pointer;
}
.fr-fadd:hover { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--card-2); }

/* 内推人 / 对应 HR */
.ref-pname { font-size: 12.5px; color: var(--ink-2); }
.ref-left {
  display: inline-block; margin-left: 4px; vertical-align: 1px;
  font-style: normal; font-size: 9.5px; line-height: 15px;
  color: #a8392f; background: var(--red-soft); border-radius: var(--r-pill); padding: 0 5px;
}
.ref-dept { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.ref-src {
  display: inline-block; margin-left: 5px; vertical-align: 1px;
  font-style: normal; font-size: 9.5px; line-height: 15px;
  color: #2b5a9e; background: var(--blue-soft); border-radius: var(--r-pill); padding: 0 5px;
}

/* 结果跟进 */
.ref-stcell { min-width: 176px; }
.ref-at { display: inline-block; margin-left: 5px; font-style: normal; font-size: 10.5px; color: var(--muted); }
.ref-stcell .ref-fold { max-width: 176px; }

/* 跟进弹窗 */
.fr-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.fr-who { flex: 1; min-width: 0; }
.fr-who strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.fr-who em { font-style: normal; font-size: 12px; color: var(--muted); }
.fr-locked { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; margin-bottom: 16px; }
.fr-locked strong { display: block; font-size: 13px; margin-bottom: 5px; }
.fr-locked p { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--ink-3); }
.fr-hint { display: block; font-style: normal; font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 7px; }
.field > span .fr-hint { display: inline; margin: 0 0 0 6px; }

/* 登记内推：两栏 */
.ref2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ref2-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ref2-f.full { grid-column: 1 / -1; }
.ref2-f > span { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; color: var(--ink-3); }
.ref2-f input, .ref2-f textarea {
  width: 100%; height: 46px; padding: 0 12px; font-family: inherit; font-size: 13.5px;
  color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md);
  outline: none; transition: .15s;
}
.ref2-f textarea { height: auto; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.ref2-f input:focus, .ref2-f textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,23,.06); }
.ref2-f input::placeholder, .ref2-f textarea::placeholder { color: var(--muted-2); }
.ref2-f .upbox { height: 100%; min-height: 118px; }
.ref2-hint { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); }

/* 二维码弹窗 */
.rfq { display: flex; gap: 22px; align-items: flex-start; }
.rfq-code {
  flex: none; width: 224px; height: 224px; padding: 8px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; text-align: center;
}
.rfq-code svg { width: 100%; height: 100%; display: block; }
.rfq-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.rfq-info strong { font-size: 13.5px; }
.rfq-info p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-3); }
.rfq-url { display: flex; gap: 8px; }
.rfq-url input {
  flex: 1; min-width: 0; height: 36px; padding: 0 10px; font-family: inherit; font-size: 12px;
  color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 10px;
}

@media (max-width: 760px) {
  .ref2 { grid-template-columns: 1fr; }
  .rfq { flex-direction: column; }
}

/* 跟进弹窗内的表单块：弹窗不用 form-grid，这里补上标签与间距 */
#fr-form .field { margin-top: 16px; }
#fr-form .field > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 550; color: var(--ink-3); }
#fr-form textarea {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 13.5px; line-height: 1.7;
  color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md);
  outline: none; resize: vertical;
}
#fr-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,23,.06); }
#fr-form .chgrid { margin-bottom: 2px; }

/* ============================================================================
   内部转岗申请（2026-11-07 重做）
   —— 姓名从组织架构选、当前岗位自动带出、转岗岗位只显示名称
   —— 结果只有三种：待跟进 / 同意转岗 / 驳回转岗
   ========================================================================== */

/* 只读字段（当前岗位）：长得像输入框，但不可改 */
.ref2-ro {
  display: flex; align-items: center; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card-2); color: var(--ink-2); font-size: 13.5px;
}
.ref2-ro.is-empty { color: var(--muted); }

/* 转岗列表：箭头 + 原因折叠更宽一点 */
.tbl-tr td:nth-child(1) { min-width: 132px; max-width: 210px; }
.tbl-tr td:nth-child(2) { min-width: 96px; }
.tbl-tr .tr-to { white-space: nowrap; }
.tr-arrow { color: var(--muted-2); margin-right: 5px; }
.ref-fold.tr-reason { max-width: 250px; }
.tbl-tr .ref-stcell { min-width: 150px; }

/* 岗位下拉：当前岗位那一行不可选 */
.rrf-pos-row[disabled] { opacity: .5; cursor: not-allowed; }
.rrf-pos-cur {
  font-style: normal; font-size: 9.5px; line-height: 15px; color: var(--ink-3);
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 0 5px; margin-left: 6px;
}

/* ============================================================================
   系统设置 · 档案选项（2026-11 改版：档案类型 + 档案内容，一个类型一张卡）
   2026-11-16 用户口径：「每个档案卡片大小各异，太难看了」+「颜色区分，但不要太撞色」
   —— 等宽等高网格（定高 340），长列表在卡内滚动；颜色只上卡头/描边，内容区保持白底。
   ========================================================================== */
.opt-kind-card {
  display: flex; flex-direction: column;
  height: 340px;                       /* 固定高度：一屏看下来每张卡一样大 */
  background: var(--card);
  /* 描边取本类型的色相，只掺 16%，保留「一类一色」又不扎眼 */
  border-color: color-mix(in srgb, var(--ct) 16%, var(--line));
}
.opt-kind-card > .field-group-head {
  flex: 0 0 auto;
  gap: 8px; justify-content: flex-start;
  background: var(--ct-soft);
  border-bottom-color: color-mix(in srgb, var(--ct) 14%, var(--line));
}
.opt-kind-card > .field-group-head .ct-dot { width: 8px; height: 8px; }
.opt-kind-card .opt-count {
  font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--ct) 72%, var(--ink-3));
}
/* 卡身吃满中间高度，超出的在卡内滚（卡头、卡底不动）；
   末尾 16px 打个渐隐，暗示「下面还有」而不是硬切一行 */
.opt-kind-card > .fg-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 16px), transparent 100%);
}
.opt-kind-card > .fg-body::-webkit-scrollbar { width: 6px; }
.opt-kind-card > .fg-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.opt-kind-card > .fg-body::-webkit-scrollbar-track { background: transparent; }
.opt-kind-card > .opt-add { flex: 0 0 auto; }
.opt-kind-card .frow { padding: 7px 14px; }

/* 等宽等高网格：auto-fill 按可用宽度铺满，卡片本身定高，所以一列行都不歪 */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 760px) {
  .opt-grid { grid-template-columns: 1fr; }
  /* 窄屏单列：高度压到 300 仍保持「每张卡一样大」，列表依旧卡内滚 */
  .opt-kind-card { height: 300px; }
}
.opt-kind-del {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--muted-2); font-size: 14px; line-height: 1;
}
.opt-kind-del:hover { background: var(--red-soft); color: var(--red); }

/* ------------------------------ 系统设置 · 通知说明 ------------------------------ */
.notice-intro {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 14px; margin-bottom: 16px; font-size: 12px; line-height: 1.75; color: var(--ink-3);
}
.notice-intro b { margin-right: 6px; color: var(--ink); font-size: 12.5px; }

.notice-sec { margin-bottom: 18px; }
.notice-sec-head { display: flex; align-items: baseline; gap: 9px; margin: 0 0 8px; }
.notice-sec-head b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.notice-sec-head span { font-size: 11.5px; color: var(--muted); }
.notice-sec-head em {
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1.6;
  color: var(--ink-3); background: var(--card-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 7px;
}
.notice-tbl { table-layout: fixed; }
.notice-tbl td { vertical-align: top; }
.notice-title { font-size: 12.5px; font-weight: 600; color: var(--ink); }

/* ============================================================================
   试用期周报（列表 / 详情抽屉）
   —— 五段正文是长文本，抽屉里每段单独成块，标题小、正文松，扫读比一大坨好
   ========================================================================== */

/* 补发提醒弹窗（2026-11-14）：按周列未交名单，勾人再发。
   尺寸**与人数无关**（用户口径：「弹窗的长度永远是固定的，因为所有按钮的位置要保持不变：
   人少就留白，人多就往下滑」）—— 高度写死在 .wk-rd-modal，名单区 flex 吃掉剩余空间并内部滚动。 */
.wk-rd-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.wk-rd-tools { display: flex; align-items: center; gap: 12px; padding: 0 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wk-rd-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.wk-rd-list { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 0; overflow: auto; }
.wk-rd-item { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.wk-rd-item:last-child { border-bottom: 0; }
.wk-rd-item input[type="checkbox"] { width: 16px; height: 16px; flex: none; cursor: pointer; }
.wk-rd-name { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; line-height: 1.3; }
.wk-rd-name b { font-size: 13px; font-weight: 600; }
.wk-rd-name em { font-style: normal; font-size: 11.5px; color: var(--muted); }
/* 补发提醒弹窗比默认弹窗宽一档：群名（【试用期考核群】·产品二组）要能完整显示 */
.modal.wk-rd-modal {
  width: min(640px, calc(100vw - 24px));
  height: min(660px, calc(var(--vh100) - 48px));
  max-height: none;
}
/* 头 / 底固定，中间吃满剩余高度：1 个人是这一块留白，14 个人是这块里滚动 */
.modal.wk-rd-modal .modal-body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.wk-rd-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* 没人可催 / 读取中：占满剩下的留白区并居中，而不是贴着顶部 */
.wk-rd-body > .empty { flex: 1 1 auto; display: grid; place-content: center; }
.wk-rd-body > .loading-block { margin: auto 0; }
.wk-rd-tags { display: flex; align-items: center; gap: 6px; flex: none; width: 300px; justify-content: flex-end; }
.wk-rd-tags .chip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
/* 群名可压缩、状态标签不被压（否则「已提醒过」会被截成「已提…」） */
.wk-rd-tags .chip:first-child { flex: 0 1 auto; min-width: 0; }
.wk-rd-tags .chip:last-child { flex: none; }

.wk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 2px; }
.wk-sec { margin-top: 14px; }
.wk-sec:first-of-type { margin-top: 10px; }
.wk-sec-h {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 650; color: var(--ink); margin-bottom: 6px;
}
.wk-sec-b {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.78;
  white-space: pre-wrap; word-break: break-word;
  background: var(--card-2); border-radius: 10px; padding: 10px 12px;
}
.wk-tbl td.num { white-space: nowrap; }
.wk-tbl .wk-sum { color: var(--ink-3); max-width: 460px; }
/* 周报两张表列多（新增「试用期考核群」后共 7–8 列），1080 窗口下按默认 14px 内边距会横向溢出，
   把左右内边距收到 10px、群名列宽度收到 158px（超长仍然三点省略），整表就能在常见宽度里放下 */
/* ⚠️ 选择器要写成 table.wk-tbl（带上元素名），否则打不过 `table.tbl td { padding: 11px 14px }`：
   两者特异性比的是「元素个数」，.wk-tbl td 少一个 table，会被压回去 */
table.wk-tbl th, table.wk-tbl td { padding-left: 10px; padding-right: 10px; }
.wk-tbl .dg-grp-t { max-width: 196px; }
/* 1080 这种窄窗口，周报 7 列要挤进 740px：群名列收到 158px，其余列才不会被顶出去 */
@media (max-width: 1200px) { .wk-tbl .dg-grp-t { max-width: 158px; } }
/* 列再挤也不让「催一下 / 查看」被推出视口：最后一列钉在右边（表格本来就能横向滚）。
   跨列的提示行不算，钉住会盖住半张表 */
.wk-tbl th:last-child, .wk-tbl td:last-child:not([colspan]) {
  position: sticky; right: 0; z-index: 1; background: var(--card);
  box-shadow: -8px 0 8px -8px rgba(23, 23, 23, 0.14);
}
.wk-tbl .chip { font-size: 11px; padding: 2px 9px; }

/* 人员看板（2026-11-12）：完成率条 + 每周明细抽屉
   —— 「实际/应写」用大数字，「完成率」用一条细条，扫一眼就知道谁欠得多 */
.wk-rate { display: flex; align-items: center; gap: 8px; min-width: 118px; }
.wk-rate-bar {
  flex: 1 1 auto; height: 6px; border-radius: 999px;
  background: var(--card-2); overflow: hidden;
}
.wk-rate-bar i { display: block; height: 100%; border-radius: 999px; transition: width 0.2s ease; }
.wk-rate b { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.wk-num b { font-size: 15px; font-variant-numeric: tabular-nums; }
.wk-num .muted { font-size: 12px; }
.wk-miss { color: #a8392f; }

/* 抽屉顶部的四个数字：应写 / 已交 / 缺交 / 完成率 */
.wk-pstat { display: flex; gap: 8px; margin: 12px 0 2px; }
.wk-pstat > div {
  flex: 1 1 0; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px 10px;
}
.wk-pstat em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.wk-pstat b { font-size: 19px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.wk-pstat b.is-warn { color: #a8392f; }

.wk-weektbl td { vertical-align: middle; }
/* 抽屉里的周明细是「整行可读」的表，不要外层列表那套「最后一列钉在右边」——
   钉住会凭空多出一条白色带状阴影，看着像表格被截断了。
   ⚠️ 必须带上 .wk-tbl 提权：上面那条是 `.wk-tbl td:last-child:not([colspan])`（0,3,1），
   只写 .wk-weektbl td:last-child（0,2,1）压不住它，背景还是白的 */
.wk-tbl.wk-weektbl th:last-child,
.wk-tbl.wk-weektbl td:last-child:not([colspan]) {
  position: static; box-shadow: none; background: transparent;
}
.wk-week-body > td { background: var(--card-2); padding: 2px 14px 12px; }
.wk-week-body .wk-sec { margin-top: 10px; }
.wk-week-body .wk-sec-b { font-size: 13px; padding: 9px 11px; }

/* ============================================================================
   转正述职 · 历史记录（看板「已完成」混合列表 + 历史详情抽屉）
   —— 多维表导入的 48 条 + 系统旧结论，和在途流程共用一张表
   ========================================================================== */
.df-hist {
  background: var(--card-2); border-radius: 12px; padding: 4px 12px;
  margin-bottom: 4px;
}
.df-hist-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.df-hist-row:last-child { border-bottom: none; }
.df-hist-row > span { flex: none; width: 84px; color: var(--muted); font-size: 12px; }
.df-hist-row > b { font-weight: 500; color: var(--ink); word-break: break-word; }
.df-main { min-width: 0; }

/* ============================================================================
   统一选项卡片（picker.js）
   —— 全站原生 <select> 自动升级成「触发按钮 + .mpick 浮层」，
      外观和「候选人筛选」里的面试阶段/岗位/HR 面试官完全一致（用户 2026-11-09 口径）
   ========================================================================== */
.pk-src { display: none !important; }
.pk-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; max-width: 100%; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card); font: inherit; font-size: 12.5px; color: var(--ink);
  cursor: pointer; text-align: left; vertical-align: middle;
}
.pk-trigger:hover { border-color: var(--ink-3); }
.pk-trigger:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, .07); }
.pk-trigger .pk-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pk-trigger.is-empty { color: var(--muted); }
.pk-trigger.is-disabled { opacity: .55; cursor: not-allowed; }
.pk-chev { flex: none; opacity: .55; }
/* 表单 / 筛选行里的下拉要撑满整格，表格里保持内容宽度 */
.field > .pk-trigger, .frow .pk-trigger, .pk-block, .rpick .pk-trigger { width: 100%; }
/* 日期区间（daterange.js 的声明式挂载点）：容器自己排布，按钮吃满容器 */
.pk-range { display: inline-flex; min-width: 0; }
.pk-range .pk-trigger { width: 100%; }
/* 弹窗表单里的触发按钮跟同排输入框一样高（输入框 38px），别一个高一个矮 */
.field > .pk-trigger, .rpick .pk-trigger { height: 38px; }
/* 浮层选项行首的编号（岗位 034 这种），左右两项都用同一套字 */
.mpick-prefix {
  flex: none; font-style: normal; font-family: var(--f-num); font-size: 11px;
  letter-spacing: .03em; color: var(--muted); background: var(--card-2);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px;
}
.mpick-opt.is-on .mpick-prefix { color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); }
/* 选时间：日历 + 时间片，外壳复用 .mpick，所以和选项浮层是同一张卡片 */
/* 高度要按「日历 + 5 行时间片 + 底栏」实际需要留（≈475px）；
   原来沿用 .mpick 的 430px 上限，半小时一格后会压扁内容、时间片溢出压到「完成」那行 */
.pk-cal { width: 292px; max-height: min(560px, calc(var(--vh100) - 24px)); overflow: hidden; }
/* 屏幕矮的时候：顶部标题 / 日历 / 底栏都不许压，只让「时间片」区域缩并内部滚动 */
.pk-cal > .mpick-head,
.pk-cal > .pk-cal-grid,
.pk-cal > .mpick-foot { flex: none; }
.pk-cal .pk-cal-time { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.pk-cal .pk-cal-timehead { flex: none; }
.pk-cal-nav { display: flex; align-items: center; gap: 4px; }
.pk-cal-nav b { font-size: 12px; font-weight: 600; color: var(--ink); min-width: 84px; text-align: center; }
.pk-cal-nav button {
  width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--card); color: var(--ink-2); font-size: 13px; line-height: 1; cursor: pointer;
}
.pk-cal-nav button:hover { border-color: var(--ink-3); color: var(--ink); }
.pk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 4px 4px; }
.pk-cal-w { text-align: center; font-size: 10.5px; color: var(--muted); padding: 3px 0; }
.pk-cal-d {
  height: 30px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--ink-2);
}
.pk-cal-d:hover { background: var(--card-2); }
.pk-cal-d.is-today { color: var(--blue); font-weight: 600; }
.pk-cal-d.is-on { background: var(--ink); color: #fff; font-weight: 600; }
.pk-cal-d.is-out { pointer-events: none; }
.pk-cal-time { border-top: 1px solid var(--line); margin: 2px 4px 0; padding: 8px 0 4px; }
.pk-cal-timehead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pk-cal-timehead > span { font-size: 11.5px; color: var(--muted); }
.pk-cal-timehead input {
  width: 92px; height: 26px; padding: 0 8px; border: 1px solid var(--line-2);
  border-radius: 8px; font: inherit; font-size: 12px; color: var(--ink); background: var(--card);
}
/* 手输时间：空值给个淡提示，写错（25:00 / abc）标红并退回原值 */
.pk-time-in::placeholder { color: var(--muted); }
.pk-time-in:focus { outline: none; border-color: var(--ink-3); }
.pk-time-in.is-bad { border-color: var(--red); background: var(--red-soft); }
/* 半小时一格 → 25 个时间片，五列排满；屏幕太矮时才在片区内部滚动 */
.pk-cal-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; flex: 0 1 auto; min-height: 0; overflow-y: auto; }
.pk-chip {
  padding: 4px 0; border: 1px solid var(--line-2); border-radius: 7px; text-align: center;
  background: var(--card); font: inherit; font-size: 11.5px; color: var(--ink-2); cursor: pointer;
}
.pk-chip:hover { border-color: var(--ink-3); }
.pk-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- 钉钉忙闲（2026-11-30）：约日程时读参会人钉钉日程，忙的半小时片灰置禁点 ----
   展示口径参考钉钉：只见「忙碌」不见内容；斜纹灰 = 有日程；浅灰 = 过去的时间 */
.pk-chip.is-off {
  background: repeating-linear-gradient(135deg, var(--card-2) 0 4px, #eef0f2 4px 8px);
  color: var(--muted); cursor: not-allowed; border-color: var(--line-2);
  text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent);
}
.pk-chip.is-past:not(.is-busy) {
  background: var(--card-2); color: var(--muted-2, var(--muted)); cursor: not-allowed; opacity: .7;
}
/* 忙闲状态行：读钉钉时转圈文案 / 失败降级说明 */
.pk-cal-busyline {
  font-size: 11px; color: var(--muted); padding: 0 2px 6px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pk-cal-busyline.is-err { color: var(--orange, #b7791f); }
/* 日历上忙碌过的日期加一个小点（钉钉日历的日程点同款位置） */
.pk-cal-d { position: relative; }
.pk-cal-d.has-busy::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 99px; background: var(--red-soft, #e8b4b0);
}
.pk-cal-d.is-on.has-busy::after { background: rgba(255,255,255,.75); }

/* ============================================================================
   2026-11-09 · 详情页改造（谈薪 / 薪资流水 / offer 记录 / 入职日历）
   ========================================================================== */

/* 用户口径：「所有的输入框都不要方方正正的，全部改成圆角，能不能视觉统一一下？」
   统一到 12px（比 --r-sm 10 圆、比 --r-md 14 收敛），放最后保证压过各处零散写法 */
.input,
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
.pk-trigger {
  border-radius: 12px;
}
/* 药丸类控件保持药丸，不要被上面那条拉直 */
input.rc-pill, .rc-pill input { border-radius: var(--r-pill); }

/* 谈薪：标签与值同行（用户口径：放下面太占位置） */
.rc-kv.is-inline { display: flex; align-items: baseline; gap: 8px; }
.rc-kv.is-inline em { display: inline; margin: 0; }

/* 谈薪记录：结论 / 追加按钮同一行，追加贴在最右 */
.rc-recline { display: flex; align-items: center; gap: 10px; }
.rc-recline .rc-reqbox { flex: 1 1 auto; min-width: 0; }
.rc-recline .btn { flex: none; }
.rc-chatbox { margin-top: 8px; white-space: pre-wrap; }

/* 弹窗里已上传文件的简表（薪资流水 / offer 记录） */
.rc-files-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card-2);
  font-size: 12px;
}
.rc-files-row b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-files-row em { font-style: normal; color: var(--muted); margin-left: auto; flex: none; }
/* 弹窗里的附件行：行尾 × 随手删（薪资流水 / offer 文件传错了不用退出重来） */
.rc-files-x {
  flex: none; width: 17px; height: 17px; padding: 0; border: 0; border-radius: 5px;
  background: none; color: var(--muted-2); font-size: 14px; line-height: 1; cursor: pointer;
}
.rc-files-x:hover { color: var(--red); background: var(--card); }

/* 入职日历：被邀请人标题行里的「+ 添加邀请人」贴右 */
.ob-list-head { align-items: center; }
.ob-list-head .btn { margin-left: auto; flex: none; }
.ob-person.is-on { border-color: var(--ink-3); background: var(--card); }
.rc-kvtip { margin-top: 6px; }

/* 系统设置 → 对象存储 ------------------------------------------------------ */
.stg-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card-2, #faf8f5);
}
.stg-hero .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.04); }

.stg-steps { display: grid; gap: 9px; }
.stg-step {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 1.6;
}
.stg-step .ico { font-weight: 700; text-align: center; }
.stg-step .txt { min-width: 0; }
.stg-step .txt em {
  display: block; font-style: normal; font-size: 11.5px; color: var(--muted);
  overflow-wrap: anywhere;
}
.stg-step .txt em.err { color: #a8392f; }
.stg-step .ms { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.stg-step.ok .ico { color: var(--green); }
.stg-step.bad .ico { color: var(--red); }
.stg-step.bad .txt { color: #a8392f; }

.stg-errs {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--red-soft); color: #a8392f; font-size: 11.5px; line-height: 1.75;
}
.stg-errs strong { display: block; font-size: 12px; margin-bottom: 4px; }
.stg-errs em { font-style: normal; font-weight: 600; margin-right: 4px; }
.stg-errs div { overflow-wrap: anywhere; }

.stg-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.stg-tips li {
  position: relative; padding-left: 16px; font-size: 12px; line-height: 1.7; color: var(--ink-3);
}
.stg-tips li::before {
  content: ""; position: absolute; left: 3px; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2);
}
.stg-tips strong { color: var(--ink); font-weight: 600; }
.stg-tips code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  background: var(--card-2, #faf8f5); border: 1px solid var(--line); border-radius: 5px;
  padding: 0 4px;
}

/* 系统设置 → 通知管理 ------------------------------------------------------ */
.ntm-hero {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card-2);
}
/* 钉钉发送账号授权卡（2026-11-27）：生成授权码 → 发链接给对应 HR → 她用自己钉钉确认 */
.ntm-dingauth {
  border: 1px solid var(--line); border-radius: var(--r-card, 10px);
  background: var(--card); padding: 12px 14px; margin-bottom: 12px;
}
.ntm-dingtbl { width: 100%; table-layout: fixed; }
.ntm-dingtbl th, .ntm-dingtbl td { padding: 5px 8px; font-size: 12px; vertical-align: middle; }
.ntm-dingtbl th { color: var(--muted); font-weight: 500; text-align: left; }
.ntm-hero b { font-size: 13px; margin-right: 7px; }
.ntm-hero span { font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.ntm-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }

.ntm-side {
  position: sticky; top: 0; display: flex; flex-direction: column;
  max-height: calc(var(--vh100) - 208px); padding: 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}
.ntm-search {
  display: flex; align-items: center; gap: 7px; flex: none;
  height: 32px; padding: 0 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card-2);
}
.ntm-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 12.5px; }
.ntm-list { overflow: auto; margin-top: 8px; padding-right: 2px; }
/* 通知事件按左侧大栏目分组（2026-11-20）：组头要看得出来，不然 31 条还是"全堆在一起" */
.ntm-grp {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; margin: 10px 0 3px;
  font-size: 11px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em;
  position: sticky; top: 0; z-index: 1;
  background: var(--card-2, #f6f4f1); border-radius: 6px;
}
.ntm-grp:first-child { margin-top: 2px; }
.ntm-grp i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3, #94a3b8); }
.ntm-grp em {
  font-style: normal; font-weight: 600; font-size: 10px; letter-spacing: 0;
  margin-left: auto; padding: 0 6px; border-radius: 999px;
  background: var(--card); color: var(--muted);
}
.ntm-item {
  display: block; width: 100%; text-align: left; padding: 7px 9px; margin-bottom: 1px;
  border: 1px solid transparent; border-radius: var(--r-sm); background: transparent;
}
.ntm-item:hover { background: var(--card-2); }
.ntm-item.is-active { background: var(--ink); border-color: var(--ink); }
.ntm-item.is-active .ntm-item-t { color: #fff; }
.ntm-item.is-active .ntm-item-s { color: rgba(255, 255, 255, .64); }
.ntm-item.is-active .ntm-flag { border-color: rgba(255, 255, 255, .32); color: rgba(255, 255, 255, .88); }
.ntm-item-t { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.ntm-item.is-off .ntm-item-t { color: var(--muted); font-weight: 500; }
.ntm-item-s { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 2px; font-size: 11px; color: var(--muted); }
.ntm-flag {
  font-style: normal; font-size: 10px; line-height: 1.5; padding: 0 5px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--muted);
}
.ntm-flag.off { color: #a8392f; border-color: rgba(168, 57, 47, .3); }
.ntm-flag.dirty { color: #2b5a9e; border-color: rgba(43, 90, 158, .26); }
.ntm-none { padding: 20px 8px; text-align: center; font-size: 12px; color: var(--muted); }

.ntm-main { padding: 16px 18px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); }
.ntm-head { display: flex; align-items: flex-start; gap: 14px; }
.ntm-h { font-size: 16px; }
.ntm-when { margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.ntm-note { margin-top: 4px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

.ntm-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ntm-sec-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.ntm-sec-h em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.ntm-sec-sub { margin-top: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.75; }

.ntm-chs { display: flex; flex-wrap: wrap; gap: 7px; }
.ntm-ch {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--card); font-size: 12px; color: var(--ink-3);
}
.ntm-ch i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.ntm-ch:hover { border-color: var(--ink-3); }
.ntm-ch.is-on { font-weight: 600; color: var(--ink); }
.ntm-ch.tone-lilac.is-on { background: var(--lilac-soft); border-color: var(--lilac); }
.ntm-ch.tone-lilac.is-on i { background: #8a6fd0; }
.ntm-ch.tone-blue.is-on { background: var(--blue-soft); border-color: var(--blue); }
.ntm-ch.tone-blue.is-on i { background: #4f86cc; }
.ntm-ch.tone-lemon.is-on { background: var(--lemon-soft); border-color: #e6c53a; }
.ntm-ch.tone-lemon.is-on i { background: #c8a51d; }
.ntm-ch.tone-line.is-on { background: var(--card-2); border-color: var(--ink-3); }
.ntm-ch.tone-line.is-on i { background: var(--ink-3); }
.ntm-ch:disabled { opacity: .6; cursor: default; }

.ntm-line-toggle { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.ntm-line-toggle .sw { margin-left: 2px; }

.ntm-aud { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.ntm-aud b { margin-right: 7px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ntm-aud-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.ntm-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ntm-p {
  padding: 5px 11px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--card); font-size: 12px; color: var(--ink-3);
}
.ntm-p:hover { border-color: var(--ink-3); }
.ntm-p.is-on { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); font-weight: 600; }
.ntm-p:disabled { opacity: .42; cursor: not-allowed; }

.ntm-vars { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--muted); }
.ntm-vars button {
  padding: 3px 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--card-2); color: var(--ink-3); font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ntm-vars button:hover { border-color: var(--ink-3); color: var(--ink); }

.ntm-pv { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card-2); }
.ntm-pv-h { margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.ntm-pv-t { margin-bottom: 4px; font-size: 12.5px; font-weight: 650; }
.ntm-pv-b { font-size: 12px; color: var(--ink-2); line-height: 1.8; overflow-wrap: anywhere; }

/* 系统默认文案（只读）：模板留空时发的就是这段，别让人对着空框猜 */
.ntm-def {
  margin-top: 4px; padding: 10px 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--ink-3);
  border-radius: var(--r-sm); background: var(--card-2);
}
.ntm-def-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ntm-def-h span { font-size: 11.5px; font-weight: 650; color: var(--ink); }
.ntm-def-h em { font-style: normal; font-size: 11px; color: var(--muted); }
.ntm-def-title { margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ntm-def-b {
  margin: 0; max-height: 240px; overflow: auto;
  font-family: inherit; font-size: 12px; line-height: 1.85; color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
}

.ntm-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
}
.ntm-foot-meta { font-size: 11.5px; color: var(--muted); }

/* 通知管理 · 响应式（放最后，压过上面的默认列宽 / max-height） */
@media (max-width: 1240px) { .ntm-wrap { grid-template-columns: 250px minmax(0, 1fr); } }
@media (max-width: 1020px) {
  .ntm-wrap { grid-template-columns: minmax(0, 1fr); }
  .ntm-side { position: static; max-height: 300px; }
}

/* ============================================================================
   SOP 模板配置（入职 / 离职共用）—— 左侧模板列表 + 右侧条目清单
   2026-11 SOP 重做：不再是「一个链接」，而是可配字段的操作清单模板
   ========================================================================== */

.stpl-wrap {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.stpl-side {
  position: sticky;
  top: 0;
  padding: 14px 13px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--card);
}

.stpl-list { max-height: 62vh; overflow: auto; padding-right: 2px; }

/* 版本条：V1 / V2 …，同一个类型只能有一个「启用中」（用户口径 2026-11-12） */
.stpl-vers {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 0 10px; border-bottom: 1px solid var(--line-2);
}
.stpl-vpill {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card);
  color: var(--ink-2); font-size: 12px; font-weight: 650; cursor: pointer;
}
.stpl-vpill em { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--muted-2); }
.stpl-vpill:hover { border-color: var(--ink-3); }
.stpl-vpill.is-active { border-color: var(--g, var(--ink)); box-shadow: inset 0 0 0 1px var(--g, var(--ink)); }
.stpl-vpill.is-on { background: var(--mint-soft); border-color: #b9e4d2; color: #2f7a5c; }
.stpl-vpill.is-on em { color: #4a8f71; }
.stpl-vpill.is-on.is-active { box-shadow: inset 0 0 0 1px #2f7a5c; }
/* 版本条右侧的操作（启用 / 添加条目 / 删除 / 锁定提示） */
.stpl-vers-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.stpl-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  margin-bottom: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.stpl-item:hover { border-color: color-mix(in srgb, var(--g, var(--ink-3)) 40%, var(--line-2)); background: var(--card-2); }
/* 选中态用这个类型自己的主题色（2026-11-22 用户口径：「每个 SOP 的主题色，框线颜色和里面这里的颜色
   要对得上，而不是三个类型的表都是黑色的选中外框」）—— --g 与右侧条目表的分组横带同源 */
.stpl-item.active {
  border-color: var(--g, var(--ink));
  box-shadow: inset 3px 0 0 var(--g, var(--ink));
  background: var(--g-soft2, var(--card-2));
}
.stpl-item.active .stpl-item-name { color: color-mix(in srgb, var(--g, var(--ink)) 55%, var(--ink)); }
/* V 号徽标也跟类型主题色：三个类型不选中时也能一眼按颜色分开（2026-11-22） */
.stpl-item .stpl-ver,
.stpl-main .stpl-ver-lg {
  border-color: color-mix(in srgb, var(--g, var(--line-2)) 42%, #fff);
  background: var(--g-soft, var(--card-2));
  color: color-mix(in srgb, var(--g, var(--ink-3)) 72%, #000);
}
.stpl-item .stpl-ver.is-latest,
.stpl-main .stpl-ver-lg.is-latest {
  background: var(--g, var(--ink)); border-color: var(--g, var(--ink)); color: #fff;
}
.stpl-item strong { font-size: 12.5px; font-weight: 650; line-height: 1.4; }

/* 版本要显眼（用户口径 2026-11-12）：V 号做成实心徽标，最新那版用深色 + 「最新」标签 */
.stpl-item-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.stpl-ver {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 20px; padding: 0 7px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink-3);
  font-family: var(--f-num); font-size: 11.5px; font-weight: 750; letter-spacing: .2px;
}
.stpl-ver.is-latest { background: var(--ink); border-color: var(--ink); color: #fff; }
.stpl-ver-lg { min-width: 42px; height: 24px; font-size: 13px; border-radius: 7px; }
.stpl-new {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--mint-soft, #dff3ea); color: #2f7f5f;
  font-size: 11px; font-weight: 650;
}
.stpl-item-name { font-size: 12.5px; font-weight: 650; line-height: 1.4; color: var(--ink); }
.stpl-item-meta { margin-top: 3px; font-size: 11px; color: var(--muted); }

.stpl-tip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

.stpl-main {
  min-height: 260px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--card);
  /* 右栏跟着类型的主题色走（--g 由 paintMain 写在元素上），框淡、里面的分组横带浓 */
  border-color: color-mix(in srgb, var(--g, var(--line-2)) 26%, var(--line-2));
}

.stpl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--g, var(--line)) 20%, var(--line));
}

/* 条目清单改成表格（用户口径 2026-11-12：别放一堆卡片，用表格展示）
   阶段用和「一人三张表」同一套彩色横带（.sop-group / .sop-sbadge），两个页面看的是同一套语言 */
.stpl-table-wrap { margin-top: 2px; }
.stpl-table { margin: 0; }
.stpl-table th {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
  background: var(--card-2); border-bottom: 1px solid var(--line-2);
  padding: 8px 6px; text-align: left;
}
.stpl-table td { padding: 8px 6px; vertical-align: top; border-bottom: 1px solid var(--line); }
.stpl-table tbody tr:last-child td { border-bottom: 0; }
.stpl-table tbody tr:not(.sop-group):hover td { background: #fcfaf7; }
.stpl-c-no { width: 30px; }
.stpl-c-task { min-width: 150px; max-width: 260px; }
.stpl-c-detail { min-width: 120px; max-width: 240px; }
.stpl-c-actor { width: 114px; }
.stpl-c-fill { width: 104px; }
.stpl-c-day { width: 66px; white-space: nowrap; }
.stpl-c-act { width: 104px; white-space: nowrap; text-align: right; }
.stpl-task { font-size: 13px; font-weight: 550; line-height: 1.45; }
.stpl-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.stpl-tag {
  padding: 0 5px; border-radius: 4px; white-space: nowrap;
  font-size: 10.5px; line-height: 15px;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-3);
}
.stpl-tag.is-warn { background: #fdf4cf; border-color: #e9d68a; color: #8a6d1a; }
.stpl-tag.is-lock { background: #f2f3f5; border-color: var(--line-2); color: var(--ink-3); }
/* 说明最多两行，超出省略（完整内容在 title 里） */
.stpl-detail {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
.stpl-opts { margin-top: 3px; }

/* ---------------- 字段配置面板（2026-11-12：像多维表格那样自己定字段名和类型） ---------------- */
.stpl-fpanel {
  margin: 8px 0 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--card);
}
.stpl-fpanel.is-open { background: var(--card-2); }
.stpl-fpanel-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit; border-radius: 10px;
}
.stpl-fpanel-head:hover { background: var(--card-2); }
.stpl-fpanel-title { font-size: 13px; font-weight: 600; }
.stpl-fpanel-head .sop-foldhint { margin-left: auto; }
.stpl-flist { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.stpl-frow {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
}
.stpl-frow.is-sys { border-color: var(--line-2); }
.stpl-fno {
  width: 20px; flex: none; text-align: center; font-size: 11px; color: var(--ink-3);
  font-family: var(--f-num);
}
/* 提权压过 .frow input 的通配（见 MEMORY：行内小控件必须 .xxx input 提权） */
.stpl-frow input.stpl-fname {
  flex: 1 1 160px; min-width: 120px; height: 28px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  font-size: 13px; font-weight: 550; color: var(--ink);
}
.stpl-frow input.stpl-fname:hover { border-color: var(--line-2); background: var(--card-2); }
.stpl-frow input.stpl-fname:focus { border-color: var(--accent, var(--blue)); background: #fff; outline: none; }
.stpl-frow select.stpl-ftype {
  flex: none; width: 108px; height: 28px; padding: 0 6px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 12px; color: var(--ink-2);
}
.stpl-fmeta { display: flex; align-items: center; gap: 6px; flex: none; }
.stpl-facts { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
.stpl-facts .btn { padding: 0 5px; }
/* 启用中的版本：字段只读，面板底部给一个「去新建可编辑版本」的出口 */
.stpl-fpanel.is-locked .stpl-frow { background: var(--card); }
.stpl-fpanel.is-locked .stpl-flist { padding-top: 2px; }
.stpl-flock {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 10px;
  border: 1px dashed var(--line-2); border-radius: 8px; background: var(--card);
}

/* 动态列：内容列统一一个样式，宽度由字段里的 width 或内容决定 */
.stpl-cv { max-width: 220px; vertical-align: top; font-size: 12.5px; color: var(--ink-2); }
.stpl-cv-image { width: 46px; }
.sop-sum { display: inline-block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sop-file { font-size: 12.5px; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* 一个阶段一组：组头浅底 + 条目逐行，行间用发丝线分隔 */
.stpl-stage { margin-bottom: 14px; }
.stpl-stage:last-child { margin-bottom: 0; }

.stpl-stage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 4px;
  border-radius: var(--r-sm);
  background: var(--card-2);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
}

.stpl-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}
.stpl-row:last-child { border-bottom: 0; }
.stpl-row:hover { background: #fcfaf7; }
.stpl-row-main { min-width: 0; flex: 1 1 auto; }
.stpl-row-main strong { font-size: 13px; font-weight: 600; }

/* ============================================================================
   晋升与调薪 —— 职级变动 / 薪资变动两页签 + 申请详情
   ========================================================================== */

/* 「调薪后月薪」是算出来的，不是输入框；做成输入框的样子但不给光标 */
.field .prm-out {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--card-2);
  font-family: var(--f-num);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prm-reasons { display: flex; flex-direction: column; gap: 10px; }
.prm-reason {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card-2);
}
.prm-reason-h { margin-bottom: 5px; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }
.prm-reason-b { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }

/* 响应式放最后，压过上面的默认列宽 */
@media (max-width: 1240px) {
  .stpl-wrap { grid-template-columns: 232px minmax(0, 1fr); }
}
@media (max-width: 1020px) {
  .stpl-wrap { grid-template-columns: minmax(0, 1fr); }
  .stpl-side { position: static; }
  .stpl-list { max-height: 240px; }
}

/* 离职办理 · SOP 页签下面那块「交接文档」配置（与操作清单模板分开） */
.ob-cfg-sec { margin-top: 16px; }
.ob-cfg-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ob-cfg-h strong { font-size: 13px; font-weight: 650; }
.ob-cfg-h em { font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ============================================================================
   SOP 操作列表（HR 视角 sop-person / 员工视角 my-sop）
   ========================================================================== */

/* ---- HR 视角 ---- */
.sop-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}
.sop-hero-l { display: flex; align-items: center; gap: 12px; min-width: 0; }

.sop-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.sop-kpi {
  padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}
.sop-kpi b { font-family: var(--f-num); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.sop-kpi span { margin-left: 2px; font-size: 11.5px; color: var(--muted); }
.sop-kpi em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.sop-kpi.ok b { color: #1f6b52; }
.sop-kpi.warn { border-color: rgba(168, 57, 47, .28); background: var(--red-soft); }
.sop-kpi.warn b { color: #a8392f; }

.sop-prog { padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); }

.sop-stage { margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.sop-stage-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 8px 14px; background: var(--card-2); border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.sop-stage-head em { font-style: normal; font-weight: 400; margin-left: 6px; }

.sop-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sop-row:last-child { border-bottom: 0; }
.sop-row:hover { background: #fcfaf7; }
.sop-row.is-done { background: #fcfaf7; }
.sop-row.is-done strong { color: var(--ink-3); font-weight: 500; }
.sop-row-main { min-width: 0; flex: 1 1 auto; }
.sop-row-main strong { font-size: 13px; font-weight: 600; }
.sop-row-act { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }

/* 已填写内容的展示块 */
.sop-val {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  margin-top: 5px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--card-2);
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
}
.sop-val em { font-style: normal; font-size: 11px; color: var(--muted); flex: none; }
.sop-val b { font-weight: 500; overflow-wrap: anywhere; }

/* 附件上传 */
.sop-up { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sop-up .hint { flex-basis: 100%; font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ---- 员工视角 ---- */
.mysop-lead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-bottom: 12px;
  border: 1px dashed var(--line-2); border-radius: var(--r-md); background: var(--card-2);
}
.mysop-lead-t { font-size: 13px; font-weight: 600; }

.mysop-card { margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.mysop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mysop-head h3 { margin: 0; font-size: 15px; }
.mysop-prog { min-width: 140px; display: flex; flex-direction: column; gap: 4px; }

.mysop-stage-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 7px 16px; background: var(--card-2); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 650; color: var(--ink-2);
}

.mysop-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.mysop-row:last-child { border-bottom: 0; }
.mysop-row:hover { background: #fcfaf7; }
.mysop-row.is-done strong { color: var(--ink-3); font-weight: 500; }
.mysop-row-main { min-width: 0; flex: 1 1 auto; }
.mysop-row-main strong { font-size: 13px; font-weight: 600; }
.mysop-row-act { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 1020px) {
  .sop-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 入职「文档与考核群」列表里的 SOP 清单进度格（2026-11 SOP 重做） */
.docs-sop {
  display: flex; align-items: center; gap: 7px; width: 100%; max-width: 170px;
  padding: 3px 6px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; text-align: left;
}
.docs-sop:hover { border-color: var(--line-2); background: var(--card-2); }
.docs-sop-n { font-family: var(--f-num); font-size: 12.5px; font-weight: 650; flex: none; }
.docs-sop-bar { flex: 1 1 auto; height: 5px; min-width: 40px; border-radius: 999px; background: var(--line); overflow: hidden; }
.docs-sop-bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }

/* ============================== 座位表（2026-11-10 进系统，Excel 式） ============================== */

.seat-grid { border-collapse: collapse; table-layout: fixed; user-select: none; background: var(--card, #fff); }
.seat-grid .seat-head { border: 1px solid var(--line-2); background: var(--card-2, #f6f4f1); color: var(--ink-3); font-size: 11px; font-weight: 500; text-align: center; padding: 3px 0; }
.seat-grid td.seat-cell { border: 1px solid var(--line-2); height: 38px; padding: 0 8px; font-size: 13px; text-align: center; vertical-align: middle; white-space: pre-wrap; word-break: break-all; }
.seat-grid td.seat-cell.seat-sel { outline: 2px solid #3b82f6; outline-offset: -2px; }
.seat-edit-input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; text-align: center; font: inherit; }
.seat-swatch { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; transition: transform .12s; }
.seat-swatch:hover { transform: scale(1.15); }
.seat-view-wrap { background: var(--card, #fff); border-radius: 10px; overflow: auto; }
.ask-label { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.ask-input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; font-size: 13.5px; color: var(--ink); font-family: inherit;
}
.ask-input:focus { outline: none; border-color: var(--ink-3); }

/* 只读查看器：列宽保持 118px，超宽横向滚动。不写 max-content 会被全局 table{width:100%} 按比例压窄，名字断行断字 */
.seat-view-wrap .seat-grid { width: max-content; }
.seat-view-wrap .seat-grid td.seat-cell { word-break: keep-all; overflow-wrap: break-word; }

/* ---------- 座位表 2.0（2026-11-14 按用户反馈重做：配色下拉 / 选人 / 缩放 / 图例） ---------- */

.seat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.seat-tools { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); padding: 8px 10px; margin-bottom: 10px; position: relative; }
.seat-tools-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seat-tools-sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 4px; }

.seat-fill-btn { display: inline-flex; align-items: center; gap: 7px; }
.seat-fill-dot { width: 14px; height: 14px; border-radius: 5px; border: 1px solid var(--line-2); flex: none; }
.seat-fill-dot.is-empty { background: repeating-linear-gradient(45deg, #fff, #fff 3px, #e9e6e1 3px, #e9e6e1 6px); }

/* 配色面板：浮在表格上方，不把整张表顶下去 —— 改色时右边图例会实时跟着变 */
.seat-colors {
  /* 右边留出图例那一栏，改色时能从图例上直接看到效果 */
  position: absolute; z-index: 40; left: 8px; right: 200px; top: calc(100% - 2px);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 20px 48px rgba(24, 20, 14, .14); padding: 10px 14px 8px;
  max-height: 60vh; overflow: auto;
}
.seat-colors-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.seat-colors-title { font-size: 12.5px; font-weight: 600; color: var(--ink); }
/* 部门配色：一次铺开全部部门，每行「部门 · 人数 · 色块」，不再一个个切换（2026-11-16） */
.seat-dept-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  /* 整块跟着外层面板一起滚，不要套两层滚动条 */
  gap: 1px 14px; padding-right: 4px;
}
.seat-dept-cell { display: flex; align-items: center; gap: 7px; padding: 2px 5px; border-radius: 7px; min-width: 0; }
.seat-dept-cell:hover { background: var(--card-2, #f6f4f1); }
.seat-dept-name { font-size: 12.5px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-dept-cell em { font-style: normal; font-size: 11px; color: var(--muted-2); flex: none; margin-left: auto; }
.seat-dept-inp {
  width: 22px; height: 22px; padding: 0; border: 1px solid var(--line-2);
  border-radius: 6px; background: #fff; cursor: pointer; flex: none;
}
.seat-dept-cell.is-off .seat-dept-name { color: var(--muted); }
.seat-dept-cell.is-off .seat-dept-inp { border-style: dashed; opacity: .5; }
.seat-dept-x {
  border: 0; background: transparent; color: var(--muted-2); font-size: 13px; line-height: 1;
  padding: 0 1px; cursor: pointer; flex: none; visibility: hidden;
}
.seat-dept-cell:hover .seat-dept-x { visibility: visible; }
.seat-dept-x:hover { color: var(--ink); }
.seat-pos-box { margin-top: 8px; border-top: 1px dashed var(--line-2); padding-top: 7px; }
.seat-pos-box > summary { font-size: 12px; color: var(--muted); cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.seat-pos-box > summary em { font-style: normal; }
.seat-pos-box[open] > summary { margin-bottom: 6px; }
.seat-dept-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card);
  font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.seat-dept-btn:hover { border-color: var(--ink-3); }
.seat-color-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.seat-color-inp {
  width: 30px; height: 26px; padding: 0; border: 1px solid var(--line-2);
  border-radius: 7px; background: #fff; cursor: pointer; flex: none;
}
.seat-swatches { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.seat-color-list { display: flex; flex-direction: column; gap: 2px; max-height: 232px; overflow: auto; padding-right: 4px; }
.seat-color-row {
  display: grid; grid-template-columns: minmax(110px, 250px) 32px auto;
  justify-content: start; align-items: center; gap: 10px; padding: 3px 2px;
}
.seat-color-name { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; min-width: 0; }
.seat-color-name em { font-style: normal; font-size: 11px; color: var(--muted-2); flex: none; }
.seat-color-none { border: 0; background: transparent; font-size: 11.5px; color: var(--muted-2); cursor: pointer; padding: 0; }
.seat-color-none:hover { color: var(--ink); }

/* 表格 + 右侧图例 */
.seat-stage, .seat-view-pane { display: grid; grid-template-columns: minmax(0, 1fr) 188px; gap: 12px; }
.seat-stage .seat-view-wrap, .seat-view-pane .seat-view-wrap {
  /* 缩到整表可见后，表格比容器小：用 margin:auto 居中；内容比容器大时 auto 会自动失效，不会裁掉左上角 */
  display: flex;
  background: var(--card-2, #f6f4f1); padding: 8px;
  /* 高度给足：默认「适应窗口」要一眼看到整张表，窗口矮了就只能缩到很小 */
  height: clamp(320px, calc(var(--vh100) - 320px), 820px); border-radius: 10px; overflow: auto;
}
.seat-zoom-box { position: relative; margin: auto; }
.seat-zoom { transform-origin: top left; display: inline-block; }
.seat-legend {
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card);
  padding: 10px 12px; overflow: auto; max-height: clamp(320px, calc(var(--vh100) - 320px), 820px);
}
.seat-legend h4 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.seat-legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.seat-legend-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.seat-legend-list i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .08); flex: none; }
.seat-legend-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-legend-list em { font-style: normal; font-size: 11px; color: var(--muted-2); flex: none; }
.seat-legend-list li.is-off { opacity: .55; }
.seat-legend-list li.is-off span { color: var(--muted); }
.seat-legend-sep {
  margin: 9px 0 6px; padding-top: 8px; border-top: 1px dashed var(--line-2);
  font-size: 11px; color: var(--muted-2); letter-spacing: .02em;
}
.seat-legend-empty { font-size: 12px; color: var(--muted); line-height: 1.7; }
.seat-legend-more { margin-top: 8px; font-size: 11px; color: var(--muted-2); }
.seat-legend-empty span { font-size: 11px; color: var(--muted-2); }

.seat-view-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

/* 缩放控件 */
.seat-zoom-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); overflow: hidden; flex: none; }
.seat-zoom-btn { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-2); }
.seat-zoom-btn:hover { background: var(--card-2); }
.seat-zoom-val { min-width: 58px; height: 28px; border: 0; background: transparent; cursor: pointer; font-size: 12px; color: var(--ink-2); }
.seat-zoom-val:hover { background: var(--card-2); }
.seat-zoom-btn + .seat-zoom-val { border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }

/* 选了人的格子：部门小字 + 姓名 */
.seat-who { display: flex; flex-direction: column; align-items: center; line-height: 1.22; }
.seat-who em { font-style: normal; font-size: 10px; color: var(--muted); }
.seat-who b { font-weight: 600; font-size: 12.5px; }

/* 序列配色选择（2026-11-18 新增序列） */
.cf-swatch {
  min-width: 46px; height: 30px; padding: 0 10px; white-space: nowrap;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--ink-2); cursor: pointer;
}
.cf-swatch.is-on { box-shadow: 0 0 0 2px var(--ink) inset; font-weight: 600; color: var(--ink); }

.seat-cell-editor { display: flex; gap: 8px; align-items: center; }
.seat-cell-editor .ask-input { flex: 1 1 auto; }
.seat-picked { margin-top: 8px; line-height: 1.6; }

/* 新增文字时的部门/分组候选（2026-11-18）：搜到谁点谁，文字和颜色一起落 */
.seat-sugg {
  margin-top: 8px; max-height: 208px; overflow: auto;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
  padding: 4px;
}
.seat-sugg-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: var(--r-sm); background: none;
  font: inherit; font-size: 12.5px; color: inherit; text-align: left; cursor: pointer;
}
.seat-sugg-row:hover, .seat-sugg-row:focus-visible { background: var(--card-2); outline: none; }
.seat-sugg-row i {
  width: 14px; height: 14px; border-radius: 4px; flex: none;
  border: 1px solid rgba(0, 0, 0, .08);
}
.seat-sugg-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-sugg-row em { font-style: normal; font-size: 11px; color: var(--muted-2); flex: none; }

@media (max-width: 980px) {
  .seat-stage, .seat-view-pane { grid-template-columns: minmax(0, 1fr); }
  .seat-colors { right: 8px; }
  .seat-legend { max-height: 168px; }
  .seat-stage .seat-view-wrap, .seat-view-pane .seat-view-wrap { height: clamp(280px, calc(var(--vh100) - 300px), 560px); }
}

/* ============================== 一人三张表（PRD V2.0 / 2026-11-11） ============================== */
/* 入职：操作 SOP / 加好友与加群 / 试用期考核；离职：操作 SOP / 交接清单 / 离职后事项。
   表格是真表格：每类信息一列，能筛能分组能批量；不是卡片流换皮。 */

.sop-tbl { display: flex; flex-direction: column; gap: 10px; }

.sop-tbl-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
/* 页签：三张表等宽并排，各自一个色相（用户口径 2026-11-12：切换要显眼、框要一样大） */
.sop-tbl-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; flex: 1 1 340px; }
.sop-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-width: 0;
  padding: 8px 13px; border: 1px solid var(--tab, var(--line-2)); border-radius: var(--r-sm);
  background: var(--tab-soft, var(--card)); color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.sop-tab em {
  font-style: normal; font-family: var(--f-num); font-size: 11.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .78);
  color: var(--tab, var(--ink-3)); flex: none;
}
.sop-tab:hover { border-color: var(--tab, var(--ink-3)); }
.sop-tab.is-on {
  background: var(--tab, var(--ink)); border-color: var(--tab, var(--ink)); color: #fff;
  box-shadow: 0 4px 12px -6px var(--tab, rgba(23, 23, 23, .4));
}
.sop-tab.is-on em { background: rgba(255, 255, 255, .26); color: #fff; }

.sop-tbl-tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--card-2);
}
.sop-tbl-tools .searchbox { min-width: 200px; flex: 0 1 260px; }
.sop-sel {
  height: 30px; padding: 0 8px; font-size: 12.5px; font-family: inherit;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink); cursor: pointer;
}
.sop-check {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--ink-3); cursor: pointer; user-select: none;
}

.sop-tbl-wrap { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); }
/* 表宽至少 1200px + fixed 布局：
   auto 布局下各列按内容等比压缩，详情列的 200px 会被压到两位数（实测 77px，只够 4 个字）。
   fixed 按 th 的 width 分配，详情列才拿得到 200px；宽度不够就横向滚（外层 .table-wrap 已支持）。 */
.sop-tbl-table { margin: 0; table-layout: fixed; min-width: 1200px; }
.sop-tbl-table th {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
  background: var(--card-2); border-bottom: 1px solid var(--line-2);
  padding: 8px 5px; text-align: left;
}
.sop-tbl-table td { padding: 8px 5px; vertical-align: top; border-bottom: 1px solid var(--line); }
.sop-tbl-table tr:last-child td { border-bottom: 0; }
.sop-c-chk { width: 24px; }
.sop-c-no { width: 28px; }
/* 前段让位给后段（用户口径 2026-11-12：任务详情、任务类型往前挪，后面完成时间/操作人/备注太窄） */
.sop-c-task { min-width: 120px; max-width: 260px; }
/* 任务详情：格子里直接显示内容（原来只有 46px 放一个「查看」按钮，现在要装文字） */
.sop-c-detail { width: 200px; max-width: 260px; white-space: normal; }
.sop-c-type { width: 72px; max-width: 92px; white-space: nowrap; }
.sop-c-type .tiny { display: inline-block; line-height: 1.5; }
.sop-c-owner { width: 72px; white-space: nowrap; }
.sop-c-status { width: 76px; white-space: nowrap; }
.sop-c-when { white-space: nowrap; width: 86px; }
.sop-c-done { width: 92px; }
.sop-c-rate { width: 56px; }
.sop-c-actor { width: 92px; }
.sop-c-remark { min-width: 150px; max-width: 240px; }
/* 模板里自定义的内容列：宽度给个下限，否则空值列会被压成一条线 */
.sop-cv { min-width: 92px; max-width: 220px; font-size: 12.5px; color: var(--ink-2); }
.sop-c-act { width: 76px; white-space: nowrap; text-align: right; }
/* 未完成的行有「完成 + 编辑」两个按钮，默认内边距会把操作列撑到 123px、整表溢出 → 收窄 */
.sop-c-act .btn, .stpl-c-act .btn { padding: 0 6px; }
.sop-actor { font-size: 12.5px; font-weight: 550; }
/* 完成时间两行：上面日期、下面时分（用户口径 2026-11-12：要精确到分钟，但别把列撑宽） */
.sop-dt { display: inline-flex; flex-direction: column; line-height: 1.35; }
.sop-dt i { font-style: normal; font-size: 11px; color: var(--ink-3); font-family: var(--f-num); }
/* 非编号分组的副标题（如「个微加个微 · 入职第一天」里的后一段） */
.sop-gsub { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sop-task { font-size: 13px; font-weight: 550; line-height: 1.45; }
/* 任务类型并入任务单元格（用户口径 2026-11-12：任务详情、任务类型往前挪，别单开窄列） */
.sop-type-tag {
  display: inline-block; vertical-align: 1px; margin-left: 2px;
  padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; line-height: 15px; font-weight: 500; white-space: nowrap;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-3);
}
.sop-linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12px; color: var(--blue); text-decoration: underline; text-underline-offset: 2px;
}
.sop-st { border: 0; background: none; padding: 0; cursor: pointer; }
/* 二维码列（好友 / 群二维码，2026-11-12）：一格里既要能扫，也要能换图 */
.sop-c-qr { width: 68px; white-space: nowrap; }
.sop-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.sop-qr-thumb {
  border: 1px solid var(--line-2); background: #fff; border-radius: 6px;
  padding: 2px; cursor: zoom-in; line-height: 0;
}
.sop-qr-thumb img { width: 54px; height: 54px; object-fit: contain; display: block; }
.sop-qr-acts { display: flex; gap: 6px; }
.sop-qr-acts .sop-linkbtn { font-size: 11.5px; }
.sop-qr-add {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 54px; height: 54px; border-radius: 6px; cursor: pointer;
  border: 1px dashed var(--line-3, var(--line-2)); background: var(--card);
  font-size: 10.5px; color: var(--ink-3); line-height: 1.2;
}
.sop-qr-add:hover { border-color: var(--blue); color: var(--blue); background: rgba(59, 130, 246, .06); }
/* 模板条目上的小缩略图（识别「这条有没有配二维码」即可，不占列） */
.stpl-qr {
  border: 1px solid var(--line-2); background: #fff; border-radius: 5px;
  padding: 1px; margin-left: 5px; cursor: zoom-in; line-height: 0; vertical-align: -4px;
}
.stpl-qr img { width: 26px; height: 26px; object-fit: contain; display: block; }
/* 条目弹窗里的二维码上传控件 */
.qr-pick { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.qr-pick-box {
  min-height: 56px; min-width: 56px; display: flex; align-items: center; justify-content: center;
  padding: 4px; border: 1px dashed var(--line-3, var(--line-2)); border-radius: 8px; background: var(--card-2);
}
.qr-pick-box img { width: 96px; height: 96px; object-fit: contain; display: block; border-radius: 4px; }
.sop-mig {
  display: inline-block; margin-left: 4px; padding: 0 4px;
  font-size: 10.5px; line-height: 15px; border-radius: 3px;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--card-2);
}
.sop-over { font-size: 10.5px; color: var(--red); font-weight: 600; }
.sop-tbl-table tr.is-over td { background: rgba(220, 38, 38, .035); }
.sop-tbl-table tr.is-closed .sop-task { color: var(--ink-3); }

/* 步骤组（S1…S9）：一条彩色横带 + 大号 S 编号 + 明确的「收起 / 展开」（用户口径 2026-11-12） */
.sop-group td {
  padding: 0 !important;
  background: var(--g-soft, var(--card-2)) !important;
  border-bottom: 1px solid var(--line-2);
  box-shadow: inset 4px 0 0 var(--g, var(--line-2));
}
.sop-group-in {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  padding: 7px 10px 7px 12px;
}
.sop-group-btn {
  display: inline-flex; align-items: center; gap: 9px; min-width: 0;
  border: 0; background: none; cursor: pointer; padding: 0;
  font-size: 12.5px; color: var(--ink);
}
.sop-sbadge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 22px; padding: 0 7px; border-radius: 6px;
  background: var(--g, var(--ink)); color: #fff;
  font-family: var(--f-num); font-size: 12px; font-weight: 750; letter-spacing: .3px;
}
.sop-glabel { font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.sop-gprog {
  font-family: var(--f-num); font-size: 11.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--ink-2);
}
/* 「收起 / 展开」做成有颜色的小按钮，箭头放在胶囊里面才不会被看成装饰点（用户口径 2026-11-12） */
.sop-foldhint {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--g, var(--ink-2));
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--g, var(--line-2)); background: #fff;
  transition: background .12s, color .12s;
}
.sop-group-btn:hover .sop-foldhint { background: var(--g, var(--ink)); color: #fff; }
.sop-caret { font-style: normal; font-size: 11px; line-height: 1; color: inherit; }
.sop-group-btn:hover .sop-caret { color: #fff; }

/* 任务详情格子：两行封顶 + 省略号，双击弹窗看全文（2026-11-16 用户口径） */
.sop-dcell {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; cursor: zoom-in;
  font-size: 12px; line-height: 1.6; color: var(--ink-3);
  white-space: pre-wrap; word-break: break-word;
}
.sop-dcell:hover { color: var(--ink); }

/* 双击任务详情弹出来的全文（原来的「表格里插一行」已废弃，这里只剩弹窗一个用处） */
.sop-detail {
  font-size: 13px; line-height: 1.85; color: var(--ink-2, #3f3f46);
  white-space: pre-wrap; word-break: break-word; max-width: 860px;
}
.sop-detail b { color: var(--ink); font-weight: 650; }

.sop-tbl-foot { line-height: 1.6; }

@media (max-width: 900px) {
  /* 窄屏按语义列隐藏，不按序号（列数随表型变化，序号容易错位） */
  .sop-tbl-table .sop-c-detail,
  .sop-tbl-table .sop-c-type,
  .sop-tbl-table .sop-c-actor { display: none; }
}

/* 入职 SOP 页的头像：点一下进员工档案（2026-11-11 口径：这页只放 SOP，个人信息点头像进去看） */
.onb-avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; line-height: 0; }
.onb-avatar-btn:hover { outline: 2px solid var(--line-2); outline-offset: 2px; }

/* ===== 入职 SOP（2026-11-12）：员工本人视角的头部 ===== */
.sop-self-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.sop-self-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.sop-self-meta b { color: var(--ink); font-weight: 650; font-family: var(--f-num); }
.sop-self-tip { margin-bottom: 12px; line-height: 1.6; }
/* 入职 SOP 列表：招聘 HR 名字不许折行（「Gina（COO)」挤成两行很难看） */
.sop-col-who { white-space: nowrap; }

/* ===== 新建考核群：默认成员芯片（2026-11-12） ===== */
.gp-preset {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 9px 5px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); cursor: pointer; font-size: 12.5px; color: var(--ink);
}
.gp-preset:hover { border-color: var(--line-2); background: var(--card-2); }
.gp-preset.on { border-color: var(--ink); }
.gp-preset.off { opacity: .55; cursor: not-allowed; }
.gp-preset-t { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.gp-preset-t b { font-weight: 600; }
.gp-preset-t em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.gp-preset-x { font-size: 12px; color: var(--muted-2); }
.gp-preset.on .gp-preset-x { color: var(--red); }

/* ============================== 公司文件库（全员必看 + 制度与手册管理） 2026-11-13 ============================== */

/* 展示页两栏卡片（新人入门）：上company intro，中org map，下座位表 */
.cf-grid { display: flex; flex-direction: column; gap: 14px; }
.cf-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 14px);
  padding: 16px 18px;
}
.cf-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.cf-card-head h3 { margin: 0; font-size: 14.5px; }
.cf-intro-tbl td { padding: 7px 6px; border-top: 1px solid var(--line); }
.cf-intro-tbl tr:first-child td { border-top: 0; }

/* 「文件内容」格里的按钮组 */
.cf-file-cell { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* 公司规章制度三栏表：名称列别被长链接撑爆 */
.cf-tbl td { vertical-align: top; }
.cf-tbl td a.tiny { word-break: break-all; }

/* ============================================================================
   公司规章制度：左列表 + 右预览（2026-11-14）
   —— 用户要的是「进来就能看」，不是「先点开一层弹窗」。所以整页做成一屏两栏：
      左边只放文件名（点谁右边是谁），右边页内直接渲染，右上角三个动作，
      培训视频用一条窄条压在预览区顶边，点开是浮在右上角的播放器（不重排版面）。
   ========================================================================== */
.cf-split {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 14px;
  /* 一屏装下：.view 本身就是「视口 − 顶栏」的弹性高度，吃满它就不会出现页面滚动条。
     （min-height 只是兜底：万一某个浏览器不认 flex 子项的百分比高度，也不至于塌成一条） */
  height: 100%;
  min-height: min(560px, calc(var(--vh100) - 174px));
}

/* —— 左：文件列表 —— */
.cf-list {
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  background: var(--card); overflow: hidden;
}
.cf-list-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  flex: none; padding: 14px 16px 10px; border-bottom: 1px solid var(--line);
}
.cf-list-t { font-size: 12px; font-weight: 650; color: var(--ink-3); letter-spacing: 0.02em; }
.cf-list-n { font-size: 11.5px; color: var(--muted); }
.cf-list-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px; outline: none;
}
.cf-list-body:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-soft); border-radius: var(--r-md); }

/* 每一份文件一个小卡片框（用户口径 2026-11-14：「每个文件都有个框框起来，而不是只显示文字；
   每个框的大小要保持一致，如果文件名称太长了，就用三个点省略号表示」）
   → 定高 64px + 名称单行省略；名称再多字也不会把框撑高，一列看下来是齐的。 */
.cf-item {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; height: 64px; text-align: left;
  padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card); color: inherit;
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s;
}
.cf-item:hover { border-color: var(--ink-3); background: var(--card); }
.cf-item.is-on {
  background: var(--bg-2); border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.cf-item-t {
  display: block; width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.cf-item.is-on .cf-item-t { font-weight: 650; }
.cf-item-m { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; }

/* 类型徽标：中性色，只用来区分格式；有视频才点一抹柠檬 */
.cf-ext {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--card-2);
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.04em; color: var(--ink-3);
}
.cf-item.is-on .cf-ext { background: var(--card); }
.cf-ext.is-none { border-style: dashed; color: var(--muted-2); font-weight: 550; letter-spacing: 0; }
.cf-vtag {
  display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px;
  border-radius: 5px; background: var(--lemon-soft); color: #7d5b06;
  font-size: 10.5px; font-weight: 650;
}

/* —— 右：预览区 —— */
.cf-pane {
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  background: var(--card); overflow: hidden;
}
/* 右栏标题的左右留白 24px：18px 时标题几乎贴到卡片边框上，看着憋（2026-11-16 用户口径） */
.cf-head { display: flex; align-items: flex-start; gap: 16px; flex: none; padding: 16px 24px 13px; }
.cf-head-txt { flex: 1 1 auto; min-width: 0; }
.cf-title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.45; }
.cf-meta {
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
  margin-top: 5px; font-size: 11.5px; color: var(--muted);
}
.cf-meta-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-acts { display: flex; align-items: center; gap: 7px; flex: none; }
.cf-acts .btn { gap: 5px; }
.cf-acts .btn svg { flex: none; }

/* 培训视频窄条：40px，压在标题和预览之间；整条可点 */
.cf-vbar {
  display: flex; align-items: center; gap: 9px;
  flex: none; margin: 0 18px 10px; padding: 0 12px; height: 40px;
  border: 1px solid #f1e2a6; border-radius: var(--r-md);
  background: var(--lemon-soft); color: var(--ink-2);
  cursor: pointer; transition: border-color 0.14s, background 0.14s;
}
.cf-vbar:hover { border-color: var(--lemon); background: #fdf1bd; }
.cf-vbar-play {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 9px; padding-left: 2px;
}
.cf-vbar-t { font-size: 12px; font-weight: 650; color: var(--ink); flex: none; }
.cf-vbar-n {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: var(--ink-3);
}
.cf-vbar-go { flex: none; margin-left: auto; font-size: 11.5px; font-weight: 650; color: var(--ink-3); }

/* 预览舞台：占满剩余高度，内部自己滚 */
.cf-stage {
  position: relative; display: flex; flex: 1 1 auto; min-height: 0;
  padding: 0 24px 20px;
}
.cf-doc {
  flex: 1 1 auto; min-width: 0; height: 100%; max-height: none;
  border-radius: var(--r-md);
}
.cf-doc .doc-frame { height: 100%; border-radius: var(--r-md); }
.cf-doc .doc-html { min-height: 100%; }
.cf-doc .doc-fallback { display: grid; place-content: center; min-height: 100%; }
/* 「手机上可能看不全」那句是给窄屏的；桌面端把窗口拉大之后不该还挂着 */
@media (min-width: 861px) {
  .cf-doc .fp-note { display: none; }
}
.cf-doc .fp-img { height: 100%; display: grid; place-items: center; }
.cf-doc .fp-img img { max-height: 100%; }

/* 播放器浮层：右上角，浮在文档上；关掉就消失，不推动版面 */
.cf-vpop {
  position: absolute; top: 6px; right: 26px; z-index: 6;
  width: min(400px, 60%); overflow: hidden;
  border-radius: var(--r-md); background: #101010; box-shadow: var(--shadow-lg);
}
.cf-vpop-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px;
  background: rgba(23, 23, 23, 0.94); color: #fff; font-size: 11.5px;
}
.cf-vpop-head span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-vpop-x {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 14px; line-height: 1;
}
.cf-vpop-x:hover { background: rgba(255, 255, 255, 0.3); }
.cf-vpop video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

@media (max-width: 1180px) {
  .cf-split { grid-template-columns: 246px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  /* 窄屏改成上下：列表限制高度自己滚，预览占满剩下的 */
  .cf-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: auto; min-height: 0; }
  .cf-list-body { max-height: 176px; overflow-y: auto; }
  .cf-pane { min-height: 62vh; }
  .cf-vpop { right: 18px; width: calc(100% - 36px); }
}
@media (max-width: 760px) {
  .cf-head { flex-wrap: wrap; gap: 10px; }
  .cf-acts { width: 100%; }
  .cf-acts .btn { flex: 1 1 auto; }
}

/* ============================================================================
   团队介绍（2026-11-14）：横幅 + 图文模块 + 负责人卡 + 部门成员表
   —— 软性内容，照钉钉文档的排法；颜色只用来分部门，不拿来做装饰。
   ========================================================================== */

/* 顶部四个页签 */
/* 三栏页签吸顶（用户口径 2026-11-16）：往下翻公司介绍 / 成员介绍时这排要一直在。
   负的左右外边距 = .view 的左右内边距，让底色和分割线铺满整宽 —— 不然内容会从两侧
   内边距里露出来，看着像两条缝。 */
.ti-tabs {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 calc(-1 * var(--view-px, 26px)) 16px;
  padding: 0 var(--view-px, 26px) 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* 滚动容器的 padding 区域也会露出内容（sticky 只能停在内容框顶边），
   用一块同色遮片补上它上方那 22px（= .view 的 padding-top），吸顶时无缝。 */
.ti-tabs::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--view-py, 22px); background: var(--bg);
}
.ti-tab {
  height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  transition: 0.14s;
}
.ti-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.ti-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.ti-wrap { max-width: 1080px; margin: 0 auto; }

/* 大板块外框（2026-11-16 用户口径：「每个大板块外面都有一个浅浅的、细细的圆角外框把它框起来」）
   横幅区 / 每个图文模块 / 团队负责人 / 团队成员 各一个框；框内留 22~24px 呼吸，
   比内容里的卡片（部门表）再浅一档，只做「分块」，不抢内容。 */
.ti-card {
  margin-top: 18px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.ti-card:first-child { margin-top: 0; }
.ti-card > .ti-block, .ti-card > .ti-group { margin-top: 0; }

/* 横幅：图自己带字，所以正文压在下面而不是盖在图上 */
.ti-hero { border-radius: var(--r-card); overflow: hidden; background: var(--card-2); }
.ti-hero img { display: block; width: 100%; height: auto; }
.ti-title {
  margin: 26px 0 14px; text-align: center;
  font-size: 25px; font-weight: 700; letter-spacing: 0.02em;
}
.ti-desc { max-width: 840px; margin: 0 auto; }
.ti-desc p {
  font-size: 13.5px; line-height: 2; color: var(--ink-2);
  text-indent: 2em; margin: 0 0 8px;
}

/* 图文模块 */
.ti-block { margin: 30px auto 0; }
/* 加了外框的板块（2026-11-16）：间距交给 .ti-card，同级之间 18px 就够，不用 30 */
.ti-block.ti-card { margin: 18px 0 0; }
.ti-group.ti-card { margin-top: 18px; }
.ti-block-t { font-size: 16px; font-weight: 650; margin-bottom: 12px; }
.ti-block-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.ti-block-in.is-stack { grid-template-columns: minmax(0, 1fr); }
.ti-block-media { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--card-2); }
.ti-block-media img { display: block; width: 100%; height: auto; }
.ti-block-text p { font-size: 13px; line-height: 1.95; color: var(--ink-2); margin: 0 0 8px; }

/* 负责人卡片 */
.ti-group { margin-top: 34px; }
.ti-group-t {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 16px; font-weight: 650; margin-bottom: 14px;
  padding-left: 12px; border-left: 3px solid var(--ink);
}
.ti-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ti-leader {
  border: 1px solid var(--line-2); border-radius: var(--r-card);
  padding: 16px 18px 18px; background: var(--card);
}
.ti-leader:nth-child(4n + 1) { background: var(--blue-soft); }
.ti-leader:nth-child(4n + 2) { background: var(--pink-soft); }
.ti-leader:nth-child(4n + 3) { background: var(--lemon-soft); }
.ti-leader:nth-child(4n + 4) { background: var(--lilac-soft); }
.ti-leader-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ti-leader-head strong { font-size: 15px; font-weight: 650; }
.ti-leader-role { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; }
.ti-leader-photo { margin-bottom: 12px; }
.ti-leader-p { font-size: 12.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 8px; }

/* 头像：有图铺图，没图显示姓氏首字 */
.ti-av {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 12px;
  background: #fff center/cover no-repeat; color: var(--ink-3);
  font-size: 14px; font-weight: 600; border: 1px solid rgba(23, 23, 23, 0.06);
  overflow: hidden;
}
.ti-av.has-img { color: transparent; }
/* 头像改成 <img> 铺满：原来用 background-image，图片 404 时会留一块空白（首字也不会出来） */
.ti-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ti-av.is-big { width: 106px; height: 106px; border-radius: 16px; font-size: 34px; }

/* 部门成员表：整块底色 = 部门色 */
.ti-sec {
  background: var(--ti-bg, var(--card-2));
  border: 1px solid rgba(23, 23, 23, 0.07); border-radius: var(--r-card);
  overflow: hidden; margin-bottom: 14px;
}
.ti-sec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}
.ti-sec-head h3 { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.ti-sec-n { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.ti-sec-leader {
  font-size: 12px; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(23, 23, 23, 0.06);
  padding: 3px 11px; border-radius: var(--r-pill);
}
.ti-sec-leader b { font-weight: 650; }
.ti-sec-leader.is-todo { color: var(--muted); }
.ti-sec-path { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.ti-sec-body { overflow-x: auto; }
.ti-tbl { width: 100%; border-collapse: collapse; }
.ti-tbl th {
  padding: 9px 14px; text-align: left; font-size: 11.5px; font-weight: 600;
  color: var(--ink-3); background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06); white-space: nowrap;
}
.ti-tbl td {
  padding: 12px 14px; vertical-align: top;
  font-size: 12.5px; border-bottom: 1px solid rgba(23, 23, 23, 0.05);
}
.ti-tbl tr:last-child td { border-bottom: 0; }
.ti-td-av { padding-top: 12px !important; }
/* 成员表头像放大到撑满「照片」列（列宽 84 - 左右 padding 28 = 56），一眼看清长相 */
.ti-td-av .ti-av {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 20px;
  box-shadow: 0 1px 3px rgba(23, 23, 23, 0.08);
}
.ti-td-name b { display: block; font-size: 13px; font-weight: 650; color: var(--ink); }
.ti-td-team { display: block; margin-top: 3px; font-size: 11px; font-style: normal; color: var(--muted); }
.ti-td-pos { color: var(--ink-2); }
.ti-td-intro p { margin: 0 0 6px; line-height: 1.9; color: var(--ink-2); }
.ti-td-intro p:last-child { margin-bottom: 0; }
.ti-todo { font-size: 11.5px; color: var(--muted-2); }

.ti-empty {
  padding: 34px 26px; text-align: center; border: 1px dashed var(--line-2);
  border-radius: var(--r-card); background: var(--card-2); color: var(--ink-3);
}
.ti-empty strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.ti-empty p { font-size: 12.5px; line-height: 1.8; margin: 0 auto; max-width: 46ch; }
.ti-foot { margin: 26px 0 4px; text-align: center; font-size: 11.5px; color: var(--muted-2); }

/* 座位表页签 */
.ti-seat-bar { margin-bottom: 10px; gap: 10px; }
/* 座位表内嵌：宽了横向滚，高了纵向滚，不要撑破页面 */
.ti-seat-wrap { max-height: calc(var(--vh100) - 316px); min-height: 240px; }
.ti-seat-wrap .seat-grid { width: max-content; }
.ti-seat-wrap .seat-grid td.seat-cell { word-break: keep-all; overflow-wrap: break-word; }

.ti-seat {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 24px 26px;
  border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--card);
}
.ti-seat-txt h3 { font-size: 15px; margin-bottom: 6px; }
.ti-seat-txt p { font-size: 12.5px; line-height: 1.85; color: var(--ink-3); max-width: 60ch; }

/* ============================================================================
   人员汇报架构图（团队介绍 › 组织架构，2026-11-16）
   —— 不再是部门树：主干是 employees.manager_id 的汇报链，
      「什么组由谁管」= 某个人下面的人按部门再切一刀（组节点）。
   纵向树：父卡 → 17px 竖线 → 横线 → 17px 竖线 → 子卡，连线全部 CSS 画。
   ========================================================================== */
.ogt-bar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ogt-scroll {
  overflow: auto; padding: 24px 22px 26px;
  border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--card);
}
.ogt-tree, .ogt-kids { list-style: none; margin: 0; padding: 0; }
/* 横向树：一列一层，宽度只跟层数有关（最深 5 列），一屏能放下；
   高度随人头长，纵向滚 —— 比「一层横排十几张卡、宽度冲出 3000px」好读得多。 */
.ogt-tree { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: max-content; min-width: 100%; }
/* 关键：卡片一律顶对齐。子树一高（Gina 下面 20 多号人），居中定位会把一把手挤到
   垂直中间、滚出视野 —— 顶对齐才能保证「一把手永远在左上角」，跟文件树一样往下读。 */
.ogt-node { position: relative; display: flex; align-items: flex-start; }
.ogt-kids { display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; margin-left: 34px; position: relative; }
.ogt-kids[hidden] { display: none; }
/* 母线：每个子节点各画一段，首段从父卡中心起、末段到子卡中心止，拼起来就是一条通线 */
.ogt-kids > .ogt-node::before {
  content: ''; position: absolute; left: -17px; top: 0; bottom: 0; width: 1px; background: #98918a;
}
.ogt-kids > .ogt-node:first-child::before { top: 37px; }
.ogt-kids > .ogt-node:last-child::before { bottom: 50%; }
.ogt-kids > .ogt-node:only-child::before { top: 37px; bottom: 50%; }
/* 母线 → 子卡 */
.ogt-kids > .ogt-node::after {
  content: ''; position: absolute; left: -17px; top: 50%; width: 17px; height: 1px; background: #98918a;
}
.ogt-card {
  position: relative; z-index: 1; flex: none;
  width: 158px; min-height: 74px; padding: 8px 9px 9px;
  display: flex; flex-direction: column; gap: 5px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); color: var(--ink);
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.ogt-card.has-kids { cursor: pointer; }
.ogt-node.has-kids > .ogt-card::after {
  content: ''; position: absolute; right: -17px; top: 50%; width: 17px; height: 1px; background: #98918a;
}
.ogt-card.has-kids:hover { border-color: var(--ink-3); box-shadow: 0 2px 6px rgba(0, 0, 0, .07); }
.ogt-card.is-open { border-color: var(--ink-3); }
.ogt-hd { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ogt-id { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.28; }
.ogt-id b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ogt-id em {
  font-size: 10.5px; font-style: normal; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ogt-ft { display: flex; align-items: center; gap: 5px; min-width: 0; }
/* 2026-11-20 用户口径「这个不需要展示职级」：卡面只剩「管 N 人」，不再画职级 chip */
.ogt-ft .ogt-n {
  margin-left: auto; font-size: 10.5px; color: #98918a;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ogt-caret {
  flex: none; width: 0; height: 0;
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
  border-left: 5px solid #98918a; transition: transform .14s;
}
.ogt-card.is-open .ogt-caret { transform: rotate(90deg); }

/* 一把手反白，一眼看到顶 */
.ogt-tree > .ogt-node > .ogt-card { border-color: var(--ink); background: var(--ink); color: #fff; }
.ogt-tree > .ogt-node > .ogt-card .ogt-id em { color: rgba(255, 255, 255, .66); }
.ogt-tree > .ogt-node > .ogt-card .ogt-caret { border-left-color: rgba(255, 255, 255, .6); }
.ogt-tree > .ogt-node > .ogt-card .ogt-n { color: rgba(255, 255, 255, .6); }

/* 组卡片不是人：浅底 + 虚线，与人员卡区分开 */
.ogt-card.is-group { background: var(--bg-2); border-style: dashed; }
.ogt-gname {
  flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ogt-gmeta { font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.ogt-gmeta b { font-weight: 600; color: var(--ink-3); }

.ogt-loose { margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--muted); }



/* 窄屏：左右图文改上下、负责人卡单列、架构图允许横向滚动 */
@media (max-width: 900px) {
  .ti-block-in { grid-template-columns: minmax(0, 1fr); }
  .ti-leaders { grid-template-columns: minmax(0, 1fr); }
  .ti-title { font-size: 21px; }
}

/* ============================================================================
   系统设置 › 团队介绍（配置面板）
   ========================================================================== */
.ti-adm { display: flex; flex-direction: column; gap: 14px; }
.ti-adm-bar {
  position: sticky; top: -4px; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.ti-adm-bar strong { font-size: 13.5px; margin-right: 8px; }
.ti-adm-card { padding: 16px 18px 18px; }
.ti-adm-hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.ti-adm-hero-side { display: flex; flex-direction: column; gap: 10px; }
/* 总述是几百字的长文本，按 rows 给的默认高度只有三行，写的时候要一直拖 */
.ti-adm-hero textarea { min-height: 196px; }
.ti-adm-photo {
  display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  background: var(--card-2); overflow: hidden; cursor: pointer; text-align: center;
}
.ti-adm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-adm-photo.is-small { width: 200px; aspect-ratio: 4 / 3; }
.ti-adm-photo.is-avatar { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 16px; flex: none; }
.ti-adm-initial { font-size: 30px; font-weight: 650; color: var(--muted-2); }
.ti-adm-block { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px; background: var(--card-2); }
.ti-adm-block-top { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.ti-adm-block-body { display: flex; gap: 14px; align-items: flex-start; }
.ti-adm-block-text { flex: 1 1 auto; min-width: 0; }
.ti-adm-block-text textarea, .ti-adm-leader-fields textarea, .ti-adm-intro {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 12.5px; line-height: 1.7; resize: vertical;
  background: #fff; color: var(--ink);
}
.ti-adm-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ti-adm-leader {
  display: flex; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2);
}
.ti-adm-leader-fields { flex: 1 1 auto; min-width: 0; }
.ti-adm-sec { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px; }
.ti-adm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ti-adm-color {
  width: 30px; height: 26px; padding: 0; border: 1px solid var(--line-2);
  border-radius: 7px; background: #fff; cursor: pointer;
}
.ti-adm-swatches { display: inline-flex; gap: 4px; }
.ti-adm-swatch {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1px solid rgba(23, 23, 23, 0.12); cursor: pointer; padding: 0;
}
.ti-adm-leader-inp {
  width: 150px; height: 28px; padding: 0 9px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 12.5px;
}
.ti-adm-members { display: flex; flex-direction: column; gap: 8px; }
.ti-adm-member {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 52px;
  gap: 12px; align-items: start;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.ti-adm-member:first-child { border-top: 0; padding-top: 0; }
.ti-adm-member-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ti-adm-member-who b { display: block; font-size: 12.5px; font-weight: 650; }
.ti-adm-member-who em { display: block; font-size: 11px; font-style: normal; color: var(--muted); }
.ti-adm-saved { font-size: 11.5px; color: var(--green); opacity: 0; transition: opacity 0.2s; padding-top: 8px; }
.ti-adm-saved.is-on { opacity: 1; }

@media (max-width: 1020px) {
  .ti-adm-hero { grid-template-columns: minmax(0, 1fr); }
  .ti-adm-leaders { grid-template-columns: minmax(0, 1fr); }
  .ti-adm-member { grid-template-columns: minmax(0, 1fr); }
}

/* 组织架构纵向导图：根在顶，子部门向下缩进；纯 CSS 连接线 */
.orgmap { overflow: auto; max-height: 62vh; padding: 4px 4px 10px 0; }
.om-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.om-item.is-root { align-items: flex-start; }
.om-node {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card-2); font-size: 12.5px; font-weight: 600; color: var(--ink);
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.om-node.is-root {
  background: var(--blue-soft, #e8f0fe); border-color: var(--blue);
  color: var(--blue); font-size: 13.5px; padding: 8px 16px;
}
.om-node .om-n {
  font-weight: 500; font-size: 11px; color: var(--muted);
  background: var(--card); border-radius: 999px; padding: 1px 7px;
}
.om-node .om-leader { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); }
.om-kids {
  display: flex; flex-direction: column; gap: 8px;
  margin-left: 14px; padding-left: 16px; border-left: 2px solid var(--line-2);
}
.om-kids .om-item { position: relative; }
.om-kids .om-item::before {
  content: ''; position: absolute; left: -16px; top: 14px;
  width: 14px; height: 2px; background: var(--line-2);
}

/* ============================================================================
   候选人名单 · 视图切换（列表 / 看板）+ 看板卡片 + 候选人侧边栏
   2026-11-13 用户口径：「一个图标表示列表，一个图标表示看板……一个人是一格卡片，
   最上面放面试截图，紧接着展示名字、岗位、工作年限、期望薪资，支持直接打开简历和作品集。」
   ========================================================================== */

/* 名单卡右上角：共 N 人 的右边，两枚图标按钮，选中的那枚是深胶囊 */
.rc-vtoggle {
  flex: none; display: inline-flex; align-items: center; gap: 2px;
  padding: 2px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--card-2); margin-left: 8px;
}
.rc-vt {
  width: 29px; height: 24px; padding: 0; border: 0; border-radius: var(--r-pill);
  display: grid; place-items: center; background: transparent; color: var(--muted-2);
  cursor: pointer; transition: background .14s, color .14s;
}
.rc-vt:hover { color: var(--ink); }
.rc-vt.is-on { background: var(--ink); color: #fff; }

/* ------------------------------- 看板 ------------------------------- */

.rc-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
  gap: 14px;
  padding: 14px;
}
.rc-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.rc-card:hover { border-color: var(--ink-3); box-shadow: var(--shadow); transform: translateY(-1px); }
.rc-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 卡面第一层：面试截图（等比裁切，顶部对齐 —— 人脸多半在上半部分） */
/* 固定高度而不是 aspect-ratio：aspect-ratio + 内部 img{height:100%} 在 flex 卡里
   会被图片的固有高度顶开（同排卡片高矮不齐），定高 + 绝对定位裁切才齐 */
.rc-cshot { position: relative; height: 138px; overflow: hidden; background: var(--card-2); border-bottom: 1px solid var(--line); }
.rc-cshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.rc-cshot-ph {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, #f7f4ef, #f7f4ef 8px, #efeae3 8px, #efeae3 16px);
}
.rc-cshot-n {
  position: absolute; right: 8px; bottom: 8px; font-style: normal;
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: rgba(23, 23, 23, 0.6); border-radius: var(--r-pill);
  padding: 1px 7px; backdrop-filter: blur(2px);
}

.rc-cmain { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 3px; }
/* 姓名 · 岗位 同一行，岗位弱化、不加标题（用户口径 2026-11-14） */
.rc-cname { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-cname-pos { font-weight: 500; color: var(--ink-3); }
.rc-cpos { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 工作年限 / 期望薪资 / HR 面试官：各占一行，不再横向 wrap 成两行 */
.rc-cmeta { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; min-width: 0; }
.rc-cmeta-i {
  display: block; min-width: 0;
  font-size: 11.5px; line-height: 1.55; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-cmeta-i em { font-style: normal; color: var(--muted); }
.rc-cmeta-i.is-blank { color: var(--muted); }
.rc-ctags { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.rc-cfoot { margin-top: auto; display: flex; gap: 6px; padding: 8px 12px 11px; }
.rc-cdoc {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--card); color: var(--ink-2);
  font-size: 11.5px; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.rc-cdoc > span { overflow: hidden; text-overflow: ellipsis; }
.rc-cdoc em { font-style: normal; font-size: 10.5px; color: var(--muted); flex: none; }
/* 简历已上传 = 实底高亮，一眼能分出谁有简历（用户口径 2026-11-14） */
.rc-cdoc.is-ready { background: #eef4fe; border-color: #c6d9f7; color: #1c4b8f; font-weight: 600; }
.rc-cdoc.is-ready em { color: #4d6f9c; }
.rc-cdoc.is-ready:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-cdoc.is-ready:hover em { color: rgba(255, 255, 255, 0.72); }
.rc-cdoc:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rc-cdoc:hover em { color: rgba(255, 255, 255, 0.72); }
/* 未上传：只置灰，不写字 */
.rc-cdoc.is-empty, .rc-cdoc:disabled {
  opacity: 1; cursor: default; background: var(--card-2); border-color: var(--line);
  color: var(--muted); font-weight: 400; justify-content: center;
}
.rc-cdoc.is-empty:hover { background: var(--card-2); border-color: var(--line); color: var(--muted); }

/* ------------------------- 看板按阶段 / 岗位分列 ------------------------- */
.rc-kb {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; overflow-x: auto; overflow-y: hidden;
}
/* 列**不限高**：限高之后整块看板高度固定，页脚永远在视口外，
   名单的「滚到底自动加载下一页」就再也触发不了（只会看到前 50 人）——实测过。
   列跟着内容长、整页往下滚，和原来的平铺一致。 */
.rc-kb-col {
  flex: 0 0 244px; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md);
}
.rc-kb-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 11px; border-bottom: 1px solid var(--line);
  background: var(--card-2); border-radius: var(--r-md) var(--r-md) 0 0;
}
.rc-kb-head b { font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-kb-head em {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600;
  color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 0 7px; flex: none;
}
.rc-kb-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px; min-height: 0;
}
/* 列体是 flex 纵队 + 限高，卡片默认会被压扁成一条（flex-shrink:1）—— 必须钉住不缩 */
.rc-kb-body > * { flex: none; }
.rc-kb-body .rc-card { box-shadow: none; }
.rc-kb-empty { padding: 18px 0; text-align: center; font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) {
  .rc-kb { padding: 11px; gap: 10px; }
  .rc-kb-col { flex: 0 0 80vw; max-height: none; }
  .rc-kb-body { overflow: visible; }
}

/* --------------------------- 候选人侧边栏 --------------------------- */

.rcd-head-main h3 { font-size: 16px; }
.rcd-head-sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); }
.rcd-dot { color: var(--muted-2); }

.rcd-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 14px; }
.rcd-shot {
  position: relative; height: 92px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  overflow: hidden; background: var(--card-2); cursor: zoom-in;
}
.rcd-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* 只有一张截图时占满整行 —— 一张 90px 的小方图看不出是谁，面试截图本来就是要看的 */
.rcd-shots.is-single { grid-template-columns: 1fr; }
.rcd-shots.is-single .rcd-shot { height: 258px; }
/* 单张大图不裁切：面试截图常常是竖屏视频通话的整屏，裁成横条只剩半个额头 */
.rcd-shots.is-single .rcd-shot img { object-fit: contain; background: var(--card-2); }
.rcd-shot:hover { border-color: var(--ink-3); }

.rcd-kv {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px; padding: 13px 15px;
  background: var(--card-2); border-radius: var(--r-sm);
}
.rcd-kv-item em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.rcd-kv-item b { font-size: 13px; font-weight: 600; color: var(--ink); }

.rcd-sec { margin-top: 18px; }
.rcd-sec-title { font-size: 12px; font-weight: 650; color: var(--ink-3); margin-bottom: 8px; letter-spacing: 0.02em; }
.rcd-none { font-size: 12px; color: var(--muted); }
.rcd-none-inline { color: var(--muted); }

.rcd-docs { display: flex; flex-direction: column; gap: 6px; }
.rcd-doc {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); color: var(--ink-2); text-decoration: none;
  transition: border-color .12s, background .12s;
}
.rcd-doc:hover { border-color: var(--ink-3); background: var(--card-2); }
.rcd-doc-kind {
  flex: none; font-size: 10.5px; font-weight: 600; padding: 1px 7px;
  border-radius: var(--r-pill); background: var(--blue-soft); color: #3f5f8a;
}
.rcd-doc-kind.is-pf { background: var(--lilac-soft); color: #5b4a86; }
.rcd-doc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }

.rcd-rounds { display: flex; flex-direction: column; gap: 10px; }
.rcd-round {
  border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  border-radius: var(--r-sm); padding: 11px 13px;
}
.rcd-round.is-live { border-left-color: var(--lemon); }
.rcd-round.is-done { border-left-color: var(--mint); }
.rcd-round.is-failed { border-left-color: var(--red); }
.rcd-round-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rcd-round-name { font-size: 13px; font-weight: 650; }
.rcd-round-when { font-size: 11.5px; color: var(--muted); }
.rcd-round-iv { margin-left: auto; font-size: 11.5px; color: var(--muted); }
/*
 * 抽屉里的面试评语框（2026-11-14 用户口径）：
 *   「用一个框框起来，并且固定高度，不要因为评语多而无限被拉长。和子页面一样，
 *     这个框可以上下滑动看评语，也可以双击展开查看。」
 * 所以不另写高度/滚动，直接复用详情页的 .rc-fcomment（固定 104px + 内滚 + is-open 展开），
 * 这里只补一个上间距。
 */
.rcd-note { margin-top: 7px; }
.rcd-round-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.rcd-rop { display: flex; gap: 6px; }
.rcd-judge { display: flex; gap: 6px; margin-left: auto; }

@media (max-width: 900px) {
  .rc-board { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 11px; padding: 11px; }
  .rcd-kv { grid-template-columns: 1fr; }
}

/* ============================================================================
   H5 / 手机端适配（2026-11-13）
   —— 目标：手机钉钉内置浏览器（iOS / Android WebView）里每一页都能正常看、正常点。
   这几条是「窄屏才成立」的通则，放在文件最后，保证压过前面所有内联列数与既有断点：

   1) 横向排的 tab / 分段控件一律「单行 + 横向滑动」，绝不允许逐字折行
      （真事故：权限配置的「功能权限/数据范围」被压成一列竖排汉字）
   2) 统计卡从 4 列降到 2 列；两栏内容布局（.m-stack）降到单列
   3) 表格靠卡片内横向滑动，单元格不折行（日期被拆成「2026-／11-10」非常难读）
   4) 弹窗近全屏、底部按钮等分；表单输入框 16px
      —— iOS 上输入框字号 < 16px，聚焦时会把整页放大，钉钉里尤其明显
   5) 刘海/底部横条的留白走 env(safe-area-inset-*)
   ========================================================================== */
@media (max-width: 860px) {
  html { -webkit-text-size-adjust: 100%; }

  /* —— 页面留白 —— */
  .app {
    padding: calc(6px + env(safe-area-inset-top)) calc(6px + env(safe-area-inset-right))
             calc(6px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left));
  }
  .topbar { padding: 12px 14px 10px; gap: 10px; }
  .topbar h1 { font-size: 19px; }
  .page-sub { font-size: 11.5px; line-height: 1.55; }
  .view { --view-px: 12px; --view-py: 12px; padding: 12px 12px 24px; }

  /* —— tab / 分段控件：单行横向滑动 —— */
  .tabs {
    gap: 16px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; white-space: nowrap; }
  .segmented {
    max-width: 100%; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .segmented::-webkit-scrollbar { display: none; }
  .segmented button { flex: 0 0 auto; white-space: nowrap; }

  /* —— 统计卡 4 列 → 2 列；两栏内容 → 单列 —— */
  .bento.m-2col,
  .bento.ofa-stats,
  .bento.doc-stats, .bento.nt-stats, .bento.nt-cards, .bento.nt-cards.two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .m-stack { grid-template-columns: minmax(0, 1fr) !important; }
  .bento { gap: 10px; }

  /* —— 表格：卡片内横向滑动，单元格不折行 —— */
  .table-wrap, .rc-cand-wrap, .sop-tbl-wrap, .tbl-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .tbl { font-size: 12.5px; }
  .tbl th, .tbl td { white-space: nowrap; }
  /* 长文本列（需求说明、备注）截断，不要把它撑成两千像素宽；
     上限给 320：文件名这类「一整行都要看」的内容基本放得下（240 会把
     「极客跳动-绩效考核指标（2026版）（…）」截到认不出） */
  .tbl td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
  .tbl td.cell-clip, .tbl td .cell-clip { max-width: 180px; }

  /* —— 工具行：按钮换行，不横向溢出 —— */
  .row-between { flex-wrap: wrap; gap: 8px; }
  .card-head { flex-wrap: wrap; gap: 8px; padding: 14px 14px 10px; }
  .card { border-radius: var(--r-md); }

  /* —— 表单：16px 防聚焦放大，行高给手指 —— */
  .frow { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 7px 14px; }
  .frow input, .frow select, .frow textarea,
  .field input, .field select, .field textarea,
  .searchbox input { font-size: 16px; }
  .frow input, .frow select { height: 38px; }

  /* —— 按钮：触控目标不低于 38px —— */
  .btn { height: 38px; }
  .btn-sm { height: 32px; padding: 0 12px; }

  /* —— 弹窗：近全屏、底部按钮等分 —— */
  .modal { width: calc(100vw - 20px); max-height: 88vh; border-radius: 20px; }
  .modal.wide { width: calc(100vw - 20px); }
  .modal-head { padding: 16px 16px 12px; gap: 10px; }
  .modal-head h3 { font-size: 15.5px; }
  .modal-body { padding: 14px 16px; }
  .modal-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 8px; flex-wrap: wrap;
  }
  .modal-foot .btn { flex: 1 1 auto; min-width: 96px; }
  .fp-modal .modal-body { padding: 10px; }

  /* —— 抽屉：贴着屏幕，不留 14px 边 —— */
  .drawer {
    left: 6px; right: 6px; top: 6px; bottom: 6px;
    width: auto; border-radius: 18px;
  }
  .drawer-head { padding: 14px 16px 12px; }
  .drawer-body { padding: 14px 16px; }
  .drawer-foot {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
  }
  .drawer-foot .btn { flex: 1 1 auto; }

  /* —— 预览弹窗里的下载按钮：图标 + 文字别挤 —— */
  .fp-dl { padding: 0 12px; }

  /* —— 消息通知的卡片角标：窄屏会和标题撞在一起，缩字号 + 给标题留出位置 —— */
  .nt-card-mark { top: 12px; right: 12px; font-size: 10.5px; }
  .nt-card .cell-label { padding-right: 42px; }

  /* —— 等级分布：五个字母挤在半宽卡片里，字号收一档，「不合格」别折行 —— */
  .grade-dist { gap: 2px; }
  .grade-dist .gd-label { font-size: 9.5px; letter-spacing: -0.02em; }
  .grade-dist.compact .gd-label { font-size: 9px; }

  /* —— 候选人名单工具条：提示文案换行，别被省略号吃掉 —— */
  .rc-cand-bar { flex-wrap: wrap; row-gap: 6px; }
  .rc-cand-bar .rc-cand-hint {
    white-space: normal; overflow: visible; text-overflow: clip;
    flex: 1 1 100%; order: 9; line-height: 1.5;
  }
  .rc-cand-bar .rc-cand-count { margin-left: auto; }
}

/* 更窄的机器（iPhone SE / 小屏安卓）再收一档 */
@media (max-width: 400px) {
  .topbar h1 { font-size: 18px; }
  .view { --view-px: 10px; --view-py: 10px; padding: 10px 10px 20px; }
  .frow { grid-template-columns: 84px minmax(0, 1fr); }
}

/* 入职资料编辑弹窗里的「新建群」：整体要塞进一个弹窗，
   两列选人区比独立弹窗矮一档，避免嵌套两层滚动（外层弹窗 + 内层列表） */
.att2-compact .att2-list,
.att2-compact .att2-picked {
  max-height: 208px;
}

/* ------------------------------------------------------------------
   候选人名单：「加入备选 / 改阶段」+ 备选里的「来自某一轮」（2026-11-13）

   操作列原来只有一个「预约面试」，现在多一个弱一档的按钮：
   实线那个是主线动作（约面试），虚线这个是分流（放/取备选），别两个抢戏。
   ------------------------------------------------------------------ */
.rc-poolbtn {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 4px 9px;
  border: 1px dashed var(--line-2); border-radius: 8px; background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: 12px; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.rc-poolbtn:hover { color: var(--ink); border-color: var(--ink); border-style: solid; background: var(--card-2); }
.rc-poolbtn:active { transform: translateY(.5px); }
.rc-poolbtn.is-pool { border-style: solid; }

/* 面试阶段列：长标签（「备选（人才池）」）不要被挤成两行断字；「来自…」自己是 block，照旧换行 */
.rc-cand-tbl td:nth-child(4) { white-space: nowrap; }

/* 阶段列里的「来自二面中」：只给备选这一档用，一行小字交代原来接到第几轮 */
.rc-from { display: block; margin-top: 3px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.rc-from-inline { margin-left: 6px; font-size: 11px; color: var(--muted); }


/* ============================================================================
   界面字号放大后的适配（2026-11-16）
   CSS zoom 不会改变媒体查询看到的视口宽度，所以断点不会自动降档；
   这里按 html[data-ui-zoom] 把最挤的几处网格手动降一档，避免「4 人待述职」被挤成竖排。
   ========================================================================== */
html[data-ui-zoom="1.5"] .bento.home,
html[data-ui-zoom="1.75"] .bento.home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-ui-zoom="1.5"] .cell.span3,
html[data-ui-zoom="1.5"] .cell.span4,
html[data-ui-zoom="1.75"] .cell.span3,
html[data-ui-zoom="1.75"] .cell.span4 { grid-column: span 2; }
html[data-ui-zoom="1.5"] .org-layout,
html[data-ui-zoom="1.75"] .org-layout { grid-template-columns: 240px minmax(0, 1fr); }


/* ============================================================================
   员工端（#/app/*，2026-11-16 分端 V1.0）
   —— 与后台共用令牌与卡片语言，但布局是移动优先：单列、卡片化、底部三栏。
      后台仍以 PC 为主，员工端必须在 375 宽的手机上能用（方案 §7.3 ①）。
   ========================================================================== */

/* 手机上的员工端不跟随电脑端的 1.5× 字号：375 宽再放大 1.5 倍只剩 250 的排版宽度，
   卡片会被挤成一列字。桌面端仍跟随个人字号设置。 */
@media (max-width: 860px) {
  body[data-surface="app"] { zoom: 1; --vh100: 100vh; }
}

/* 顶栏不再放端切换（2026-11-17：统一收进左下角账号菜单） */
.topbar { align-items: center; }

/* 移动端底部 tab（只在员工端出现） */
.app-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: stretch;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.app-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 0 3px; border: 0; border-radius: 14px; background: none;
  color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; position: relative;
}
.app-tab.active { color: var(--ink); }
.app-tab.active svg { color: var(--ink); }
.app-tab-badge {
  position: absolute; top: 2px; left: 50%; margin-left: 4px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10px; line-height: 15px; font-style: normal;
}
@media (max-width: 860px) {
  body[data-surface="app"] .app-tabs { display: flex; }
  body[data-surface="app"] .shell { padding-bottom: 62px; }
  body[data-surface="app"] .view { padding-bottom: 8px; }
}

/* 页面骨架：单列 + 卡片，最大 860 居中（电脑上不至于拉成一整屏宽） */
/* 员工端版心：吃满可用宽度（2026-11-17 用户口径「页面完全没有适配屏幕宽度」）
   2026-11-20 再改：原来卡在 1180，1920 的屏上右边空出一大条 —— 和后台一样吃满，
   只在超宽屏留一点外框（2560 以上才生效，避免拉得太散）。 */
.app-wrap { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: none; }
.app-wrap.is-wide { max-width: none; }
@media (min-width: 2200px) { .app-wrap { max-width: 1800px; } }

/* 员工端「多块并排」的通用容器：窄屏单列，宽屏自动并排
   （试用期管理的「两周考核 / 转正述职 / 考核结论」三块用它，避免一块占满整屏只剩一条空态） */
.app-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 1200px) {
  .app-cols { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
}

/* 首页宽屏两栏：左边 hero + 待办，右边 KPI 卡竖排。
   2026-11-20：整端吃满宽度后，只有 3 张 KPI 卡时会被拉成三张「大饼」，
   分栏后卡片保持正常比例，右边也不再是空白。 */
.app-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* hero 通栏：入职时间轴要横着铺开，挤进左半栏会顶到边 */
.app-home > .app-hero { grid-column: 1 / -1; }
.app-home-main, .app-home-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1280px) {
  .app-home { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; }
  .app-home-side .app-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 员工端「我的档案」：版式照搬后台档案页（个人信息三栏 / 档案上传三栏 / 试用期三卡），
   宽度与后台一致，窄屏让多栏自然落成单栏 */
.me-profile { display: flex; flex-direction: column; width: 100%; max-width: none; }
@media (max-width: 1080px) {
  .me-profile .pinfo-cols { grid-template-columns: minmax(0, 1fr); }
}
body[data-surface="app"] .topbar { padding-bottom: 6px; }

/* ---- 生命周期大卡 ---- */
.app-hero {
  background: var(--card); border-radius: var(--r-card); padding: 16px 18px 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.app-hero.is-flat { padding-bottom: 16px; }
.app-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-hero-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-hero-avatar .avatar { width: 40px; height: 40px; font-size: 15px; }
.app-hero-hi { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.app-hero-days { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.app-hero-days b { color: var(--ink); font-variant-numeric: tabular-nums; }
.app-hero-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 时间轴：一条细线 + 圆点，已发生实心、未发生空心虚线 */
.app-track { display: flex; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.app-node { position: relative; flex: 1 1 0; min-width: 86px; padding: 14px 8px 0 0; }
.app-node::before {
  content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line-2);
}
.app-node:first-child::before { left: 4px; }
.app-node:last-child::before { right: calc(100% - 5px); }
.app-node-dot {
  position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px var(--card);
}
.app-node.is-planned .app-node-dot { background: var(--card); border: 1.5px dashed var(--muted-2); }
.app-node-date { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-node-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.app-node-note { font-size: 11px; color: var(--muted); }

/* ---- 区块 ---- */
.app-block {
  background: var(--card); border-radius: var(--r-card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); padding: 13px 16px 6px;
}
.app-block-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 9px; }
.app-block-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.app-block-count { font-size: 11.5px; color: var(--muted); }
.app-block.is-clear { padding-bottom: 14px; }
.app-clear strong { display: block; font-size: 13.5px; }
.app-clear em { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-style: normal; }
.app-readonly {
  margin: 2px 0 10px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--card-2); border: 1px dashed var(--line-2);
  font-size: 12px; color: var(--muted); line-height: 1.6;
}

/* ---- 待办行 ---- */
.app-todo { display: flex; flex-direction: column; }
.app-todo-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 2px;
  border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.app-todo-row:first-child { border-top: 0; }
.app-todo-row:hover .app-todo-main b { color: #000; }
.app-todo-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lemon); flex: none; }
.app-todo-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.app-todo-main b { font-size: 13.5px; font-weight: 600; }
.app-todo-main em {
  font-style: normal; font-size: 10.5px; color: var(--muted);
  padding: 1px 6px; border-radius: var(--r-pill); background: var(--card-2); border: 1px solid var(--line);
}
.app-due { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.app-due.is-late { color: var(--red); }
.app-due.is-today { color: #a4700f; }
.app-todo-go { color: var(--muted-2); flex: none; }

/* ---- 招聘看板底部「未来 7 天轮到我的面试」（2026-11-26）----
   用户：「这里咋那么丑啊？参考我的管理后台的设计」——
   原来是 .app-clear 一行素文本，现在跟后台「未来 7 天面试」用同一套 .rc-pair-item / .rc-pair-empty，
   只在 app 卡片里补间距、可点击态和小屏折行。 */
.app-up-list { gap: 8px; padding: 2px 0 9px; }
.app-up-row { text-decoration: none; color: inherit; transition: background .15s, border-color .15s; }
.app-up-row:hover { background: var(--card); border-color: var(--line-2); }
.app-up-row .chip { flex: none; }
.app-up-x { color: var(--muted-2); flex: none; margin-left: 2px; order: 10; }
/* 空态：后台是等高双卡里的居中块，这里卡片自身高度自适应，去掉 min-height 免得撑太高 */
.app-up-empty { min-height: 0; padding: 22px 8px 26px; }
@media (max-width: 640px) {
  .app-up-row { flex-wrap: wrap; row-gap: 6px; }
  .app-up-row .chip:last-of-type { order: 9; }
}

/* ---- 状态卡网格 ---- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.app-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 13px 14px 12px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.app-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.app-card.is-due { border-color: #f0d9a8; background: linear-gradient(180deg, var(--lemon-soft), var(--card) 70%); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.app-card-k { font-size: 12px; color: var(--muted); }
.app-card-num { font-family: var(--f-num); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.app-card-num em { font-size: 12px; font-style: normal; font-weight: 600; color: var(--muted); margin-left: 2px; }
.app-card-num.is-text { font-size: 15px; letter-spacing: 0; }
.app-card-hint { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.app-card-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 4px; }
.app-card-bar i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }

/* ---- 快捷入口 ---- */
.app-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 14px; }
.app-quick-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit; font-size: 13px;
}
.app-quick-item:first-child, .app-quick-item:nth-child(2) { border-top: 0; }
.app-quick-item em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ---- 键值列表 ---- */
.app-kv { display: flex; flex-direction: column; padding-bottom: 6px; }
.app-kv-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.app-kv-row:first-child { border-top: 0; }
.app-kv-row > span { color: var(--muted); flex: none; }
.app-kv-row > b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.app-kv-masked { font-style: normal; color: var(--muted-2); font-size: 12px; }

/* ---- 表单 ---- */
.app-form { display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.app-field { display: flex; flex-direction: column; gap: 5px; }
.app-field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.app-field > span em { color: var(--red); font-style: normal; }
.app-field > span i { margin-left: 6px; font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.app-field textarea {
  width: 100%; resize: vertical; min-height: 44px;
  padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card-2); font: inherit; font-size: 13px; line-height: 1.6; color: var(--ink);
}
.app-field textarea:focus { outline: 2px solid var(--lemon-soft); border-color: var(--lemon); }
.app-form-foot { display: flex; justify-content: flex-end; }

/* ---- 周报 / 面试 / 团队 / 时间轴 ---- */
.app-week-done { padding-bottom: 10px; }
.app-week-text { font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.65; }
.app-week-done .app-week-text { margin: 4px 0 8px; }
.app-weeks { display: flex; flex-direction: column; padding-bottom: 6px; }
.app-week-row { padding: 10px 0; border-top: 1px solid var(--line); }
.app-week-row:first-child { border-top: 0; }
.app-week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.app-week-head b { font-size: 12.5px; }
.app-week-head em { font-style: normal; font-size: 11px; color: var(--muted); }

/* ---- 我的周报（2026-11-20 改版：左一期卡片 + 右历史列表） ---- */
.wk-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1100px) {
  .wk-split { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); }
}
/* 左右翻期：跟着标题行右侧走，别单独占一行 */
.wk-pager { display: flex; gap: 6px; margin-left: auto; }
.wk-pager button {
  width: 26px; height: 26px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); color: var(--ink-2);
}
.wk-pager button:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.wk-pager button:disabled { opacity: .35; cursor: default; }
.wk-meta { font-size: 11.5px; color: var(--muted); margin: -2px 0 6px; }
.wk-sec { margin-top: 10px; }
.wk-sec > b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.wk-text { font-size: 13px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.wk-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.wk-empty {
  border: 1px dashed var(--line-2); border-radius: var(--r-md); background: var(--card-2);
  padding: 22px 16px; text-align: center;
}
.wk-empty > b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.wk-empty .btn { margin-top: 12px; }
.wk-list { display: flex; flex-direction: column; }
.wk-row { border-top: 1px solid var(--line); }
.wk-row:first-child { border-top: 0; }
.wk-row-btn {
  display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.wk-row-t { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wk-row-t b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-row-t em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: auto; flex: none; }
.wk-chev { flex: none; color: var(--muted); transition: transform .15s; }
/* 钉钉导入的历史周报：同一周可能有两条（不同时间导入），标一下来源就不像重复数据了 */
.wk-src {
  flex: none; font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line); color: var(--muted);
}.wk-row.is-open .wk-chev { transform: rotate(180deg); }
.wk-row-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-row-body { padding-bottom: 12px; }
.wk-row-body .wk-sec:first-child { margin-top: 2px; }
.wk-row-body .btn { margin-top: 8px; }
.wk-form .app-field textarea { min-height: 44px; }

.app-meeting { padding: 10px 0; border-top: 1px solid var(--line); }
.app-meeting:first-of-type { border-top: 0; }
.app-meeting-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.app-meeting-head b { font-size: 13px; }
/* 评语 / 纪要：走 md-lite 的 .rc-fcomment（固定高度 + 内滚 + 双击展开），这里只调高度和上间距，
   列表里一条长备注不能把整屏撑开 */
.app-meeting-note { margin-top: 4px; height: 88px; }
.app-meeting-minutes > b { display: block; margin: 8px 0 4px; color: var(--muted); font-weight: 600; font-size: 12px; }
.app-meeting-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.app-file {
  font-size: 11.5px; padding: 3px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink-2); text-decoration: none;
}

/* 试用期页（2026-11-20 用户：「顶部的试用期展示换个背景色」）：
   白卡改成按阶段取的淡色底 —— 合同期 mint / 试用期 lemon / 实习期 lilac，与标签同色系 */
.app-hero.is-tint { border-color: transparent; background: var(--lemon-soft); }
.app-hero.is-tint.tone-mint { background: var(--mint-soft); }
.app-hero.is-tint.tone-lilac { background: var(--lilac-soft); }
.app-hero.is-tint .app-hero-hi { font-size: 18px; }
.app-hero.is-tint .app-hero-days { color: var(--ink-3); }

/* 入职两周考核：结论摊在卡上，整张卡可点开（结论 + 证书在 /r/:id 结果页） */
.pvb-card {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2);
  padding: 12px 14px 10px; cursor: pointer; transition: background .15s, border-color .15s;
}
.pvb-card:hover, .pvb-card:focus-visible { background: var(--card); border-color: var(--line-2); outline: none; }
.pvb-score { font-style: normal; font-weight: 600; color: var(--ink-2); font-size: 11.5px; }
.pvb-concl { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pvb-concl > b { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
/* 结论在这张卡上就是主内容，不压成 104px 内滚窗口（列表里才需要压） */
.pvb-md { height: auto; max-height: none; overflow: visible; padding: 0; background: transparent; border-radius: 0; }
.pvb-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px;
}
.pvb-cert { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvb-more { flex: none; font-weight: 600; color: var(--ink); }
.pr-frame { display: block; width: 100%; height: min(68vh, 640px); border: 0; border-radius: var(--r-md); background: #fff; }

.app-ivs { display: flex; flex-direction: column; padding-bottom: 6px; }
.app-iv { padding: 11px 0; border-top: 1px solid var(--line); }
.app-iv:first-child { border-top: 0; }
.app-iv-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.app-iv-head b { font-size: 13.5px; }
.app-iv-rounds { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.app-iv-round { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.app-iv-tag {
  font-size: 10.5px; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line); color: var(--muted);
}
.app-iv-note { flex-basis: 100%; height: 88px; }
.app-iv-foot { margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--line); }

.app-members { display: flex; flex-direction: column; padding-bottom: 6px; }
.app-member { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); }
.app-member:first-child { border-top: 0; }
.app-member-main { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-width: 0; }
.app-member-main b { font-size: 13.5px; }
.app-member-when { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.app-member-when.is-near { color: #a4700f; }

.app-timeline { display: flex; flex-direction: column; padding-bottom: 8px; }
.app-tl-row { position: relative; display: flex; gap: 10px; padding: 9px 0 9px 2px; }
.app-tl-row + .app-tl-row { border-top: 1px solid var(--line); }
.app-tl-dot { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--ink); }
.app-tl-main { min-width: 0; }
.app-tl-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.app-tl-head b { font-size: 13px; }
.app-tl-text { font-size: 12.5px; color: var(--ink-3); }

.app-salary { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.app-salary em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.app-salary b { font-family: var(--f-num); font-size: 24px; letter-spacing: -.5px; }
.app-salary-note { font-size: 11px; color: var(--muted); max-width: 320px; text-align: right; }

/* 员工端 · 手机上的几处收口（2026-11-16）
   ① 生命周期时间轴在 390 宽里会横向溢出、最后一个日期被切掉 → 四段等分、不横向滚动；
   ② 待办标题换行时圆点会飘到行中间 → 与首行文字对齐。 */
@media (max-width: 520px) {
  .app-track { overflow: visible; }
  .app-node { min-width: 0; flex: 1 1 0; padding-right: 6px; }
  .app-node-date { font-size: 10.5px; }
  .app-node-label { font-size: 12px; }
  .app-todo-dot { align-self: flex-start; margin-top: 7px; }
  .app-todo-row { align-items: flex-start; }
  .app-todo-go { margin-top: 4px; }
  .app-due { margin-top: 1px; }
}

/* ==================== 考勤与假期（2026-11-17 新增模块） ==================== */

/* 假期余额卡（按剩余标预警色：红/橙） */
.lv-bal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lv-bal { border: 1px solid var(--line-2); border-radius: var(--r-md, 10px); padding: 10px 12px; background: var(--card-2); }
.lv-bal.is-red { border-color: rgba(180, 35, 24, .45); background: rgba(180, 35, 24, .06); }
.lv-bal.is-orange { border-color: rgba(200, 120, 20, .4); background: rgba(200, 120, 20, .06); }
.lv-bal.is-empty { border-color: rgba(180, 35, 24, .45); background: rgba(180, 35, 24, .08); }
.lv-bal-name { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.lv-bal-num { font-family: var(--f-num); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.lv-bal-num em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; font-weight: 500; }

/* 管控额度行 */
.lv-ctrl { display: flex; flex-direction: column; gap: 6px; }
.lv-ctrl-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r-md, 10px); background: var(--card-2); }
.lv-ctrl-row > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 2026-11-30：管控改为进度条展示 */
.lv-ctrl-row.is-bar { display: block; padding: 10px 12px; }
.lv-ctrl-head { display: flex; align-items: center; gap: 8px; }
.lv-ctrl-head > span:first-child { flex: 1; min-width: 0; }
.lv-ctrl-bar { height: 7px; margin-top: 9px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.lv-ctrl-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); transition: width .25s ease; }
.lv-ctrl-bar i.red { background: var(--red); }
.lv-ctrl-bar i.orange { background: var(--orange); }
.lv-ctrl-bar i.lemon { background: var(--lemon); }

/* 抽屉 / 弹窗里的段落 */
.drawer-sec { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.drawer-sec:last-child { border-bottom: 0; }
.dsec { margin-top: 8px; }
.dsec i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.dsec p { margin: 0; font-size: 13px; white-space: pre-wrap; }

/* 审批流时间轴（请假/加班详情里的节点列表；借用 .pm-op 圆点+竖线语言，重置为块级布局） */
.pm-op-list { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-md, 10px); overflow: hidden; background: #fff; }
.pm-op-list .pm-op { display: block; padding: 9px 12px 9px 32px; border-bottom: 1px solid var(--line-2); position: relative; }
.pm-op-list .pm-op:last-child { border-bottom: 0; }
.pm-op-list .pm-op::before { content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.pm-op-list .pm-op:first-child::before { top: 16px; }
.pm-op-list .pm-op:last-child::before { bottom: calc(100% - 16px); }
.pm-op-list .pm-op::after { content: ''; position: absolute; left: 9px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.pm-op-list .pm-op .chip-mint + *, .pm-op-list .pm-op.is-done::after { background: var(--green); border-color: var(--green); }
.pm-op-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pm-op-head b { font-weight: 620; }

/* 策略签字链 / 流程配置的步骤块 */
.cp-step, .fl-node { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-md, 10px); margin-bottom: 6px; background: var(--card-2); }
.fl-node { display: block; }
.fl-def-steps { list-style: none; margin: 10px 0 0; padding: 0; }
.fl-def-steps li { padding: 7px 0 7px 18px; border-bottom: 1px dashed var(--line-2); position: relative; font-size: 12.5px; }
.fl-def-steps li:last-child { border-bottom: 0; }
.fl-def-steps li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.frow-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; }

/* 考勤趋势柱 / 员工每日柱 */
.at-trend { display: flex; gap: 4px; align-items: flex-end; overflow-x: auto; padding-bottom: 4px; }
.at-trend-col { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 30px; }
.at-trend-col i { display: block; width: 16px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--green); }
.at-trend-col i.t-red { background: #c34a3d; }
.at-trend-col i.t-orange { background: #d08a2f; }
.at-trend-col i.t-lemon { background: #d3b13c; }
.at-trend-col i.t-blue { background: #7fa9e6; }
.at-trend-col span { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }

/* 我的考勤月历 */
.att-cal { border: 1px solid var(--line-2); border-radius: var(--r-md, 10px); overflow: hidden; }
.att-cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--card-2); font-size: 11px; color: var(--muted); }
.att-cal-head span { padding: 6px 0; text-align: center; }
.att-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.att-cell { min-height: 44px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); padding: 4px 6px; font-size: 11px; position: relative; }
.att-cell:nth-child(7n+1) { border-left: 0; }
.att-cell.is-blank { border-top: 1px solid var(--line-2); }
.att-cell i { font-style: normal; color: var(--ink-3); }
.att-cell em { font-style: normal; position: absolute; right: 5px; bottom: 4px; font-size: 10px; font-weight: 620; }
.att-cell.is-weekend i { color: var(--muted-2); }
.att-cell.is-future { opacity: .45; }
.att-cell.t-mint { background: rgba(35, 128, 80, .08); }
.att-cell.t-lemon { background: rgba(200, 160, 20, .10); }
.att-cell.t-orange { background: rgba(200, 120, 20, .12); }
.att-cell.t-red { background: rgba(180, 35, 24, .10); }
.att-cell.t-blue { background: rgba(90, 130, 200, .12); }
.att-cell.t-mint em { color: #23804f; }
.att-cell.t-lemon em { color: #8a6d00; }
.att-cell.t-orange em { color: #b06a10; }
.att-cell.t-red em { color: #b42318; }
.att-cell.t-blue em { color: #3a6bc0; }

/* 员工端表单/看板里的两列/多列排布（移动端自动堆叠） */
.app-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.app-field-row > * { flex: 1 1 220px; min-width: 0; }
.fl-pending { display: flex; flex-direction: column; }

/* ==========================================================================
   审批中心 › 审批中（2026-11-19）
   用户口径：「这里不是『待我审批』，而是所有『在审批中』的单据，
   要按不同类型分别展示不同审批的内容」—— 所以按业务分组成若干张表，
   每张表只放这种单据自己的字段；上面一排类型切换带数量。
   ========================================================================== */
.fl-inflight-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fl-inflight-bar .spacer { flex: 1; min-width: 8px; }
.btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.fl-inflight-sec { margin-bottom: 22px; }
.fl-sec-head { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.fl-sec-head b { font-size: 13px; font-weight: 700; }
.fl-sec-link { margin-left: auto; font-size: 12px; color: var(--ink-3); text-decoration: none; }
.fl-sec-link:hover { color: var(--ink); text-decoration: underline; }

.fl-inflight-tbl { table-layout: auto; }
.fl-inflight-tbl th { white-space: nowrap; }
.fl-inflight-tbl td { vertical-align: middle; }
.fl-cell-ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-money { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.fl-acts { display: inline-flex; gap: 6px; white-space: nowrap; }
/* 审批进度（列表内联）：环节点 + 已过几个 + 当前停在哪一级 */
.fl-pg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fl-pgdots { display: inline-flex; align-items: center; gap: 3px; }
.fl-pgdot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.fl-pgdot.is-done { background: var(--mint); }
.fl-pgdot.is-current { background: var(--lemon); box-shadow: 0 0 0 2px var(--lemon-soft); }
.fl-pgdot.is-rejected { background: var(--red); }
.fl-pgdot.is-skipped, .fl-pgdot.is-unknown { background: var(--line-2); }
.fl-pg b { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.fl-pg b.is-wait { color: #8a6d00; }
.fl-pg em { font-style: normal; font-size: 11.5px; color: var(--muted); max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.fl-more { margin-top: 8px; }
.fl-inflight-note { font-size: 12px; color: var(--muted); margin: -6px 0 12px 2px; }

/* ==========================================================================
   请假单详情抽屉（2026-11-19）
   用户口径：「点击具体的请假单，会从右边滑出展示整个单据的信息和审批流程……
   要把整个审批流程展示出来，虽然不在此处同意，但是此处要同步。」
   ========================================================================== */
.lv-dw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.lv-dw-title { min-width: 0; }
.lv-dw-no { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; font-family: var(--f-num); }
.lv-dw-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.lv-dw-sub b { color: var(--ink); font-weight: 650; }
.lv-dw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card-2); }
.lv-dw-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-dw-grid span { font-size: 11.5px; color: var(--muted); }
.lv-dw-grid b { font-size: 13px; font-weight: 620; }
.lv-dw-flow .pm-op-list { margin-top: 8px; }
.lv-dw-flow .pm-op-head { flex-wrap: wrap; }

/* ==========================================================================
   流程配置 › 钉钉审批流程（2026-11-18）
   钉钉里才能改的流程在这里只读列出：分组折叠 + 搜索 + 点开看配置快照。
   快照用时间轴画审批链（同 .pm-op 的圆点+竖线语言），条件分支用黄点、审批人蓝点。
   ========================================================================== */
.fl-sec-cap {
  display: flex; align-items: baseline; gap: 8px;
  margin: 2px 2px 8px; font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.fl-sec-cap span { font-weight: 400; font-size: 11.5px; color: var(--muted-2); }

.fl-ding { padding: 14px 16px; }
#fl-ding-tools { display: flex; gap: 10px; align-items: center; margin: 10px 0 4px; flex-wrap: wrap; }
#fl-ding-q {
  flex: 1; min-width: 180px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--card-2); font-size: 12.5px; color: var(--ink);
}
#fl-ding-q:focus { outline: none; border-color: var(--blue); background: #fff; }
.fl-ding-filter { flex: 0 0 auto; }
.fl-ding-filter button { font-size: 12px; }

.fl-ding-group { border-top: 1px solid var(--line); }
.fl-ding-group:first-of-type { border-top: 0; }
.fl-ding-ghead {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 9px 2px; background: none; border: 0; cursor: pointer;
  font-size: 12.5px; color: var(--ink-2); text-align: left;
}
.fl-ding-ghead b { font-weight: 650; }
.fl-ding-ghead i {
  font-style: normal; font-size: 11px; color: var(--muted);
  background: var(--card-2); border-radius: var(--r-pill); padding: 0 6px;
}
.fl-chev { color: var(--muted-2); transition: transform .16s; }
.fl-ding-group.is-open .fl-chev { transform: rotate(90deg); }
.fl-ding-rows { display: none; padding: 0 0 8px; }
.fl-ding-group.is-open .fl-ding-rows { display: block; }

.fl-ding-row {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 10px; margin-bottom: 4px;
  background: var(--card-2); border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-align: left; font-size: 12.5px; color: var(--ink);
}
.fl-ding-row:hover { border-color: var(--line-2); background: #fff; }
.fl-ding-name { font-weight: 550; }
.fl-ding-badge {
  font-size: 10.5px; color: #3f7a5e; background: var(--green-soft);
  border-radius: var(--r-pill); padding: 1px 7px;
}
.fl-ding-code { font-family: var(--f-num); font-size: 11px; color: var(--muted-2); }
.fl-ding-act { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.fl-ding-row:hover .fl-ding-act { color: var(--ink); }
.fl-ding-row.is-deny { background: transparent; border-color: var(--line); }
.fl-ding-row.is-deny .fl-ding-name { color: var(--muted); font-weight: 400; }
.fl-ding-row.is-deny .fl-ding-act { color: var(--muted-2); }

/* 没权限提示（弹窗内，白底 + 图标块 + 标题 + 说明，同 .lb-err 的语言） */
.fl-deny {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 10px 30px; text-align: center;
}
.fl-deny-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 4px; border-radius: 13px;
  background: var(--red-soft); color: #b8554c;
}
.fl-deny b { font-size: 14.5px; font-weight: 650; }
.fl-deny em {
  font-style: normal; font-size: 12.5px; line-height: 1.7;
  color: var(--muted); max-width: 420px;
}

/* ---- 配置快照 ---- */
.dc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dc-ico { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; background: var(--card-2); flex: 0 0 auto; }
.dc-ico.is-blank { display: block; }
.dc-h-main { flex: 1; min-width: 0; }
.dc-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; }
.dc-h-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.dc-code { font-family: var(--f-num); }
.dc-kv {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.dc-kv > div { min-width: 0; }
.dc-kv i { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); margin-bottom: 3px; }
.dc-kv b {
  display: block; font-size: 12.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dc-sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dc-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-sec > i { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); margin-bottom: 6px; }
.dc-sec p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.dc-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-fields span {
  font-size: 11.5px; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2);
}

.dc-chain { list-style: none; margin: 0; padding: 0; }
.dc-chain li { position: relative; padding: 0 0 14px 22px; font-size: 12.5px; }
.dc-chain li::before {
  content: ''; position: absolute; left: 2px; top: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 2px var(--card);
}
.dc-chain li::after {
  content: ''; position: absolute; left: 6px; top: 16px; bottom: 3px; width: 1px; background: var(--line-2);
}
.dc-chain li:last-child { padding-bottom: 0; }
.dc-chain li:last-child::after { display: none; }
.dc-chain li.is-start::before { background: var(--green); }
.dc-chain li.is-branch::before { background: var(--lemon); }
.dc-chain li.is-approver::before { background: var(--blue); }
.dc-chain li.is-cc::before { background: var(--muted-2); }
.dc-chain li b { font-weight: 620; margin-right: 6px; }
.dc-chain li span { color: var(--ink-2); }
.dc-chain li .dc-cond { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.dc-chain li em {
  font-style: normal; font-size: 10.5px; color: var(--muted);
  background: var(--card-2); border-radius: var(--r-pill); padding: 1px 6px; margin-left: 4px;
}

@media (max-width: 760px) {
  .dc-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   员工端 2026-11-17 重排：卡片按类别上色 + 招聘看板/名单/内推
   ========================================================================== */

/* ---- 状态卡按类别上色（同一套软色，别整片白） ---- */
.app-card { border-top: 3px solid var(--line-2); }
.app-card.is-blue { border-color: #cfe0fb; border-top-color: var(--blue); background: linear-gradient(180deg, var(--blue-soft), var(--card) 64%); }
.app-card.is-lemon { border-color: #f0e2ae; border-top-color: var(--lemon); background: linear-gradient(180deg, var(--lemon-soft), var(--card) 64%); }
.app-card.is-lilac { border-color: #ded3fa; border-top-color: var(--lilac); background: linear-gradient(180deg, var(--lilac-soft), var(--card) 64%); }
.app-card.is-mint { border-color: #c8eddf; border-top-color: var(--mint); background: linear-gradient(180deg, var(--mint-soft), var(--card) 64%); }
.app-card.is-orange { border-color: #f7d9c2; border-top-color: var(--orange); background: linear-gradient(180deg, var(--orange-soft), var(--card) 64%); }
.app-card.is-blue .app-card-k, .app-card.is-lemon .app-card-k, .app-card.is-lilac .app-card-k,
.app-card.is-mint .app-card-k, .app-card.is-orange .app-card-k { color: var(--ink-2); font-weight: 600; }

/* ---- 筛选条（药丸按钮 + 下拉 + 搜索） ---- */
.app-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-filter {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--card);
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.app-filter em { font-style: normal; font-size: 11px; color: var(--muted); }
.app-filter:hover { border-color: var(--muted-2); }
.app-filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.app-filter.is-on em { color: rgba(255,255,255,.7); }
.app-select, .app-search {
  height: 30px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--card); padding: 0 12px; font-size: 12.5px; color: var(--ink-2);
}
.app-search { flex: 1 1 180px; min-width: 140px; max-width: 260px; }
.app-select { min-width: 150px; }

/* ---- 招聘看板 ---- */
.rc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rc-kpi {
  padding: 12px 14px; border-radius: var(--r-card); border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow-sm); border-left: 3px solid var(--line-2);
}
.rc-kpi.is-blue { border-left-color: var(--blue); background: linear-gradient(90deg, var(--blue-soft), var(--card) 60%); }
.rc-kpi.is-lemon { border-left-color: var(--lemon); background: linear-gradient(90deg, var(--lemon-soft), var(--card) 60%); }
.rc-kpi.is-lilac { border-left-color: var(--lilac); background: linear-gradient(90deg, var(--lilac-soft), var(--card) 60%); }
.rc-kpi.is-mint { border-left-color: var(--mint); background: linear-gradient(90deg, var(--mint-soft), var(--card) 60%); }
.rc-kpi-k { font-size: 11.5px; color: var(--muted); }
.rc-kpi-n { font-family: var(--f-num); font-size: 24px; font-weight: 700; line-height: 1.2; }

.rc-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .rc-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rc-board { grid-template-columns: 1fr; } }
.rc-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 2px; }
.rc-col-head { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 8px; }
.rc-col-head b { font-size: 13px; }
.rc-col-head span { font-family: var(--f-num); font-size: 13px; color: var(--muted); }
.rc-col.is-blue { border-top: 3px solid var(--blue); }
.rc-col.is-lemon { border-top: 3px solid var(--lemon); }
.rc-col.is-mint { border-top: 3px solid var(--mint); }
.rc-col.is-line { border-top: 3px solid var(--line-2); }
.rc-stage { display: flex; align-items: center; gap: 7px; padding: 7px 6px; border-radius: var(--r-sm);
  text-decoration: none; color: inherit; }
.rc-stage:hover { background: var(--card-2); }
.rc-stage-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rc-stage-label { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.rc-stage-num { font-family: var(--f-num); font-size: 13px; }
.app-todo-when { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ---- 候选人列表（行式，密而清） ---- */
.rc-cands { display: flex; flex-direction: column; }
.rc-cand {
  display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(120px, 1.2fr) auto minmax(120px, .9fr);
  align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer; width: 100%;
}
.rc-cand:first-child { border-top: 0; }
.rc-cand.is-static { cursor: default; }
.rc-cand:not(.is-static):hover { background: var(--card-2); }
.rc-cand-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rc-cand-name b { font-size: 13.5px; }
.rc-cand-name .chip { font-size: 10px; }
.rc-cand-pos { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-cand-when { font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; }

/* ---- 候选人详情抽屉 ---- */
.rc-detail { display: flex; flex-direction: column; gap: 14px; }
.rc-detail-top { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-detail-mine { padding: 10px 12px; border-radius: var(--r-md); background: var(--card-2); border: 1px solid var(--line); }
.rc-detail-k { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.rc-detail-v { font-size: 14px; font-weight: 600; }
.rc-detail-flow { display: flex; flex-direction: column; }
.rc-round { display: grid; grid-template-columns: 14px 48px 1fr auto; align-items: center; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.rc-round:first-child { border-top: 0; }
.rc-round-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); margin-left: 3px; }
.rc-round.is-mine .rc-round-dot { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.rc-round-label { color: var(--muted); }
.rc-round-who { color: var(--ink-2); }
.rc-round-at { color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-detail-files { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- 员工端文件上传块（内推简历） ---- */
.app-upload {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: var(--r-md); background: var(--card-2);
}
.app-upload b { font-size: 12.5px; }
.app-upload span { font-size: 11.5px; color: var(--muted); }
.app-upload:hover { border-color: var(--muted-2); }

@media (max-width: 720px) {
  .rc-cand { grid-template-columns: 1fr auto; grid-auto-rows: auto; }
  .rc-cand-when { grid-column: 1 / -1; text-align: left; }
}

/* 阶段圆点按阶段色（chip-* 是浅底+深字，圆点要实色，单独一套） */
.rc-stage-dot.is-blue { background: var(--blue); }
.rc-stage-dot.is-lemon { background: var(--lemon); }
.rc-stage-dot.is-lilac { background: var(--lilac); }
.rc-stage-dot.is-mint { background: var(--mint); }
.rc-stage-dot.is-orange { background: var(--orange); }
.rc-stage-dot.is-pink { background: var(--pink); }
.rc-stage-dot.is-red { background: var(--red); }
.rc-stage-dot.is-line { background: var(--line-2); }

/* ---- 日报（员工端 日报管理：一天一页，左边今天 + 右边历史）---- */
.app-pills { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.app-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card-2); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
}
.app-pill:hover { border-color: var(--muted-2); }
/* 选中态一律实心黑（与 .segmented / .rc-qchip 同口径，浅底看着不明显） */
.app-pill.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.app-pill.is-on .chip { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
/* 一天多个模板时的页签：贴着标题下方，别单独占一行高度 */
.app-pills-sm { padding: 2px 0 8px; }
.app-pills-sm .app-pill { padding: 4px 10px; font-size: 12px; }
.wk-more { text-align: center; padding: 10px 0 2px; }
/* 一天多份模板的日报：展开后按模板分块，块与块之间用发丝线隔开 */
.dl-block { padding: 4px 0 10px; border-top: 1px dashed var(--line); margin-top: 8px; }
.dl-block:first-child { border-top: 0; margin-top: 2px; }
.dl-block-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dl-block-h > b { font-size: 12.5px; }
.dl-block-h > em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: auto; }
.dl-block-f { display: flex; justify-content: flex-end; margin-top: 8px; }
.app-banner {
  margin: 4px 0 10px; padding: 9px 12px; border-radius: var(--r-md);
  font-size: 12px; line-height: 1.6; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink-2);
}
.app-banner.is-warn { border-color: var(--orange); background: rgba(248,195,154,.14); }
.app-banner.is-info { border-color: var(--blue); background: rgba(170,198,244,.14); }
.app-banner.is-danger { border-color: var(--red); background: rgba(232,117,107,.12); }
.app-fields { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 10px; }
.app-field-view > b { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.app-field-view > div { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-multis { display: flex; gap: 7px; flex-wrap: wrap; }
.app-multis-item {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto; white-space: nowrap;
  padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card-2); font-size: 12.5px; color: var(--ink-2); cursor: pointer; user-select: none;
}
.app-multis-item:has(input:checked) { border-color: var(--lemon); background: rgba(244,217,94,.14); color: var(--ink); font-weight: 600; }
/* 移动端媒体查询里 `.frow input{height:38px;font-size:16px}` 会连 checkbox 一起拉大
   → 项目胶囊变成「大方块 + 竖排文字」（2026-11-17 报销提交页实测）。这里按行内小控件提权 */
.app-multis-item input[type="checkbox"] {
  accent-color: var(--lemon); margin: 0;
  width: 15px; height: 15px; min-height: 0; font-size: 12px; flex: none;
}
/* 报销项目 25 个：窄屏下若还挤在 84px 标签列右侧只剩 184px，会排成 20 行；
   整行铺开（标签在上、胶囊在下）后 4 个一行，7~8 行收住 */
@media (max-width: 860px) {
  .frow[data-stack] { grid-template-columns: 1fr; gap: 6px; }
  .frow[data-stack] > span { font-size: 12.5px; }
}
.app-attach-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.app-attach-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}
.app-attach-name { font-size: 12.5px; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.app-attach-name:hover { text-decoration: underline; }
.app-attach-del { margin-left: auto; }
/* 附件行：文件名 + 类型标签 + 「已缓存 · 大小」（最后一段靠右） */
.app-attach-item > .tiny.muted { margin-left: auto; }
.app-block-hint { margin-left: 8px; font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.app-daily-reminder {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 11px 14px; border: 1px solid var(--orange); border-radius: var(--r-md);
  background: rgba(248,195,154,.14); font-size: 12.5px; color: var(--ink-2);
}

/* 表单底部：左侧自动保存提示、右侧提交按钮，中间留空不打架 */
.app-form-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.app-form-foot [data-save-state] { margin-right: auto; }

/* ============================================================
   报销管理（2026-11-17 新模块）
   ============================================================ */

/* 阶段时间轴（详情抽屉）：圆点 + 连接线，办完的✓、当前的实心 */
.reim-steps { display: flex; align-items: flex-start; gap: 0; padding: 4px 0 2px; }
.reim-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; min-width: 0; }
.reim-step::before {
  content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px;
  background: var(--line-2); z-index: 0;
}
.reim-step:first-child::before { display: none; }
.reim-step.is-done::before, .reim-step.is-cur::before { background: var(--mint); }
.reim-step-dot {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; background: var(--card); border: 1.5px solid var(--line-2);
  color: var(--ink-3); position: relative; z-index: 1; flex: none;
}
.reim-step.is-done .reim-step-dot { background: var(--mint-soft); border-color: var(--mint); color: #1f7a58; }
.reim-step.is-cur .reim-step-dot { background: var(--lemon-soft); border-color: var(--lemon); color: #8a6d00; }
.reim-step-label { margin-top: 5px; font-size: 11px; color: var(--ink-3); text-align: center; white-space: nowrap; }
.reim-step.is-done .reim-step-label, .reim-step.is-cur .reim-step-label { color: var(--ink-2); font-weight: 600; }

/* 撤销/驳回的单子：时间轴整体降调 */
.reim-steps.is-stopped .reim-step-dot { opacity: .55; }

/* 抽屉头部的标题行 */
.drawer-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reim-legacy { font-style: normal; font-size: 11px; color: var(--muted); }


/* ---- 报销列表页（2026-11-17 重排） ---- */
/* 整页纵向节奏：切换条 / KPI / 状态条 / 列表之间固定 12px，谁也别压谁 */
.reim-page, .reim-rules { display: flex; flex-direction: column; gap: 12px; }
.reim-topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reim-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 「待我审批」：有单等我处理时才出现，点一下只看这些（2026-11-19） */
.reim-todo-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-2); font-size: 12.5px; cursor: pointer;
}
.reim-todo-chip b { color: var(--ink); font-weight: 700; }
.reim-todo-chip.is-on { background: var(--lemon-soft); border-color: var(--lemon); color: var(--ink); }
.reim-switch button { height: 30px; padding: 0 18px; font-size: 13px; letter-spacing: -0.01em; }
.reim-viewbar { margin-bottom: 0; }
.reim-card { padding: 0; overflow: hidden; }
.reim-filterbar { gap: 10px; }
.reim-filterbar .searchbox { height: 34px; padding: 0 12px 0 14px; }
.reim-filterbar .searchbox input { width: 190px; }

/* KPI 卡一律纯色底（不要渐变），左边一根实色条区分口径 */
.reim-kpi { background: var(--card); border-color: transparent; }
.reim-kpi.is-blue { background: var(--blue-soft); border-left: 3px solid var(--blue); }
.reim-kpi.is-lemon { background: var(--lemon-soft); border-left: 3px solid var(--lemon); }
.reim-kpi.is-mint { background: var(--mint-soft); border-left: 3px solid var(--mint); }
.reim-kpi.is-lilac { background: var(--lilac-soft); border-left: 3px solid var(--lilac); }
.reim-kpi.is-orange { background: var(--orange-soft); border-left: 3px solid var(--orange); }
.reim-kpi-sm .rc-kpi-n { font-size: 19px; }

/* 「已报销」要显眼：实心薄荷底 + 勾，跟其他软色 chip 拉开层级 */
.reim-done {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 10px 0 8px;
  border-radius: var(--r-pill); background: var(--mint); color: var(--ink);
  font-size: 12px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap;
}
.reim-done svg { flex: none; }

/* 列表：9 列固定布局，用途/摘要各占一格 */
.reim-tbl { table-layout: fixed; width: 100%; }
/* 可排序表头（2026-11-30 用户口径：金额/日期点表头从大到小、再点从小到大） */
.reim-tbl th.reim-sortth { cursor: pointer; user-select: none; white-space: nowrap; }
.reim-tbl th.reim-sortth:hover { color: var(--text); background: var(--hover, rgba(0,0,0,.03)); }
.reim-tbl th.reim-sortth.is-on { color: var(--accent, var(--text)); font-weight: 700; }
.reim-tbl th.reim-sortth .reim-sortarrow { font-size: 10px; margin-left: 2px; }
/* 这一页 9 列在 1440 下能整张放下，不需要「操作列吸右」，否则会盖住状态列 */
.reim-tbl th:last-child, .reim-tbl td:last-child { position: static; box-shadow: none; }
.reim-tbl td.tbl-nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 9 列要挤进 1024：左右内边距收到 8（table.tbl th 的 14px 特异性更高，这里必须带 table 才压得住） */
table.reim-tbl th, table.reim-tbl td { padding-left: 8px; padding-right: 8px; }
/* 最后一列贴边：.rc-cand-tbl 给的是 16px，这里按用户口径「放到边框最后面，不要留白」收到 8 */
table.reim-tbl th:last-child, table.reim-tbl td:last-child { padding-right: 8px; }
.reim-tbl td.tbl-nowrap { overflow: hidden; text-overflow: ellipsis; }

/* ---- 报销管理规则 ---- */
.reim-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.reim-sec-h strong { font-size: 14px; letter-spacing: -0.01em; }
.reim-sec-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.reim-sec .frow { align-items: center; }
.reim-bind {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
}
.reim-bind-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.reim-bind-label { font-size: 12.5px; color: var(--muted); flex: none; }
.reim-bind .reim-bind-input {
  flex: 1; min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--line-2);
  border-radius: 9px; background: #fff; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.01em;
}
.reim-bind .reim-bind-input:focus { border-color: var(--ink); outline: none; }
.reim-bind-ops { display: flex; align-items: center; gap: 6px; flex: none; }
.reim-sync-row { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.reim-sync-row .reim-kpi-sm { min-width: 220px; }
.reim-sync-last { flex: 1 1 240px; min-width: 200px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--r-card); }
.reim-actions { display: flex; justify-content: flex-end; padding-bottom: 4px; }

/* AI 报销的系统内审批环节（2026-11-19）：一行一级，序号 + 配置标签（环节名称 · 审批人）+ 上下移/删除
   2026-11-22 用户口径：「审批人不要像这样只在后面显示一个名字，而是『环节名称-审批人』这样展示，
   用一个配置标签来显示」→ 名称与审批人合成一个标签，名称就地改、审批人小标签点一下换人 */
.reim-flowsteps { display: flex; flex-direction: column; gap: 8px; }
.reim-flowstep {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
}
.reim-flowstep-no {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line-2);
  font-size: 11.5px; font-weight: 650; color: var(--ink-2);
}
.reim-step-tag {
  flex: 0 1 auto; min-width: 0;
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 5px 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff;
}
.reim-step-tag.is-empty { border-style: dashed; }
.reim-step-tag:focus-within { border-color: var(--ink-3); }
.reim-step-tag input.reim-step-name {
  flex: 0 1 auto; min-width: 42px; max-width: 170px; height: 28px;
  border: 0; padding: 0; background: transparent;
  font-size: 12.5px; font-weight: 650; color: var(--ink);
}
.reim-step-tag input.reim-step-name:focus { outline: none; }
.reim-step-tag input.reim-step-name::placeholder { font-weight: 500; color: var(--muted); }
.reim-step-sep { flex: none; color: var(--ink-3); font-size: 12px; }
.reim-step-tag .reim-step-who {
  flex: none; height: 24px; border: 0; cursor: pointer; font-family: inherit;
}
.reim-step-tag .reim-step-who:hover { filter: brightness(.96); }
.reim-flowstep-ops { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.reim-flowstep-ops .icon-mini {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); font-size: 12px; line-height: 1; cursor: pointer;
}
.reim-flowstep-ops .icon-mini:disabled { opacity: .38; cursor: default; }
.reim-flowstep-addrow { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* ---- 审批流预览（弹窗）：模板里配了几级、各叫什么、谁审 ---- */
.rfp-sum {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 0 2px 12px; border-bottom: 1px solid var(--line-2);
}
.rfp-sum-n {
  font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rfp-sum-n em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.rfp-sum-k { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rfp-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  color: var(--muted); padding: 2px 6px; border-radius: 6px;
  background: var(--card-2); border: 1px solid var(--line-2);
}
.rfp-list { padding: 14px 2px 2px; }
.rfp-i { display: flex; gap: 12px; padding-bottom: 14px; position: relative; }
.rfp-i:last-child { padding-bottom: 6px; }
.rfp-i:not(:last-child)::before {
  content: ''; position: absolute; left: 11px; top: 26px; bottom: 0; width: 1.5px; background: var(--line-2);
}
.rfp-no {
  width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-3);
}
.rfp-i.is-pay .rfp-no { background: var(--ink); border-color: var(--ink); color: #fff; }
.rfp-b { min-width: 0; padding-top: 1px; }
.rfp-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rfp-t b { font-size: 13.5px; font-weight: 600; }
.rfp-tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 99px;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--card);
}
.rfp-tag.is-approve { color: var(--ink-2); background: var(--card-2); }
.rfp-tag.is-pay { color: #fff; background: var(--ink); border-color: var(--ink); }
.rfp-s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rfp-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-2);
  font-size: 11.5px; color: var(--muted);
}

/* ---- 表单预览（弹窗，只读） ---- */
.reim-pv { display: flex; flex-direction: column; gap: 8px; }
.reim-pv-row {
  display: grid; grid-template-columns: 148px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
}
.reim-pv-label { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.reim-pv-label em { color: var(--red); font-style: normal; margin-left: 3px; }
.reim-pv-meta { font-style: normal; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.reim-pv-input {
  height: 30px; display: flex; align-items: center; padding: 0 10px;
  border: 1px dashed var(--line-2); border-radius: 9px; background: #fff;
  font-size: 12.5px; color: var(--muted-2);
}
.reim-pv-zone {
  height: 30px; display: flex; align-items: center; padding: 0 10px;
  border: 1px dashed var(--line-2); border-radius: 9px; background: #fff;
  font-size: 12px; color: var(--muted-2);
}
.reim-pv-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.reim-pv-opt {
  font-size: 11.5px; color: var(--ink-3); background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 3px 9px; white-space: nowrap;
}
@media (max-width: 780px) {
  .reim-pv-row { grid-template-columns: 1fr; }
}

/* ============================================================
   日报模板配置（2026-11-18）
   展示逻辑复用合同模板管理（.ct-bucket / .ct-card / .ctype-chip），
   这里只补日报自己的：字段胶囊、配置弹窗分段、字段行编辑器、表单预览。
   ============================================================ */

/* 看板 KPI：与报销一致，纯色底 + 左侧实色条，不用渐变 */
.dr-kpis .rc-kpi { background: var(--card); border-color: transparent; }
.dr-kpis .rc-kpi.is-blue { background: var(--blue-soft); border-left: 3px solid var(--blue); }
.dr-kpis .rc-kpi.is-mint { background: var(--mint-soft); border-left: 3px solid var(--mint); }
.dr-kpis .rc-kpi.is-lemon { background: var(--lemon-soft); border-left: 3px solid var(--lemon); }
.dr-kpis .rc-kpi.is-lilac { background: var(--lilac-soft); border-left: 3px solid var(--lilac); }
.dr-kpis .rc-kpi.is-orange { background: var(--orange-soft); border-left: 3px solid var(--orange); }

/* 版本卡里的字段胶囊 */
.dr-c-fields { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.dr-c-fields .chip { font-size: 11px; height: 21px; padding: 0 8px; }

/* 单模板视图 */
.ct-tp-head .chip { margin-right: 2px; }
.dr-tp-desc {
  margin: 0 0 2px; padding: 0 2px 10px; font-size: 12.5px; color: var(--muted);
}
.dr-vcards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dr-tp-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-2);
}
.dr-tp-foot .grow { flex: 1; }

/* 配置弹窗：三段 */
.dr-sec { padding: 2px 0 4px; }
.dr-sec + .dr-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.dr-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.dr-sec-h strong { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.dr-sec-h .grow { flex: 1; }
.dr-sec-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* 颜色选择 */
.dr-tones { display: flex; gap: 7px; align-items: center; height: 34px; }
.dr-tone {
  width: 26px; height: 26px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--ct-soft); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .12s;
}
.dr-tone:hover { transform: translateY(-1px); }
.dr-tone.is-on { background: var(--ct); border-color: var(--ct); box-shadow: 0 0 0 3px var(--ct-soft); }

/* 勾选项 */
.dr-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.dr-check input { margin: 0; }

/* 字段行编辑器 */
.dr-fields { display: flex; flex-direction: column; gap: 8px; }
.dr-frow {
  border: 1px solid var(--line); border-radius: 12px; background: var(--card-2);
  padding: 9px 10px;
}
.dr-frow-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-frow-top .input, .dr-frow-top .select { height: 30px; }
.dr-frow-extra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.dr-frow-extra .input { height: 28px; font-size: 12px; }
.dr-frow-extra:empty { display: none; }
.dr-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.dr-empty {
  padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px;
  font-size: 12.5px; color: var(--muted); text-align: center;
}
#tpl-activate-box { margin-top: 10px; }

/* 表单预览（员工端同一个 fieldHtml 渲染，只读） */
.dr-pv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.dr-pv-head b { font-size: 14px; letter-spacing: -.01em; }
.dr-pv-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.dr-pv { pointer-events: none; }
.dr-pv .app-field > span { font-size: 12.5px; }
.dr-pv input, .dr-pv textarea, .dr-pv select { background: #fff; }

/* 员工端「说明文字」字段 */
.app-note {
  padding: 9px 12px; border-left: 3px solid var(--line-2);
  background: var(--card-2); border-radius: 0 10px 10px 0;
}
.app-note b { font-size: 12.5px; color: var(--ink-2); }
.app-note p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; white-space: pre-wrap; }

/* 配置弹窗里的勾选框：别继承 .field input 的满宽样式 */
.dr-check input[type="checkbox"] {
  width: 15px; height: 15px; min-width: 15px; margin: 0;
  accent-color: var(--ink); flex: none;
}
.field > .dr-check { height: 34px; }

/* ---- 管理规则：分段 + 数字带单位 + 勾选项成组 ---- */
.dr-rules-card { padding: 14px 16px 16px; }
.dr-rules-card .dr-sec:first-child { padding-top: 0; }
.dr-num { position: relative; display: flex; align-items: center; }
.dr-num input { padding-right: 42px; }
.dr-num i {
  position: absolute; right: 12px; font-style: normal; font-size: 11.5px; color: var(--muted-2);
  pointer-events: none;
}
.dr-toggles { display: flex; flex-wrap: wrap; gap: 10px 22px; min-height: 34px; align-items: center; }
.field > .dr-check { height: 34px; }

/* ============================================================================
   请假管理 · 额度总览（2026-11-17 重做）
   原版的问题：工号作为 <div> 挂在姓名下面，一行占两行高；管控占用挤成两行纯文本；
   表格没有 colgroup，列宽被内容撑开，数字列不对齐、读不出大小关系。
   现在：姓名与工号同行、余额列右对齐带单位小字、管控占用 chip 化并按时长余量分色。
   ========================================================================== */
.lv-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lv-toolbar .spacer { flex: 1; min-width: 8px; }

/* 数据截至 + 刷新（页面右上角，所有页签都看得到） */
.lv-sync { display: flex; align-items: center; gap: 8px; }
.lv-sync-tip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lv-sync-tip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.lv-sync-tip.is-stale i { background: var(--orange); }

/* 员工列：姓名 + 工号同一行（baseline 对齐，工号小一号） */
.lv-emp { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.lv-emp b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-emp span { font-size: 11.5px; color: var(--muted); font-family: var(--f-num); flex: none; }
.lv-dept { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* 余额列：数字右对齐 + 等宽，单位做小字，一眼能比大小 */
table.tbl.lv-alloc th.lv-th-num { text-align: right; }
.lv-num { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-num b { font-weight: 650; font-size: 13.5px; }
.lv-num i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.lv-num.is-zero b, .lv-num.is-none { color: var(--muted-2); }
.lv-num.is-neg b, .lv-num.is-neg i { color: #a8392f; }

/* 管控占用：一行 chip，不换行堆叠 */
.lv-ctrl-chips { display: flex; align-items: center; gap: 5px; }

/* ----------------------------------------------------------------------------
   请假 · 2026-11-19 改版样式
   ① 假种标签按假种配色（typeChip：类别定色相，同一假种永远同色，颜色只落在标签上）
   ② 申请记录筛选栏（申请人/部门/假种/时间段）
   ③ 额度总览列头：假种名 + 口径标签同行、第二行写周期额度（「48 小时/每月」），
      不再整列涂底色（用户原话：「只需要展示是系统还是法定，不需要把整个字段都填充上颜色」）
   ④ 假种配置弹窗：四段式表单 + 右下角启用开关
   ---------------------------------------------------------------------------- */

/* ① 假种彩色标签（申请记录 / 假种配置 / 额度总览通用） */
.lv-type { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }

/* ② 申请记录筛选栏 */
.lv-req-filter { margin-bottom: 10px; }
.lv-req-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* 筛选条里的日期区间按钮：和同排搜索框 / 下拉同高、同圆角（2026-11-22） */
.lv-req-filter .pk-rg-btn { height: 34px; min-height: 34px; border-radius: var(--r-pill); font-size: 13px; }
.filter-input { height: 34px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: #fff;
  padding: 0 12px; font-size: 13px; color: var(--ink); font-family: inherit; }
.filter-input:hover { border-color: var(--ink-3); }
.filter-input:focus { border-color: var(--ink); outline: none; }

/* ③ 额度总览：口径标签放假种名后面（同行），颜色只落在标签上 */
.lv-actions { display: inline-flex; align-items: center; gap: 8px; }
table.tbl.lv-alloc th.lv-th-bal { line-height: 1.3; padding-top: 8px; padding-bottom: 8px; text-align: left; }
.lv-th-line { display: flex; align-items: center; justify-content: flex-start; gap: 5px; min-width: 0; }
.lv-th-name { font-weight: 640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-kind { display: inline-block; flex: none; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 1.7; }
.lv-kind.is-legal { background: var(--blue-soft); color: #2b5a9e; }
.lv-kind.is-sys { background: var(--mint-soft); color: #1f7a58; }
.lv-kind.is-both { background: linear-gradient(90deg, var(--blue-soft) 0 50%, var(--mint-soft) 50% 100%); color: #2f6355; }
.lv-kind.is-ref { background: #f2ede7; color: var(--muted); }
.lv-th-quota { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }

/* ④ 假种配置：列表 + 弹窗表单 */
.lv-types-tbl { table-layout: fixed; width: 100%; min-width: 960px; }
.lv-types-tbl td, .lv-types-tbl th { overflow: hidden; }
.lv-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.lv-fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lv-fld > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.lv-fld input, .lv-fld select { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 0 10px; font-size: 13px; color: var(--ink); background: #fff; font-family: inherit; min-width: 0; }
.lv-fld input:focus, .lv-fld select:focus { border-color: var(--ink); outline: none; }
.lv-fld-full { grid-column: 1 / -1; }
.lv-fld textarea { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px 10px;
  font-size: 12.5px; color: var(--ink); background: #fff; font-family: inherit; resize: vertical; }
.lv-fld textarea:focus { border-color: var(--ink); outline: none; }
.lv-fld-hint { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.lv-enable-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.lv-enable-row > span { font-size: 12.5px; color: var(--muted); }
.lv-switch { position: relative; width: 40px; height: 22px; border-radius: 11px; border: none;
  background: var(--line-2); cursor: pointer; transition: background .18s; padding: 0; flex: none; }
.lv-switch i { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: left .18s; }
.lv-switch.is-on { background: var(--green); }
.lv-switch.is-on i { left: 20px; }

/* ============================================================================
   请假 · 审批流程预览（读钉钉模板渲染，2026-11-17）
   流程真源在钉钉 OA 后台，这里只是把它画出来 —— 所以用时间轴表达顺序，
   条件分支单独成块，让人一眼看出「我这个时长会走哪条路」。
   ========================================================================== */
.oa-flow-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.oa-flow-name { font-size: 15px; font-weight: 700; }
.oa-flow-memo { font-size: 12px; color: var(--muted); margin-top: 3px; }
.oa-flow-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.oa-col-h { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.oa-flow { position: relative; padding-left: 4px; }
.oa-node { position: relative; padding: 0 0 18px 26px; }
.oa-node::before { content: ''; position: absolute; left: 5px; top: 12px; bottom: -2px; width: 1px; background: var(--line-2); }
.oa-node:last-child::before { display: none; }
.oa-dot { position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2); box-sizing: border-box; }
.oa-dot.is-start { border-color: var(--ink); background: var(--ink); }
.oa-dot.is-route { border-color: var(--lemon); background: var(--lemon); }
.oa-dot.is-cc { border-color: var(--blue); background: var(--blue); }
.oa-title { font-size: 13px; font-weight: 650; }
.oa-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.6; }
.oa-mode { font-style: normal; margin-left: 6px; font-size: 11px; color: var(--ink-3);
  background: var(--card-2); border-radius: var(--r-pill); padding: 1px 7px; }

.oa-branches { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.oa-branch { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px 11px; background: var(--card-2); }
.oa-branch-cond { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.oa-branch-step { font-size: 12px; color: var(--muted); margin-top: 3px; }
.oa-branch-step i { font-style: normal; margin-left: 6px; font-size: 11px; color: var(--ink-3); }

.oa-fields { display: flex; flex-direction: column; gap: 6px; }
.oa-field { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 8px 11px; background: var(--card-2); }
.oa-field-name { font-size: 12.5px; }

/* ---- 模板配置（日报）：卡片统一尺寸，字段标签最多两行，超出以省略号收尾 ---- */
#dr-tpl-body .ct-buckets .ct-card { height: 176px; overflow: hidden; }
#dr-tpl-body .ct-buckets .ct-card .ct-c-head { flex: 0 0 auto; }
#dr-tpl-body .ct-buckets .ct-card .dr-c-fields {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  flex: 0 0 auto;
  max-height: 52px;
  margin-top: 7px;
}
#dr-tpl-body .ct-buckets .ct-card .dr-c-fields > .chip {
  margin: 0 5px 5px 0;
  vertical-align: middle;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
#dr-tpl-body .ct-buckets .ct-card .ct-c-meta,
#dr-tpl-body .ct-buckets .ct-card .ct-c-note { flex: 0 0 auto; }
#dr-tpl-body .ct-buckets .ct-card .ct-c-note { -webkit-line-clamp: 1; }
#dr-tpl-body .ct-buckets .ct-card .ct-c-foot { flex: 0 0 auto; margin-top: auto; }

/* ================= 日报模板编辑器（2026-11-17 改版） ================= */
/* 两个页面（模板配置 / 日报字段）左右切换 */
.dr-pgbar { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dr-pgtab {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.dr-pgtab b { font-size: 11px; font-weight: 700; color: var(--muted); }
.dr-pgtab:hover { border-color: var(--line-2); }
.dr-pgtab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.dr-pgtab.is-on b { color: rgba(255, 255, 255, .7); }

/* 适用范围：组织架构树 */
.dr-scope-box { margin-top: 10px; }
.dr-scope-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dr-scope-sum { font-size: 11.5px; color: var(--ink-2); background: var(--card-2); border-radius: 999px; padding: 1px 8px; }
.dr-tree {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  max-height: 236px; overflow: auto; padding: 6px 5px;
}
.dr-tree-row { display: flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 7px; }
.dr-tree-row:hover { background: var(--card-2); }
.dr-tree-tog {
  flex: none; width: 16px; height: 16px; border: 0; background: transparent;
  color: var(--muted); font-size: 10px; line-height: 1; cursor: pointer; padding: 0;
}
.dr-tree-tog.is-leaf { visibility: hidden; }
.dr-tree-lab { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-size: 12.5px; cursor: pointer; }
.dr-tree-lab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-tree-lab em {
  flex: none; font-style: normal; font-size: 10.5px; color: var(--muted-2);
  background: var(--card-2); border-radius: 999px; padding: 0 5px;
}
.dr-tree-kids { display: block; }

/* 指定人员：下拉搜索 */
.dr-pick { position: relative; }
.dr-pick-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; margin-bottom: 8px; }
.dr-chip {
  display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 5px 0 9px;
  border-radius: 999px; background: var(--blue-soft, #eef4fd); color: #2b5a9e;
  font-size: 12px; font-weight: 600;
}
.dr-chip button {
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 2px; opacity: .65;
}
.dr-chip button:hover { opacity: 1; }
.dr-pick-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin-top: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 30px -20px rgba(16, 24, 40, .55); max-height: 220px; overflow: auto; padding: 4px;
}
.dr-pick-item {
  display: flex; align-items: baseline; gap: 8px; width: 100%;
  border: 0; background: transparent; padding: 7px 9px; border-radius: 7px;
  text-align: left; font-size: 12.5px; cursor: pointer;
}
.dr-pick-item:hover { background: var(--card-2); }
.dr-pick-item em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }

/* 每周：一行 7 个，不再换行 */
.dr-wk { display: flex; flex-wrap: nowrap; gap: 6px; }
.dr-wk-btn {
  flex: 1 1 0; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
}
.dr-wk-btn:hover { border-color: var(--line-2); }
.dr-wk-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 每月：按当月天数铺 1..N */
.dr-md { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; }
.dr-md-btn {
  height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  color: var(--ink-2); font-size: 12px; cursor: pointer;
}
.dr-md-btn:hover { border-color: var(--line-2); }
.dr-md-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 截止前提醒：输入框 + 快捷数字 */
.dr-quick-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.dr-quick { display: flex; gap: 4px; }
.dr-quick button {
  height: 26px; min-width: 34px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: 7px; background: #fff; color: var(--ink-2); font-size: 12px; cursor: pointer;
}
.dr-quick button:hover { border-color: var(--line-2); }
.dr-quick button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 日报字段：按员工填写页的样子编辑 */
.dr-fcard { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px 12px; margin-bottom: 10px; }
.dr-fcard:hover { border-color: var(--line-2); }
.dr-fc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.dr-fc-no {
  flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--card-2);
  color: var(--muted); font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.dr-fc-title {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed transparent; background: transparent;
  font-size: 13.5px; font-weight: 650; color: var(--ink); padding: 2px 0; outline: none;
}
.dr-fc-title:focus { border-bottom-color: var(--line-2); }
.dr-fc-title::placeholder { font-weight: 500; color: var(--muted-2); }
.dr-fc-req { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.dr-fc-type { flex: none; width: 104px; height: 26px; font-size: 12px; }
.dr-fc-tools { flex: none; display: flex; gap: 2px; }
.dr-fc-body { padding-left: 28px; }
.dr-fc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.dr-fp-box {
  display: flex; align-items: center; min-height: 32px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card-2);
  color: var(--muted); font-size: 12.5px;
}
.dr-fp-area { min-height: 56px; align-items: flex-start; }
.dr-fp-box.is-empty { color: var(--muted-2); font-style: italic; }
.dr-fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-fp-chip { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 2px 10px; font-size: 12px; color: var(--ink-2); }
.dr-fp-up { border: 1px dashed var(--line-2); border-radius: 8px; padding: 9px 10px; text-align: center; font-size: 12.5px; color: var(--muted); }
.dr-fp-note { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }

@media (max-width: 720px) {
  .dr-wk { gap: 4px; }
  .dr-wk-btn { height: 28px; font-size: 11.5px; }
  .dr-fc-body { padding-left: 0; }
  .dr-fc-type { width: 88px; }
}

/* ============================================================================
 * 2026-11-18 日报：提交记录筛选（人员下拉搜索）+ 详情一字段一卡片
 * + 模板配置里的规则开关行
 * 只追加，不动既有规则。
 * ========================================================================== */

/* ---------- 筛选条 ---- */
.dr-filter { padding: 12px 14px; }
.dr-fgrid {
  display: grid;
  grid-template-columns: 240px 160px 180px 140px minmax(220px, 1fr);
  gap: 10px 12px;
  align-items: end;
}
.dr-fg { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dr-fg > span { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }
.dr-fg .input, .dr-fg .select { height: 34px; width: 100%; }
.dr-fg-range { display: flex; align-items: center; gap: 6px; }
.dr-fg-range .input { min-width: 0; }
.dr-fg-range i { font-style: normal; font-size: 11.5px; color: var(--muted); flex: none; }

/* ---------- 姓名搜索框（重做，比原来的 120px 小方块好点） ---- */
.dr-kwbox {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 8px 0 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.dr-kwbox:hover { border-color: var(--line-2, #cfd4dc); }
.dr-kwbox:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}
.dr-kwbox.is-picked { background: rgba(59, 130, 246, .06); border-color: rgba(59, 130, 246, .45); }
.dr-kw-ico { display: flex; color: var(--muted); flex: none; }
.dr-kwbox:focus-within .dr-kw-ico, .dr-kwbox.is-picked .dr-kw-ico { color: var(--blue); }
.dr-kw-input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font-size: 13px; color: var(--text, #101828);
}
.dr-kw-input::placeholder { color: var(--muted); }
.dr-kwbox.is-picked .dr-kw-input { font-weight: 600; }
.dr-kw-clear {
  flex: none; width: 18px; height: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(16, 24, 40, .08); color: var(--muted);
  font-size: 13px; padding: 0;
}
.dr-kw-clear:hover { background: rgba(16, 24, 40, .16); color: var(--text, #101828); }

.dr-kw-list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 5px);
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  box-shadow: 0 18px 38px -22px rgba(16, 24, 40, .5), 0 2px 8px -4px rgba(16,24,40,.12);
  max-height: 292px; overflow: auto; padding: 5px;
}
.dr-kw-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 9px; border-radius: 8px; text-align: left;
  font-size: 13px; color: var(--text, #101828);
}
.dr-kw-item:hover, .dr-kw-item:focus-visible { background: rgba(59, 130, 246, .09); outline: none; }
.dr-kw-item b { font-weight: 600; }
.dr-kw-item em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.dr-kw-item .dr-kw-tag {
  margin-left: auto; font-style: normal; font-size: 10.5px;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(16, 24, 40, .06); color: var(--muted);
}
.dr-kw-item .dr-kw-cnt {
  margin-left: auto; font-style: normal; font-size: 10.5px;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(16, 185, 129, .12); color: #0f7b56;
}
.dr-kw-item .dr-kw-tag + .dr-kw-cnt { margin-left: 6px; }
.dr-kw-none, .dr-kw-tip {
  padding: 9px 10px; font-size: 11.5px; color: var(--muted);
}
.dr-kw-tip { border-top: 1px dashed var(--line); margin-top: 3px; }

/* ---------- 详情抽屉：一个字段一个框 ---- */
.dr-dmeta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  padding-bottom: 12px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.dr-dcards { display: flex; flex-direction: column; gap: 10px; }
.dr-dcard {
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--card);
  overflow: hidden;
}
.dr-dcard.is-note { background: var(--card-2, #f8fafc); }
.dr-dcard-h {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: var(--card-2, #f8fafc);
  border-bottom: 1px solid var(--line);
}
.dr-dcard-no {
  flex: none; width: 17px; height: 17px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
  background: rgba(59, 130, 246, .12); color: var(--blue);
}
.dr-dcard-h b { font-size: 12.5px; font-weight: 700; }
.dr-dcard-req {
  font-style: normal; font-size: 10px; font-weight: 600;
  padding: 1px 5px; border-radius: 4px;
  background: rgba(239, 68, 68, .1); color: #c2321f;
}
.dr-dcard-nil {
  font-style: normal; font-size: 10.5px; color: var(--muted);
  padding: 1px 6px; border-radius: 999px; background: rgba(16, 24, 40, .05);
}
.dr-dcard-b {
  padding: 10px 12px 12px;
  font-size: 12.8px; line-height: 1.72;
  white-space: pre-wrap; word-break: break-word;
  max-height: 320px; overflow: auto;
}
.dr-dcard-b img { max-width: 100%; border-radius: 8px; }
.dr-dcard-empty { color: var(--muted); font-size: 12px; }
.dr-dedits { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.dr-dedits-h { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.dr-dedit {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 0; border-bottom: 1px dashed var(--line);
}
.dr-dedit:last-child { border-bottom: 0; }

/* ---------- 模板配置：规则开关行 ---- */
.dr-inline-num {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted);
}
.dr-inline-num input {
  width: 54px; height: 30px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--card); font-size: 12.5px; text-align: center;
  color: var(--text, #101828);
}
.dr-toggles .dr-check { font-size: 12.5px; }

@media (max-width: 1180px) {
  .dr-fgrid { grid-template-columns: 1fr 1fr; }
  .dr-fg-wide { grid-column: 1 / -1; }
}

/* 截止前提醒的 5/10/15/20/25/30 快捷按钮：宁可换行也不要被右边裁掉 */
.dr-quick-row { flex-wrap: wrap; }
.dr-quick { flex-wrap: wrap; }

/* ============================ 报销模块 2026-11-18 ============================ */
/**
 * 操作列（2026-11-19 用户口径）：「查看 OA 单」和「标记已报销」是**前后关系**，不是上下关系，
 * 所以横排一行；「标记已报销」是这一行唯一要动手做的事，给实心黑底高亮。
 * 2026-11-19 追加：已报销 / 已驳回这类没有「标记已报销」的行，只剩「查看 OA 单」时要贴到最右边
 * （用户原话：「直接放到边框最后面，不要留白」）→ 整列右对齐。
 */
.rc-ops { display: flex; flex-direction: row; gap: 3px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.rc-ops .rc-bookbtn,
.rc-ops .rc-poolbtn { margin-left: 0; width: auto; justify-content: center; flex: none; }
.rc-ops .rc-bookbtn,
.rc-ops .rc-poolbtn { font-size: 11px; padding: 4px 5px; }
.rc-ops .rc-poolbtn.is-pool {
  background: var(--ink); border-color: var(--ink); border-style: solid; color: #fff; font-weight: 600;
}
.rc-ops .rc-poolbtn.is-pool:hover { background: #000; border-color: #000; color: #fff; }

/* 报销类型列：一个 chip + 「+N」小字；多选的类型不铺满整行 */
.reim-type-cell { white-space: nowrap; overflow: hidden; }
.reim-type { display: inline-flex; align-items: center; gap: 3px; }
.reim-type .chip { font-size: 11px; padding: 1px 5px; }
.reim-type-more { font-size: 11px; color: var(--muted); font-style: normal; }

/* 用途 / 摘要：列宽自适应（窄屏约 148px，宽屏自动变宽），单行省略号 + 悬停看全文，
   点整行进详情看完整内容。「已驳回 / 已撤销」这类标记要常驻可见 —— 放左边、只让文字截断，
   否则标签会被省略号吃掉。 */
.reim-tbl td.reim-what {
  white-space: nowrap; overflow: hidden;
}
.reim-what-in { display: flex; align-items: center; gap: 5px; overflow: hidden; max-width: 100%; }
.reim-what-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.reim-flag { flex: none; }
.reim-flag .chip { font-size: 10.5px; padding: 0 5px; }
.reim-amount { text-align: right; white-space: nowrap; }

/* 详情抽屉字段：左边字段名、右边内容（2026-11-20 用户「不需要上下」）
   一屏放得下更多字段，纵向也更整齐 —— 原「一张卡：标题在上、值在下」只留给日报详情。 */
.kv-list {
  margin: 0; border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); overflow: hidden;
}
.kv-row { display: flex; align-items: flex-start; gap: 14px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-row > dt { flex: none; width: 124px; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.7; }
.kv-row > dd { flex: 1; min-width: 0; margin: 0; font-size: 12.8px; color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .kv-row { gap: 10px; }
  .kv-row > dt { width: 84px; }
}

/* 附件分组：发票 / 附件（各种截图） */
.rc-file-group { margin-top: 14px; }
.rc-file-h { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.rc-file-h > b { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.rc-file-empty { font-size: 12px; color: var(--muted); padding: 2px 0 0 1px; }
.rc-file-type {
  flex: none; font-size: 10.5px; line-height: 1.6; padding: 0 6px; border-radius: 4px;
  background: rgba(16, 24, 40, .06); color: var(--ink-3);
}

/* ============================ 请假 / 加班 2026-11-18 ============================ */
/* 假种配置「无余额」：不要用 chip 抢戏，灰字即可 */
.lv-bal-none { color: var(--muted); font-size: 12px; }

/* 申请记录：事由列吃剩余宽度，不用某列硬扛一大块留白 */
.lv-req-tbl { table-layout: fixed; width: 100%; min-width: 980px; }
.lv-req-tbl td, .lv-req-tbl th { overflow: hidden; }
.lv-req-tbl .lv-reason { color: var(--ink-2); text-overflow: ellipsis; }
/* 单号列：编号一行，来源/超额小标可折到第二行（150px 装不下「编号 + 钉钉 + 超额」） */
.lv-req-tbl td:first-child { white-space: normal; line-height: 1.7; }
/* 阈值颜色由 HR 自己配：chip 前面点一个色点，颜色即策略里配的那个 */
.lv-cc { display: inline-flex; align-items: center; gap: 5px; }
.lv-cc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }

/* ---- 管控策略编辑弹窗（2026-11-18 重做） ---- */
.lpc-tabs { margin-bottom: 12px; }
.lpc-sec { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.lpc-sec:first-child { padding-top: 2px; }
.lpc-sec:last-child { border-bottom: 0; padding-bottom: 2px; }
.lpc-sec-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.lpc-sec-sub { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.lpc-input {
  width: 100%; height: 34px; padding: 0 11px; border: 1px solid var(--line-2);
  border-radius: 10px; background: #fff; font-size: 13px;
}
.lpc-input:focus { border-color: var(--ink); outline: none; }
.lpc-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

.lpc-scope-box { margin-top: 8px; }
.lpc-pickrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lpc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lpc-chips.is-panel {
  padding: 10px; border: 1px dashed var(--line-2); border-radius: 10px;
  background: var(--card-2); max-height: 148px; overflow-y: auto; margin-bottom: 8px;
}
.lpc-chips.is-tight { gap: 4px; margin-top: 4px; }
.lpc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-3);
  font-size: 12px; line-height: 1.5;
}
.lpc-chip.is-pick:hover { border-color: var(--ink-3); color: var(--ink); }
.lpc-chip.is-pick.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lpc-chip.is-orphan { border-style: dashed; }
.lpc-chip.is-orphan .lpc-tag { margin-left: 2px; }
.lpc-chip.is-selected { background: var(--card-2); border-color: var(--line); color: var(--ink); }
.lpc-chip.is-static { cursor: default; }
.lpc-chip.is-selected button, .lpc-chip button {
  border: 0; background: none; padding: 0 0 0 2px; margin: 0; cursor: pointer;
  color: var(--muted); font-size: 13px; line-height: 1;
}
.lpc-chip.is-selected button:hover { color: var(--red); }

.lpc-rules, .lpc-warns { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.lpc-rule, .lpc-warn { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lpc-rule select {
  height: 32px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; font-size: 12.5px; color: var(--ink);
}
.lpc-rule input[type="number"], .lpc-warn input[type="number"] {
  width: 76px; height: 32px; padding: 0 8px; border: 1px solid var(--line-2);
  border-radius: 8px; background: #fff; font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.lpc-rule input[type="number"]:focus, .lpc-warn input[type="number"]:focus { border-color: var(--ink); outline: none; }
.lpc-rule-txt { font-size: 12.5px; color: var(--ink-3); }
.lpc-rule-unit { font-size: 12px; color: var(--muted); min-width: 28px; }
.lpc-del {
  border: 1px solid var(--line-2); background: var(--card); color: var(--muted);
  padding: 4px 9px; border-radius: 8px; font-size: 11.5px; cursor: pointer;
}
.lpc-del:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.lpc-del:disabled { opacity: .4; cursor: not-allowed; }

/* 阈值颜色：原生取色器藏在方块后面，点方块就是改颜色 */
.lpc-color { position: relative; width: 26px; height: 26px; flex: none; cursor: pointer; }
.lpc-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lpc-color i {
  display: block; width: 100%; height: 100%; border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, .12);
}

/* 超额处理三态：整块可点，选中墨色描边 */
.lpc-opts { display: grid; gap: 8px; }
.lpc-opt {
  display: grid; grid-template-columns: 18px 1fr; grid-template-rows: auto auto;
  column-gap: 9px; align-items: start; cursor: pointer;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--card);
}
.lpc-opt input { grid-row: 1 / span 2; margin-top: 2px; accent-color: var(--ink); }
.lpc-opt b { font-size: 13px; font-weight: 600; }
.lpc-opt span { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.lpc-opt:hover { border-color: var(--line); }
.lpc-opt.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.lpc-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between;
  margin-top: 8px; padding: 9px 12px; border-radius: 10px;
  background: var(--card-2); border: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-3); line-height: 1.6;
}
.lpc-note b { font-weight: 600; color: var(--ink); }

/* 签字链步骤 */
.lpc-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.lpc-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--card);
}
.lpc-step-no {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.lpc-step-b { flex: 1; min-width: 0; }
.lpc-step-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lpc-step-h b { font-size: 13px; }
.lpc-tag {
  font-size: 10.5px; padding: 1px 7px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--muted);
}
.lpc-mode { margin-top: 6px; }
.lpc-step-ops { display: flex; flex-direction: column; gap: 4px; }
.lpc-checks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.lpc-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.lpc-check input { width: 15px; height: 15px; accent-color: var(--ink); cursor: pointer; }

/* 底部：启用开关 + 按钮 */
.lpc-enable { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; }
.lpc-foot-btns { display: flex; gap: 8px; margin-left: auto; }
.lpc-preview-layer { z-index: 60; }

/* ============================ 考勤管理 2026-11-18 重做 ============================ */
/* 指标卡：一排六张，左侧一条颜色细条，大数字排版（参考稿的数据密度，本系统的视觉） */
/* 指标卡（2026-11-19 重做）：原先是参考稿的蓝/绿/橙/红/黄/紫六根竖条 + 彩色数字，
   和本系统「中性底 + 发丝线 + 颜色只标状态」完全是两套语言，用户判定为「太丑」。
   现在统一走全局 .cell-label / .cell-value / .cell-foot 的排版，卡片本身纯中性。 */
.at-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.at-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (max-width: 1320px) {
  .at-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .at-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .at-stats, .at-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.at-stat {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  padding: 13px 15px 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
}
/* 总览那排指标卡铺系统自带的马卡龙 tint（浅紫/橙/黄/蓝/绿），
   底色交给 .cell-lilac 这些现成类，卡里不写死色值 */
.at-stat.cell-tinted { border-color: transparent; background: var(--cell-tint); }
.at-stat .cell-label { font-size: 11px; letter-spacing: .03em; font-weight: 600; }
.at-stat .cell-value { font-size: 26px; }
.at-stat .cell-value small { font-size: 11.5px; margin-left: 2px; }
.at-stat .cell-foot {
  display: block; font-size: 11px; color: var(--tint-soft, var(--muted-2));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 唯一需要被看见的那一个：缺卡 > 0 才染红 */
.at-stat.is-warn .cell-value { color: var(--red); }

/* 出勤账：左边出勤率、右边「应出勤人天」的四段拆解。
   实到 + 请假 + 缺卡 + 无考勤数据 = 应出勤，一眼能加得起来，
   这样「为什么应出勤几乎等于实到」就不再是黑箱。 */
.at-sum, .at-panel, .at-stat { --at-accent: #a48ce0; }
.at-sum {
  display: grid; grid-template-columns: minmax(176px, 224px) minmax(0, 1fr); gap: 22px;
  align-items: center; padding: 15px 18px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
}
/* 2026-11-19 用户口径：「最顶部这张长长的卡片不需要背景色，其他颜色可以保留」
   —— 底色回到白卡，里面的实到/请假/缺卡仍按原色区分 */
/* 整张卡铺浅紫（--lilac-soft），拆解条里的「实到」也用同一族的紫，
   不再让黑色当主色 */
.at-sum.cell-tinted {
  border-color: transparent; background: var(--cell-tint);
  /* 浅紫底上 11px 小字用 .cell-lilac 默认的 60% 透明度会发灰，这里提亮到 82% */
  --tint-soft: rgba(74, 54, 128, .82);
}
.at-sum.cell-tinted .at-sum-v,
.at-sum.cell-tinted .at-sum-frac b,
.at-sum.cell-tinted .at-sum-head b { color: var(--tint-ink); }
.at-sum.cell-tinted .at-sum-frac,
.at-sum.cell-tinted .at-sum-head,
.at-sum.cell-tinted .at-sum-note,
.at-sum.cell-tinted .at-sum-legend { color: var(--tint-soft); }
.at-sum.cell-tinted .at-sum-legend b { color: var(--tint-ink); }
.at-sum.cell-tinted .at-sum-legend em { color: var(--tint-soft); }
.at-sum.cell-tinted .at-sum-meta { color: var(--tint-soft); }
@media (max-width: 900px) { .at-sum { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.at-sum-main { padding-right: 22px; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .at-sum-main { padding-right: 0; border-right: 0; } }
.at-sum-v {
  margin: 3px 0 3px; font-family: var(--f-num); font-size: 40px; font-weight: 700;
  letter-spacing: -.03em; line-height: 1.02; font-variant-numeric: tabular-nums;
}
.at-sum-v small { margin-left: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
/* 出勤率为空时只留一条淡灰破折号，别让它读成一个重色块 */
.at-sum-none { color: var(--muted-2); font-weight: 600; }
.at-sum-frac { font-size: 11.5px; color: var(--muted); }
.at-sum-frac b { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.at-sum-note { margin-top: 5px; font-size: 10.5px; line-height: 1.5; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.at-sum-head { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: var(--muted); }
.at-sum-head b { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.at-sum-meta { margin-left: auto; font-size: 11px; color: var(--muted-2); }
.at-sum-bar { display: flex; gap: 2px; height: 10px; margin: 9px 0 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .78); }
.at-sum-bar i { display: block; height: 100%; min-width: 0; }
.at-sum-bar .is-ok { background: var(--at-accent); }
.at-sum-bar .is-leave { background: var(--lemon); }
.at-sum-bar .is-miss { background: var(--red); }
.at-sum-bar .is-nodata { background: repeating-linear-gradient(135deg, var(--muted-2) 0 3px, var(--card-2) 3px 6px); }
.at-sum-legend { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: 11.5px; color: var(--muted); }
.at-sum-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.at-sum-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.at-sum-legend b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.at-sum-legend em { font-style: normal; color: var(--muted-2); }
.at-lg-ok i { background: var(--at-accent); }
.at-lg-leave i { background: var(--lemon); }
.at-lg-miss i { background: var(--red); }
.at-lg-nodata i { background: repeating-linear-gradient(135deg, var(--muted-2) 0 2px, var(--card-2) 2px 4px); }

/* 每日出勤构成：堆叠柱（实到 / 请假 / 缺卡）。原来的单色柱子从 0 起算，
   24 根一样高，看着像贴纸；堆叠之后每天的缺口是能看见的。 */
.at-stack { display: flex; align-items: flex-end; justify-content: center; gap: 0; flex: 1; min-height: 122px; }
/* 2026-11-22 用户口径：「换成最近一周后柱子会变粗，太丑，要保持和最近一月同样的粗细」。
   做法：列宽固定 24px（装得下 11/16 这种日期）、柱体最宽 14px，整组居中 ——
   最近一月 23 根放不下时列会自己收窄（跟改之前一样挤满），最近一周 / 今日 就只有几根细柱居中排开，
   两种视图的柱宽都是 14px，不会一根粗一根细。 */
.at-stack-col { flex: 0 1 auto; width: 24px; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* 柱少（≤10 根）时列加宽到 46px、柱体仍是 14px：日期标签「11/16」放得下不打架，
   柱子也不会挤在一起显得像一根粗柱。 */
.at-stack.is-few .at-stack-col { width: 46px; }
.at-stack-bar { width: 100%; max-width: 14px; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.at-stack-fill { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column-reverse; }
.at-stack-fill i { display: block; width: 100%; flex: 0 0 auto; }
/* DOM 里最后一段就是柱子顶端（空段已经省略），只给顶端收个圆角 */
.at-stack-fill i:last-child { border-radius: 2px 2px 0 0; }
/* 2026-11-22 用户口径：「每日出勤构成这个表的颜色太深了，在现在的颜色基础上变浅、变透明一些就好，
   能看清就行，不然太刺眼」→ 色相不动，只把柱体换成同色的半透明版（卡底是浅色，等于又浅又透）。
   请假是柠檬黄本身就淡，透明度留高一点，不然顶端那一小段会看不见。 */
.at-stack-fill .is-ok { background: color-mix(in srgb, var(--at-accent) 46%, transparent); }
.at-stack-fill .is-leave { background: color-mix(in srgb, var(--lemon) 62%, transparent); }
.at-stack-fill .is-miss { background: color-mix(in srgb, var(--red) 50%, transparent); }
.at-stack-col > span { font-size: 9px; color: var(--muted); text-align: center; white-space: nowrap; visibility: hidden; }
/* 标记哪些柱子要显示日期：柱数 ≤10 时每根都标（今日 / 最近一周），更多时每 4 根标一个 */
.at-stack-col.is-labeled > span { visibility: visible; }
.at-stack-col:hover .at-stack-fill { opacity: .72; }

/* 折线图（平均在司时长） */
.at-lc { display: block; width: 100%; height: 100%; min-height: 120px; }
.at-lc-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.at-lc-ax { font-size: 8.5px; fill: var(--muted-2); font-family: var(--f-sans); }
.at-lc-area { fill: rgba(155, 133, 221, .14); }
/* 「平均在司时长」用橙红，和左边紫色的出勤构成分开（2026-11-19 用户口径） */
.at-panel.is-warm { --at-accent: #e0743f; }
.at-panel.is-warm .at-lc-area { fill: rgba(224, 116, 63, .13); }
.at-lc-line { fill: none; stroke: var(--at-accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.at-lc-dot { fill: var(--card); stroke: var(--at-accent); stroke-width: 1.4; }
.at-lc-dot.is-last { fill: var(--at-accent); }

/* 2×2 面板：卡片等高，内容区自己撑满，不再出现「一张卡很高一张卡很矮」 */
.at-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1100px) { .at-grid2 { grid-template-columns: minmax(0, 1fr); } }
.at-panel { display: flex; flex-direction: column; min-height: 214px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.at-panel-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.at-panel-h h3 { margin: 0; font-size: 13px; font-weight: 700; }
.at-panel-h .sub { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.at-panel-b { flex: 1; min-height: 0; padding: 12px 14px; }
.at-panel-b.is-scroll { overflow: auto; }
.at-none { display: flex; align-items: center; justify-content: center; min-height: 120px; height: 100%; color: var(--muted); font-size: 12.5px; }
/* 一行式空态：塞在出勤率卡片右半边时不要撑 120px 高 */
.at-none.is-inline { min-height: 0; height: auto; justify-content: flex-start; padding: 18px 2px; text-align: left; }

/* 柱状趋势 */
.at-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; }
.at-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.at-bar i { display: block; width: 100%; max-width: 15px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(59,130,246,.8), rgba(59,130,246,.42)); }
.at-bars.is-line .at-bar i { background: linear-gradient(180deg, rgba(16,185,129,.8), rgba(16,185,129,.4)); }
.at-bar span { font-size: 9px; color: var(--muted); white-space: nowrap; }
.at-bar:nth-child(3n+2) span, .at-bar:nth-child(3n+3) span { visibility: hidden; }

/* 横向条形排行（名次 + 头像 + 名字 + 条 + 数值） */
.at-hrows { display: flex; flex-direction: column; gap: 11px; }
.at-hrow { display: flex; align-items: center; gap: 9px; }
.at-hrow .at-ava { flex: none; }
.at-hrow-main { flex: 1; min-width: 0; }
.at-hrow-top { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.at-hrow-top b { font-weight: 600; }
.at-hrow-top span { font-size: 11px; color: var(--muted); }
.at-hrow-top em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; }
.at-hbar { height: 6px; margin-top: 5px; border-radius: 999px; background: rgba(16, 24, 40, .06); overflow: hidden; }
.at-hbar i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.at-hbar.is-type i { background: rgba(91, 141, 239, .85); }
.at-hbar.is-dept i { background: rgba(155, 133, 221, .78); }

/* 头像（有图用图，没图用首字 + 稳定底色） */
.at-ava { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; border-radius: 999px; background: var(--card-2, #eef1f5); color: #475467; font-weight: 600; }
.at-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at-ava-t0 { background: #e0ecff; color: #1d4ed8; }
.at-ava-t1 { background: #e6f7ee; color: #0f7b4f; }
.at-ava-t2 { background: #fdeee6; color: #b4471d; }
.at-ava-t3 { background: #f2ecfd; color: #6d3fc4; }
.at-ava-t4 { background: #fdf4e3; color: #a4701a; }

/* 人员行：头像 + 名字 + 副标题（今日面板 / 部门明细共用） */
.at-person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.at-person:last-child { border-bottom: 0; }
.at-person-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.at-person-main b { font-size: 12.8px; font-weight: 600; }
.at-person-main span { font-size: 11.5px; color: var(--muted); }
.at-person-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* 单日面板里人可点：整行像一块可点的条，hover 才亮，平时别抢卡片本身的注意力 */
.at-person.is-clickable { padding: 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; transition: background .12s ease; }
.at-person.is-clickable:hover,
.at-person.is-clickable:focus-visible { background: var(--hover, rgba(15, 23, 42, .04)); outline: none; }
.at-person.is-clickable:focus-visible { box-shadow: inset 0 0 0 1px var(--at-accent); }
.at-person.is-clickable .at-person-main b::after { content: '›'; margin-left: 6px; color: var(--muted-2); }

/* 单日面板 */
.at-today-bar { display: flex; align-items: center; gap: 18px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
/* 日期本身就是那颗按钮：去掉按钮默认皮，只保留「可点」的手感与一个日历小图标 */
button.at-today-day {
  display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 8px; margin: -4px -8px;
  border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer;
}
button.at-today-day:hover { background: var(--hover, rgba(15, 23, 42, .05)); }
.at-today-day b { font-size: 15px; margin-right: 8px; }
.at-today-day span { font-size: 11.5px; color: var(--muted); }
.at-today-day .at-day-cal { align-self: center; margin-left: 6px; color: var(--muted); }
.at-today-nums { display: flex; align-items: baseline; gap: 20px; margin-left: auto; }
.at-today-nums span { display: flex; align-items: baseline; gap: 5px; font-size: 11.5px; color: var(--muted); }
.at-today-nums b { font-size: 17px; color: var(--ink); }
.at-today-nums .is-warn b { color: #c2321f; }
.at-today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1100px) { .at-today-grid { grid-template-columns: minmax(0, 1fr); } }
.at-today-col { height: calc(100vh - 268px); min-height: 340px; }

/* 部门分析 */
.at-dept-head { display: flex; align-items: baseline; gap: 10px; padding: 4px 2px 10px; }
.at-dept-head b { font-size: 13.5px; }
.at-dept-head .sub { font-size: 11.5px; color: var(--muted); }
.at-dept-list { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px 14px; }
.at-dept-row {
  display: grid; align-items: center; gap: 10px; padding: 11px 0;
  grid-template-columns: 28px minmax(130px, 1.1fr) minmax(110px, 1.5fr) repeat(6, minmax(60px, .72fr)) 64px;
  border-bottom: 1px solid var(--line);
}
.at-dept-row:last-child { border-bottom: 0; }
.at-dept-rank { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--card-2, #f4f6f9); color: var(--ink-3, #667085); font-size: 12px; font-weight: 700; }
.at-dept-rank.is-top1 { background: #fff3d1; color: #a4701a; }
.at-dept-rank.is-top2 { background: #eef1f5; color: #475467; }
.at-dept-rank.is-top3 { background: #fbeee6; color: #b4471d; }
.at-dept-name b { font-size: 13px; }
.at-dept-name span { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.at-dept-metric { display: flex; flex-direction: column; }
.at-dept-metric b { font-size: 13px; font-weight: 600; }
.at-dept-metric span { font-size: 10.5px; color: var(--muted); }
.at-note { margin-top: 10px; font-size: 11px; line-height: 1.65; color: var(--muted); }

/* 员工详情 */
.at-emp-picker { position: relative; padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
/* 搜人的结果做成浮层（下拉一层），压住下面的详情即可，不再把页面往下顶 */
.at-emp-pop { position: absolute; left: 14px; right: 14px; top: calc(100% + 6px); z-index: 40; max-height: 296px; overflow: auto; padding: 6px; border: 1px solid var(--line-2, var(--line)); border-radius: 12px; background: var(--card); box-shadow: 0 18px 40px rgba(15, 23, 42, .2), 0 2px 8px rgba(15, 23, 42, .06); }
.at-emp-pop[hidden] { display: none; }
.at-emp-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.at-emp-opt:hover,
.at-emp-opt:focus-visible { background: var(--hover, rgba(15, 23, 42, .05)); outline: none; }
.at-emp-opt.is-on { background: var(--card-2, #f6f7f9); }
.at-emp-opt-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.32; }
.at-emp-opt-t b { font-size: 12.8px; font-weight: 600; color: var(--ink); }
.at-emp-opt-t i { font-style: normal; font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.at-emp-pop-empty { padding: 16px 10px; text-align: center; font-size: 12px; color: var(--muted); }
/* 还没搜人时的引导：别让页面空一片白，说清这一页要干什么 */
.at-emp-hint { padding: 34px 16px; border: 1px dashed var(--line-2, var(--line)); border-radius: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.at-emp-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.at-emp-head-main b { font-size: 16px; }
.at-emp-head-main span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.at-emp-head-range { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.at-emp-body { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(250px, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 1100px) { .at-emp-body { grid-template-columns: minmax(0, 1fr); } }
.at-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 9px; font-size: 11px; color: var(--muted); }
.at-cal-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.at-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.at-cal-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 11px; }
.at-cal-cell b { font-size: 11px; font-weight: 600; color: var(--ink-2, #344054); }
.at-cal-cell i { display: block; width: 58%; border-radius: 2px; background: currentColor; opacity: .6; }
.at-cal-cell.is-ok { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .32); color: #0f7b4f; }
.at-cal-cell.is-late { background: rgba(249, 115, 22, .12); border-color: rgba(249, 115, 22, .34); color: #b4471d; }
.at-cal-cell.is-missing { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); color: #c2321f; }
.at-cal-cell.is-absent { background: rgba(239, 68, 68, .18); border-color: rgba(239, 68, 68, .45); color: #a01d12; }
.at-cal-cell.is-leave { background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .3); color: #6d3fc4; }
.at-cal-cell.is-rest { background: var(--card-2, #f6f7f9); border-color: var(--line); color: var(--muted); }
/* 从单日面板点进来的那一天：给个圈，别让人在整月里找「刚才看的是哪格」 */
.at-cal-cell.is-focusday { box-shadow: 0 0 0 2px var(--at-accent), 0 0 0 4px color-mix(in srgb, var(--at-accent) 18%, transparent); }

/* 员工详情 · 当日明细（从单日面板点人进来时贴在顶部） */
.at-focus { margin-bottom: 12px; padding: 12px 14px 6px; border: 1px solid color-mix(in srgb, var(--at-accent) 32%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--at-accent) 6%, var(--card)); }
.at-focus-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.at-focus-h h3 { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.at-focus-h .sub { font-size: 11px; color: var(--muted); }
.at-focus-x { margin-left: auto; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.at-focus-x:hover { background: var(--hover, rgba(15, 23, 42, .06)); color: var(--ink); }
.at-focus-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.at-focus-row:last-child { border-bottom: 0; }
.at-focus-k { padding-top: 1px; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.at-focus-v { font-size: 12.5px; line-height: 1.6; color: var(--ink-2, #344054); }
.at-focus-v b { font-weight: 650; color: var(--ink); }
.at-focus-v em { font-style: normal; }
.at-focus-v em.is-late { margin-left: 2px; color: #b4471d; font-weight: 600; }
.at-focus-v em.is-warn { color: #c2321f; font-weight: 600; }
.at-focus-why { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.at-focus-why i { font-style: normal; color: var(--muted-2); }
.at-focus-go { align-self: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink-2, #344054); text-decoration: none; white-space: nowrap; }
.at-focus-go:hover { border-color: var(--at-accent); color: var(--at-accent); }
.at-rail { display: flex; flex-direction: column; gap: 12px; }
.at-rank-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; }
.at-rank-sub { margin-top: 4px; font-size: 11px; color: var(--muted); }
.at-bal-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; border-bottom: 1px dashed var(--line); }
.at-bal-row:last-child { border-bottom: 0; }
.at-bal-row b.is-zero { color: var(--muted); }
.at-mini { font-size: 11px; color: var(--muted); white-space: nowrap; }
.at-mini b { font-size: 12px; color: var(--ink); }

/* 考勤 2026-11-18 收口：2×2 面板两行等高；今日面板不再撑满整屏；日历格子改为紧凑高度 */
.at-grid2 { grid-auto-rows: 1fr; }
.at-today-col { height: auto; min-height: 300px; max-height: calc(100vh - 268px); }
.at-cal-cell { aspect-ratio: auto; height: 46px; }
/* 趋势图纵向填满面板（原来是固定 px 高度，底下留一大片空白） */
.at-panel-b { display: flex; flex-direction: column; }
.at-bars { flex: 1; height: auto; min-height: 120px; }
.at-bars .at-bar i { max-height: 100%; }
/* 柱子的百分比高度需要父级有确定高度，否则算 0 */
.at-bars .at-bar { height: 100%; }

/* ---------------- 面试轮次开关（2026-11-18）：有的岗位只有两面 ----------------
   单独占一行，不挤进三列人员格子里 —— 三个人名 + 开关挤在一行时，
   「魏嘉（后端组）」会被压到只剩一个字，开关文案也换行。 */
.rrf-roundline {
  display: flex; align-items: center; gap: 14px; margin: 16px 0 4px;
}
.rrf-roundline .rrf-plabel { flex: 0 0 auto; min-width: 92px; }
.rrf-switch {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
  cursor: pointer; user-select: none;
}
.rrf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.rrf-switch-track {
  position: relative; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 999px;
  background: var(--line-2); transition: background .16s ease;
}
.rrf-switch-track i {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform .16s ease;
}
.rrf-switch input:checked + .rrf-switch-track { background: var(--ink); }
.rrf-switch input:checked + .rrf-switch-track i { transform: translateX(14px); }
.rrf-switch b { font-size: 12.8px; font-weight: 600; color: var(--ink); }
.rrf-switch em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }

/* 招聘需求表：每列都由 colgroup 定宽，表格用内联 width = 列宽总和（有操作列时 +156）。
   2026-11-27：以前岗位列没定宽，宽屏下会把「招聘岗位」撑到 900px 以上、其余列挤成窄条；
   现在宽屏按内容宽度显示、右侧留白，窄屏由 min-width:990px 出横向滚动，不压缩列宽。 */
.tbl.rc-req-tbl { table-layout: fixed; max-width: none; }
.rc-req-tbl .rc-req-name strong { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.rc-req-tbl .rc-req-jd { max-width: 100%; }

/* ===== 日报看板（2026-11-18 重构）：左右等高卡片 + 内部滚动 + 提交率折线 ===== */
.drb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: stretch; }
@media (max-width: 1080px) { .drb-grid { grid-template-columns: minmax(0, 1fr); } }
.drb-card { padding: 14px; display: flex; flex-direction: column; min-height: 0; }
.drb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.drb-head h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.drb-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.drb-scroll { height: 400px; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.drb-scroll::-webkit-scrollbar { width: 6px; }
.drb-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.drb-scroll::-webkit-scrollbar-track { background: transparent; }

/* 与 picker 渲染出来的下拉（.pk-trigger：32px 高、圆角 14、line-2 描边）同一套观感 */
.drb-search {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card); color: var(--muted); transition: .15s;
}
.drb-search:focus-within { border-color: var(--ink); background: #fff; }
.drb-search input { border: 0; background: none; outline: none; width: 96px; font-size: 12.5px; color: var(--ink); font-family: inherit; }
.drb-search input::placeholder { color: var(--muted-2); }
.drb-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

/* 未提交明细：紧凑两行一条，半栏宽度也放得下 */
.drb-all { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.drb-urow { display: flex; gap: 9px; align-items: flex-start; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.drb-urow:last-child { border-bottom: 0; }
.drb-urow-main { flex: 1; min-width: 0; }
.drb-urow-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.drb-urow-name b { font-size: 13px; }
.drb-urow-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 部门排名：按大部门分块，块标题是一根细线 */
.drb-group { display: flex; align-items: center; gap: 8px; margin: 12px 0 5px; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.drb-group:first-child { margin-top: 0; }
.drb-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.drb-dept { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.drb-dept > b { width: 84px; flex: none; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 连续漏交 */
.drb-warn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.drb-warn:last-child { border-bottom: 0; }

/* 月度日历的统计规则说明 */
.drb-note { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.75; color: var(--muted); }
.drb-note b { color: var(--ink-3); font-weight: 600; }
/* 月度日历图例：直接摆色块，别让人读一段文字去猜颜色（2026-11-19 用户口径） */
.drb-lgd {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted);
}
.drb-lgd-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.drb-lgd-i i {
  width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line);
  display: inline-block; flex: none;
}
.drb-lgd-i i.is-off { background: var(--card-2); border-color: var(--line-2); opacity: .5; }

/* 提交率折线 */
.drb-chart { width: 100%; height: auto; display: block; }
.drb-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.drb-chart .axis { fill: var(--muted-2); font-size: 10px; }
.drb-chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.drb-chart .dot { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.drb-chart .dot.is-last { fill: var(--ink); }
.drb-chart .val { fill: var(--ink); font-size: 11px; font-weight: 600; }

/* ---- 今日看板（提交记录 › 今日，2026-11-19） ---- */
.dt-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 2px; border-bottom: 1px dashed var(--line); cursor: pointer;
}
.dt-row:last-child { border-bottom: 0; }
.dt-row.is-done { cursor: default; }
.dt-row:hover { background: var(--card-2); }
.dt-row input[type="checkbox"] { flex: none; margin-top: 2px; width: 15px; height: 15px; accent-color: var(--ink); }
.dt-main { flex: 1; min-width: 0; }
.dt-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dt-name b { font-size: 13px; }
.dt-sub {
  font-size: 11.5px; color: var(--muted); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dt-reminded { color: #a8392f; font-weight: 600; }

/* ---- 看板顶部：快捷区间（昨日 / 近一周 / 近一月 / 自定义双日历） ---- */
.drb-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.drb-quicks { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.drb-qchip {
  height: 32px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--card); font: inherit; font-size: 12.5px; color: var(--ink-2);
  cursor: pointer; transition: all .12s;
}
.drb-qchip:hover { border-color: var(--ink-3); color: var(--ink); }
.drb-qchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.drb-actions { display: flex; align-items: center; gap: 10px; }
/* 自定义区间按钮跟快捷 chip 一样高，选完直接显示 11-12 至 11-18 */
.drb-range { display: inline-flex; }
.drb-range .pk-trigger {
  height: 32px; min-width: 132px; padding: 0 10px 0 12px;
  border-radius: var(--r-pill); font-size: 12.5px;
}
.drb-range .pk-trigger.is-empty { color: var(--ink-2); }

/* 两张卡压短（用户口径：现在太长、太占位置） */
.drb-scroll.is-short { height: 264px; }

/* ---- 提交趋势：折线 + 右侧小结，整卡收窄 ---- */
.drb-trend-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 168px;
  gap: 14px; align-items: center;
}
.drb-tstats { display: flex; flex-direction: column; gap: 2px; }
.drb-tstat {
  display: flex; align-items: baseline; gap: 6px;
  padding: 7px 0; border-bottom: 1px dashed var(--line-2);
}
.drb-tstat:last-child { border-bottom: 0; }
.drb-tstat b { font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.drb-tstat em { font-style: normal; font-size: 11px; color: var(--muted-2); margin-left: auto; }
@media (max-width: 900px) {
  .drb-trend-body { grid-template-columns: minmax(0, 1fr); }
  .drb-tstats { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
}

/* 双日历里被 max 挡住的未来日期 */
.dr-day.is-off { color: var(--muted-2); opacity: .4; cursor: not-allowed; }
.dr-day.is-off:hover { background: none; }

/* ============================================================================
   日报模板配置（2026-11-18 改版）
   用户口径：① 免提交名单置顶、卡片压短；② 模板一屏放 4 个（原来只有 3 个）；
   ③ 新增豁免按个人多选、起止可「永久」；④ 选人时提示「这人已经命中几个模板」。
   ========================================================================== */

/* ---- 免提交名单：置顶短卡 ---- */
.drb-excard { padding: 12px 14px; }
.drex { display: flex; flex-direction: column; gap: 9px; }
.drex-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drex-head strong { font-size: 13.5px; letter-spacing: -.01em; }
.drex-list { display: flex; flex-direction: column; max-height: 148px; overflow: auto; }
.drex-list .empty { padding: 10px 0; }
.drex-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 2px; font-size: 12.5px; border-bottom: 1px dashed var(--line-2);
}
.drex-item:last-child { border-bottom: 0; }
.drex-item.is-off { opacity: .5; }
.drex-who { font-weight: 600; min-width: 92px; color: var(--ink); }
.drex-who em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 6px; }
.drex-when { min-width: 158px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.drex-when.is-forever { color: #2f8f6e; }
.drex-why { flex: 1; min-width: 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drex-state i.chip { font-style: normal; }
.drex-del { width: 24px; height: 24px; color: var(--muted-2); }
.drex-del:hover { color: var(--red); }

/* ---- 新增豁免弹窗 ---- */
.drex-form { display: flex; flex-direction: column; gap: 12px; }
.drex-frow { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.drex-flab {
  flex: 0 0 76px; font-size: 12.5px; color: var(--muted);
  padding-top: 7px;
}
.drex-frow > select, .drex-frow > textarea { flex: 1; min-width: 0; }
.drex-frow textarea {
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
  padding: 9px 11px; font-size: 13px; font-family: inherit; resize: vertical; color: var(--ink);
}
.drex-frow textarea:focus { outline: none; border-color: var(--ink-3); }
.drex-sel { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 2px 86px; }
.drex-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 6px 3px 9px; border: 1px solid var(--line-2); border-radius: 99px;
  background: var(--card-2); font-size: 12px;
}
.drex-chip b { font-weight: 600; }
.drex-chip i.chip { font-style: normal; font-size: 10.5px; padding: 0 5px; }
.drex-chip-x {
  border: 0; background: transparent; color: var(--muted-2); cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 1px;
}
.drex-chip-x:hover { color: var(--red); }
.drex-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drex-dcell { display: inline-flex; align-items: center; gap: 6px; }
/* hidden 要显式压一句：.drex-dates / .drex-dwrap 都写了 display，UA 的 [hidden] 盖不住 */
.drex-dates[hidden], .drex-dwrap[hidden] { display: none !important; }
.drex-dash { color: var(--muted-2); }
.drex-perm {
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-3);
  border-radius: 99px; font-size: 11.5px; padding: 3px 9px; cursor: pointer;
}
.drex-perm[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ---- 模板一屏 4 个：卡片变窄，内容跟着收紧 ---- */
#dr-tpl-body .ct-buckets { grid-template-columns: repeat(auto-fill, minmax(246px, 1fr)); gap: 12px; }
#dr-tpl-body .ct-b-head { padding: 9px 10px; gap: 6px; }
#dr-tpl-body .ct-b-head b { font-size: 12.5px; }
#dr-tpl-body .ct-b-body { padding: 10px 10px 12px; }
#dr-tpl-body .ct-buckets .ct-card { height: 172px; padding: 10px 11px 8px; }
#dr-tpl-body .ct-c-name { font-size: 12.5px; }
#dr-tpl-body .ct-c-meta { font-size: 11px; line-height: 1.5; }
#dr-tpl-body .ct-c-note { display: none; }
/* 字段 chip：窄卡最多两行，每个 chip 自己截断（JS 已限 4 个 + +N，不会出现半截 chip） */
#dr-tpl-body .dr-c-fields {
  display: flex !important; flex-wrap: wrap; gap: 4px;
  max-height: 44px; overflow: hidden; margin-top: 7px;
}
#dr-tpl-body .dr-c-fields .chip { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dr-tpl-body .ct-c-fields .chip,
#dr-tpl-body .dr-c-fields .chip { font-size: 10.5px; padding: 1px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* 空态压成一行：这块要「短」，不要占位置 */
.drex-list .empty { padding: 4px 0 2px; display: block; text-align: left; }
.drex-list .empty strong { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.drex-list .empty span { display: inline; margin-left: 6px; font-size: 12px; }
.drex-empty-line { font-size: 12.5px; color: var(--muted); padding: 3px 0 1px; }

/* ---- 模板配置 / 豁免名单两个子页（2026-11-19：从模板配置里拆出来单独一页） ---- */
.dr-pane-head { margin-bottom: 12px; }
.dr-ex-card { padding: 12px 16px 8px; }
.drex-page { gap: 12px; }
/* 独立页不再限高：原来 148px 是为了在模板页顶部压缩成一条，放到整页会把列表切掉 */
.drex-list.is-page { max-height: none; overflow: visible; }
.drex-list.is-page .drex-item { padding: 11px 2px; font-size: 13px; }
.drex-list.is-page .drex-who { min-width: 132px; }
.drex-item-head { padding: 4px 2px 8px; border-bottom: 1px solid var(--line-2); }
.drex-item-head .drex-who,
.drex-item-head .drex-when,
.drex-item-head .drex-why,
.drex-item-head .drex-state { color: var(--muted-2); font-weight: 400; font-size: 11.5px; }
.drex-del-pad { flex: 0 0 24px; }

/* ---- 命中提示（选人时告诉配置者「他还命中哪几个模板」） ---- */
.dr-hitbadge {
  font-style: normal; font-size: 10.5px; padding: 1px 5px; border-radius: 99px;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted);
  margin-left: 6px; white-space: nowrap;
}
.dr-hitbadge.is-multi { background: #fdf3dd; border-color: #f0dcae; color: #8a6410; }
.dr-hitbadge.is-exempt { background: #fdeceb; border-color: #f2cfcb; color: #a63c31; }
.dr-chip-hit {
  font-style: normal; font-size: 10px; margin-left: 3px; padding: 0 4px; border-radius: 99px;
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted);
}
.dr-chip-hit.is-multi { background: #fdf3dd; border-color: #f0dcae; color: #8a6410; }
.dr-chip-ex {
  font-style: normal; font-size: 10px; margin-left: 3px; padding: 0 4px; border-radius: 99px;
  background: #fdeceb; border: 1px solid #f2cfcb; color: #a63c31;
}
.dr-sum-warn { font-style: normal; color: #8a6410; margin-left: 4px; }
/* 窄卡里的「更多」按钮：给它一个明确的按钮外框，否则单独一个「⋯」像误留的省略号 */
#dr-tpl-body .ct-more {
  width: 24px; height: 20px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--card); color: var(--ink-3); line-height: 1; font-size: 12px;
}
#dr-tpl-body .ct-more:hover { background: var(--card-2); color: var(--ink); }
/* 部门下拉被 picker 升级成 .pk-trigger 按钮（select 本身隐藏），宽度要给到按钮上 */
.drex-frow > .pk-trigger { flex: 1 1 240px; min-width: 200px; }
.drex-frow > .pk-src { display: none; }
.drex-hint { flex: 1 1 100%; font-size: 11.5px; color: var(--muted); padding-left: 86px; margin-top: -4px; }

/* ============================================================================
   报销审批 · 多级流程看板（2026-11-18）
   用户口径：① 顺序按「提交 → 审批 → 打款」走；② 卡片即筛选（原来下面那排状态 chips
   和卡片重合，删掉）；③ 每张单要看得出走到第几级、谁审的。
   类名统一 rfl-（reimburse flow），避开已有的 reim-* 旧样式。
   ========================================================================== */

/* ---- 顶部流程卡（就是筛选器） ---- */
/* 五张卡片统一等宽铺满（2026-11-19 用户口径：「其他 5 个卡片……做成标准宽」；「只看我的待办」已去掉） */
.rfl-cards {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px; margin-bottom: 10px; align-items: stretch;
}
.rfl-card {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px 11px 16px; text-align: left; cursor: pointer; min-width: 0;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card);
  transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
.rfl-card::before {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 3px; background: var(--line-2);
}
.rfl-card.is-lemon::before { background: var(--lemon); }
.rfl-card.is-orange::before { background: var(--orange); }
.rfl-card.is-mint::before { background: var(--mint); }
.rfl-card.is-red::before { background: var(--red); }
.rfl-card:hover { border-color: var(--line); box-shadow: var(--shadow-sm); }
/* 选中 = 所属色调的淡底高亮，不再套黑框（用户原话：「选中不要变黑、变黑框，太丑了」） */
.rfl-card.is-on { background: var(--bg); border-color: var(--line-2); }
.rfl-card.is-lemon.is-on { background: var(--lemon-soft); border-color: var(--lemon); }
.rfl-card.is-orange.is-on { background: var(--orange-soft); border-color: var(--orange); }
.rfl-card.is-mint.is-on { background: var(--mint-soft); border-color: var(--mint); }
.rfl-card.is-red.is-on { background: var(--red-soft); border-color: var(--red); }
.rfl-card.is-on .rfl-card-k { color: var(--ink); }
.rfl-card.is-on::before { top: 6px; bottom: 6px; width: 4px; }
.rfl-card-k { font-size: 12px; color: var(--muted); }
.rfl-card-n { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rfl-card-n em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.rfl-card-s { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---- 审批链说明：一共几个环节、都叫什么 ---- */
.rfl-chainline {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3); margin: 0 0 10px;
}
.rfl-chainline[data-flow-open] { cursor: pointer; border-radius: 8px; }
.rfl-chainline[data-flow-open]:hover .rfl-chainline-k { color: var(--ink); }
.rfl-chainline[data-flow-open]:hover .rfl-chainline-i { border-color: var(--ink-3); }
.rfl-chainline-k { color: var(--muted); margin-right: 2px; }
.rfl-chainline-i {
  padding: 2px 8px; border-radius: 99px; background: var(--card-2);
  border: 1px solid var(--line-2); font-size: 11.5px;
}
.rfl-chainline-i.is-pay { background: var(--ink); border-color: var(--ink); color: #fff; }
.rfl-arrow { font-style: normal; color: var(--muted-2); font-size: 11px; }

/* ---- 表格里的横向进度链 ---- */
.rfl-cell { padding-top: 9px !important; padding-bottom: 9px !important; }
.rfl { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; }
.rfl-i { display: inline-flex; align-items: center; gap: 3px; }
.rfl-dot {
  width: 15px; height: 15px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 9px; font-style: normal; line-height: 1;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--muted-2);
}
.rfl-i em { font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.rfl-link { width: 9px; height: 1.5px; background: var(--line-2); display: inline-block; margin: 0 3px; }
/* 已完成：薄荷实心 + 勾 */
.rfl-i.is-done .rfl-dot { background: var(--mint); border-color: var(--mint); color: #14532d; font-weight: 700; }
.rfl-i.is-done em { color: var(--ink-2); }
.rfl-i.is-done .rfl-link { background: var(--mint); }
/* 当前：墨色描边 + 轻微呼吸，一眼看出卡在哪一级 */
.rfl-i.is-current .rfl-dot {
  border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,23,.1);
  animation: rflPulse 2.4s ease-in-out infinite;
}
.rfl-i.is-current em { color: var(--ink); font-weight: 600; }
@keyframes rflPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(23,23,23,.08); } 50% { box-shadow: 0 0 0 5px rgba(23,23,23,.14); } }
/* 驳回 / 未走到 / 无记录 */
.rfl-i.is-rejected .rfl-dot { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.rfl-i.is-rejected em { color: #a63c31; }
.rfl-i.is-skipped .rfl-dot, .rfl-i.is-unknown .rfl-dot { border-style: dashed; color: transparent; }
.rfl-i.is-unknown em { color: var(--muted-2); }
.rfl-note {
  margin-left: 6px; font-size: 10px; color: var(--muted-2); white-space: nowrap;
  border-left: 1px solid var(--line-2); padding-left: 6px;
}

/* ---- 详情抽屉里的竖向时间轴 ---- */
.rfl-full {
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--card); padding: 14px 16px 6px;
}
.rfl-full-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.rfl-full-h b { font-size: 13px; }
.rfl-fitem { display: flex; gap: 10px; padding-bottom: 12px; position: relative; }
.rfl-fitem:not(:last-child)::before {
  content: ''; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1.5px; background: var(--line-2);
}
.rfl-fitem.is-done::before { background: var(--mint); }
.rfl-fdot {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--muted-2);
}
.rfl-fitem.is-done .rfl-fdot { background: var(--mint); border-color: var(--mint); color: #14532d; font-weight: 700; }
.rfl-fitem.is-current .rfl-fdot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,23,.1); }
.rfl-fitem.is-rejected .rfl-fdot { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.rfl-fbody { min-width: 0; }
.rfl-ftop { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.rfl-ftop b { font-weight: 600; color: var(--ink); }
.rfl-fwho { color: var(--ink-3); }
.rfl-fstate { font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--card-2); color: var(--muted); }
.rfl-fstate.is-done { background: #e9f7f1; color: #1f7a5c; }
.rfl-fstate.is-current { background: var(--card-2); color: var(--ink); }
.rfl-fstate.is-rejected { background: #fdeceb; color: #a63c31; }
/* 审批意见：跟在环节下面，缩进对齐环节名（2026-11-20 审批中心抽屉用） */
.rfl-fremark {
  margin: -6px 0 10px 28px; padding: 4px 9px;
  border-left: 2px solid var(--line-2); border-radius: 0 6px 6px 0;
  background: var(--card-2, #f8fafc); color: var(--ink-2);
  font-size: 12px; line-height: 1.6; overflow-wrap: anywhere;
}
/* 流程读不到时的说明条：不要用报错红，是「缺信息」不是「出错」 */
.fl-pgnote {
  margin: 0 0 10px; padding: 7px 10px; border-radius: 8px;
  background: rgba(16, 24, 40, .04); color: var(--muted);
  font-size: 12px; line-height: 1.6;
}
/* 多分支模板的「流程清单」：钉钉按条件走其中一条，这里把每条都列出来 */
.rfl-gl { border-top: 1px solid var(--line); margin-top: 2px; padding: 12px 0 6px; }
.rfl-gl-h { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 650; margin-bottom: 6px; }
.rfl-gl-h em { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.rfl-gl-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 3px 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.rfl-gl-row:first-of-type { border-top: 0; }
.rfl-gl-name { font-size: 12.5px; font-weight: 600; }
.rfl-gl-cond { font-size: 11.5px; color: var(--muted); }
.rfl-gl-steps { grid-column: 2; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; }
.rfl-gl-step { font-style: normal; padding: 1px 7px; border-radius: 99px; background: var(--card-2, #f6f4f1); color: var(--ink-2); }
.rfl-gl-step.is-done { background: var(--mint-soft); color: #1f7a58; }
.rfl-gl-step.is-current { background: var(--lemon-soft); color: #8a6d00; font-weight: 600; }
.rfl-gl-step.is-rejected { background: var(--red-soft); color: #a8392f; }
.rfl-gl-step.is-skipped, .rfl-gl-step.is-unknown { color: var(--muted); }
.rfl-gl-name u { text-decoration: none; margin-left: 5px; font-size: 10.5px; padding: 0 5px; border-radius: 99px; background: var(--ink); color: #fff; vertical-align: 1px; }

@media (max-width: 1180px) {
  .rfl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rfl-card-s { font-size: 11px; }
}

/* 表格里的链路要挤得下 5 级：字号与间距再收一档，超宽也不换行 */
.reim-tbl .rfl { white-space: nowrap; overflow: hidden; }
.reim-tbl .rfl-i { gap: 2px; }
.reim-tbl .rfl-link { width: 4px; margin: 0 1px; }
.reim-tbl .rfl-i em { font-size: 9px; }
.reim-tbl .rfl-dot { width: 12px; height: 12px; font-size: 7.5px; }

/* 报销表格固定布局：不固定时「用途/摘要」的 min-content 会把表格顶宽，操作列被挤出可视区 */
.reim-tbl { table-layout: fixed; width: 100%; }
.reim-tbl th, .reim-tbl td { overflow: hidden; }
.reim-tbl td.tbl-nowrap { text-overflow: ellipsis; }
.reim-tbl .rc-time { white-space: nowrap; }
/* 宽屏整张放得下、不需要吸右；窄屏（≤1240）会横向滚动，操作列吸右兜住按钮 */
@media (max-width: 1240px) {
  /* 窄屏把「部门」列收掉：报销人那列已经是「姓名（部门）」，不重复占位 */
  .reim-tbl col:nth-child(2), .reim-tbl th:nth-child(2), .reim-tbl td:nth-child(2) { display: none; }
  /* 收掉部门后还有 8 列：给一张不可再压的最小宽度，宁可横向滚动，
     也不能把「打款日期」和按钮挤到看不见（2026-11-19 加了类型/两个日期列之后挤爆过）。 */
  .reim-tbl { min-width: 900px; }
  .reim-tbl th:last-child, .reim-tbl td:last-child {
    position: sticky; right: 0;
    background: var(--card);
    box-shadow: -12px 0 12px -14px rgba(0, 0, 0, .35);
  }
  .reim-tbl th:last-child { z-index: 2; background: var(--card-2); }
}

/* ============================ 加班 × 钉钉 直连（2026-11-18） ============================
   折算规则改成钉钉加班规则的只读镜像：真源在钉钉考勤后台，本系统不设编辑口，
   所以表达重点从「表单」变成「读得懂的折算口径 + 去钉钉改的入口」。
   ==================================================================================== */
.ot-rule-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ot-rule-bar .spacer { flex: 1; min-width: 8px; }

.card.ot-rule { padding: 14px 16px; margin-bottom: 12px; }
.card.ot-rule.is-current { box-shadow: inset 3px 0 0 var(--green); }
.ot-rule.is-idle { opacity: .74; }
.ot-rule-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ot-rule-head b { font-size: 14px; font-weight: 650; }
.ot-rule-meta { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.ot-rule-scope { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.6; }

/* 三类日期各一行：计算方式 / 折算 / 扣休息，横向对比比竖排好读 */
.ot-rule-tbl { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; }
.ot-rule-tbl th {
  font-size: 11px; font-weight: 600; color: var(--muted); text-align: left;
  padding: 6px 8px; background: var(--card-2); border-radius: 6px;
}
.ot-rule-tbl td { font-size: 12.5px; padding: 7px 8px; border-top: 1px solid var(--line-2); }
.ot-rule-tbl td:first-child { font-weight: 600; width: 92px; }
.ot-rule-tbl td:last-child { color: var(--muted); }

.ot-rule-idle { margin: 4px 0 12px; }
.ot-rule-idle > summary { font-size: 12px; color: var(--muted); cursor: pointer; padding: 6px 0 10px; }
.ot-rule-foot { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; line-height: 1.7; }

/* 写钉钉前的确认表：当前 → 本次 → 写回，三行一眼看完 */
.ot-ding-confirm { width: 100%; }
.ot-ding-confirm td { padding: 9px 2px; font-size: 13px; border-bottom: 1px dashed var(--line-2); }
.ot-ding-confirm td.num { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ot-ding-confirm tr.is-total td { border-bottom: 0; padding-top: 13px; font-size: 13.5px; }
.ot-ding-confirm tr.is-total td.num b { font-size: 16px; }
.ot-ding-warn { color: #a8392f; font-size: 12px; margin: 10px 0 0; }

/* 加班申请记录：事由列吃剩余宽度，长文本省略号；钉钉单的「已折算」用小字，不用 chip 抢戏 */
.ot-req-tbl { table-layout: fixed; width: 100%; min-width: 1000px; }
.ot-req-tbl td, .ot-req-tbl th { overflow: hidden; }
.ot-req-tbl .ot-reason { color: var(--ink-2); text-overflow: ellipsis; }
.ot-comp-ding { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
/* 钉钉来源标记：单号后面一个小蓝点，不占宽度（来源细节在「调休」列和详情里） */
.ot-src-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4a8bd8; margin-left: 5px; vertical-align: 1px; }
/* 调休台账：「本系统剩余」与「钉钉余额」两列并排，对不上就用橙字点出来（不弹窗打断人） */
.ot-comp-tbl td, .ot-comp-tbl th { overflow: hidden; }
.ot-ding-bal { white-space: nowrap; }
.ot-ding-bal b { font-weight: 650; color: var(--ink); }
.ot-ding-bal.is-diff b { color: #9c531c; }
.ot-ding-bal i { font-style: normal; margin-left: 5px; color: #9c531c; font-size: 11px; }
/* 调休台账顶部：与钉钉对不上的人数，用一个窄 chip 提示，不用整块告警卡 */
.ot-diff-chip { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--orange-soft); color: #9c531c; font-size: 11.5px; font-weight: 600; margin-right: 6px; }

/* ================= 考勤管理 2026-11-18 二轮 =================
   四条用户口径：区间条（快捷今日/近一周/近一月 + 日期，非今日一律截止昨天）、
   今日面板四张卡、部门分析进子页面、员工详情搜索才出人 + 部门/公司双排名 + 余额圆环。 */

/* 区间条：左边快捷 chip、中间两个日期、右边天数 */
.at-range {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.at-rchips { display: flex; gap: 6px; }
.at-rchip {
  height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card); color: var(--ink-2); font-family: inherit; font-size: 12.5px;
  cursor: pointer; transition: border-color .14s ease, background .14s ease, color .14s ease;
}
.at-rchip:hover { border-color: var(--ink-3, #98a2b3); }
.at-rchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.at-rdates { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
/* 日期输入已被 picker.js 就地换成 .pk-trigger 按钮，这里只收窄尺寸，别抢它的样式 */
.at-rdates .pk-trigger.pk-date,
.at-rdates .pk-wrap { min-width: 128px; height: 30px; }
/* 自 2026-11-19 起区间是一颗双日历按钮（不再两个框），加宽一点好显示「11-12 至 11-18」 */
.at-rdates .pk-trigger.pk-rg-btn { min-width: 196px; height: 30px; }
.at-rdash { color: var(--muted-2); font-size: 12px; }
.at-rdays { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* 今日面板：四张卡（请假 / 缺卡旷工 / 迟到 / 早退）
   四列并排时单卡只有 ~180px，姓名一律单行省略（原来的写法会折成两行、行高忽高忽低），
   完整姓名走 title 悬停看。 */
.at-today-col .at-person-main { flex: 1; }
.at-today-col .at-person-main b,
.at-today-col .at-person-main span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.at-today-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .at-today-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .at-today-grid.is-4 { grid-template-columns: minmax(0, 1fr); } }
/* 单日面板 5 张卡：请假 / 加班 / 缺卡 / 迟到 / 早退 */
.at-today-grid.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .at-today-grid.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .at-today-grid.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .at-today-grid.is-5 { grid-template-columns: minmax(0, 1fr); } }

/* 单日面板排行区（2026-11-24）：「考勤1号多维表」打卡看板搬进系统，跟随所选日期。
   平均初次打卡一张大数字卡 + 五张排行卡，3 列两行；窄屏落回单列。 */
.at-rank-head { display: flex; align-items: baseline; gap: 10px; margin: 18px 2px 10px; }
.at-rank-head h3 { font-size: 14px; font-weight: 600; margin: 0; }
.at-rank-head .sub { font-size: 12px; color: var(--ink3, #98948e); }
.at-rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 1280px) { .at-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .at-rank-grid { grid-template-columns: minmax(0, 1fr); } }
.at-rank-col { height: 320px; }
.at-avg-card { min-height: 320px; }
.at-avg-b { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.at-avg-v { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.at-rank-v { font-variant-numeric: tabular-nums; font-size: 12.5px; color: inherit; }

/* 小组平均打卡时长：横向条形图（2026-11-24 口径：时长最长/最短 + 小组柱状图） */
.at-group-panel { margin-top: 12px; }
.at-gbar-row { display: grid; grid-template-columns: 110px minmax(120px, 1fr) auto 44px; gap: 12px; align-items: center; padding: 7px 0; }
.at-gbar-row + .at-gbar-row { border-top: 1px solid var(--line-weak, #f1f3f8); }
.at-gbar-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-gbar-track { height: 18px; border-radius: 9px; background: var(--surface-weak, #eef1f6); overflow: hidden; }
.at-gbar-bar { height: 100%; border-radius: 9px; background: linear-gradient(90deg, #8aa5f7, #5b74d6); }
.at-gbar-val { font-size: 12.5px; color: #5b74d6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-gbar-n { font-size: 12px; color: var(--text-weak, #8b93a3); text-align: right; }

/* 部门分析：整行可点，进子页面（右侧一个箭头，不再摆「明细」按钮） */
.at-dept-row {
  grid-template-columns: 28px minmax(130px, 1.1fr) minmax(110px, 1.5fr) repeat(6, minmax(60px, .72fr)) 22px;
  border-radius: 10px; transition: background .12s ease;
}
.at-dept-row.is-clickable { cursor: pointer; }
.at-dept-row.is-clickable:hover { background: var(--card-2, #faf8f5); }
.at-dept-row.is-clickable:focus-visible { outline: 2px solid var(--ink-3); outline-offset: -2px; }
.at-dept-go { color: var(--muted-2); font-size: 15px; text-align: right; }
.at-dept-row:hover .at-dept-go { color: var(--ink-2); }

/* 部门子页 */
.at-sub-head { display: flex; align-items: center; gap: 12px; padding: 2px 2px 12px; }
.at-sub-head b { font-size: 15px; }
.at-sub-head .sub { font-size: 11.5px; color: var(--muted); }
.at-back {
  height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card); color: var(--ink-2); font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.at-back:hover { border-color: var(--ink-3, #98a2b3); }
.at-kpis.is-dept { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 部门成员表 */
.at-mem-list { display: flex; flex-direction: column; }
.at-mem-row {
  display: grid; align-items: center; gap: 10px; padding: 8px 6px;
  grid-template-columns: 32px minmax(160px, 1.4fr) 84px 92px 60px 60px minmax(90px, .8fr);
  border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.at-mem-row:last-child { border-bottom: 0; }
.at-mem-row.is-head { padding-top: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.at-mem-row.is-clickable { cursor: pointer; border-radius: 10px; }
.at-mem-row.is-clickable:hover { background: var(--card-2, #faf8f5); }
.at-mem-rank { color: var(--muted); font-weight: 600; text-align: center; }
.at-mem-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.at-mem-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 团队排名：部门一段、公司一段 */
.at-rank-group { display: flex; flex-direction: column; }
.at-rank-group + .at-rank-group { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.at-rank-cap { font-size: 11px; color: var(--muted); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 假期余额：系统 / 法定 分组 + 规则圆环 */
.at-bal-group + .at-bal-group { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.at-bal-cap { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 2px; }
.at-bal-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0 3px; font-size: 12.5px; border-bottom: 0; }
.at-bal-row span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.at-bal-row b { font-weight: 650; color: var(--ink); }
.at-bal-row b.is-zero { color: var(--muted-2); }
.at-bal-tag {
  font-style: normal; font-size: 9.5px; font-weight: 600; padding: 1px 5px; border-radius: 99px;
  background: var(--blue-soft, #e8f0fe); color: #2a5db0;
}
.at-rings { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 8px; }
.at-ring { width: 64px; text-align: center; color: #3b82f6; }
.at-ring-dial { position: relative; width: 36px; height: 36px; margin: 0 auto; }
.at-ring-bg { color: rgba(16, 24, 40, .08); }
.at-ring-fg { color: currentColor; transition: stroke-dasharray .3s ease; }
.at-ring-dial b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: var(--ink-2); font-family: var(--f-num);
}
.at-ring span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.at-ring i { display: block; font-style: normal; font-size: 9.5px; color: var(--muted-2); }
.at-ring em { display: block; margin-top: 1px; font-style: normal; font-size: 9px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-ring.is-high { color: #f97316; }
.at-ring.is-full { color: #ef4444; }

/* 员工详情：7 天以内的区间日历别把格子拉成一整行 */
.at-cal.is-few { grid-template-columns: repeat(auto-fill, minmax(0, 72px)); justify-content: start; }

/* ==========================================================================
   公司文件管理 › 统一版本（2026-11-18）
   四块内容（制度 / 团队介绍 / 座位表 / 职级体系）共用一个版本面板。
   徽标语言：已发布=墨绿小字，有未发布改动=左侧橙点，别整片高亮。
   ========================================================================== */
.cv-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  color: var(--ink-3); background: var(--card-2);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 1px 8px;
  white-space: nowrap;
}
.cv-badge.is-dirty { color: #8a5a1f; background: var(--lemon-soft); border-color: #efdfa5; }
.cv-badge.is-none { color: var(--muted-2); border-style: dashed; background: transparent; }
.cv-dot { width: 5px; height: 5px; border-radius: 50%; background: #d08a2f; }
.cv-inline { border: 0; background: none; padding: 0; cursor: pointer; }
.cv-inline:hover .cv-badge { border-color: var(--ink-3); color: var(--ink); }

.cv-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; border-radius: var(--r-md); background: var(--card-2);
  border: 1px solid var(--line);
}
.cv-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cv-head-main b { font-size: 13.5px; }
.cv-actions { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; flex-wrap: wrap; }

.cv-list { margin-top: 6px; border-top: 1px solid var(--line); }
.cv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.cv-row:last-child { border-bottom: 0; }
.cv-row.is-current { background: linear-gradient(90deg, var(--green-soft), transparent 60%); }
.cv-v {
  flex: 0 0 44px; font-family: var(--f-num); font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.cv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cv-note { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-note .is-dim { color: var(--muted-2); }
.cv-state { flex: 0 0 auto; }
.cv-cur { font-size: 11px; font-weight: 600; color: #3f7a5e; }

/* ============================================================
   人事日历（2026-11-19）：日 / 周 / 月 三视图 + 类型图例
   事件色由后端 kinds 下发（--k 变量），改色只改 calendar.service.js
   ============================================================ */
/* 人事日历：左栏（迷你月历 + 日程类型） + 右主体（日/周/月视图）
   2026-11-19 用户口径：照钉钉日历那样竖向排，上面本月日历可点，下面列全部日程类型。 */
.hcl { padding: 18px 18px 14px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1080px) { .hcl { grid-template-columns: minmax(0, 1fr); } }
.hcl-side { display: flex; flex-direction: column; gap: 18px; padding-right: 20px; border-right: 1px solid var(--line); align-self: stretch; }
@media (max-width: 1080px) {
  .hcl-side { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
}
.hcl-main { min-width: 0; }

/* 迷你月历 */
.hcl-mini-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.hcl-mini-head b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hcl-mini-nav { margin-left: auto; display: inline-flex; gap: 4px; }
.hcl-mini-nav button {
  height: 24px; min-width: 24px; padding: 0 7px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  color: var(--ink-3); font: inherit; font-size: 11px; line-height: 1; cursor: pointer;
}
.hcl-mini-nav button:hover { border-color: var(--ink); color: var(--ink); }
.hcl-mini-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hcl-mini-week span { text-align: center; padding: 2px 0 4px; font-size: 10px; color: var(--muted-2); }
.hcl-mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.hcl-md {
  position: relative; height: 29px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 11.5px; color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.hcl-md:hover { background: var(--card-2); }
.hcl-md.is-out { color: var(--muted-2); }
.hcl-md.is-today { font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.hcl-md.is-sel { background: var(--ink); color: #fff; font-weight: 700; box-shadow: none; }
/* 有日程的那天点一个小圆点（隐藏的类型不计） */
.hcl-md.has-ev::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3);
}
.hcl-md.is-sel.has-ev::after { background: #fff; }

/* 日程类型：竖排一条一行，左边真勾选框 */
.hcl-kinds-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
}
.hcl-kinds-head button {
  margin-left: auto; border: 0; background: transparent; padding: 0;
  font: inherit; font-size: 10.5px; color: var(--muted); cursor: pointer;
}
.hcl-kinds-head button:hover { color: var(--ink); }
.hcl-kind-list { display: flex; flex-direction: column; gap: 1px; }
.hcl-kind {
  display: flex; align-items: center; gap: 9px; height: 31px; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent; font: inherit;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; text-align: left;
}
.hcl-kind:hover { background: var(--card-2); }
.hcl-tick {
  flex: 0 0 auto; width: 15px; height: 15px; border-radius: 4.5px;
  border: 1.5px solid var(--line-2); background: var(--card);
  display: grid; place-items: center;
}
.hcl-tick::after {
  content: '✓'; font-size: 10px; line-height: 1; color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3); opacity: 0;
}
.hcl-kind:not(.is-off) .hcl-tick { background: var(--k); border-color: var(--k); }
.hcl-kind:not(.is-off) .hcl-tick::after { opacity: 1; }
.hcl-kind-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcl-kind b { font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.hcl-kind.is-off { color: var(--muted-2); }
.hcl-kind.is-off b { color: var(--muted-2); }
/* 当前区间里一条都没有的类型：淡一档，但仍然是可点的勾选框 */
.hcl-kind.is-zero:not(.is-off) .hcl-kind-name { color: var(--muted); }
.hcl-kind.is-zero:not(.is-off) .hcl-tick { opacity: .45; }

.hcl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  /* 工具条和下面的日历网格之间必须留出间距（2026-12-01）：
     搜索框自带一圈边框，紧贴着表头那条线就成了两条边重合 —— 间距归工具条管，
     不要靠下面容器加 margin，否则换视图（周/日/月、搜索结果）就漏一处。 */
  margin-bottom: 14px;
}

.hcl-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hcl-nav:hover { border-color: var(--ink); color: var(--ink); }

/* 标题按钮（2026-11-28）：一点弹窗选年月日 —— 底色提示可点，后面跟个小箭头 */
.hcl-title {
  border: 0; background: none; cursor: pointer; padding: 4px 10px;
  border-radius: var(--r-md); font-size: 15px; font-weight: 700; color: var(--ink);
  min-width: 150px; text-align: center; letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.hcl-title::after { content: ''; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ink-3); }
.hcl-title:hover { background: var(--card-2, #f6f4f1); }

/* 日程搜索（2026-11-28）：搜标题 / 备注 / 类型，结果按日期分组。
   结构直接复用全局 .searchbox（flex + 一圈圆角边框 + 左侧放大镜），
   这里只管宽度和清空按钮 —— 2026-12-01 用户反馈「框里又加了一个框」，
   原因是这里给 input 又画了一层 border、还把 svg 改成 absolute，跟 searchbox 的 flex 打架。 */
.hcl-search { width: 184px; }
.hcl-search input { flex: 1 1 auto; width: auto; min-width: 0; padding: 0; font-size: 12.5px; }
.hcl-search svg { flex: 0 0 auto; }
.hcl-search-clear {
  position: static; transform: none; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--card-2, #f6f4f1); color: var(--ink-3); font-size: 13px; line-height: 1; padding: 0;
}
.hcl-search-clear:hover { color: var(--ink); }
.hcl-sr-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 2px 2px 12px; }
.hcl-sr-head b { font-size: 14px; }
.hcl-sr-head span { font-size: 12px; color: var(--muted); }
.hcl-sr-none { padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; }
.hcl-sr-body { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.hcl-sr-day { display: flex; gap: 14px; align-items: flex-start; }
.hcl-sr-day.is-today .hcl-sr-date b { color: #8a6d00; }
.hcl-sr-date { flex: none; width: 108px; padding-top: 6px; }
.hcl-sr-date b { display: block; font-size: 13.5px; }
.hcl-sr-date span { font-size: 11.5px; color: var(--muted); }
.hcl-sr-list { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hcl-sr-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md);
  padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--ink);
}
.hcl-sr-item:hover { border-color: var(--ink-3); background: var(--card-2, #f6f4f1); }
.hcl-sr-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--k, #94a3b8); }
.hcl-sr-item em { flex: none; font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hcl-sr-item b { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcl-sr-item span { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcl-sr-item u { flex: none; text-decoration: none; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--card-2, #f6f4f1); color: var(--ink-3); }

.hcl-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--card); }
.hcl-seg button {
  border: 0;
  background: transparent;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
.hcl-seg button.active { background: var(--ink); color: #fff; font-weight: 600; }

/* ---------- 月视图 ---------- */
.hcl-week-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: 4px;
}
.hcl-week-head span { text-align: center; font-size: 11px; color: var(--muted); padding: 2px 0; }

.hcl-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.hcl-cell {
  height: 120px;   /* 固定格高：3 条事件(18×3) + 「还有 N 件」实测 106，留余量；6 行等高不参差 */
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 6px 5px;
  background: var(--card);
  overflow: hidden;
}
.hcl-cell.is-out { opacity: .45; background: transparent; }
.hcl-cell.is-today { border-color: var(--ink); border-width: 1.5px; }
.hcl-cell > em {   /* 只指日期号：pill 里的时间也是 em，别被这条规则套成 20×20 方块 */
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.hcl-cell.is-today > em { background: var(--ink); color: #fff; }

.hcl-cell-evs { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; }
.hcl-ev {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-left: 2px solid var(--k);
  background: color-mix(in srgb, var(--k) var(--t, 13%), transparent);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.25;      /* 固定行高：带「时:分」的 pill 别比不带的胖一圈，否则格子高矮不齐 */
  color: color-mix(in srgb, var(--k) 72%, #1b1b1b);
  cursor: pointer;
  min-width: 0;
  text-align: left;
  width: 100%;
}
.hcl-ev:hover { background: color-mix(in srgb, var(--k) calc(var(--t, 13%) + 8%), transparent); }
.hcl-ev .hcl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--k); flex: 0 0 auto; }
.hcl-ev em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-3); flex: 0 0 auto; font-size: 10.5px; }
.hcl-ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hcl-more {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  text-align: left;
  padding: 1px 6px;
  cursor: pointer;
}
.hcl-more:hover { color: var(--ink); }

/* 某一天的完整日程浮层（月视图「还有 N 件」/ 全天 +N 共用） */
.hcl-pop {
  position: fixed; z-index: 90; width: 268px; max-height: 330px;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: var(--shadow);
}
.hcl-pop-h {
  display: flex; align-items: baseline; gap: 7px;
  padding: 10px 12px 8px; border-bottom: 1px solid var(--line);
}
.hcl-pop-h b { font-size: 12.5px; font-weight: 700; }
.hcl-pop-h span { font-size: 11px; color: var(--muted); }
.hcl-pop-h em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.hcl-pop-b { display: flex; flex-direction: column; gap: 2px; padding: 6px; overflow-y: auto; }
.hcl-pop-b .hcl-ev { width: 100%; }
.hcl-pop-none { padding: 14px 6px; text-align: center; font-size: 12px; color: var(--muted); }

/* 点标题弹出的「跳到哪一天」小日历（2026-12-01）：上排年、中排月、下排整月日期。
   是锚在标题按钮下方的浮层，不是整页弹窗；点某天即跳，没有确定按钮。 */
.hcl-jump {
  position: fixed; z-index: 95; width: 268px; padding: 8px 10px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: var(--shadow);
  animation: hcl-jump-in .12s ease-out;
}
@keyframes hcl-jump-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hcl-jump-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.hcl-jump-row + .hcl-jump-row { margin-top: 2px; }
.hcl-jump-nav {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-3); font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.hcl-jump-nav:hover { border-color: var(--ink); color: var(--ink); }
.hcl-jump-y, .hcl-jump-m {
  border: 0; background: none; cursor: pointer; padding: 2px 8px; border-radius: var(--r-md);
  font: inherit; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 74px; text-align: center;
}
.hcl-jump-y { font-size: 14.5px; }
.hcl-jump-m { font-size: 13px; }
.hcl-jump-y:hover, .hcl-jump-m:hover { background: var(--card-2, #f6f4f1); }
/* 就地编辑：宽度跟标签对齐，避免一变成输入框整行就跳一下 */
.hcl-jump-in {
  width: 74px; padding: 2px 6px; border: 1px solid var(--ink); border-radius: var(--r-md);
  font: inherit; font-size: 13.5px; font-weight: 700; text-align: center; color: var(--ink);
  background: var(--card); outline: none;
}
.hcl-jump-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 8px 0 2px; }
.hcl-jump-week span { text-align: center; padding: 2px 0 4px; font-size: 10px; color: var(--muted-2); }
.hcl-jump-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.hcl-jump-d {
  height: 30px; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.hcl-jump-d:hover { background: var(--card-2, #f6f4f1); }
.hcl-jump-d.is-out { color: var(--muted-2); }
.hcl-jump-d.is-today { font-weight: 700; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.hcl-jump-d.is-sel { background: var(--ink); color: #fff; font-weight: 700; box-shadow: none; }

/* ---------- 周视图 ---------- */
/* ---------- 日 / 周视图：左侧时间轴 + 按类型着色的日程块（2026-11-19 改版） ---------- */
.hcl-tgx { overflow-x: auto; }
.hcl-tg { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }

.hcl-tg-head,
.hcl-tg-allday,
.hcl-tg-body {
  display: grid;
  /* 每列最小 92px：窗口窄也不会挤成 60px 一格（放不下就整体横向滚动） */
  grid-template-columns: 62px repeat(var(--n), minmax(92px, 1fr));
}

.hcl-tg-head { border-bottom: 1px solid var(--line); }
.hcl-tg-corner {
  font-size: 10.5px; color: var(--muted); letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
}
.hcl-tg-dh {
  border-left: 1px solid var(--line); padding: 7px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.hcl-tg-dh em { font-style: normal; font-size: 11px; color: var(--muted); }
.hcl-tg-dh b { font-size: 13px; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 7px; }
.hcl-tg-dh.is-today em { color: var(--ink); font-weight: 650; }
.hcl-tg-dh.is-today b { background: var(--ink); color: #fff; }

/* 全天条：入职 / 请假 / 生日这类没有具体钟点的事件。
   2026-11-19 用户：「全天太长了占位置」—— 固定一行高，横向排，放不下的收进 +N */
.hcl-tg-allday {
  height: 32px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 1.5%, transparent);
}
.hcl-tg-adtag { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.hcl-tg-adcell {
  border-left: 1px solid var(--line); padding: 0 6px;
  display: flex; flex-direction: row; align-items: center; gap: 4px;
  min-width: 0; overflow: hidden;
}
.hcl-admore {
  flex: 0 0 auto; height: 19px; padding: 0 6px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  font: inherit; font-size: 10.5px; color: var(--ink-3); cursor: pointer;
}
.hcl-admore:hover { border-color: var(--ink); color: var(--ink); }
.hcl-adchip {
  border: 0; border-left: 3px solid var(--k); border-radius: 5px;
  background: color-mix(in srgb, var(--k) var(--t, 13%), transparent);
  color: color-mix(in srgb, var(--k) 72%, #1b1b1b);
  padding: 2px 6px; font-size: 11px; text-align: left; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.hcl-adchip:hover { background: color-mix(in srgb, var(--k) calc(var(--t, 13%) + 10%), transparent); }
.hcl-adchip { max-width: 132px; }

/* 可滚动的时间轴主体：格子背景画整点实线 + 半点虚线（1 小时 48px） */
.hcl-tg-scroll { max-height: calc(100vh - 392px); min-height: 300px; overflow-y: auto; overflow-x: hidden; }
/* 2026-11-25 用户：「这里下面留白太多，帮我调整到底部」。
   日 / 周视图的卡片撑满视图高度，时间轴一直画到卡片底部
   （20:00 之后还空着就让 JS 把最晚刻度往下延，见 hr-calendar.js 的 fitBottom）。
   月视图内容本来就会超出，不加 .is-fill，保持自然高度。
   窄屏（≤1080）卡片会变成「左栏在上、日历在下」两行，撑满反而把日历压扁，故不启用。 */
@media (min-width: 1081px) {
  .hcl.is-fill { height: 100%; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .hcl.is-fill .hcl-side { min-height: 0; overflow-y: auto; }
  .hcl.is-fill .hcl-main { display: flex; flex-direction: column; min-height: 0; }
  .hcl.is-fill #hcl-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .hcl.is-fill .hcl-tgx { display: flex; flex: 1 1 auto; min-height: 0; }
  .hcl.is-fill .hcl-tg { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; }
  .hcl.is-fill .hcl-tg-head,
  .hcl.is-fill .hcl-tg-allday { flex: 0 0 auto; }
  .hcl.is-fill .hcl-tg-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
}
.hcl-tg-body { position: relative; }
.hcl-tg-axis { position: relative; }
.hcl-tg-tick.is-first { transform: none; }
.hcl-tg-tick {
  position: absolute; right: 8px; transform: translateY(-50%);
  font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.hcl-tg-col {
  position: relative; border-left: 1px solid var(--line); min-width: 0;
  background-image:
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, transparent 0 27.5px, color-mix(in srgb, var(--line) 55%, transparent) 27.5px 28px, transparent 28px 56px);
}
.hcl-tg-col.is-today { background-color: color-mix(in srgb, var(--ink) 2.5%, transparent); }

/* 日程块：颜色 = 类型，位置/高度 = 时间段 */
.hcl-blk {
  position: absolute; min-width: 0; overflow: hidden;
  container-type: inline-size;
  border: 0; border-left: 3px solid var(--k); border-radius: 6px;
  background: color-mix(in srgb, var(--k) var(--t, 15%), var(--card));
  padding: 2px 6px; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
}
.hcl-blk:hover { background: color-mix(in srgb, var(--k) calc(var(--t, 15%) + 10%), var(--card)); }
@container (max-width: 78px) { .hcl-blk em { display: none; } }
/* 周视图列窄：时间与姓名分成两行（并排的话姓名只剩两三个字）。
   这里不能用 @container 改 .hcl-blk 自己 —— 容器查询只作用于容器的后代，
   容器自身的 flex-direction 只能在视图级别决定，所以用 .hcl-tg.is-week。 */
.hcl-tg.is-week .hcl-blk { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 1px 5px; }
.hcl-tg.is-week .hcl-blk em { font-size: 9.5px; opacity: .88; }
.hcl-tg.is-week .hcl-blk b { width: 100%; font-size: 10.5px; }
@container (max-width: 58px) { .hcl-blk em { display: none; } }

/* 同一时段超过 2 件：收成「+N」，点进日视图 */
.hcl-blk-more {
  position: absolute; right: 2px; z-index: 2;
  border: 1px dashed var(--line-2); border-radius: 6px;
  background: var(--card); color: var(--ink-3);
  font-size: 10.5px; font-weight: 600; line-height: 1; padding: 3px 5px; cursor: pointer;
}
.hcl-blk-more:hover { color: var(--ink); border-color: var(--ink); }
.hcl-blk em {
  font-style: normal; font-size: 10.5px; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--k) 55%, #16211f); flex: 0 0 auto; opacity: .85;
}
.hcl-blk b {
  font-size: 11.5px; font-weight: 600; line-height: 1.3; min-width: 0;
  color: color-mix(in srgb, var(--k) 62%, #16211f);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 当前时间线（只在今天那一列） */
.hcl-tg-now { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid #e05252; z-index: 3; pointer-events: none; }
.hcl-tg-now i { position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: #e05252; }

/* ============================================================
   工作台欢迎卡（2026-11-19 重构）：Hello + 第 N 天 + 生日/周年纪念条
   背景沿用原 journey 卡的马卡龙光晕，但不再画时间轴
   ============================================================ */
.cell.hlo {
  gap: 12px;
  padding: 20px 22px 18px;
  background:
    radial-gradient(78% 150% at 0% 0%, rgba(244, 217, 94, 0.16) 0%, rgba(244, 217, 94, 0) 55%),
    radial-gradient(70% 150% at 100% 0%, rgba(247, 174, 212, 0.18) 0%, rgba(247, 174, 212, 0) 55%),
    var(--card);
}

.hlo-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.hlo-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--k) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--k) 26%, transparent);
}
.hlo-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--k);
  flex: 0 0 auto;
}
.hlo-note[data-t="pink"] { --k: var(--pink); }
.hlo-note[data-t="mint"] { --k: var(--mint); }
.hlo-note[data-t="lemon"] { --k: var(--lemon); }

/* 员工端首页的纪念条：hero 内紧凑一点，与上面的问候拉开 10px */
.app-hero-notes { margin-top: 10px; }
.app-hero-notes .hlo-note { font-size: 12.5px; padding: 5px 11px 5px 9px; }

/* ============================== 背调工作台（2026-11-19） ============================== */

/* 候选人详情 · 入职信息确认里的通知状态行 */
.rc-bg-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 7px 11px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid var(--line); background: var(--bg-soft, #f7f7f5);
}
.rc-bg-note.is-ok { border-color: color-mix(in srgb, var(--mint) 45%, transparent); background: color-mix(in srgb, var(--mint) 8%, transparent); }
.rc-bg-note.is-ok b { color: var(--mint-text, #1e7f5c); }
.rc-bg-note.is-err { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 6%, transparent); }
.rc-bg-note.is-err b { color: var(--red-text, #c0392b); }
.rc-bg-note.is-off { color: var(--muted); }
.rc-bg-note .btn { margin-left: auto; }

/* 背调工作台 · 页头（recruit 子页内自绘，不套全局 .view-head） */
.bc-head { display: flex; align-items: center; gap: 16px; margin: 2px 0 14px; flex-wrap: wrap; }
.bc-head-main { flex: 1; min-width: 200px; }
.bc-head-main h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.bc-head-main p { margin: 0; line-height: 1.6; }
.bc-search { width: 240px; flex: none; }
.bc-searchbox { flex: none; width: 260px; background: var(--card); }
.bc-searchbox input { width: 210px; }

/* 背调工作台 · 四段左右切换（2026-11-19 用户口径：「这里搞成左右切换按钮，切换页面」）
   复用全局 .segmented（选中态实心 + 白字，与请假规则、候选人名单一致），只在右侧跟一个搜索框。 */
.bc-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.bc-bar .bc-searchbox { margin-left: auto; }
.bc-seg { flex: none; }
.bc-seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 15px; }
.bc-seg button b {
  font-style: normal; font-size: 11.5px; font-weight: 650; color: var(--ink-3);
  min-width: 14px; text-align: center; transition: color .15s;
}
.bc-seg button.active b { color: rgba(255, 255, 255, .76); }

/* 背调阶段：负责人自己写的一段文本（最多两行，全量在 title 里） */
.bc-phase { display: flex; flex-direction: column; gap: 3px; }
.bc-phase-txt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; line-height: 1.45;
}
.bc-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 上传结论弹窗：附件选择行（高度与上下两个 .field 的输入框一致，虚线框住好点） */
.bc-drop {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  border: 1px dashed var(--line-2); border-radius: var(--r-md); background: #fff;
  color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s, background .15s;
  min-width: 0;
}
.bc-drop:hover { border-color: var(--ink-3); color: var(--ink-2); background: var(--card-2); }
.bc-drop.is-picked { border-style: solid; color: var(--ink); }
.bc-drop em { font-style: normal; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 背调工作台 · 顶部标准卡（2026-11-19 用户口径：有颜色、固定大小、占满整页宽度） */
.bc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.bc-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bc-kpi {
  height: 104px; padding: 16px 20px; border-radius: var(--r-card);
  border: 1px solid transparent; display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.bc-kpi b { font-size: 32px; font-weight: 680; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.bc-kpi span { font-size: 12.5px; color: var(--ink-2); }
.bc-kpi em { font-style: normal; margin-top: 3px; font-size: 11px; color: var(--ink-3); }
.bc-kpi.blue { background: #eef4fd; border-color: #dbe7fa; }
.bc-kpi.orange { background: #fdf5e9; border-color: #f4e2c8; }
.bc-kpi.mint { background: #eef8f2; border-color: #d9efe3; }
.bc-kpi.lilac { background: #f5f0fa; border-color: #e8ddf5; }
@media (max-width: 1100px) {
  /* 三张卡在窄屏也保持一行三列（每张还能放下 32px 数字）；四张卡才是 2×2 */
  .bc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc-kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 背调工作台 · 单元格 */
.bc-cell-txt { font-size: 12.5px; color: var(--ink); }
.bc-cell-sub { margin-top: 3px; font-size: 11px; color: var(--muted); }
.bc-dash { color: var(--muted-2); }
.bc-dept { font-size: 11px; color: var(--muted); }
.bc-hist-tbl .bc-file-name { max-width: 100%; }

/* 背调工作台 · 统计条 */
.bc-stats { display: flex; gap: 10px; margin: 4px 0 12px; }
.bc-stat {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.bc-stat b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.bc-stat span { font-size: 12.5px; color: var(--muted); }

/* 工作台表格 */
.bc-tbl { table-layout: fixed; min-width: 0; }
.bc-tbl th, .bc-tbl td { vertical-align: middle; }
.bc-tbl td { overflow: hidden; }
.bc-tbl th:last-child, .bc-tbl td:last-child { overflow: visible; }
.bc-ops { display: flex; gap: 3px; flex-wrap: nowrap; }
.bc-tbl .bc-ops .btn { padding-left: 5px; padding-right: 5px; }
.bc-tbl .bc-switch { padding: 2px 7px 2px 2px; gap: 5px; font-size: 11.5px; }
/* 操作列：按钮一行，催办状态（还没通知 / 已通知 X / 未送达）挂在下面一行小字 —— 它是催办的状态，
   挂在「背调结论」列下面会被读成「结论 = 还没通知」（2026-11-19） */
.bc-opsw { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
/* 十列的表：把单元格左右内边距从 14 收到 9 —— 一列省 10px，十列正好给附件列腾出 100px
   （选择器要带元素名 table，否则打不过 `table.tbl td { padding: 11px 14px }`） */
/* 九列的表：单元格内边距统一 12px（2026-11-19 用户口径：「所有字段间距保持一致」——
   原来左右 9px、上下 11px，横向挤、纵向松，看着不齐） */
table.bc-tbl th, table.bc-tbl td { padding: 12px; }
/* 第一列贴着卡片左边，留 14px 呼吸；最后一列贴右边同理 */
table.bc-tbl th:first-child, table.bc-tbl td:first-child { padding-left: 14px; }
table.bc-tbl th:last-child, table.bc-tbl td:last-child { padding-right: 14px; }
.bc-name { display: inline-flex; align-items: center; gap: 8px; }
.bc-sub { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); font-style: normal; }
.bc-pos { font-weight: 600; font-size: 12.5px; }
.bc-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.bc-dept { font-size: 11px; color: var(--muted); }
.bc-progress { display: flex; flex-direction: column; gap: 4px; }
.bc-progress-top { display: flex; align-items: center; gap: 6px; }
.bc-line { font-size: 11.5px; line-height: 1.5; display: block; }
.bc-line.is-ok { color: var(--mint-text, #1e7f5c); }
.bc-line.is-err { color: var(--red-text, #c0392b); }
.bc-line.muted { color: var(--muted); }
/* 附件列在表格里只占一窄列：文件名过长就截断（hover 有 title 看全名）
   2026-11-19 用户口径：「报告附件的框短一点」→ 行高压到 3px 内边距，删除按钮收成一个 × */
.bc-tbl .bc-files { min-width: 0; gap: 4px; }
.bc-tbl .bc-file { gap: 5px; padding: 3px 6px; min-width: 0; border-radius: 6px; }
.bc-tbl .bc-file-name { max-width: none; min-width: 0; flex: 1 1 auto; font-size: 11.5px; font-weight: 550; }
.bc-tbl .bc-file-ic { font-size: 11.5px; }
/* × 只在悬停时占位：附件列只有 118px，常驻一个删除按钮会把文件名挤成 4 个字 */
.bc-tbl .bc-file-del { display: none; font-size: 13px; line-height: 1; padding: 1px 2px; }
.bc-tbl .bc-file:hover .bc-file-del { display: block; }
.bc-tbl .bc-file-meta { margin-left: 4px; }
.bc-name .avatar { width: 26px; height: 26px; font-size: 11px; }
.bc-conclusion { white-space: pre-wrap; word-break: break-all; }

/* 附件行：整行可点开站内预览 */
.bc-files { display: flex; flex-direction: column; gap: 5px; min-width: 220px; }
.bc-file {
  display: flex; align-items: center; gap: 7px; padding: 5px 9px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  background: var(--card); transition: border-color .15s, background .15s;
}
.bc-file:hover { border-color: color-mix(in srgb, var(--ink, #333) 40%, transparent); }
.bc-file-ic { font-style: normal; font-size: 13px; }
.bc-file-name { font-size: 12.5px; font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-file-meta { font-style: normal; font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.bc-file-del {
  border: 0; background: none; color: var(--red); font-size: 11px; cursor: pointer; padding: 2px 4px;
  border-radius: 4px; opacity: 0; transition: opacity .12s;
}
.bc-file:hover .bc-file-del { opacity: 1; }

/* 需要 / 不需要 开关 */
.bc-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted);
  transition: background .15s, border-color .15s, color .15s;
}
.bc-switch i {
  width: 26px; height: 16px; border-radius: 999px; background: var(--line);
  position: relative; transition: background .15s; flex: none;
}
.bc-switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.bc-switch.is-on { color: var(--blue-text, #2563eb); border-color: color-mix(in srgb, var(--blue) 45%, transparent); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.bc-switch.is-on i { background: var(--blue); }
.bc-switch.is-on i::after { transform: translateX(10px); }
.c-ok { color: var(--mint-text, #1e7f5c); }
.is-err { color: var(--red-text, #c0392b); }

/* ============================================================================
   资产管理（2026-11-19）
   —— 汇总看板 + 资产库明细 + 发放 / 报修 / 报废记录
   ========================================================================== */

/* 弹窗表单：竖排 label + input（资产模块统一用这个，不依赖某个模块的私有类） */
.as-form { display: flex; flex-direction: column; gap: 14px; }
.as-form > label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 550; color: var(--ink-3); }
.as-form input, .as-form select, .as-form textarea {
  width: 100%; padding: 10px 12px; font-family: inherit; font-size: 13.5px;
  color: var(--ink); background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r-md); outline: none;
}
.as-form input:focus, .as-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, .06); }
.as-form textarea { resize: vertical; }

/* 列表行的资产缩略图 */
.as-thumb {
  width: 40px; height: 40px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card-2); cursor: zoom-in; display: block;
}

/* 缩略图容器：照片挂了（多维表 OSS 签名过期）就露出类别首字，不留破图 */
.as-thumb-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card-2);
  font-size: 15px; font-weight: 700; color: var(--muted);
}
.as-thumb-box > img {
  width: 100%; height: 100%; border: 0; border-radius: 8px;
  object-fit: cover; display: block; cursor: zoom-in;
}
.as-thumb-box:empty { cursor: default; }
.as-thumb-box:empty::after { content: attr(data-fb); }
.as-thumb-box.is-lg { width: 56px; height: 56px; border-radius: 10px; font-size: 20px; }
.as-thumb-box.is-lg > img { border-radius: 10px; }

/* 资产明细：列多，窄屏横向滚动而不是把最后一列裁掉 */
.as-tbl-wrap { overflow-x: auto; }
/* 窄屏逐级收列：验机号 → 入库日期 → 使用部门（12 列合计 1016px，1360 视口下能整张放下，
   所以断点按真实可用宽度（视口 − 侧栏 215 − 内边距 40）往下压，别在 1360 就把验机号藏了） */
@media (max-width: 1240px) { .tbl.tbl-nowrap [data-c="inspect"] { display: none; } }
@media (max-width: 1160px) { .tbl.tbl-nowrap [data-c="arrival"] { display: none; } }
@media (max-width: 1060px) { .tbl.tbl-nowrap [data-c="dept"] { display: none; } }

/* 发放弹窗的在库资产勾选列表 */
.as-picklist {
  max-height: 260px; overflow: auto; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2);
  display: flex; flex-direction: column; gap: 2px;
}
.as-pickrow {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 8px; font-size: 13px; font-weight: 480; color: var(--ink-2);
  cursor: pointer;
}
.as-pickrow:hover { background: #fff; }
.as-pickrow input { accent-color: var(--ink); }

/* 站内链接 */
.a-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 550; cursor: pointer; }
.a-link:hover { color: var(--ink-2); }

/* 列表筛选的搜索框（和 searchbox 同款但独立，避免依赖页面结构） */
.as-search {
  height: 34px; padding: 0 12px; width: 220px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--card-2); font-size: 12.5px; outline: none; color: var(--ink);
}
.as-search:focus { border-color: var(--ink); background: #fff; }

/* 员工端「我的资产」卡片（2026-11-19；2026-11-30 卡片可点 + 换领申请展示） */
.as-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.as-mine { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.as-mine.is-clickable { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.as-mine.is-clickable:hover, .as-mine.is-clickable:focus-visible { box-shadow: 0 2px 10px rgba(23, 23, 23, 0.08); transform: translateY(-1px); outline: none; }
.as-mine-swap { margin-top: -4px; }
.as-mine-top { display: flex; gap: 12px; align-items: flex-start; }
.as-mine-info { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; min-width: 0; flex: 1; }
.as-mine-info b { font-size: 14px; color: var(--ink); }
/* 换领申请横条（页头下方的在途/最近申请） */
.as-swap-strip { display: flex; flex-direction: column; gap: 8px; }
.as-swap-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
/* 资产详情弹窗（员工端） */
.as-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.as-detail-kv { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--card-2); border-radius: var(--r-md); }
.as-detail-kv span { font-size: 11px; color: var(--muted); }
.as-detail-kv b { font-size: 12.5px; color: var(--ink); word-break: break-all; }
.as-detail-swap { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; background: rgba(240, 180, 41, 0.12); border-radius: var(--r-md); font-size: 12.5px; }
.as-detail-tl { display: flex; flex-direction: column; }
.as-tl-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.as-tl-row:last-child { border-bottom: none; }
.as-tl-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: 0 0 auto; }
.as-tl-mint { background: var(--mint, #3d9a6c); }
.as-tl-lemon { background: var(--lemon, #d9a514); }
.as-tl-line { background: var(--line-2, #ccc); }
.as-tl-row > div { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; min-width: 0; }
.as-tl-row .muted { font-size: 12px; }
.as-mine-foot { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; justify-content: flex-end; }
.as-thumb-lg { width: 56px; height: 56px; border-radius: 10px; }
.as-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--muted); cursor: default;
}

/* ============================================================================
   资产管理改版（2026-11-19）：两组页签 / 筛选条 / 分步弹窗 / 资产时间轴
   ========================================================================== */

/* 页签行与列表拉开距离，别和第一张卡贴在一起 */
.as-headbar { margin-bottom: 12px; }

/* 列表卡：筛选条单独一条、带下边框，表格从边框下面开始 —— 原来筛选框和表头挤在一起 */
.as-listcard { overflow: hidden; }
.as-filterbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--card);
}
/* 筛选条和表头之间留出呼吸：之前两者贴在一起，看着像「筛选框压在表头上」 */
.as-listcard .as-tbl-wrap { padding-top: 10px; }
.as-listcard .tbl thead th { background: var(--card); }
.as-filtercount { margin-left: auto; font-size: 12px; }
.as-listcard .pager { border-top: 1px solid var(--line); }

/* 报废记录：审批中 / 全部记录 的左右切换（2026-11-22 用户口径），单独一条压在筛选条上方 */
.as-scraptabs {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px 0;
}
.as-scraptab-hint { font-size: 11.5px; color: var(--muted); }

/* 资产规则管理（2026-11-22）：四份名单，每条规则一张卡，名单里的人用标签排开 */
.as-rules { display: flex; flex-direction: column; gap: 12px; }
.as-rule-count {
  margin-left: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 1px 8px;
}
.as-rule-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-rule-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 4px 0 10px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink);
}
.as-rule-chip b { font-weight: 650; }
.as-rule-chip em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.as-rule-chip.is-out { opacity: .7; border-style: dashed; }
.as-rule-out { font-size: 10.5px; color: var(--red); }
.as-rule-x {
  width: 18px; height: 18px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-3); font-size: 13px; line-height: 1; cursor: pointer;
}
.as-rule-x:hover { background: var(--line); color: var(--ink); }
.as-rule-none { font-size: 12px; color: var(--muted); }
.as-rule-add { margin-left: 2px; }

/* 明细行可点：整行换成手型 + 悬停微亮 */
.as-row { cursor: pointer; }
.as-row:hover td { background: #fcfaf7; }

/* ---- 资产库明细（2026-11-19 重排）：12 列全部限宽，超长一律省略号 ---- */
.as-list-tbl { table-layout: fixed; width: 100%; }
.as-list-tbl td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 编号：长编号先省略，点一下就地展开全文（再点收起），不弹窗也不跳抽屉 */
.as-list-tbl td.as-no { cursor: pointer; }
.as-list-tbl td.as-no span { display: block; overflow: hidden; text-overflow: ellipsis; }
.as-list-tbl td.as-no.is-open { white-space: normal; word-break: break-all; }
.as-list-tbl td.as-no.is-open span { display: inline; }
.as-list-tbl td.as-alias { color: var(--ink-3); }
/* 行尾铅笔：编辑资产档案 */
.as-rowact { text-align: right; }
.as-editbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted-2); cursor: pointer;
  opacity: .6; transition: opacity .12s, background .12s, color .12s;
}
.as-row:hover .as-editbtn, .as-editbtn:focus-visible { opacity: 1; }
.as-editbtn:hover { background: var(--card-2); color: var(--ink); }

/* 部门标签：颜色来自座位表的部门配色（服务端没配过的部门按名称散列） */
.as-dept {
  display: inline-block; max-width: 100%; padding: 1px 7px; border-radius: 6px;
  font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- 资产图片大框：可拖拽、可粘贴、中间一颗上传按钮 ---- */
.as-form .as-drop { position: relative; }
.as-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 180px; padding: 16px; margin-bottom: 4px;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  background: var(--card-2); cursor: pointer; outline: none;
  transition: border-color .15s, background .15s;
}
.as-drop.is-ready, .as-drop:focus-visible { border-color: var(--ink-3); background: var(--card); }
.as-drop.is-over { border-color: var(--ink); background: var(--card); }
.as-drop-img { max-width: 100%; max-height: 220px; border-radius: 10px; object-fit: contain; }
.as-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.as-drop-empty b { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.as-drop-empty span { font-size: 12px; color: var(--muted); }
.as-drop-btn { position: relative; z-index: 1; }
.as-drop-state { position: absolute; right: 10px; top: 8px; font-size: 11.5px; color: var(--muted); }

/* 表格里的长文本列：限宽两行截断，完整内容看 title */
.as-wrap { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 汇总页顶部的待办提示（待审批报废 / 未结报修） */
.as-tipbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.as-tip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--lemon-soft, #fdf6dd); color: #7a5b12;
  font-size: 12.5px; font-weight: 550; text-decoration: none;
  border: 1px solid #f0e3b8;
}
.as-tip:hover { background: #fbf0cb; }

/* ---------------------------- 分步弹窗 ---------------------------- */
.as-steps { display: flex; flex-direction: column; gap: 14px; }
.as-step {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; background: var(--card);
}
.as-step > header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-size: 13px; color: var(--ink);
}
.as-step > header b { font-weight: 650; }
.as-step > header em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.as-step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; flex: none;
}
.as-step .as-input,
.as-step textarea.as-input {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  font-family: inherit; font-size: 13px; color: var(--ink); outline: none;
}
.as-step textarea.as-input { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.as-step .as-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, .06); }

/* 类别选择：药丸按钮，选中变实心 */
.as-catchips { display: flex; flex-wrap: wrap; gap: 6px; }
.as-catchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--card-2);
  font-family: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.as-catchip em { font-style: normal; font-size: 11px; color: var(--muted); }
.as-catchip:hover { border-color: var(--ink-3); color: var(--ink); }
.as-catchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.as-catchip.is-on em { color: rgba(255, 255, 255, .7); }

.as-pickhint { padding: 12px; font-size: 12.5px; color: var(--muted); }
.as-pickmain { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.as-pickmain b { font-weight: 600; color: var(--ink); font-size: 13px; }
.as-pickmain .muted { font-size: 11.5px; }
.as-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.as-note {
  padding: 9px 12px; border-radius: var(--r-md);
  background: var(--card-2); color: var(--ink-2); font-size: 12.5px;
}
.as-note b { color: var(--ink); }

/* 发放弹窗「发放资产」步骤：一行一件资产（类别 + 具体资产），行尾加号继续加 */
.as-irows { display: flex; flex-direction: column; gap: 8px; }
.as-irow { padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2); }
.as-irow-line { display: grid; grid-template-columns: 148px minmax(0, 1fr) 26px; gap: 8px; align-items: center; }
.as-irow-btn { width: 100%; height: 34px; }
.as-irow-btn .pk-text b { font-weight: 600; }
.as-irow-del {
  width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.as-irow-del:hover { background: var(--card); color: var(--ink); }
/* 选中资产后原地给出编号 / 资产别名 / 验机号（用户口径：点击具体资产要展示这三项） */
.as-irow-info {
  display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; padding-top: 7px;
  border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.as-irow-info em { font-style: normal; color: var(--muted); margin-right: 5px; }
.as-addrow { margin-top: 10px; }

/* 归还弹窗：只还一件，直接写清楚是哪件 */
.as-returncard { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card-2); }
.as-returnno { font-family: var(--f-num); font-size: 14px; font-weight: 650; color: var(--ink); word-break: break-all; }
.as-returnmeta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.as-returnmeta em { font-style: normal; color: var(--muted); margin-right: 6px; }

/* 报修结果：两个整块按钮（用户口径：不要单选点，文字不换行要完整展示） */
.as-choice2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.as-choice {
  padding: 13px 12px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--card-2); font: inherit; font-size: 13px; font-weight: 550; color: var(--ink-2);
  white-space: nowrap; text-align: center; cursor: pointer;
  transition: background .14s, color .14s, border-color .14s;
}
.as-choice:hover { border-color: var(--ink-3); color: var(--ink); }
.as-choice.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 720px) { .as-choice { font-size: 12px; padding: 12px 8px; } }

/* 报修记录：列多，窄屏优先保住资产和描述 */
.as-repair-tbl { table-layout: fixed; width: 100%; }
.as-repair-tbl td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 报废记录：来源列（报修转报废 / 直接发起）+ 原因、意见两列自适应 */
.as-scrap-tbl { table-layout: fixed; width: 100%; }
.as-scrap-tbl td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 发放记录：一件资产一行，列多 → 窄屏收掉验机号/部门两列 */
.as-issue-tbl { table-layout: fixed; width: 100%; }
.as-issue-tbl td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 列宽由 <colgroup> 定死，左右内边距统一 12px（首列 16px 贴卡片边），
   这样字段之间的视觉间距一致，不再出现「用途吃掉半个表、部门被截断」的情况 */
.as-issue-tbl th, .as-issue-tbl td { padding-left: 12px; padding-right: 12px; }
.as-issue-tbl th:first-child, .as-issue-tbl td:first-child { padding-left: 16px; }
.as-issue-tbl th:last-child, .as-issue-tbl td:last-child { padding-right: 16px; }
@media (max-width: 1240px) { .as-issue-tbl [data-c="inspect"] { display: none; } }
@media (max-width: 1060px) { .as-issue-tbl [data-c="dept"] { display: none; } }

/* ---------------------------- 资产时间轴抽屉 ---------------------------- */
.as-drawer-head { display: flex; gap: 12px; align-items: center; }
.as-drawer-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.as-drawer-title strong { font-size: 15px; color: var(--ink); }
.as-drawer-chips { display: flex; gap: 6px; margin-top: 2px; }

.as-kv {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card-2); margin-bottom: 16px;
}
.as-kv > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-kv span { font-size: 11.5px; color: var(--muted); }
.as-kv b { font-size: 12.5px; color: var(--ink); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.as-tl-head { font-size: 13px; font-weight: 650; color: var(--ink); margin: 4px 0 12px; }
.as-tl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.as-tl-item {
  position: relative; padding: 0 0 18px 26px;
  border-left: 1px solid var(--line);
}
.as-tl-item:last-child { border-left-color: transparent; padding-bottom: 2px; }
.as-tl-dot {
  position: absolute; left: -9px; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  background: var(--muted-2, #b7b0a8);
  box-shadow: 0 0 0 3px var(--card);
}
.as-tl-item.is-mint .as-tl-dot { background: #3f8f6b; }
.as-tl-item.is-blue .as-tl-dot { background: #3c6ea5; }
.as-tl-item.is-lemon .as-tl-dot { background: #b8912a; }
.as-tl-item.is-red .as-tl-dot { background: #b5443a; }
.as-tl-top { display: flex; align-items: baseline; gap: 8px; }
.as-tl-top b { font-size: 13px; color: var(--ink); font-weight: 600; }
.as-tl-date { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.as-tl-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.as-tl-by { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---- 提交报销（2026-11-20 重排：额度条中性化 + 分组表单 + 三通上传框） ---- */
.rm-quota {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.rm-quota-l { min-width: 180px; }
.rm-quota-k { font-size: 11.5px; color: var(--muted); }
.rm-quota-n {
  font-size: 21px; font-weight: 700; letter-spacing: -.3px; line-height: 1.25; margin-top: 2px;
}
.rm-quota-n em { margin-left: 6px; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.rm-quota-r { flex: 1 1 260px; min-width: 200px; }
.rm-quota-legend {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 7px;
  font-size: 11.5px; color: var(--muted);
}
.rm-quota-legend .is-over { color: var(--red); font-weight: 600; }
/* 页签吸在标题行右侧，别单独占一行 */
.rm-kind { margin-left: auto; }
.rm-group { padding: 14px 0; border-top: 1px solid var(--line); }
.rm-group:first-child { padding-top: 2px; border-top: 0; }
.rm-group-h {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px;
  font-size: 12px; font-weight: 650; color: var(--ink-2);
}
.rm-group-h i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.rm-cell { flex: 1 1 220px; min-width: 0; }
.rm-cell[hidden] { display: none; }
/* 附件三格：等宽、随宽度换行 */
.rm-upgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rm-up { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rm-up-k { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.rm-up-k i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 5px; }
.rm-files { display: flex; flex-direction: column; gap: 5px; }
.rm-files:empty { display: none; }
.rm-file {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--card-2); font-size: 12px;
}
.rm-file-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-file-x {
  flex: none; width: 18px; height: 18px; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; line-height: 1;
}
.rm-file-x:hover { background: var(--line); color: var(--ink); }
/* 提交条：左边一句说明，右边按钮 */
.rm-foot {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.rm-foot .tiny { margin-right: auto; }
/* 我的报销顶部汇总条：白底 + 三段数字，不用橙色提醒卡（额度不是警告） */
/* 2026-11-26：类型页签（普通 / AI）移到这一行的最右，切页签时额度条只在 AI 页签出现 */
.rm-sum { display: block; }
.rm-sum-top { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.rm-sum-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.rm-sum-quota { flex: 1 1 320px; min-width: 240px; }
.rm-sum-quota .rm-quota-r { margin-top: 6px; }
.rm-sum-quota .rm-quota-bar { margin-top: 8px; }
.rm-sum-stat { display: flex; flex-direction: column; gap: 1px; min-width: 84px; }
.rm-sum-stat em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.rm-sum-stat b { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.rm-sum-stat span { font-size: 11.5px; color: var(--muted); }
.rm-sum-ops { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
@media (max-width: 720px) {
  .rm-sum-ops { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* 状态 / 筛选 分两行（2026-11-26 用户口径：别把类型、用途、状态堆一堆） */
.rm-toolbar {
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 13px; border-bottom: 1px solid var(--line);
}
.rm-tool-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.rm-tool-k { flex: none; width: 30px; font-size: 11.5px; color: var(--muted); }
.rm-w-month { width: 132px; flex: none; }
.rm-tool-count { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
/* 搜索框：定宽胶囊 + 放大镜，不再用浏览器默认输入框 */
.rm-search { position: relative; display: flex; align-items: center; flex: none; width: 236px; }
.rm-search > svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.rm-search input {
  width: 100%; height: 32px; padding: 0 12px 0 31px;
  font: inherit; font-size: 12.5px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 99px; background: var(--card-2); outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.rm-search input:focus { border-color: var(--ink-3); background: var(--card); }
.rm-search input::placeholder { color: var(--muted); }
.rm-search input::-webkit-search-cancel-button { cursor: pointer; }
/* 我的报销表格：列宽写死（用途 240px），后面的金额/进度/日期就不会被挤 */
/* ⚠️ 固定列宽 + width:100% 在窄屏会把列压塌，必须给表格一个最小宽度、让容器横向滚动 */
.rm-mine-tbl { min-width: 782px; }
.rm-mine-tbl .rc-time { white-space: nowrap; }
/* .reim-tbl 上有一条给「后台报销审批」表的窄屏规则（隐藏第 2 列 = 部门、最后一列吸右）。
   我的报销是另一种表：第 2 列是「用途」必须留，打款日期也不该吸右，这里按类覆盖回来。 */
@media (max-width: 1240px) {
  .rm-mine-tbl col:nth-child(2) { display: table-column; }
  .rm-mine-tbl th:nth-child(2),
  .rm-mine-tbl td:nth-child(2) { display: table-cell; }
  .rm-mine-tbl th:last-child,
  .rm-mine-tbl td:last-child {
    position: static; box-shadow: none; background: transparent; z-index: auto;
  }
}
/* 数字类字段别跟别的字段平分半行 */
.rm-narrow { flex: 0 0 220px; }

/* ---- 提交报销 2026-11-26 视觉调整：切换按钮置顶、额度条加宽、字号与间距加大 ---- */
/* 额度卡改成纵向排（标题/数字一行，宽进度条 + 图例一行），显示在切换按钮正下方 */
.rm-top .rm-quota {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 14px 0 16px; border-top: 1px solid var(--line);
}
.rm-top .rm-quota[hidden] { display: none; }
/* 纵向布局下基类的 flex-basis 会变成高度（260px 空白），这里把子项还原成内容高 */
.rm-top .rm-quota-l,
.rm-top .rm-quota-r { flex: 0 0 auto; min-width: 0; }
/* 宽额度条：轨道就是未用部分（中性灰），只给已用段上色；正常 mint、近额度 lemon、超额 red */
.rm-quota-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rm-quota-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--mint); transition: width .4s ease; }
.rm-quota-bar.is-warn > i { background: var(--lemon); }
.rm-quota-bar.is-over > i { background: var(--red); }
/* 表单整体：分组变成纵向 flex，行距统一由 gap 控制；字号加大（只作用于报销提交页） */
#reim-form .rm-group { display: flex; flex-direction: column; gap: 18px; padding: 18px 0; }
#reim-form .rm-group-h { margin-bottom: 0; font-size: 13px; }
#reim-form .rm-group-h i { font-size: 11.5px; }
#reim-form .app-field > span { font-size: 13.5px; }
#reim-form .app-field > span i { font-size: 11.5px; }
/* 报销表单：所有控件同一套边框（2026-11-28 用户：「报销金额和报销项目同样的边框展示类型、同样的边框大小和间距，
   开票抬头所有的框都要和报销金额这个框长得一样，AI 报销额度这里边框都长得一样」）。
   宽度沿用各自布局（金额仍 220px），高度 / 圆角 / 边框 / 底色 / padding / 字号全部一致。 */
#reim-form .app-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
#reim-form .app-field select,
#reim-form .app-field textarea,
#reim-form .app-field .pk-trigger {
  box-sizing: border-box;
  width: 100%; min-width: 0; max-width: 100%;
  height: 38px; min-height: 38px;
  padding: 0 11px;
  font: inherit; font-size: 13.5px; line-height: 1.4; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--card); outline: none;
}
#reim-form .app-field textarea { height: auto; min-height: 96px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
#reim-form .app-field input:focus,
#reim-form .app-field select:focus,
#reim-form .app-field textarea:focus,
#reim-form .app-field .pk-trigger:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,23,.06); }
#reim-form .rm-upgrid { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
#reim-form .rm-up { gap: 7px; }
#reim-form .rm-up-k { font-size: 13px; }
#reim-form .rm-up-k i { font-size: 11.5px; }
/* 报销项目下拉撑满整格（.app-field 里的 pk-trigger 默认按内容收缩） */
.app-multi { width: 100%; min-width: 0; }
.app-multi .pk-trigger { width: 100%; }
/* .app-field 里的输入框通用底样式（其它页面共用）——报销页由上面的 #reim-form 规则统一覆盖 */
.app-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.app-field select {
  height: 34px; padding: 0 10px; font: inherit; font-size: 12.5px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); outline: none;
  min-width: 0; max-width: 100%;
}
.app-field input:not([type=checkbox]):not([type=radio]):focus,
.app-field select:focus { border-color: var(--ink); }

/* 年月浮层 pk-month（报销「时间周期」）：沿用 .mpick 外壳，先选年份再选月份（2026-11-28） */
.mpick.pk-month { padding: 2px 0; }
.pk-month-body { display: flex; flex-direction: column; gap: 12px; padding: 8px 10px 4px; }
.pk-month-row { display: flex; flex-direction: column; gap: 7px; }
.pk-month-k { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pk-month-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.pk-month-mons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.pk-month .pk-chip { min-height: 32px; display: flex; align-items: center; justify-content: center; }
.pk-month-mons.is-locked { opacity: .45; pointer-events: none; }
.pk-month-tip { font-size: 11px; color: var(--muted); padding-top: 2px; }
/* 报销「时间周期」触发按钮：和报销金额等框同一套边框，文字左对齐、空态灰字 */
#reim-form .pk-trigger.rm-month { justify-content: flex-start; }
#reim-form .pk-trigger.rm-month.is-empty { color: var(--muted); }

/* ---- 考勤与假期重构（2026-11-28）：余额卡进度条配色 + 请假/加班分段页 + 考勤日周月 ---- */
/* 余额卡进度条：跟随卡片语义色（类别定色相），加宽加高，别再是纯黑细线 */
.app-card { --card-accent: var(--ink-2); }
.app-card.is-blue  { --card-accent: #3b74c4; }
.app-card.is-lemon { --card-accent: #b48a12; }
.app-card.is-lilac { --card-accent: #7a5bc4; }
.app-card.is-mint  { --card-accent: #1e9e6e; }
.app-card.is-orange{ --card-accent: #d97e32; }
.app-card.is-pink  { --card-accent: #d1569a; }
.app-card-bar { height: 8px; margin-top: 8px; background: var(--line); }
.app-card-bar i { background: var(--card-accent); }
/* 余额卡按卡数定列：6 个假种刚好一行（用户 2026-11-28），窄屏再降列 */
.app-grid.is-bal-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.app-grid.is-bal-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.app-grid.is-bal-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-grid.is-bal-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-grid.is-bal-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .app-grid.is-bal-6, .app-grid.is-bal-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* 请假/加班页头分段页签靠右 */
.app-head-act .segmented { margin-left: auto; }
/* 考勤视图切换条：日/周/月 + 区间筛选同一行 */
.at-vbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.at-vbar .at-range { margin-bottom: 0; flex: 1 1 320px; }
.at-vbar > .segmented { flex: none; }
/* 单日详情卡 */
.at-daydetail { padding: 4px 2px; }
.at-daydetail-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; }
.at-daydetail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.at-daydetail-grid > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.at-daydetail-grid span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.at-daydetail-grid b { font-size: 18px; font-family: var(--f-num); }
.at-daydetail-note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--blue-soft); font-size: 12.5px; color: var(--ink-2); }

/* ---- 我的周报（2026-11-20 16:xx 照群发周报页 weekly.html 重做：单列） ---- */
/* 内容收窄成一列，和钉钉群里那张卡片点开的页面同一个阅读宽度 */
.wkp-in { width: 100%; max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
/* 列宽别被 auto margin 挤成 fit-content：flex 纵轴的 auto margin 会取消 stretch，必须显式 width:100% */
/* ① 选周卡：蓝底，和群页「填写哪一周」一致（表单卡才用白底） */
.wkp-pick { background: var(--blue-soft); border-color: transparent; }
.wkp-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wkp-pick-head > b { font-size: 14px; letter-spacing: -.01em; }
.wkp-select {
  width: 100%; height: 42px; border: 1px solid rgba(42, 74, 122, .26); border-radius: var(--r-md);
  background: #fff; padding: 0 34px 0 12px; font-size: 14px; font-family: inherit; color: var(--ink);
  appearance: none; -webkit-appearance: none; outline: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='m1 1.5 5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.wkp-select:focus { border-color: var(--ink); }
.wkp-range { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.wkp-range b { color: var(--ink); font-weight: 650; }
.wkp-tip { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
/* ② 已交提示条 */
.wkp-donehint { background: var(--mint-soft); border-color: transparent; }
.wkp-donehint-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wkp-donehint-head > b { font-size: 13.5px; }
.wkp-donehint p { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
/* ③ 页签：白底选中（和群页 .tabs 一致，别用全站的黑实心——这里是表单页签不是筛选） */
.wkp-tabs { display: flex; gap: 4px; background: #e7e2db; border-radius: var(--r-pill); padding: 4px; }
.wkp-tabs button {
  flex: 1; height: 34px; border: 0; border-radius: var(--r-pill); background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer;
}
.wkp-tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.wkp-tabs button:focus { outline: none; }
.wkp-tabs button:focus-visible { outline: 2px solid var(--ink-3); outline-offset: 2px; }
/* ④ 五个填写框 */
.wkp-f { margin-top: 16px; }
.wkp-f:first-child { margin-top: 2px; }
.wkp-f-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.wkp-f-top label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.wkp-req { color: var(--red); font-style: normal; margin-left: 2px; }
.wkp-cnt { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.wkp-f textarea {
  width: 100%; min-height: 92px; border: 1px solid var(--line); background: var(--card-2);
  border-radius: var(--r-md); padding: 11px 13px; font-size: 13.5px; line-height: 1.7;
  font-family: inherit; color: var(--ink); outline: none; resize: none; display: block;
}
.wkp-f textarea:focus { border-color: var(--ink); background: #fff; }
.wkp-f textarea::placeholder { color: var(--muted-2); }
.wkp-f.is-bad textarea { border-color: var(--red); background: var(--red-soft); }
/* 提交条：跟在最后一个框后面（不做吸底 —— 桌面端吸底会盖住正在写的框，
   群页那是手机小屏的取舍，这里按桌面习惯来） */
.wkp-bar { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.wkp-bar .btn { width: 100%; height: 44px; font-size: 14.5px; font-weight: 600; }
/* ⑤ 历史：一张一张折叠卡 */
.wkp-hist { display: flex; flex-direction: column; gap: 10px; }
.wkp-h-item { background: var(--card); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.wkp-h-item > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.wkp-h-item > summary::-webkit-details-marker { display: none; }
.wkp-h-t { font-size: 13px; font-weight: 650; }
.wkp-h-s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.wkp-h-x { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.wkp-h-item[open] .wkp-h-x { color: var(--ink-3); }
.wkp-h-body { padding: 0 14px 14px; }
.wkp-h-sec { margin-top: 12px; }
.wkp-h-sec h5 { margin: 0 0 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.wkp-h-sec p { margin: 0; font-size: 13px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.wkp-h-body .btn { margin-top: 12px; }
.wkp-hist-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px; }

/* ---- 日报管理（2026-11-20 二改：对齐周报版式，模板选择 + 页面内表单） ---- */
/* 模板选择卡：和选日期卡同语言（蓝底），pills 选用名下模板 */
.dl-picktpl { background: var(--blue-soft); border-color: transparent; }
.dl-tpldesc { margin: 8px 2px 0; line-height: 1.6; }
/* 页面内表单头：模板名 + 状态签 + 截止信息一行摆下 */
.dl-formhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dl-formhead > b { font-size: 14px; letter-spacing: -.01em; }
.dl-formhead > em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-left: auto; }
/* 「修改这份」是软按钮，别被 wkp-bar 的实心提交条样式撑成主色块 */
.wkp-bar .btn-soft { width: 100%; height: 42px; font-size: 13.5px; }

/* PC 端历史条目：整行是一颗按钮（点击从右侧弹抽屉看那一期，2026-11-20 用户口径「仅仅是在 PC 端」）。
   手机端仍走 <details>，见上面的 summary 样式。 */
.wkp-h-item.is-pc {
  width: 100%; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: 0.15s;
}
.wkp-h-item.is-pc:hover { border-color: var(--line-2); background: var(--card-2); }
.wkp-h-item.is-pc:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wkp-h-item.is-pc .wkp-h-x { display: inline-flex; align-items: center; gap: 3px; }
.wkp-h-item.is-pc:hover .wkp-h-x { color: var(--ink-2); }

/* 历史单周详情抽屉：标题 / 提交时间在头，五段正文一层一层压着发丝线排下来 */
.wkp-dw-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wkp-dw-h b { font-size: 15px; font-weight: 650; color: var(--ink); }
.wkp-dw-h > span { font-size: 12.5px; color: var(--muted); }
.wkp-dw-s { margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.wkp-dw-x { width: 30px; height: 30px; font-size: 16px; line-height: 1; flex: 0 0 auto; }
.wkp-dw-sec { padding: 15px 0; }
.wkp-dw-sec:first-child { padding-top: 0; }
.wkp-dw-sec:last-child { padding-bottom: 0; }
.wkp-dw-sec + .wkp-dw-sec { border-top: 1px solid var(--line); }
.wkp-dw-sec h5 { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
/* 正文限宽：抽屉 680px 一行能排近 50 个汉字，读长段会串行 */
.wkp-dw-sec p { margin: 0; max-width: 36em; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- 约面试弹窗：本轮面试官多选（2026-11-21） ---------- */
/* 弹窗底部信息格从 3 格扩到 4 格（岗位 / HR 面试官 / 本轮面试官 / 当前阶段） */
.rc-book-info { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-iv-box { display: flex; align-items: flex-start; gap: 8px; }
.rb-iv-chips {
  flex: 1;
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--card);
}
.rb-iv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 9px;
  border-radius: 99px;
  background: var(--mint-soft, #eaf5f0);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.5;
}
.rb-iv-x {
  width: 15px; height: 15px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.rb-iv-x:hover { background: rgba(0, 0, 0, 0.07); color: var(--ink); }
.rb-iv-none { font-size: 12.5px; color: var(--muted); }

/* ---------- 管控额度提示（审批抽屉 + 员工提交页共用，2026-11-22） ---------- *
 * 用户口径：「假设我规定每个月只能请 3 天，他已经请了 4 天，那你就要提醒我……
 * 不同等级的警告用不同颜色的圆点去提醒」。圆点本体是 emoji（与钉钉通知同一套）。 */
.lv-advice {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--card-2);
}
.lv-advice-h { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.lv-advice-row { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.75; }
.lv-advice-dot { flex: none; }
.lv-advice-note {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--muted);
}
.lv-advice.is-over, .lv-advice.is-red { background: var(--red-soft); border-color: var(--red); }
.lv-advice.is-over .lv-advice-h, .lv-advice.is-red .lv-advice-h { color: var(--red); }
.lv-advice.is-orange { background: var(--orange-soft); border-color: var(--orange); }
.lv-advice.is-orange .lv-advice-h { color: #b06a2c; }
.lv-advice.is-yellow { background: var(--lemon-soft); border-color: var(--lemon); }
.lv-advice.is-yellow .lv-advice-h { color: #94781c; }

/* 发起请假：表单在左、管控提醒在右（2026-11-30 用户口径「展示到右边，不要下面」）。
   窄屏放不下两栏时自动落回下方，避免把表单挤成一条。 */
.app-apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .app-apply-layout { grid-template-columns: 1fr; } }
.lv-advice-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.lv-advice-item + .lv-advice-item { border-top: 1px dashed var(--line-2); }
.lv-advice-ring { flex: none; text-align: center; }
.lv-advice-ring svg { display: block; }
.lv-advice-ring-cap { margin-top: -6px; font-size: 11px; color: var(--muted); }
.lv-advice-txt { min-width: 0; }
.lv-advice-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.lv-advice-detail { font-size: 12px; color: var(--ink-3); line-height: 1.7; }

/* 请假 / 加班记录筛选条（2026-11-30：按状态、类型、月份筛选） */
.rec-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.rec-filter select, .rec-filter input[type="month"] {
  height: 30px; padding: 0 10px; font-size: 12.5px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--card); color: var(--ink-2);
}

/* 加班申请右侧「本月 / 本周已加班多少次」（2026-11-30 用户口径） */
.ot-side { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); }
.ot-side .app-block-head { padding: 0; }
.ot-stat { padding: 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); }
.ot-stat-label { font-size: 12px; color: var(--muted); }
.ot-stat-value { font-size: 34px; font-weight: 700; line-height: 1.25; color: var(--ink-1); }
.ot-stat-value span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.ot-stat-foot { font-size: 12px; color: var(--ink-3); }

/* ============================================================
   入职日历弹窗 › 输入框统一（2026-11-25 用户口径）
   「日程名称 / 地点」这两个框之前只挂了 class="input"，而全局并没有 `.input` 这个类，
   于是落回浏览器默认样式：粗黑边、无内边距、文字贴着左边，和「入职时间」「日程备注」明显不是一个长相。
   统一成表单里 .field 那套（38 高 / 14 圆角 / 1px 发丝边 / 12px 内边距 / 聚焦描深）。
   ============================================================ */
.ob-field input,
.ob-field textarea,
.ob-field select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: 0.15s;
}
.ob-field textarea,
.ob-field textarea.rc-ta {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.7;
  resize: vertical;
  font-family: inherit;
}
.ob-field input:focus,
.ob-field textarea:focus,
.ob-field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06);
}
/* 预备入职底部操作条：只留一个「保存入职信息」，靠右（2026-11-25 用户口径） */
.rc-facts.is-end { justify-content: flex-end; }
/* offer 记录三列排布时，原生 date 控件会把「2026-12-01」压成「2026-1…」：
   给它小一号字 + 收紧内边距，三列也放得下（2026-11-25 顺手修） */
.rc-kvbox input[type="date"] {
  font-size: 12px;
  padding: 0 4px;
  min-width: 0;
  letter-spacing: -0.2px;
}
/* offer 记录改成两列：三列时每列只有 ~104px，原生 date 控件会被压成「2026…」，
   实际薪资也被截断；记录人占整行（2026-11-25） */
.rc-fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-kvbox.is-wide { grid-column: 1 / -1; }

/* ============================================================
   选座弹窗（2026-11-25）：点空位选中，选中格描边加阴影
   复用座位表查看器的骨架（.seat-view-head / .seat-view-wrap / .seat-grid）
   ============================================================ */
.seat-grid-pick td.seat-cell.is-free { cursor: pointer; }
.seat-grid-pick td.seat-cell.is-free:hover { outline: 2px solid var(--ink-3); outline-offset: -2px; }
.seat-grid-pick td.seat-cell.is-picked {
  box-shadow: inset 0 0 0 2px var(--ink);
  background-image: linear-gradient(rgba(23, 23, 23, 0.1), rgba(23, 23, 23, 0.1));
}
.seat-pick-val { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.seat-pick-val > span { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.seat-pick-val input {
  height: 34px; width: 300px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font-size: 13px; color: var(--ink); outline: none; transition: 0.15s;
}
.seat-pick-val input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06); }
.seat-pick-hint.is-on { color: var(--ink); font-weight: 600; }
/* 预备入职里的座位格子：跟其它「点开选」的格子同一副长相（.rc-if 已覆盖），这里只补按钮默认样式复位 */
button.rc-if { font: inherit; text-align: left; }
/* 选座弹窗：已被别人预选的格子 —— 底图颜色保持不动，格子中央一行红字「名字（预选）」 */
.seat-grid td.seat-cell { position: relative; }
.seat-grid-pick td.seat-cell.is-taken { cursor: not-allowed; }
.seat-taken {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  /* 字号/字重与格子里的员工名字（.seat-who b = 12.5px/600）视觉一致，跟着整体缩放，
     不再做反向放大 —— 2026-11-30 用户口径：「框的大小太大了，怎么可能超过单元格呢，
     和原本选择的员工字体大小保持一致」，外框（box-shadow）也一并去掉 */
  font-size: 12.5px; line-height: 1.22; font-weight: 600;
  color: #c0392b; white-space: nowrap; pointer-events: none;
  overflow: hidden; text-overflow: ellipsis;
}

/* offer 记录 / 发起 offer 的入职时间格（2026-11-25）：原生日期输入被全局 picker 换成了 .pk-trigger，
   152px 的格子里默认字号会把「2026-12-01 09:30」省略掉分钟 —— 收到 12px、内边距 8px，保证日期+时刻完整 */
.rc-kvbox .pk-trigger { padding: 0 8px; gap: 4px; font-size: 12px; }
.rc-kvbox .pk-trigger .pk-text { font-variant-numeric: tabular-nums; letter-spacing: -0.1px; }
/* 格子本身就写着「入职时间」，日历小图标占 14px 反而把分钟挤没了，藏掉 */
.rc-kvbox .pk-trigger .pk-chev { display: none; }

/* 从钉钉消息点「候选人主页?step=xxx」进来时，被定位到的那一段闪一下，让人知道看哪儿（2026-11-25） */
.rc-fstep.is-flash .rc-fmain > .rc-fhead { background: rgba(255, 214, 102, 0.18); border-radius: 10px; }
.rc-fstep.is-flash .rc-fpanel { outline: 2px solid rgba(240, 180, 41, 0.55); outline-offset: 4px; border-radius: 12px; }

/* ===================================================================
   反馈管理（2026-11-25）
   两端共用一个视图（views/feedback.js）：后台是「系统设置 › 反馈管理」整页，
   员工端是「我的设置」最下面那张卡。这里只管排版，颜色一律走系统语义色。
   =================================================================== */
.fb-wrap { display: flex; flex-direction: column; gap: 14px; }

/* 顶部四五个数字：点一下就按状态筛，比下拉快 */
.fb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fb-stat {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; text-align: left; transition: box-shadow .15s, border-color .15s;
  /* 每个语义色变体把主色写进 --stat-ink，标签和数字都跟它走（2026-11-28 用户口径：
     统计卡要按全站语义色上底色 —— 与离职办理 .ofa-stat 四色卡同一套手法） */
  --stat-ink: var(--ink);
}
.fb-stat:hover { border-color: var(--line-2); }
.fb-stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.fb-stat b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--stat-ink); }
.fb-stat.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* 五个变体：全部=白、待审核=柠檬（进行中）、已通过=蓝（已受理）、未通过=红（异常）、已修改=薄荷（完成） */
.fb-stat.is-lemon { --stat-ink: #8a6d00; background: var(--lemon-soft); border-color: #e5d98f; }
.fb-stat.is-blue  { --stat-ink: #2b5a9e; background: var(--blue-soft);  border-color: #c6d8ee; }
.fb-stat.is-red   { --stat-ink: #a8392f; background: var(--red-soft);   border-color: #eecdc7; }
.fb-stat.is-mint  { --stat-ink: #1f7a58; background: var(--mint-soft);  border-color: #bfe9d8; }
.fb-stat.is-lemon em, .fb-stat.is-blue em, .fb-stat.is-red em, .fb-stat.is-mint em {
  color: var(--stat-ink); opacity: .72;
}

.fb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fb-sel {
  height: 34px; padding: 0 10px; font-size: 12.5px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card);
}

.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.fb-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fb-item-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fb-item-title b { font-size: 14.5px; line-height: 1.4; }
.fb-seq { flex: none; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fb-item-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.fb-dot { color: var(--muted-2); }
.fb-item-text {
  font-size: 13px; line-height: 1.62; color: var(--ink-2); white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fb-note {
  display: flex; gap: 8px; padding: 7px 10px; font-size: 12.5px; line-height: 1.55;
  color: var(--ink-2); background: var(--card-2); border-left: 3px solid var(--line-2);
  border-radius: 6px;
}
.fb-note > span { flex: none; color: var(--muted); }
.fb-note.is-ok { background: var(--mint-soft); border-left-color: var(--mint); }
.fb-item-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* 详情弹窗 */
.fb-detail { display: flex; flex-direction: column; gap: 14px; }
.fb-detail-meta { display: grid; grid-template-columns: 86px 1fr; gap: 6px 12px; font-size: 12.5px; }
.fb-detail-meta span { color: var(--muted); }
.fb-detail-text {
  font-size: 13.5px; line-height: 1.7; white-space: pre-wrap;
  background: var(--card-2); padding: 12px 14px; border-radius: var(--r-md);
}
.fb-detail h4 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.fb-time { display: flex; flex-direction: column; gap: 8px; padding-left: 12px; border-left: 1px dashed var(--line-2); }
.fb-time-row { display: flex; gap: 10px; font-size: 12.5px; }
.fb-time-row > span { flex: none; width: 132px; color: var(--muted); }
.fb-logs { display: flex; flex-direction: column; gap: 6px; }
.fb-log { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.fb-log span { color: var(--muted); }
.fb-log em { font-style: normal; color: var(--ink-3); }
.fb-log b { font-weight: 600; }
.fb-log.is-ok b { color: #1f7a58; }
.fb-log.is-bad b { color: #a8392f; }

/* 反馈截图（2026-11-28 表单重构）：整行宽虚线粘贴框 —— 框内任意位置 Ctrl+V 可贴，
   「上传截图」按钮只管选文件；板块 / 描述 / 截图三个字段同宽 */
.fb-shot-box { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.fb-shot-box.has-shots { border-style: solid; }
/* 截图框是 contenteditable 粘贴焦点（2026-11-30）：去掉编辑态描边与光标怪形，
   悬停提示「可粘贴」，聚焦时边框实线加深一档，让人知道焦点在这 */
.fb-shot-box { cursor: text; min-height: 64px; }
.fb-shot-box:focus { outline: none; border-color: var(--accent, var(--line-2)); border-style: solid; }
.fb-shot-box:focus .fb-shot-foot { opacity: .85; }
.fb-shot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-shot-list:empty { display: none; }
.fb-shot-item { position: relative; width: 72px; height: 72px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-2); }
.fb-shot-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.fb-shot-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; line-height: 16px;
  border-radius: 50%; border: none; cursor: pointer; font-size: 13px; font-weight: 700;
  background: rgba(0, 0, 0, 0.55); color: #fff; padding: 0;
}
.fb-shot-del:hover { background: rgba(168, 57, 47, 0.85); }
.fb-shot-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-detail-shots { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-detail-shots a { display: block; width: 132px; height: 132px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); }
.fb-detail-shots img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; }
.fb-detail-shots a:hover img { transform: scale(1.05); }

@media (max-width: 720px) {
  .fb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-item-top { flex-direction: column; gap: 6px; }
  .fb-time-row { flex-direction: column; gap: 2px; }
  .fb-time-row > span { width: auto; }
}

/* ============================================================================
   员工端招聘（2026-11-25）
   员工端的名单 / 看板 / 个人主页 / 内推与转岗**直接复用后台那套 .rc-* 类**，
   这里只补三处后台用不到、员工端才需要的小改：没有「操作」列的表格、
   筛选卡贴边、多人附件选择弹窗。
   ========================================================================== */
/* 后台名单最后一列「操作」是 sticky 的；员工端没有操作列，
   否则「更新时间」会被钉在右边、还右对齐 —— 看起来像做坏了 */
.rc-cand-tbl.is-noop th:last-child,
.rc-cand-tbl.is-noop td:last-child {
  position: static; box-shadow: none; text-align: left; padding-right: 12px;
}
.rc-cand-tbl.is-noop th:last-child { background: var(--card-2); }

/* 筛选卡：两行 chip 与卡片边贴齐（后台是 .rc-filter-panel 内嵌，员工端直接用卡片） */
.app-rc-filters { padding: 0; overflow: hidden; }
.app-rc-filters .rc-q-row { padding-left: 14px; padding-right: 14px; }
.app-rc-filters .rc-q-row:first-child { padding-top: 11px; }
.app-rc-filters .rc-q-row:last-child { padding-bottom: 11px; }
@media (max-width: 640px) {
  .app-rc-filters .rc-q-key { width: 26px; }
}

/* 头部一行：页签 / 搜索 / 按钮（与后台 recruit.js 顶部那一行同构） */
.app-rc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-rc-head .segmented { flex: none; }
.app-rc-head .searchbox { width: 200px; }
@media (max-width: 720px) {
  .app-rc-head .searchbox { width: 100%; order: 3; }
}

/* 个人主页：hero 右侧放 chip 而不是大号状态字 */
.rc-hero-stage { display: flex; justify-content: flex-end; margin-top: 6px; }
.rc-hero-stage .chip { font-size: 14px; padding: 3px 12px; }
/* 流程步骤标题里标出「我这场」（面试官本人那一轮） */
.rc-mine {
  margin-left: 7px; padding: 1px 6px; border-radius: 999px;
  font-style: normal; font-size: 10.5px; font-weight: 650;
  background: var(--line); color: var(--ink-2);
}
/* 只读说明行（Offer / 入职这两段没有可填的东西） */
.rc-fnote { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }

/* 多份附件：点开先挑一份 */
.rc-docpick { display: flex; flex-direction: column; gap: 6px; }
.rc-docpick-i {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 12.5px;
  text-align: left; cursor: pointer; transition: border-color .12s, background .12s;
}
.rc-docpick-i:hover { border-color: var(--ink-3); background: var(--card-2); }
.rc-docpick-i span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   员工端日报：模板选择标「应提交」/ 钉钉默认群提示 / 历史日报右侧抽屉（2026-11-26）
   ============================================================ */
.dl-pilltag {
  font-style: normal; font-size: 10.5px; line-height: 1; font-weight: 600;
  padding: 3px 6px; border-radius: 999px;
  background: var(--mint-soft); color: #1f7a58;
}
.app-pill.is-on .dl-pilltag { background: rgba(255,255,255,.18); color: #fff; }
.dl-convline { margin: 8px 2px 0; line-height: 1.6; }
/* PC 历史行里的状态签别把行高撑开 */
.wkp-h-t .chip { vertical-align: 1px; }
