/* ===================== 基础 ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --line: #e4e8f0;
  --text: #1e2430;
  --muted: #6b7688;
  --primary: #2e7d5b;  /* 2026-10-06 老板：主色改国风绿 */
  --primary-d: #256547;
  --green: #16a34a;
  --yellow: #d4a017;
  --blue: #2e7d5b;
  --purple: #9333ea;
  --red: #dc2626;
  --radius: 10px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
  -webkit-tap-highlight-color: rgba(43,92,255,.12);
}
.hidden { display: none !important; }
a { color: var(--primary); text-decoration: none; }

/* ===================== 登录 ===================== */
.login-wrap {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  /* 中国古典墨绿主题：宣纸底纹（极淡噪点）叠淡青绿渐变 */
  background: linear-gradient(160deg, #f3eeda 0%, #e9f0df 48%, #d9e8d5 100%);
  padding: 20px;
}
/* 背景光斑装饰：很淡的蓝/紫/暖色圆斑，柔和不抢眼 */
.login-wrap::before, .login-wrap::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .38; pointer-events: none;
}
.login-wrap::before {
  width: 460px; height: 460px; top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(122, 156, 98, .4), transparent 70%);
}
.login-wrap::after {
  width: 540px; height: 540px; bottom: -180px; right: -150px;
  background: radial-gradient(circle, rgba(122, 156, 98, .32), transparent 70%);
}
.paper-layer {
  position: absolute; inset: 0; z-index: 0;
  background: url('/img/rice-paper.png') repeat;
  background-blend-mode: multiply;
  opacity: .55;
  pointer-events: none;
}
.login-card {
  position: relative; z-index: 1;
  background: #fff; padding: 46px 40px 40px; border-radius: 22px;
  width: 100%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(20, 69, 61, .14);
  border: 1px solid rgba(58, 107, 95, .16);
}
/* 品牌区：圆形徽章 + 公司名渐变艺术字 */
.login-brand { display: block; text-align: center; margin-bottom: 14px; }
.login-title {
  font-size: 46px; font-weight: 900; letter-spacing: 2px; line-height: 1.15; white-space: nowrap;
  color: #14453d;
  margin: 0; text-align: center;
}
.login-title-sub {
  display: block; font-size: 15px; font-weight: 600; letter-spacing: 8px;
  margin-top: 12px; color: #5c6b63;
  -webkit-text-fill-color: #64748b; filter: none;
}
.login-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 30px; letter-spacing: 1px; }
.login-card label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.login-card input {
  width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe;
}
.login-card input:focus { outline: none; border-color: var(--primary); background: #fff; }
.login-card .login-remember {
  display: flex; align-items: center; gap: 8px; margin: -2px 0 16px;
  font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;
}
.login-card .login-remember input[type=checkbox] {
  width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0;
  accent-color: #3a6b5f; flex: none;
}
.btn.btn-login {
  background: linear-gradient(135deg, #14453d, #3a6b5f);
  border: none;
  box-shadow: 0 6px 18px rgba(20, 69, 61, .28);
  transition: box-shadow .2s, filter .2s;
}
.btn.btn-login:hover {
  background: linear-gradient(135deg, #0e342e, #2d5549);
  box-shadow: 0 8px 22px rgba(20, 69, 61, .36);
  filter: none;
}
.login-error { color: var(--red); font-size: 13px; margin-top: 12px; text-align: center; min-height: 20px; }

/* 顶部常驻公告通知条（JS 动态插入顶栏下方，有新公告时滑入） */
#annBanner {
  display: none;
  background: linear-gradient(90deg, #ff4d3d, #ff7a3d);
  color: #fff; padding: 11px 16px; font-size: 15px; font-weight: 700;
  text-align: center; cursor: pointer;
  box-shadow: 0 3px 12px rgba(230, 60, 30, .22);
  animation: annDrop .35s ease;
}
@keyframes annDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ===================== 顶栏 ===================== */
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 22px; padding: 0 20px;
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav button {
  border: none; background: transparent; padding: 7px 14px; border-radius: 8px;
  font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.nav button:hover { background: #f0f3fa; color: var(--text); }
.nav button.active { background: #e8f3ec; color: var(--primary); font-weight: 600; }
.nav .badge {
  display: inline-block; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 5px;
  background: var(--red); color: #fff; border-radius: 9px; font-size: 11px;
  line-height: 17px; text-align: center; font-weight: 700;
}
/* 手机导航：更多按钮 + 全功能面板 + 遮罩 */
#btnMoreNav { flex: 1 1 0; position: relative; }
.nav-more-mask {
  position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 45, .35);
}
.nav-more-panel {
  display: none;
  position: fixed; left: 10px; right: 10px; top: 96px; z-index: 75;
  background: #fff; border-radius: 14px;
  box-shadow: 0 18px 60px rgba(10, 25, 70, .28);
  padding: 14px 12px 12px;
}
.nav-more-panel.open { display: block; }
.nav-more-title {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  padding: 0 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.nav-more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.nav-more-grid button {
  border: none; background: #f4f6fb; border-radius: 10px;
  padding: 11px 4px; font-size: 13.5px; color: var(--text);
  cursor: pointer; white-space: nowrap; text-align: center;
  overflow: hidden; text-overflow: ellipsis;
}
.nav-more-grid button.active { background: var(--primary); color: #fff; }
.userbox { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.user-label { font-size: 13px; color: var(--muted); }
.user-label b { color: var(--text); }
/* ☰ 我的菜单：收纳使用说明/绑定微信/颜色/修改密码/退出 */
.user-menu-wrap { position: relative; }
#btnUserMenu {
  padding: 7px 12px; font-size: 15px; line-height: 1;
  border: 1px solid var(--line); background: #f7f9fd; border-radius: 8px;
  cursor: pointer; color: var(--text);
}
#btnUserMenu:hover { background: #eff7f2; border-color: #c3d4ff; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 36px rgba(10, 25, 70, .16);
  min-width: 168px; padding: 6px; display: none;
}
.user-menu.open { display: block; }
.user-menu .btn {
  display: block; width: 100%; text-align: left; border: none;
  background: transparent; padding: 10px 12px; font-size: 14px;
  border-radius: 8px; color: var(--text); cursor: pointer; min-height: 0;
}
.user-menu .btn:hover { background: #f0f3fa; }
.user-menu .btn:last-child { color: var(--red); }
.user-menu .btn:last-child:hover { background: #fdeaea; }
.role-tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px;
  background: #eef2f9; color: var(--muted); margin-left: 4px;
}
.role-tag.admin { background: #fdecec; color: var(--red); }
.role-tag.leader { background: #fff4dd; color: #a9760a; }

/* ===================== 布局 ===================== */
.main { padding: 18px 22px 60px; max-width: none; margin: 0 auto; }   /* 2026-11-02 老板：内容区不要卡 1560，宽屏铺满，工厂库不用左右拖 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.panel-head {
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel-title { font-weight: 600; font-size: 15px; }
.panel-title .sub { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 8px; }
.panel-body { padding: 16px; }
.spacer { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt { margin-top: 12px; }
.status-inline { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; flex-wrap: wrap; }
.status-inline select {
  padding: 6px 10px; border-radius: 8px; border: 1px solid #d5dcea;
  font-size: 13.5px; font-weight: 600; background: #fff; color: var(--text); max-width: 240px;
}
.status-inline select:focus { border-color: var(--primary); }
.feed-chips { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* 时间快捷按钮（昨天/今天/明天/本周/上周/下周/本月/上月）—— 全站统一，2026-10-06 老板要求 */
.qrange { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.qrange .btn { white-space: nowrap; }
/* 长说明收成「?」（2026-10-07 老板：解释词条太多、页面杂乱） */
.note-q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid #c7d2e0; background: #f4f7fb; color: #6b7c93;
  font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
  vertical-align: 2px; margin-left: 4px; user-select: none;
}
.note-q:hover { border-color: var(--primary); color: var(--primary); background: #eef4ff; }
.note-pop {
  position: absolute; z-index: 4000; max-width: 460px;
  background: #fff; border: 1px solid #dbe3ee; border-radius: 10px;
  box-shadow: 0 8px 26px rgba(20, 40, 70, .16);
  padding: 10px 12px; font-size: 12.5px; line-height: 1.75; color: #33475f;
  font-weight: 400; text-align: left; white-space: normal;
}
.note-pop b { color: #1f2d3d; }

/* ===================== 控件 ===================== */
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: .12s;
}
.btn:hover { border-color: #c3cddf; background: #f8fafd; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.93); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f0f3fa; color: var(--text); }
.btn-sm { padding: 5px 11px; font-size: 14px; }  /* 2026-10-07 老板：页签字体大2号（12→14） */
.btn-xs { padding: 3px 8px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }

input[type=text], input[type=password], input[type=number], input[type=date], input[type=month], select, textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--text);
}
/* 月份选择框(人才库「入职月份」)：原生外观默认字大大小跟其它搜索框不一致，这里统一。
   高度跟文本框对齐(文本框 33px、下拉 35px，月份框取 33px 与同排文本框齐平)。 */
input[type=month] { width: 150px; height: 33px; box-sizing: border-box; }
input[type=month]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; width: 100%; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 12px; color: var(--muted); }

/* ===================== 页签 ===================== */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 16px; background: #fff;
        border-radius: var(--radius) var(--radius) 0 0; }
.tabs button {
  border: none; background: transparent; padding: 12px 16px; cursor: pointer;
  font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; font-family: inherit;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tabs .count { font-size: 12px; color: var(--muted); margin-left: 5px; }

/* ===================== 表格 ===================== */
/* ⚠️ 2026-10-26 老板（截图里表格右边被切掉了）：「页面缩放的时候 你给我做一个 左右可以滑动的
   就像上下可以滑动一样的那个」→ 横向滚动条常显 + 加深，别再让 Windows 的悬浮滚动条"看不见" */
.table-wrap {
  overflow-x: auto; max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #b9c6d4 #eef2f7;
  overscroll-behavior-x: contain;
}
.table-wrap::-webkit-scrollbar { height: 11px; }
.table-wrap::-webkit-scrollbar-track { background: #eef2f7; border-radius: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: #b9c6d4; border-radius: 6px; border: 2px solid #eef2f7; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: #93a5b8; }
.table-wrap.panning { cursor: grabbing; scroll-behavior: auto; }
.table-wrap.panning * { cursor: grabbing !important; }
/* 2026-11-01 Excel 式列筛选：表头小漏斗 + 勾选面板 */
.xl-fx {
  display: inline-block; margin-left: 4px; padding: 0 3px; border-radius: 3px;
  color: #94a3b8; cursor: pointer; font-size: 11px; line-height: 1;
  border: 1px solid transparent; user-select: none;
}
.xl-fx:hover { background: #e2e8f0; color: #334155; }
.xl-fx.on { background: #dcfce7; color: #15803d; border-color: #86efac; }
.xl-panel {
  position: absolute; z-index: 9500; width: 240px; background: #fff;
  border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  padding: 8px; font-size: 12.5px;
}
.xl-head { display: flex; gap: 6px; margin-bottom: 6px; }
.xl-head input { border: 1px solid #cbd5e1; border-radius: 6px; padding: 2px 6px; font-size: 12.5px; }
.xl-list { max-height: 260px; overflow: auto; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; padding: 4px 0; }
.xl-item { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 4px; cursor: pointer; }
.xl-item:hover { background: #f1f5f9; }
.xl-item input { margin: 0; }
.xl-foot { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.xl-foot .btn { padding: 2px 8px; font-size: 12px; }
/* 2026-11-01 老板：「你给我设置一下 首行冷冻」→ 结算名单明细这类长表，表头吸顶、总计行吸底 */
.table-wrap.sh-freeze { max-height: 62vh; overflow: auto; }
.table-wrap.sh-freeze thead th {
  position: sticky; top: 0; z-index: 3; background: #f8fafd;
  box-shadow: inset 0 -1px 0 #e2e8f0, inset 0 1px 0 #e2e8f0;
}
.table-wrap.sh-freeze tfoot td {
  position: sticky; bottom: 0; z-index: 3; background: #f1f5f9;
  box-shadow: inset 0 1px 0 #cbd5e1;
}
/* 改过还没保存的格子：淡黄底提示 */
.sh-edit.sh-dirty { background: #fef3c7; border-color: #f59e0b; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left; padding: 10px 12px; background: #f8fafd; color: var(--muted);
  font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.grid th.sortable { cursor: pointer; user-select: none; }
table.grid th.sortable:hover { color: var(--primary); }
table.grid th .arrow { font-size: 10px; margin-left: 3px; }
table.grid td { padding: 10px 12px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
table.grid tbody tr:hover { background: #f7f9fd; }
table.grid tbody tr.clickable { cursor: pointer; }
.phone { font-family: ui-monospace, Consolas, monospace; letter-spacing: .3px; }
.phone.masked { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* ===================== 状态标签 ===================== */
/* 可点击的「状态」下拉：外观做成和状态标签/约面标签一致的圆角胶囊，
   真正的 select 透明覆盖在上面（点哪都能弹下拉），这样列表里的标签风格统一。 */
.status-dd {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.status-dd > .sd-label { pointer-events: none; }
.status-dd > select.quick-status {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; margin: 0; padding: 0;
  appearance: none; -webkit-appearance: none; border: none; background: transparent;
}
.status-dd:hover { filter: brightness(.96); }
.status-dd.st-following          { background: #e8f8ee; color: #157a3a; }
.status-dd.st-interview_promised { background: #fdf5e0; color: #9a7308; }
.status-dd.st-arrived            { background: #ffeede; color: #c2410c; }
.status-dd.st-interview_passed   { background: #d5f5f0; color: #0f766e; }
/* 面试通过考虑（2026-10-20 新增）：薄荷绿，比「面试通过」更浅，一眼区分 */
.status-dd.st-passed_consider    { background: #e4fbef; color: #0b7a5b; }
.status-dd.st-interview_failed   { background: #ffe4e6; color: #be123c; }
.status-dd.st-no_show            { background: #eef0f4; color: #4b5563; }
/* 取消面试：棕色调，跟「未到面」的灰区分开 */
.status-dd.st-interview_cancelled { background: #f6ead9; color: #8a5a2b; }
.status-dd.st-pending_onboard    { background: #e0f2fe; color: #0369a1; }
.status-dd.st-hired              { background: #e7efff; color: #1d4ed8; }
.status-dd.st-resigned_followup  { background: #f5e9fe; color: #7e22ce; }
.status-dd.st-failed             { background: #fdeaea; color: #b91c1c; }
.status-dd.st-resigned           { background: #f1f3f7; color: #6b7280; }
.status-dd.st-resigned_unsettled { background: #f6ead9; color: #8a5a2b; }
.status-dd.st-pool               { background: #eef2f9; color: #64748b; }
/* 「在职（他人）」：这个人已入职、但归属是别人。虚边中性灰蓝，跟蓝色的「已入职」一眼区分 */
.status-dd.st-other-employed     { background: #eceff4; color: #5b6675; border: 1px dashed #c8d0dc; }
/* 放弃入职（2026-11-11 新增）：定了入职又放鸽子 → 土黄，跟「待入职」蓝、「已入职」蓝明显区分 */
.status-dd.st-give_up_onboard    { background: #fdf3e2; color: #9a6b1f; }
/* 约好再联系 / 通过未回复暂挂（补样式，跟它们的紫色图标一致） */
.status-dd.st-contact_later       { background: #f5e9fe; color: #7e22ce; }
.pill.st-contact_later            { background: #f5e9fe; color: #7e22ce; }
.status-dd.st-passed_no_reply     { background: #f5e9fe; color: #7e22ce; }
.pill.st-passed_no_reply          { background: #f5e9fe; color: #7e22ce; }
.pill.st-give_up_onboard         { background: #fdf3e2; color: #9a6b1f; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.status-dd > .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.status-dd.st-following > .dot { background: var(--green); opacity: 1; }
.status-dd.st-interview_promised > .dot { background: var(--yellow); opacity: 1; }
.status-dd.st-arrived > .dot { background: #f97316; opacity: 1; }
.status-dd.st-interview_passed > .dot { background: #14b8a6; opacity: 1; }
.status-dd.st-passed_consider > .dot { background: #2dd4bf; opacity: 1; }
.status-dd.st-interview_failed > .dot { background: #f43f5e; opacity: 1; }
.status-dd.st-no_show > .dot { background: #6b7280; opacity: 1; }
.status-dd.st-interview_cancelled > .dot { background: #a16207; opacity: 1; }
.status-dd.st-pending_onboard > .dot { background: #0ea5e9; opacity: 1; }
.status-dd.st-hired > .dot { background: #2563eb; opacity: 1; }
.status-dd.st-resigned_followup > .dot { background: var(--purple); opacity: 1; }
.status-dd.st-failed > .dot { background: var(--red); opacity: 1; }
.status-dd.st-resigned > .dot { background: #9ca3af; opacity: 1; }
.status-dd.st-resigned_unsettled > .dot { background: #a16207; opacity: 1; }
.status-dd.st-pool > .dot { background: #94a3b8; opacity: 1; }
.status-dd.st-other-employed > .dot { background: #94a3b8; opacity: 1; }
.status-dd.st-give_up_onboard > .dot { background: #d4a017; opacity: 1; }
.status-dd.st-contact_later > .dot { background: #a855f7; opacity: 1; }
.status-dd.st-passed_no_reply > .dot { background: #a855f7; opacity: 1; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
/* 「在招」绿标：工厂库/工厂详情/地图的状态按钮都用 st-green。
   注意：这个类以前漏定义过，导致「在招」按钮没有底色、和「暂停」的灰底难以区分。 */
.st-green              { background: var(--green); color: #fff; } .st-green .dot              { background: #fff; }
.st-following          { background: #e8f8ee; color: #157a3a; } .st-following .dot          { background: var(--green); }
.st-interview_promised { background: #fdf5e0; color: #9a7308; } .st-interview_promised .dot { background: var(--yellow); }
.st-arrived            { background: #ffeede; color: #c2410c; } .st-arrived .dot            { background: #f97316; }
.st-interview_passed   { background: #d5f5f0; color: #0f766e; } .st-interview_passed .dot   { background: #14b8a6; }
.st-interview_failed   { background: #ffe4e6; color: #be123c; } .st-interview_failed .dot   { background: #f43f5e; }
/* 透明状态下拉：看不见框，点一下弹出修改（公海/人才库/面试名单共用） */
select.quick-status, select.iv-status-sel {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 3px 2px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  max-width: 160px;
  text-align: left;
}
select.quick-status:hover, select.iv-status-sel:hover { background: #f4f6fb; border-radius: 4px; }
select.quick-status option, select.iv-status-sel option { color: var(--text); }
/* 跟进人下拉：徽章旁边只露一个小箭头（点箭头改跟进人），不重复显示第二个名字
   （老板 2026-09-28：为什么这里要两个名字 → 文字透明、只留箭头，选项里名字正常） */
select.follower-sel {
  appearance: auto; -webkit-appearance: auto; background: transparent;
  border: 1px solid transparent; border-radius: 6px; padding: 2px 2px;
  font-size: 12.5px; font-family: inherit; color: transparent; width: 24px; cursor: pointer;
}
select.follower-sel:hover { border-color: #c3cddf; background: #f8fafd; }
select.follower-sel option { color: var(--text); }

.st-no_show            { background: #eef0f4; color: #4b5563; } .st-no_show .dot            { background: #6b7280; }
.st-interview_cancelled { background: #f6ead9; color: #8a5a2b; } .st-interview_cancelled .dot { background: #a16207; }
.st-pending_onboard    { background: #e0f2fe; color: #0369a1; } .st-pending_onboard .dot    { background: #0ea5e9; }
.st-hired              { background: #e7efff; color: #1d4ed8; } .st-hired .dot              { background: #2563eb; }
.st-resigned_followup  { background: #f5e9fe; color: #7e22ce; } .st-resigned_followup .dot  { background: var(--purple); }
.st-failed             { background: #fdeaea; color: #b91c1c; } .st-failed .dot              { background: var(--red); }
.st-resigned           { background: #f1f3f7; color: #6b7280; } .st-resigned .dot            { background: #9ca3af; }
.st-resigned_unsettled { background: #f6ead9; color: #8a5a2b; } .st-resigned_unsettled .dot  { background: #a16207; }
.st-pool               { background: #eef2f9; color: #64748b; } .st-pool .dot                { background: #94a3b8; }
/* 可点击的「在招 / 暂停」切换按钮：比普通标签大一号，方便一眼看清、也更好点 */
.pill[data-ftoggle], .pill.fd-toggle { font-size: 14px; font-weight: 700; padding: 5px 14px; }
.pill[data-ftoggle] .dot, .pill.fd-toggle .dot { width: 8px; height: 8px; }

.quick-status { padding: 4px 6px; border-radius: 8px; font-size: 12.5px; border: 1.5px dashed #94a3b8; background: #fff; color: var(--text); max-width: 132px; cursor: pointer; }
.quick-status:hover, .quick-status:focus { border-color: #14453d; background: #f0f7f2; }

/* ---- 工厂库：列表每行固定「三行高」、超出裁掉（2026-10-09 老板：
   「一个工厂我只要 3 行的宽度，你现在有的 5-7 行的高度了，高度所有的长都给我做一致；
    显示不下的第三行就写 ...，表示里面还有更多内容」）---- */
.fac-tbl tbody td { vertical-align: top; height: 79px; }      /* 行高统一：都是三行（79 = 上下留白 21 + 三行文字 58 上限） */
.fac-tbl td > .c3 { max-height: 58px; overflow: hidden; }      /* 格子内部再兜一层，超了就裁 */
.fac-tbl td > .c3.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ---- 工厂库：区域按钮铺开（像分页一样按区域选厂） ---- */
.district-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 0 2px; border-top: 1px dashed var(--line); margin-top: 10px; }
.district-bar .district-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---- 工厂库：标签筛选折叠（2026-10-09 老板要求）----
   标签搜索那一大块（岗位/站坐/吃住/班次/薪资/年龄/待完善）默认叠起来，点小三角展开；
   ⚠️ 「按区域选工厂」那一排【不在折叠里】，始终显示（老板：「区域不要叠」）。 */
.ffold { margin-top: 2px; }
.ffold > summary {
  cursor: pointer; list-style: none; user-select: none;
  padding: 5px 2px; font-size: 13px; font-weight: 600; color: var(--primary);
}
.ffold > summary::-webkit-details-marker { display: none; }
.ffold > summary::marker { content: ''; }
.ffold > summary::before { content: '▸'; display: inline-block; margin-right: 5px; }
.ffold[open] > summary::before { content: '▾'; }
.ffold > summary:hover { color: var(--primary-dark, var(--primary)); text-decoration: underline; }

/* ---- 工厂名称：纯文字，无背景色，点开改工厂信息 ---- */
.factory-edit {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--text); font-weight: 600; font-family: inherit; font-size: inherit;
  cursor: pointer; text-align: left; min-width: 72px; min-height: 20px;
}
.factory-edit:hover { color: var(--primary); text-decoration: underline; }

/* ---- 列表页顶部：已打开的台账页签（并排、可叠加） ---- */
.open-tabs-strip { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 10px; }
.open-tabs-strip .strip-label { font-size: 12px; color: var(--muted); }
.open-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 20px; background: #f8fafd;
  font-size: 14.5px; cursor: pointer; color: var(--text); font-family: inherit;
}
.open-tab:hover { border-color: var(--primary); color: var(--primary); }
.open-tab .dt-close-all { display: inline-flex; align-items: center; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: 20px; background: #f8fafd;
  color: #dc2626; font-size: 14.5px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.dt-close-all:hover { background: #f8fafd; color: #dc2626; }
.dt-close { opacity: .5; font-size: 13px; }
.open-tab .dt-close:hover { opacity: 1; }

/* ---- 台账多开页签 ---- */
.detail-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  font-size: 15px; cursor: pointer; color: var(--text); max-width: 200px;
}
.detail-tab span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.detail-tab .dt-close-all { display: inline-flex; align-items: center; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: 20px; background: #f8fafd;
  color: #dc2626; font-size: 14.5px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.dt-close-all:hover { background: #f8fafd; color: #dc2626; }
.dt-close { color: inherit; opacity: .6; font-size: 12px; padding: 0 2px; }
.detail-tab .dt-close:hover { opacity: 1; }

.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; background: #eef2f9; color: var(--muted); }
.tag.warn { background: #fdeaea; color: var(--red); }
.tag.ok   { background: #e8f8ee; color: var(--green); }
.tag.info { background: #e3f1e8; color: var(--blue); }

/* ===================== 可点击的统计数字 ===================== */
.stat-card.clickable { cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.stat-card.clickable:hover { box-shadow: 0 4px 16px rgba(37,99,235,.14); transform: translateY(-1px); border-color: #b9cdfb; }
.stat-more { float: right; font-size: 11px; color: var(--primary); opacity: .75; font-weight: 400; }
.link-num {
  background: none; border: none; padding: 2px 6px; font: inherit; font-weight: 700;
  color: var(--primary); cursor: pointer; border-radius: 5px; border-bottom: 1px dashed #a9c0f5;
}
.link-num:hover { background: #eff7f2; }

/* ===================== 手机号一键拨号（手机端才生效） ===================== */
.tel-link {
  color: var(--primary); text-decoration: none; font-weight: 600;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 6px; background: #eff7f2;
  -webkit-tap-highlight-color: transparent;
}
.tel-link:active { background: #dbe7ff; opacity: .75; }
@media (min-width: 769px) {
  .tel-link { background: none; padding: 0; color: inherit; font-weight: inherit; }
  .tel-link::before { content: none; }
  .tel-link .tel-ico { display: none; }
}

/* ===================== 每日跟进红点 ===================== */
.alert-flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #dc2626; color: #fff; font-weight: 900; font-size: 14px;
  line-height: 1; margin-right: 6px; flex: none;
  box-shadow: 0 0 0 0 rgba(220,38,38,.6);
  animation: alertPulse 1.6s infinite;
}
@keyframes alertPulse {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.alert-row { background: #fff8f8 !important; }
.alert-row > td:first-child, .alert-row > td.cell-name { box-shadow: inset 3px 0 0 #dc2626; }
.follower-row { display: flex; align-items: center; }

/* ===================== 统计卡 ===================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.stat-card .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-card .v { font-size: 26px; font-weight: 700; line-height: 1.15; }
.stat-card .h { font-size: 11px; color: var(--muted); margin-top: 3px; }
.stat-card.accent { background: linear-gradient(135deg, #2e7d5b, #5aa37b); border-color: transparent; color: #fff; }
.stat-card.accent .k, .stat-card.accent .h { color: rgba(255,255,255,.82); }

/* 已取消的报名/面试行：整行淡灰 + 左侧棕条 + 删除线，跟正常记录一眼区分 */
.iv-cancelled-row { background: #faf7f2 !important; color: #8a7a66; }
.iv-cancelled-row td { border-left: none; }
.iv-cancelled-row > td:first-child { box-shadow: inset 3px 0 0 #d8a86a; }
.iv-cancelled-row b, .iv-cancelled-row strong { text-decoration: line-through; text-decoration-color: #c9a97e; }
.iv-cancelled-row .iv-status-sel { opacity: .5; }
.iv-cancel-badge { display: inline-block; background: #f6ead9; color: #8a5a2b; border: 1px dashed #d8b98a;
  border-radius: 20px; padding: 1px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* ===================== 招聘大盘：排行榜 & 月度柱状 ===================== */.bd-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #f0f3f8; }
.bd-row:last-child { border-bottom: none; }
.bd-rank { flex: 0 0 20px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.bd-rank.top { color: var(--primary); }
.bd-name { flex: 0 0 108px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-bar { flex: 1 1 auto; height: 16px; background: #f2f5fa; border-radius: 8px; overflow: hidden; min-width: 40px; }
.bd-bar > i { display: block; height: 100%; border-radius: 8px; transition: width .3s; }
.bd-val { flex: 0 0 46px; text-align: right; font-size: 13.5px; }
.bd-unit { flex: 0 0 20px; font-size: 11px; color: var(--muted); }
.bm-chart { display: flex; align-items: flex-end; gap: 10px; padding: 8px 4px 0; overflow-x: auto; }
.bm-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 42px; }
.bm-v { font-size: 12px; color: var(--muted); }
.bm-bar { width: 26px; background: var(--primary); border-radius: 5px 5px 0 0; display: block; }
.bm-x { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ===================== 跟进台账 ===================== */
.ledger { display: flex; flex-direction: column; gap: 0; }
.ledger-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #e8ecf4; }
.ledger-item:last-child { border-bottom: none; }
.ledger-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-top: 7px; flex: none; }
.ledger-main { flex: 1; }
.ledger-meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.ledger-meta b { color: var(--text); font-weight: 600; }
.ledger-content { white-space: pre-wrap; word-break: break-word; }

/* ===================== 弹窗 ===================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 620px;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(10,25,70,.3);
}
.modal.wide { max-width: 900px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
/* 表单弹窗里所有输入控件统一宽度/高度，不再各显各的 */
.form-grid .field input, .form-grid .field select { width: 100%; box-sizing: border-box; height: 34px; }
/* 招聘原文分块显示：太长自动分 2~3 个长方形 */
.split-cols { display: grid; gap: 18px; }
.split-cols.cols-2 { grid-template-columns: 1fr 1fr; }
.split-cols.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.split-col { min-width: 0; }

/* ===================== 提示 ===================== */
/* 注意：toast-root 是铺满屏的浮层，必须 pointer-events:none，
   否则它会吃掉整页的点击/触摸（手机上会导致「点哪都没反应」） */
.toast-root {
  position: fixed; top: 70px; right: 22px; z-index: 300;
  display: flex; flex-direction: column; gap: 9px;
  pointer-events: none;
}
.toast {
  background: #1e2430; color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 13px;
  box-shadow: 0 8px 26px rgba(0,0,0,.22); animation: slideIn .18s ease; max-width: 360px;
  pointer-events: auto;
}
.toast.err { background: #b91c1c; }
.toast.ok  { background: #15803d; }
.toast.warn{ background: #b45309; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; color: var(--muted); padding: 46px 20px; font-size: 13px; }
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .45; }
.loading { text-align: center; color: var(--muted); padding: 40px; font-size: 13px; }

.notice { padding: 10px 13px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.notice.info { background: #eef7f1; color: #1f6a49; border: 1px solid #d3e0ff; }
.notice.warn { background: #fff8e6; color: #9a7308; border: 1px solid #f4e3b4; }
.notice.err  { background: #fdeaea; color: #b91c1c; border: 1px solid #f6cfcf; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; }
.detail-grid .item .k { font-size: 12px; color: var(--muted); }
.detail-grid .item .v { font-size: 14px; font-weight: 500; word-break: break-all; }
.sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
/* chip 胶囊按钮通用样式（sub-tabs 内外都生效，2026-09-27 日报详情数据条按钮曾因
   只有 .sub-tabs .chip 选择器而裸奔成方形默认按钮） */
.chip {
  padding: 6px 13px; border-radius: 20px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 13px; font-family: inherit; color: var(--text);
  white-space: nowrap; transition: .12s;
}
.chip:hover { border-color: #c3cddf; background: #f8fafd; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
/* 有效数据彩色 chip：选中态压过行内彩色，跟后台习惯一样显示主题色底白字
   （2026-09-28 数据条改成浅底胶囊后，行内多了 background，这里也要压掉） */
.chip.eff.active { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.follower-chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 9px; background: #fff; cursor: pointer; margin-bottom: 8px;
}
.follower-chip:hover { border-color: var(--primary); background: #f7f9ff; }
.follower-chip.active { border-color: var(--primary); background: #eef7f1; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; direction: ltr; }
.filter-bar > * { direction: ltr; }
/* 2026-10-08 老板：「状态搜索的筛选全部都做到向左靠齐」→ 去掉原来的 rtl（换行后向右靠齐、左边空一片），
   字段一律从左边排；「筛选/重置」紧跟在最后一个字段后面（也靠左）。
   ⚠️ 别再加 margin-left:auto：加了 flex 会把按钮甩到下一行去（实测 top 多出一行）。 */
.filter-actions { display: inline-flex; gap: 10px; margin-left: 0; }
.filter-bar .field { min-width: 108px; }
/* 2026-10-07 老板：筛选栏控件高度统一（不同浏览器 input/select 默认高度不一样，看着乱） */
.filter-bar input, .filter-bar select { height: 34px; box-sizing: border-box; }
.filter-bar .age-range { height: 34px; }
.filter-bar .age-range input { height: 100%; }
.filter-bar .btn, .qrange .btn { height: 34px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
.qrange { align-items: flex-end; }
/* 求职条件标签行（人才库/公海筛选栏下方，分组点选即筛）
   2026-10-08 老板：「下面的求职意向标签 做个向下的小三角 把他们全部都收起来 默认是收起的」
   → 默认收起，点标题那行的小三角展开/收起（.itag-row 上加 hidden 就是收起）。 */
.itag-toggle { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  background: #f6f8fc; border: 1px solid #e2e8f3; border-radius: 6px;
  padding: 4px 10px; font-size: 12.5px; color: #475569; cursor: pointer; }
.itag-toggle:hover { background: #eff3fa; border-color: #c9d5e8; }
.itag-toggle .itag-tri { font-size: 11px; color: #64748b; }
.itag-toggle .itag-picked { color: var(--primary); font-weight: 700; }
.itag-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.itag-row[hidden] { display: none; }
.itag-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.itag-group .itag-label { font-size: 12px; color: var(--muted); min-width: 52px; flex: none; }
.itag-group .chip b { font-weight: 600; opacity: .75; font-size: 12px; }
/* 日报截图版：六类有效数据分栏大表（3 列桌面 / 2 列手机，一格一类） */
.eff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
@media (max-width: 720px) { .eff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.age-range { display: flex; align-items: center; gap: 5px; }
.age-range input { width: 62px; }

/* 工厂库筛选勾选 chips（岗位 / 吃住 / 班次多选） */
.fchip-groups { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.fchip-group { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.fchip-label { font-size: 12px; color: var(--muted); padding-top: 5px; min-width: 96px; }
.fchip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { padding: 5px 13px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; color: #333; line-height: 1.4; }
.fchip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 手机端的筛选折叠：JS 会给 .filter-bar 插入 .filter-toggle 并把字段包进 .filter-body。
   电脑端 .filter-body 用 display:contents —— 等于没包过，布局完全不变。 */
.filter-toggle { display: none; }
.filter-body { display: contents; }

/* 公海批量勾选 + 私域批量退回 + 分页页码跳转 + 粘贴识别 */
.pool-chk, .rel-chk { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
#poolChkAll, #relChkAll { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.pager-jump { display: inline-flex; align-items: center; gap: 6px; }
.pager-jump input { width: 76px; }
#ePaste { font-size: 13.5px; line-height: 1.5; }
#ePasteHint { font-size: 12px; color: var(--muted); min-height: 16px; margin-top: 2px; }

/* 工厂库大搜索条 */
.factory-search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.factory-search-bar input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe;
}
.factory-search-bar input:focus { outline: none; border-color: var(--primary); background: #fff; }
.factory-search-bar .btn { flex: none; padding: 12px 20px; font-size: 15px; }

/* ==================================================================
   手机端适配（≤ 768px）
   核心思路：表格 → 卡片；顶栏换行；弹窗全屏；按钮加大方便点
   ================================================================== */
@media (max-width: 768px) {

  /* ---------- 登录页：卡片更贴手，输入框够大 ---------- */
  .login-wrap { padding: 16px; align-items: center; }
  .paper-layer {
  position: absolute; inset: 0; z-index: 0;
  background: url('/img/rice-paper.png') repeat;
  background-blend-mode: multiply;
  opacity: .55;
  pointer-events: none;
}
.login-card { padding: 32px 20px; border-radius: 16px; max-width: 100%; }
  .login-title { font-size: 36px; letter-spacing: 2px; }
  .login-title-sub { letter-spacing: 5px; }
  .login-sub { margin-bottom: 20px; }
  .login-card label { font-size: 14px; margin-bottom: 16px; }
  .login-card input { padding: 13px 14px; font-size: 17px; min-height: 48px; }
  .login-card .btn-block { padding: 14px; font-size: 17px; min-height: 50px; }

  /* ---------- 公告通知条：贴手尺寸 ---------- */
  #annBanner { padding: 10px 14px; font-size: 14px; }

  /* ---------- 工厂库筛选 chips：手机上标签竖排、点按区域更大 ---------- */
  .fchip-groups { gap: 6px; }
  .fchip-group { flex-direction: column; gap: 6px; }
  .fchip-label { min-width: 0; padding-top: 0; }
  .fchip { padding: 6px 13px; font-size: 13.5px; }

  /* ---------- 顶栏：品牌 + 用户一行，导航单独一行横向滚动 ---------- */
  .topbar {
    height: auto; flex-wrap: wrap; gap: 8px;
    padding: 8px 10px; align-items: center;
  }
  .brand { font-size: 14px; flex: 1; min-width: 0; }
  .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 24px; height: 24px; font-size: 12px; flex: none; }

  .userbox { order: 2; gap: 4px; flex: none; }
  .user-label { font-size: 12px; }
  .userbox .btn-sm { padding: 6px 8px; font-size: 12px; }
  .user-label .role-tag { display: none; }   /* 手机上角色标签藏起来，只留名字 */

  /* 导航：高频入口均分撑满一行，不滚动；其余收进「更多」面板 */
  .nav {
    order: 3; width: 100%; flex: 0 0 100%;
    display: flex; flex-wrap: nowrap; gap: 4px; overflow: visible;
    padding-bottom: 2px;
  }
  .nav > button:not(#btnMoreNav) {
    flex: 1 1 0; min-width: 0;
    padding: 10px 2px; font-size: 13.5px; text-align: center;
    background: #f4f6fb; border-radius: 10px;
    overflow: hidden; text-overflow: ellipsis;
  }
  .nav > button:not(#btnMoreNav).active { background: var(--primary); color: #fff; }
  .nav > button:not(#btnMoreNav) .badge { margin-left: 3px; }
  #btnMoreNav {
    padding: 10px 2px; font-size: 13.5px; text-align: center;
    background: #f4f6fb; border-radius: 10px; color: var(--text);
  }
  #btnMoreNav.has-badge { background: #fff2f0; color: var(--red); }
  .nav-more-panel { top: 100px; }

  /* ---------- 主体留白收紧 ---------- */
  .main { padding: 10px 10px 80px; }
  .panel { border-radius: 10px; margin-bottom: 10px; }
  .panel-head { padding: 10px 12px; gap: 8px; }
  .panel-title { font-size: 14px; }
  .panel-title .sub { display: block; margin-left: 0; font-size: 12px; margin-top: 2px; }
  .panel-body { padding: 12px; }
  .status-inline { margin-left: 0; margin-top: 6px; width: 100%; }
  .status-inline select { flex: 1; min-width: 0; max-width: none; font-size: 13px; padding: 7px 9px; }

  /* ---------- 页内标签：横向滚动，不换行 ---------- */
  .tabs {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; gap: 4px; align-items: center;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; flex: none; padding: 9px 14px; font-size: 14.5px; }
  .tabs .spacer { flex: 1 1 auto; min-width: 4px; }

  /* ---------- 表格 → 卡片 ---------- */
  .table-wrap { overflow-x: visible; }
  table.grid { font-size: 14px; display: block; }
  table.grid thead { display: none; }
  table.grid tbody { display: block; }
  table.grid tr {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; margin-bottom: 10px; padding: 6px 10px;
    box-shadow: 0 1px 3px rgba(20,40,80,.04);
  }
  table.grid tbody tr:hover { background: #fff; }
  table.grid tr.alert-row { background: #fff8f8; border-color: #f5c2c2; }
  table.grid td {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 8px 2px; border-bottom: 1px dashed #f0f3f8;
    text-align: right; min-height: 40px;
  }
  table.grid td:last-child { border-bottom: none; }
  table.grid td::before {
    content: attr(data-label);
    flex: none; color: var(--muted); font-size: 12.5px; font-weight: 600;
    text-align: left; margin-right: auto;
  }
  table.grid td:not([data-label])::before { content: none; }
  /* 内容很长的一格：标签上方、内容左对齐换行，不再挤成右对齐的一条 */
  table.grid td.long {
    flex-direction: column; align-items: stretch; text-align: left; gap: 4px;
  }
  table.grid td.long::before { margin-right: 0; }
  table.grid td.long > * { align-self: flex-start; text-align: left; }
  /* 姓名那一格放大当标题（cell-name 由 JS 标在第一个非勾选框的格子上） */
  table.grid td.cell-name {
    font-size: 16px; border-bottom: 1px solid #eef2f8;
    padding-top: 10px; padding-bottom: 10px;
  }
  table.grid td.cell-name::before { font-size: 12px; }
  table.grid td .btn { padding: 9px 14px; font-size: 14px; min-height: 38px; }

  /* ---------- 统计卡：两列 ---------- */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 12px; }
  .stat-card .v { font-size: 24px; }
  .stat-card .k { font-size: 12.5px; }
  .stat-stat .h, .stat-card .h { font-size: 11px; }
  .stat-more { display: none; }

  /* ---------- 筛选栏：默认收起，点一下展开；展开后两列排 ---------- */
  .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .filter-bar .field { width: 100%; min-width: 0; }
  .filter-bar .field input, .filter-bar .field select { width: 100% !important; }
  .filter-bar .btn { width: 100%; padding: 11px; font-size: 15px; }
  .filter-bar .age-range { display: flex; gap: 6px; align-items: center; }
  .filter-bar .age-range input { flex: 1 1 0; min-width: 0; width: auto !important; }

  .filter-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    border: 1px solid var(--line); background: #f7f9fd; color: var(--text);
    padding: 12px 14px; border-radius: 9px; font-size: 15px; font-family: inherit;
    cursor: pointer; order: -1;
  }
  .filter-toggle .ft-left { font-weight: 600; }
  .filter-toggle .ft-arrow { color: var(--muted); font-size: 13px; }
  .filter-bar.open .filter-toggle { background: #eff7f2; border-color: #c3d4ff; color: var(--primary); }
  .filter-bar.open .filter-toggle .ft-arrow { color: var(--primary); }
  .filter-toggle .ft-dot {
    display: inline-block; min-width: 17px; height: 17px; line-height: 17px; padding: 0 5px;
    margin-left: 6px; background: var(--primary); color: #fff; border-radius: 9px;
    font-size: 11px; text-align: center; font-weight: 700; vertical-align: 1px;
  }

  .filter-body { display: none; }
  .filter-bar.open .filter-body {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%;
  }
  .filter-body > .field:first-child,
  .filter-body > .field.span2 { grid-column: 1 / -1; }   /* 关键词 / 落单的那格占整行 */
  .filter-body .field > span { font-size: 12.5px; }
  .filter-body .field input, .filter-body .field select { width: 100% !important; }
  .filter-actions {
    grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: 2px;
  }
  .filter-actions .btn { width: 100%; }
  /* 只有一个按钮（比如「搜索」）时也占满整行 */
  .filter-actions > .btn:only-child { grid-column: 1 / -1; }

  .row { flex-wrap: wrap; gap: 8px; }
  .row .field { flex: 1 1 100%; }
  .row .field input, .row .field select { width: 100% !important; }

  /* ---------- 弹窗：全屏 ---------- */
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal {
    max-width: 100%; width: 100%; max-height: 94vh;
    border-radius: 16px 16px 0 0; overflow-y: auto;
  }
  .modal.wide { max-width: 100%; }
  .modal-head { padding: 14px 16px; font-size: 16px; position: sticky; top: 0; background: #fff; z-index: 2; }
  .modal-body { padding: 14px 16px; }
  .modal-foot {
    padding: 12px 16px; position: sticky; bottom: 0; background: #fff;
    display: flex; gap: 8px; border-top: 1px solid var(--line);
  }
  .modal-foot .btn { flex: 1; padding: 12px; font-size: 15px; }
  .form-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .split-cols.cols-2, .split-cols.cols-3 { grid-template-columns: 1fr; gap: 12px; }
  .detail-grid { grid-template-columns: 1fr 1fr !important; }
  .detail-grid .item.full { grid-column: 1 / -1; }

  /* ---------- 按钮 / 输入：加大方便手指点 ---------- */
  .btn { padding: 10px 14px; font-size: 14.5px; min-height: 40px; }
  .btn-sm { padding: 8px 12px; font-size: 13.5px; min-height: 37px; }
  .btn-xs { padding: 7px 11px; font-size: 13px; min-height: 34px; }
  input, select, textarea { font-size: 16px !important; }  /* 16px 防止 iOS 自动放大 */
  input[type=text], input[type=password], input[type=number], input[type=date], input[type=month], select {
    min-height: 42px;
  }
  .nav .badge { min-width: 16px; height: 16px; line-height: 16px; font-size: 10.5px; padding: 0 4px; }
  .userbox .btn-sm { min-height: 34px; }

  /* ---------- 其它 ---------- */
  .ledger-item { padding-left: 18px; }
  .pager { flex-wrap: wrap; gap: 6px; }
  .pager button { padding: 8px 12px; }
  /* top:auto 必须写！否则 top:70px + bottom:12px 会撑成满屏透明浮层挡住所有点击 */
  .toast-root { left: 12px; right: 12px; bottom: 12px; top: auto; }
  .toast { width: 100%; max-width: none; }
  .notice { font-size: 13.5px; padding: 11px 12px; }
  .grid-2 { grid-template-columns: 1fr !important; }
}

/* 小屏手机再收一收 */
@media (max-width: 400px) {
  /* 详情保持两列：字段值都很短，一列会把页面拉得很长 */
  .detail-grid { grid-template-columns: 1fr 1fr !important; gap: 10px 12px; }
  .detail-grid .item .v { font-size: 13.5px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card .v { font-size: 21px; }
  .brand span:last-child { font-size: 13px; }
  .paper-layer {
  position: absolute; inset: 0; z-index: 0;
  background: url('/img/rice-paper.png') repeat;
  background-blend-mode: multiply;
  opacity: .55;
  pointer-events: none;
}
.login-card { padding: 28px 20px; }
  .filter-body { grid-template-columns: 1fr 1fr; }
}

/* 平板：表格还是表格，但缩小一点 */
@media (min-width: 769px) and (max-width: 1100px) {
  .main { padding: 14px 14px 60px; }
  table.grid { font-size: 12.5px; }
  table.grid th, table.grid td { padding: 8px 8px; }
}

/* 触屏设备：hover 效果去掉，避免点了还留着 */
@media (hover: none) {
  .stat-card.clickable:hover { transform: none; box-shadow: none; }
  table.grid tbody tr:hover { background: transparent; }
}
/* 状态下拉的浅色配色（透明框上的文字+浅底，和标签颜色一致） */
select.quick-status.st-following, select.iv-status-sel.st-following { color:#157a3a; background:#e8f8ee; border-radius:4px; }
select.quick-status.st-interview_promised, select.iv-status-sel.st-interview_promised { color:#9a7308; background:#fdf5e0; border-radius:4px; }
select.quick-status.st-arrived, select.iv-status-sel.st-arrived { color:#c2410c; background:#ffeede; border-radius:4px; }
select.quick-status.st-no_show, select.iv-status-sel.st-no_show { color:#4b5563; background:#eef0f4; border-radius:4px; }
select.quick-status.st-interview_cancelled, select.iv-status-sel.st-interview_cancelled { color:#8a5a2b; background:#f6ead9; border-radius:4px; }
select.quick-status.st-interview_passed, select.iv-status-sel.st-interview_passed { color:#0f766e; background:#d5f5f0; border-radius:4px; }
select.quick-status.st-interview_failed, select.iv-status-sel.st-interview_failed { color:#be123c; background:#ffe4e6; border-radius:4px; }
select.quick-status.st-pending_onboard, select.iv-status-sel.st-pending_onboard { color:#0369a1; background:#e0f2fe; border-radius:4px; }
select.quick-status.st-hired, select.iv-status-sel.st-hired { color:#1d4ed8; background:#e7efff; border-radius:4px; }
select.quick-status.st-resigned_followup, select.iv-status-sel.st-resigned_followup { color:#7e22ce; background:#f5e9fe; border-radius:4px; }
select.quick-status.st-failed, select.iv-status-sel.st-failed { color:#b91c1c; background:#fdeaea; border-radius:4px; }
select.quick-status.st-resigned, select.iv-status-sel.st-resigned { color:#6b7280; background:#f1f3f7; border-radius:4px; }
select.quick-status.st-resigned_unsettled, select.iv-status-sel.st-resigned_unsettled { color:#8a5a2b; background:#f6ead9; border-radius:4px; }
/* 2026-11-11 补齐：放弃入职 / 约好再联系 / 通过未回复暂挂 / 面试通过考虑 */
select.quick-status.st-give_up_onboard, select.iv-status-sel.st-give_up_onboard { color:#9a6b1f; background:#fdf3e2; border-radius:4px; }
select.quick-status.st-contact_later, select.iv-status-sel.st-contact_later { color:#7e22ce; background:#f5e9fe; border-radius:4px; }
select.quick-status.st-passed_no_reply, select.iv-status-sel.st-passed_no_reply { color:#7e22ce; background:#f5e9fe; border-radius:4px; }
select.quick-status.st-passed_consider, select.iv-status-sel.st-passed_consider { color:#0b7a5b; background:#e4fbef; border-radius:4px; }

/* 求职意向快捷标签(五险一金/包吃住/管吃/管住) */
.int-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.int-chips .chip {
  border: 1px solid #c9d4e8; background: #f6f9ff; color: #33476b;
  border-radius: 999px; padding: 3px 12px; font-size: 13px; cursor: pointer;
}
.int-chips .chip:hover { border-color: var(--primary); }
.int-chips .chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 多人跟进：别人已推成入职 → 该行灰色降权（操作人自己正常显示） */
tr.others-hired { background: #f2f4f7; }
tr.others-hired td { color: #8a94a6; }
tr.others-hired td b, tr.others-hired td .tag { color: #6b7686; }

/* ---------------- 后台页面装饰（黑名单/系统设置）：颜色与背景形状 ---------------- */
.view-backend .panel { border-radius: 16px; border: 1px solid #dfe9e4; box-shadow: 0 4px 18px rgba(20, 69, 61, .07); overflow: hidden; }
.view-backend .panel-head { background: linear-gradient(135deg, #eef5f1, #e2efe8); border-bottom: 2px solid #cfe2d9; }
.view-backend .panel-title { color: #14453d; }
.view-backend .panel-title .sub { color: #5d7a6f; }
.view-backend .grid thead th { background: #e8f1ec; color: #14453d; font-weight: 800; }
.view-backend .grid tbody tr:nth-child(even) { background: #f7faf8; }
.view-backend .grid tbody tr:hover { background: #eef5f1; }
.view-backend .btn-primary { background: linear-gradient(135deg, #14453d, #3a6b5f); border: none; }
.view-backend .notice.info { background: linear-gradient(135deg, #f0f8f4, #e8f4ee); border-color: #cfe2d9; }
.view-backend .role-tag, .view-backend .tag.ok { background: #dcefe5; color: #14453d; }

/* ================================================================
   列表里可就地编辑的格子（2026-09-28 老板：「点开人才库后 这里的界面鼠标点击后都可以进行修改和填入」
   +「注意美观」）
   平时跟普通文字一模一样，鼠标移上去才淡淡浮出"这里能改"的样子；点一下就地变输入框，
   回车或点别处保存、Esc 取消。保存中浅黄、成功闪一下浅绿、失败变红并弹提示。
   ================================================================ */
.ie {
  position: relative; cursor: text; border-radius: 4px; padding: 1px 3px; margin: -1px -3px;
  transition: background .12s ease, box-shadow .12s ease;
}
/* hover 的浅蓝底和小铅笔按老板要求去掉（2026-09-28 晚）：
   肉眼看起来跟以前一样，鼠标点一下才跳出输入框；鼠标移上去只有文字光标和 title 提示 */
.ie-empty { color: var(--muted); }
/* 「＋ 未填」的加号也去掉，空值只显示灰「—」，跟原来的表格一个样 */

/* 两步点击编辑（2026-09-28 晚老板要求）：第一次点出现小「—」标记+浅蓝底，
   再点一下进编辑框；点别处标记消失 */
.ie-armed { background: #eef7f1; box-shadow: inset 0 0 0 1px #cfdcff; }
.ie-armed::after {
  content: '—'; position: absolute; right: 1px; bottom: -1px;
  font-size: 13px; font-weight: 700; color: #2e7d5b; line-height: 1; pointer-events: none;
}
.factory-edit.armed { background: #eef7f1; box-shadow: inset 0 0 0 1px #cfdcff; border-radius: 4px; }
.factory-edit.armed::after { content: '—'; color: #2e7d5b; font-weight: 700; margin-left: 2px; }

/* 列表全列居中（2026-09-28 晚老板要求：所有对齐方式都是正中） */
table.grid.center-all th, table.grid.center-all td { text-align: center; }
table.grid.center-all .factory-edit { text-align: center; }
table.grid.center-all .ie, table.grid.center-all .ie-prefs { text-align: left; }  /* 编辑格本身文字左对齐，整格居中 */
table.grid.center-all td > div { margin-left: auto; margin-right: auto; }

/* 求职意向/条件：点一下出 ✎ 笔头，点笔头打开求职条件编辑窗（跟台账详情同一个界面） */
.ie-prefs { position: relative; cursor: pointer; border-radius: 4px; padding: 1px 3px; margin: -1px -3px; }
.ie-prefs.armed { background: #eef7f1; box-shadow: inset 0 0 0 1px #cfdcff; }
.ie-prefs.armed::after {
  content: '✎'; position: absolute; right: 1px; bottom: -6px;
  font-size: 11px; font-weight: 700; color: #2e7d5b; line-height: 1; pointer-events: none;
}
.ie-editing { background: #fff; box-shadow: inset 0 0 0 2px #2e7d5b; }
.ie-saving { background: #fffbe6; box-shadow: inset 0 0 0 1px #f0d48a; }
.ie-saved { background: #e8f8ee; box-shadow: inset 0 0 0 1px #9fdcb5; }
.ie-err { background: #fdecec; box-shadow: inset 0 0 0 1px #f3b6b6; }
.ie-input {
  width: 100%; min-width: 54px; border: 0; outline: 0; background: transparent;
  font: inherit; color: inherit; padding: 0; margin: 0;
}
.ie-input::placeholder { color: #a9b6cc; }
select.ie-input { cursor: pointer; }
/* 「✎ 条件」小按钮：虚线边、蓝色字，跟条件标签排在一行 */
.prefs-edit { border-style: dashed !important; color: #2e7d5b !important; user-select: none; }
.prefs-edit:hover { background: #eef7f1; }

/* ================================================================
   表格对齐统一（2026-10-13 老板）：
   「后台的表格 表头和下面的内容 你都检查一下…是不是表头是居中、下面的内容不是居中的？
     我怎么感觉下面的数据是靠左对齐的。你全部统一 做成 居中对齐」
   现状：各页面手里写了 90 多处 text-align:right（有的只在表头、有的只在格子），
        加上 .grid 默认是左对齐 → 表头和数据看着"一半居中一半靠边"。
   做法：桌面端（≥769px）用 !important 把 table.grid 的表头和格子**一律居中**（压掉内联的 right/left）。
   手机端（≤768px）是「表格→卡片」排版（左标签 / 右值），保持原样不动。
   ================================================================ */
@media (min-width: 769px) {
  table.grid th, table.grid td { text-align: center !important; }
  /* 格子里自己带的小块（比如姓名下面的小字、备注）也跟着居中，别再一左一右 */
  table.grid th > *, table.grid td > * { text-align: center; }
}
/* ⚠️ 2026-10-26 老板（缩小后点不到最右边的"微信状态"）：屏幕底部钉一条横向滚动条，
   拖它 = 拖表格（表格自己的滚动条在最底下，50 行时够不着）。由 15-boot.js 的 bindHScrollProxy() 控制显隐。 */
#hPanProxy {
  position: fixed; bottom: 10px; height: 15px; z-index: 60;
  display: none; overflow-x: auto; overflow-y: hidden;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 3px 10px rgba(20,40,80,.12);
  scrollbar-width: thin; scrollbar-color: #93a5b8 #eef2f7;
}
#hPanProxy::-webkit-scrollbar { height: 13px; }
#hPanProxy::-webkit-scrollbar-track { background: #eef2f7; border-radius: 7px; }
#hPanProxy::-webkit-scrollbar-thumb { background: #93a5b8; border-radius: 7px; border: 2px solid #eef2f7; }
#hPanProxy::-webkit-scrollbar-thumb:hover { background: #6f849b; }
#hPanProxy .hp-inner { height: 1px; }

/* ===== WIDE_SCREEN_20261102（老板：工厂库不要左右拖、页面做大一点） ===== */
/* ① 模态框放大：以前 620 / wide 900，详情里三列堆一起就得左右拖 */
.modal { max-width: 760px; }
.modal.wide { max-width: 1180px; }
@media (min-width: 1600px) {
  .modal { max-width: 860px; }
  .modal.wide { max-width: 1320px; }
}
/* ② 工厂库表格：宽屏压缩字号和内边距，12 列一屏放下（≥1600 才压，小屏保持原样） */
@media (min-width: 1600px) {
  table.fac-tbl { font-size: 12.5px; }
  table.fac-tbl th, table.fac-tbl td { padding: 8px 9px; }
  table.fac-tbl td > .c3 { max-height: 62px; }
}
@media (min-width: 1900px) {
  table.fac-tbl { font-size: 13px; }
  table.fac-tbl th, table.fac-tbl td { padding: 9px 10px; }
}
/* ③ 表格一律允许换行、不硬撑宽度（避免单元格里 nowrap 把表撑爆） */
table.grid td, table.grid th { word-break: break-word; }
.table-wrap { overscroll-behavior-x: contain; }

/* ===== NARROW_WIDE_20261102：1440/1366 这类屏幕也要放下 15 列，别再左右拖 ===== */
@media (min-width: 1000px) and (max-width: 1599px) {
  table.fac-tbl { font-size: 12px; }
  table.fac-tbl th, table.fac-tbl td { padding: 7px 6px; }
  table.fac-tbl td > .c3 { max-height: 66px; }
  table.fac-tbl thead th { font-size: 11.5px; }
}
@media (min-width: 1000px) and (max-width: 1279px) {
  table.fac-tbl { font-size: 11.5px; }
  table.fac-tbl th, table.fac-tbl td { padding: 6px 5px; }
}

/* ===== NARROW2_20261102：≤1500 再收一档，1366 也能一屏放下 ===== */
@media (min-width: 1000px) and (max-width: 1500px) {
  table.fac-tbl { font-size: 11.5px; }
  table.fac-tbl th, table.fac-tbl td { padding: 5px 4px; }
  table.fac-tbl thead th { font-size: 11px; padding: 6px 4px; }
  .fac-tbl .tag, .fac-tbl .btn-xs { font-size: 11px; padding: 2px 5px; }
}

/* ===== CLAMP_NARROW_20261102：窄屏格子最多两行，超了裁掉，避免行高爆掉 ===== */
@media (min-width: 1000px) and (max-width: 1599px) {
  table.fac-tbl td > .c3 { max-height: 46px; overflow: hidden; }
  table.fac-tbl tbody td { height: auto; min-height: 58px; }
}

/* ===== FIXED_COLS_20261103（老板：工厂库统一列宽，长内容别把表格撑变形） ===== */
table.fac-tbl { table-layout: fixed; width: 100%; }
table.fac-tbl th, table.fac-tbl td { overflow: hidden; }
table.fac-tbl td > .c3 { overflow: hidden; }
/* 固定列宽后，短内容列不换行更整齐 */
table.fac-tbl td:nth-child(1), table.fac-tbl td:nth-child(5),
table.fac-tbl td:nth-child(6), table.fac-tbl td:nth-child(8),
table.fac-tbl td:nth-child(9), table.fac-tbl td:nth-child(10),
table.fac-tbl td:nth-child(11) { white-space: nowrap; }
/* 驻场电话：一行、超了省略号，title 里是完整信息 */
table.fac-tbl .tel-cell {
  display: block; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 名称/面试时间：一行 + 省略号（悬停有 title） */
table.fac-tbl td:nth-child(2) b { display: inline-block; max-width: 82%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
table.fac-tbl td:nth-child(3) .c3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== INLINE_EDIT_20261103：工厂库表格双击就地改（只有老板能用） ===== */
table.fac-tbl td.fe-gender, table.fac-tbl td.fe-shift,
table.fac-tbl td.fe-contact, table.fac-tbl td.fe-age { cursor: cell; }
table.fac-tbl td.fe-editing { background: #fffbeb; outline: 1px dashed #f59e0b; }
.fe-input {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 2px 4px; font-size: 12px; border: 1px solid #93c5fd; border-radius: 4px;
  font-family: inherit; background: #fff;
}

/* ===== HOVER_TIP_20261104：工厂表悬浮显示完整内容 ===== */
.fac-tip {
  position: fixed; z-index: 9999; pointer-events: none;
  max-width: 360px; max-height: 60vh; overflow: hidden;
  background: rgba(17,24,39,.95); color: #fff;
  font-size: 12.5px; line-height: 1.6; padding: 9px 11px; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); white-space: pre-wrap; word-break: break-word;
}
