/* 金昌市人民医院医疗集团 人事管理系统 —— 主题样式（主色 #40B5B5） */
/* Vue 挂载前隐藏未编译模板，避免闪现登录页 */
[v-cloak] { display: none; }
/* 启动遮罩：Vue 挂载成功后自动隐藏 */
#boot-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b3d3d 0%, #14524f 100%); color: #fff;
}
#boot-splash .spinner {
  width: 42px; height: 42px; margin-bottom: 18px;
  border: 4px solid rgba(255,255,255,.25); border-top-color: #40B5B5;
  border-radius: 50%; animation: boot-spin 0.9s linear infinite;
}
#boot-splash .tip { font-size: 14px; letter-spacing: 2px; color: #bfe8e5; }
@keyframes boot-spin { to { transform: rotate(360deg); } }
#app:not([v-cloak]) ~ #boot-splash { display: none; }

:root {
  --hr-primary: #40B5B5;
  --hr-primary-dark: #2E9E9E;
  --hr-primary-light: #E6F6F6;
  --hr-bg: #F2F5F7;
  /* 全局字号基准上调：EP 默认 14px，本系统面向医院用户统一放大 */
  --el-font-size-base: 15px;
  --el-font-size-extra-large: 19px;
  --el-font-size-large: 17px;
  --el-font-size-medium: 16px;
  --el-font-size-small: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
body { font-size: 15px; }

/* 组件内文字同步放大（表格/弹窗/抽屉/表单/下拉/分页等） */
.el-table { font-size: 14px; }
.el-dialog, .el-drawer { font-size: 15px; }
.el-form-item__label { font-size: 15px; }
.el-input, .el-select, .el-textarea { font-size: 15px; }
.el-dropdown-menu__item { font-size: 14px; }
.el-pagination { font-size: 14px; }
.el-message-box { font-size: 15px; }

/* ============ 登录页 ============ */
.login-page {
  height: 100%; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0B3D3D 0%, #177572 48%, #2E9E9E 100%);
  display: flex; align-items: center; justify-content: center;
}
.login-page::before, .login-page::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.login-page::before {
  width: 760px; height: 760px; top: -280px; right: -220px;
  background: radial-gradient(circle, rgba(107, 207, 198, .38), transparent 65%);
}
.login-page::after {
  width: 600px; height: 600px; bottom: -240px; left: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 60%);
}
/* 医疗十字暗纹 */
.login-med-pattern {
  position: absolute; inset: 0; opacity: .06; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M30 20h12v10h10v12H42v10H30V42H20V30h10z' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
}
.login-card {
  position: relative; z-index: 2;
  width: 1000px; max-width: 94vw; min-height: 560px;
  display: flex; border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 32px 80px rgba(2, 32, 32, .45);
  animation: login-card-in .55s ease both;
}
@keyframes login-card-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* 左侧 · 品牌视觉区 */
.login-visual {
  width: 460px; flex-shrink: 0; position: relative; overflow: hidden;
  padding: 54px 44px 34px; color: #fff;
  background: linear-gradient(168deg, #177572 0%, #2E9E9E 58%, #46BFB6 100%);
  display: flex; flex-direction: column;
}
.login-visual::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .07);
  top: -120px; right: -110px;
}
.lv-ecg { position: absolute; left: 0; bottom: 96px; width: 100%; height: 90px; z-index: 0; }
.lv-ecg path { stroke-dasharray: 520 220; animation: lv-ecg-run 4.5s linear infinite; }
@keyframes lv-ecg-run { from { stroke-dashoffset: 740; } to { stroke-dashoffset: 0; } }
.lv-badge {
  position: relative; z-index: 1; align-self: flex-start;
  padding: 5px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; font-size: 12px; letter-spacing: 1px;
}
.lv-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lv-kicker { font-size: 11px; letter-spacing: 2px; opacity: .72; margin-bottom: 12px; }
.lv-title { font-size: 30px; line-height: 1.45; font-weight: 600; letter-spacing: 3px; }
.lv-slogan { margin-top: 12px; font-size: 15px; letter-spacing: 2px; opacity: .85; }
.lv-intro { margin-top: 14px; font-size: 13px; line-height: 1.9; opacity: .78; letter-spacing: .5px; text-align: justify; }
.lv-stats { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; }
.lv-stat { padding: 0 16px; text-align: center; }
.lv-stat:first-child { padding-left: 0; }
.lv-stat + .lv-stat { border-left: 1px solid rgba(255, 255, 255, .28); }
.lv-stat b { display: block; font-size: 20px; letter-spacing: 1px; }
.lv-stat span { display: block; margin-top: 3px; font-size: 12px; opacity: .75; }
.lv-foot { position: relative; z-index: 1; font-size: 12px; opacity: .7; letter-spacing: 1px; }

/* 右侧 · 登录表单区 */
.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.lp-inner { width: 350px; }
.lp-logo {
  width: 320px; max-width: 100%; display: block; margin: 0 auto 32px;
}
.lp-title { font-size: 26px; color: #1f2d2d; font-weight: 700; letter-spacing: 1px; text-align: center; }
.lp-sub { color: #8a9696; font-size: 13px; margin: 8px 0 30px; letter-spacing: .5px; text-align: center; }
.lp-form .el-form-item { margin-bottom: 22px; }
.lp-form .el-input__wrapper {
  border-radius: 10px; padding: 4px 14px; box-shadow: 0 0 0 1px #dde5e5 inset;
  transition: box-shadow .2s;
}
.lp-form .el-input__wrapper:hover { box-shadow: 0 0 0 1px #9fcfcb inset; }
.lp-form .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px var(--hr-primary) inset, 0 0 0 3px rgba(64, 181, 181, .15);
}
.lp-form .el-input__inner { height: 40px; font-size: 15px; }
.lp-btn {
  width: 100%; height: 46px; font-size: 16px; letter-spacing: 6px; border-radius: 10px;
  background: linear-gradient(135deg, #40B5B5, #2E9E9E); border: none;
  box-shadow: 0 10px 22px rgba(46, 158, 158, .35);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.lp-btn:hover, .lp-btn:focus {
  background: linear-gradient(135deg, #4CC2BE, #33A8A5); border: none;
  transform: translateY(-1px); box-shadow: 0 14px 26px rgba(46, 158, 158, .42);
}
.lp-tip { margin-top: 26px; color: #b6c2c2; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .login-visual { display: none; }
  .login-card { width: 440px; min-height: 0; }
}

/* ============ 主框架 ============ */
.layout { height: 100%; display: flex; flex-direction: column; background: var(--hr-bg); }
.layout-header {
  height: 64px; display: flex; align-items: center; position: relative;
  padding: 0 22px; z-index: 10; color: #fff;
  background: linear-gradient(90deg, #0B3D3D 0%, #146663 50%, #2E9E9E 100%);
  box-shadow: 0 2px 12px rgba(3, 38, 38, .28);
}
/* 细斜纹肌理，提升质感 */
.layout-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 10px);
}
/* 底缘渐变亮线，呼应医疗主色 */
.layout-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #40B5B5, #6BCFC6 45%, transparent 85%);
  pointer-events: none;
}
.hd-logo-box {
  width: 48px; height: 48px; margin-right: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hd-logo-box img { height: 100%; width: 100%; display: block; object-fit: contain; }
.hd-brand { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; }
.layout-header .title { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 2px; }
.hd-brand-sub { font-size: 10px; color: rgba(255, 255, 255, .62); letter-spacing: 1.5px; margin-top: 2px; white-space: nowrap; }
.layout-header .right { margin-left: auto; display: flex; align-items: center; gap: 16px; color: #fff; font-size: 14px; position: relative; }
/* 顶栏分区竖分隔线 */
.hd-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, .22); flex-shrink: 0; }
/* 实时日期时钟 */
.hd-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255, 255, 255, .85); letter-spacing: .5px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* 院区视图选择器（带前缀标签） */
.hd-campus { display: inline-flex; align-items: center; gap: 8px; }
.hd-campus-label { font-size: 12px; color: rgba(255, 255, 255, .72); letter-spacing: 1px; white-space: nowrap; }
/* 顶栏院区选择器：毛玻璃风格 */
.layout-header .el-select .el-input__wrapper {
  background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset;
  border-radius: 8px; transition: background .2s, box-shadow .2s;
}
.layout-header .el-select .el-input__wrapper:hover { background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 1px rgba(255, 255, 255, .38) inset; }
.layout-header .el-select .el-input__wrapper.is-focus { background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset; }
.layout-header .el-select .el-input__inner { color: #fff; }
.layout-header .el-select .el-input__inner::placeholder { color: rgba(255, 255, 255, .7); }
.layout-header .el-select .el-select__caret,
.layout-header .el-select .el-input__suffix { color: #fff; }
/* 顶栏图标按钮（消息铃铛） */
.hd-icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: #e6f4f3; cursor: pointer; transition: background .2s, color .2s;
}
.hd-icon-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
/* 顶栏用户胶囊 */
.hd-user {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  transition: background .2s;
}
.hd-user:hover { background: rgba(255, 255, 255, .2); }
.hd-user .el-avatar { background: #fff; color: #2E9E9E; font-size: 14px; font-weight: 600; }
.hd-user-name { font-size: 14px; color: #fff; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-user-caret { color: rgba(255, 255, 255, .75); font-size: 12px; }
.layout-body { flex: 1; display: flex; overflow: hidden; }
.layout-side { width: 208px; background: #00333A; padding-top: 8px; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.layout-side::-webkit-scrollbar { display: none; width: 0; }
.layout-side .el-menu { border-right: none; }
.layout-side .el-menu-item { font-size: 15px; }
.layout-main { flex: 1; padding: 16px; overflow-y: auto; }

/* ============ 通用卡片 ============ */
.page-card { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 14px; }
.page-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 12px; display: flex; align-items: center; }
.page-title::before { content: ""; width: 4px; height: 16px; background: var(--hr-primary); border-radius: 2px; margin-right: 8px; }

/* ============ 执业管理 ============ */
/* 分签：图标 + 青色指示条 */
.pr-tabs .el-tabs__item { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; }
.pr-tabs .el-tabs__item .el-icon { margin-right: 5px; font-size: 16px; }
.pr-tabs .el-tabs__active-bar { background-color: var(--hr-primary-dark); height: 3px; border-radius: 2px; }
.pr-tabs .el-tabs__item.is-active { color: var(--hr-primary-dark); }
.pr-tabs .el-tabs__item:hover { color: var(--hr-primary); }
/* 指标卡（左色条 + 图标圆 + 大数字，与驾驶舱 KPI 同语言） */
.pr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
.pr-stat {
  background: #fff; border: 1px solid #eef2f3; border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 13px; position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.pr-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 60, 60, .12); }
.pr-stat::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--kc, var(--hr-primary));
}
.pr-stat-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: var(--kc, var(--hr-primary));
  background: color-mix(in srgb, var(--kc, #2E9E9E) 10%, #fff);
}
.pr-stat-main { display: flex; flex-direction: column; min-width: 0; }
.pr-stat-main b { font-size: 25px; line-height: 1.15; color: var(--kc, #1f2d2d); font-variant-numeric: tabular-nums; }
.pr-stat-main span { margin-top: 3px; font-size: 12.5px; color: #556161; }
/* 筛选工具条 */
.pr-filter {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: #f6fafa; border: 1px solid #e3eeee; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
}
/* 表格容器：圆角包裹 + 斑马纹 + 表头青绿底 */
.pr-table-wrap .el-table { border-radius: 10px; overflow: hidden; }
.pr-table-wrap .el-table th.el-table__cell {
  background: #eef8f8; color: #155e75; font-weight: 600; font-size: 13px;
}
.pr-table-wrap .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell { background: #fafdfd; }
.pr-table-wrap .el-table__body tr:hover > td.el-table__cell { background: #eef8f8 !important; }
/* 证书类型 tag 着色 */
.pr-cert-tag.el-tag--primary { --el-tag-bg-color: #e6f6f6; --el-tag-border-color: #b8e4e4; --el-tag-text-color: #0e7490; }

/* 统计卡片 */
/* ============ 人事总览（驾驶舱） ============ */
/* 欢迎横幅 */
.dash-hero {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 12px; padding: 22px 28px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(115deg, #0B3D3D 0%, #177572 52%, #2E9E9E 100%);
  box-shadow: 0 6px 18px rgba(11, 61, 61, .22); position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 34px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.dash-hero-hi { font-size: 21px; font-weight: 600; letter-spacing: 1px; }
.dash-hero-sub { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .72); letter-spacing: .5px; }
.dash-hero-right { display: flex; gap: 10px; position: relative; z-index: 1; }
.dash-hero-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
  font-size: 13px; cursor: pointer; transition: background .2s; white-space: nowrap;
}
.dash-hero-chip:hover { background: rgba(255, 255, 255, .24); }
.dash-hero-chip b { font-size: 16px; }
/* 核心指标卡 */
.dash-kpi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.dash-kpi-card {
  background: #fff; border-radius: 10px; padding: 16px 16px 14px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
  border: 1px solid #eef2f3; transition: transform .15s, box-shadow .15s;
}
.dash-kpi-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 60, 60, .12); }
.dash-kpi-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--kc, var(--hr-primary)); border-radius: 0 2px 2px 0;
}
.dash-kpi-ico {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--kc, var(--hr-primary)); background: color-mix(in srgb, var(--kc, #2E9E9E) 10%, #fff);
}
.dash-kpi-main { display: flex; flex-direction: column; }
.dash-kpi-main b { font-size: 26px; line-height: 1.15; color: #1f2d2d; font-variant-numeric: tabular-nums; }
.dash-kpi-main span { margin-top: 2px; font-size: 13px; color: #556161; }
.dash-kpi-card em { font-style: normal; font-size: 11.5px; color: #a3b0b0; }
/* 总览栅格行 */
.dash-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.dash-row-4 { grid-template-columns: repeat(4, 1fr); }
.dash-card { margin-bottom: 0 !important; display: flex; flex-direction: column; }
.dash-side-col { display: flex; flex-direction: column; gap: 14px; }
/* 趋势柱状图 */
.dash-legend { margin-left: auto; font-size: 12px; font-weight: 400; color: #8a9696; display: inline-flex; align-items: center; gap: 5px; }
.dash-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.dash-legend .lg-in { background: linear-gradient(180deg, #4CC2BE, #2E9E9E); margin-left: 0; }
.dash-legend .lg-out { background: linear-gradient(180deg, #FBBF77, #F59E0B); }
.dash-trend { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 172px; padding-top: 8px; }
.dash-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.dash-trend-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.dash-trend-bars i { width: 9px; border-radius: 4px 4px 0 0; transition: height .4s ease; min-height: 0; }
.dash-trend-bars .bar-in { background: linear-gradient(180deg, #4CC2BE, #2E9E9E); }
.dash-trend-bars .bar-out { background: linear-gradient(180deg, #FBBF77, #F59E0B); }
.dash-trend-bars .bar-cost { width: 16px; background: linear-gradient(180deg, #6BCFC6, #177572); }
.dash-trend-col span { font-size: 11px; color: #9aa7a7; white-space: nowrap; }
.dash-trend-foot { margin-top: 10px; font-size: 12.5px; color: #8a9696; }
.dash-trend-foot b { color: var(--hr-primary-dark); font-size: 14px; }
/* 编制饱和度 */
.dash-sat { display: flex; flex-direction: column; gap: 9px; flex: 1; justify-content: center; }
.dash-sat-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dash-sat-name { width: 86px; flex-shrink: 0; color: #556161; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-sat-bar { flex: 1; height: 8px; border-radius: 99px; background: #eef3f3; overflow: hidden; }
.dash-sat-bar i { display: block; height: 100%; border-radius: 99px; transition: width .4s ease; }
.dash-sat-num { width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
.dash-sat-cnt { width: 58px; text-align: right; color: #9aa7a7; font-variant-numeric: tabular-nums; }
/* 结构分布条形 */
.dash-dist { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: center; }
.dash-dist-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dash-dist-name { width: 72px; flex-shrink: 0; color: #556161; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-dist-bar { flex: 1; height: 8px; border-radius: 99px; background: #eef3f3; overflow: hidden; }
.dash-dist-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6BCFC6, #2E9E9E); transition: width .4s ease; }
.dash-dist-row b { width: 42px; text-align: right; color: #1f2d2d; font-variant-numeric: tabular-nums; }
/* 绩效/预警小卡 */
.dash-perf-period { margin-left: 6px; font-size: 12px; font-weight: 400; color: #9aa7a7; }
.dash-lost { display: flex; flex-direction: column; gap: 8px; }
.dash-lost-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 10px; border-radius: 8px; background: #FDF6F0; }
.dash-lost-ico { color: #F59E0B; flex-shrink: 0; }
.dash-lost-row b { color: #1f2d2d; }
.dash-lost-row span { color: #8a9696; font-size: 12px; }
.dash-lost-row em { margin-left: auto; font-style: normal; color: #b0a090; font-size: 12px; }
.dash-empty { padding: 22px 0; text-align: center; color: #b0bcbc; font-size: 13px; }
.dash-empty-ok { color: #67b98f; }
@media (max-width: 1360px) {
  .dash-kpi { grid-template-columns: repeat(3, 1fr); }
  .dash-row-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ================= 组织架构 v2（现代卡片式） ================= */
.orgv2 { display: flex; flex-direction: column; gap: 14px; }
/* 顶栏：标题 + 全局搜索 */
.orgv2-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.orgv2-title { font-size: 22px; font-weight: 700; color: #1f2d2c; letter-spacing: .5px; }
.orgv2-sub { font-size: 14px; color: #8ba0a0; margin-top: 3px; }
.orgv2-hero-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.orgv2-search { width: 320px; }
.orgv2-search .el-input__wrapper { border-radius: 20px; padding: 1px 16px; box-shadow: 0 0 0 1px #dbe6e5 inset; }
.orgv2-search .el-input__wrapper:hover, .orgv2-search .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px var(--hr-primary) inset; }
.orgv2-sug { line-height: 1.45; padding: 2px 0; }
.orgv2-sug .n { font-size: 14px; color: #26302f; }
.orgv2-sug .p { font-size: 13px; color: #9aa8a7; }
.orgv2-sug-popper { max-width: 440px; }
/* 主体：左栏完整组织树 + 右侧详情 */
.orgv2-body { display: flex; gap: 14px; align-items: flex-start; }
.orgv2-side { width: 340px; flex-shrink: 0; background: #fff; border: 1px solid #e9f0ef; border-radius: 14px; box-shadow: 0 1px 4px rgba(30,60,60,.04); padding: 12px; position: sticky; top: 0; max-height: calc(100vh - 190px); min-height: 560px; display: flex; flex-direction: column; }
.orgv2-tree-tools { display: flex; gap: 8px; margin-bottom: 10px; flex-shrink: 0; }
.orgv2-tree-tools .el-select { flex: 1; }
.orgv2-tree { flex: 1; overflow-y: auto; background: transparent; }
.orgv2-tree .el-tree-node__content { height: 36px; border-radius: 9px; margin: 1px 0; }
.orgv2-tree .el-tree-node__content:hover { background: #f3f8f7; }
.orgv2-tree .el-tree-node.is-current > .el-tree-node__content { background: var(--hr-primary-light); }
.orgv2-tree .el-tree-node.is-current .orgv2-node .nm { color: var(--hr-primary-dark); font-weight: 600; }
.orgv2-node { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 6px; }
.orgv2-node .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.orgv2-node .nm { flex: 1; font-size: 14px; color: #33413f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgv2-node .ct { flex-shrink: 0; font-size: 13px; color: #9aa8a7; background: #f0f4f4; border-radius: 9px; padding: 0 8px; line-height: 19px; }
.orgv2-node .ct.on { color: var(--hr-primary-dark); background: rgba(64,181,181,.14); }
.orgv2-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.orgv2-empty { background: #fff; border: 1px solid #e9f0ef; border-radius: 14px; color: #aab6b5; text-align: center; padding: 100px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.orgv2-empty .t1 { font-size: 16px; font-weight: 600; color: #67777a; margin-top: 6px; }
.orgv2-empty .t2 { font-size: 14px; }
/* 头部卡片 */
.orgv2-hdcard { background: #fff; border: 1px solid #e9f0ef; border-radius: 14px; box-shadow: 0 1px 4px rgba(30,60,60,.04); padding: 18px 20px; }
.orgv2-hdcard .hd-top { display: flex; align-items: center; gap: 14px; }
.orgv2-hdcard .hd-avatar { width: 52px; height: 52px; border-radius: 14px; color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 3px 8px rgba(30,60,60,.16); }
.orgv2-hdcard .hd-info { flex: 1; min-width: 0; }
.orgv2-hdcard .hd-name { font-size: 19px; font-weight: 700; color: #1f2d2c; display: flex; align-items: center; flex-wrap: wrap; }
.orgv2-hdcard .hd-path { font-size: 13px; color: #9aa8a7; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orgv2-hdcard .hd-path .crumb { cursor: pointer; }
.orgv2-hdcard .hd-path .crumb:hover { color: var(--hr-primary); }
.orgv2-hdcard .hd-path .crumb.cur { color: var(--hr-primary-dark); font-weight: 600; cursor: default; }
.orgv2-hdcard .hd-path .crumb-sep { margin: 0 6px; color: #c9d4d3; }
.orgv2-hdcard .hd-ops { display: flex; gap: 8px; flex-shrink: 0; }
.orgv2-hdcard .hd-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e5eeee; }
.orgv2-hdcard .pill { display: flex; align-items: baseline; gap: 7px; background: #f7faf9; border: 1px solid #e9f0ef; border-radius: 10px; padding: 8px 16px; }
.orgv2-hdcard .pill b { font-size: 18px; font-weight: 700; color: var(--hr-primary-dark); }
.orgv2-hdcard .pill:not(:has(b)) { font-size: 14px; color: #5b6b6a; }
/* 通用卡片与分区标题 */
.orgv2-card { background: #fff; border: 1px solid #e9f0ef; border-radius: 14px; box-shadow: 0 1px 4px rgba(30,60,60,.04); padding: 16px 20px; }
.orgv2-sec { font-size: 15px; font-weight: 600; color: #26302f; display: flex; align-items: center; margin-bottom: 12px; }
.orgv2-sec::before { content: ""; width: 4px; height: 15px; background: var(--hr-primary); border-radius: 2px; margin-right: 8px; }
.orgv2-sec .cnt { font-size: 13px; font-weight: 500; color: var(--hr-primary-dark); background: var(--hr-primary-light); border-radius: 9px; padding: 1px 9px; margin-left: 8px; }
.orgv2-sec .orgv2-sec-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 成员表分页 */
.orgv2-pager { display: flex; justify-content: flex-end; margin-top: 12px; }

/* 档案抽屉：分区卡片式排版 */
.emp-section {
  margin-bottom: 16px; background: #fff;
  border: 1px solid #e6efee; border-radius: 8px;
  padding: 14px 16px; box-shadow: 0 1px 3px rgba(0, 60, 60, .04);
}
.emp-section h4 {
  font-size: 15px; font-weight: 600; color: var(--hr-primary-dark);
  margin-bottom: 12px; border-left: 3px solid var(--hr-primary);
  padding-left: 8px; display: flex; align-items: center; justify-content: space-between;
}
/* 档案抽屉：人员头卡 —— 淡青底 + 大证件照 + 核心信息 + 右侧指标 */
.pf-head {
  display: flex; gap: 28px; align-items: center;
  background: linear-gradient(120deg, #e6f2f0 0%, #f4f9f8 70%, #fbfdfd 100%);
  border: 1px solid #dbe9e6; border-radius: 14px; padding: 24px 30px;
  box-shadow: 0 4px 16px rgba(11, 61, 61, .07);
  position: relative; overflow: hidden;
}
/* 头卡内容置于水印之上 */
.pf-photo, .pf-info, .pf-stats { position: relative; z-index: 1; }
/* 中共党员党徽水印：右下角高透明度 */
.pf-party {
  position: absolute; right: 10px; top: 0; height: 100%; width: auto;
  opacity: .15; pointer-events: none; user-select: none;
}
/* 非党员：医院圆形 logo 水印，占满头卡高度，圆形裁切去掉白底方角 */
.pf-party-hospital { top: 0; height: 100%; width: auto; border-radius: 50%; opacity: .13; }

/* ===== 消息中心：头卡横幅 + 彩色胶囊筛选 + 未读高亮表格 ===== */
.msg-hd {
  display: flex; align-items: center; gap: 18px; margin-bottom: 14px;
  background: linear-gradient(120deg, #e6f2f0 0%, #f4f9f8 70%, #fbfdfd 100%);
  border: 1px solid #dbe9e6; border-radius: 14px; padding: 20px 26px;
  box-shadow: 0 4px 16px rgba(11, 61, 61, .07);
}
.msg-hd-ico {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg, #2E9E9E, #177572);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(23, 117, 114, .35);
}
.msg-hd-t { font-size: 20px; font-weight: 700; color: #0b3d3d; letter-spacing: 2px; }
.msg-hd-s { font-size: 13px; color: #5d7371; margin-top: 4px; }
.msg-hd-stat { display: flex; margin-left: 14px; }
.msg-hd-stat > div { text-align: center; padding: 0 24px; }
.msg-hd-stat > div + div { border-left: 1px solid #d5e4e2; }
.msg-hd-stat b { display: block; font-size: 24px; line-height: 1.2; color: #177572; }
.msg-hd-stat > div:first-child b { color: #d64550; }
.msg-hd-stat span { font-size: 12px; color: #8aa19f; }
.msg-hd-btn { margin-left: auto; display: flex; gap: 10px; }
/* 类型胶囊筛选条 */
.msg-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.msg-bar a {
  padding: 5px 15px; border-radius: 16px; font-size: 13px; color: #5d7371;
  background: #fff; border: 1px solid #dce8e6; cursor: pointer; user-select: none;
  transition: all .18s; box-shadow: 0 1px 3px rgba(15, 45, 45, .05);
  display: inline-flex; align-items: center; gap: 6px;
}
.msg-bar a.m1::before, .msg-bar a.m2::before, .msg-bar a.m3::before, .msg-bar a.m4::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mc, #9db4b2);
}
.msg-bar a.m1 { --mc: #e6a23c; }
.msg-bar a.m2 { --mc: #18a058; }
.msg-bar a.m3 { --mc: #0c8fce; }
.msg-bar a.m4 { --mc: #d64550; }
.msg-bar a.on { background: #177572; border-color: #177572; color: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(23, 117, 114, .3); }
.msg-bar a.on::before { background: #fff !important; }
/* 表格：未读行淡青底 + 左侧红条，已读行变淡 */
.msg-body .el-table {
  border-radius: 10px; overflow: hidden; border: 1px solid #e9f0ef;
  --el-table-border-color: #eef3f2; --el-table-header-bg-color: #f5f8f8;
  --el-table-row-hover-bg-color: #eef6f4; font-size: 13px;
}
.msg-body .el-table__body tr.msg-unread { --el-table-tr-bg-color: #f3faf7; }
.msg-body .el-table__body tr.msg-unread td:first-child { box-shadow: inset 3px 0 0 #d64550; }
.msg-body .el-table__body tr.msg-read .msg-tt,
.msg-body .el-table__body tr.msg-read td { color: #93a5a3; }
.msg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f56c6c; margin-right: 8px; vertical-align: 1px; animation: msgDot 1.6s ease-in-out infinite; }
@keyframes msgDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.msg-unread .msg-tt { font-weight: 700; color: #20302e; }
.pf-photo {
  width: 150px; height: 210px; flex-shrink: 0;
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 4px solid #fff; box-shadow: 0 8px 22px rgba(11, 61, 61, .18);
  color: #177572; font-size: 56px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.pf-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-info { flex: 1; min-width: 0; }
.pf-line1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-name { font-size: 28px; font-weight: 700; color: #0b3d3d; letter-spacing: 3px; }
.pf-gender { font-size: 12px; color: #177572; background: #fff; border: 1px solid #c5ded9; border-radius: 11px; padding: 2px 10px; }
.pf-status { font-size: 12px; color: #fff; background: #2E9E9E; border-radius: 11px; padding: 3px 11px; }
.pf-no { font-size: 12px; color: #7c928f; }
.pf-line2 { margin-top: 10px; font-size: 14px; color: #48605d; }
.pf-line3 { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.pf-chip { font-size: 12px; color: #10504c; background: #fff; border: 1px solid #cfe2de; padding: 3px 12px; border-radius: 13px; }
.pf-stats { display: flex; flex-shrink: 0; border-left: 1px solid #d8e7e4; padding-left: 26px; }
.pf-stats > div { text-align: center; padding: 0 16px; position: relative; }
.pf-stats > div + div::before { content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background: #e0ece9; }
.pf-stats .num { display: block; font-size: 17px; font-weight: 700; color: #0b3d3d; line-height: 1.3; white-space: nowrap; }
.pf-stats .lbl { display: block; font-size: 11px; color: #8ba09d; margin-top: 3px; }
/* 分组字段：两列表单式排版 */
/* 弹窗详情键值区：三列网格，标签上值下（与档案抽屉 detail-kv 同语言） */
.emp-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; font-size: 14px; }
.emp-kv > div { min-width: 0; }
.emp-kv > div .k { display: block; font-size: 13px; color: #90a4a2; margin-bottom: 2px; }
.emp-kv > div .v, .emp-kv > div { color: #2b3a38; word-break: break-word; line-height: 1.45; }
@media (max-width: 640px) {
  .emp-kv { grid-template-columns: repeat(2, 1fr); }
}
.emp-kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; font-size: 14px; }
.emp-kv2 > div { display: flex; padding: 9px 0; border-bottom: 1px dashed #e9f0ef; }
.emp-kv2 .k { color: #8a9a99; width: 84px; flex-shrink: 0; }
.emp-kv2 .v { color: #333; word-break: break-all; flex: 1; }
.emp-empty { color: #aab6b5; font-size: 14px; padding: 8px 0; }

/* ============ 全局弹窗皮肤 v3 —— 纯白大面板、细分隔线、大控件、仅内部滚动 ============ */

/* 1. 遮罩层：深色半透明 + 轻微模糊，与白色主页面拉开层次 */
.el-overlay { background: rgba(18, 42, 42, .5); backdrop-filter: blur(3px); overflow: hidden; }
/* 遮罩容器：不再自身滚动，弹窗视口内垂直居中，只允许弹窗内部滚动 */
.el-overlay-dialog {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 24px; box-sizing: border-box;
}

/* 2. 对话框容器：纯白面板，深色遮罩负责分层 */
.el-dialog {
  border-radius: 16px; overflow: hidden; margin: 0;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(10, 30, 30, .4);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 64px);
  animation: hr-dialog-in .3s cubic-bezier(.16, 1, .3, 1);
}
@keyframes hr-dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* 3. 头部：白底细线分隔，无任何装饰色带 */
.el-dialog__header {
  margin-right: 0; padding: 14px 24px 12px;
  border-bottom: 1px solid #f0f2f5;
  background: #ffffff;
  flex-shrink: 0;
}
.el-dialog__title {
  font-size: 16px; font-weight: 600; color: #111827; letter-spacing: .3px;
}
.el-dialog__headerbtn { top: 11px; right: 14px; width: 32px; height: 32px; border-radius: 8px; transition: background .2s; }
.el-dialog__headerbtn:hover { background: #f3f4f6; }
.el-dialog__headerbtn .el-dialog__close { font-size: 17px; color: #9ca3af; transition: color .2s; }
.el-dialog__headerbtn:hover .el-dialog__close { color: #374151; }

/* 4. 内容区：纯白、紧凑留白，仅内部滚动 */
.el-dialog__body {
  padding: 16px 24px 6px; color: #374151; font-size: 14px;
  background: #ffffff;
  overflow-y: auto; flex: 1; min-height: 0;
}
.el-dialog__body::-webkit-scrollbar { width: 6px; }
.el-dialog__body::-webkit-scrollbar-thumb { background: #dfe3e8; border-radius: 3px; }
.el-dialog__body::-webkit-scrollbar-thumb:hover { background: #c3cad1; }

/* 5. 表单分组：白底无标题，仅靠间距分隔 */
.dialog-section { padding: 0; margin-bottom: 10px; }
.dialog-section:last-child { margin-bottom: 0; }

/* 6. 弹窗内表单：label 顶置 */
.el-dialog .el-form { display: block; }
.el-dialog .el-form-item {
  margin-bottom: 12px;
  display: flex; flex-direction: column;
}
.el-dialog .el-form-item__label {
  float: none; text-align: left;
  width: auto !important; line-height: 1.4;
  font-size: 14px; color: #6b7280; font-weight: 400;
  margin-bottom: 5px; padding: 0;
}
.el-dialog .el-form-item__content {
  margin-left: 0 !important; width: 100%;
  min-width: 0; line-height: 1;
}
.el-dialog .el-form-item__content > * { max-width: 100%; }
.el-dialog .el-form-item .el-input-number { width: 100%; }

/* 7. 输入框统一：36px 高、柔和边框与聚焦环 */
.el-dialog .el-input__wrapper,
.el-dialog .el-textarea__inner,
.el-dialog .el-select__wrapper,
.el-dialog .el-input-number {
  border-radius: 8px; transition: box-shadow .2s ease;
  min-height: 36px;
  box-shadow: 0 0 0 1px #dfe3e8 inset;
}
.el-dialog .el-input__wrapper .el-input__inner { height: 34px; font-size: 14px; }
.el-dialog .el-input__wrapper:hover,
.el-dialog .el-select__wrapper:hover,
.el-dialog .el-textarea__inner:hover {
  box-shadow: 0 0 0 1px #b8c0c9 inset;
}
.el-dialog .el-input__wrapper.is-focus,
.el-dialog .el-select__wrapper.is-focused,
.el-dialog .el-textarea__inner:focus {
  box-shadow: 0 0 0 1px var(--hr-primary) inset, 0 0 0 3px rgba(64, 181, 181, .14) !important;
}

/* 8. 双列/三列布局：不挤压 */
.el-dialog .el-col { min-width: 0; box-sizing: border-box; }
.el-dialog .el-form-item { margin-bottom: 12px; }
.el-dialog .el-col-24 { width: 100%; }

/* 9. 下拉/日期/树选择宽度兜底 */
.el-dialog .el-tree-select,
.el-dialog .el-date-editor,
.el-dialog .el-select { width: 100% !important; }

/* 10. 提示小字（不小于 14px 基准） */
.el-dialog .form-tip,
.el-dialog [style*="font-size:12px"],
.el-dialog [style*="font-size:13px"] {
  font-size: 14px !important; color: #9ca3af; line-height: 1.5;
  margin-top: 6px;
}

/* 11. 弹窗内表格 */
.el-dialog .el-table {
  margin-bottom: 10px; border-radius: 10px; overflow: hidden;
  border: 1px solid #eef0f3;
}
.el-dialog .el-table th.el-table__cell { background: #fafbfc; color: #374151; font-weight: 600; }

/* 12. 底部：紧凑大按钮 */
.el-dialog__footer {
  padding: 10px 24px 14px; border-top: 1px solid #f0f2f5;
  background: #ffffff;
  display: flex; justify-content: flex-end; gap: 12px;
  flex-shrink: 0;
}
.el-dialog__footer .el-button {
  min-width: 88px; height: 36px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.el-dialog__footer .el-button--primary {
  background: var(--hr-primary); border-color: var(--hr-primary);
  box-shadow: 0 6px 16px rgba(64, 181, 181, .28);
}
.el-dialog__footer .el-button--primary:hover {
  background: var(--hr-primary-dark); border-color: var(--hr-primary-dark);
  box-shadow: 0 8px 20px rgba(64, 181, 181, .38);
  transform: translateY(-1px);
}

/* ---- 抽屉 el-drawer —— 人事档案卷宗：淡青底 · 左侧目录 · 白卡分卷 ---- */
.el-drawer { background: #f2f7f6; box-shadow: -24px 0 64px rgba(10, 30, 30, .35); }
.el-drawer__header {
  margin-bottom: 0; padding: 16px 30px 13px;
  border-bottom: 1px solid #e3ecec; background: #fbfdfd;
}
.el-drawer__title {
  font-size: 16px; font-weight: 600; color: #16302e; letter-spacing: .5px;
}
.el-drawer__close-btn { font-size: 16px; color: #9ca3af; transition: all .2s; }
.el-drawer__close-btn:hover { color: #ef4444; transform: rotate(90deg); }
.el-drawer__body {
  padding: 22px 28px 0; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #ecf3f2 0%, #f5f9f8 280px);
  display: flex; flex-direction: column;
}
/* 头卡与页签固定不滚，仅内容区滚动 */
.el-drawer__body > .pf-head,
.el-drawer__body > .pf-tabs { flex-shrink: 0; }

/* 类别页签：下划线式，一类一页，切换即聚焦 */
.pf-tabs { display: flex; gap: 4px; margin: 20px 0 18px; border-bottom: 1px solid #dfebe8; flex-wrap: wrap; }
.pf-tabs a {
  position: relative; padding: 9px 22px; font-size: 14px; font-weight: 500;
  color: #647a77; cursor: pointer; user-select: none; border-radius: 9px 9px 0 0;
  transition: all .18s; line-height: 1.4;
}
.pf-tabs a:hover { color: #177572; background: rgba(23, 117, 114, .06); }
.pf-tabs a.on { color: #0b3d3d; font-weight: 700; }
.pf-tabs a.on::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px;
  border-radius: 3px; background: linear-gradient(90deg, #177572, #2E9E9E);
}
.pf-pane {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 2px 4px 40px 0; margin-right: -4px;
  animation: pfFadeIn .25s ease;
}
.pf-pane::-webkit-scrollbar { width: 6px; }
.pf-pane::-webkit-scrollbar-thumb { background: #c9d8d6; border-radius: 3px; }
@keyframes pfFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 弹窗内详情卡片（职称申报详情等使用，保留白卡样式） */
.detail-card {
  background: #ffffff; border-radius: 12px;
  padding: 16px 20px 18px; margin-bottom: 14px;
  border: 1px solid #e6ecec; box-shadow: 0 1px 4px rgba(20, 45, 45, .05);
}
.detail-card-title,
.detail-card h4 {
  font-size: 14px; font-weight: 600; color: #33474a;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid #f0f4f4;
}

/* 详情 key-value：三列网格，标签上值下（机构页等卡片内使用） */
.detail-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.detail-kv.full { grid-template-columns: 1fr; }
.detail-kv > div { min-width: 0; }
.detail-kv > div .k { display: block; font-size: 13px; color: #90a4a2; margin-bottom: 2px; }
.detail-kv > div .v { display: block; font-size: 14px; color: #2b3a38; word-break: break-word; line-height: 1.45; }
.detail-kv > div .v b { color: var(--hr-primary-dark); }
@media (max-width: 1280px) {
  .detail-kv { grid-template-columns: repeat(2, 1fr); }
}

/* 抽屉内白卡：信息组 + 记录组 */
.el-drawer__body .detail-card {
  background: #fff; border: 1px solid #e4eeee; border-radius: 11px;
  box-shadow: 0 1px 5px rgba(15, 45, 45, .05);
  padding: 14px 18px 15px; margin: 0 0 12px;
}
.el-drawer__body .detail-card h4 {
  font-size: 14px; font-weight: 600; color: #177572;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #eef4f3;
}
.el-drawer__body .detail-card h4::before,
.el-drawer__body .arc-title::before { content: none; }

/* 抽屉内字段：行式两列，细线分行 */
.el-drawer__body .detail-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.el-drawer__body .detail-kv.full { grid-template-columns: 1fr; }
.el-drawer__body .detail-kv > div {
  display: flex; align-items: baseline; min-width: 0;
  padding: 7px 0; border-bottom: 1px solid #f3f7f6;
}
.el-drawer__body .detail-kv > div .k { display: inline; width: 84px; flex-shrink: 0; margin-bottom: 0; font-size: 13px; color: #8a9c9a; }
.el-drawer__body .detail-kv > div .v { flex: 1; font-size: 14px; color: #1f2d2b; word-break: break-word; line-height: 1.5; }
@media (max-width: 1280px) {
  .el-drawer__body .detail-kv { grid-template-columns: 1fr; }
}

/* 记录卷节白卡：每卡专属色彩身份 —— 左色条 + 彩徽章卡头，一眼区分 */
.el-drawer__body .arc-card {
  --c: #177572; --c-soft: #e9f3f2;
  background: #fff; border: 1px solid #e8efee; border-left: 4px solid var(--c);
  border-radius: 10px; box-shadow: 0 1px 5px rgba(15, 45, 45, .05);
  margin: 0 0 14px; overflow: hidden; padding: 0;
}
/* 十八卡色板 */
.c-edu    { --c: #2f6fed; --c-soft: #edf2fe; }
.c-work   { --c: #e08a0b; --c-soft: #fcf3e3; }
.c-train  { --c: #8250df; --c-soft: #f3eefd; }
.c-gui    { --c: #18a058; --c-soft: #e8f6ee; }
.c-cert   { --c: #d64550; --c-soft: #fcedee; }
.c-title  { --c: #5b5bd6; --c-soft: #efeffc; }
.c-skill  { --c: #0c8fce; --c-soft: #e6f4fb; }
.c-chg    { --c: #5c6b7a; --c-soft: #eef2f5; }
.c-multi  { --c: #0f9d8f; --c-soft: #e5f5f3; }
.c-proj   { --c: #c2620a; --c-soft: #faf0e2; }
.c-paper  { --c: #2563eb; --c-soft: #e9f0fd; }
.c-patent { --c: #0e9060; --c-soft: #e6f5ee; }
.c-soc    { --c: #8b46c9; --c-soft: #f5edfb; }
.c-pol    { --c: #cf3f3f; --c-soft: #fbecec; }
.c-fam    { --c: #d6568c; --c-soft: #fbeff5; }
.c-other  { --c: #7c7462; --c-soft: #f4f2ed; }
.c-move   { --c: #e2622b; --c-soft: #fdf0e8; }
.c-rural  { --c: #16a34a; --c-soft: #e9f8ee; }
.c-second { --c: #7c3aed; --c-soft: #f1ebfd; }
.c-award  { --c: #b98a09; --c-soft: #faf4e0; }
.c-trace  { --c: #0d9488; --c-soft: #e5f4f2; }
/* 卡头：淡彩底 + 印章徽章 + 大标题 */
.el-drawer__body .arc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--c-soft);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.arc-ico {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--c); color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(20, 40, 40, .18);
}
.el-drawer__body .arc-title { font-size: 15px; font-weight: 700; color: #20302e; letter-spacing: .5px; }
.arc-count-text {
  font-size: 12px; font-weight: 600; color: var(--c);
  background: rgba(255, 255, 255, .9); padding: 1px 10px; border-radius: 10px;
}
.arc-add { margin-left: auto; font-size: 14px; }
/* 卡片内容区内边距 */
.el-drawer__body .arc-card > .el-table,
.el-drawer__body .arc-card > .emp-empty,
.el-drawer__body .arc-card > .arc-other { margin: 12px 16px 14px; }

/* 抽屉内表格：安静浅表头 + 斑马纹 + 悬停高亮 */
.el-drawer .el-table {
  border-radius: 8px; overflow: hidden; border: 1px solid #e9f0ef; margin-bottom: 0;
  --el-table-border-color: #eef3f2;
  --el-table-header-bg-color: #f5f8f8;
  --el-table-row-hover-bg-color: #eef6f4;
  font-size: 13px;
}
.el-drawer .el-table th.el-table__cell { color: #35514e; font-weight: 600; padding: 8px 0; }
.el-drawer .el-table td.el-table__cell { padding: 8px 0; color: #33413f; }
.el-drawer .el-table__body tr:nth-child(even) { --el-table-tr-bg-color: #fafcfb; }
.el-drawer .emp-empty {
  padding: 14px 12px; text-align: center; font-size: 13px; color: #9aa8a7;
  background: #f8fbfa; border: 1px dashed #dde9e7; border-radius: 8px;
}

/* 档案变更留痕：同色彩身份卡 */
.arc-collapse { border: none; margin-bottom: 0; }
.arc-collapse .el-collapse-item {
  background: #fff; border: 1px solid #e8efee; border-left: 4px solid var(--c, #0d9488);
  border-radius: 10px; box-shadow: 0 1px 5px rgba(15, 45, 45, .05);
  padding: 0; margin-bottom: 14px; overflow: hidden;
}
.arc-collapse .el-collapse-item__header {
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  border-bottom: 1px solid transparent; height: 46px; line-height: 46px;
  font-size: 15px; color: #20302e; background: var(--c-soft, #e5f4f2); font-weight: 700;
}
.arc-collapse .el-collapse-item__header.is-active { border-bottom-color: #eef4f3; }
.arc-collapse .el-collapse-item__arrow { margin: 0 4px 0 0; color: #9aa8a7; }
.arc-collapse .el-collapse-item__wrap { border-bottom: none; background: transparent; }
.arc-collapse .el-collapse-item__content { padding: 12px 0 4px; }
.arc-collapse .el-collapse-item__content > .el-table { margin: 0 16px 12px; }
.arc-collapse .arc-count-tag { margin-left: 0; border-radius: 10px; }

/* ---- 确认框 ElMessageBox ---- */
.el-message-box {
  border-radius: 16px; background: #ffffff; padding: 0;
  box-shadow: 0 24px 80px rgba(10, 30, 30, .4);
  animation: hr-dialog-in .25s cubic-bezier(.16, 1, .3, 1);
}
.el-message-box__header { padding: 20px 24px 12px; }
.el-message-box__title { font-size: 16px; font-weight: 600; color: #111827; }
.el-message-box__content { font-size: 14px; padding: 8px 24px 18px; color: #4b5563; }
.el-message-box__btns { padding: 10px 24px 20px; }
.el-message-box__btns .el-button { min-width: 88px; height: 38px; border-radius: 10px; }
.el-message-box__btns .el-button--primary { background: var(--hr-primary); border-color: var(--hr-primary); }
.el-message-box__btns .el-button--primary:hover { background: var(--hr-primary-dark); border-color: var(--hr-primary-dark); }

/* 员工编辑弹窗：tab 分组表单（在全局皮肤基础上的局部微调） */
.emp-form-dialog .el-dialog__body { padding: 12px 24px 4px; }
.emp-form-tabs .el-tabs__header { margin-bottom: 14px; }
.emp-form-tabs .el-tabs__nav-wrap::after { height: 1px; background: #f0f2f5; }
.emp-form-tabs .el-tabs__item { font-size: 15px; height: 40px; line-height: 40px; padding: 0 18px; font-weight: 500; color: #6b7280; }
.emp-form-tabs .el-tabs__item.is-active { font-weight: 600; color: var(--hr-primary-dark); }
.emp-form-tabs .el-tabs__active-bar { height: 3px; border-radius: 2px; background: var(--hr-primary); }

/* 员工编辑弹窗：证件照卡片（1 寸比例 5:7） */
.emp-photo-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; }
.emp-photo-uploader { position: relative; width: 128px; height: 179px; }
.emp-photo-uploader.el-upload {
  display: block; border-radius: 8px; overflow: hidden;
  border: 1px dashed #b8cecd; background: #f6fafa;
  transition: border-color .2s, box-shadow .2s;
}
.emp-photo-uploader.el-upload:hover {
  border-color: var(--hr-primary);
  box-shadow: 0 2px 10px rgba(30, 120, 110, .15);
}
.emp-photo-img { width: 128px; height: 179px; object-fit: cover; display: block; }
.emp-photo-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: #8fa3a2; font-size: 14px; gap: 8px;
}
.emp-photo-mask {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background: rgba(22, 44, 44, .58); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.emp-photo-uploader:hover .emp-photo-mask { opacity: 1; }
.emp-photo-tip { color: #9db0af; font-size: 14px; }

/* 所有表格：表头强制不换行（列宽不足时横向滚动，避免表头文字折行/截断） */
.el-table th .cell { white-space: nowrap; }
/* 所有表格：内容单元格单行显示，超长省略号（配合 show-overflow-tooltip 悬停看全文） */
.el-table td.el-table__cell .cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 权限管理：授权配置区块 */
.perm-block {
  background: #f6fafa; border: 1px solid #e8f1f0; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 12px;
}
.perm-block-title {
  font-size: 15px; font-weight: 600; color: var(--hr-primary-dark);
  margin-bottom: 10px; border-left: 3px solid var(--hr-primary); padding-left: 8px;
}

/* 状态标签 */
.el-menu-item.is-active { background: var(--hr-primary) !important; }

/* 员工编辑弹窗：内嵌岗位能力登记区块 */
.emp-form-sub { border-top: 1px dashed #dce8e7; margin-top: 4px; padding-top: 10px; }
.emp-form-sub-title {
  font-size: 14px; font-weight: 600; color: var(--hr-primary-dark);
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}

/* 批次 D：排班月视图矩阵 */
.sch-table { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.sch-table th, .sch-table td { border: 1px solid #e4e7ed; padding: 4px 2px; text-align: center; min-width: 46px; white-space: nowrap; }
.sch-table th { background: #f5f7fa; font-weight: 500; color: #606266; }
.sch-cell { cursor: pointer; }
.sch-cell:hover { outline: 2px solid var(--hr-primary, #3a8ee6); outline-offset: -2px; }

/* ================= 批次 E：统计报表 / 人事档案 / 人才梯队 / 离职退休 新增样式 ================= */

/* 统计报表：左侧报表目录项 */
.rpt-item {
  padding: 10px 12px; border-radius: 8px; cursor: pointer; margin-bottom: 6px;
  border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.rpt-item:hover { background: #f2f8f8; }
.rpt-item.active { background: var(--hr-primary-light); border-color: var(--hr-primary); }
.rpt-item-name { font-size: 14px; font-weight: 600; color: #111827; }
.rpt-item.active .rpt-item-name { color: var(--hr-primary-dark); }
.rpt-item-desc { font-size: 13px; color: #8a9a99; margin-top: 3px; line-height: 1.5; }

/* 人才梯队：九宫格分布 */
.nine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nine-cell {
  background: #f6fafa; border: 1px solid #e2efee; border-radius: 10px;
  padding: 14px 10px; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.nine-cell:hover { border-color: var(--hr-primary); box-shadow: 0 2px 10px rgba(64, 181, 181, .15); }
.nine-cell-name { font-size: 14px; font-weight: 500; color: #4b5563; }
.nine-cell-num { font-size: 22px; font-weight: 700; color: var(--hr-primary-dark); margin-top: 4px; }

/* 人事档案：阅卷器水印横幅 */
.arc-wm-banner {
  background: #fff7e6; border: 1px solid #ffe1a8; color: #b45309;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px;
}

/* 人事档案：材料预览水印覆盖层（不影响交互） */
.arc-wm-overlay {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 34px; font-weight: 700; color: rgba(0, 0, 0, .08);
  white-space: nowrap; pointer-events: none; z-index: 10;
}

/* 离职退休：所选员工当前状态提示条 */
.life-emp-tip {
  background: var(--hr-primary-light); color: var(--hr-primary-dark);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-top: 6px;
}

/* 顶栏：手机版（ESS H5）入口 */
.ess-entry {
  height: 32px; padding: 0 14px; border-radius: 999px;
  color: #e6f4f3; font-size: 13px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s, color .2s;
}
.ess-entry:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* 批次 J：档案抽屉其他信息卡片 */
.arc-other { display: flex; flex-direction: column; gap: 8px; }
.arc-other-row { display: flex; font-size: 14px; line-height: 1.6; }
.arc-other-label { flex: 0 0 84px; color: #8a93a3; }

/* ================= 调动办理（左右分栏重构） ================= */
.tf-layout { display: flex; gap: 14px; align-items: flex-start; }
.tf-form-col { width: 430px; flex-shrink: 0; }
.tf-records-col { flex: 1; min-width: 0; }
@media (max-width: 1280px) {
  .tf-layout { flex-direction: column; }
  .tf-form-col { width: 100%; }
  .tf-records-col { width: 100%; }
}
/* 选中员工信息卡 */
.tf-emp { display: flex; align-items: center; gap: 10px; background: #f7faf9; border: 1px solid #e9f0ef; border-radius: 10px; padding: 10px 12px; margin: -4px 0 16px; }
.tf-emp-avatar { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--hr-primary), var(--hr-primary-dark)); box-shadow: 0 2px 6px rgba(30,60,60,.18); }
.tf-emp-info { flex: 1; min-width: 0; }
.tf-emp-name { font-size: 15px; font-weight: 600; color: #26302f; }
.tf-emp-no { font-size: 13px; font-weight: 400; color: #9aa8a7; margin-left: 8px; }
.tf-emp-sub { font-size: 13px; color: #7a8a89; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 调动方向实时预览 */
.tf-dir { display: flex; align-items: stretch; gap: 8px; margin: -4px 0 16px; }
.tf-dir-node { flex: 1; min-width: 0; background: #f7faf9; border: 1px solid #e9f0ef; border-radius: 10px; padding: 8px 12px; }
.tf-dir-node.to { background: var(--hr-primary-light); border-color: rgba(64,181,181,.35); }
.tf-dir-node .lab { display: block; font-size: 13px; color: #9aa8a7; margin-bottom: 2px; }
.tf-dir-node .val { display: block; font-size: 14px; font-weight: 600; color: #33413f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-dir-node.to .val { color: var(--hr-primary-dark); }
.tf-dir-arrow { align-self: center; font-size: 18px; font-weight: 700; color: var(--hr-primary); flex-shrink: 0; }
/* 提交区：分隔线 + 右对齐 */
.tf-submit { display: flex; justify-content: flex-end; border-top: 1px dashed #e5eeee; padding-top: 14px; margin-top: 2px; }
/* 记录表辅助文本与方向列 */
.tf-cell-sub { font-size: 13px; color: #9aa8a7; margin-top: 1px; }
.tf-cell-from { color: #7a8a89; }
.tf-cell-arrow { color: var(--hr-primary); font-weight: 700; margin: 0 5px; }
.tf-cell-to { color: var(--hr-primary-dark); font-weight: 600; }
/* 审批规则说明（弱化处理，不与主内容争视觉） */
.tf-rules { margin-top: 12px; padding: 10px 12px; background: #f7faf9; border-radius: 8px; font-size: 13px; line-height: 1.7; color: #7a8a89; }
/* ============ 按条件筛选面板（骨骼级重构 v=37） ============ */
.cfp { border: 1px solid #dcdfe6; border-radius: 10px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 14px; overflow: hidden; }
.cfp-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: linear-gradient(90deg, #ecf5ff, #f5f9ff); border-bottom: 1px solid #e4ecf7; }
.cfp-head .title { font-size: 15px; font-weight: 700; color: #303133; }
.cfp-badge { background: #409eff; color: #fff; font-size: 12px; border-radius: 10px; padding: 1px 9px; font-weight: 600; }
.cfp-badge.zero { background: #c0c4cc; }
.cfp-head .spacer { flex: 1; }
.cfp-head .hint { font-size: 12px; color: #909399; }
.cfp-body { padding: 14px 16px 4px; }
.cfp-section { margin-bottom: 14px; }
.cfp-section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #303133; margin-bottom: 10px; }
.cfp-no { display: inline-flex; width: 18px; height: 18px; border-radius: 4px; background: #409eff; color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }
.cfp-section-sub { font-size: 12px; color: #909399; font-weight: 400; }
.cfp-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #fafbfc; border: 1px solid #ebeef5; border-radius: 8px; margin-bottom: 6px; }
.cfp-row:hover { border-color: #c6e2ff; background: #f5f9ff; }
.cfp-row-if { font-size: 13px; color: #409eff; font-weight: 600; flex-shrink: 0; width: 28px; text-align: center; }
.cfp-row-del { flex-shrink: 0; width: 40px; text-align: center; }
.cfp-add { width: 100%; border-style: dashed; margin-bottom: 4px; }
.cfp-empty { padding: 14px; text-align: center; color: #a8abb2; font-size: 13px; background: #fafbfc; border: 1px dashed #dcdfe6; border-radius: 8px; margin-bottom: 8px; }
.cfp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cfp-cell { background: #fafbfc; border: 1px solid #ebeef5; border-radius: 8px; padding: 10px 12px; }
.cfp-cell-title { font-size: 13px; font-weight: 700; color: #409eff; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cfp-cell-title::before { content: ''; width: 3px; height: 12px; background: #409eff; border-radius: 2px; display: inline-block; }
.cfp-cell-items { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.cfp-foot { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fafbfc; border-top: 1px solid #ebeef5; }
.cfp-count { font-size: 14px; color: #409eff; font-weight: 700; }
.cfp-count b { font-size: 16px; }
.cfp-foot .hint { flex: 1; text-align: right; font-size: 12px; color: #909399; }
/* 筛选面板 v=38：复选框+关键词成对胶囊；统一标准尺寸字号（跟随全局 15px 基准） */
.cfp-pair { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e4e7ed; border-radius: 8px; padding: 2px 6px 2px 10px; }
.cfp-pair .el-checkbox { margin-right: 0; }
.cfp-pair .el-input .el-input__wrapper { box-shadow: none; background: transparent; padding-left: 2px; padding-right: 2px; }
.cfp .el-select, .cfp .el-input, .cfp .el-checkbox__label { font-size: 14px; }
.cfp-cell-items .el-select .el-input__wrapper, .cfp-cell-items .el-input__wrapper, .cfp-row .el-input__wrapper { border-radius: 6px; }
