* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--app-bg); color: #1f2937; font-size: 12px;
}
.hidden { display: none !important; }
button { cursor: pointer; font-size: 12px; border: none; border-radius: 5px; padding: 5px 10px; }
button.primary { background: #2563eb; color: #fff; }
button.primary:hover { background: #1d4ed8; }
button.ghost { background: #e5e7eb; color: #374151; }
button.ghost:hover { background: #d1d5db; }
button.danger { background: #dc2626; color: #fff; }
button.danger:hover { background: #b91c1c; }
button.link { background: none; color: #2563eb; padding: 2px 5px; }
button.small { padding: 3px 8px; font-size: 11px; background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
button.small:hover { background: #e5e7eb; }
input, select { padding: 3px 6px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; width: 100%; height: 26px; }
input:focus, select:focus { outline: none; border-color: #2563eb; }

/* ── 主题令牌 ────────────────────────────────────────────
   浅色（默认）=「阳光」：白侧栏 + 蓝激活态，明亮舒服；
   深色 =「稳重」：原来的深蓝侧栏。两套都保留，系统内可一键切换。
   切换开关：侧边栏底部「🌙 切换深色 / ☀️ 切换浅色」，选择记在 localStorage(qyos_theme)。 */
:root {
  --app-bg:#f5f8fd;
  --sb-bg:#ffffff;        --sb-border:#eef3fb;   --sb-line:#eef3fb;
  --sb-ink:#0f172a;       --sb-sub:#94a3b8;      --sb-item:#475569;
  --sb-hover-bg:#f1f5f9;  --sb-hover-tx:#0f172a;
  --sb-act-bg:#eff6ff;    --sb-act-tx:#2563eb;   --sb-os:#2563eb;
  --sb-subitem:#64748b;   --sb-subitem-act-bg:#dbeafe; --sb-subitem-act-tx:#1d4ed8;
  --shadow-1:0 1px 4px rgba(30,64,175,.07);
  --shadow-2:0 2px 10px rgba(30,64,175,.08);
}
[data-theme="dark"] {
  --app-bg:#f4f6fa;
  --sb-bg:#1e293b;        --sb-border:rgba(255,255,255,.1); --sb-line:rgba(255,255,255,.1);
  --sb-ink:#fff;          --sb-sub:rgba(255,255,255,.5);    --sb-item:#cbd5e1;
  --sb-hover-bg:rgba(255,255,255,.08); --sb-hover-tx:#fff;
  --sb-act-bg:#2563eb;    --sb-act-tx:#fff;      --sb-os:#93c5fd;
  --sb-subitem:#94a3b8;   --sb-subitem-act-bg:rgba(37,99,235,.35); --sb-subitem-act-tx:#fff;
  --shadow-1:0 1px 4px rgba(0,0,0,.06);
  --shadow-2:0 1px 4px rgba(0,0,0,.06);
}

/* 登录 —— 2026-09-23 品牌化改版：企营OS「企」字符标 + 阳光浅色风。
   背景=晴空暖阳浅色渐变（暖黄光晕 + 天蓝光晕 + 细点阵），卡片=白底 + 浅色品牌区；
   双栏（左=微信扫码 / 右=账号密码），微信未配置时左栏隐藏、.solo 收成单栏窄卡。
   登录页固定浅色（不随系统内主题切换），它是品牌的「门面」。 */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; position: relative;
  background:
    radial-gradient(880px 520px at 84% 10%, rgba(253,224,138,.50), transparent 62%),
    radial-gradient(900px 560px at 10% 88%, rgba(147,197,253,.45), transparent 60%),
    linear-gradient(165deg, #eef5ff 0%, #f7fbff 45%, #fffaf0 100%);
}
/* 细点阵纹理：浅底上的一点点秩序感（径向蒙版让边缘自然淡出，不抢卡片主体） */
.login-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(37,99,235,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 35%, #000 25%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 35%, #000 25%, transparent 100%);
}
.login-card {
  position: relative; background: #fff; padding: 0; border-radius: 18px;
  width: 760px; max-width: 100%; overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 22px 55px rgba(30,64,175,.14), 0 4px 14px rgba(30,64,175,.07);
}
/* 品牌区：浅色渐变 + 字符标（项目无 logo 素材，用圆角方块「企」代替） */
.lg-head {
  display: flex; align-items: center; gap: 14px; padding: 30px 34px 24px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
  border-bottom: 1px solid #e8eefb;
}
.lg-mark {
  width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(37,99,235,.32), inset 0 1px 0 rgba(255,255,255,.3);
}
.lg-brand { font-size: 26px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.15; color: #0f172a; }
.lg-brand-os { color: #2563eb; font-weight: 800; letter-spacing: 1px; }
.lg-sub { margin-top: 5px; font-size: 13px; color: #64748b; letter-spacing: .3px; }
.lg-body { padding: 26px 34px 30px; }
.lg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
/* 单栏态：微信未配置、或正在绑定已有账号 —— 卡片整体收窄，避免白框里空一大块 */
.login-card.solo { width: 420px; }
.lg-cols.solo { grid-template-columns: 1fr; }
.lg-col.lg-pwd { border-left: 1px solid #eef2f7; padding-left: 34px; }
.lg-cols.solo .lg-col.lg-pwd { border-left: 0; padding-left: 0; }
.lg-col-h { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.lg-ic { font-size: 14px; }
/* 输入框：更舒展的圆角与高度，聚焦给一圈柔光而不是硬边框 */
.login-card input {
  margin-bottom: 12px; height: 38px; padding: 8px 13px;
  border: 1px solid #dbe3ef; border-radius: 10px; font-size: 13px; background: #fff;
}
.login-card input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.login-card .hint { margin-top: 14px; font-size: 12px; color: #9ca3af; line-height: 1.5; }
.lg-remember { display: flex; gap: 18px; margin: -2px 0 12px; user-select: none; }
.lg-remember label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; cursor: pointer; }
.lg-captcha { display: flex; gap: 8px; align-items: center; }
.lg-captcha input { flex: 1; min-width: 0; }
.lg-captcha img { height: 40px; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; background: #f8fafc; }
/* 登录按钮：原来没给底色，渲染成浏览器默认灰底、跟「主操作」的观感对不上 */
.login-card .lg-submit {
  width: 100%; margin-top: 2px; padding: 11px; font-size: 14px; font-weight: 600; color: #fff;
  border: 0; border-radius: 10px; background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 6px 16px rgba(37,99,235,.28);
}
.login-card .lg-submit:hover { background: linear-gradient(135deg, #2563eb, #1e40af); box-shadow: 0 8px 20px rgba(37,99,235,.34); }

/* 左栏 · 二维码容器与几种状态（未配置 / 微信内 / 手机 / 出码失败）
   只有真的要出二维码时才撑起高度并居中；引导态按内容高度自然排，避免一大块空白 */
.wx-qr { display: flex; flex-direction: column; }
.wx-qr--qr { min-height: 272px; align-items: center; justify-content: center; }
.wx-qr iframe { border: 0; width: 100%; display: block; }
.wx-qr .wx-loading { font-size: 12px; color: #9ca3af; text-align: center; padding: 24px 0; }
.wx-state { text-align: center; padding: 4px; }
.wx-state-ic { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.wx-state b { font-size: 13.5px; color: #1f2937; display: block; margin-bottom: 6px; }
.wx-state p { font-size: 12px; color: #6b7280; line-height: 1.75; margin: 0; }
.wx-tag { display: inline-block; font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 9px; margin-bottom: 10px; }
.wx-btn { width: 100%; padding: 8px 10px; border-radius: 5px; border: 1px solid #07c160; color: #07c160; background: #f0fdf4; font-size: 13px; margin-top: 10px; }
.wx-btn:hover { background: #e5f9ec; }
.wx-help { font-size: 11.5px; color: #9ca3af; line-height: 1.7; margin: 12px 0 0; }
.wx-help a { color: #2563eb; text-decoration: none; }

/* 绑定已有账号（跨两栏） */
.lg-bind { margin: 22px auto 0; border-top: 1px solid #eef2f7; padding-top: 18px; max-width: 340px; }
.lg-bind-t { font-size: 13px; color: #374151; margin: 0 0 10px; }
.login-card .lg-bind button { width: 100%; }
.login-card .lg-bind .ghost { margin-top: 6px; }
.err { color: #dc2626; font-size: 11px; margin-top: 3px; min-height: 14px; }

@media (max-width: 720px) {
  .lg-head { padding: 22px 20px 18px; gap: 12px; }
  .lg-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
  .lg-brand { font-size: 23px; }
  .lg-body { padding: 20px 20px 24px; }
  .lg-cols { grid-template-columns: 1fr; gap: 22px; }
  .lg-col.lg-pwd { border-left: 0; border-top: 1px solid #eef2f7; padding-left: 0; padding-top: 22px; }
  .lg-cols.solo .lg-col.lg-pwd { border-top: 0; padding-top: 0; }
  .wx-qr { min-height: 0; }
}

/* 专属上传框（2026-09-23）：单文件上传统一「拖放 / 手机扫码 / 电脑选择」三个入口。
   三态互斥 —— 空(拖放) / 已选(预览) / 扫码(二维码)，由 JS 切 .hidden。 */
.upbox { border: 1.5px dashed #cbd5e1; border-radius: 10px; background: #fafcff; padding: 14px; transition: border-color .15s, background .15s; }
.upbox.dragover { border-color: #2563eb; background: #eff6ff; }
.upbox-drop { text-align: center; padding: 4px 2px; }
.upbox-ic { font-size: 24px; line-height: 1; margin-bottom: 6px; }
.upbox-t { font-size: 13.5px; font-weight: 600; color: #1f2937; }
.upbox-s { font-size: 12px; color: #94a3b8; margin-top: 3px; text-align: center; }
.upbox-s-lim { margin-top: 9px; }
.upbox-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.upbox-b { padding: 6px 12px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; color: #374151; font-size: 12.5px; }
.upbox-b:hover { background: #f1f5f9; }
.upbox-b-main { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.upbox-b-main:hover { background: #dbeafe; }
.upbox-b-danger { border-color: #fecaca; color: #b91c1c; }
.upbox-b-danger:hover { background: #fef2f2; }
/* 已选态 */
.upbox-pv { display: flex; align-items: center; justify-content: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; min-height: 96px; max-height: 190px; overflow: hidden; }
.upbox-pv img { max-width: 100%; max-height: 188px; display: block; }
.upbox-pdf { font-size: 22px; font-weight: 700; color: #b91c1c; letter-spacing: 1px; }
.upbox-meta { text-align: center; margin-top: 8px; }
.upbox-name { font-size: 13px; color: #1f2937; font-weight: 600; word-break: break-all; }
.upbox-size { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
/* 扫码态 */
.upbox-qrbox { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.upbox-qrbox svg { display: block; }
.upbox-qrload { font-size: 12.5px; color: #94a3b8; padding: 62px 0; }
.upbox-cd { font-size: 12.5px; color: #1d4ed8; text-align: center; margin-top: 6px; }
.upbox-url { font-size: 11px; color: #94a3b8; text-align: center; word-break: break-all; margin-top: 4px; }
.upbox-status { font-size: 13px; color: #16a34a; text-align: center; margin-top: 4px; }
.upbox-warn { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; margin-top: 8px; }

/* 左侧导航栏（配色全部走主题令牌，浅/深可切换） */
.app { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 220px; background: var(--sb-bg); color: var(--sb-ink); display: flex; flex-direction: column; flex-shrink: 0; border-right: 1px solid var(--sb-border); transition: background .2s; }
.sidebar-brand { padding: 16px 18px 14px; border-bottom: 1px solid var(--sb-line); display: flex; align-items: center; gap: 10px; }
/* 「企」字符标：项目无 logo 素材，用与登录页一致的圆角渐变方块 */
.sb-mark { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; box-shadow: 0 4px 11px rgba(59,130,246,.32), inset 0 1px 0 rgba(255,255,255,.25); }
.sb-brand { font-weight: 800; font-size: 17px; letter-spacing: 1.2px; line-height: 1.15; color: var(--sb-ink); }
.sb-os { color: var(--sb-os); }
.sb-brand-sub { margin-top: 4px; font-size: 10.5px; color: var(--sb-sub); line-height: 1.45; letter-spacing: .2px; }
.sidebar-notif { padding: 10px 12px 4px; }
.sidebar-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--sb-item); text-decoration: none; font-size: 14px; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--sb-hover-bg); color: var(--sb-hover-tx); }
.nav-item.active { background: var(--sb-act-bg); color: var(--sb-act-tx); font-weight: 600; }
.nav-icon { font-size: 16px; width: 22px; text-align: center; }
.nav-group { display: flex; flex-direction: column; }
.nav-item[data-toggle] { justify-content: space-between; cursor: pointer; }
.nav-arrow { font-size: 10px; transition: transform .15s; margin-left: auto; }
.nav-item.open .nav-arrow { transform: rotate(90deg); }
.nav-submenu { display: none; flex-direction: column; padding-left: 18px; margin-left: 6px; border-left: 1px solid var(--sb-line); }
.nav-submenu.open { display: flex; }
.nav-subitem { padding: 8px 12px; border-radius: 6px; color: var(--sb-subitem); text-decoration: none; font-size: 13px; }
.nav-subitem:hover { background: var(--sb-hover-bg); color: var(--sb-hover-tx); }
.nav-subitem.active { background: var(--sb-subitem-act-bg); color: var(--sb-subitem-act-tx); }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--sb-line); }
.user-info { font-size: 13px; color: var(--sb-sub); margin-bottom: 10px; line-height: 1.5; }
.sidebar-footer button { width: 100%; }
.theme-toggle { margin-top: 6px; }

/* 右侧主区域 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; min-height: 0; overflow: hidden; }
.topbar { background: #fff; padding: 12px 24px; display: flex; justify-content: flex-start; align-items: center; border-bottom: 1px solid #eef3fb; box-shadow: var(--shadow-1); }
.container { flex: 1; padding: 24px; overflow-y: auto; min-height: 0; }
.container.list-layout { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; position: relative; }
.container.list-layout .filter-panel { flex: 0 0 auto; }
.container.list-layout .table-wrap { flex: 1 1 0; min-height: 0; overflow: auto; max-height: none; }
.container.list-layout #empty { flex: 0 0 auto; }
.container.list-layout .pager { flex: 0 0 auto; margin: 10px 0 0; }
.view { width: 100%; flex: 1; display: none; flex-direction: column; min-height: 0; overflow: auto; }
.view:not(.hidden) { display: flex; }
/* 列表页自己管理滚动（filter/table/pager），避免外层 view 出双滚动条 */
#listView.view:not(.hidden) { overflow: hidden; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar #search { flex: 1; min-width: 200px; }
.toolbar select { width: auto; min-width: 130px; }

/* 独立功能页面（统计/日志/用户/设置/审核/个人中心） */
.page-header { background: #fff; padding: 10px 24px; display: flex; align-items: center; border-bottom: 1px solid #eef3fb; box-shadow: var(--shadow-1); }
.page-header h2 { font-size: 15px; font-weight: 600; margin: 0; }
.page-body { flex: 1; padding: 16px 24px; overflow-y: auto; min-height: 0; }
.page-body.with-pager { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.page-body.with-pager > .page-toolbar,
.page-body.with-pager > #userCountInfo { flex-shrink: 0; }
.page-body.with-pager > .table-wrap { flex: 1; min-height: 0; overflow: auto; max-height: none; margin-bottom: 0; }
.page-body.with-pager > .pager { flex-shrink: 0; margin: 8px 0 0; }
.page-toolbar { display: flex; gap: 10px; margin: 8px 0 12px; flex-wrap: wrap; align-items: center; }
.page-toolbar input[type="text"], .page-toolbar input:not([type]), .page-toolbar select { flex: 1; min-width: 200px; }

/* 高级查询面板 */
.filter-panel { background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-2); }
.filter-title { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.filter-title::before { content: ''; display: inline-block; width: 4px; height: 14px; background: #2563eb; border-radius: 2px; }
.filter-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 12px 14px; }
.filter-item { display: flex; flex-direction: column; gap: 5px; }
.filter-label { font-size: 12px; color: #6b7280; }
.filter-item input, .filter-item select { padding: 4px 8px; font-size: 12px; height: 26px; }
.filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f3f4f6; }

/* 详情页 */
#detailPage { position: absolute; inset: 0; background: var(--app-bg); z-index: 20; overflow-y: auto; }
.detail-card { background: #fff; min-height: 100%; display: flex; flex-direction: column; }
.detail-header { position: sticky; top: 0; z-index: 5; background: #fff; padding: 8px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eef0f3; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.detail-header h2 { font-size: 15px; font-weight: 600; margin: 0; flex: 1; }
.detail-back { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 8px; }
.detail-header-actions { display: flex; gap: 6px; }
.detail-body { flex: 1; padding: 8px 14px 12px; }
#detailPage #empForm { padding: 8px 14px 12px; }
.detail-actions { position: sticky; bottom: 0; background: #fff; padding: 8px 16px; border-top: 1px solid #eef0f3; display: flex; justify-content: center; gap: 8px; box-shadow: 0 -1px 4px rgba(0,0,0,.04); }

/* 详情查看态字段 */
.detail-field { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 11px; color: #6b7280; line-height: 1.35; }
.detail-value { font-size: 12px; color: #1f2937; min-height: 16px; line-height: 1.35; word-break: break-all; }
#empForm .detail-field { padding: 4px 6px; background: #f8fafc; border: 1px solid #eef0f3; border-radius: 5px; }
#empForm .idcard-field.detail-field { padding: 4px 6px; }

/* 查看态（readonly-mode）：分区块统一白色背景，保持整体页面底色一致 */
#empForm.readonly-mode .form-section { background: #fff; border: 1px solid #eef0f3; padding: 8px 10px 10px; }
#empForm.readonly-mode .section-title { border-bottom: 1px solid #e5e7eb; padding-bottom: 3px; margin-bottom: 6px; }
#empForm.readonly-mode .detail-field:not(.idcard-field) { background: transparent; border: none; padding: 2px 0; }
#empForm.readonly-mode .detail-label { font-size: 11px; color: #6b7280; }
#empForm.readonly-mode .detail-value { font-size: 12px; color: #1f2937; }
#empForm.readonly-mode label.fld { background: transparent; border: none; padding: 2px 0; }

/* 表格 */
.table-wrap { background: #fff; border-radius: 10px; overflow: auto; box-shadow: 0 1px 4px rgba(0,0,0,.06); max-height: calc(100vh - 340px); }
table { width: max-content; min-width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid #f0f1f4; white-space: nowrap; }
th { background: #f9fafb; font-weight: 600; color: #374151; position: sticky; top: 0; z-index: 10; }
tbody tr:hover { background: #f8fafc; }
.empty { text-align: center; color: #9ca3af; padding: 48px; }

/* 分页栏 — 紧凑单行卡片 */
.pager {
  display: flex; align-items: center; gap: 3px;
  margin: 10px 0 4px; padding: 6px 10px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  font-size: 12px; color: #4b5563;
  flex-wrap: nowrap; white-space: nowrap;
  overflow-x: auto;
}
.pager::-webkit-scrollbar { height: 5px; }
.pager::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.pager::-webkit-scrollbar-track { background: transparent; }
.pg-info { margin-right: 6px; white-space: nowrap; color: #6b7280; }
.pg-btn {
  background: #f3f4f6; color: #374151;
  padding: 4px 8px; border-radius: 5px;
  font-size: 12px; min-width: 24px; text-align: center;
}
.pg-btn:hover:not(:disabled) { background: #e5e7eb; }
.pg-btn.active { background: #2563eb; color: #fff; }
.pg-btn:disabled { opacity: .45; cursor: not-allowed; background: #f3f4f6; }
.pg-ellipsis { padding: 0 3px; color: #9ca3af; min-width: 18px; text-align: center; }
.pg-jump { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; white-space: nowrap; }
.pg-mid { color: #9ca3af; }
.pg-jump input, .pg-jump select { padding: 3px 5px; font-size: 12px; height: 26px; border-radius: 5px; }
#pgJump { width: 46px; text-align: center; }
#pgLimit { width: 60px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal-card { position: relative; background: #fff; border-radius: 12px; padding: 24px; width: 760px; max-width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-card h2 { margin-bottom: 16px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border: none; background: transparent; color: #9ca3af; font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; }
.modal-close:hover { background: #f3f4f6; color: #374151; }

/* 附件预览浮层（独立小窗口，盖在表单之上） */
.preview-modal { position: fixed; inset: 0; background: rgba(15,23,42,.75); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1000; }
.preview-card { position: relative; background: #fff; border-radius: 12px; padding: 16px; width: min(900px, 94vw); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.preview-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: none; background: rgba(255,255,255,.9); color: #374151; font-size: 18px; line-height: 1; cursor: pointer; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.preview-close:hover { background: #f3f4f6; }
.preview-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 8px; overflow: hidden; }
.preview-img { max-width: 100%; max-height: calc(92vh - 70px); object-fit: contain; display: block; }
.preview-iframe { width: 100%; height: calc(92vh - 70px); border: 0; }
.preview-name { text-align: center; color: #6b7280; font-size: 13px; padding-top: 10px; }
/* 表单按信息分类展示 */
#empForm { display: flex; flex-direction: column; gap: 8px; }
.form-section { background: #fff; border: 1px solid #eef0f3; border-radius: 6px; padding: 8px 10px 10px; }
.section-title { font-size: 12px; font-weight: 600; color: #1f2937; margin-bottom: 6px; padding-bottom: 3px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 5px; }
.section-title::before { content: ''; display: inline-block; width: 3px; height: 11px; background: #2563eb; border-radius: 2px; }
.section-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 8px; }
#empForm label { font-size: 12px; color: #4b5563; line-height: 1.5; }
#empForm label .req { color: #dc2626; }
#empForm label.inline { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; margin-left: 5px; vertical-align: middle; }
#empForm label.inline input { width: auto; }
.fld-wide { grid-column: 1 / -1; }
.danger-link { color: #dc2626 !important; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }

/* 详情页普通字段输入框/下拉框限制最大宽度，避免在多列布局中过度拉伸 */
#empForm .section-grid input:not([type="checkbox"]), #empForm .section-grid select { width: 100%; max-width: 220px; }
#empForm .section-grid .fld-wide input, #empForm .section-grid .fld-wide select,
#empForm .idcard-field input, #empForm .idcard-input,
#empForm .id-expiry-label input, #empForm .cert-expiry-label input { max-width: none; }

/* 大屏电脑：普通字段 4 列 */
@media (min-width: 1280px) {
  .section-grid { grid-template-columns: repeat(4, 1fr); }
  .fld-wide { grid-column: 1 / -1; }
}

/* 超宽屏：普通字段 5 列 */
@media (min-width: 1600px) {
  .section-grid { grid-template-columns: repeat(5, 1fr); }
  .fld-wide { grid-column: 1 / -1; }
}

/* 列设置面板 */
.col-list { list-style: none; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.col-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f9fafb; border: 1px solid #eef0f3; border-radius: 8px; cursor: move; }
.col-item.dragging { opacity: .5; background: #e0edff; border-color: #2563eb; }
.col-drag { color: #9ca3af; font-size: 12px; cursor: grab; user-select: none; }
.col-check { flex: 1; font-size: 13px; color: #374151; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.col-check input { width: auto; }

/* 附件面板（身份证 / 学历证明 等） */
.attach-panel { margin-top: 10px; border-top: 1px solid #eee; padding-top: 8px; }
.attach-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.attach-title { font-weight: 600; font-size: 13px; color: #374151; }
.attach-scan { font-size: 12px; opacity: .65; cursor: not-allowed; }
.attach-upload { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.attach-upload select { width: auto; min-width: 110px; }
.attach-upload input[type=file] { flex: 1; min-width: 160px; }
.attach-list { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.attach-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #f9fafb; border: 1px solid #eef0f3; border-radius: 6px; }
.attach-item button.link { font-size: 13px; }
.att-badge { background: #e0edff; color: #1d4ed8; font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.att-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #374151; }
.att-size { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.att-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.attach-empty { color: #9ca3af; font-size: 13px; padding: 6px 2px; }
.attach-hint { font-size: 12px; color: #b9770e; background: #fff8e1; border: 1px solid #fde68a; border-radius: 6px; padding: 6px 10px; margin-top: 6px; }
.att-exp { font-size: 12px; color: #9ca3af; white-space: nowrap; }
.att-exp.warn { color: #ea580c; font-weight: 600; }
.att-exp.expired { color: #dc2626; font-weight: 600; }
.att-exp.long { color: #2563eb; font-weight: 600; }

/* 我的审核 / 个人中心 */
.audit-intro { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 12px 14px; color: #0369a1; font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.audit-intro p { margin: 0; }
.audit-list { max-height: 360px; overflow-y: auto; }
.audit-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.audit-tabs button { padding: 5px 12px; border: 1px solid #d1d5db; background: #f9fafb; border-radius: 6px; cursor: pointer; font-size: 13px; }
.audit-tabs button.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.audit-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.audit-item button { margin-right: 6px; }

/* 审批流程设计器 */
.wf-designer { display: flex; gap: 14px; align-items: stretch; height: 100%; min-height: 0; }
.wf-side { width: 250px; flex-shrink: 0; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; }
.wf-side-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #f0f1f4; font-weight: 600; font-size: 13px; }
.wf-def-list { max-height: 520px; overflow-y: auto; }
.wf-def-item { padding: 10px 12px; border-bottom: 1px solid #f4f5f7; cursor: pointer; font-size: 13px; }
.wf-def-item:hover { background: #f8fafc; }
.wf-def-item.active { background: #e0edff; color: #1d4ed8; }
.wf-def-name { font-weight: 500; margin-bottom: 2px; }
.wf-def-sub { font-size: 11px; color: #6b7280; }
.wf-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wf-meta { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.wf-meta label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.wf-meta input, .wf-meta select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; min-height: 32px; height: auto; line-height: 1.5; }
.wf-meta select[multiple], .wf-node-props select[multiple] { min-height: 90px; padding: 4px; }
.wf-meta select[multiple] option, .wf-node-props select[multiple] option { padding: 4px 6px; line-height: 1.6; }
.wf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wf-msg { font-size: 12px; min-height: 18px; }
.wf-msg.ok { color: #3B6D11; }
.wf-msg.err { color: #A32D2D; }

/* 自然语言生成流程（#299） */
.wf-nl { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 8px; }
.wf-nl-title { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #374151; }
.wf-nl textarea { width: 100%; resize: vertical; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; line-height: 1.6; min-height: 40px; }
.wf-nl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wf-nl-row label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.wf-nl-row select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; }
.wf-nl-hint { font-size: 11px; color: #9ca3af; }
.wf-nl-warn { font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }
.wf-nl-warn ul { margin: 4px 0 0; padding-left: 18px; }
.wf-hint { font-size: 11px; color: #6b7280; line-height: 1.6; margin-top: 4px; }

/* ---------- 流程图（可视化编辑） ---------- */
.wf-canvas-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wf-canvas-tip { font-size: 12px; color: #4b5563; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px 10px; }
.wf-canvas-tip b { color: #2563eb; }
.wf-fit-tip { font-size: 12px; color: #9ca3af; }

/* 预览发起人：选一个人，流程图上直接显示每一步由谁批 */
.wf-preview { position: relative; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.wf-preview input { padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; width: 150px; }
.wf-preview-name { color: #2563eb; font-weight: 600; }
.wf-suggest {
  position: absolute; top: 100%; right: 0; z-index: 60; margin-top: 4px; min-width: 230px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  max-height: 260px; overflow: auto;
}
.wf-suggest-item { padding: 7px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.wf-suggest-item:hover { background: #eff6ff; }
.wf-suggest-sub { color: #9ca3af; font-size: 11px; }
.wf-suggest-empty { padding: 10px; color: #9ca3af; font-size: 12px; }

/* 会签节点：多行审批人规则 */
.wf-assignee-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.wf-assignee-row input, .wf-assignee-row select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; min-height: 32px; flex: 1; min-width: 130px; }
.wf-canvas-wrap {
  position: relative; overflow: auto; flex: 1; min-height: 360px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0;
  background-image: radial-gradient(#e8ebf0 1px, transparent 1px); background-size: 18px 18px;
}
.wf-canvas-wrap.fullscreen {
  position: fixed; inset: 0; z-index: 200; border-radius: 0; min-height: 100vh;
  background: #f8fafc;
}
.wf-canvas-inner {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
}
.wf-edges { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wf-edges path { fill: none; stroke: #94a3b8; stroke-width: 1.8; }
.wf-edges .wf-edge-cond { stroke: #BA7517; stroke-dasharray: 5 4; }
.wf-edges .wf-arrow { fill: #94a3b8; }
.wf-edges text { font-size: 11px; fill: #BA7517; }
.wf-zoom-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
}
.wf-zoom-bar span { font-size: 12px; color: #4b5563; min-width: 42px; text-align: center; }
.wf-zoom-bar button { padding: 4px 10px; font-size: 13px; }

/* 流程节点（绝对定位 div） */
.wf-node {
  position: absolute; width: 160px; box-sizing: border-box;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07); padding: 8px 10px; cursor: pointer;
  transition: box-shadow .12s, border-color .12s; user-select: none;
}
.wf-node:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.wf-node.selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.wf-node .wf-node-row { display: flex; align-items: center; gap: 6px; }
.wf-node .wf-node-tag {
  font-size: 10px; padding: 1px 6px; border-radius: 999px; color: #fff; flex-shrink: 0;
  background: #2563eb;
}
.wf-node .wf-node-title { font-size: 13px; font-weight: 600; color: #111827; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-node .wf-node-sub { font-size: 11px; color: #6b7280; margin-top: 3px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-node .wf-node-btns { position: absolute; top: -11px; right: -8px; display: none; gap: 4px; }
.wf-node:hover .wf-node-btns, .wf-node.selected .wf-node-btns { display: flex; }
.wf-node-btns button {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #fff; cursor: pointer;
  font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.wf-node-btns .wf-add { background: #2563eb; }
.wf-node-btns .wf-del { background: #dc2626; }
.wf-node-btns .wf-add:hover { background: #1d4ed8; }
.wf-node-btns .wf-del:hover { background: #b91c1c; }
/* 各节点类型配色（仅设计器暴露的类型） */
.wf-node.start .wf-node-tag { background: #639922; }
.wf-node.end   .wf-node-tag { background: #6b7280; }
.wf-node.approval .wf-node-tag { background: #2563eb; }
.wf-node.countersign .wf-node-tag { background: #7c3aed; }
.wf-node.condition .wf-node-tag { background: #BA7517; }
.wf-node.notify .wf-node-tag { background: #888780; }
.wf-node.start { border-color: #639922; }
.wf-node.end { border-color: #6b7280; }
.wf-node.condition { border-color: #BA7517; }
.wf-node.countersign { border-color: #7c3aed; }

/* 节点属性面板 */
.wf-node-props { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.wf-node-props h4 { margin: 0 0 10px; font-size: 13px; color: #374151; display: flex; align-items: center; gap: 8px; }
.wf-node-props .wf-props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; }
.wf-node-props label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.wf-node-props input, .wf-node-props select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; min-height: 32px; height: auto; line-height: 1.5; }
.wf-node-props .wf-empty { color: #9ca3af; font-size: 13px; padding: 6px 2px; }
.wf-node-props .wf-branch { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.wf-node-props .wf-branch code { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: 3px 6px; font-size: 11px; color: #334155; }
.wf-node-props .wf-hint { margin-top: 8px; }
.audit-head { font-size: 13px; margin-bottom: 4px; }
.audit-status { color: #d97706; font-weight: 600; }
.audit-meta { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.audit-detail { font-size: 12px; color: #374151; word-break: break-all; margin-bottom: 8px; }
.audit-item button { margin-right: 6px; }
.profile-info { font-size: 14px; color: #374151; line-height: 2; }
.profile-info b { display: inline-block; width: 80px; color: #6b7280; font-weight: 500; }

/* 表单字段块统一为块级，便于内联证件控件换行显示 */
#empForm .fld { display: block; }
#empForm .fld .req { color: #dc2626; }
#empForm .fld-idcard { grid-column: span 2; }

/* 身份证双面板 */
.idcard-field { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 10px; }
.idcard-label { font-size: 12px; color: #334155; font-weight: 600; margin-bottom: 4px; }
.idcard-input { width: 100%; max-width: 260px; margin-bottom: 6px; }
.idcard-sides { display: flex; gap: 8px; width: 100%; }
.id-side { border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px; background: #fff; flex: 1; min-width: 0; }
.id-side-title { font-size: 12px; font-weight: 600; color: #1e293b; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.id-side-title::before { content: ''; width: 3px; height: 11px; background: #2563eb; border-radius: 2px; display: inline-block; }
.id-side-slot { margin-bottom: 4px; }
.id-thumb { min-height: 36px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.id-thumb.empty { background: #f1f5f9; color: #94a3b8; border: 1px dashed #cbd5e1; }
.id-thumb.has { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-weight: 600; }
.id-thumb-img { width: 100%; height: auto; max-height: 70px; object-fit: contain; object-position: center; border-radius: 5px; border: 1px solid #dbeafe; background: #f1f5f9; cursor: pointer; image-orientation: from-image; }
.id-thumb-img:hover { border-color: #2563eb; }
.id-side-actions { display: flex; gap: 3px; flex-wrap: wrap; }
.id-btn { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; border-radius: 4px; padding: 2px 6px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.id-btn:hover { background: #dbeafe; }
.id-expiry-row { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.id-expiry-label { font-size: 11px; color: #475569; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.id-expiry-label input[type="date"] { border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 5px; font-size: 11px; color: #334155; width: auto; min-width: 100px; height: 24px; }
.id-expiry-label input[type="date"]:disabled { background: #f1f5f9; color: #94a3b8; }
.id-long-label { font-size: 11px; color: #475569; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.id-long-label input { width: auto; }
.id-exp { margin-top: 3px; font-size: 11px; }
.id-err { margin-top: 3px; font-size: 11px; min-height: 0; }

/* 小屏下身份证控件恢复独占一行 */
@media (max-width: 1024px) {
  #empForm .fld-idcard { grid-column: 1 / -1; }
}

/* 字段内联证件控件（学历/技能/资格证/劳动合同/健康证：唯一；其他证书：多份） */
.cert-inline { margin-top: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; padding: 1px 0; }
.cert-inline.cert-multi { align-items: flex-start; flex-direction: column; flex-wrap: wrap; }
.cert-slot { font-size: 11px; color: #64748b; flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.cert-ok { color: #047857; font-weight: 600; }
.cert-empty { color: #94a3b8; }
.cert-actions { display: flex; gap: 2px; margin-left: auto; flex-shrink: 0; }
.cert-actions .id-btn { padding: 2px 5px; font-size: 10px; }
.cert-multi-list { width: 100%; display: flex; flex-direction: column; gap: 3px; }
.cert-multi-list .cert-other-item { background: #fff; }

/* 健康证卡片（参考身份证单面布局） */
.health-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px; margin-top: 4px; grid-column: span 2; }
.health-card .id-side-title { margin-bottom: 4px; }
.health-card .id-side-slot { margin-bottom: 4px; }
.health-card .id-thumb-img { max-height: 80px; }

/* 卡片式证件行（健康证 + 红十字救护员证）：独占一整行；列数镜像 section-grid（2/4/5 列），
   每卡=1 个字段格宽 = 身份证单面面板大小。
   ⚠️ 必须 minmax(0,1fr)：纯 1fr 的网格轨道会被内容的 min-content 撑宽（识别提示一长卡片就变宽），
   minmax(0,1fr) 锁死列宽，让内部文字省略号接管。 */
.cert-card-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.cert-card-row .health-card { margin-top: 0; grid-column: auto; min-width: 0; }
@media (min-width: 1280px) {
  .cert-card-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .cert-card-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* 识别提示：不允许撑破卡片，超长省略（全文悬停 title 可见） */
.redcross-ocr-hint { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 小屏下证件卡片改为上下排列 */
@media (max-width: 1024px) {
  #empForm .health-card { grid-column: 1 / -1; }
  .cert-card-row { grid-template-columns: minmax(0, 1fr); }
}

/* 底部其他证件桶（健康证 / 其他证件） */
.cert-extra-group { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #e2e8f0; }
.cert-extra-group:first-child { border-top: none; padding-top: 0; }
.cert-extra-title { font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.cert-other-list { display: flex; flex-direction: column; gap: 3px; margin-bottom: 5px; }
.cert-other-item { display: flex; align-items: center; gap: 6px; padding: 3px 5px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; font-size: 11px; }
.cert-other-item .cert-actions { margin-left: auto; }
.cert-expiry-label { font-size: 11px; color: #475569; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.cert-expiry-label input[type="date"] { border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 4px; font-size: 11px; color: #334155; width: auto; min-width: 92px; height: 24px; }

/* 系统设置 */
.setting-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 6px; }
.setting-label { font-size: 14px; color: #374151; min-width: 110px; }
.setting-sel { flex: 1; }
.setting-note { font-size: 12px; color: #6b7280; line-height: 1.7; background: #f8fafc; border: 1px solid #eef0f3; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.setting-note code { background: #eef2ff; color: #4338ca; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* 统计报表 / 操作日志 */
.stats-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.stats-tabs .tab { padding: 7px 14px; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; color: #374151; }
.stats-tabs .tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.stats-summary { font-size: 13px; color: #374151; margin-bottom: 10px; line-height: 1.8; }
.stats-summary b { color: #2563eb; }
.warn { color: #dc2626; font-weight: 600; }
#logTbl th, #logTbl td, #deptTbl th, #deptTbl td, #contractTbl th, #contractTbl td, #retireTbl th, #retireTbl td { padding: 8px 10px; font-size: 13px; }
#deptTbl td:first-child, #contractTbl td:first-child, #retireTbl td:first-child, #logTbl td:nth-child(5) { font-weight: 500; }

/* 小屏电脑/平板：筛选面板 2 列 */
@media (max-width: 1024px) {
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机端适配 */
@media (max-width: 640px) {
  .modal { padding: 8px; align-items: flex-end; }
  .modal-card { width: 100%; max-height: 96vh; padding: 16px; border-radius: 12px 12px 0 0; }
  .section-grid { grid-template-columns: 1fr; }
  .section-title { position: sticky; top: 0; background: #fafbfc; z-index: 1; }
  .modal-actions { flex-direction: column-reverse; gap: 8px; margin-top: 14px; }
  .modal-actions button { width: 100%; padding: 10px; }
  .idcard-sides { flex-direction: column; }
  .filter-grid { grid-template-columns: 1fr; }
  .detail-header { flex-wrap: wrap; padding: 8px 12px; }
  .detail-header h2 { width: 100%; order: 3; font-size: 15px; }
  .detail-actions { flex-direction: column-reverse; padding: 8px 12px; }
  .detail-actions button { width: 100%; }
  .detail-body { padding: 8px 12px 12px; }
  #detailPage #empForm { padding: 8px 12px 12px; }
}

/* 小屏电脑/平板：弹窗适当收窄，仍保持两列 */
@media (min-width: 641px) and (max-width: 820px) {
  .modal-card { width: 680px; }
}

/* 用户与权限：角色列下的「系统权限」摘要副行 */
.role-perm { font-size: 11px; color: #9ca3af; margin-top: 3px; line-height: 1.45; }

/* ---------- 薪资核算 ---------- */
.pay-filter { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid #eef0f3; flex-wrap: wrap; }
.pay-filter input, .pay-filter select { padding: 5px 7px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; min-width: 0; }
.pay-filter select { flex: 1; min-width: 110px; }
.pay-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pay-tab {
  padding: 6px 14px; border: 1px solid #d1d5db; background: #fff; border-radius: 999px;
  font-size: 12px; color: #4b5563; cursor: pointer;
}
.pay-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.pay-pane { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.pay-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pay-sheet-head b { font-size: 14px; color: #111827; }
.pay-sheet-sub { font-size: 12px; color: #6b7280; }
.pay-status { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: #f1f5f9; color: #475569; }
.pay-status.running { background: #fff7ed; color: #b45309; }
.pay-status.approved { background: #ecfdf5; color: #15803d; }
.pay-status.rejected { background: #fef2f2; color: #b91c1c; }
.pay-table-wrap { overflow: auto; max-height: 520px; border: 1px solid #e5e7eb; border-radius: 8px; }
.pay-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.pay-table th, .pay-table td { border-bottom: 1px solid #eef0f3; padding: 6px 8px; white-space: nowrap; text-align: left; }
.pay-table thead th { position: sticky; top: 0; background: #f8fafc; z-index: 2; font-weight: 600; color: #374151; }
.pay-table tbody tr:hover { background: #f9fafb; }
.pay-table.compact th, .pay-table.compact td { padding: 3px 4px; }
.pay-table.compact input, .pay-table.compact select { padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 5px; font-size: 12px; width: 100%; min-width: 80px; }
.pay-idx { color: #9ca3af; width: 34px; }
.pay-name { font-weight: 600; color: #111827; }
.pay-cell.total { font-weight: 700; color: #111827; background: #f8fafc; }
.pay-cell-lock { color: #9ca3af; }
.pay-input { width: 100%; min-width: 84px; padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 5px; font-size: 12px; text-align: right; }
.pay-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.pay-empty-row { text-align: center; color: #9ca3af; padding: 16px; }
.pay-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 400; }
.pay-tag.formula { background: #eff6ff; color: #2563eb; }
.pay-tag.total { background: #f5f3ff; color: #7c3aed; }
.pay-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.pay-tpl-layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.pay-tpl-layout .wf-def-list { max-height: 460px; overflow: auto; }
.pay-tpl-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pay-tpl-meta label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.pay-tpl-meta input, .pay-tpl-meta select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.pay-tpl-editor .wf-hint code { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: 1px 5px; }
.pay-calc-head { margin-bottom: 10px; }
.pay-calc-head label { display: inline-flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.pay-calc-head select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; min-width: 220px; }
.pay-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pay-chip { display: inline-flex; align-items: center; gap: 4px; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 3px 6px 3px 10px; font-size: 12px; }
.pay-chip-x { border: none; background: transparent; color: #1d4ed8; cursor: pointer; font-size: 13px; line-height: 1; padding: 0 2px; }
.pay-chip-scope { border: 1px solid #bfdbfe; background: #fff; color: #1d4ed8; border-radius: 6px; font-size: 11px; padding: 1px 2px; margin: 0 2px; max-width: 110px; cursor: pointer; }
.pay-calc-pick { position: relative; margin-top: 12px; }
.pay-calc-pick input { width: 260px; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.pay-calc-pick .wf-suggest { right: auto; left: 0; }
.pay-empty { color: #9ca3af; font-size: 13px; }

/* ---------- 部门管理 ---------- */
.dept-actions { display: flex; gap: 8px; margin-left: auto; }
.dept-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.dept-tree-panel { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 10px; }
.dept-tree-head { font-size: 12px; color: #6b7280; font-weight: 600; margin-bottom: 8px; padding: 0 4px; }
.dept-tree { max-height: 62vh; overflow: auto; }
.dept-node { margin: 2px 0; }
.dept-children { margin-left: 18px; border-left: 1px dashed #e5e7eb; padding-left: 6px; }
.dept-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.dept-row:hover { background: #f3f4f6; }
.dept-row.sel { background: #e0edff; outline: 1px solid #93c5fd; }
.dept-name { font-size: 13px; font-weight: 600; color: #1f2937; }
.dept-count { margin-left: auto; font-size: 11px; color: #9ca3af; }
.dept-flag { font-size: 10px; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 1px 5px; }
.dept-detail-panel { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 16px; }
.dept-detail h3 { margin: 0 0 6px; font-size: 16px; }
.dept-meta { font-size: 12px; color: #6b7280; margin: 0 0 12px; }
.dept-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dept-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.dept-form input[type=text], .dept-form input[type=number], .dept-form select { padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.dept-check { flex-direction: row !important; align-items: center; gap: 6px !important; }
.dept-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 4px; }
.dept-merge-form { border: 1px solid #fca5a5; background: #fff5f5; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.dept-merge-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.dept-merge-form select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; }
.dept-pos-block { margin-top: 18px; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.dept-pos-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.dept-pos-actions { display: flex; gap: 8px; }
.dept-pos-list { display: flex; flex-direction: column; gap: 6px; }
.dept-pos-item { display: flex; align-items: center; justify-content: space-between; border: 1px solid #eef2f7; border-radius: 8px; padding: 8px 10px; }
.dept-pos-main { display: flex; align-items: center; gap: 8px; }
.dept-pos-main code { font-size: 11px; color: #1d4ed8; background: #eff6ff; border-radius: 4px; padding: 1px 5px; }
.dept-pos-count { font-size: 11px; color: #9ca3af; }
.dept-pos-ops { display: flex; gap: 6px; }
.dept-pos-form { border: 1px solid #dbeafe; background: #f8fbff; border-radius: 8px; padding: 10px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dept-pos-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #4b5563; }
.dept-pos-form input { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; }
.dept-pos-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.dept-pos-err { grid-column: 1 / -1; color: #dc2626; font-size: 12px; }
.dept-pos-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.dept-pos-table th, .dept-pos-table td { padding: 6px 8px; border-bottom: 1px solid #f0f1f4; text-align: left; vertical-align: middle; }
.dept-pos-table th { background: #f9fafb; font-weight: 600; color: #374151; }
.dept-pos-table td input { width: 100%; padding: 4px 6px; font-size: 12px; }
.dept-pos-table td button.small { padding: 3px 8px; }
.dept-pos-table td .dp-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.dept-pos-subtitle { font-size: 12px; color: #6b7280; margin: 12px 0 4px; }
.dp-inherited-tag { display: inline-block; margin-top: 4px; font-size: 11px; color: #2563eb; background: #eff6ff; padding: 1px 5px; border-radius: 3px; }
.dp-inherited-note { font-size: 11px; color: #9ca3af; }
.dp-readonly-val { display: inline-block; padding: 4px 0; font-size: 12px; color: #6b7280; word-break: break-all; }
.dp-name-readonly { font-weight: 600; color: #374151; }
.dp-headcount-split { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; }
.dp-headcount-split .dp-hc-own { color: #9ca3af; }
.dp-headcount-split .dp-hc-other { color: #2563eb; }
.dp-headcount-split .dp-hc-sep { display: none; }
.dp-headcount-extra { font-size: 11px; color: #6b7280; margin-top: 2px; }
#deptPosAddBox { margin-bottom: 8px; }
#deptToggleUntagged { font-size: 12px; }

/* 导入预览：待处理清单 */
.import-issues-head {
  position: sticky; top: 0; z-index: 2;
  background: #fff; padding: 10px 12px 8px;
  border-bottom: 1px solid #e2e8f0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.import-issues-head .ii-title { font-weight: 600; color: #1f2937; font-size: 13px; }
.import-issues-head .ii-tip { color: #6b7280; font-size: 11px; }
.import-issues { padding: 6px 8px 12px; }
.import-issue-group { border-radius: 6px; padding: 0; margin-bottom: 8px; }
.import-issue-group:last-child { margin-bottom: 0; }
.import-issue-group .iig-header {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; font-size: 13px; font-weight: 600;
  border-radius: 6px 6px 0 0;
}
.import-issue-group .iig-list { margin: 0; padding: 4px 0; list-style: none; border: 1px solid; border-top: none; border-radius: 0 0 6px 6px; }
.iig-err .iig-header { background: #fef2f2; color: #991b1b; }
.iig-err .iig-list { border-color: #fecaca; background: #fff7f7; }
.iig-upd .iig-header { background: #eff6ff; color: #1d4ed8; }
.iig-upd .iig-list { border-color: #bfdbfe; background: #f8faff; }
.iig-add .iig-header { background: #f0fdf4; color: #166534; }
.iig-add .iig-list { border-color: #bbf7d0; background: #f7fef9; }
.iig-skip .iig-header { background: #f8fafc; color: #475569; }
.iig-skip .iig-list { border-color: #e2e8f0; background: #fff; }
.iig-header .iig-count { font-size: 12px; font-weight: 500; color: inherit; opacity: .8; }
.iig-header .iig-toggle {
  margin-left: auto; font-size: 11px; padding: 2px 8px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.08); border-radius: 4px; cursor: pointer;
}
.iig-header .iig-toggle:hover { background: rgba(255,255,255,.9); }
.ii-row {
  display: grid; grid-template-columns: 22px minmax(80px, auto) minmax(0, 1fr);
  align-items: start; gap: 8px; padding: 6px 12px; font-size: 12px; color: #1f2937;
  border-top: 1px dashed #eef2f7;
}
.ii-row:first-child { border-top: none; }
.ii-row .ii-check { padding-top: 2px; }
.ii-row .ii-check input { width: 16px; height: 16px; cursor: pointer; }
.ii-row .ii-name { font-weight: 600; color: #0f172a; }
.ii-row .ii-meta { color: #64748b; font-size: 11px; }
.ii-row .ii-meta .iig-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid #cbd5e1; border-radius: 3px; color: #334155; background: #f8fafc; font-size: 11px; line-height: 16px; }
.ii-row .ii-info { color: #475569; line-height: 1.5; word-break: break-all; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.ii-row .ii-info .ii-err { color: #b91c1c; font-weight: 600; }
.ii-row .ii-info .ii-chg-key { color: #1d4ed8; font-weight: 600; }
.ii-row .ii-info .ii-chg-sep { color: #94a3b8; margin: 0 4px; }
.ii-row .ii-info .ii-chg-old { color: #475569; text-decoration: line-through; background: #fee2e2; padding: 0 3px; border-radius: 3px; }
.ii-row .ii-info .ii-chg-new { color: #166534; background: #dcfce7; padding: 0 3px; border-radius: 3px; }
.iig-empty { padding: 18px; text-align: center; color: #16a34a; font-size: 13px; }
.ii-row.ii-flash { animation: iiFlash 1.5s ease-out 1; }
@keyframes iiFlash { 0% { background: #fef9c3; } 100% { background: transparent; } }
importTr.flash { animation: rowFlash 1.2s ease-out 1; }
@keyframes rowFlash { 0% { background: #fef9c3; } 100% { background: transparent; } }
#importTableSection { padding: 0; }
#importTableSection > summary { outline: none; }
#importTableSection[open] > summary { border-bottom: 1px solid #e2e8f0; }
#importTableSection > summary::-webkit-details-marker { display: none; }
#importTableSection > summary > span > span:first-child {
  display: inline-block; transition: transform .15s;
}
#importTableSection[open] > summary > span > span:first-child { transform: rotate(90deg); }
@media (max-width: 860px) { .dept-layout { grid-template-columns: 1fr; } .dept-form, .dept-pos-form { grid-template-columns: 1fr; } .dept-pos-table { display: block; overflow-x: auto; } }

/* ---------- 跨部门任职编辑区（2026-09-02）---------- */
.assign-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.assign-empty { color: #94a3b8; font-size: 13px; padding: 6px 0; }
.assign-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main acts" "sub acts"; gap: 2px 12px; align-items: center;
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; background: #f8fafc; }
.assign-row.is-left { background: #fff7f7; border-color: #fecaca; }
.assign-main { grid-area: main; font-size: 14px; }
.assign-sub { grid-area: sub; font-size: 12px; color: #64748b; }
.assign-acts { grid-area: acts; display: flex; gap: 8px; }
.assign-tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; margin-left: 4px; vertical-align: middle; }
.assign-tag.active { background: #dcfce7; color: #166534; }
.assign-tag.left { background: #fee2e2; color: #991b1b; }
.assign-tag.paid { background: #dbeafe; color: #1e40af; }
.assign-tag.nopaid { background: #f1f5f9; color: #64748b; }
.assign-tag.main { background: #fef3c7; color: #92400e; }
.assign-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.assign-dept { min-width: 140px; }
.assign-pos { min-width: 120px; }
.assign-err { color: #b91c1c; font-size: 12px; margin-top: 6px; min-height: 16px; }

/* 任职编辑区补充样式（2026-09-02）：提示语、加号按钮、控件宽度不被全局 width:100% 拉满 */
.assign-hint { font-size: 12px; color: #64748b; background: #f8fafc; border-left: 3px solid #cbd5e1;
  padding: 6px 10px; border-radius: 0 6px 6px 0; margin-bottom: 8px; line-height: 1.6; }
button.btn-sm { padding: 3px 10px; font-size: 12px; background: #2563eb; color: #fff; border: none; border-radius: 4px; }
button.btn-sm:hover { background: #1d4ed8; }
.assign-add input, .assign-add select { width: auto; flex: 0 0 auto; }
.assign-add label.inline input { width: auto; }
.assign-dept { min-width: 150px; }
.assign-pos { min-width: 130px; }
.dept-multi-tip { font-size: 11px; color: #64748b; margin-top: 3px; line-height: 1.4; }
.dept-multi-tip button.link { font-size: 11px; padding: 0 2px; }
.assign-flash { animation: assignFlash 1.4s ease-out; }
@keyframes assignFlash {
  0%   { box-shadow: 0 0 0 3px #fde68a; background: #fffbeb; }
  100% { box-shadow: 0 0 0 3px transparent; background: transparent; }
}

/* ---------- 表单选项维护（部门管理页，2026-09-03 级联下拉） ---------- */
.dept-dict-box { margin-top: 10px; }
.dict-row { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.dict-row .dict-label { flex: 0 0 150px; font-size: 13px; font-weight: 600; padding-top: 6px; }
.dict-row .dict-text { flex: 1 1 320px; min-width: 240px; border: 1px solid var(--border, #d1d5db); border-radius: 6px; padding: 6px 8px; font-size: 12px; line-height: 1.7; font-family: inherit; resize: vertical; }
.dict-row .dict-parent { flex: 0 0 190px; border: 1px solid var(--border, #d1d5db); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.dict-row .dict-save { flex: 0 0 auto; }
.dict-row .dict-msg { font-size: 12px; align-self: center; }
.dict-row.dict-merge-form { background: var(--panel-2, #f9fafb); border: 1px dashed var(--border, #d1d5db); border-radius: 6px; padding: 6px 8px; }
.dict-row.dict-merge-form .dict-from { flex: 0 0 220px; }
.dict-row.dict-merge-form .dict-to { flex: 0 1 240px; min-width: 180px; }
.dict-mgr-sel { flex: 1 1 340px; min-width: 260px; min-height: 140px; border: 1px solid var(--border, #d1d5db); border-radius: 6px; padding: 4px 6px; font-size: 13px; font-family: inherit; }
.dept-locked { color: #9ca3af; font-size: 12px; }
.dict-mgr-wrap { flex: 1 1 340px; min-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.dict-mgr-search { border: 1px solid var(--border, #d1d5db); border-radius: 6px; padding: 6px 8px; font-size: 13px; font-family: inherit; }

/* 角色权限矩阵（2026-09-04 动态角色） */
.role-matrix { border-collapse: collapse; width: 100%; font-size: 12.5px; background: #fff; }
.role-matrix th, .role-matrix td { border: 1px solid #e5e7eb; padding: 5px 8px; text-align: left; white-space: nowrap; }
.role-matrix thead th { background: #f3f4f6; font-weight: 600; color: #374151; position: sticky; top: 0; }
.role-matrix tbody tr:hover { background: #f9fafb; }
.role-matrix select, .role-matrix input[data-f="name"] { font-size: 12.5px; padding: 3px 4px; font-family: inherit; }
.role-tag { display: inline-block; font-size: 10.5px; padding: 0 5px; border-radius: 8px; background: #e5e7eb; color: #4b5563; vertical-align: middle; }
.role-tag.custom { background: #dbeafe; color: #1d4ed8; }
.role-tag.sys { background: #fef3c7; color: #92400e; }

/* ===== 数据看板（dashboard.js）===== */
.dash-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.dash-tabs .tab { padding: 7px 16px; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; color: #374151; }
.dash-tabs .tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.dash-loading, .dash-empty, .dash-err { color: #6b7280; font-size: 13px; padding: 24px; text-align: center; }
.dash-err { color: #dc2626; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dash-kpi { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-kpi-v { font-size: 26px; font-weight: 700; line-height: 1.1; }
.dash-kpi-l { font-size: 12.5px; color: #4b5563; margin-top: 4px; }
.dash-kpi-s { font-size: 11.5px; color: #9ca3af; margin-top: 2px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.dash-card { background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.dash-card-h { font-size: 13px; font-weight: 600; color: #111827; margin-bottom: 10px; }
.dash-card-b { min-height: 40px; }
.dash-card-f { margin-top: 8px; }
.dash-note { font-size: 12px; color: #6b7280; line-height: 1.6; margin-top: 8px; }
.dash-note b { color: #dc2626; }
.dash-tbl { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.dash-tbl th, .dash-tbl td { border: 1px solid #e5e7eb; padding: 6px 9px; text-align: left; }
.dash-tbl thead th { background: #f3f4f6; font-weight: 600; color: #374151; }
.dash-tbl tbody tr:hover { background: #f9fafb; }
.dash-tbl .c-red { color: #dc2626; font-weight: 600; }
.dept-tbl { font-size: 12px; }
.dept-tbl .row-risk { background: #fef2f2; }
.dept-tbl .row-risk:hover { background: #fee2e2; }
.tag-risk { display: inline-block; font-size: 10px; padding: 1px 5px; border-radius: 8px; background: #dc2626; color: #fff; vertical-align: middle; }
.hbar { display: block; width: 100%; }
.hbar rect { opacity: .85; }
.hbar-l { font-size: 11.5px; fill: #374151; }
.hbar-v { font-size: 11px; fill: #6b7280; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut-wrap svg { width: 130px; flex: 0 0 auto; }
.donut-n { font-size: 22px; font-weight: 700; fill: #111827; text-anchor: middle; }
.donut-t { font-size: 10px; fill: #9ca3af; text-anchor: middle; }
.lg-box { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #4b5563; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.lg b { color: #111827; }
/* 人事看板下钻（#296）：可点条目/图例 */
.hbar-row:hover rect { opacity: 1; stroke: #1e293b; stroke-width: 1; }
.hbar-row:hover .hbar-l { fill: #1d4ed8; font-weight: 700; }
.lg-link { cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.lg-link:hover { background: #eef2ff; color: #1d4ed8; }
/* 财务/部门看板：可点行与可点单元格（#298） */
.dash-tbl tr.row-link { cursor: pointer; }
.dash-tbl tr.row-link:hover { background: #f0f7ff; }
.cell-lnk { color: #1d4ed8; text-decoration: none; border-bottom: 1px dashed #93c5fd; cursor: pointer; }
.cell-lnk:hover { color: #1e40af; border-bottom-color: #1d4ed8; }
.dash-tip { font-size: 11px; font-weight: 400; color: #94a3b8; margin-left: 8px; }
/* 人事看板筛选条（#297）：单位/部门/合同窗口/退休窗口 */
.dash-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; padding: 10px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.dash-filterbar label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #475569; }
.dash-filterbar select { padding: 5px 8px; font-size: 12.5px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #1f2937; max-width: 220px; }
.dash-filterbar select:focus { outline: none; border-color: #1d4ed8; }
.dash-freset { padding: 5px 12px; font-size: 12.5px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #475569; cursor: pointer; }
.dash-freset:hover { background: #eef2ff; color: #1d4ed8; border-color: #1d4ed8; }
.dash-ftag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 8px; background: #eef2ff; color: #1d4ed8; font-size: 11px; }
.stk-bar { display: flex; height: 22px; border-radius: 5px; overflow: hidden; background: #eef2f7; margin-bottom: 10px; }
.stk-seg { height: 100%; min-width: 2px; }
.hbar-cell { width: 120px; }
.mini-bar { height: 8px; background: #2563eb; border-radius: 4px; }

/* ===== 2026-09-23 看板改版：社保/意外险分列 + 历史月推算（#371/#372）===== */
.dash-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.dash-grid2 .dash-card { margin: 0; }
.dash-segnums { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.segnum { font-size: 11.5px; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px 9px; }
.segnum b { color: #111827; font-size: 13px; }
.segnum.ok b { color: #16a34a; } .segnum.bad b { color: #dc2626; } .segnum.mid b { color: #1d4ed8; } .segnum.mut b { color: #94a3b8; }
/* KPI 子文案内联徽标（本月入职·含当月离职） */
.kpi-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 8px; font-size: 10.5px; font-weight: 600; }
.kpi-badge-warn { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
/* 历史月切换条 + 导入导出 */
.dash-historybar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.dash-historybar-l { font-size: 12px; color: #64748b; }
.dash-historybar label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #475569; }
.dash-historybar select { padding: 5px 8px; font-size: 12.5px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #1f2937; }
.dash-historybar select:focus { outline: none; border-color: #1d4ed8; }
.dash-hbtn { padding: 5px 12px; font-size: 12.5px; border: 1px solid #1d4ed8; border-radius: 6px; background: #1d4ed8; color: #fff; cursor: pointer; }
.dash-hbtn:hover { background: #1e40af; }
.dash-hbtn-ghost { background: #fff; color: #475569; border-color: #cbd5e1; }
.dash-hbtn-ghost:hover { background: #f1f5f9; color: #dc2626; border-color: #fca5a5; }
.dash-hfile { cursor: pointer; font-size: 12.5px; color: #1d4ed8; user-select: none; }
.dash-hcomp { font-size: 11px; color: #c2410c; margin-left: 8px; }
.dash-historycard .dash-grid2 { grid-template-columns: 1fr; }
.dash-historycard .dash-card { margin-bottom: 10px; }
.dash-historycard .dash-card:last-child { margin-bottom: 0; }


/* ---------- 我的（普通员工个人中心 #270） ---------- */
.my-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.my-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; }
.my-card-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: #111827; }

/* ===== 生日关怀（2026-09-23 #367）===== */
.my-birthday-card { background: linear-gradient(135deg, #fff7ed 0%, #fff 60%); border-color: #fed7aa; }
.bday-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bday-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #fffdf7; border: 1px solid #fde9cf; border-radius: 8px; }
.bday-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.bday-name { font-weight: 600; color: #1f2937; }
.bday-mmdd { color: #ea580c; font-variant-numeric: tabular-nums; font-weight: 600; }
.bday-today { background: #fb923c; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
.bday-dept { color: #9ca3af; font-size: 12px; }
.bday-wc { color: #d97706; font-size: 12px; background: #ffedd5; padding: 1px 6px; border-radius: 10px; }
.bday-setting { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; border-top: 1px dashed #fde9cf; padding-top: 10px; }
.bday-setting label { color: #6b7280; }
.bday-setting select { padding: 4px 8px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; background: #fff; }
.bday-vis-tip { color: #9ca3af; font-size: 12px; }
.bday-wish-btn { white-space: nowrap; }

/* 祝福墙弹层 */
.bday-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 200; }
.bday-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.bday-modal-head { font-weight: 700; font-size: 15px; padding: 14px 16px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.bday-modal-close { color: #9ca3af; font-size: 20px; text-decoration: none; line-height: 1; }
.bday-modal-close:hover { color: #374151; }
.bday-modal-list { padding: 12px 16px; overflow-y: auto; flex: 1; min-height: 80px; max-height: 50vh; }
.bday-wish-item { padding: 8px 0; border-bottom: 1px dashed #f1f5f9; }
.bday-wish-item:last-child { border-bottom: none; }
.bday-wish-from { font-weight: 600; font-size: 13px; color: #1f2937; }
.bday-wish-msg { font-size: 13px; color: #374151; margin: 2px 0; white-space: pre-wrap; word-break: break-word; }
.bday-wish-time { font-size: 11px; color: #9ca3af; }
.bday-modal-compose { border-top: 1px solid #f1f5f9; padding: 12px 16px; }
.bday-modal-compose textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; box-sizing: border-box; }
.bday-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.bday-err { color: #dc2626; font-size: 12px; flex: 1; }
.bday-modal-foot .primary { white-space: nowrap; }
.my-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #f0f2f5; font-size: 13px; }
.my-row:last-of-type { border-bottom: none; }
.my-k { flex: 0 0 110px; color: #6b7280; }
.my-v { flex: 1; color: #111827; word-break: break-all; }
.my-tip { margin-top: 8px; font-size: 12px; color: #9ca3af; }
.my-empty { padding: 18px 0; text-align: center; color: #9ca3af; font-size: 13px; background: #f9fafb; border-radius: 8px; }
.warn-text { color: #dc2626; font-weight: 600; }

/* ---------- 个人中心内联编辑（#271 二轮：值槽固定宽 → 按钮位置恒定） ---------- */
.profile-info b { display: inline-block; min-width: 64px; vertical-align: middle; }
.pf-val { display: inline-block; width: 160px; vertical-align: middle; }
input.pf-val { padding: 2px 6px; box-sizing: border-box; }
.pf-mini { padding: 2px 10px; font-size: 12px; white-space: nowrap; vertical-align: middle; margin-left: 8px; }
.pf-err { color: #dc2626; font-size: 12px; margin-left: 6px; }

/* 更多高级搜索折叠区（#280）：与常用筛选区做视觉分隔 */
.filter-grid.adv { margin-top: 8px; padding-top: 14px; border-top: 1px dashed #d1d5db; }
#advFilterBtn { margin-right: auto; }

/* 筛选区多选下拉与 input/select 同尺寸同字号（#285，视觉统一） */
.filter-item .ms-host .ms-trigger { min-height: 26px; height: 26px; padding: 2px 8px; font-size: 12px; border-radius: 4px; }
.filter-item .ms-host .ms-trigger-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-item .ms-host .ms-trigger-count { font-size: 11px; padding: 0 7px; line-height: 1.4; }
.filter-item .ms-host .ms-trigger-arrow { font-size: 11px; }
.filter-item .ms-host .ms-search { font-size: 12px; padding: 4px 8px; }
.filter-item .ms-host .ms-item { font-size: 12px; padding: 5px 10px; }
.filter-item .ms-host .ms-panel { max-height: 260px; z-index: 80; }

/* 看板卡片下钻（#287）：可点卡片 + 名单弹层 */
.dash-kpi.kpi-link { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.dash-kpi.kpi-link:hover { box-shadow: 0 3px 12px rgba(29,78,216,.18); transform: translateY(-1px); }
.kpi-more { font-size: 11px; color: #1d4ed8; }
.drill-lnk { color: #1d4ed8; text-decoration: underline; cursor: pointer; }
#drillMask { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200; display: flex; align-items: center; justify-content: center; }
.drill-panel { background: #fff; border-radius: 12px; width: min(760px, 92vw); max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.drill-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e5e7eb; font-size: 15px; }
.drill-total { color: #dc2626; font-weight: 600; }
.drill-close { margin-left: auto; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; padding: 4px 12px; cursor: pointer; font-size: 12.5px; }
.drill-close:hover { background: #f3f4f6; }
.drill-depts { padding: 10px 18px; border-bottom: 1px dashed #e5e7eb; font-size: 12.5px; line-height: 2; }
.drill-depts-l { color: #6b7280; }
.drill-chip { display: inline-block; background: #eff6ff; color: #1e40af; border-radius: 999px; padding: 2px 10px; margin: 2px 6px 2px 0; }
.drill-chip b { color: #dc2626; }
.drill-body { overflow: auto; padding: 0 18px; flex: 1; }
.drill-foot { padding: 8px 18px; border-top: 1px solid #e5e7eb; color: #9ca3af; font-size: 12px; }
.drill-emp { color: #1d4ed8; text-decoration: underline; cursor: pointer; }

/* 下钻名单：部门 chips 可点筛选 + 行内查看/编辑（#288，名单类 UI 通用规范） */
.drill-chip { cursor: pointer; user-select: none; }
.drill-chip:hover { background: #dbeafe; }
.drill-chip.active { background: #1d4ed8; color: #fff; }
.drill-chip.active b { color: #fff; }
.drill-ops { white-space: nowrap; }
.drill-op { display: inline-block; font-size: 12px; border-radius: 4px; padding: 1px 8px; margin-right: 4px; cursor: pointer; }
.drill-op.view { color: #1d4ed8; background: #eff6ff; }
.drill-op.view:hover { background: #dbeafe; }
.drill-op.edit { color: #b45309; background: #fef3c7; }
.drill-op.edit:hover { background: #fde68a; }

/* ---------- 操作日志：员工「我的档案变动」时间线（2026-09-10） ---------- */
.mine-day { font-size: 12px; font-weight: 500; color: #6b7280; margin: 14px 0 8px; }
.mine-tl { border-left: 2px solid #e5e7eb; padding-left: 16px; display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.mine-item { position: relative; }
.mine-item::before { content: ''; position: absolute; left: -21px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #93c5fd; }
.mine-head { font-size: 13px; color: #374151; }
.mine-head b { font-weight: 500; color: #111827; }
.mine-act { margin-left: 6px; font-size: 12px; color: #1d4ed8; background: #eff6ff; border-radius: 4px; padding: 1px 8px; }
.mine-line { font-size: 12px; color: #6b7280; margin-top: 3px; word-break: break-all; }
.mine-time { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.imp-detail-tr > td { padding: 8px 12px !important; background: #f8fafc; }
.imp-detail-tbl th { font-weight: 500; color: #374151; }
.imp-detail-tbl td { vertical-align: top; }

/* —— 我的证照（员工自助上传，2026-09-10）—— */
.my-cert-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #f1f5f9; flex-wrap: wrap; }
.my-cert-row:last-child { border-bottom: none; }
.my-cert-name { font-size: 13px; color: #374151; min-width: 96px; }
.my-cert-val { flex: 1; min-width: 0; font-size: 13px; color: #111827; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-cert-ops { display: flex; gap: 6px; flex-shrink: 0; }
.my-cert-ops .ghost { font-size: 12px; padding: 3px 10px; }
.my-rev-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.my-rev-badge.pending { background: #fef3c7; color: #92400e; }
.my-rev-badge.rejected { background: #fee2e2; color: #b91c1c; cursor: help; }
.my-rev-badge.cancelled { background: #f3f4f6; color: #6b7280; }
.my-rev-badge.active { background: #dcfce7; color: #166534; }
.my-rev-badge.parttime { background: #dbeafe; color: #1e40af; }
/* 人员层（2026-09-17）：共享信息徽章 —— 标明该卡字段改一处会同步全部部门 */
.my-share-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: #ede9fe; color: #6d28d9; margin-left: 6px; vertical-align: 1px; }

/* 证书台账（2026-09-18）：弹层表单与选人结果列表 */
.cert-form-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.cert-form-row > label { flex: 0 0 76px; font-size: 13px; color: #374151; padding-top: 7px; }
.cert-form-row input, .cert-form-row select, .cert-form-row textarea {
  flex: 1; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.cert-emp-results { max-height: 180px; overflow: auto; border: 1px solid #e5e7eb; border-radius: 6px; margin-top: 6px; }
.cert-emp-results:empty { display: none; }
.cert-emp-item { padding: 7px 10px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #f3f4f6; }
.cert-emp-item:hover { background: #f0f9ff; }


/* ===== 审批中心（2026-09-10 改版）：统计卡 + 四页签 + 表格列表 ===== */
.ac-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 10px 0 4px; }
@media (max-width: 1000px) { .ac-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-card { background: #f8f9fb; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.ac-ic { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; font-weight: 500; color: #fff; }
.ac-ic-red { background: #dc2626; }
.ac-ic-green { background: #16a34a; }
.ac-ic-blue { background: #2563eb; }
.ac-ic-amber { background: #d97706; }
.ac-lb { font-size: 13px; color: #374151; }
.ac-sub { font-size: 11px; color: #9ca3af; }
.ac-tabs { display: flex; gap: 4px; border-bottom: 1.5px solid #e5e7eb; margin: 12px 0 0; }
.ac-tab { padding: 8px 16px; font-size: 13px; cursor: pointer; color: #6b7280; border-radius: 8px 8px 0 0; user-select: none; }
.ac-tab:hover { color: #111827; background: #f3f4f6; }
.ac-tab.on { color: #111827; font-weight: 500; background: #f8f9fb; border-bottom: 2px solid #2563eb; margin-bottom: -1.5px; }
.ac-badge { display: inline-block; min-width: 16px; text-align: center; background: #dc2626; color: #fff; font-size: 11px; border-radius: 8px; padding: 0 5px; margin-left: 5px; vertical-align: 1px; line-height: 16px; }
.ac-tbl-wrap { overflow-x: auto; }
table.ac-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 12px; }
.ac-tb th { text-align: left; font-weight: 400; color: #9ca3af; padding: 7px 8px; border-bottom: 1px solid #f0f1f4; white-space: nowrap; }
.ac-tb td { padding: 9px 8px; border-bottom: 1px solid #f5f6f8; vertical-align: middle; }
.ac-tb tr:hover td { background: #fafbfc; }
.ac-nowrap { white-space: nowrap; }
.ac-sub { color: #9ca3af; }
.ac-mini { font-size: 12px; padding: 3px 10px; }
.ac-ic span { line-height: 1; }
.ac-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #f8f9fb; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.ac-search input, .ac-search select { font-size: 12.5px; padding: 5px 9px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; color: #111827; }
.ac-sep { font-size: 12px; color: #9ca3af; }
.ac-chip { display: inline-block; font-size: 11px; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.ac-chip-green { background: #eaf3de; color: #3b6d11; }
.ac-chip-red { background: #fcebeb; color: #a32d2d; }
.ac-chip-blue { background: #e6f1fb; color: #185fa5; }
.ac-chip-amber { background: #faeeda; color: #854f0b; }
.ac-chip-purple { background: #eeedfe; color: #534ab7; }
.ac-chip-teal { background: #e1f5ee; color: #0f6e56; }
.ac-chip-gray { background: #f1efe8; color: #5f5e5a; }
.ac-pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 12px; font-size: 12.5px; color: #6b7280; }
.nav-badge { display: inline-block; min-width: 16px; text-align: center; background: #dc2626; color: #fff; font-size: 11px; border-radius: 8px; padding: 0 5px; margin-left: 6px; line-height: 16px; vertical-align: 1px; }

/* ===== 流程状态图（轨迹弹窗顶部，2026-09-10）===== */
.wfs-box { margin-top: 6px; }
.wfs-lg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: #6b7280; padding: 8px 10px; background: #f8f9fb; border-radius: 8px; margin-bottom: 8px; }
.wfs-lg span { display: inline-flex; align-items: center; gap: 5px; }
.wfs-lg i { display: inline-block; width: 14px; height: 14px; border: 1.5px solid #9ca3af; border-radius: 3px; }
.wfs-lg i.wfs-ln { height: 3px; border: none; border-radius: 0; }
.wfs-scroll { overflow-x: auto; background: #fcfcfd; border: 1px solid #f0f1f4; border-radius: 10px; padding: 8px 4px; }
/* 轨迹弹窗加宽，给状态图横向空间（图内再滚动） */
#wfModal .modal-card { width: 960px; max-width: 96vw; }

/* 证件缩略图下的审核状态行（员工详情页，#310） */
.att-rev-line { text-align: center; margin-top: 4px; font-size: 11px; }

/* ===== #316：提示中心 + 可点标题/卡片 + 可移除抄送 ===== */
.notif-bell { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 6px; padding: 9px 12px; background: #dc2626; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 13.5px; text-align: left; }
.notif-bell:hover { background: #ef4444; }
.notif-bell-ic { font-size: 15px; line-height: 1; }
.notif-bell-tx { flex: 1; }
.notif-dot { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); min-width: 17px; height: 17px; text-align: center; background: #7f1d1d; color: #fff; font-size: 10.5px; line-height: 17px; border-radius: 9px; padding: 0 4px; }
.notif-panel { position: fixed; top: 12px; left: 232px; right: auto; z-index: 1300; width: 380px; max-width: calc(100vw - 248px); max-height: 70vh; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); display: flex; flex-direction: column; overflow: hidden; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0f1f4; font-size: 13.5px; }
.notif-list { overflow-y: auto; padding: 4px 0; }
.notif-item { padding: 9px 14px; cursor: pointer; border-left: 3px solid transparent; }
.notif-item:hover { background: #f8f9fb; }
.notif-item.unread { border-left-color: #2563eb; background: #f5f9ff; }
.notif-item.unread:hover { background: #eef5ff; }
.notif-t { font-size: 13px; color: #111827; }
.notif-b { font-size: 12px; color: #374151; margin-top: 3px; word-break: break-all; }
.notif-time { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.ac-title { cursor: pointer; }
.ac-title:hover { color: #2563eb; text-decoration: underline; }
.ac-goto { cursor: pointer; transition: box-shadow .12s, transform .12s; }
.ac-goto:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); transform: translateY(-1px); }
.ac-ic-rose { background: #e11d48; }
.cc-chip { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.cc-rm { font-style: normal; cursor: pointer; font-size: 12px; opacity: .6; padding: 0 1px; }
.cc-rm:hover { opacity: 1; color: #b91c1c; }

/* ===== #317 正式单据视图（轨迹弹窗顶部）===== */
.wf-docsheet { border: 1px solid #dbe2ec; border-radius: 10px; padding: 16px 18px 14px; background: #fff; margin-bottom: 14px; }
.wf-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wf-doc-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; color: #111827; letter-spacing: 2px; padding-left: 86px; }
.wf-doc-print { flex-shrink: 0; }
.wf-doc-no { text-align: right; font-size: 12px; color: #6b7280; margin: 2px 0 8px; }
.wf-doc-sec { font-size: 12.5px; font-weight: 600; color: #374151; margin: 12px 0 6px; padding-left: 8px; border-left: 3px solid #2563eb; line-height: 1.2; }
table.wf-doc-tb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.wf-doc-tb th { width: 92px; background: #f5f8fc; color: #4b5b6e; font-weight: 500; text-align: left; padding: 7px 10px; border: 1px solid #e3eaf3; white-space: nowrap; }
table.wf-doc-tb td { padding: 7px 10px; border: 1px solid #e3eaf3; color: #111827; word-break: break-all; }
/* #329 证件更新单：将要修改的字段（原内容 → 变更为） */
table.wf-doc-chg th { width: auto; }
table.wf-doc-chg td:nth-child(2) { color: #6b7280; }
table.wf-doc-chg td:nth-child(3) { color: #185fa5; background: #f6faff; }

/* #340 修正区（输入框/说明/保存按钮）属于操作界面，不是单据凭证内容，打印/存档一律不输出 */
@media print { .wf-fix-zone { display: none !important; } }
/* #333 审批时效与批量处理 */
.ac-wait-over { color: #b91c1c; font-weight: 600; }
.ac-batch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 6px; padding: 8px 12px; background: #f8fafc; border: 1px solid #e3eaf3; border-radius: 8px; }
/* #333 单据状态横幅（已作废 / 退回补正中） */
.wf-statebar { border-radius: 8px; padding: 9px 13px; font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.wf-statebar-void { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.wf-statebar-return { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.ac-docno { color: #9ca3af; font-size: 11px; letter-spacing: .3px; }

/* 打印/存档：打印区 = 正式单据 + 审批流转意见（#318 打印含节点通过情况） */
/* 打印进行中（屏幕侧）：打印区临时移到 body 底部，先藏起来避免页面跳动 */
@media screen {
  body.wf-print-mode #wfPrintArea { visibility: hidden; }
}

@media print {
  /* #336 打印修正：原先用 visibility 隐藏其他元素（仍占布局），且打印区受详情页容器影响 → 内容偏右、右侧被裁。
     现在改为：JS 在打印前把 #wfPrintArea 临时移到 body 直接子节点，这里把其余 body 子元素 display:none，
     并强制宽度 100% + 表格布局 fixed + 允许换行，保证居中且不裁切。 */
  @page { size: A4; margin: 12mm; }
  body.wf-print-mode { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.wf-print-mode > *:not(#wfPrintArea) { display: none !important; }
  body.wf-print-mode #wfPrintArea {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  body.wf-print-mode #wfPrintArea .wf-docsheet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  body.wf-print-mode #wfPrintArea .wf-doc-tb { width: 100% !important; table-layout: fixed; }
  body.wf-print-mode #wfPrintArea .wf-doc-tb th,
  body.wf-print-mode #wfPrintArea .wf-doc-tb td {
    white-space: normal !important;
    word-break: break-word;
    font-size: 11px;
    padding: 5px 7px;
  }
  body.wf-print-mode #wfPrintArea .wf-doc-tb th { width: auto !important; }
  body.wf-print-mode #wfPrintArea .wf-doc-print,
  body.wf-print-mode #wfPrintArea .wf-ops-avatar { display: none !important; }
  body.wf-print-mode #wfPrintArea .ac-chip { border: 1px solid #d5dbe4; }
}

/* ===== #318 审批单全屏详情页 ===== */
.wfd-bar { display: flex; align-items: center; gap: 12px; padding: 10px 72px 10px 18px; background: #fff; border-bottom: 1px solid #e5e9f0; position: sticky; top: 0; z-index: 5; }
/* #342 右侧预留 72px 给全局通知铃铛（fixed 右上），避免盖住「＋加签」等末位按钮 */

/* #342b 可搜索选人下拉面板（转办/加签单选、抄送多选），样式对齐部门筛选下拉 */
.wf-combo { position: relative; }
.wf-combo-panel { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #fff; border: 1px solid #d7dee8; border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); z-index: 60; overflow: hidden; }
.wf-combo-list { max-height: 240px; overflow: auto; }
.wf-combo-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
.wf-combo-item:hover { background: #f0f6ff; }
.wf-combo-item .dept { color: #94a3b8; font-size: 12px; margin-left: auto; }
.wfd-bar-t { font-size: 15px; font-weight: 600; color: #111827; }
.wfd-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wfd-body { padding: 18px 22px 48px; max-width: 1000px; margin: 0 auto; width: 100%; box-sizing: border-box; }

/* 轨迹图折叠区（默认收起） */
.wf-trail { margin-top: 14px; border: 1px solid #e5e9f0; border-radius: 10px; background: #fff; overflow: hidden; }
.wf-trail-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 600; color: #374151; user-select: none; }
.wf-trail-head:hover { background: #f8fafc; }
.wf-trail-hint { font-weight: 400; color: #9ca3af; font-size: 12px; }
.wf-trail-body-pad, #wfTrailBody { padding: 0 14px 14px; }

/* 审批流转意见（参考 OA 流转意见，最新在上，随单据打印） */
.wf-ops { display: flex; flex-direction: column; margin-top: 4px; }
.wf-op { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px dashed #eceff3; }
.wf-op:last-child { border-bottom: none; }
.wf-op-av { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: 600; letter-spacing: 1px; }
.wf-op-main { flex: 1; min-width: 0; }
.wf-op-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wf-op-name { color: #2563eb; font-weight: 600; font-size: 13.5px; }
.wf-op-dept { color: #9ca3af; font-size: 12px; }
.wf-op-txt { font-size: 13px; color: #111827; margin-top: 3px; white-space: pre-wrap; word-break: break-all; }
.wf-op-recv { font-size: 12.5px; color: #374151; margin-top: 3px; }
.wf-op-meta { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* ===== #327 我的证照上传识别弹窗：进度步骤 / 进度条 / 识别结果 ===== */
.mycert-steps { display: flex; gap: 8px; }
.mycert-step { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 12px; color: #9ca3af; padding: 9px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; transition: all .2s; }
.mycert-step.doing { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.mycert-step.done { color: #059669; border-color: #a7f3d0; background: #ecfdf5; }
.mycert-dot { width: 18px; height: 18px; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.mycert-step.doing .mycert-dot { background: #3b82f6; color: #fff; }
.mycert-step.done .mycert-dot { background: #10b981; color: #fff; }
.mycert-bar { height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-top: 12px; position: relative; }
.mycert-bar.indet::after { content: ''; position: absolute; left: -40%; width: 40%; height: 100%; background: #3b82f6; border-radius: 3px; animation: mycertSlide 1.1s ease-in-out infinite; }
@keyframes mycertSlide { to { left: 100%; } }
.mycert-rows { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13.5px; }
.mycert-rows td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.mycert-rows tr:last-child td { border-bottom: none; }
.mycert-rows td:first-child { color: #64748b; width: 100px; }
/* ===== 财务看板：近期银行卡改动（2026-09-15）===== */.dash-bank-day { color: #64748b; text-decoration: none; padding: 2px 6px; border-radius: 6px; }.dash-bank-day.on { color: #fff; background: #1d4ed8; font-weight: 700; }
/* ===== 看板灵活数字窗口（2026-09-15）===== */
.dash-num-in { width: 70px; padding: 3px 6px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px; }
/* ===== 组织架构树（2026-09-19 重做：扁平层次 + 直接设计上级）===== */
.ot-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.ot-kpis { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
/* 排序工具条（2026-09-22）：拖拽=预览，点「保存排序」才提交；dirty=有未保存改动。
   位置在组织树头部按钮排（全部展开/折叠/新建/层级设置）内联，故不用带框盒子，轻量内联。 */
.ot-reorder-bar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ot-reorder-bar::before { content: '｜'; color: #d1d5db; margin: 0 2px; }
.ot-reorder-hint { font-size: 12px; color: #9ca3af; }
.ot-reorder-bar.dirty .ot-reorder-hint { color: #b45309; font-weight: 600; }
.ot-kpi { border-radius: 12px; padding: 12px 16px; min-width: 148px; flex: 1; background: #f8fafc; border: 1px solid #eef2f7; }
.ot-kpi.blue { background: #eff6ff; border-color: #dbeafe; }
.ot-kpi.amber { background: #fffbeb; border-color: #fde68a; }
.ot-kpi.green { background: #f0fdf4; border-color: #bbf7d0; }
.ot-kpi.purple { background: #f5f3ff; border-color: #ddd6fe; }
.ot-kpi .n { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: #1f2937; line-height: 1.1; }
.ot-kpi .n .unit { font-size: 13px; font-weight: 500; color: #6b7280; margin-left: 3px; letter-spacing: 0; }
.ot-kpi .l .sub2 { display: block; font-size: 11px; color: #9ca3af; margin-top: 3px; }
.ot-kpi.blue .n { color: #1d4ed8; }
.ot-kpi.amber .n { color: #b45309; }
.ot-kpi.green .n { color: #15803d; }
.ot-kpi .l { font-size: 12px; color: #6b7280; margin-top: 3px; }
.ot-tree-wrap { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 12px; }
.ot-tree-head { font-size: 12px; color: #6b7280; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ot-tree-btns { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ot-tree { overflow: auto; }
.ot-node { margin: 1px 0; }
.ot-node > .ot-row { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px; border-radius: 7px; cursor: pointer; position: relative; }
.ot-node > .ot-row:hover { background: #f4f6f9; }
.ot-node > .ot-row.sel { background: #eff6ff; }
.ot-node > .ot-row.sel .ot-name { color: #1d4ed8; font-weight: 600; }
.ot-node > .ot-row.sel::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #1d4ed8; }
.ot-caret { width: 12px; flex: 0 0 12px; text-align: center; color: #a9aeb8; font-size: 9px; cursor: pointer; user-select: none; transition: transform .18s; }
.ot-caret.leaf { visibility: hidden; }
/* 层级图标（部门/区域/街道/社区/办公地点/楼栋/楼层…）：固定 16px，与名称间留 2px */
.ot-ic { flex: 0 0 16px; width: 16px; text-align: center; font-size: 12px; line-height: 16px; margin-right: 2px; user-select: none; }
.ot-name { font-size: 13px; font-weight: 500; color: #4e5969; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 负责人 / 缺口 与部门名同一行（2026-09-20 用户要求，不再另起一行） */
.ot-lead { font-size: 11px; color: #86909c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; max-width: 90px; }
.ot-lead.none { color: #c0843a; }
.ot-mgl { font-size: 11px; color: #15803d; white-space: nowrap; flex: 0 0 auto; }
.ot-mgl.has { color: #b91c1c; font-weight: 600; }
.ot-sub { font-size: 11px; color: #86909c; padding: 0 8px 2px 29px; line-height: 1.5; }
.ot-missnum { color: #b91c1c; font-weight: 600; }
.ot-hc { font-size: 11px; color: #86909c; background: #f2f3f5; border-radius: 8px; padding: 1px 7px; line-height: 16px; flex-shrink: 0; font-variant-numeric: tabular-nums; margin-left: auto; }
.ot-node > .ot-row.sel .ot-hc { background: #fff; color: #1d4ed8; }
.ot-children { margin-left: 8px; border-left: 1px dashed #e5e7eb; padding-left: 4px; }
/* 右侧详情 */
.ot-detail { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 18px 20px; }
.ot-detail h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #111827; }
.ot-detail .ot-meta { font-size: 12px; color: #6b7280; margin: 0 0 16px; }
.ot-sec { margin-bottom: 18px; }
.ot-sec:last-child { margin-bottom: 0; }
.ot-sec-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.ot-sec-h .sub { font-size: 11px; color: #9ca3af; font-weight: 400; }
.ot-mgr-cur { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ot-mgr-chip { font-size: 12px; color: #374151; background: #f3f4f6; border-radius: 6px; padding: 4px 10px; }
.ot-mgr-chip.none { color: #b45309; background: #fef3c7; }
/* 成员-上级设计表 */
.ot-memb-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; color: #4b5563; }
.ot-memb-tools label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.ot-memb-tools .spacer { flex: 1; }
.ot-memb-tools select { padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 12px; }
.ot-memb-tools button { padding: 5px 12px; }
.ot-memb-list { max-height: 360px; overflow: auto; border: 1px solid #eef2f7; border-radius: 10px; }
.ot-mrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f3f4f6; }
.ot-mrow:last-child { border-bottom: none; }
.ot-mrow.miss { background: #fffbeb; }
.ot-mrow .who { flex: 1; min-width: 0; }
.ot-mrow .who .nm { font-size: 13px; font-weight: 600; color: #1f2937; display: flex; align-items: center; gap: 6px; }
.ot-mrow .who .ps { font-size: 11px; color: #9ca3af; }
.ot-mrow .tag { font-size: 10px; color: #b91c1c; background: #fee2e2; border-radius: 4px; padding: 1px 6px; flex-shrink: 0; }
.ot-mrow .sup { width: 180px; flex-shrink: 0; }
.ot-mrow .sup select { width: 100%; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 7px; font-size: 12px; background: #fff; }
.ot-mrow.miss .sup select { border-color: #f59e0b; background: #fffbeb; }
.ot-mrow .st { font-size: 11px; color: #15803d; width: 40px; text-align: center; flex-shrink: 0; }

/* 成员"查看/编辑"链接（点姓名查看、编辑直接进详情，返回回组织树） */
.ot-mrow .ot-view { color: #1f2937; font-weight: 600; text-decoration: none; }
.ot-mrow .ot-view:hover { color: #1d4ed8; text-decoration: underline; }
.ot-mrow .ot-edit { display: inline-block; margin-left: 6px; font-size: 11px; color: #1d4ed8; background: #eff6ff; border-radius: 4px; padding: 1px 6px; text-decoration: none; }
.ot-mrow .ot-edit:hover { background: #dbeafe; }
.ot-mrow .who .nm { gap: 8px; }

/* 布局列宽：左侧组织树做干净面板（名称+人数徽章），左窄右宽放花名册表格 */
.ot-layout { grid-template-columns: minmax(300px, 38%) 1fr; gap: 14px; }
.ot-layout .ot-tree { max-height: none; }
.ot-layout .ot-detail { padding: 14px 16px; }
.ot-layout .ot-detail h3 { font-size: 16px; }
.ot-layout .ot-detail .ot-meta { margin-bottom: 12px; }
.ot-layout .ot-sec { margin-bottom: 12px; }
.ot-layout .ot-sec-h { margin-bottom: 8px; }
@media (max-width: 1100px) { .ot-layout { grid-template-columns: 1fr; } }

/* 左侧"新建办公地点"输入行 */
.ot-add-row { display: flex; gap: 6px; align-items: center; margin: 8px 0 4px; padding: 8px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; }
.ot-add-row .field { flex: 1; height: 30px; }

/* 右侧非部门节点（办公地点/楼/层）操作行：改名 / 合并到 / 删除 */
.ot-node-ops { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 2px; padding: 8px 10px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; }
.ot-node-ops .field { flex: 1; min-width: 160px; height: 30px; }
.ot-node-ops .ot-ops-msg { font-size: 12px; }
button.ghost.danger { color: #dc2626; border-color: #fecaca; }
button.ghost.danger:hover { background: #fef2f2; }

/* 右侧人员花名册表格 */
.ot-roster { width: 100%; border-collapse: collapse; border: 1px solid #eef2f7; border-radius: 10px; overflow: hidden; }
.ot-roster thead th { background: #fafbfc; font-size: 11.5px; font-weight: 600; color: #86909c; text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef2f7; white-space: nowrap; }
.ot-roster tbody td { padding: 8px 10px; font-size: 12.5px; color: #4e5969; border-bottom: 1px solid #f5f6f8; white-space: nowrap; }
.ot-roster tbody tr:last-child td { border-bottom: none; }
.ot-roster tbody tr { transition: background .12s; }
.ot-roster tbody tr:hover { background: #f7faff; }
.ot-roster tbody tr.miss { background: #fffbeb; }
.ot-roster .c-name { font-weight: 600; color: #1f2937; }
.ot-roster .c-name .ot-view { color: #1f2937; font-weight: 600; text-decoration: none; }
.ot-roster .c-name .ot-view:hover { color: #1d4ed8; text-decoration: underline; }
.ot-roster .c-name .tag { margin-left: 6px; font-size: 10px; color: #b91c1c; background: #fee2e2; border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
.ot-roster .c-loc { color: #4e5969; }
.ot-roster .c-loc .ell { display: inline-block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ot-roster .c-sup { white-space: nowrap; }
.ot-roster .c-sup > * { display: inline-block; vertical-align: middle; }
.ot-roster .c-sup select { width: 140px; padding: 4px 6px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 12px; background: #fff; vertical-align: middle; }
.ot-roster tr.miss .c-sup select { border-color: #f59e0b; background: #fffbeb; }
/* 直接上级「可搜索下拉」🔍（2026-09-20） */
.ot-roster .sup-search { flex: 0 0 auto; margin-left: 4px; width: 26px; height: 26px; padding: 0; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; line-height: 1; }
.ot-roster .sup-search:hover { background: #eff6ff; border-color: #93c5fd; }
.sup-panel { position: fixed; z-index: 100; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); overflow: hidden; }
.sup-panel .sup-q { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #e5e7eb; padding: 7px 10px; font-size: 12px; outline: none; }
.sup-panel .sup-list { max-height: 260px; overflow-y: auto; }
.sup-panel .sup-item { padding: 6px 10px; font-size: 12px; color: #374151; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-panel .sup-item:hover { background: #eff6ff; color: #1d4ed8; }
.sup-panel .sup-item.cur { background: #f0f7ff; color: #1d4ed8; font-weight: 600; }
.sup-panel .sup-item[data-id=""] { color: #9ca3af; }
.sup-panel .sup-empty { padding: 8px 10px; color: #9ca3af; font-size: 12px; }
.ot-roster .c-sup .ro { color: #6b7280; }
/* 拖人进组（2026-09-20）：姓名格可拖 + 树行放置高亮 */
.ot-roster td.c-name[data-drag-emp] { cursor: grab; }
.ot-roster td.c-name[data-drag-emp]:active { cursor: grabbing; }
.ot-roster td.c-name[data-drag-emp] a.ot-view { cursor: grab; }
.ot-row.drag-over { background: #dbeafe; outline: 2px solid #3b82f6; outline-offset: -2px; border-radius: 6px; }
/* 部门顺序拖拽（2026-09-21）：⋮⋮ 手柄 + 插入位置指示线 */
.ot-drag { flex: 0 0 14px; width: 14px; height: 22px; display: flex; align-items: center; justify-content: center; color: #b6bcc9; font-size: 13px; line-height: 1; cursor: grab; border-radius: 4px; user-select: none; }
.ot-drag:hover { background: #eef2f7; color: #64748b; }
.ot-row.drop-above { box-shadow: 0 -2px 0 0 #3b82f6; }
.ot-row.drop-below { box-shadow: 0 2px 0 0 #3b82f6; }
.ot-drag-ghost { position: fixed; left: -9999px; top: -9999px; background: #1e293b; color: #fff; font-size: 12px; padding: 5px 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 9999; pointer-events: none; white-space: nowrap; }
.ot-roster .c-op .ot-edit { display: inline-block; font-size: 11px; color: #1d4ed8; background: #eff6ff; border-radius: 4px; padding: 1px 7px; text-decoration: none; }
.ot-roster .c-op .ot-edit:hover { background: #dbeafe; }
/* 在职状态胶囊 */
.ot-roster .st { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; white-space: nowrap; }
.ot-roster .st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ot-roster .st.ok { color: #15803d; background: #e8ffea; }
.ot-roster .st.prob { color: #1d4ed8; background: #eff6ff; }
.ot-roster .st.part { color: #b45309; background: #fff7e8; }

/* "拉人进来"工具行 */
.ot-pull { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.ot-pull .field { height: 30px; flex: 0 0 220px; }
.ot-pull .ot-pull-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ot-pull .ot-pull-chip { font-size: 12px; padding: 3px 9px; border-radius: 14px; background: #f3f4f6; color: #374151; cursor: pointer; border: 1px solid #e5e7eb; }
.ot-pull .ot-pull-chip:hover { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* 花名册分页条 */
.ot-pager { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.ot-pager .ot-pg-num { font-size: 12px; color: #6b7280; font-variant-numeric: tabular-nums; }
.ot-pager .ghost[disabled] { opacity: .4; cursor: not-allowed; }

/* 部门展示层级设置弹窗 */
.ot-dim-sub { font-size: 12px; color: #6b7280; margin: -8px 0 12px; line-height: 1.6; }
.ot-dim-table { width: 100%; border-collapse: collapse; border: 1px solid #eef2f7; border-radius: 10px; overflow: hidden; }
.ot-dim-table thead th { background: #fafbfc; font-size: 11.5px; font-weight: 600; color: #86909c; text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef2f7; white-space: nowrap; }
.ot-dim-table tbody td { padding: 8px 10px; font-size: 12.5px; color: #4e5969; border-bottom: 1px solid #f5f6f8; }
.ot-dim-table tbody tr:last-child td { border-bottom: none; }
.ot-dim-table tbody tr.ro { background: #fbfbfc; }
.ot-dim-table tbody tr.focus { background: #eff6ff; box-shadow: inset 3px 0 0 #1d4ed8; }
.ot-dim-table td.n { text-align: right; font-variant-numeric: tabular-nums; color: #86909c; white-space: nowrap; }
.ot-dim-table td.n.zero { color: #d0d5dd; }
.ot-dim-table td.d { font-weight: 600; color: #1f2937; white-space: nowrap; }
.ot-dim-table .lock { font-size: 10px; color: #b45309; background: #fef3c7; border-radius: 4px; padding: 1px 5px; font-weight: 400; }
.ot-dim-table .dflt { font-size: 10px; color: #6b7280; background: #f2f3f5; border-radius: 4px; padding: 1px 5px; font-weight: 400; }
.ot-dim-table td.pick { white-space: nowrap; }
.ot-dim-table td.pick label { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; font-size: 12px; color: #374151; cursor: pointer; }
.ot-dim-table td.pick label.ro { color: #a9aeb8; cursor: not-allowed; }
.ot-dim-note { font-size: 11.5px; color: #86909c; line-height: 1.7; margin: 10px 0 0; }

/* 批量导入拖放区（2026-09-23 补齐拖放交互的命中态） */
#importDropzone { transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
#importDropzone.dropzone-active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }
#importDropzone.dropzone-active > div:first-child { font-weight: 600; }

/* 更新日志页（2026-09-23）：模块筛选条 + 时间线 */
.cl-note { font-size: 12px; color: #475569; background: #f8fafc; border: 1px solid #e8eef6; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; line-height: 1.7; max-width: 1000px; }
.cl-note b { color: #1d4ed8; font-weight: 600; }
.cl-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cl-bar input { max-width: 340px; height: 30px; }
.cl-count { font-size: 12px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.cl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; color: #475569; background: #fff; border: 1px solid #e5e7eb; cursor: pointer; user-select: none; transition: border-color .15s, color .15s, background-color .15s; }
.cl-chip:hover { border-color: #bfdbfe; color: #1d4ed8; }
.cl-chip.on { background: #1e293b; border-color: #1e293b; color: #fff; font-weight: 600; }
.cl-chip-n { font-size: 11px; color: #9ca3af; font-variant-numeric: tabular-nums; }
.cl-chip.on .cl-chip-n { color: #cbd5e1; }

.cl-timeline { display: flex; flex-direction: column; gap: 22px; max-width: 1000px; }
.cl-month { display: flex; flex-direction: column; gap: 12px; }
.cl-month-title { font-size: 13px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 10px; }
.cl-month-title::after { content: ""; flex: 1; height: 1px; background: #e8ecf3; }
.cl-month-n { font-size: 11px; font-weight: 400; color: #9ca3af; }

.cl-entry { display: grid; grid-template-columns: 68px 1fr; gap: 16px; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.cl-date { font-size: 12px; color: #64748b; line-height: 1.5; }
.cl-day { display: block; font-size: 17px; font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cl-wd { font-size: 11px; color: #9ca3af; }
.cl-date.cl-today .cl-day { color: #2563eb; }

.cl-items { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cl-item { display: flex; gap: 10px; align-items: flex-start; }
.cl-mod { flex: none; margin-top: 1px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; white-space: nowrap; }
.cl-body { min-width: 0; }
.cl-text { font-size: 13px; color: #1f2937; line-height: 1.7; text-wrap: pretty; }
.cl-todo { font-size: 12px; color: #b45309; background: #fffbeb; border-left: 2px solid #fcd34d; border-radius: 0 6px 6px 0; padding: 4px 10px; margin-top: 5px; line-height: 1.6; }
.cl-todo::before { content: "提示："; font-weight: 600; }

/* 模块标签配色（与左侧菜单一一对应） */
.cl-mod[data-mod="花名册"] { background: #eff6ff; color: #1d4ed8; }
.cl-mod[data-mod="我的"] { background: #f0fdfa; color: #0f766e; }
.cl-mod[data-mod="预警提醒"] { background: #fffbeb; color: #b45309; }
.cl-mod[data-mod="审批"] { background: #eef2ff; color: #4338ca; }
.cl-mod[data-mod="数据看板"] { background: #f5f3ff; color: #6d28d9; }
.cl-mod[data-mod="附件档案"] { background: #ecfeff; color: #0e7490; }
.cl-mod[data-mod="薪资核算"] { background: #fff1f2; color: #be123c; }
.cl-mod[data-mod="组织与权限"] { background: #f1f5f9; color: #334155; }
.cl-mod[data-mod="审批流程"] { background: #f0f9ff; color: #0369a1; }
.cl-mod[data-mod="系统设置"] { background: #f5f5f4; color: #57534e; }
.cl-mod[data-mod="操作日志"] { background: #f7fee7; color: #4d7c0f; }
.cl-mod[data-mod="登录与账号"] { background: #fff7ed; color: #c2410c; }

@media (max-width: 720px) {
  .cl-entry { grid-template-columns: 1fr; gap: 8px; }
  .cl-date { display: flex; align-items: baseline; gap: 6px; }
  .cl-day { display: inline; font-size: 14px; }
}

/* ============================================================
   使用帮助页（2026-09-23）
   正文刻意比系统本身大一号（14.5px vs 12px），行高 1.8，
   面向「从没用过、也不太会用电脑」的同事。
   ============================================================ */
.hb-body { display: grid; grid-template-columns: 268px minmax(0, 1fr); padding: 0; overflow: hidden; }

/* ---- 左栏：身份切换 + 搜索 + 目录 ---- */
.hb-side { border-right: 1px solid #e8eef6; background: #fbfcfe; overflow-y: auto; padding: 18px 14px 48px; }
.hb-side-t { font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 8px; }
.hb-roles { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.hb-role { text-align: left; background: #fff; border: 1px solid #e5e7eb; color: #475569; font-size: 13px; padding: 8px 10px; border-radius: 8px; line-height: 1.4; transition: border-color .15s, color .15s, background-color .15s; }
.hb-role:hover { border-color: #bfdbfe; color: #1d4ed8; }
.hb-role.on { background: #1e293b; border-color: #1e293b; color: #fff; font-weight: 600; }
.hb-search { margin-bottom: 16px; }
.hb-search input { height: 30px; }
.hb-toc-ch { margin-bottom: 16px; }
.hb-toc-ch-t { font-size: 12px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.hb-toc-s { display: block; font-size: 13px; color: #475569; padding: 7px 10px; border-radius: 6px; cursor: pointer; line-height: 1.5; }
.hb-toc-s:hover { background: #eef4ff; color: #1d4ed8; }
.hb-toc-s.on { background: #2563eb; color: #fff; font-weight: 600; }
.hb-toc-empty { font-size: 13px; color: #94a3b8; line-height: 1.8; }

/* ---- 右栏：正文 ---- */
.hb-main { overflow-y: auto; padding: 22px 32px 80px; }
.hb-article { max-width: 840px; }
.hb-rolebar { display: inline-block; font-size: 12px; color: #64748b; background: #eef4ff; border: 1px solid #dbe7fb; border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.hb-rolebar span { color: #1d4ed8; font-weight: 700; margin-left: 6px; }
.hb-h1 { font-size: 22px; font-weight: 700; color: #0f172a; margin: 0 0 18px; letter-spacing: -.01em; }
.hb-h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 30px 0 12px; padding-top: 18px; border-top: 1px solid #eef2f7; }
.hb-content { font-size: 14.5px; line-height: 1.8; color: #1f2937; }
.hb-content p { margin: 0 0 12px; text-wrap: pretty; }
.hb-content ul, .hb-content ol { margin: 0 0 12px; padding-left: 22px; }
.hb-content li { margin-bottom: 6px; }
.hb-content b { color: #0f172a; }
.hb-lead { font-size: 15.5px; color: #0f172a; line-height: 1.75; margin-bottom: 18px !important; }
.hb-muted { color: #94a3b8; font-size: 12.5px; }

/* ---- 分步 ---- */
.hb-step { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px dashed #eef2f7; }
.hb-step-n { font-size: 12.5px; font-weight: 700; color: #fff; background: #2563eb; border-radius: 6px; text-align: center; padding: 4px 0; height: fit-content; }
.hb-step-b > *:last-child { margin-bottom: 0; }
.hb-url { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; font-weight: 700; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 7px 14px; display: inline-block; margin: 2px 0 10px !important; }
.hb-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; background: #f1f5f9; color: #334155; border-radius: 4px; padding: 1px 6px; }
.hb-tip { font-size: 13px; color: #64748b; line-height: 1.75; }

/* ---- 确认点 / 警告 ---- */
.hb-ok { font-size: 14px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 4px solid #22c55e; border-radius: 8px; padding: 11px 14px; margin: 16px 0; line-height: 1.75; }
.hb-warn { font-size: 14px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 8px; padding: 11px 14px; margin: 16px 0; line-height: 1.75; }
.hb-warn p:last-child, .hb-ok p:last-child { margin-bottom: 0; }

/* ---- 卡片 / 三件套 / 五件套 ---- */
.hb-card { border: 1px solid #e8eef6; border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; background: #fff; }
.hb-card > *:last-child { margin-bottom: 0; }
.hb-card-t { font-size: 15px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.hb-three { margin: 4px 0 8px; }
.hb-three-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed #eef2f7; }
.hb-three-item:last-child { border-bottom: none; }
.hb-three-item p { margin: 4px 0 0; font-size: 13.5px; color: #475569; }
.hb-three-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.hb-five { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.hb-five > div { border: 1px solid #e8eef6; border-radius: 10px; padding: 11px 13px; background: #fcfdfe; }
.hb-five b { display: block; font-size: 14px; color: #1d4ed8; margin-bottom: 4px; }
.hb-five span { font-size: 13px; color: #475569; line-height: 1.7; }

/* ---- 配图与序号标注 ---- */
.hb-fig { margin: 18px 0 22px; }
.hb-shot { position: relative; display: inline-block; max-width: 100%; }
.hb-shot img { display: block; max-width: 100%; height: auto; border: 1px solid #e5e7eb; border-radius: 10px; cursor: zoom-in; }
/* 全屏类截图在正文里会被缩小，角上加一个明显的「点开放大」提示（侧边栏小图不需要） */
.hb-fig:not(.hb-fig-side) .hb-shot::after {
  content: "🔍 点一下放大";
  position: absolute; right: 10px; bottom: 10px;
  font-size: 11px; color: #334155; background: rgba(255,255,255,.94);
  border: 1px solid #cbd5e1; border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); pointer-events: none;
}

/* 点图放大（全屏浮层，按原尺寸查看，可滚动） */
.hb-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(15,23,42,.94); display: none; overflow: auto; padding: 24px; cursor: zoom-out; }
.hb-lightbox.on { display: block; }
.hb-lightbox img { display: block; margin: 0 auto; max-width: none; height: auto; border-radius: 6px; box-shadow: 0 12px 48px rgba(0,0,0,.5); }
.hb-lb-tip { position: fixed; left: 0; right: 0; bottom: 14px; text-align: center; color: #cbd5e1; font-size: 13px; pointer-events: none; }
.hb-badge { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #e5484d; color: #e5484d; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 1px 5px rgba(0,0,0,.2); }
.hb-badge-inline { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #e5484d; color: #e5484d; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.hb-fig figcaption { font-size: 13px; color: #64748b; line-height: 1.7; margin-top: 9px; max-width: 840px; }
.hb-fig-inline { max-width: 420px; }
.hb-fig-inline .hb-shot img { width: 320px; }
/* 侧边栏配图是 2× 截图，按 220px 显示刚好是 1:1 观感 */
.hb-fig-side .hb-shot img { width: 220px; }

/* ---- 三身份菜单并排（1:1 原尺寸，不缩放，保证菜单字看得清） ---- */
.hb-sbs { display: flex; gap: 14px; align-items: flex-start; }
.hb-sbs-item { flex: 0 0 220px; }
.hb-sbs-crop { height: 640px; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 10px; background: #1e293b; }
.hb-sbs-crop img { display: block; width: 100%; height: auto; }
.hb-sbs-cap { font-size: 12.5px; color: #475569; margin-top: 8px; line-height: 1.6; text-align: center; }
.hb-sbs-cap b { display: block; font-size: 13.5px; color: #0f172a; }
.hb-sbs-cap span { color: #94a3b8; }

/* ---- 表格 ---- */
/* ⚠️ 全局有 `th,td{white-space:nowrap}` 与 `table{width:max-content}`（花名册主表要用），
   帮助页的表格必须显式改回可换行 + 固定表宽，否则长中文会一路撑出去。 */
.hb-tbl { width: 100%; max-width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; table-layout: fixed; }
.hb-tbl th, .hb-tbl td { white-space: normal; overflow-wrap: anywhere; }
.hb-tbl th { background: #f8fafc; color: #475569; font-weight: 600; text-align: left; padding: 9px 11px; border: 1px solid #e8eef6; font-size: 12.5px; }
.hb-tbl td { padding: 9px 11px; border: 1px solid #e8eef6; vertical-align: top; line-height: 1.7; }
.hb-tbl tbody tr:nth-child(even) td { background: #fcfdfe; }
.hb-tbl-menu td, .hb-tbl-menu th { text-align: center; }
.hb-tbl-menu td:first-child, .hb-tbl-menu th:first-child { text-align: left; }
.hb-tbl-menu td { font-size: 14.5px; }
/* table-layout:fixed 的列宽只认首行（th），所以宽度必须同时写在 th 与 td 上 */
.hb-tbl-map th:nth-child(1), .hb-tbl-map td:nth-child(1) { width: 54px; text-align: center; }
.hb-tbl-map th:nth-child(2), .hb-tbl-map td:nth-child(2) { width: 21%; }
.hb-gloss th:nth-child(1), .hb-gloss td:nth-child(1) { width: 15%; }
.hb-gloss th:nth-child(2), .hb-gloss td:nth-child(2) { width: 44%; }
.hb-tbl-rolemenu th:nth-child(1), .hb-tbl-rolemenu td:nth-child(1) { width: 20%; }
.hb-tbl-rolemenu th:nth-child(2), .hb-tbl-rolemenu td:nth-child(2) { width: 58px; text-align: right; color: #94a3b8; font-variant-numeric: tabular-nums; }
.hb-tbl-rolemenu td:nth-child(3) { line-height: 1.95; }
.hb-tbl-rolemenu td:nth-child(3) b { color: #1d4ed8; }
.hb-n { display: inline-block; min-width: 20px; text-align: center; font-size: 11px; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 1px 6px; margin-left: 7px; vertical-align: middle; font-variant-numeric: tabular-nums; }

/* ---- 第 2 章：角色篇专用 ---- */
/* 菜单清单（一排小胶囊） */
.hb-menulist { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.hb-menulist > span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #334155; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 11px; line-height: 1.4; }
.hb-menulist > span.hl { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.hb-menulist .hb-muted { font-size: 11.5px; }

/* 2 列小对照表 */
.hb-tbl-my th:nth-child(1), .hb-tbl-my td:nth-child(1) { width: 24%; }

/* 3 列「做不到 → 该找谁」表 */
.hb-tbl-ask th:nth-child(1), .hb-tbl-ask td:nth-child(1) { width: 26%; }
.hb-tbl-ask th:nth-child(2), .hb-tbl-ask td:nth-child(2) { width: 36%; }
.hb-tbl-ask th:nth-child(3), .hb-tbl-ask td:nth-child(3) { width: 38%; }
.hb-tbl-ask td:nth-child(3) b { color: #1d4ed8; }

/* 3 列：改什么 / 会怎么样 / 谁批 */
.hb-tbl-map3 th:nth-child(1), .hb-tbl-map3 td:nth-child(1) { width: 31%; }
.hb-tbl-map3 th:nth-child(2), .hb-tbl-map3 td:nth-child(2) { width: 41%; }
.hb-tbl-map3 th:nth-child(3), .hb-tbl-map3 td:nth-child(3) { width: 28%; }

/* 5 列表：角色 / 人数 / 能看到谁 / 生效方式 / 菜单项数 */
.hb-tbl-rolemenu2 { font-size: 13px; }
.hb-tbl-rolemenu2 th:nth-child(1), .hb-tbl-rolemenu2 td:nth-child(1) { width: 26%; }
.hb-tbl-rolemenu2 th:nth-child(2), .hb-tbl-rolemenu2 td:nth-child(2) { width: 62px; text-align: right; color: #94a3b8; font-variant-numeric: tabular-nums; }
.hb-tbl-rolemenu2 th:nth-child(3), .hb-tbl-rolemenu2 td:nth-child(3) { width: 17%; }
.hb-tbl-rolemenu2 th:nth-child(4), .hb-tbl-rolemenu2 td:nth-child(4) { width: 25%; }

/* 「这篇不是你的身份」提示 */
/* ---- 第 4 章 FAQ：问答体 ---- */
.hb-qa { border-bottom: 1px solid #eef2f7; padding: 13px 0; }
.hb-qa:last-child { border-bottom: none; }
.hb-q { font-size: 14.5px; font-weight: 700; color: #0f172a; margin: 0 0 6px; line-height: 1.7; }
.hb-q::before { content: "问 "; color: #1d4ed8; }
.hb-a { font-size: 14px; color: #374151; line-height: 1.9; margin: 0; }
.hb-a::before { content: "答 "; color: #059669; font-weight: 700; }
.hb-h4 { font-size: 14.5px; font-weight: 700; color: #0f172a; margin: 20px 0 8px; }
.hb-red { color: #b91c1c; }
.hb-orange { color: #b45309; }

/* ---- 第 5 章：编号铁律卡 ---- */
.hb-rules { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 20px; }
.hb-rule { display: flex; gap: 14px; background: #fff; border: 1px solid #e8eef6; border-radius: 10px; padding: 13px 16px; }
.hb-rule > div:last-child { min-width: 0; }
.hb-rule-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #1e293b; color: #fff; font-size: 13px; font-weight: 700; line-height: 28px; text-align: center; }
.hb-rule b { font-size: 14.5px; color: #0f172a; display: block; margin-bottom: 4px; line-height: 1.6; }
.hb-rule p { font-size: 13.5px; color: #475569; line-height: 1.8; margin: 0; }

.hb-notmine { font-size: 13.5px; color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa; border-left: 4px solid #f97316; border-radius: 8px; padding: 11px 14px; margin: 0 0 18px; line-height: 1.85; }
.hb-jump { color: #1d4ed8; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* 目录里的「你在这里」标记 */
.hb-toc-me { display: inline-block; font-size: 10.5px; font-weight: 700; color: #fff; background: #2563eb; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
.hb-toc-s.is-other { color: #94a3b8; }
.hb-toc-s.is-other.on { color: #fff; }
.hb-tbl-perm { font-size: 12.5px; min-width: 860px; table-layout: auto; }
.hb-tbl-perm td, .hb-tbl-perm th { padding: 7px 9px; text-align: center; white-space: nowrap; }
.hb-tbl-perm td:first-child, .hb-tbl-perm th:first-child { text-align: left; }
.hb-tbl-perm tr.hb-grp td { background: #f1f5f9 !important; font-weight: 700; color: #334155; text-align: left; }
.hb-tbl-perm tr.hb-me td { background: #eff6ff !important; box-shadow: inset 3px 0 0 #2563eb; }
.hb-y { color: #b91c1c; }

.hb-details { border: 1px solid #e8eef6; border-radius: 10px; padding: 12px 14px; margin: 12px 0 18px; overflow-x: auto; }
.hb-details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #1d4ed8; }
.hb-details[open] summary { margin-bottom: 6px; }

.hb-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 18px; border-top: 1px solid #eef2f7; }
.hb-pager button { font-size: 13px; padding: 8px 14px; }
.hb-pager button[disabled] { opacity: .45; cursor: default; }

@media (max-width: 1080px) {
  .hb-body { grid-template-columns: 1fr; overflow-y: auto; }
  .hb-side { border-right: none; border-bottom: 1px solid #e8eef6; overflow: visible; }
  .hb-main { overflow: visible; padding: 18px 16px 60px; }
  .hb-sbs { flex-wrap: wrap; }
  .hb-sbs-item { flex: 1 1 200px; }
}
