/**
 * ==============================================================================
 * 味源协同 OA 办公系统 - 全局流体自适应卡片与表格弹性体系 (Global Fluid Responsive Cards & Tables)
 * Version: 3.0.0 (Phase 1: 流体动力学解封与表格分页解耦)
 * Purpose: 通用、复用、彻底解耦视口绑定，自适应各种大屏分辨率 (4K/2K/1080P/超宽屏)、
 *          Windows 125%~150% 缩放、浏览器无级缩放以及多任务半屏分屏；
 *          彻底消除大屏右侧留白死锁、消除表格滚动腰斩与底部分页器重叠穿透遮挡。
 * ==============================================================================
 */

:root {
  /* --- 流体卡片网格代币 (Fluid Grid Tokens v3.0) --- */
  --fluid-card-min-hero: clamp(240px, 20vw, 480px);       /* 核心大指标卡允许在超宽屏下拉伸至 480px */
  --fluid-card-min-compact: clamp(180px, 16vw, 320px);    /* 紧凑次级卡片最小宽度 */
  --fluid-card-min-action: clamp(130px, 10vw, 200px);     /* 快捷入口按钮卡最小宽度 */
  --fluid-card-min-option: clamp(160px, 16vw, 280px);     /* 表单/权限选项卡最小宽度 */
  --fluid-card-gap: clamp(10px, 1.1vw, 18px);             /* 自适应网格间隙 */

  /* --- 流体卡片微观尺寸代币 (Fluid Sizing Tokens) --- */
  --fluid-tile-padding: clamp(12px, 1.2vw + 2px, 20px);   /* 卡片内边距 */
  --fluid-tile-radius: clamp(12px, 1vw + 4px, 18px);      /* 卡片圆角 */
  --fluid-metric-size: clamp(20px, 1.6vw + 5px, 28px);    /* 核心指标大数字 */
  --fluid-metric-line: 1.18;                              /* 指标行高 */
  --fluid-title-size: clamp(12.5px, 0.85vw + 4px, 15px);  /* 卡片主标题 */
  --fluid-subtitle-size: clamp(10.5px, 0.75vw + 3px, 12px);/* 卡片副标题/辅助文案 */
  --fluid-icon-box-size: clamp(34px, 2.3vw + 4px, 44px);  /* 图标盒子宽高 */
  --fluid-icon-font-size: clamp(16px, 1.1vw + 4px, 22px); /* 图标内部字号 */
}

/* ==============================================================================
 * 0. 全局视口与页面级大屏限宽彻底解封 (Global Max-Width Uncapping)
 *    解除 1400px/1600px 限制，使大屏/超宽屏 (1080P/2K/4K) 能够 100% 弹性填满视口
 * ============================================================================== */

html body,
html body #app,
html body .spatial-viewport,
html body .portal-viewport,
html body .spatial-main-stage,
html body .portal-main-stage,
html body .approval-company-page,
html body .approval-personal-page,
html body .personal-payroll-container,
html body .company-attendance-page,
html body .personal-attendance-page,
html body .shifts-page,
html body .organization-page,
html body .devices-page,
html body .users-page,
html body .main-stage-panel,
html body .main-content-card,
html body .portal-dashboard-page,
html body [class*="stage-body-container"],
html body [class*="main-stage-panel"],
html body [class*="main-content-card"],
html body [class*="company-attendance-page"],
html body [class*="personal-attendance-page"],
html body [class*="approval-company-page"],
html body [class*="approval-personal-page"],
html body [class*="personal-payroll-container"] {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* ==============================================================================
 * 1. 通用复用原子类 (Reusable Universal Classes)
 * ============================================================================== */

/* 通用流体指标网格 (Auto-fit Grid) */
.fluid-bento-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--fluid-card-min-hero), 1fr)) !important;
  gap: var(--fluid-card-gap) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  container-type: inline-size;
  container-name: fluidGridHost;
}

/* 紧凑型流体网格 (适用细粒度统计芯片、次级指标) */
.fluid-compact-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--fluid-card-min-compact), 1fr)) !important;
  gap: clamp(8px, 0.9vw, 12px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 快捷入口流体网格 */
.fluid-actions-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--fluid-card-min-action), 1fr)) !important;
  gap: clamp(8px, 0.9vw, 12px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 通用流体卡片外框 */
.fluid-tile {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: var(--fluid-tile-padding) !important;
  border-radius: var(--fluid-tile-radius) !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
}
.fluid-tile:hover {
  transform: translateY(-2px) !important;
}

/* 通用流体指标大数字 */
.fluid-metric-num {
  font-size: var(--fluid-metric-size) !important;
  line-height: var(--fluid-metric-line) !important;
  font-weight: 850 !important;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace !important;
  font-feature-settings: "tnum" 1 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

/* ==============================================================================
 * 2. 系统全量卡片网格适配层 (System Grid Adapters)
 * ============================================================================== */

/* 2.1 统计指标卡网格适配 (覆盖 shifts, dashboard, kpi-card, approval, users, company) */
.bento-grid,
[class*="bento-grid"],
.kpi-indicator-bar,
[class*="kpi-indicator-bar"],
.kpi-bento-grid,
[class*="kpi-bento-grid"],
.kpi-cards-grid,
[class*="kpi-cards-grid"],
.bento-telemetry-strip,
[class*="bento-telemetry-strip"],
.bento-matrix,
[class*="bento-matrix"],
.sk-bento-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--fluid-card-min-hero), 1fr)) !important;
  gap: var(--fluid-card-gap) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2.2 紧凑芯片与次级指标条适配 (approval-company, company-chips, etc.) */
.kpi-streamlined-strip,
[class*="kpi-streamlined-strip"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--fluid-card-min-compact), 1fr)) !important;
  gap: clamp(8px, 1vw, 12px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2.3 快捷入口操作卡网格适配 (dashboard 快捷通道) */
.quick-actions-row,
[class*="quick-actions-row"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--fluid-card-min-action), 1fr)) !important;
  gap: clamp(8px, 1vw, 12px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2.4 用户指引底栏网格适配 */
.guide-items-row,
[class*="guide-items-row"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 18vw, 320px), 1fr)) !important;
  gap: clamp(10px, 1.2vw, 16px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2.5 角色选择卡与权限范围选项卡适配 */
.role-card-grid,
[class*="role-card-grid"],
.scope-select-grid,
[class*="scope-select-grid"],
.tabs-select-grid,
[class*="tabs-select-grid"],
.action-switches-grid,
[class*="action-switches-grid"],
.card-switches-grid,
[class*="card-switches-grid"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--fluid-card-min-option), 1fr)) !important;
  gap: clamp(8px, 1vw, 12px) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2.6 门户配置模拟浏览器 Bento 网格 */
.sim-bento-grid,
[class*="sim-bento-grid"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 8px !important;
}

/* ==============================================================================
 * 3. 复合工作台 Stage 布局流体化 (Multi-column Stage Layouts)
 * ============================================================================== */

/* 3.1 CRM 岗位策略与配置三栏/双栏弹性化 */
.crm-policy-stage-layout,
[class*="crm-policy-stage-layout"] {
  display: grid !important;
  grid-template-columns: clamp(210px, 20vw, 270px) minmax(0, 1fr) clamp(250px, 25vw, 340px) !important;
  gap: clamp(10px, 1.2vw, 16px) !important;
  min-height: 540px !important;
  width: 100% !important;
}

@media (max-width: 1160px) {
  .crm-policy-stage-layout,
  [class*="crm-policy-stage-layout"] {
    grid-template-columns: clamp(200px, 26vw, 260px) minmax(0, 1fr) !important;
  }
}
@media (max-width: 820px) {
  .crm-policy-stage-layout,
  [class*="crm-policy-stage-layout"] {
    grid-template-columns: 1fr !important;
  }
}

/* 3.2 门户配置双栏弹性化 */
.config-stage-layout,
[class*="config-stage-layout"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  gap: clamp(12px, 1.4vw, 18px) !important;
  width: 100% !important;
}

@media (max-width: 960px) {
  .config-stage-layout,
  [class*="config-stage-layout"] {
    grid-template-columns: 1fr !important;
  }
}

/* 3.3 仪表盘双区块网格流体自适应 */
.attendance-dual-grid,
[class*="attendance-dual-grid"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) !important;
  gap: clamp(12px, 1.3vw, 18px) !important;
  width: 100% !important;
}

.finance-assets-grid,
[class*="finance-assets-grid"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 28vw, 450px), 1fr)) !important;
  gap: clamp(12px, 1.3vw, 18px) !important;
  width: 100% !important;
}

@media (max-width: 1040px) {
  .attendance-dual-grid,
  [class*="attendance-dual-grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==============================================================================
 * 4. 卡片微观元素流体增强 (Micro Fluid Typography & Sizing)
 * ============================================================================== */

/* 4.1 卡片外框内边距与防内容撑爆（开放 overflow: visible，避免弹出框/下拉框/翻页按钮被截断） */
.bento-tile,
[class*="bento-tile"],
.indicator-card,
[class*="indicator-card"],
.kpi-card,
[class*="kpi-card"],
.bento-card,
[class*="bento-card"] {
  padding: var(--fluid-tile-padding) !important;
  border-radius: var(--fluid-tile-radius) !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* 4.2 卡片主图标容器弹性缩放 */
.card-icon-box,
[class*="card-icon-box"],
.bento-icon-box,
[class*="bento-icon-box"],
.tile-icon-bubble,
[class*="tile-icon-bubble"],
.kpi-icon-box,
[class*="kpi-icon-box"],
.tile-icon-circle,
[class*="tile-icon-circle"] {
  width: var(--fluid-icon-box-size) !important;
  height: var(--fluid-icon-box-size) !important;
  font-size: var(--fluid-icon-font-size) !important;
  border-radius: clamp(8px, 0.8vw, 12px) !important;
  flex-shrink: 0 !important;
}

/* 4.3 核心指标大数字 */
.hero-num,
.big-metric,
.kpi-number,
.bento-num,
.metric-num,
.quota-big-num,
.wt-num,
.chip-num,
[class*="hero-num"],
[class*="big-metric"],
[class*="kpi-number"],
[class*="metric-num"],
[class*="quota-big-num"],
[class*="wt-num"],
[class*="chip-num"] {
  font-size: var(--fluid-metric-size) !important;
  line-height: var(--fluid-metric-line) !important;
  font-weight: 850 !important;
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace !important;
  font-feature-settings: "tnum" 1 !important;
  font-variant-numeric: tabular-nums !important;
  word-break: normal !important;
}

/* 4.4 卡片标题与标签 */
.tile-title,
.module-title,
.welcome-title,
.bar-title,
[class*="tile-title"],
[class*="module-title"],
[class*="welcome-title"],
[class*="bar-title"] {
  font-size: var(--fluid-title-size) !important;
}

.hero-lbl,
.bento-label,
.kpi-label,
.metric-label,
.chip-label,
.wt-label,
[class*="hero-lbl"],
[class*="bento-label"],
[class*="kpi-label"],
[class*="metric-label"],
[class*="chip-label"],
[class*="wt-label"] {
  font-size: var(--fluid-subtitle-size) !important;
}

/* 4.5 快捷入口卡片 (Action Tiles) 内部自适应 */
.action-tile,
[class*="action-tile"] {
  padding: clamp(8px, 0.9vw, 12px) !important;
  border-radius: clamp(8px, 0.8vw, 12px) !important;
  min-width: 0 !important;
  width: 100% !important;
}
.action-tile .tile-text,
[class*="action-tile"] [class*="tile-text"] {
  min-width: 0 !important;
  overflow: hidden !important;
}
.action-tile .tile-text strong,
[class*="action-tile"] [class*="tile-text"] strong {
  font-size: clamp(11.5px, 0.8vw + 3px, 13.5px) !important;
}

/* 4.6 卡片内部子指标弹性折行与全宽拉伸 */
.tile-sub-metrics,
[class*="tile-sub-metrics"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)) !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 卡片内部元素横向拉伸对齐，杜绝卡片内部右侧空虚 */
.tile-stat-hero,
[class*="tile-stat-hero"],
.tile-head,
[class*="tile-head"],
.bento-content,
[class*="bento-content"],
.punch-pair-row,
[class*="punch-pair-row"],
.punch-status-container,
[class*="punch-status-container"] {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* 4.7 卡片操作按钮与外链防溢出 */
.tile-action button,
[class*="tile-action"] button,
.action-btn-primary,
.action-btn-subtle {
  white-space: nowrap !important;
  font-size: clamp(11.5px, 0.8vw + 2px, 13px) !important;
  min-width: 0 !important;
  text-overflow: ellipsis !important;
}

/* ==============================================================================
 * 5. 表格与分页器解耦、自适应高度吸收与防截断机制 (Table & Pagination Resilience)
 * ============================================================================== */

/* 5.1 消除硬编码 clamp(320px, 58vh, 600px)，转为 Flex 1 弹性高度吸收 */
.table-scroll-wrapper,
[class*="table-scroll-wrapper"],
.table-scroll-container,
[class*="table-scroll-container"],
.table-container,
[class*="table-container"],
.stage-body-container,
[class*="stage-body-container"],
.hr-space-panel .el-table,
[class*="hr-space-panel"] .el-table,
.main-content-card .el-table,
[class*="main-content-card"] .el-table {
  max-height: none !important;
  flex: 1 1 0% !important;
  min-height: 280px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* 5.2 Element Plus 表格内部高度自适应与吸顶 */
.el-table {
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
.el-table .el-table__inner-wrapper {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.el-table .el-table__body-wrapper {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
}

/* 5.3 消除单元格行高截断与文字腰斩 */
.el-table td.el-table__cell .cell {
  display: flex !important;
  align-items: center !important;
  min-height: 38px !important;
  line-height: normal !important;
  overflow: visible !important;
  word-break: normal !important;
}
.el-table .cell .punch-chip,
.el-table .cell .status-badge,
.el-table .cell .tolerance-badge,
.el-table .cell .shift-pill {
  line-height: normal !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* 5.4 分页器物理独立钉底，杜绝 position: sticky 导致的次像素穿透遮挡 */
.table-pagination-footer,
[class*="table-pagination-footer"],
.table-pagination-strip,
[class*="table-pagination-strip"],
.pagination-footer,
[class*="pagination-footer"],
.table-pagination,
[class*="table-pagination"],
.pagination-pinned-footer {
  flex-shrink: 0 !important;
  position: static !important;
  bottom: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 10px !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(74, 18, 26, 0.08) !important;
  border-radius: 0 0 16px 16px !important;
  z-index: 10 !important;
  box-shadow: 0 -2px 8px rgba(74, 18, 26, 0.02) !important;
}

/* 彻底清除任何内联或类名中残存的 sticky 定位 */
[class*="pagination-footer"][style*="sticky"],
[class*="table-pagination"][style*="sticky"] {
  position: static !important;
  bottom: auto !important;
}

/* ==============================================================================
 * 6. 极窄窗口与高倍缩放兜底保护 (Safety Fallbacks)
 * ============================================================================== */

@media (max-width: 520px) {
  :root {
    --fluid-card-gap: 8px;
    --fluid-tile-padding: 10px 12px;
    --fluid-metric-size: 19px;
  }

  .bento-grid,
  [class*="bento-grid"],
  .kpi-indicator-bar,
  [class*="kpi-indicator-bar"],
  .kpi-bento-grid,
  [class*="kpi-bento-grid"],
  .kpi-cards-grid,
  [class*="kpi-cards-grid"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==============================================================================
 * 7. 阶段 2：管理后台全局文案剪枝与多余说明剔除 (Admin Copy Pruning & Redundancy Purge)
 * ============================================================================== */

/* 7.1 隐藏页面头部无意义副标题与废话说明 */
.topbar-summary-tip,
.topbar-divider,
.page-subline,
.page-subtitle,
.module-desc,
.config-desc,
.section-desc,
.header-desc,
.stage-subline,
.view-desc,
.dock-title-area .module-desc,
.head-brand .page-subtitle,
.page-topbar .page-subline,
.card-header-row .role-desc-sub {
  display: none !important;
}

/* 7.2 隐藏卡片内部占位长文本、教条式说明与废话小字 */
.tile-subtitle,
.bento-subtitle,
.tile-hint-box,
.intro-desc,
.form-item-tip,
.dual-hint,
.kpi-hint,
.stat-hint,
.action-card-intro .intro-desc {
  display: none !important;
}

/* 7.3 优化头部间距，消除隐藏副标题后的空旷感 */
.page-topbar,
.top-dock-panel,
.page-head-card,
.dock-title-area,
.head-brand {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  min-height: auto !important;
}
.page-headline,
.module-title,
.page-title {
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* ==============================================================================
 * 8. 阶段 2：卡片物理级极限瘦身与冗余卡片剔除 (Card Slimming & Merging)
 * ============================================================================== */

/* 8.1 排班与考勤规则 (/attendance/shifts) 彻底移除顶部 4 张 238px 冗余卡片 */
.shifts-page .bento-grid,
.shifts-page [class*="bento-grid"] {
  display: none !important;
}
.shifts-page .top-dock-panel {
  padding: 8px 16px !important;
  margin-bottom: 8px !important;
}
.shifts-page .main-stage-panel {
  margin-top: 0 !important;
}

/* 8.2 考勤台账 (/attendance/manage) 顶部 3 张大卡片物理降维为单行 52px 紧凑脉搏条 */
.company-attendance-page .bento-matrix {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}
.company-attendance-page .bento-matrix .bento-tile {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 6px 14px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(74, 18, 26, 0.04) !important;
  box-sizing: border-box !important;
}
.company-attendance-page .tile-header {
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.company-attendance-page .tile-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.company-attendance-page .tile-icon-badge {
  width: 26px !important;
  height: 26px !important;
  font-size: 13px !important;
  border-radius: 7px !important;
}
.company-attendance-page .tile-title {
  font-size: 13px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
}
.company-attendance-page .tile-subtitle,
.company-attendance-page .luxury-progress-track,
.company-attendance-page .dual-hint,
.company-attendance-page .dual-unit {
  display: none !important;
}
.company-attendance-page .kpi-data-row,
.company-attendance-page .stat-dual-grid,
.company-attendance-page .metric-tags-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.company-attendance-page .kpi-item,
.company-attendance-page .metric-chip,
.company-attendance-page .dual-card {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  background: rgba(74, 18, 26, 0.04) !important;
  border: 1px solid rgba(74, 18, 26, 0.06) !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.company-attendance-page .kpi-label,
.company-attendance-page .chip-name,
.company-attendance-page .dual-label {
  font-size: 11px !important;
  color: #8c7b7d !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.company-attendance-page .kpi-value,
.company-attendance-page .chip-num,
.company-attendance-page .dual-num {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", monospace !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.company-attendance-page .dual-value-row {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  gap: 2px !important;
}
.company-attendance-page .rate-badge,
.company-attendance-page .alert-count-pill {
  font-size: 11.5px !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}

/* 8.3 假勤大盘与请假审批 (/attendance/time-off) 顶部卡片紧凑脉搏条 */
.company-timeoff-page .bento-matrix {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}
.company-timeoff-page .bento-matrix .bento-tile {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 6px 14px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(74, 18, 26, 0.04) !important;
  box-sizing: border-box !important;
}
.company-timeoff-page .tile-header {
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.company-timeoff-page .tile-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.company-timeoff-page .tile-icon-badge {
  width: 26px !important;
  height: 26px !important;
  font-size: 13px !important;
  border-radius: 7px !important;
}
.company-timeoff-page .tile-title {
  font-size: 13px !important;
  font-weight: 750 !important;
  white-space: nowrap !important;
}
.company-timeoff-page .tile-subtitle {
  display: none !important;
}
.company-timeoff-page .kpi-data-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.company-timeoff-page .kpi-item {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  background: rgba(74, 18, 26, 0.04) !important;
  border: 1px solid rgba(74, 18, 26, 0.06) !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.company-timeoff-page .kpi-label {
  font-size: 11px !important;
  color: #8c7b7d !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.company-timeoff-page .kpi-value {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", monospace !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.company-timeoff-page .rate-badge {
  font-size: 11.5px !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}

/* 8.4 组织架构与人事岗位目录 (/organization) 顶部卡片降维为 58px 紧凑条 */
.organization-page .org-bento-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: 100% !important;
}
.organization-page .org-bento-grid .bento-tile {
  height: 58px !important;
  min-height: 58px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 2px 8px rgba(74, 18, 26, 0.04) !important;
}
.organization-page .tile-icon-box {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
}
.organization-page .tile-content {
  gap: 2px !important;
}
.organization-page .tile-label {
  font-size: 11.5px !important;
  margin: 0 !important;
}
.organization-page .tile-value-row {
  margin: 0 !important;
  gap: 4px !important;
}
.organization-page .tile-num {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
.organization-page .tile-unit {
  font-size: 11px !important;
}
.organization-page .mini-progress-bar,
.organization-page .tile-badge-status,
.organization-page .tile-sub {
  display: none !important;
}

/* 8.5 用户管理 (/users) 顶部卡片紧凑化 */
.users-page .page-head-card {
  padding: 10px 18px !important;
  margin-bottom: 10px !important;
  border-radius: 12px !important;
}
.users-page .page-head-card .brand-icon-box {
  width: 34px !important;
  height: 34px !important;
  font-size: 18px !important;
  border-radius: 10px !important;
}
.users-page .bento-telemetry-strip {
  gap: 10px !important;
  margin-bottom: 10px !important;
}
.users-page .bento-telemetry-strip .bento-card {
  padding: 8px 14px !important;
  height: 54px !important;
  border-radius: 10px !important;
}
.users-page .bento-telemetry-strip .bento-card .bento-icon-box {
  width: 30px !important;
  height: 30px !important;
  font-size: 16px !important;
  border-radius: 8px !important;
}
.users-page .bento-telemetry-strip .bento-card .bento-content .bento-num {
  font-size: 17px !important;
}

/* 8.6 销售中心个人中枢 (/sales/personal) 顶部卡片降维 */
.sales-personal-page .bento-matrix {
  gap: 10px !important;
  margin-bottom: 10px !important;
}
.sales-personal-page .bento-matrix .bento-tile {
  padding: 10px 14px !important;
  border-radius: 12px !important;
  min-height: auto !important;
}
.sales-personal-page .tile-subtitle,
.sales-personal-page .meta-hint {
  display: none !important;
}
.sales-personal-page .big-metric {
  font-size: 20px !important;
}

/* =========================================================================
   9. 员工协同门户治理 2.0 与大屏便民指南防截断强化
   ========================================================================= */
.portal-dashboard-page,
[class*="portal-dashboard-page"] {
  padding-bottom: 40px !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.employee-guide-footer,
[class*="employee-guide-footer"] {
  margin-top: 14px !important;
  margin-bottom: 24px !important;
  padding: 12px 18px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(74, 18, 26, 0.08) !important;
  box-shadow: 0 4px 16px rgba(74, 18, 26, 0.03) !important;
}

/* =========================================================================
   10. 人事与组织 - 组织架构与编制穿透一体化 3.0 (Unified Org & Quota Penetration Architecture)
   ========================================================================= */

.organization-revamped {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* 顶部治理标杆中枢 Header */
.unified-org-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 18, 26, 0.08);
  box-shadow: 0 4px 20px rgba(74, 18, 26, 0.03);
}

.oph-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oph-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #6e1b27;
  background: rgba(110, 27, 39, 0.08);
  padding: 2px 10px;
  border-radius: 20px;
  width: fit-content;
}

.oph-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
}

.oph-subtitle {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.oph-actions-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.oph-tool-btn {
  font-weight: 600 !important;
  border-radius: 10px !important;
}

/* 4 维动态编制与在职遥测条 */
.org-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) {
  .org-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.telemetry-card {
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 18, 26, 0.07);
  box-shadow: 0 3px 12px rgba(74, 18, 26, 0.02);
  transition: all 0.25s ease;
}

.telemetry-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 18, 26, 0.06);
}

.tc-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.tc-icon-box.bg-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.tc-icon-box.bg-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.tc-icon-box.bg-purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

.tc-icon-box.bg-rose {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
}

.tc-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.tc-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.tc-val-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.tc-val {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.tc-val.text-purple { color: #7c3aed; }
.tc-val.text-amber { color: #d97706; }
.tc-val.text-rose { color: #e11d48; }

.tc-unit {
  font-size: 11.5px;
  color: #64748b;
}

.tc-sub {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tc-progress-bar {
  width: 54px;
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-right: 4px;
}

.tc-progress-fill {
  height: 100%;
  border-radius: 4px;
}

/* 统一工作台与主表格 */
.unified-work-panel {
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(74, 18, 26, 0.08);
  box-shadow: 0 6px 24px rgba(74, 18, 26, 0.03);
}

.uwp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.uwp-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.uwp-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 表格内字段强化 */
.unified-org-table {
  border-radius: 12px;
  overflow: hidden;
}

.dept-title-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-kind-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.dept-kind-icon.is-root { color: #6e1b27; }
.dept-kind-icon.is-sub { color: #2563eb; }

.dept-title-text {
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
}

.root-org-chip {
  font-size: 10px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
}

.leader-chip-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leader-chip-cell:hover {
  background: rgba(110, 27, 39, 0.08);
  color: #6e1b27;
}

.leader-avatar-tiny {
  background: #3b82f6;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.quota-mono-pill {
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
}

.staff-count-interactive {
  font-family: monospace;
  font-weight: 800;
  font-size: 13.5px;
  color: #2563eb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.staff-count-interactive:hover {
  background: rgba(37, 99, 235, 0.08);
  text-decoration: underline;
}

.expand-staff-hint {
  font-size: 11px;
}

.status-indicator-tag {
  font-weight: 600;
  border-radius: 6px;
}

.dept-rate-progress-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-progress-pct {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  width: 38px;
  text-align: right;
}

.row-quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pos-action-btn {
  font-weight: 700 !important;
  color: #2563eb !important;
}

/* =========================================================================
   部门展开行 - 岗位与人员一体化穿透矩阵 (Embedded Position & Staff Matrix)
   ========================================================================= */

.dept-expanded-matrix {
  margin: 10px 14px 16px 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.88));
  border: 1px solid rgba(74, 18, 26, 0.09);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(74, 18, 26, 0.04);
}

.matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(74, 18, 26, 0.1);
}

.matrix-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.matrix-title {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
}

.matrix-stats-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
}

.matrix-pill.text-primary {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.matrix-pill.text-ok {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.matrix-pill.text-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.matrix-positions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dept-expanded-matrix {
  box-sizing: border-box !important;
  margin: 10px 14px 16px 14px !important;
  padding: 14px 18px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.88)) !important;
  border: 1px solid rgba(74, 18, 26, 0.09) !important;
}

.matrix-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed rgba(74, 18, 26, 0.1) !important;
}

.matrix-pos-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.matrix-pos-card:hover {
  border-color: rgba(110, 27, 39, 0.25) !important;
  box-shadow: 0 4px 14px rgba(74, 18, 26, 0.06) !important;
  transform: translateY(-1px) !important;
}

.mp-left,
.mp-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 190px !important;
  max-width: 240px !important;
  flex-shrink: 0 !important;
}

.mp-title-line {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.mp-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.mp-fam-tag {
  font-size: 10px !important;
  height: 18px !important;
  line-height: 18px !important;
  padding: 0 5px !important;
}

.mp-code {
  font-family: monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: rgba(15, 23, 42, 0.06) !important;
  color: #334155 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}

.mp-desc {
  font-size: 11px !important;
  color: #64748b !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.mp-middle {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.mp-stat-pill {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1px !important;
  background: rgba(0, 0, 0, 0.03) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
}

.mp-stat-label {
  font-size: 10px !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.mp-stat-val {
  font-family: monospace !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.mp-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex: 1 !important;
  min-width: 220px !important;
}

.mp-staff-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.mp-staff-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.mp-assign-btn {
  font-weight: 700 !important;
  font-size: 11.5px !important;
  padding: 0 !important;
  height: auto !important;
}

.mp-staff-chips {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.mp-staff-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  padding: 2px 7px !important;
  border-radius: 12px !important;
  font-size: 11.5px !important;
  color: #1e40af !important;
  font-weight: 600 !important;
}

.mp-staff-avatar {
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 10px !important;
}

.mp-staff-name {
  line-height: 1 !important;
}

.mp-staff-empty {
  font-size: 11px !important;
  color: #94a3b8 !important;
  font-style: italic !important;
}

.mp-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.matrix-empty-positions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 28px 20px !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px dashed rgba(74, 18, 26, 0.15) !important;
  border-radius: 12px !important;
  color: #64748b !important;
  font-size: 13px !important;
}

.create-first-pos-btn {
  font-weight: 600 !important;
}

/* =========================================================================
   原地人岗调配弹窗 (In-Place Staff Assignment Modal)
   ========================================================================= */

.assign-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.assign-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
}

.acb-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.acb-sub {
  font-size: 11.5px;
  color: #3b82f6;
  margin-top: 2px;
}

.assign-target-tag {
  font-weight: 700 !important;
}

.assign-user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.assign-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.assign-user-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.02);
}

.assign-user-card.auc-selected {
  background: rgba(37, 99, 235, 0.08);
  border-color: #2563eb;
}

.auc-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auc-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
}

.auc-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-left: 6px;
}

.auc-current {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-left: 8px;
  background: rgba(16, 185, 129, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
}

/* =========================================================================
   高管全景拓扑大图弹窗 (Executive Topology Chart Modal)
   ========================================================================= */

.chart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cm-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.cm-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-left: 10px;
}

.chart-zoom-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-modal-body {
  width: 100%;
  height: 72vh;
  overflow: auto;
  padding: 24px 10px 40px 10px;
  background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
}

.optic-glass-topology {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1080px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   P1 重构：组织与编制主从穿透控制台 (Master-Detail Console & Transfer Dialog)
   ========================================================================= */

.org-master-detail-stage {
  display: flex;
  gap: 16px;
  width: 100%;
  min-height: calc(100vh - 210px);
  box-sizing: border-box;
}

.org-master-sidebar {
  width: 330px;
  min-width: 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(74, 18, 26, 0.08);
  border-radius: 14px;
  padding: 16px 12px;
  box-shadow: 0 4px 20px rgba(74, 18, 26, 0.03);
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.st-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.st-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-search {
  margin-bottom: 12px;
}

.sidebar-tree-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.dept-tree-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(74, 18, 26, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dept-tree-node:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(142, 29, 41, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(142, 29, 41, 0.06);
}

.dept-tree-node.is-active {
  background: linear-gradient(135deg, rgba(142, 29, 41, 0.08) 0%, rgba(142, 29, 41, 0.03) 100%);
  border-color: #8E1D29;
  box-shadow: 0 4px 16px rgba(142, 29, 41, 0.12);
}

.dept-tree-node.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #8E1D29;
}

.node-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(142, 29, 41, 0.06);
  color: #8E1D29;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.dept-tree-node.is-active .node-icon-box {
  background: #8E1D29;
  color: #ffffff;
}

.node-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.node-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-code-tag {
  font-family: monospace;
  font-size: 11px;
  color: #64748b;
  background: rgba(100, 116, 139, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.node-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
}

.node-leader {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f766e;
  font-weight: 600;
}

.node-headcount {
  font-weight: 700;
  color: #475569;
}

.node-health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.node-health-dot.dot-green {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.node-health-dot.dot-amber {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.node-health-dot.dot-rose {
  background: #f43f5e;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.4);
}

/* Detail Workspace */
.org-detail-workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dept-hero-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(74, 18, 26, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(74, 18, 26, 0.03);
}

.dh-top-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dh-title-cluster {
  flex: 1;
  min-width: 0;
}

.dh-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dh-dept-name {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.dh-code-badge {
  font-family: monospace;
  font-size: 12px;
  color: #475569;
  background: rgba(71, 85, 105, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.dh-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.dh-leader-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 8px 14px;
  border-radius: 10px;
  flex-shrink: 0;
}

.leader-avatar-box .leader-avatar {
  background: #8E1D29;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.leader-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leader-label {
  font-size: 11px;
  color: #64748b;
}

.leader-name {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

.btn-change-leader {
  font-size: 12px;
  padding: 4px 10px;
  height: 28px;
}

.dh-quota-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px dashed rgba(74, 18, 26, 0.08);
}

.quota-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qs-label {
  font-size: 11.5px;
  color: #64748b;
}

.qs-val {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.qs-unit {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
}

.quota-progress-item {
  flex: 1;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qp-label-line {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
}

.dh-actions-cluster {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Positions Table Card */
.dept-positions-card, .dept-staff-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(74, 18, 26, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(74, 18, 26, 0.03);
}

.dpc-header, .dsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dpc-title-line, .dsc-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dpc-title-line h3, .dsc-title-line h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.dpc-count-badge, .dsc-count-badge {
  font-size: 11.5px;
  background: rgba(142, 29, 41, 0.08);
  color: #8E1D29;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
}

/* Staff Grid */
.dsc-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.staff-roster-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.2s;
}

.staff-roster-chip:hover {
  background: #ffffff;
  border-color: rgba(142, 29, 41, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.src-avatar {
  background: #8E1D29;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.src-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.src-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.src-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.src-pos {
  font-size: 11.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.src-action-btn {
  font-size: 11.5px;
  padding: 2px 6px;
  height: 24px;
}

/* Transfer Dialog */
.transfer-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 8px;
}

.td-selected-summary {
  background: rgba(142, 29, 41, 0.04);
  border: 1px solid rgba(142, 29, 41, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.td-summary-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #8E1D29;
}

.td-emp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.td-emp-pill {
  font-size: 12px;
  background: #ffffff;
  border: 1px solid rgba(142, 29, 41, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  color: #1e293b;
}



/* =========================================================================
   Phase 1: 发起人事异动 - 白玉微晶轻奢下拉菜单 (Personnel Transfer Optic Dropdown)
   ========================================================================= */

/* 1. 触发按钮现代白玉质感微晶化 */
.btn-action-dropdown {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 244, 238, 0.88)) !important;
  border: 1.5px solid rgba(74, 18, 26, 0.16) !important;
  box-shadow: 0 2px 8px rgba(74, 18, 26, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  color: #4A121A !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

.btn-action-dropdown:hover {
  background: linear-gradient(135deg, #FFFFFF, rgba(246, 239, 230, 0.98)) !important;
  border-color: #4A121A !important;
  color: #4A121A !important;
  box-shadow: 0 6px 16px rgba(74, 18, 26, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  transform: translateY(-1px) !important;
}

.btn-action-dropdown:active {
  transform: scale(0.97) translateY(0) !important;
  box-shadow: 0 2px 6px rgba(74, 18, 26, 0.08) !important;
}

.btn-dropdown-inner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-action-dropdown .dropdown-lead-icon {
  font-size: 15px;
  color: #4A121A;
  transition: transform 0.2s ease;
}

.btn-action-dropdown:hover .dropdown-lead-icon {
  transform: rotate(-15deg);
}

.btn-action-dropdown .dropdown-btn-label {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.btn-action-dropdown .dropdown-arrow-icon {
  font-size: 12px;
  color: #C88A3E;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action-dropdown:hover .dropdown-arrow-icon {
  transform: translateY(1px);
}

/* 2. 下拉 Popper 容器 (浮动毛玻璃卡片，去突兀三角形) */
.el-popper.is-light.transfer-optic-dropdown-popper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 247, 242, 0.96) 100%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(74, 18, 26, 0.1) !important;
  border-radius: 18px !important;
  padding: 8px !important;
  box-shadow: 0 24px 56px rgba(74, 18, 26, 0.18), 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  min-width: 320px !important;
  animation: transferPopperIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes transferPopperIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 隐藏老式粗糙三角箭头，采用现代微浮岛式悬浮设计 */
.transfer-optic-dropdown-popper .el-popper__arrow {
  display: none !important;
}

/* 3. 菜单头部条 (Header Banner) */
.transfer-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(74, 18, 26, 0.06);
}

.transfer-menu-header .tmh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C88A3E;
  box-shadow: 0 0 8px rgba(200, 138, 62, 0.6);
  margin-right: 6px;
}

.transfer-menu-header .tmh-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #7A696C;
  letter-spacing: 0.5px;
  flex: 1;
  text-transform: uppercase;
}

.transfer-menu-header .tmh-badge {
  font-size: 10px;
  font-weight: 700;
  color: #4A121A;
  background: rgba(74, 18, 26, 0.08);
  border: 1px solid rgba(74, 18, 26, 0.1);
  padding: 1px 7px;
  border-radius: 6px;
}

/* 4. 菜单项与 Element 默认样式覆盖 */
.transfer-optic-dropdown-popper .el-dropdown-menu {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.transfer-optic-dropdown-popper .el-dropdown-menu__item {
  padding: 0 !important;
  background: transparent !important;
  border-radius: 12px !important;
  margin-bottom: 4px !important;
  border: none !important;
  overflow: hidden !important;
}

.transfer-optic-dropdown-popper .el-dropdown-menu__item:focus,
.transfer-optic-dropdown-popper .el-dropdown-menu__item:active {
  background: transparent !important;
  color: inherit !important;
}

.transfer-optic-dropdown-popper .el-dropdown-menu__item--divided {
  margin: 6px 4px !important;
  border-top: 1px dashed rgba(74, 18, 26, 0.12) !important;
}

.transfer-optic-dropdown-popper .el-dropdown-menu__item--divided::before {
  display: none !important;
}

/* 5. 异动卡片内嵌条目 (tmi-card) */
.tmi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.transfer-menu-item:hover .tmi-card {
  background: linear-gradient(135deg, rgba(74, 18, 26, 0.05), rgba(200, 138, 62, 0.05));
  box-shadow: 0 4px 12px rgba(74, 18, 26, 0.04);
}

/* 悬浮图标盒子 */
.tmi-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.transfer-menu-item:hover .tmi-icon-box {
  transform: scale(1.08);
}

/* 图标色彩语义 */
.tmi-icon-box.box-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.08));
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.22);
}
.transfer-menu-item.item-regularize:hover .tmi-icon-box.box-green {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.tmi-icon-box.box-amber {
  background: linear-gradient(135deg, rgba(74, 18, 26, 0.12), rgba(200, 138, 62, 0.14));
  color: #4A121A;
  border: 1px solid rgba(74, 18, 26, 0.18);
}
.transfer-menu-item.item-transfer:hover .tmi-icon-box.box-amber {
  box-shadow: 0 4px 12px rgba(74, 18, 26, 0.18);
}

.tmi-icon-box.box-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(13, 148, 136, 0.08));
  color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.transfer-menu-item.item-onboard:hover .tmi-icon-box.box-blue {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.tmi-icon-box.box-rose {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(244, 63, 94, 0.06));
  color: #E11D48;
  border: 1px solid rgba(225, 29, 72, 0.2);
}
.transfer-menu-item.item-resign:hover .tmi-icon-box.box-rose {
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* 文本列 */
.tmi-text-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.tmi-main-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #2D1A1E;
  letter-spacing: 0.2px;
  line-height: 1.35;
  transition: color 0.18s ease;
}

.transfer-menu-item:hover .tmi-main-title {
  color: #4A121A;
}

.tmi-main-title.text-rose {
  color: #9F1239;
}
.transfer-menu-item.item-resign:hover .tmi-main-title.text-rose {
  color: #E11D48;
}

.tmi-sub-desc {
  font-size: 11px;
  color: #8C7377;
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-menu-item:hover .tmi-sub-desc {
  color: #5C4D50;
}

/* 右侧指示箭头 */
.tmi-arrow {
  font-size: 12px;
  color: #C88A3E;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding-right: 4px;
}

.transfer-menu-item:hover .tmi-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* =========================================================================
   Phase 2: 员工档案抽屉头部与操作坞现代化重构 (Panorama Drawer 2.0 Header & Dock)
   ========================================================================= */

/* 1. 抽屉全局外框与毛玻璃背景 */
.el-drawer.panorama-drawer {
  border-radius: 24px 0 0 24px !important;
  overflow: hidden !important;
  box-shadow: -16px 0 54px rgba(74, 18, 26, 0.18), -2px 0 12px rgba(0, 0, 0, 0.04) !important;
  background: #FAF8F5 !important;
  border-left: 1px solid rgba(74, 18, 26, 0.1) !important;
}

.panorama-drawer .el-drawer__header {
  margin: 0 !important;
  padding: 16px 22px 14px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 240, 0.94)) !important;
  border-bottom: 1px solid rgba(74, 18, 26, 0.08) !important;
}

.panorama-drawer .el-drawer__body {
  padding: 18px 22px !important;
  background: #FAF8F5 !important;
}

.panorama-drawer .el-drawer__close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(74, 18, 26, 0.06) !important;
  color: #4A121A !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.22s ease !important;
}

.panorama-drawer .el-drawer__close-btn:hover {
  background: #4A121A !important;
  color: #FFFFFF !important;
  transform: rotate(90deg) !important;
}

/* 2. 头部 Hero 身份名片区 (Hero Profile Card) */
.dh-hero-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.dh-hero-card .dh-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.dh-hero-card .dh-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dh-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.optic-luxury-avatar {
  background: linear-gradient(135deg, #4A121A 0%, #6E1B27 100%) !important;
  border: 2px solid rgba(200, 138, 62, 0.4) !important;
  box-shadow: 0 4px 16px rgba(74, 18, 26, 0.28) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  border-radius: 16px !important;
}

.dh-status-pulse-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #FFFFFF;
}

.dh-status-pulse-dot.dot-active {
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

.dh-status-pulse-dot.dot-probation {
  background: #F59E0B;
  box-shadow: 0 0 10px #F59E0B;
}

.dh-status-pulse-dot.dot-resigned {
  background: #94A3B8;
}

.dh-hero-card .dh-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dh-hero-card .dh-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dh-hero-card .dh-name {
  font-size: 20px;
  font-weight: 800;
  color: #2D1A1E;
  letter-spacing: 0.3px;
}

/* 状态与安全胶囊 */
.status-pill-badge {
  border-radius: 8px !important;
  padding: 3px 10px !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}
.status-pill-badge.badge-active {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #065F46 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.status-pill-badge.badge-probation {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #92400E !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}
.status-pill-badge.badge-resigned {
  background: rgba(148, 163, 184, 0.14) !important;
  color: #475569 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.account-pill-badge {
  border-radius: 8px !important;
  padding: 3px 10px !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}
.account-pill-badge.badge-enabled {
  background: rgba(74, 18, 26, 0.06) !important;
  color: #4A121A !important;
  border: 1px solid rgba(74, 18, 26, 0.15) !important;
}
.account-pill-badge.badge-disabled {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #991B1B !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* 身份情报徽标芯片组 (Chips Row) */
.dh-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dh-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(74, 18, 26, 0.04);
  border: 1px solid rgba(74, 18, 26, 0.08);
}
.dh-chip .chip-label {
  color: #8C7377;
  font-size: 11px;
  font-weight: 600;
}
.dh-chip .chip-val {
  color: #382427;
  font-weight: 700;
}
.dh-chip.chip-workno .chip-val {
  font-family: monospace;
  color: #4A121A;
  letter-spacing: 0.5px;
}

/* 档案资料保存主按钮 */
.dh-save-btn {
  background: linear-gradient(135deg, #4A121A 0%, #350A11 100%) !important;
  border: 1px solid rgba(200, 138, 62, 0.45) !important;
  box-shadow: 0 4px 16px rgba(74, 18, 26, 0.22) !important;
  height: 38px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dh-save-btn:hover {
  background: linear-gradient(135deg, #5E1A25, #420C15) !important;
  border-color: #C88A3E !important;
  box-shadow: 0 6px 20px rgba(74, 18, 26, 0.3) !important;
  transform: translateY(-1px) !important;
}

/* 3. 人事快捷治理微晶操作坞 (Glass Action Dock) */
.dh-operations-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 18, 26, 0.04) 0%, rgba(200, 138, 62, 0.04) 100%);
  border: 1px solid rgba(74, 18, 26, 0.08);
  flex-wrap: wrap;
}

.dh-operations-dock .dock-label-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dh-operations-dock .dock-glow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C88A3E;
  box-shadow: 0 0 8px rgba(200, 138, 62, 0.8);
}

.dh-operations-dock .dock-label {
  font-size: 12px;
  font-weight: 800;
  color: #4A121A;
  letter-spacing: 0.2px;
}

.dh-operations-dock .dock-buttons-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dock-action-btn {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.dock-action-btn.btn-dock-probation {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #B45309 !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
}
.dock-action-btn.btn-dock-probation:hover {
  background: #F59E0B !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25) !important;
}

.dock-action-btn.btn-dock-transfer {
  background: rgba(74, 18, 26, 0.08) !important;
  color: #4A121A !important;
  border: 1px solid rgba(74, 18, 26, 0.2) !important;
}
.dock-action-btn.btn-dock-transfer:hover {
  background: #4A121A !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(74, 18, 26, 0.25) !important;
}

.dock-action-btn.btn-dock-password {
  background: #FFFFFF !important;
  color: #4B5563 !important;
  border: 1px solid rgba(74, 18, 26, 0.12) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.dock-action-btn.btn-dock-password:hover {
  color: #4A121A !important;
  border-color: #4A121A !important;
  background: rgba(74, 18, 26, 0.04) !important;
}

.dock-action-btn.btn-dock-disable {
  background: rgba(225, 29, 72, 0.08) !important;
  color: #BE123C !important;
  border: 1px solid rgba(225, 29, 72, 0.2) !important;
}
.dock-action-btn.btn-dock-disable:hover {
  background: #E11D48 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25) !important;
}

.dock-action-btn.btn-dock-enable {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}
.dock-action-btn.btn-dock-enable:hover {
  background: #10B981 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
}

.dock-action-btn.btn-dock-resign {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #B91C1C !important;
  border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
.dock-action-btn.btn-dock-resign:hover {
  background: #DC2626 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
}

/* 4. 现代化分段胶囊控制条 (Segmented Pill Tabs) - 告别蓝色下划线与小箭头 */
.panorama-tabs .el-tabs__header {
  margin: 10px 0 16px 0 !important;
  border-bottom: none !important;
}

.panorama-tabs .el-tabs__nav-wrap::after {
  display: none !important;
}

.panorama-tabs .el-tabs__active-bar {
  display: none !important;
}

.panorama-tabs .el-tabs__nav-scroll {
  padding: 3px 0 !important;
  overflow: visible !important;
}

.panorama-tabs .el-tabs__nav {
  background: rgba(74, 18, 26, 0.05) !important;
  border: 1px solid rgba(74, 18, 26, 0.08) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  display: inline-flex !important;
  gap: 4px !important;
  box-shadow: inset 0 1px 3px rgba(74, 18, 26, 0.03) !important;
}

.panorama-tabs .el-tabs__item {
  padding: 0 16px !important;
  height: 35px !important;
  line-height: 35px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #6E6466 !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent !important;
}

.panorama-tabs .el-tabs__item:hover {
  color: #4A121A !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.panorama-tabs .el-tabs__item.is-active {
  background: #FFFFFF !important;
  color: #4A121A !important;
  font-weight: 800 !important;
  border: 1px solid rgba(74, 18, 26, 0.1) !important;
  box-shadow: 0 2px 8px rgba(74, 18, 26, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-0.5px) !important;
}

.panorama-tabs .el-tabs__nav-prev,
.panorama-tabs .el-tabs__nav-next {
  line-height: 42px !important;
  color: #4A121A !important;
  font-weight: bold !important;
}


/* =========================================================================
   Phase 3: 员工档案 Bento 卡片与表单微晶化 (Panorama Drawer Bento Form & Role Chips)
   ========================================================================= */

.bento-work-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 1. 顶部情报卡双列布局 (Tenure & SSO Identity) */
.bento-overview-strip {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}

.bos-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(74, 18, 26, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.bos-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 18, 26, 0.08);
}

.bos-card.card-tenure {
  background: linear-gradient(135deg, rgba(200, 138, 62, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(200, 138, 62, 0.3);
}

.bos-card.card-account {
  background: linear-gradient(135deg, rgba(74, 18, 26, 0.06) 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(74, 18, 26, 0.15);
}

.bos-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(74, 18, 26, 0.06);
  flex-shrink: 0;
}

.bos-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.bos-label {
  font-size: 11px;
  font-weight: 700;
  color: #8C7377;
  letter-spacing: 0.2px;
}

.bos-val {
  font-size: 14px;
  font-weight: 800;
  color: #2D1A1E;
}

.bos-val.highlight-gold {
  color: #B45309;
}

.bos-status-badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.bos-status-badge.badge-live {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.bos-status-badge.badge-dead {
  background: rgba(239, 68, 68, 0.1);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 2. Bento 表单模块卡片 (Bento Form Card) */
.bento-form-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(74, 18, 26, 0.08) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  box-shadow: 0 4px 16px rgba(74, 18, 26, 0.03) !important;
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(74, 18, 26, 0.06);
}

.bento-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #4A121A;
  letter-spacing: 0.2px;
}

.bento-card-sub {
  font-size: 11.5px;
  color: #8C7377;
  font-weight: 500;
}

/* 表单字段精细化美化 */
.modern-bento-form .el-form-item {
  margin-bottom: 14px !important;
}

.modern-bento-form .el-form-item__label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #5C4D50 !important;
  line-height: 32px !important;
}

.modern-bento-form .el-input__wrapper,
.modern-bento-form .el-select__wrapper {
  background: #FFFFFF !important;
  border-radius: 10px !important;
  box-shadow: 0 0 0 1px rgba(74, 18, 26, 0.12) inset !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modern-bento-form .el-input__wrapper:hover,
.modern-bento-form .el-select__wrapper:hover {
  box-shadow: 0 0 0 1.5px rgba(74, 18, 26, 0.3) inset !important;
}

.modern-bento-form .el-input__wrapper.is-focus,
.modern-bento-form .el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1.5px #4A121A inset, 0 0 0 3.5px rgba(200, 138, 62, 0.22) !important;
}

/* 3. 系统角色权限微晶卡片 (Role Chips Matrix) */
.bento-role-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(74, 18, 26, 0.08) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  box-shadow: 0 4px 16px rgba(74, 18, 26, 0.03) !important;
}

.modern-role-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

/* 隐藏原有粗糙方形勾选框 */
.modern-role-chips .el-checkbox__input {
  display: none !important;
}

.modern-role-chips .role-chip-item {
  margin: 0 !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: rgba(74, 18, 26, 0.04) !important;
  border: 1.5px solid rgba(74, 18, 26, 0.1) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.modern-role-chips .role-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9CA3AF;
  transition: all 0.2s ease;
}

.modern-role-chips .role-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: #5C4D50;
  transition: color 0.2s ease;
}

.modern-role-chips .role-chip-item:hover {
  background: rgba(74, 18, 26, 0.08) !important;
  border-color: #4A121A !important;
  transform: translateY(-1px);
}
.modern-role-chips .role-chip-item:hover .role-chip-name {
  color: #4A121A !important;
}

/* 角色胶囊选中态高亮 */
.modern-role-chips .role-chip-item.is-checked {
  background: linear-gradient(135deg, rgba(74, 18, 26, 0.1) 0%, rgba(200, 138, 62, 0.14) 100%) !important;
  border-color: #4A121A !important;
  box-shadow: 0 3px 10px rgba(74, 18, 26, 0.12) !important;
}
.modern-role-chips .role-chip-item.is-checked .role-chip-dot {
  background: #4A121A;
  box-shadow: 0 0 8px #C88A3E;
  transform: scale(1.15);
}
.modern-role-chips .role-chip-item.is-checked .role-chip-name {
  color: #4A121A !important;
  font-weight: 800 !important;
}

/* 4. 全局抽屉表单段落标题提升 (All Tabs) */
.form-section-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #4A121A !important;
  border-left: none !important;
  padding-left: 0 !important;
  margin: 14px 0 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  letter-spacing: 0.2px !important;
}

.form-section-title::before {
  content: '●';
  color: #C88A3E;
  font-size: 10px;
  filter: drop-shadow(0 0 4px rgba(200, 138, 62, 0.6));
}

/* ==============================================================================
 * 5. 白玉微晶时间轴与高密度紧凑抽屉治理 (Timeline & Compact Bento Form)
 * ============================================================================== */

/* 5.1 紧凑化 Bento 表单：大幅压缩冗余留白，提升信息显示密度 */
.bento-work-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.bento-overview-strip {
  margin-bottom: 2px !important;
}

.bento-form-card,
.bento-role-card {
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
}

.bento-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(74, 18, 26, 0.06) !important;
}

.bento-card-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #4A121A !important;
  letter-spacing: 0.3px !important;
}

.modern-bento-form .el-form-item {
  margin-bottom: 10px !important;
}

.modern-bento-form .el-form-item__label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #5C4D50 !important;
  padding-bottom: 2px !important;
}

.modern-bento-form .el-input__wrapper,
.modern-bento-form .el-select__wrapper {
  padding: 2px 10px !important;
  min-height: 32px !important;
}

/* 5.2 异动足迹时间轴全套高颜值白玉微晶样式 */
.el-timeline {
  margin: 0 !important;
  padding: 8px 0 8px 12px !important;
  list-style: none !important;
  position: relative !important;
}

.el-timeline-item {
  position: relative !important;
  padding-bottom: 24px !important;
}

.el-timeline-item:last-child {
  padding-bottom: 4px !important;
}

/* 连贯轴线 (Tail) */
.el-timeline-item__tail {
  position: absolute !important;
  left: 5px !important;
  top: 4px !important;
  height: 100% !important;
  border-left: 2px solid transparent !important;
  background: linear-gradient(to bottom, #C88A3E 0%, rgba(200, 138, 62, 0.35) 60%, rgba(74, 18, 26, 0.15) 100%) !important;
}

/* 时间点圆圈徽记 (Node) */
.el-timeline-item__node {
  position: absolute !important;
  background-color: #FFFFFF !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  left: 0 !important;
  top: 2px !important;
  width: 12px !important;
  height: 12px !important;
  border: 2px solid #C88A3E !important;
  box-shadow: 0 0 8px rgba(200, 138, 62, 0.5) !important;
  z-index: 2 !important;
}

.el-timeline-item__node--primary {
  border-color: #4A121A !important;
  background-color: #C88A3E !important;
  box-shadow: 0 0 10px rgba(74, 18, 26, 0.5) !important;
}

.el-timeline-item__node--success {
  border-color: #059669 !important;
  background-color: #10B981 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5) !important;
}

.el-timeline-item__node--warning {
  border-color: #D97706 !important;
  background-color: #F59E0B !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5) !important;
}

.el-timeline-item__node--danger {
  border-color: #E11D48 !important;
  background-color: #FDA4AF !important;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.5) !important;
}

/* 时间轴内容卡片外包装 (Wrapper) */
.el-timeline-item__wrapper {
  position: relative !important;
  padding-left: 28px !important;
  top: -3px !important;
}

/* 时间戳样式 (Timestamp) */
.el-timeline-item__timestamp {
  color: #8A7B7D !important;
  line-height: 1.2 !important;
  font-size: 12px !important;
  font-family: var(--el-font-family-mono, monospace) !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  letter-spacing: 0.3px !important;
}

.el-timeline-item__content {
  color: #4A121A !important;
}

/* 5.3 组织定编卡片指标视觉纠偏类 */
.tc-icon-box.bg-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%) !important;
  color: #059669 !important;
}
.tc-val.text-emerald {
  color: #059669 !important;
}


/* ==============================================================================
 * 员工全景档案 - 固定资产领用台账白玉微晶卡片体系 ("人-岗-资" 一体化)
 * ============================================================================== */
.employee-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.employee-asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.employee-asset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.08);
}
.employee-asset-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5px;
  height: 100%;
  background: linear-gradient(180deg, #d97706 0%, #f59e0b 100%);
  opacity: 0.85;
}
.eac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.eac-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.eac-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  flex-shrink: 0;
}
.eac-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eac-code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.eac-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
  padding-left: 36px;
}
.eac-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.5;
}
.eac-label {
  color: #94a3b8;
}
.eac-val {
  color: #334155;
  font-weight: 500;
}
.eac-remark {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(248, 250, 252, 0.85);
  font-size: 11.5px;
  color: #64748b;
  border-left: 2.5px solid #cbd5e1;
  line-height: 1.4;
}
