/* ===== 花名册 · 左右分栏布局（参考部门管理） ===== */
.emp-layout { display: flex; gap: 10px; align-items: stretch; flex: 1; min-height: 0; }
.emp-layout > .emp-list-pane { flex: 1 1 0%; min-width: 320px; display: flex; flex-direction: column; min-height: 0; background: transparent; border: none; border-radius: 0; }
.emp-detail-pane {
  flex: 1 1 0%; min-width: 320px; min-height: 0;
  display: flex; flex-direction: column; gap: 10px; padding-right: 4px;
}
.emp-detail-empty {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-faint); gap: 12px; text-align: center; padding: 24px;
  background: var(--card-bg, #fff); border-radius: var(--radius); border: 1px solid var(--border);
}
.emp-empty-illo { font-size: 48px; opacity: .5; }
.emp-detail { display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; }
.emp-detail-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius, 12px); flex: 0 0 auto;
}
.emp-detail-title { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.emp-detail-sub { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.emp-detail-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.emp-detail-content { flex: 1 1 0%; min-height: 0; display: flex; flex-direction: row; gap: 6px; }
.emp-detail-body { flex: 1 1 0%; min-height: 0; overflow-y: auto; }
/* 右侧详情页：导航标签改为右侧竖向（参考编辑弹窗 .emp-nav-item 的左侧边线设计） */
.emp-detail-nav {
  flex: 0 0 76px; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow-y: auto;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius, 12px); padding: 4px;
}
.emp-detail-nav-item {
  width: 100%; padding: 5px 6px; border: none; border-left: 3px solid transparent;
  background: transparent; color: var(--text); font-size: 12px; line-height: 1.25; cursor: pointer;
  white-space: normal; text-align: left;
  transition: color .15s, border-color .15s, background .15s;
}
.emp-detail-nav-item:hover { color: var(--primary); background: rgba(26,115,232,.05); }
.emp-detail-nav-item.active {
  color: var(--primary); border-left-color: var(--primary); font-weight: 400;
  background: rgba(26,115,232,.08);
}
.emp-detail-body > .emp-section { margin-bottom: 6px; scroll-margin-top: 6px; }
.emp-detail .emp-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius, 12px); padding: 10px 12px 11px; }
.emp-detail-loading { padding: 24px; color: var(--text-muted); text-align: center; }
/* 右侧详情页：纯查看，所有控件渲染为只读文本（无边框/背景/下拉箭头），明确「不可在详情页编辑」 */
.emp-detail-body .form-grid { gap: 8px 12px; }
.emp-detail-body .form-grid label { gap: 2px; }
.emp-detail-body .emp-section-head { margin-bottom: 8px; }
/* 详情页所有表单控件统一按只读文本渲染（不依赖 :disabled 伪类，避免某些字段未禁用或被浏览器默认样式覆盖） */
.emp-detail-body .form-grid input,
.emp-detail-body .form-grid select,
.emp-detail-body .form-grid textarea,
.emp-detail-body .form-grid .readonly-field,
.emp-detail-body .cascade-cell input,
.emp-detail-body .cascade-cell select {
  -webkit-appearance: none !important; appearance: none !important; -moz-appearance: none !important;
  background: transparent !important; background-color: transparent !important;
  border: 1px solid transparent !important; border-color: transparent !important; border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important; padding-right: 0 !important;
  height: auto !important; min-height: 0 !important;
  color: var(--text, #1f2937) !important; -webkit-text-fill-color: var(--text, #1f2937) !important;
  cursor: default !important;
  font-size: 13px !important; line-height: 1.45 !important;
}
.emp-detail-body .form-grid input[type="date"]::-webkit-calendar-picker-indicator,
.emp-detail-body .cascade-cell input[type="date"]::-webkit-calendar-picker-indicator,
.emp-detail-body .form-grid input::-webkit-inner-spin-button,
.emp-detail-body .form-grid input::-webkit-outer-spin-button {
  display: none !important; -webkit-appearance: none !important;
}
.emp-detail-body .form-grid select,
.emp-detail-body .cascade-cell select {
  background-image: none !important;
}
.emp-detail-body .form-grid textarea { resize: none !important; }
.emp-detail-body .form-grid input:focus,
.emp-detail-body .form-grid select:focus,
.emp-detail-body .form-grid textarea:focus,
.emp-detail-body .cascade-cell input:focus,
.emp-detail-body .cascade-cell select:focus {
  border-color: transparent !important; box-shadow: none !important; outline: none !important;
}
.emp-detail-body .form-grid input::placeholder,
.emp-detail-body .form-grid textarea::placeholder { color: transparent !important; }
/* 详情页复选框：不显示勾选框，只显示「是/否」文本 */
.emp-detail-body .form-grid .chk-yesno input { display: none !important; }
.emp-detail-body .form-grid .chk-yesno .chk-txt {
  color: var(--text, #1f2937); cursor: default; font-size: 13px;
}
.emp-detail-body .form-grid .chk-yesno:has(input:not(:checked)) .chk-txt::before { content: "否"; }
.emp-detail-body .form-grid .chk-yesno:has(input:checked) .chk-txt::before { content: "是"; }
/* 兜底冻结后的纯文本占位（原 input/select/textarea 被替换为 span） */
.emp-detail-body .emp-frozen-value {
  display: inline-block;
  min-height: 19px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text, #1f2937);
  word-break: break-all;
}
.emp-detail-body .emp-frozen-value.is-empty::before {
  content: "—";
  color: #aab3bf;
}
.emp-list-pane .data-table { width: 100%; min-width: 0; table-layout: auto; }
#app .emp-list-pane .data-table tbody tr.active > td { background: var(--primary-soft) !important; }
.emp-list-pane .data-table th,
.emp-list-pane .data-table td { text-align: center; }
.emp-list-pane .data-table th:first-child,
.emp-list-pane .data-table td:first-child { text-align: center; }
@media (max-width: 980px) {
  .emp-layout { flex-direction: column; overflow-y: auto; }
  .emp-layout > .emp-list-pane { flex: 0 0 auto; width: 100%; max-width: none; max-height: 50vh; }
  .emp-detail-pane { overflow-y: visible; padding-right: 0; }
}

/* ===================== 招聘需求 · 左右分栏布局（参考部门管理） ===================== */
.recruit-quota-hint {
  margin-bottom: 14px;
  padding: 10px 12px 10px 36px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  color: #1E40AF;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}
.recruit-quota-hint::before {
  content: 'ℹ';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A73E8;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  font-family: -apple-system, 'PingFang SC', sans-serif;
}
.recruit-quota-hint:empty { display: none; }
.recruit-quota-hint-placeholder { color: #6B7280; }
.recruit-quota-hint strong { color: #1E3A8A; }
.recruit-quota-hint .num { font-weight: 700; color: #1E40AF; }
.recruit-quota-hint .num.over { color: #DC2626; }
.recruit-quota-hint.recruit-quota-warn { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.recruit-quota-hint.recruit-quota-warn::before { background: #EF4444; }
.recruit-quota-warn-line { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(239,68,68,.3); font-size: 12.5px; color: #B91C1C; }
.recruit-apply-quota { color: #1A73E8; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.recruit-apply-quota:hover { color: #1D4ED8; }

/* 招聘需求表单：分区（基础信息 / 需求背景 / 任职要求 / 附加信息）
   —— 全部设置对齐部门管理弹窗 #deptForm：
   1) 分节 = 「标题条 + 内容网格」，无卡片描边（标题条浅灰底 + 3px 主色条 + 13px/600/#374151）
   2) 分节间距 28px、分节内字段间距 22px 24px
   3) 字段 = 标签左对齐（宽度自适应）+ 输入框吃满剩余（右边缘对齐），标签与输入框间距 6px
   4) 列数随窗体宽度 auto-fit 自适应，最小列宽 320px */
.rf-zone { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius, 8px); background: var(--card-bg); padding: 12px 16px 16px; overflow: visible; }
.rf-zone:first-of-type { margin-top: 0; }
.rf-zone-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-strong);
  padding: 0; background: none;
  border-left: none;
  margin-bottom: 12px;
}
.rf-zone-title .sec-n {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--primary-soft, #E8F0FE); color: var(--primary);
  font-size: 10.5px; font-weight: 700;
}
.rf-zone .form-grid { padding: 0; gap: 12px 16px; }
.rf-count { display: block; margin-top: 4px; font-size: 12px; color: #94A3B8; }

/* 招聘需求弹窗（浮窗承载）：表单随「窗体宽度」自适应重排 ——
   原有 .form-grid 是固定 3 列，把窗体放大/缩小只是把容器拉宽压窄；改为
   auto-fit + minmax，列数由容器实际宽度算出来：窗口越宽列越多、越窄自动并成 1~2 列。
   （用容器自身宽度而非视口宽度，才能真正跟随浮窗的拖动缩放。）
   注意：minmax 的最小宽度必须写「固定 px」，不能写 min(100%, 250px) ——
   百分比在 auto-fit 的轨道尺寸计算里会退化成内容固有宽度（max-content），
   结果明明放得下两列却只排出一列（实测 640px 宽时只出 1 列）。 */
#recruitForm .form-grid {
  /* 250px：列数随弹窗宽度明显变化（内容宽 ~720→2 列、~920→3 列、~1160→4 列、~1400→5 列），
     不会出现「拉大窗口只把输入框拉长、列数不变」的情况；单列输入框最窄也有 ~190px 不会太短。 */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
#recruitForm .form-grid > * { min-width: 0; max-width: 100%; }
#recruitForm label > input,
#recruitForm label > select,
#recruitForm label > textarea,
#recruitForm .cascade-cell > .combo-box { max-width: 100%; }
/* 基础信息：把「申请部门 / 目标岗位 / 职级」三联并入外层 .form-grid 的同一套 auto-fit 轨道。
   原结构是三层嵌套网格：div.full > #recruitLinkage.emp-cascade > .cascade-row > 3×.cascade-cell，
   其中 .cascade-row 只有 3 个子项 —— auto-fit 也只会排出 3 列，
   于是无论把弹窗拉多大，基础信息永远「固定 3 列」，只能把输入框拉长。
   这里用 display:contents 抹掉这三层包裹盒（只改渲染盒，不动 DOM，JS 的 combo 绑定/取值不受影响），
   让 3 个级联单元格 + 需求人数 + 预计到岗日期 成为同一个网格的直接子项 → 列数真正随窗体宽度自适应。 */
#recruitForm .form-grid > div.full { display: contents; }
#recruitForm #recruitLinkage { display: contents; }
#recruitForm #recruitLinkage > .cascade-row { display: contents; }
/* 级联单元格此时已是网格直接子项（不再命中 `.form-grid > *` 的收缩规则），单独放开收缩 */
#recruitForm .form-grid .cascade-cell { min-width: 0; max-width: 100%; }
/* 窗体最大化时，多行文本域给足高度，避免大片留白 */
.float-win.is-max #recruitForm textarea { min-height: 74px; }
/* 招聘新增/编辑弹窗：底部按钮锁定在底部，仅表单内容滚动（footer 留在 form 内，sticky 钉底） */
#recruitModal .modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.float-win__body > .modal #recruitForm { flex: 1 1 auto; min-height: 0; min-width: 0; max-height: none; overflow: auto; }
/* 关键：sticky footer 被约束在表单「内容盒」内，若表单自身留 padding-bottom，
   滚到底时该内边距会露成「按钮栏与弹窗底边之间的空隙」。
   故把表单底部内边距归零（左右/上保留 18px），改由 footer 承接 → 背景铺满到底边。 */
#recruitForm { padding-bottom: 0; } /* 2px 舍入溢出会挤出横向滚动条→钉底 footer 上方露 10px 缝 */
/* 与上方 .float-win__body > .modal #recruitForm 的 overflow:auto 同特异性、靠后覆盖：关横向滚动 */
.float-win__body > .modal #recruitForm { overflow-x: hidden; }
#recruitForm .modal-foot {
  position: sticky; bottom: 0; z-index: 3;
  /* 招聘的 footer 在表单内部，而表单（.modal-body）自带 20px 左右内边距，
     于是按钮栏左右各缩进 20px，看起来「没贴合窗体」。
     用负外边距抵消这 20px → 按钮栏铺满到弹窗左右边缘（与部门弹窗一致，部门 footer 是 .modal-body 的兄弟节点本就通宽）。
     按钮位置仍由 .float-win__body > .modal .modal-foot 的 padding:8px 16px 控制，与部门一致。 */
  margin-left: -20px; margin-right: -20px;
  background: var(--card-bg, #fff);
  border-radius: 0 0 14px 14px;
}
/* 招聘表单内下拉：行高更紧凑（8px→5px 上下内边距），一屏可看到更多部门/岗位 */
#recruitForm .combo-box .combo-list li { padding: 5px 10px; }
#recruitForm .combo-box .combo-list li.dept-tree-node { min-height: 26px; }
#recruitForm .combo-box .combo-list li.dept-tree-node .dept-type-tag {
  font-size: 10.5px; padding: 1px 6px; line-height: 1.5;
}
#recruitForm .combo-box .combo-list li .combo-sub { font-size: 11.5px; }
#recruitForm .combo-box .combo-list .combo-empty { padding: 6px 10px; font-size: 12.5px; }
/* 招聘需求：部门/职位/职级 三联联动容器 */
.rf-mini-title { font-size: 12px; color: #6b7280; margin-bottom: 8px; font-weight: 600; letter-spacing: .2px; }
#recruitLinkage .pl-wrap { gap: 12px; }
#recruitLinkage .pl-input { height: 36px; }
/* 招聘需求弹窗：基础信息三联（申请部门/目标岗位/职级）—— 标签与输入框同一行 */
#recruitForm #recruitLinkage .cascade-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
#recruitForm #recruitLinkage .cascade-cap {
  flex: 0 0 auto;            /* 同上：标签左对齐、间距窄，输入框吃满剩余宽度 */
  width: auto;
  /* 关键：覆盖全局 `.form-grid label > span { min-width:72px; max-width:120px }`。
     否则「职级」这类短标签的标签盒仍被撑到 72px，右侧白留 46px + gap → 看起来间距很大。 */
  min-width: 0;
  max-width: none;
  margin-bottom: 0;
  text-align: left;
  white-space: nowrap;
  color: var(--text-muted, #475569);   /* 与部门弹窗标签同色 */
  font-size: 13px;
}
#recruitForm #recruitLinkage .cascade-cell > .combo-box,
#recruitForm #recruitLinkage .cascade-cell > input,
#recruitForm #recruitLinkage .cascade-cell > select {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
#recruitLinkage .pl-field.is-resolved .pl-input { font-weight: 600; }

/* 招聘需求弹窗：普通字段 —— 2026-10-30 改上下式（标签在上、输入框在下），列数随窗体宽度自适应 */
#recruitForm .form-grid label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
#recruitForm .form-grid label .lbl-text {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  text-align: left;
  white-space: normal;
  color: var(--text-muted, #475569);
  font-size: 13px;
  line-height: 1.4;
}
#recruitForm .form-grid label > input,
#recruitForm .form-grid label > select,
#recruitForm .form-grid label > textarea {
  flex: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 招聘需求：长说明（招聘原因/岗位职责/职位描述）—— 字段名+括号说明在上，输入框在下 */
#recruitForm .form-grid label.rf-stack-label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
#recruitForm .form-grid label.rf-stack-label .lbl-text {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2px 6px;
  text-align: left;
}
#recruitForm .form-grid label.rf-stack-label .field-label {
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-muted, #475569);
  line-height: 1.4;
}
#recruitForm .form-grid label.rf-stack-label .label-hint {
  font-size: 12px;
  color: var(--text-faint, #9AA0A6);
  line-height: 1.3;
}
#recruitForm .form-grid label.rf-stack-label > textarea {
  flex: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
#recruitForm .form-grid label.rf-stack-label .rf-count {
  text-align: left;
}

.recruit-layout { display: flex; gap: 10px; align-items: stretch; flex: 1; min-height: 0; }
.recruit-list-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.recruit-list-pane .table-wrap { flex: 1; min-height: 0; }
.recruit-detail-pane { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding-right: 4px; }
.recruit-detail-pane .card { overflow: visible; }

/* 招聘管理聚合页：与部门管理/花名册的 .employee-page 完全一致——
   固定视口高度 + overflow:hidden，整页不随内容滚动。
   根因：.app 是 min-height:100vh（可长高）；#view-recruit(.recruit-view) 没有 .employee-page 类，
   原先用 flex:1（basis:0%）靠 flex 链撑高 → 内容超过一屏时整页滚动。
   .employee-page 之所以不滚，是因为它「没有 flex:1、只用 height:calc(...)」钉死高度。
   故此处去掉 flex:1，改为与 .employee-page 相同的固定高度写法。 */
.recruit-view {
  display: flex; flex-direction: column; width: 100%;
  /* margin-top:-24px（line 7209）上移了一个 pad 量，此处高度只减一个 pad 以补偿，避免底部 24px 空白 */
  height: calc(100vh - var(--topbar-h) - var(--pad));
  min-height: 0; overflow: hidden;
}
.recruit-view .recruit-panes-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 0 4px; margin-top: 0 !important; }
.recruit-view .recruit-panes { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
/* 各 tab 页面：由 flex 填满剩余高度，overflow 隐藏，内部自行滚动（整页不滚动） */
.recruit-view .recruit-pane.employee-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
}
/* 关键：.active 态必须有「确定视口高度」，否则 flex:1(0%) 会让 section 退化为内容高度，
   撑高 .recruit-view -> .content -> .app(min-height:100vh 可生长) -> 整页滚动。
   与部门管理(.employee-page 的 100vh-based 高度)对齐。 */
.recruit-view .recruit-pane.employee-page.active {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  /* 关键：不要用绝对视口高度 calc(100vh-...)，招聘面板嵌在 .recruit-panes 内，
     其上方还有 tab 栏 + 12px 底 padding，绝对高度会高估 ~40px 导致面板比容器高、
     溢出 .recruit-panes 一路撑高 .app(min-height:100vh 可生长) → 整页滚动一点点。
     改为 height:auto + flex:1，由 flex 链精确填满 .recruit-panes 的剩余高度（已含 tab 层），
     再靠内部 .table-wrap / .cand-detail 自行滚动。与部门管理同机制。 */
  height: auto;
  min-height: 0;
  overflow: hidden;
}
/* 左右分栏容器：两栏一起填满剩余高度，互不拉伸 */
.recruit-view .recruit-pane.employee-page .recruit-layout,
.recruit-view .recruit-pane.employee-page .cand-layout {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
/* 列表列：占满/占半（右列折叠后自动占满整宽），内部纵向 flex */
.recruit-view .recruit-pane.employee-page .recruit-list-pane,
.recruit-view .recruit-pane.employee-page .cand-list-pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.recruit-view .recruit-pane.employee-page .cand-list-pane .card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* 列表表格区内部滚动 */
.recruit-view .recruit-pane.employee-page .recruit-list-pane .table-wrap,
.recruit-view .recruit-pane.employee-page .cand-list-pane .table-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow-y: auto;
}
/* 候选人左侧表头滚动时固定 */
#view-recruit-candidates .data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
/* 详情列：透明背景，内部白色卡片（与部门管理一致），避免白色直角露到灰色区 */
.recruit-view .recruit-pane.employee-page .recruit-detail-pane,
.recruit-view .recruit-pane.employee-page .cand-detail-pane {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
  padding-right: 0;
}
/* 空提示：填满详情列（避免下方露灰），白色圆角卡片 */
.recruit-view .recruit-pane.employee-page .recruit-detail-empty,
.recruit-view .recruit-pane.employee-page .cand-detail-empty {
  flex: 1;
  min-height: 0;
  height: auto;
  padding: 32px 24px;
}
.recruit-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 360px; color: var(--text-faint); background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 40px;
}
.recruit-row.selected { background: var(--primary-soft) !important; }
.recruit-row.selected td:first-child { color: var(--primary); font-weight: 600; }
.recruit-table th { text-align: center; font-weight: 600; }
.recruit-table td { text-align: center; }

/* 招聘需求 tab：左右占位固定（参考部门管理），内容多则内部滚动；右侧详情透明背景避免白色直角 */
#view-org-recruit .recruit-layout {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
#view-org-recruit .recruit-list-pane { background: transparent; min-height: 0; border: none; border-radius: 0; box-shadow: none; }
#view-org-recruit .recruit-detail-pane { background: transparent; min-height: 0; }
#view-org-recruit .recruit-list-pane .table-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}
#view-org-recruit #recruitEmpty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: none;
}
#view-org-recruit .recruit-detail-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
/* 单页板块（面试 / Offer / 渠道）：卡片固定填满，表格区内部滚动，整页不随内容滚动 */
.recruit-view .recruit-pane.employee-page > .card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.recruit-view .recruit-pane.employee-page > .card > .table-wrap {
  flex: 1;
  min-height: 0;
}
/* 招聘管理：数据列表内容区改为无底色（透明，透出页面灰底 #F7F8FC），表头与翻页器保持白色 */
/* 面试 / Offer / 渠道 单页板块列表卡片 */
#view-recruit-interview > .card,
#view-recruit-offer > .card,
#view-recruit-channel > .card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
/* 面试 / Offer 空数据提示同步透明（招聘需求/候选人/渠道此前已设为 transparent） */
#view-recruit-interview #ivEmpty,
#view-recruit-offer #ofEmpty {
  background: transparent;
  box-shadow: none;
}
/* 去掉招聘 / 培训 各列表翻页器上方的分隔线（内容区与翻页器之间不再有边框线） */
#view-org-recruit .pagination,
#view-recruit-candidates .pagination,
#view-recruit-interview .pagination,
#view-recruit-offer .pagination,
#view-recruit-channel .pagination,
#view-training .pagination {
  border-top: none;
}
/* 招聘需求 / 候选人：未选中任何行时，右栏详情隐藏、左列表占满整宽（不分区）；
   点击某行后由 JS 给布局容器加 .is-split，右栏才出现（左右分栏） */
#view-org-recruit .recruit-layout:not(.is-split) .recruit-detail-pane,
#view-recruit-candidates .cand-layout:not(.is-split) .cand-detail-pane {
  display: none;
}
/* 花名册 / 部门管理 / 成本分配 / 报表 / 公告：同样按需展开——
   未选中行时右栏详情隐藏、左列表占满整宽（不分区）；点击某行由 JS 给布局容器加 .is-split 才出现左右分栏 */
.emp-layout:not(.is-split) .emp-detail-pane,
.dept-layout:not(.is-split) .dept-detail-pane,
.cost-layout:not(.is-split) .cost-detail-pane,
.rp-layout:not(.is-split) .rp-detail-pane,
.ann-board-body:not(.is-split) .ann-board-detail {
  display: none;
}
/* 部门管理 / 报表 为 grid 两列布局，未分栏时退化为单列，左列表占满整宽 */
.dept-layout:not(.is-split),
.rp-layout:not(.is-split) {
  grid-template-columns: 1fr;
}
/* 招聘需求搜索栏延伸至右侧 */
#view-org-recruit .search-combined { flex: 0 1 auto; width: auto; max-width: 360px; }
#view-org-recruit .search-combined .search.search-dark.combo { width: auto; flex: 0 1 auto; max-width: 360px; }
/* 招聘需求表格行高参考花名册左侧数据表 */
#view-org-recruit .recruit-table th,
#view-org-recruit .recruit-table td {
  padding: 9px 10px;
  line-height: 1.5;
  font-size: 13px;
}

/* 候选人管理：与招聘需求一致，左右占位延伸至底部 */
#view-recruit-candidates .cand-layout {
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
#view-recruit-candidates .cand-list-pane,
#view-recruit-candidates .cand-detail-pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#view-recruit-candidates .cand-list-pane .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
#view-recruit-candidates .cand-list-pane .table-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}
#view-recruit-candidates #candEmpty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: none;
}
#view-recruit-candidates .cand-detail-empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
/* 候选人汇总卡片改为一行，数据间用 || 分隔 */
#candSummary.quota-summary { display: block; }
#candSummary .qs-inline { margin-bottom: 0; }



/* 渠道列表空提示绝对居中（与候选/招聘一致） */
#view-recruit-channel .table-wrap { position: relative; }
#view-recruit-channel #chEmpty {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: transparent; box-shadow: none;
}

/* ===================== 招聘管理 · 通用列设置弹窗 ===================== */
.col-settings-list { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 6px 2px; }
.col-settings-list .cs-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text); cursor: pointer; user-select: none;
  min-width: 110px; padding: 4px 6px; border-radius: 6px; background: #fff;
  border: 1px solid var(--border);
}
.col-settings-list .cs-item:hover { border-color: var(--primary); }
.col-settings-list .cs-item input { width: 16px; height: 16px; cursor: pointer; }
.col-settings-list .cs-item .cs-drag { color: var(--text-muted); cursor: grab; font-size: 14px; line-height: 1; }
.col-settings-list .cs-item .cs-drag:active { cursor: grabbing; }
.col-settings-list .cs-item.dragging { opacity: .45; }
.col-settings-list .cs-item.drag-over { outline: 2px dashed var(--primary); outline-offset: 1px; }
.col-settings-list .cs-item.locked { color: var(--text-muted); cursor: not-allowed; background: #f4f5f7; }
.col-settings-tip { font-size: 12.5px; color: var(--text-muted); padding: 8px 2px 12px; }
/* 表格单元格内长文本截断 + 悬浮提示（招聘各表通用） */
.col-text { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
/* 列设置项较多时，弹窗内容区可滚动 */
.col-settings-list { max-height: 62vh; overflow-y: auto; }
.col-settings-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
}
/* 列设置弹窗：底部按钮栏（全选/恢复默认/应用）固定底部，仅列列表滚动（与招聘新增弹窗同思路） */
#colSettingsModalBody {
  display: flex; flex-direction: column; overflow: hidden;
  padding: 18px 18px 0;            /* 底部内边距归零，避免滚到底露出空隙（同 sticky footer 坑） */
}
#colSettingsModalBody .col-settings-tip { flex: 0 0 auto; }
#colSettingsModalBody .col-settings-list { flex: 1 1 auto; min-height: 0; max-height: none; width: 100%; }
#colSettingsModalBody .col-settings-actions {
  flex: 0 0 auto; margin-top: 0; padding: 14px 0;   /* 顶部 border 直接分隔，底部 14px 呼吸位 */
}

/* ===================== 成本分摊（与招聘需求 recruit-layout 风格统一） ===================== */
/* 工具栏直接作为 section 子元素，无大标题 */
.cost-layout { display: flex; gap: 10px; align-items: stretch; flex: 1; min-height: 0; }
.cost-list-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: transparent; border: none; border-radius: 0; }
.cost-list-pane .table-wrap { flex: 1; min-height: 0; }
.cost-detail-pane { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 4px; }
.cost-detail-pane .card { overflow: visible; }
.cost-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 360px; color: var(--text-faint); background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 40px;
}
.cost-row.selected { background: var(--primary-soft) !important; }
.cost-row.selected td:first-child { color: var(--primary); font-weight: 600; }
.cost-table th, .cost-table td { text-align: center; }
.cost-table td.txt-l { text-align: left; }
/* 详情卡片 */
.cost-detail .card { margin: 0; }
.cost-detail .card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--text-strong); }
.cost-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.cost-kv .k { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
.cost-kv .v { color: var(--text); font-size: 14px; word-break: break-word; }
.cost-detail .op-row { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
/* 汇总卡片（分摊结果页右侧） */
.cost-summary { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cost-summary .summary-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow); min-width: 150px;
}
.cost-summary .sc-val { font-size: 22px; font-weight: 700; color: var(--text-strong); line-height: 1.2; }
.cost-summary .sc-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
/* 状态/类型徽标 */
.cost-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.cost-badge.green { background: #e7f6ec; color: #1a7f43; }
.cost-badge.amber { background: #fef3e2; color: #b45309; }
.cost-badge.gray  { background: #eef0f3; color: #6b7280; }
.cost-badge.blue  { background: #e8f0fe; color: #1a56db; }
.cost-badge.red   { background: #fdecec; color: #c0392b; }
/* 子标签（业务团队 / 项目）—— 放在 toolbar-left 内 */
.toolbar-left .tabs.subtabs { display: flex; gap: 4px; align-items: center; }
.toolbar-left .tabs.subtabs .subtab {
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  font-size: 14px; color: var(--text-muted);
  border: 1px solid transparent; transition: all .15s;
}
.toolbar-left .tabs.subtabs .subtab:hover { background: var(--bg); }
.toolbar-left .tabs.subtabs .subtab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 成本页工具栏紧凑化（去掉卡片感，与招聘需求一致） */
.employee-page#view-cost-team .toolbar,
.employee-page#view-cost-timesheet .toolbar,
.employee-page#view-cost-rule .toolbar,
.employee-page#view-cost-result .toolbar {
  padding: 10px 14px; margin-bottom: 4px;
}
.employee-page#view-cost-team .toolbar .toolbar-left,
.employee-page#view-cost-timesheet .toolbar .toolbar-left,
.employee-page#view-cost-rule .toolbar .toolbar-left,
.employee-page#view-cost-result .toolbar .toolbar-left { gap: 10px; }
/* 成本页日期选择器缩小 + 不撑满行 */
.employee-page#view-cost-timesheet input[type="month"].filter-input,
.employee-page#view-cost-result input[type="month"].filter-input {
  width: auto; min-width: 130px; flex: 0 0 auto;
}

/* ====== 自定义月份选择器（替代原生 input[type="month"]）====== */
.month-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 130px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  user-select: none;
  vertical-align: middle;
}
.month-picker:hover { border-color: #c0cce4; }
.month-picker.mp-open { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.month-picker.mp-open .mp-arrow path { stroke: var(--primary); transform: rotate(180deg); }

/* 显示区域 */
.month-picker .mp-display {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 8px 0 10px; gap: 6px;
}
.month-picker .mp-text {
  font: 400 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text); white-space: nowrap; letter-spacing: .3px;
}
.month-picker .mp-placeholder .mp-text { color: var(--text-faint); }
.month-picker .mp-arrow { width: 14px; height: 14px; flex-shrink: 0; transition: transform .2s; }
.month-picker .mp-arrow path { transition: stroke .15s, transform .2s; transform-origin: center; }

/* 下拉面板 */
.month-picker .mp-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  z-index: 9999;
  width: 260px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12), 0 1px 4px rgba(0,0,0,.06);
  padding: 12px;
  display: none;
  animation: mpFadeIn .15s ease-out;
}
@keyframes mpFadeIn { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }
.month-picker.mp-open .mp-dropdown { display: block; }

/* 头部：年份导航 */
.month-picker .mp-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f2f5;
}
.month-picker .mp-ybtn {
  font: 600 15px/1 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text); background: transparent; border: none;
  cursor: pointer; padding: 2px 12px; border-radius: 5px;
  transition: background .15s, color .15s;
  letter-spacing: .5px;
}
.month-picker .mp-ybtn:hover { background: #f0f4ff; color: var(--primary); }
.month-picker .mp-nav {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid #e2e8f0; border-radius: 5px;
  color: #64748b; font-size: 11px; cursor: pointer;
  transition: all .15s; padding: 0; line-height: 1;
}
.month-picker .mp-nav:hover { background: #f1f5f9; border-color: #cbd5e1; color: var(--text); }

/* 月份网格 */
.month-picker .mp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.month-picker .mp-cell {
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  font: 400 13px/1 -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  color: var(--text); background: transparent; border: 1px solid #eef1f5;
  border-radius: 6px; cursor: pointer;
  transition: all .12s;
}
.month-picker .mp-cell:hover { background: #f0f4ff; border-color: #bac8ff; color: var(--primary); }
.month-picker .mp-cell.mp-active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; font-weight: 600;
}
.month-picker .mp-cell.mp-today:not(.mp-active) {
  border-color: var(--primary); color: var(--primary); font-weight: 400;
}

/* 底部按钮 */
.month-picker .mp-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f2f5;
}
.month-picker .mp-btn-ghost {
  font: 400 12px/1 -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  background: transparent; border: none; color: #94a3b8;
  cursor: pointer; padding: 4px 10px; border-radius: 4px;
  transition: color .15s, background .15s;
}
.month-picker .mp-btn-ghost:hover { color: var(--primary); background: #f0f4ff; }

/* 年份面板（点击年份后显示） */
.month-picker .mp-year-panel {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 9px; padding: 12px;
  display: none;
  animation: mpFadeIn .12s ease-out;
}
.month-picker .mp-year-panel.mp-show { display: block !important; }
.month-picker .mp-yp-title {
  font: 600 13px/1 sans-serif; color: #64748b; text-align: center;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #f0f2f5;
}
.month-picker .mp-ygrid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px;
  max-height: 220px; overflow-y: auto; padding: 2px;
}
.month-picker .mp-ycell {
  height: 32px; display: flex; align-items: center; justify-content: center;
  font: 400 13px/1 sans-serif; color: var(--text);
  background: transparent; border: 1px solid #eef1f5; border-radius: 5px;
  cursor: pointer; transition: all .12s;
}
.month-picker .mp-ycell:hover { background: #f0f4ff; border-color: #bac8ff; color: var(--primary); }
.month-picker .mp-ycell.mp-yactive {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
}

/* ====== 自定义日期选择器 V3：手动输入 + 日历双模式 ======
   全站统一为【极简卡片】风格：与项目 form-grid input / 部门管理"生效日期" 同一张脸。
   关键设计：
   - 折叠态永远只有一个浅灰边框，hover/focus/open/valid 都不变色（避免"双框"嵌套）
   - focus 反馈完全交给【月历面板弹出】，不靠边框色变化、不靠 box-shadow 外发光
   - 只有错误（invalid）和显式 .dp-show-status 启用状态点时才破例变红/显示点
   - 32px 高、8px 圆角、1px var(--border) 边框、白底，框内仅 [日期文本 + 单 📅] */
.date-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--border, #E5E9F0);
  border-radius: 8px;
  vertical-align: middle;
  transition: border-color .15s;
}
.date-picker:hover { border-color: var(--border, #E5E9F0); }            /* hover 不变色，保持视觉一致 */
.date-picker.dp-ok { border-color: var(--border, #E5E9F0); }             /* 有效时不变色，让状态点单独传达（状态点默认也藏） */
/* focus / open 态：点击编辑时显示蓝色边框（满足"聚焦有蓝色边框"需求）。
   仅改边框色，不叠加任何卡片/外发光，避免出现"框上再浮一个半透明卡片"的嵌套视觉。 */
.date-picker.dp-open,
.date-picker:has(.dp-input:focus) { border-color: var(--primary); }
.date-picker.dp-err { border-color: var(--danger, #DC2626); }             /* 仅错误时变红 */

/* Width inheritance */
.date-picker.filter-input { flex: 0 0 auto; width: auto; min-width: 150px; }

/* Input container: text + calendar icon + status dot */
.date-picker .dp-input-container {
  display: flex; align-items: center;
  width: 100%; height: 100%;
  padding: 0 8px 0 10px;
  gap: 6px;
}
.date-picker .dp-input {
  flex: 1; min-width: 0; height: 100%;
  background: transparent; border: none; outline: none;
  font: 400 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: rgba(0,0,0,.85);
  cursor: text;
  font-variant-numeric: tabular-nums;
}
/* 聚焦时：取消 .form-grid / .modal-body 等全局输入框规则带来的浅蓝外发光，
   让焦点反馈完全落在 .date-picker 容器的蓝色边框上，避免"框内再浮一个浅蓝色方框"。 */
.date-picker .dp-input:focus {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none !important;
}
.date-picker.dp-placeholder .dp-input { color: rgba(0,0,0,.35); }
.date-picker .dp-input::placeholder { color: rgba(0,0,0,.35); opacity: 1; letter-spacing: .3px; }

/* Calendar icon button */
.date-picker .dp-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0;
  background: none; border: none; cursor: pointer;
  color: #9ca3af; flex-shrink: 0;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.date-picker .dp-icon-btn:hover { color: var(--text-faint, #9ca3af); background: transparent; }
.date-picker .dp-icon-btn svg { width: 16px; height: 16px; }
/* focus/open 态：图标按钮颜色保持与 idle 一致（避免"框内多一个蓝色小按钮"的视觉） */
.date-picker.dp-open .dp-icon-btn { color: #9ca3af; background: transparent; }

/* Status indicator dot */
.date-picker .dp-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
}
.date-picker .dp-status-dot.idle { background: #e5e7eb; }
.date-picker .dp-status-dot.valid { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,.5); }
.date-picker .dp-status-dot.invalid { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,.5); animation: dpPulse .5s ease; }
@keyframes dpPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }

/* Status dot visibility（V3 自带：绿点=日期有效 / 红点=日期有误 / 灰点=空白未填）
   全站默认隐藏：用户反馈"绿/红/灰点显出来像多一个框"，统一不显示。
   日期有效性靠【边框色】传达（更克制，只有错误时边框才变红）：
   - idle（空白）：浅灰边框 `var(--border)`，与 hover/focus/open 完全一致
   - valid（已选且有效）：浅灰边框（同 idle，刻意不区分，避免视觉噪声）
   - invalid（已选但无效）：红边框 `var(--danger)` + 浮动错误提示
   - focus/open：浅灰边框不变色（焦点反馈完全交给月历面板弹出，避免"两个框"嵌套）
   极少数需要显示状态点的场景（如深色背景、对历史表格核对），可手动给
   `.date-picker` 加 `.dp-show-status` 类临时启用。 */
.date-picker:not(.dp-show-status) .dp-status-dot { display: none !important; }

/* Error hint (floating, does not affect layout) */
.date-picker .dp-error-msg {
  position: absolute; top: calc(100% + 3px); left: 0;
  font: 400 12px/1.3 -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  color: #ef4444;
  white-space: nowrap;
  z-index: 99998;
  pointer-events: none;
}

/* Dropdown panel —— 紧贴 picker 卡片（gap 仅 4px），让 picker + 面板在视觉上像一个组件
   而不是两个分离的"框"。同时用 drop-shadow 替代 box-shadow 避免覆盖在下方其他 picker 之上。 */
.date-picker .dp-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0;
  z-index: 99999;
  width: 260px;
  background: #fff;
  border: 1px solid var(--border, #E5E9F0);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  padding: 12px 14px 14px;
  opacity: 0; visibility: hidden; transform: translateY(0);
  transition: opacity .12s ease, visibility .12s;
}
.date-picker.dp-open .dp-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Calendar header */
.date-picker .dp-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.date-picker .dp-month-year {
  font: 600 14px/1 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937; user-select: none;
}
.date-picker .dp-nav {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 50%;
  color: #6b7280; font-size: 20px; cursor: pointer;
  transition: background .15s, color .15s; padding: 0; line-height: 1;
}
.date-picker .dp-nav:hover { background: #f3f4f6; color: #1f2937; }

/* Weekday row */
.date-picker .dp-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.date-picker .dp-weekdays span {
  display: flex; align-items: center; justify-content: center;
  height: 26px; font: 500 12px/1 sans-serif; color: #9ca3af;
}

/* Days grid (circular cells) */
.date-picker .dp-days-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}
.date-picker .dp-day-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font: 400 13px/1 -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  color: #1f2937; background: transparent; border: none;
  border-radius: 50%; cursor: pointer;
  transition: background .12s, color .12s;
  position: relative;
}
.date-picker .dp-day-cell:hover:not(.dp-other) { background: #f3f4f6; }
.date-picker .dp-day-cell.dp-other { color: #d1d5db; cursor: default; }
.date-picker .dp-day-cell.dp-today { color: var(--primary); font-weight: 600; }
.date-picker .dp-day-cell.dp-today::after {
  content: ''; position: absolute; bottom: 3px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
}
.date-picker .dp-day-cell.dp-selected {
  background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 3px 8px rgba(26,115,232,.3);
}
.date-picker .dp-day-cell.dp-selected.dp-today::after { background: #fff; }

/* Quick actions */
.date-picker .dp-quick-actions {
  display: flex; gap: 6px;
  padding-top: 12px; margin-top: 12px;
  border-top: 1px solid #f3f4f6;
}
.date-picker .dp-quick {
  flex: 1; padding: 5px 0;
  border: 1px solid #e5e7eb; border-radius: 6px;
  background: #fff; font: 400 12px/1 -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  color: #4b5563; cursor: pointer;
  transition: all .15s;
}
.date-picker .dp-quick:hover { background: #f9fafb; border-color: #d1d5db; color: #1f2937; }
.date-picker .dp-quick.dp-quick-clear { color: #ef4444; border-color: #fecaca; }
.date-picker .dp-quick.dp-quick-clear:hover { background: #fef2f2; border-color: #fca5a5; }

/* ===== Form / modal 里 date-picker 宽度布局 =====
   这里的 date-picker 已经继承了全局默认（32px、8px 圆角、浅灰边框、单 📅 图标），不再需要
   "用 !important 覆盖成 input 样式"的过度处理 —— 那样反而会因为局部强权覆盖破坏 .date-picker
   的 hover/focus 过渡。 */
.form-grid label > .date-picker,
.modal-body label > .date-picker,
label:has(> .date-picker) { width: 100%; }
.form-grid label > .date-picker,
.modal-body label > .date-picker { flex: 1; min-width: 0; }

/* 图标按钮在表单里也融入卡片，不再用 V3 默认的"圆形按钮"——
   hover 时仅给一个浅灰方块，不改变整体卡片宽度 */
.form-grid label > .date-picker .dp-icon-btn,
.modal-body label > .date-picker .dp-icon-btn { border-radius: 4px; }
.form-grid label > .date-picker .dp-icon-btn:hover,
.modal-body label > .date-picker .dp-icon-btn:hover { background: #f3f4f6; }
/* 状态点（绿/红/灰）在表单中正常显隐，按用户要求保留 */

/* search-dark theme */
.date-picker.search-dark {
  background: transparent; border-color: rgba(255,255,255,.3);
  height: 32px; min-width: 150px;
}
.date-picker.search-dark:hover { border-color: rgba(255,255,255,.5); }
.date-picker.search-dark.dp-open,
.date-picker.search-dark:has(.dp-input:focus) { border-color: var(--primary); }
.date-picker.search-dark.dp-ok { border-color: #10b981; }
.date-picker.search-dark.dp-err { border-color: #ef4444; }
.date-picker.search-dark .dp-input { color: rgba(255,255,255,.88); }
.date-picker.search-dark.dp-placeholder .dp-input { color: rgba(255,255,255,.45); }
.date-picker.search-dark .dp-input::placeholder { color: rgba(255,255,255,.45); opacity: 1; }
.date-picker.search-dark .dp-icon-btn { color: rgba(255,255,255,.55); }
.date-picker.search-dark .dp-icon-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.date-picker.search-dark .dp-status-dot.idle { background: rgba(255,255,255,.3); }

/* 窄屏：左右改为上下堆叠 */
@media (max-width: 980px) {
  .cost-layout { flex-direction: column; overflow-y: auto; }
  .cost-list-pane { flex: 0 0 auto; width: 100%; max-width: none; max-height: 48vh; }
  .cost-detail-pane { overflow-y: visible; padding-right: 0; }
}
/* 招聘详情面板：参考候选人管理右侧详情页样式与布局（独立滚动 + 卡片风格一致） */
.recruit-detail { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; overflow-y: auto; }
/* 内容容器：参考候选人 .cand-drawer-body + .pos-detail —— 不加白色外框，各区块平级卡片 */
.recruit-detail-body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.recruit-detail .card {
  background: #fff; border: 1px solid #E8ECF2;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 0;
  flex: 0 0 auto;
}
.recruit-detail .card-title {
  font-size: 13px; font-weight: 700; color: #555;
  padding: 11px 18px; margin: 0;
  background: #F7F9FC;
  border-bottom: 1px solid #EEF1F5;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.recruit-detail .card-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px;
}
.recruit-detail .card-title .badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: #fff; background: var(--primary);
  padding: 1px 8px; border-radius: 8px;
  text-transform: none; letter-spacing: 0;
}
.recruit-detail .card-body { padding: 16px 18px 18px; }
.recruit-detail .di-grid { padding: 0; }

/* 招聘详情：基础信息头部（部门 / 职位 + 标签） */
.rd-hero { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed #E2E8F0; }
.rd-hero-name { font-size: 17px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.rd-hero-meta { font-size: 12.5px; color: #8E93A6; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-hero-meta .rd-code { font-weight: 600; color: #64748B; }
.rd-hero-meta .rd-sep { color: #CBD5E1; }
.rd-hero-meta .rd-tags { display: inline-flex; gap: 6px; }

/* 招聘详情：基础信息操作按钮条 */
.rd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #E2E8F0; }
.rd-actions .btn-secondary, .rd-actions .btn-primary { font-size: 12.5px; padding: 6px 13px; }

/* 招聘详情：文本块（招聘原因 / 职位描述 / 外部链接） */
.rd-text { font-size: 14px; line-height: 1.7; color: #475569; white-space: pre-wrap; }
.rd-link { color: var(--primary); font-size: 14px; word-break: break-all; }

/* 招聘详情：应聘者列表表格，参考部门详情页「直属子部门」样式 */
.recruit-detail .table-wrap { border: none; border-radius: 0; }
.recruit-detail .data-table { border-collapse: separate; border-spacing: 0; }
.recruit-detail .data-table thead { position: static; }
.recruit-detail .data-table thead th {
  background: var(--card-bg, #fff); color: var(--text-strong);
  font-weight: 600; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .3px;
}
.recruit-detail .data-table tbody td { border-bottom: 1px solid #F3F5F8;
  transition: background .12s;
}
.recruit-detail .data-table tbody tr:hover td { background: #FBFCFE; }
.recruit-detail .data-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 980px) {
  .recruit-layout { flex-direction: column; overflow-y: auto; }
  .recruit-list-pane { flex: 0 0 auto; width: 100%; max-width: none; max-height: 48vh; }
  .recruit-detail-pane { overflow-y: visible; padding-right: 0; }
}

/* ===================== 候选人管理 · 左右分栏（参考招聘需求） ===================== */
/* 候选人管理：搜索条件单行显示，避免换行 */
#view-recruit-candidates .toolbar-left {
  flex-wrap: nowrap;
  min-width: 0;
}
#view-recruit-candidates .toolbar-left .filter-search {
  width: 150px; max-width: none; flex: 0 0 auto;
}
#view-recruit-candidates .toolbar-left .filter-select {
  min-width: 90px; width: auto; flex: 0 1 auto;
}
#view-recruit-candidates .toolbar-left .filter-date {
  width: 150px; max-width: none; flex: 0 0 auto;
}
.cand-layout { display: flex; gap: 10px; align-items: stretch; flex: 1; min-height: 0; }
.cand-list-pane { flex: 1.15; min-width: 0; display: flex; flex-direction: column; min-height: 0; background: transparent; border: none; border-radius: 0; }
.cand-list-pane .card { flex: 1; }
.cand-detail-pane { flex: 1; min-width: 380px; min-height: 0; display: flex; flex-direction: column; }
.cand-detail {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; min-height: 0;
  background: transparent; border: none; border-radius: 0;
  overflow-y: auto; box-shadow: none;
}
.cand-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; min-height: 360px; color: var(--text-faint);
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; text-align: center;
}
.cand-detail-empty .dept-empty-illo { font-size: 40px; margin-bottom: 12px; }
.cand-detail-header {
  flex: 0 0 auto;
  min-height: 0;
}
.cand-detail .cand-drawer-body {
  flex: 0 0 auto;
  padding: 0;
}

/* 候选人详情：正文内各区块卡片统一间距 */
.cand-detail-pane .pos-detail { gap: 10px; }

/* 候选人详情卡片 —— 参考部门管理右侧详情面板 */
.cand-detail-pane .card {
  background: #fff; border: 1px solid #E8ECF2;
  border-radius: 8px; overflow: hidden;
  margin-bottom: 0;
}
.cand-detail-pane .card-title {
  font-size: 13px; font-weight: 700; color: #555;
  padding: 11px 18px; margin: 0;
  background: #F7F9FC;
  border-bottom: 1px solid #EEF1F5;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.cand-detail-pane .card-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px;
}
.cand-detail-pane .card-body { padding: 16px 18px 18px; }
.cand-detail-pane .di-grid { padding: 0; }

/* 候选人详情：面试记录 / Offer 记录 表格，参考部门详情页「直属子部门」样式 */
.cand-detail-pane .data-table { border-collapse: separate; border-spacing: 0; }
.cand-detail-pane .data-table thead { position: static; }
.cand-detail-pane .data-table thead th {
  background: var(--card-bg, #fff); color: var(--text-strong);
  font-weight: 600; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .3px;
}
.cand-detail-pane .data-table tbody td { border-bottom: 1px solid #F3F5F8;
  transition: background .12s;
}
.cand-detail-pane .data-table tbody tr:hover td { background: #FBFCFE; }
.cand-detail-pane .data-table tbody tr:last-child td { border-bottom: none; }

/* 候选人详情：基本信息卡片标题（姓名 + 状态徽章） */
.cand-base-title {
  justify-content: flex-start;
  gap: 10px;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.cand-base-title::before { display: none; }
.cand-base-name {
  font-size: 17px; font-weight: 700; color: #334155;
}
.cand-base-status .risk-badge { font-size: 12px; padding: 3px 10px; }

/* 候选人详情：基本信息卡片内操作按钮条 */
.cand-base-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px dashed #E2E8F0;
}
.cand-base-actions .btn-secondary,
.cand-base-actions .btn-primary { font-size: 12.5px; padding: 6px 13px; }
/* 左侧表格选中行高亮（与招聘需求 .recruit-row.selected 一致） */
.cand-row.selected { background: var(--primary-soft) !important; }
.cand-row.selected td:first-child { color: var(--primary); font-weight: 600; }
.cand-row { cursor: pointer; }
@media (max-width: 980px) {
  .cand-layout { flex-direction: column; overflow-y: auto; }
  .cand-list-pane { flex: 0 0 auto; width: 100%; max-width: none; max-height: 48vh; }
  .cand-detail-pane { min-width: 0; overflow-y: visible; }
}

/* ===================== 职位管理 · 表格/热力图/分页增强 ===================== */
.pos-usage { display: flex; align-items: center; gap: 6px; }
.pos-usage-bar { flex: 1; height: 6px; background: var(--bg); border-radius: 4px; overflow: hidden; min-width: 48px; }
.pos-usage-bar span { display: block; height: 100%; border-radius: 4px; }
.pos-usage-num { font-size: 12px; color: var(--text-secondary, #5f6368); min-width: 36px; text-align: right; }
tr.row-full td { background: rgba(245,108,108,.09); }
tr.row-near td { background: rgba(230,162,60,.11); }
tr.row-crit-vacant td { background: rgba(26,115,232,.09); }
.pos-empty { color: #EA4335; font-weight: 400; }
td.td-missing { background: rgba(234,67,53,.14) !important; box-shadow: inset 0 0 0 1px rgba(234,67,53,.35); }
.pos-site-tag { display: inline-block; font-size: 11px; color: #fff; background: var(--warning, #E6A23C); border-radius: 10px; padding: 0 6px; margin-left: 4px; }

/* 职位管理：表格滚动容器（已从树状视图改为扁平表格，原 max-height 上限已移除，
   高度由 .jf-pane > .card > .table-wrap 的 flex 撑满，避免卡底空白） */
#posTreeContainer {
  max-height: none;
  overflow: auto;
  padding-right: 6px;
}
#posTreeContainer::-webkit-scrollbar { width: 9px; }
#posTreeContainer::-webkit-scrollbar-track { background: transparent; }
#posTreeContainer::-webkit-scrollbar-thumb { background: #D8DEE8; border-radius: 5px; border: 2px solid #fff; }
#posTreeContainer::-webkit-scrollbar-thumb:hover { background: #B8C0CC; }
#posTreeContainer { scrollbar-width: thin; scrollbar-color: #D8DEE8 transparent; }

/* ===== 职位树状视图 (Position Tree) ===== */
.pt-tree { font-size: 13px; }
.pt-node { border-bottom: 1px solid var(--border, #eee); }
.pt-node:last-child { border-bottom: none; }

/* ===== 统一 Grid 布局：所有行类型共用 12 列，保证严格垂直对齐 ===== */
/* 列定义: 前缀 | 名称 | 职位数 | 编号 | 编制 | 在职 | 空缺 | 使用率 | 关键 | 状态 | 生效日期 | 结束日期 */
.pt-row {
  display: grid;
  grid-template-columns: 46px minmax(100px, 2fr) 38px 68px 44px 44px 44px 92px 52px 46px 80px 80px;
  gap: 4px 8px;
  padding: 7px 14px;
  cursor: default;
  transition: background .15s;
  align-items: center;
}
.pt-row:hover { background: rgba(0,0,0,.02); }
.pt-header { font-weight: 600; font-size: 13px; }

/* 强制每列落到固定网格位置，彻底避免 auto-placement 导致的错位 */
.pt-row > :nth-child(1) { grid-column: 1; }
.pt-row > :nth-child(2) { grid-column: 2; }
.pt-row > :nth-child(3) { grid-column: 3; }
.pt-row > :nth-child(4) { grid-column: 4; }
.pt-row > :nth-child(5) { grid-column: 5; }
.pt-row > :nth-child(6) { grid-column: 6; }
.pt-row > :nth-child(7) { grid-column: 7; }
.pt-row > :nth-child(8) { grid-column: 8; }
.pt-row > :nth-child(9) { grid-column: 9; }
.pt-row > :nth-child(10) { grid-column: 10; }
.pt-row > :nth-child(11) { grid-column: 11; }
.pt-row > :nth-child(12) { grid-column: 12; }
.pt-colheader > :nth-child(1) { grid-column: 1; }
.pt-colheader > :nth-child(2) { grid-column: 2; }
.pt-colheader > :nth-child(3) { grid-column: 3; }
.pt-colheader > :nth-child(4) { grid-column: 4; }
.pt-colheader > :nth-child(5) { grid-column: 5; }
.pt-colheader > :nth-child(6) { grid-column: 6; }
.pt-colheader > :nth-child(7) { grid-column: 7; }
.pt-colheader > :nth-child(8) { grid-column: 8; }
.pt-colheader > :nth-child(9) { grid-column: 9; }
.pt-colheader > :nth-child(10) { grid-column: 10; }
.pt-colheader > :nth-child(11) { grid-column: 11; }
.pt-colheader > :nth-child(12) { grid-column: 12; }

/* 前缀区：父节点=箭头+图标，叶子=缩进占位 */
.pt-prefix { display: flex; align-items: center; gap: 4px; overflow: hidden; }
.pt-arrow { width: 16px; text-align: center; font-size: 10px; color: var(--text-faint, #999); cursor: pointer; flex-shrink: 0; user-select: none; transition: transform .15s; }
.pt-arrow:hover { color: var(--primary); }
.pt-icon { width: 18px; height: 18px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; }
.pt-icon-fam { background: #E3F2FD; color: #1565C0; }
.pt-icon-fam::before { content: '族'; font-weight: 700; font-size: 9px; }
.pt-icon-cluster { background: #F3E5F5; color: #7B1FA2; }
.pt-icon-cluster::before { content: '列'; font-weight: 700; font-size: 9px; }

/* 名称列 —— 弹性填充剩余空间 */
.pt-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.pt-pos-name { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-pos-name a { font-weight: 400; text-decoration: none; }

/* 数据列 —— 全部固定宽度，居中 */
.pt-pos-count { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--primary); font-size: 12px; }
.pt-pos-code { color: var(--text-faint, #999); font-size: 11.5px; text-align: center; }
.pt-num { text-align: center; font-variant-numeric: tabular-nums; }
.pt-crit { text-align: center; font-size: 11.5px; }
.pt-status-col { text-align: center; }
.pt-date { text-align: center; color: var(--text-faint, #999); font-size: 11.5px; }
/* 使用率：细进度条 + 独立深色数值。数值不叠在色条上，任何比例（含超编 1600%）都清晰可读 */
.pt-usage-wrap { display: inline-flex; align-items: center; gap: 5px; min-width: 64px; vertical-align: middle; }
.pt-usage-track { flex: 1 1 24px; min-width: 20px; height: 6px; border-radius: 3px; background: #e8edf3; overflow: hidden; }
.pt-usage-bar { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
.pt-usage-txt { flex: 0 0 auto; min-width: 33px; text-align: right; font-size: 11px; font-weight: 700; line-height: 1.2; color: #334155; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-salary { font-size: 11.5px; color: #E65100; font-weight: 600; white-space: nowrap; background: #FFF3E0; padding: 1px 6px; border-radius: 3px; }

/* Children container */
.pt-children { padding-left: 18px; }

/* Level-specific styles */
.pt-family > .pt-children { background: rgba(0,0,0,.008); border-radius: 0 0 6px 6px; margin-bottom: 4px; }
.pt-cluster > .pt-row { font-weight: 400; font-size: 13px; }
.pt-grade > .pt-row { background: #FAFAFA; border-left: 3px solid var(--primary); font-size: 13px; }

/* Leaf position row */
.pt-leaf { padding: 5px 14px; font-size: 12.5px; cursor: default; }
.pt-leaf:hover { background: rgba(26,115,232,.04); }

/* 层级底色区分：职位族(蓝) / 职位序列(紫) / 职级(绿) */
.pt-family > .pt-row { background: #E8F1FB; border-left: 3px solid #1A73E8; }
.pt-family > .pt-row:hover { background: #DCEBF8; }
.pt-cluster > .pt-row { background: #F3ECFB; border-left: 3px solid #8E24AA; }
.pt-cluster > .pt-row:hover { background: #EADDF6; }
.pt-grade > .pt-row { background: #E8F6ED; border-left: 3px solid #2E7D32; }
.pt-grade > .pt-row:hover { background: #DCF0E3; }

/* 固定列标题栏 (sticky) —— 与数据行共用相同的 Grid 模板 */
.pt-colheader {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 46px minmax(100px, 2fr) 38px 68px 44px 44px 44px 92px 52px 46px 80px 80px;
  gap: 4px 8px;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 2px solid var(--border, #e0e0e0);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary, #5f6368);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  align-items: center;
}
.pt-colheader > span { text-align: center; }
.pt-colheader > span:nth-child(2) { text-align: left; }

/* 底色图例 */
.pt-legend { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-faint, #999); margin-bottom: 8px; }
.pt-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.pt-legend .lg i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1px solid transparent; }
.pt-legend .lg-tip { color: var(--text-faint, #aaa); font-size: 11px; }
.pt-toggle-step { margin-left: auto; font-size: 11px; padding: 2px 10px; border: 1px solid var(--border, #ddd); border-radius: 10px; background: #fff; color: var(--text-muted, #666); cursor: pointer; line-height: 20px; white-space: nowrap; transition: all .15s; }
.pt-toggle-step:hover { border-color: var(--purple, #A142F4); color: var(--purple, #A142F4); background: rgba(161,66,244,.04); }
.pt-toggle-all { margin-left: 8px; font-size: 11px; padding: 2px 10px; border: 1px solid var(--border, #ddd); border-radius: 10px; background: #fff; color: var(--text-muted, #666); cursor: pointer; line-height: 20px; white-space: nowrap; transition: all .15s; }
.pt-toggle-all:hover { border-color: var(--primary); color: var(--primary); background: rgba(26,115,232,.04); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 4px 0; min-height: 32px; }
.page-head h2 { font-size: 18px; margin: 0; flex-shrink: 0; color: var(--text-strong, #1f2937); font-weight: 600; min-width: 80px; }
.page-head .toolbar { margin: 0; flex-shrink: 0; }
.toolbar-sep { color: var(--text-faint); font-size: 13px; }
.input-sm { height: 32px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 9px; font-size: 13px; color: var(--text); background: var(--card-bg); font-family: inherit; box-sizing: border-box; }
.input-sm:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.input-sm[type="date"],
.input-sm[type="datetime-local"],
.input-sm[type="month"] { height: 32px; padding: 0 24px 0 9px; }

.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding: 10px 2px; }
.pager-info { font-size: 13px; color: var(--text-faint); margin-right: 6px; }
.pager-btn { border: 1px solid var(--border); background: var(--card-bg); color: var(--text); border-radius: 6px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-size { border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 13px; background: var(--card-bg); color: var(--text); margin-left: 4px; }



/* ===== 编制管理 · 战略工作台 ===== */
.quota-matrix-table td .dn.sub { color: var(--text-muted); font-size: 13px; }
.qm-toggle { display: inline-block; width: 16px; cursor: pointer; color: var(--text-muted); user-select: none; }
.qm-dept > td:first-child { font-weight: 600; background: #FAFBFC; }
/* 部门行的计划编制/可用余额为职位汇总值：加粗、不可点击 */
.qm-derived { color: var(--text-muted, #6B7280); font-weight: 700; cursor: default; }
.qm-derived .rate-txt { font-weight: 700; }
/* 部门汇总格（含 neg/bal-zero 态）一律加粗，避免被 .neg 规则降级为 600 */
.quota-matrix-table td.qm-derived { font-weight: 700; }
.qm-derived.bal-zero { color: var(--danger, #DC2626); }
.bal-zero { color: var(--danger, #DC2626); font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 4px; }
.radio-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.approver-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.approver-row .lvl { font-size: 12px; color: var(--text-muted); min-width: 42px; }
.approver-row input { flex: 1; }
.btn-icon { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-muted); cursor: pointer; line-height: 1; }
.btn-icon:hover { border-color: var(--danger, #DC2626); color: var(--danger, #DC2626); }
.warn-text { color: var(--danger, #DC2626); font-weight: 600; margin-left: 6px; }
.qa-detail { font-size: 14px; }
.qa-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.qa-row > span:first-child { min-width: 72px; color: var(--text-muted); }
.qa-approval-chain { margin-top: 12px; }
.qa-chain-title { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.qa-step { padding: 6px 10px; border-radius: 8px; font-size: 13px; margin-bottom: 6px; border: 1px solid var(--border); }
.qa-step.pend { background: #F8FAFC; color: var(--text-muted); }
.qa-step.done { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.qa-step.rej { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }

/* ===== 弹窗遮罩统一（modal-mask 与 modal-overlay 同规格） ===== */
/* 遮罩去半透明背景：弹窗浮于原页面之上（.modal 自带 box-shadow 视觉层次），
   板块内子标签栏与身后内容不被暗化，避免「视觉像被遮住」的错觉。 */
.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: transparent;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-mask.show { display: flex; }
/* 板块内子标签栏（招聘/异动/培训/公告的 .recruit-pagetabs）始终浮于弹窗遮罩之上：
   弹窗打开时子标签栏可见且可点击切换，不会被 .modal-mask(z-index:60) / .modal-overlay(z-index:110) 盖住。 */
.recruit-pagetabs { position: relative; z-index: 200; }
/* 弹窗遮罩背景不拦截指针事件：打开弹窗时板块内子标签栏（及身后内容）始终可点击切换页面；
   点击弹窗外部区域不会关闭弹窗（关闭只走 ×/取消/保存）。对话框本身保持可交互。
   这一条对所有 .modal-mask / .modal-overlay 弹窗（招聘/培训/异动/部门/公告）统一生效。 */
.modal-mask, .modal-overlay { pointer-events: none; }
.modal-mask .modal, .modal-overlay .modal { pointer-events: auto; }
/* 异动 / 离职弹窗由员工编辑弹窗内按钮打开，需浮于 empModal 之上 */
#transferModalMask { z-index: 80; }
#resignModal { z-index: 80; }
/* 所有弹窗遮罩不覆盖左侧导航栏，导航保持可见且可点击跳转到其他界面（与合同管理同步） */
.modal-mask, .modal-overlay { left: var(--sidebar-w); }
.app.collapsed .modal-mask, .app.collapsed .modal-overlay { left: var(--sidebar-w-collapsed); }
@media (max-width: 900px) {
  .modal-mask, .modal-overlay { left: 0; }
}
.modal-head > span { font-size: 16px; font-weight: 600; }
.drawer-head > span { font-size: 16px; font-weight: 600; }

/* ===== 部门「类型设置」弹窗（#deptTypeModal） ===== */
/* 布局：modal-head(固定) → dts-tabs(固定) → dts-scroll(仅列表滚动) → dts-foot(新增行/提示,固定) */

/* 尺寸（宽/高）由元素上的内联样式给：width:94vw / max-width:1720px / height:88vh。
   这里只负责列式 flex 布局：head 固定 → tabs 固定 → .dts-scroll 吃剩余高度 → foot 固定。
   ⚠️ 必须有「确定高度」（height，而非只给 max-height），.dts-scroll 的 flex:1 才能拿到剩余空间；
   只给 max-height 时容器高度仍由内容决定，列表区会被压扁到看不到几行。 */
#deptTypeModalInner { display: flex; flex-direction: column; }
/* 2026-10-30：初始高度保底 —— 浮窗化 fitFloatHeight 按空态内容收紧时，
   不得低于此值（空态只有一行提示，否则弹窗塌到 ~250px，列表区只剩两三行）。
   fitFloatHeight 已改为尊重卡片 CSS min-height（floatwin.js 同日配套修改）。 */
#deptTypeModalInner { min-height: 540px; }
#deptTypeModalInner > .modal-head { flex-shrink: 0; }
#deptTypeModalBody { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; flex: 1; min-height: 0; }

.dts-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 16px 0; border-bottom: 1px solid var(--border);
  background: var(--card-bg); flex-shrink: 0;
}
.dts-tab {
  appearance: none; background: transparent; border: none; cursor: pointer;
  padding: 7px 14px; font-size: 12.5px; color: var(--text-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.dts-tab:hover { color: var(--text); }
.dts-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.dts-count { margin-left: auto; font-size: 11.5px; color: var(--text-faint); }

/* ===== 滚动区域（仅列表数据滚动） ===== */
/* min-height 保底：即使外层高度异常导致 flex 拿不到剩余空间，列表也不会被压扁到 0。
   取 120px 的低保底（而非大值），避免在极矮窗口下把底部固定的「新增」行挤出可视区。 */
.dts-scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: auto; min-height: 120px; }
.dts-table-wrap { /* 不再需要 max-height / overflow，由外层 .dts-scroll 统一控制 */ }
.dts-table { width: 100%; min-width: 1200px; table-layout: fixed; font-size: 12.5px; border-collapse: collapse; }
.dts-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--card-bg); padding: 6px 8px; font-weight: 600;
  color: var(--text-strong); border-bottom: 1px solid var(--border);
  white-space: nowrap; text-align: center; font-size: 12.5px;
}
.dts-table td {
  padding: 4px 6px; border-bottom: 1px solid var(--border, #e0e0e0);
  color: var(--text); white-space: nowrap; text-align: center; font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis;
}
.dts-table tbody tr:hover { background: rgba(26,115,232,.04); }
.dts-table tbody tr { cursor: context-menu; }
.dts-c { text-align: center; }
.dts-kids { text-align: left; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.dts-muted { color: var(--text-faint); }
.dts-usage { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: rgba(26,115,232,.10); color: var(--primary); font-size: 11.5px; font-weight: 600; }
.dts-loading { padding: 24px; text-align: center; color: var(--text-faint); font-size: 12.5px; }

/* 列宽分配 (7列: 名称/级别/链/排序/虚拟/下级/占用) —— 操作改为行右键菜单
   弹窗加宽到 1720px 后收窄前五列，把余量集中给最长的「下级类型」，
   使一行数据（尤其下级类型列表）能完整显示、不再被 ellipsis 截断。 */
.dts-table th:nth-child(1), .dts-table td:nth-child(1) { width: 13%; }  /* 类型名称 */
.dts-table th:nth-child(2), .dts-table td:nth-child(2) { width: 5%; }  /* 级别 */
.dts-table th:nth-child(3), .dts-table td:nth-child(3) { width: 12%; }  /* 归属链 */
.dts-table th:nth-child(4), .dts-table td:nth-child(4) { width: 5%; }  /* 排序 */
.dts-table th:nth-child(5), .dts-table td:nth-child(5) { width: 5%; }  /* 虚拟 */
.dts-table th:nth-child(6), .dts-table td:nth-child(6) { width: 20%; }  /* 上级部门类型 */
.dts-table th:nth-child(7), .dts-table td:nth-child(7) { width: 18%; }  /* 下级类型（自动推导） */
.dts-table th:nth-child(8), .dts-table td:nth-child(8) { width: 7%; }   /* 占用 */
.dts-table th:nth-child(9), .dts-table td:nth-child(9) { width: 15%; }  /* 操作 */
/* 第 7 列“下级类型”内容可能很长（集团下推导 10 项），允许换行避免单行撑宽被裁 */
.dts-table td:nth-child(7) { white-space: normal; line-height: 1.35; }
.dts-thint { font-weight: 400; color: var(--text-faint); font-size: 11px; margin-left: 4px; }

/* ===== 归属链（多选）控件 + 选择浮层 =====
   「归属链」是类型上的多值标签（一条类型可属于多条链），存储为逗号分隔；
   单元格显示为收缩式文本 + 下拉箭头，点击弹出勾选浮层（position:fixed，不受弹窗滚动裁剪）。 */
.dts-chain {
  display: flex; align-items: center; gap: 4px;
  height: 26px; box-sizing: border-box; width: 100%; min-width: 0;
  border: 1px solid var(--border); background: var(--card-bg); border-radius: 4px;
  padding: 0 4px 0 6px; font-size: 12.5px; color: var(--text); cursor: pointer;
}
.dts-chain:hover { border-color: var(--primary); }
.dts-chain.is-open { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26, 115, 232, .12); }
.dts-chain-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dts-chain-caret { flex: 0 0 auto; color: var(--text-faint); font-size: 10px; line-height: 1; }
.dts-chain--new { width: 190px; flex: 0 0 190px; }
.dts-chain--new .dts-chain-txt { color: var(--text-faint); }

.dts-chain-pop {
  display: flex; flex-direction: column; overflow: hidden;
  box-sizing: border-box; width: 240px;
  /* position:fixed 直接写进 CSS：JS 定位（positionChainPop）只补 top/left，
     即便定位逻辑未跑，浮层也不会掉回文档流“藏”到页面底部（曾表现为「点了没反应」）。 */
  position: fixed; left: 0; top: 0;
  background: var(--card-bg, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px; box-shadow: 0 8px 26px rgba(15, 23, 42, .16);
  /* 层级必须高于所有弹窗/浮窗层（浮窗 5000+、弹窗遮罩 60/80、toast 99999），否则会被弹窗盖住看不见 */
  z-index: 100001; font-size: 12.5px; color: var(--text);
}
.dts-chain-pop-head { display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-strong); }
.dts-chain-pop-head small { font-weight: 400; color: var(--text-faint); }
.dts-chain-pop-x { margin-left: auto; cursor: pointer; color: var(--text-muted); font-size: 12px; }
.dts-chain-pop-x:hover { color: var(--danger); }
.dts-chain-pop-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 0; }
.dts-chain-opt { display: flex; align-items: center; gap: 6px; padding: 4px 10px; cursor: pointer; }
.dts-chain-opt:hover { background: var(--primary-soft, #E8F0FE); }
.dts-chain-opt input { margin: 0; flex: 0 0 auto; }
.dts-chain-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dts-chain-pop-empty { padding: 8px 10px; color: var(--text-faint); }
.dts-chain-pop-new { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-top: 1px solid var(--border); }
.dts-chain-pop-new .dts-in { flex: 1 1 auto; min-width: 0; }
.dts-chain-pop-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 10px; border-top: 1px solid var(--border); }
.dts-chain-pop-tip { padding: 0 10px 8px; color: var(--text-faint); font-size: 11.5px; line-height: 1.4; }

/* 类型设置：双击行进入「编辑中」高亮 + 上级部门类型列宽控制 + 行内保存按钮 */
.dts-table tr.editing > td { background: var(--primary-soft, #E8F0FE) !important; }
.dts-table tr.editing > td.col-name { box-shadow: inset 3px 0 0 var(--primary); }

.dts-btn-xs { padding: 2px 9px; font-size: 11.5px; line-height: 1.5; border-radius: 6px; }

/* subs 表 (3列) */
#dtsPaneSubs .dts-table th:nth-child(1), #dtsPaneSubs .dts-table td:nth-child(1) { width: 55%; }
#dtsPaneSubs .dts-table th:nth-child(2), #dtsPaneSubs .dts-table td:nth-child(2) { width: 15%; }
#dtsPaneSubs .dts-table th:nth-child(3), #dtsPaneSubs .dts-table td:nth-child(3) { width: 30%; }

/* ===== 底部固定区（新增行 / 提示） ===== */
.dts-foot {
  flex-shrink: 0; border-top: 1px solid var(--border);
  background: var(--card-bg); padding: 10px 16px;
}

/* 行内输入 / 下拉（紧凑：高度 26px，匹配系统小控件） */
.dts-in, .dts-sel {
  height: 26px; box-sizing: border-box; border: 1px solid var(--border); background: var(--card-bg);
  border-radius: 4px; padding: 0 6px; font-size: 12.5px; color: var(--text); outline: none;
}
.dts-in { width: 100%; }
.dts-sel { cursor: pointer; width: 100%; }
.dts-in:focus, .dts-sel:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.dts-in[disabled], .dts-sel[disabled] { background: var(--bg); color: var(--text-faint); cursor: not-allowed; }

/* 操作按钮（紧凑：高度 26px） */
.dts-btn {
  height: 26px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; font-size: 11.5px; border-radius: 4px; cursor: pointer; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text); transition: all .12s; white-space: nowrap;
}
.dts-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); }
.dts-btn + .dts-btn { margin-left: 5px; }
.dts-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.dts-btn-primary:hover { filter: brightness(1.06); color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 1px 6px rgba(26,115,232,.25); }
.dts-btn-danger { border-color: rgba(234,67,53,.35); color: var(--danger, #ea4335); background: #fff; }
.dts-btn-danger:hover { background: rgba(234,67,53,.06); color: var(--danger, #ea4335); border-color: var(--danger, #ea4335); }

/* 新增行 */
.dts-addrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dts-addrow .dts-in { width: 200px; }
.dts-subadd { display: flex; align-items: center; gap: 8px; }
.dts-subadd #dtsSubNew {
  height: 26px; box-sizing: border-box; border: 1px solid var(--border); background: var(--card-bg);
  border-radius: 4px; padding: 0 8px; font-size: 12.5px; color: var(--text); outline: none; width: 240px;
}
.dts-subadd #dtsSubNew:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.dts-hint { margin-top: 8px; font-size: 11.5px; color: var(--text-faint); line-height: 1.55; }
.dts-hint b { color: var(--text); font-weight: 600; }

/* 两个字典各自独立的新增区：明显区分（不同左侧强调色 + 标题） */
.dts-addlabel { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; padding-right: 2px; }
.dts-addrow--type { border-left: 3px solid var(--primary); background: rgba(26,115,232,.05); padding: 8px 10px; border-radius: 4px; margin-top: 12px; }
.dts-addrow--sub { border-left: 3px solid #0a8f6e; background: rgba(10,143,110,.06); padding: 8px 10px; border-radius: 4px; }
.dts-addrow--type .dts-addlabel { color: var(--primary); }
.dts-addrow--sub .dts-addlabel { color: #0a8f6e; }
.dts-addrow--sub #dtsSubNew:focus { border-color: #0a8f6e; box-shadow: 0 0 0 2px rgba(10,143,110,.18); }
.dts-addrow--sub .dts-btn-primary { background: #0a8f6e; border-color: #0a8f6e; }
.dts-addrow--sub .dts-btn-primary:hover { background: #0a8f6e; border-color: #0a8f6e; box-shadow: 0 2px 8px rgba(10,143,110,.3); }

/* 第三类：新增下级类型（点在某行「＋下级」后出现的独立框，橙色强调，与上面两个框区分） */
.dts-addrow--child { border-left: 3px solid #b26a00; background: rgba(178,106,0,.07); padding: 8px 10px; border-radius: 4px; margin-top: 10px; }
.dts-addrow--child .dts-addlabel { color: #b26a00; }
.dts-child-parent { font-size: 12px; color: var(--text); background: rgba(178,106,0,.12); border: 1px solid rgba(178,106,0,.3); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.dts-addrow--child .dts-btn-primary { background: #b26a00; border-color: #b26a00; }
.dts-addrow--child .dts-btn-primary:hover { background: #b26a00; border-color: #b26a00; box-shadow: 0 2px 8px rgba(178,106,0,.3); }
.dts-btn-clear { border-color: var(--border); color: var(--text-faint); padding: 0 9px; }
.dts-btn-clear:hover { border-color: var(--danger, #ea4335); color: var(--danger, #ea4335); background: rgba(234,67,53,.06); }

/* 第四类：改上级（点某行「改上级」后出现的独立框，靛蓝强调，与上方三个框区分） */
.dts-addrow--reparent { border-left: 3px solid #5b53c4; background: rgba(91,83,196,.07); padding: 8px 10px; border-radius: 4px; margin-top: 10px; }
.dts-addrow--reparent .dts-addlabel { color: #5b53c4; }
.dts-reparent-child { font-size: 12px; color: var(--text); background: rgba(91,83,196,.12); border: 1px solid rgba(91,83,196,.3); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.dts-reparent-arrow { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.dts-addrow--reparent .dts-btn-primary { background: #5b53c4; border-color: #5b53c4; }
.dts-addrow--reparent .dts-btn-primary:hover { background: #5b53c4; border-color: #5b53c4; box-shadow: 0 2px 8px rgba(91,83,196,.3); }

/* 以 .drawer 直接作遮罩、内含 .drawer-panel 的抽屉结构（绩效/工资/招聘详情） */
#perfDrawer, #payrollDrawer, #recruitDrawer {
  position: fixed; inset: 0; z-index: 200;
  width: auto; height: auto;
  background: rgba(15,23,42,.38); box-shadow: none;
  align-items: stretch; justify-content: flex-start;
}
.drawer-panel {
  width: min(880px, 96vw); background: #fff; height: 100%;
  display: flex; flex-direction: column;
  box-shadow: 6px 0 28px rgba(0,0,0,.14);
}

/* ===== 招聘统计 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.card-title-sub { font-size: 12px; color: var(--text-faint); font-weight: normal; margin-left: 6px; }
@media (max-width: 980px) { .stats-grid { grid-template-columns: 1fr; } }

/* ===== 入职确认向导 ===== */
.ob-steps { display: flex; gap: 8px; margin-bottom: 16px; }
.ob-step {
  flex: 1; text-align: center; padding: 8px 6px; font-size: 13px;
  background: #F3F5F9; color: var(--text-muted); border-radius: 6px;
  border: 1px solid transparent;
}
.ob-step.active { background: #E8F0FE; color: #2b6cff; font-weight: 600; border-color: #C6DAFC; }
.ob-step.done { background: #ECFDF5; color: #059669; }
.ob-tip { margin-top: 12px; font-size: 12px; color: var(--text-faint); background: #F8FAFC; border-radius: 6px; padding: 8px 10px; }
.ob-tip.warn { color: #B7791F; background: #FEF6E7; }
.ob-ro { background: #F3F5F9 !important; color: var(--text-muted) !important; cursor: not-allowed; }

/* ===== 类型设置（主从式重做）：左列表 / 右详情 ===== */
.dts2-wrap { display: flex; gap: 18px; flex: 1 1 auto; min-height: 0; padding: 14px 16px; }
.dts2-side { flex: 0 0 250px; width: 250px; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); padding-right: 14px; }
.dts2-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.dts2-side-title { font-size: 13.5px; font-weight: 600; color: var(--text-strong, var(--text)); }
.dts2-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.dts2-lv { padding: 10px 6px 3px; font-size: 11px; font-weight: 700; color: var(--text-faint); letter-spacing: .5px; }
.dts2-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text); }
.dts2-item:hover { background: var(--bg); }
.dts2-item.is-active { background: var(--primary-soft, #E8F0FE); color: var(--primary); font-weight: 600; }
.dts2-item-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dts2-vtag { flex: 0 0 auto; font-style: normal; font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 8px; background: rgba(178,106,0,.1); color: #b26a00; }
.dts2-item-meta { flex: 0 0 auto; font-size: 11.5px; color: var(--text-faint); }
.dts2-item.is-active .dts2-item-meta { color: var(--primary); }
.dts2-usage { font-weight: 600; }
.dts2-side-foot { flex-shrink: 0; border-top: 1px solid var(--border); padding-top: 10px; display: flex; }
.dts2-side-foot .dts-btn { flex: 1 1 auto; height: 30px; font-size: 12.5px; }
.dts2-main { flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto; }
/* 空态：虚线面板 + 图标 + 主副两行文案，避免整片空白 */
.dts2-empty { height: 100%; min-height: 160px; margin: 2px 2px 4px; border: 1px dashed var(--border, #E4E7EC); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-faint); font-size: 13px; }
.dts2-empty::before { content: '⚙'; width: 44px; height: 44px; border-radius: 50%; background: var(--bg, #F2F4F7); color: var(--text-faint); font-size: 20px; line-height: 44px; text-align: center; }
.dts2-empty::after { content: '点击左侧类型名称即可编辑，或在左下角新增类型'; font-size: 12px; color: var(--text-faint, #9AA0A6); opacity: .85; }
.dts2-form { max-width: 660px; padding: 2px 4px 12px 0; }
.dts2-form-head { padding-bottom: 12px; }
.dts2-form-title { font-size: 15px; font-weight: 600; color: var(--text-strong, var(--text)); }
.dts2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.dts2-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-muted, var(--text-faint)); }
.dts2-f > span { display: flex; align-items: center; gap: 4px; }
.dts2-f > span i { color: var(--danger, #ea4335); font-style: normal; }
.dts2-f > span small { color: var(--text-faint); font-weight: 400; }
.dts2-f .dts-in, .dts2-f .dts-sel { height: 32px; font-size: 13px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--card-bg); color: var(--text); box-sizing: border-box; }
.dts2-f .dts-chain { width: 100%; height: 32px; box-sizing: border-box; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--card-bg); color: var(--text); }
.dts2-f-check { flex-direction: row; align-items: center; gap: 8px; padding-top: 18px; }
.dts2-f-check em { font-style: normal; font-size: 12px; color: var(--text-faint); }
.dts2-readonly { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.dts2-ro { display: flex; gap: 12px; font-size: 13px; align-items: baseline; }
.dts2-ro > span { flex: 0 0 88px; color: var(--text-faint); font-size: 12px; }
.dts2-ro b { font-weight: 500; color: var(--text); }
.dts2-hint { margin-top: 12px; font-size: 11.5px; color: var(--text-faint); line-height: 1.6; }
.dts2-ops { margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.dts2-ops .dts-btn { height: 30px; font-size: 12.5px; padding: 0 16px; }
.dts2-ops .dts-btn + .dts-btn { margin-left: 0; }
