/* ==========================================================================
   企业/集团管理员 · 专家库管理
   视觉基线 = 《信息资源库系统原型图 V9》（本模块顶栏 / 左侧菜单与之一致）：
     · 顶栏 = 政务深蓝渐变（120deg：#174a8c → #1d5da8 45% → #2b7cd3）+ 白色圆角 logo 牌
       + 一级导航嵌在顶栏内、当前项底部 3px 浅蓝指示条、悬停展开二级 mega 面板
       + 搜索框 / 铃铛 / 帮助 / 用户
     · 左侧菜单 = 贴边白柱（216px + 右侧分隔线）+ 库信息卡（图标 + 名称）
       + 扁平两级菜单（父项带折叠箭头，叶子项激活时左侧 3px 竖条）+ 底部状态条
       ⚠️ 2026-10-15：已去掉「返回门户首页」入口、「已上线 · N 项功能」状态行、「功能办理」小标题
     · 右侧内容 = 白卡容器 + 查询条件 + 表格 + 分页（沿用原基线，未随顶栏改动）
   颜色与几何全部走本页 token，改 .ad-shell 一组即可整体调整。
   ========================================================================== */
.ad-shell {
  /* 骨架尺寸 —— 顶栏 / 侧栏对齐 V9 原型 */
  --ad-bar-h: 58px;
  --ad-side-w: 216px;
  --ad-item-h: 32px;    /* 一级（分组）菜单项高 */
  --ad-sub-h: 30px;     /* 二级（叶子）菜单项高 */
  --ad-card-hd-h: 46px; /* 侧栏标题 / 卡片标题条高 */
  --ad-ctrl-h: 32px;   /* 按钮 / 输入框 / 下拉框统一高度 */
  --ad-row-h: 40px;    /* 表格行高（表头同高） */
  --ad-page-h: 28px;   /* 分页控件高度 */
  --ad-gap-x: 12px;
  --ad-gap: 12px;      /* 模块间距（= 专家端 --wb-gap） */

  /* 政务蓝 —— 取自 V9 原型，专供顶栏 / 侧栏（--ad-primary 保持内容区原基线） */
  --ad-gov: #2b7cd3;
  --ad-gov-2: #3d8ee8;
  --ad-gov-3: #e8f2fd;
  --ad-gov-4: #c9dff5;
  --ad-deep: #1d5da8;
  --ad-deep-2: #174a8c;

  /* 配色 —— 内容区沿用原基线（直接复用 auth.css 设计 token） */
  --ad-bar-grad: linear-gradient(120deg, #174a8c 0%, #1d5da8 45%, #2b7cd3 100%);
  --ad-bar-underline: #a5d4ff;
  --ad-bg: var(--surface-page);
  --ad-card: var(--surface-card);
  --ad-border: var(--gray-200);
  --ad-line: #eef1f6;
  --ad-soft: var(--primary-50);
  --ad-primary: var(--primary-500);
  --ad-primary-hover: var(--primary-600);
  --ad-danger: var(--danger);
  --ad-danger-soft: #fdeaea;
  --ad-text: #333a47;
  --ad-text-2: #5a6478;
  --ad-text-3: #8a94a6;
  --ad-text-4: #9aa4b2;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ad-bg);
  font-size: var(--text-base);
  color: var(--ad-text-2);
}
#app { height: auto; min-height: 100vh; }

/* --------------------------------------------------------------------------
   1. 顶栏（政务深蓝 · 对齐 V9 原型）
   -------------------------------------------------------------------------- */
.ad-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  height: var(--ad-bar-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-right: var(--space-5);
  color: #fff;
  background: var(--ad-bar-grad);
}

/* 品牌区：白色圆角 logo 牌 + 两行文字（系统名 / 平台名） */
.ad-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 4px 18px;
}
.ad-logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 3px 5px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}
.ad-logo-mark img { height: 38px; width: auto; display: block; }
.ad-logo-txt { min-width: 0; }
.ad-logo-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.3;
  white-space: nowrap;
}
.ad-logo-sub {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
}

/* 一级导航：嵌于顶栏、与系统名同行；当前项底部 3px 指示条 */
.ad-nav {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 6px;
  overflow: visible;
}
.ad-nav-item {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.ad-nav-item:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.ad-nav-item.is-active { color: #fff; }
.ad-nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--ad-bar-underline);
}
.ad-nav-ico { flex-shrink: 0; width: 15px; height: 15px; }
.ad-nav-ico svg { display: block; width: 100%; height: 100%; }
.ad-nav-badge {
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}
.ad-nav-item.is-active .ad-nav-badge { background: rgba(255, 255, 255, .24); color: #fff; }
.ad-nav-caret { font-size: 11px; opacity: .85; }

/* 悬停展开的二级面板（对应 V9 的 mega menu：延迟出现、移入面板保持） */
.ad-mega {
  position: absolute;
  left: 0;
  top: 100%;
  width: 280px;
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 74, 140, .22);
  z-index: 35;
  color: var(--ad-text);
  text-align: left;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .15s ease .22s, transform .15s ease .22s, visibility .15s ease .22s;
}
.ad-nav-item:hover .ad-mega,
.ad-nav-item.is-open .ad-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: .08s;
}
.ad-mega-b {
  max-height: 312px;
  overflow-y: auto;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ad-mega-sec {
  padding: 8px 11px 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ad-text-4);
}
.ad-mega-i {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 7px;
  background: #f2f7fc;
  font-size: 13px;
  color: var(--ad-text-2);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--t-fast), color var(--t-fast);
}
.ad-mega-i::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b6c8dc;
}
.ad-mega-i:hover { background: #e2eefb; color: var(--ad-gov); }
.ad-mega-i.is-on { background: #d8eafb; color: var(--ad-gov); font-weight: 600; }
.ad-mega-i.is-on::before { background: var(--ad-gov); }

/* 右侧工具区 */
.ad-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding-left: var(--space-4);
}

/* 原型导航：返回页面清单（刻意低调，hover 才显形） */
.ad-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .58);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.ad-back i { font-size: 12px; }
.ad-back:hover { color: #fff; background: rgba(255, 255, 255, .14); }

/* 全局搜索（V9：半透明白框 + 6px 圆角） */
.ad-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  min-width: 150px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .12);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.ad-search:focus-within { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); }
.ad-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: #fff;
}
.ad-search input::placeholder { color: rgba(255, 255, 255, .55); }

/* 图标按钮（铃铛 / 帮助）：34px 方形，hover 出半透明底 */
.ad-ico {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.ad-ico:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ad-ico--help {
  font-size: 15px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}
.ad-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1.5px solid var(--ad-deep-2);
  border-radius: var(--radius-full);
  background: #ff4d4f;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.ad-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, .92);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.ad-user:hover { background: rgba(255, 255, 255, .12); }
.ad-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .2);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

/* --------------------------------------------------------------------------
   2. 左侧功能菜单（对齐 V9 原型：贴边白柱 + 库信息卡 + 扁平两级菜单 + 状态条）
   注意：侧栏不再是浮起白卡，而是与顶栏相接的通栏白柱（右侧 1px 分隔线）；
        内容区白卡靠 .ad-main / .ad-pool 的 margin 留出 12px 灰底外边。
   -------------------------------------------------------------------------- */
.ad-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.ad-side {
  flex-shrink: 0;
  width: var(--ad-side-w);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ad-border);
  background: var(--ad-card);
}

/* 库信息卡：圆角方块图标 + 名称（原「专家库管理」标题条）
   ⚠️ 2026-10-15：已去掉卡上方「返回门户首页」按钮与卡内「已上线 · N 项功能」状态行 */
.ad-side-hd {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 10px 2px;
  padding: 9px 12px;
  border: 1px solid var(--ad-gov-4);
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, #f3f9fe, #e9f3fc);
}
.ad-side-ico {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--ad-gov);
  font-size: 15px;
  color: #fff;
}
.ad-side-txt { min-width: 0; }
.ad-side-txt b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ad-gov);
}

.ad-menu { flex: 1; min-height: 0; padding: 10px 8px 12px; overflow-y: auto; }

/* 一级（分组）项：与叶子项同款圆角行，靠字重区分，右侧折叠箭头 */
.ad-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--ad-item-h);
  padding: 0 8px 0 13px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.ad-menu-item:hover { background: #eff6fc; color: var(--ad-gov); }
.ad-menu-item.is-active { color: var(--ad-gov); }
.ad-menu-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ad-menu-caret {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--ad-text-3);
  transition: transform var(--t-fast);
}
.ad-menu-caret.is-open { transform: rotate(180deg); }

/* 二级（叶子）项：缩进 26px，激活时左侧 3px 竖条 */
.ad-menu-sub {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--ad-sub-h);
  padding: 0 8px 0 26px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--ad-text-2);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background var(--t-fast), color var(--t-fast);
}
.ad-menu-sub:hover { background: #eff6fc; color: var(--ad-gov); }
.ad-menu-sub.is-active {
  background: var(--ad-gov-3);
  font-weight: 600;
  color: var(--ad-gov);
}
.ad-menu-sub.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--ad-gov);
}

/* 侧栏底部状态条 */
.ad-side-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-top: 1px solid var(--ad-line);
  font-size: 11px;
  color: var(--ad-text-3);
}
.ad-live {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a55b;
  box-shadow: 0 0 0 3px rgba(34, 165, 91, .15);
}

/* --------------------------------------------------------------------------
   3. 右侧内容区（工具栏 → 查询条件 → 数据表格 → 分页）
   容器规格与专家端列表页 .ex-page 一致：白卡（圆角 + 浅阴影）
   -------------------------------------------------------------------------- */
.ad-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: var(--ad-gap);
  padding: var(--space-4) var(--space-5) 0;
  border-radius: var(--radius-sm);
  background: var(--ad-card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

/* --- 3.1 工具栏 --- */
.ad-toolbar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ad-gap-x);
}
.ad-hint {
  margin-left: auto;
  padding-right: var(--space-1);
  font-size: var(--text-xs);
  color: var(--ad-text-3);
}

.ad-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ad-ctrl-h);
  padding: 0 15px;
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-sm);
  background: var(--ad-card);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--ad-text-2);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.ad-btn:hover { border-color: #a9c2f2; background: #f5f8ff; color: var(--ad-primary); }
.ad-btn--primary { border-color: var(--ad-primary); background: var(--ad-primary); color: #fff; }
.ad-btn--primary:hover { border-color: var(--ad-primary-hover); background: var(--ad-primary-hover); color: #fff; }
.ad-btn--danger { border-color: var(--ad-danger); color: var(--ad-danger); }
.ad-btn--danger:hover { border-color: var(--ad-danger); background: var(--ad-danger-soft); color: var(--ad-danger); }

/* --- 3.2 查询条件 --- */
/* 搜索区内的 Element 控件与原生控件等高：
   auth.css 用 `height: var(--control-h) !important` 统一 .el-input__inner，默认 40px，
   会让搜索区的 el-select 比 .ad-input / .ad-pick（--ad-ctrl-h=32px）高 8px。
   就地降档 token（不写 !important、不硬编码数值）即可让 el-select 与输入框完全等高。 */
.ad-filter {
  --control-h: var(--ad-ctrl-h);
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ad-gap-x) var(--space-5);
  margin-top: var(--space-4);
}
.ad-field { display: flex; align-items: center; gap: var(--space-2); }
.ad-field > span { flex-shrink: 0; font-size: var(--text-sm); color: var(--ad-text-3); }

.ad-input,
.ad-pick select {
  height: var(--ad-ctrl-h);
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-sm);
  background: var(--ad-card);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--ad-text);
  outline: none;
  transition: border-color var(--t-fast);
}
.ad-input { width: 186px; padding: 0 var(--space-3); }
.ad-input::placeholder { color: var(--ad-text-3); }
.ad-input:focus,
.ad-pick select:focus { border-color: var(--ad-primary); }

.ad-pick { position: relative; display: inline-flex; }
.ad-pick select {
  width: 150px;
  padding: 0 28px 0 var(--space-3);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.ad-pick > i {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ad-text-4);
  pointer-events: none;
}

/* --- 3.3 数据表格（表头浅灰、行线极淡、无竖线） --- */
.ad-tbl-wrap {
  flex: 1;
  min-height: 180px;
  margin-top: var(--space-4);
  overflow: auto;
  border-top: 1px solid var(--ad-line);
  border-bottom: 1px solid var(--ad-line);
}
.ad-tbl {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.ad-tbl th {
  height: var(--ad-row-h);
  padding: 0 12px;
  background: #fafafa;
  border-bottom: 1px solid var(--ad-line);
  font-weight: 400;
  color: #606266;
  text-align: left;
  white-space: nowrap;
}
.ad-tbl td {
  height: var(--ad-row-h);
  padding: 0 12px;
  border-bottom: 1px solid var(--ad-line);
  color: var(--ad-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-tbl tbody tr:hover td { background: #f7f9fc; }
/* 行内复选框只作勾选控件用：Element 会把 label 值当文案渲染，这里挂空 slot 并隐藏标签位 */
.ad-tbl .el-checkbox__label { display: none; }
.col-check { width: 52px; }
.col-idx { width: 64px; }
.ad-tbl th.col-check,
.ad-tbl td.col-check { padding-left: var(--space-4); }

.ad-op { display: flex; align-items: center; gap: 14px; }
.ad-op i { font-size: 15px; color: #8a94a6; cursor: pointer; transition: color var(--t-fast); }
.ad-op i:hover { color: var(--ad-primary); }

.ad-tagx {
  display: inline-block;
  padding: 0 8px;
  border-radius: 3px;
  font-size: var(--text-xs);
  line-height: 20px;
}
.ad-tagx--ok    { background: #e8f7ee; color: #15803d; }
.ad-tagx--warn  { background: #fdf1e3; color: #b45309; }
.ad-tagx--info  { background: #e8f2fd; color: #2b7cd3; }
.ad-tagx--bad   { background: #fdeaea; color: #c53030; }
.ad-tagx--muted { background: #f1f4f9; color: #64748b; }
/* 「是否招标项目评审专家」标识：实底高对比（保留备用，列表已改为姓名角标） */
.ad-tagx--yes { background: #3d5bc9; color: #fff; font-weight: 600; }
.ad-tagx--no  { background: #94a3b8; color: #fff; font-weight: 600; }

/* 专家姓名列：「招标项目评审专家＝是」以姓名后角标呈现（取代独立列，更醒目且不产生整列噪声）
   —— 实底蓝 + 星标，同列「否」不渲染任何标识 */
.ad-name-cell { display: inline-flex; align-items: center; max-width: 100%; }
.ad-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-name-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 0 6px;
  height: 18px;
  border-radius: 9px;
  background: #3d5bc9;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}
.ad-name-tag i { font-size: 11px; }

/* --- 3.4 分页 --- */
.ad-pager {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: var(--space-3) 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--ad-text-2);
}
.ad-page-jump {
  width: 46px;
  height: var(--ad-page-h);
  padding: 0 4px;
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-sm);
  background: var(--ad-card);
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--ad-text);
  text-align: center;
  outline: none;
}
.ad-page-jump:focus { border-color: var(--ad-primary); }
.ad-pager .ad-pick select { height: var(--ad-page-h); width: 104px; }
.ad-page-num,
.ad-page-arrow {
  min-width: var(--ad-page-h);
  height: var(--ad-page-h);
  padding: 0 6px;
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-sm);
  background: var(--ad-card);
  font-family: inherit;
  font-size: var(--text-sm);
  line-height: 1;
  color: var(--ad-text-2);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.ad-page-num:hover,
.ad-page-arrow:not(:disabled):hover { border-color: #a9c2f2; color: var(--ad-primary); }
.ad-page-num.is-on {
  border-color: var(--ad-primary);
  background: var(--ad-primary);
  color: #fff;
}
.ad-page-arrow:disabled { color: var(--ad-text-4); background: #fafbfc; cursor: not-allowed; }
.ad-pager-total { margin-left: var(--space-1); }

/* 查看详情弹窗：左标签右值，虚线分隔 */
.ad-detail { list-style: none; }
.ad-detail li {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ad-line);
  font-size: var(--text-sm);
  line-height: 1.8;
}
.ad-detail li:last-child { border-bottom: none; }
.ad-detail li > span { flex: 0 0 108px; color: var(--ad-text-4); }
.ad-detail li > b { flex: 1; min-width: 0; font-weight: 400; color: var(--ad-text); word-break: break-all; }

@media (max-width: 1500px) {
  .ad-search { width: 180px; }
  .ad-nav-item { padding: 0 11px; }
}
@media (max-width: 1320px) {
  .ad-search { width: 150px; }
  .ad-nav-item { padding: 0 9px; font-size: 12.5px; }
  .ad-logo-txt { display: none; }
}
@media (max-width: 1100px) {
  .ad-search { display: none; }
  /* 窄屏：侧栏转为通栏横排，叶子项收起（与专家端策略一致） */
  .ad-body { flex-direction: column; }
  .ad-side { width: 100%; border-right: none; border-bottom: 1px solid var(--ad-border); }
  .ad-side-hd { margin: 8px 10px 2px; }
  .ad-side-foot { display: none; }
  .ad-menu { display: flex; flex-wrap: wrap; gap: var(--space-1); padding: 4px 8px 8px; }
  .ad-menu-sub { display: none; }
}
@media (max-width: 900px) {
  .ad-main { padding: var(--space-4) var(--space-4) 0; }
}

/* --------------------------------------------------------------------------
   4. 专家库（集团专家库）：左侧专业树 + 右侧专家列表
   -------------------------------------------------------------------------- */
.ad-pool { flex: 1; min-width: 0; display: flex; gap: var(--ad-gap); margin: var(--ad-gap); }
.ad-pool-tree {
  flex-shrink: 0;
  width: 200px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  background: var(--ad-card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.ad-pool-tree-hd {
  flex-shrink: 0;
  height: var(--ad-card-hd-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-900);
}
.ad-pool-total { font-size: var(--text-xs); font-weight: 400; color: var(--ad-text-3); }
.ad-pool-tree-all { flex-shrink: 0; padding: var(--space-2) var(--space-2) 0; }
.ad-pool-tree-body { flex: 1; min-height: 0; padding: var(--space-1) var(--space-2) var(--space-3); overflow: auto; }

.pt-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--gray-700);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.pt-row:hover { background: var(--gray-25); color: var(--ad-primary); }
.pt-row.is-on { background: var(--ad-soft); color: var(--ad-primary); font-weight: 600; }
.pt-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pt-caret { flex-shrink: 0; font-size: 12px; color: var(--ad-text-4); transition: transform var(--t-fast); }
.pt-caret.is-open { transform: rotate(90deg); }
.pt-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--ad-text-4); }
.pt-row.is-on .pt-dot { background: var(--ad-primary); }
.pt-dot--all { background: var(--ad-primary); }
.pt-count { flex-shrink: 0; font-size: var(--text-xs); color: var(--ad-text-4); }
.pt-row.is-on .pt-count { color: var(--ad-primary); }
.pt-kids { padding-left: 14px; }

.ad-pool-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5) 0;
  border-radius: var(--radius-sm);
  background: var(--ad-card);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.ad-pool-list-hd { flex-shrink: 0; display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-3); }
.ad-pool-title { font-size: var(--text-lg); font-weight: 700; color: var(--gray-900); }
.ad-pool-sub { font-size: var(--text-xs); color: var(--ad-text-3); }

.ad-oplinks { display: flex; align-items: center; gap: 12px; }
.ad-oplink { color: var(--ad-primary); cursor: pointer; white-space: nowrap; }
.ad-oplink:hover { color: var(--ad-primary-hover); }
.ad-oplink--danger { color: var(--ad-danger); }
.ad-oplink--danger:hover { color: var(--ad-danger); }
.ad-empty { height: 120px; text-align: center; color: var(--ad-text-3); }

.ad-pool-detail-hd { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--ad-line); }
.ad-pool-detail-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  background: var(--ad-soft); color: var(--ad-primary);
  font-size: 18px; font-weight: 700;
}
.ad-pool-detail-name { display: flex; align-items: center; gap: 8px; font-size: var(--text-md); font-weight: 700; color: var(--gray-900); }
.ad-pool-detail-sub { margin-top: 2px; font-size: var(--text-xs); color: var(--ad-text-3); }
.ad-pool-detail .ad-detail { margin-top: var(--space-2); }

.ad-pool-form-row { display: flex; align-items: center; gap: var(--space-3); padding: 8px 0; }
.ad-pool-form-row > b { flex: 1; min-width: 0; font-weight: 600; color: var(--ad-text); }
.ad-pool-form-lb { flex: 0 0 88px; color: var(--ad-text-4); font-size: var(--text-sm); }
.ad-pool-form-row .ad-input { flex: 1; width: auto; }
.ad-pool-form-row .ad-pick select { width: 240px; }

/* --------------------------------------------------------------------------
   4.1 专家库：专业类别切换 + 搜索按钮（同行右端）+ 人数合计 + 姓名角标图例
   -------------------------------------------------------------------------- */
/* 顶部条：左 = 类别切换 + 招标项目徽标，右 = 查询 / 重置 / 导出（替代原左侧专业树） */
.ad-pool-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}
.ad-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}
.ad-seg-item {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--ad-text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.ad-seg-item:hover { background: var(--ad-soft); color: var(--ad-primary); }
.ad-seg-item.is-on {
  background: var(--ad-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(61, 91, 201, .35);
}
.ad-seg-item.is-on:hover { background: var(--ad-primary); color: #fff; }
.ad-seg-num {
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--ad-text-3);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ad-seg-item.is-on .ad-seg-num { background: rgba(255, 255, 255, .28); color: #fff; }

/* 「专业」下拉选项只显示专业名本身（不带类别层级路径，最长「防腐保温（保冷）工程」实测 218px），
   面板按内容放宽到 240px；Element 用内联 min-width（＝输入框宽，跨 2 列后极宽）故需 !important；
   下拉 append 到 body，所以这条规则不能挂在 .ad-pool 下。 */
.ad-major-popper { min-width: 240px !important; }

.ad-pool-bar-right {
  margin-left: auto;   /* 操作按钮靠右；徽标紧随类别切换，同属左簇 */
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}
/* 「招标项目」合计徽标：置于类别切换右侧，实底品牌蓝胶囊 → 一眼可见（集团专家库） */
.ad-bid-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--ad-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(61, 91, 201, .38);
}
.ad-bid-chip > i.el-icon-star-on { font-size: 14px; }
.ad-bid-chip-num {
  font-size: var(--text-md);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ad-bid-chip-unit { font-size: var(--text-xs); opacity: .85; }

.ad-filter-btns {
  display: flex;
  align-items: center;
  gap: var(--ad-gap-x);
}
.ad-stats {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 28px;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--gray-100);
}
.ad-stat-txt { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--ad-text-2); }
.ad-stat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ad-text-4); flex-shrink: 0; }
.ad-stat-dot.is-primary { background: var(--ad-primary); }
.ad-stat-dot.is-ok { background: #16a34a; }
.ad-stat-dot.is-info { background: #0284c7; }
.ad-stat-dot.is-warn { background: #d97706; }
.ad-stat-dot.is-muted { background: #94a3b8; }
.ad-stat-dot.is-bad { background: #dc2626; }
/* 招标项目（= 姓名角标同一品牌蓝，保持「角标 ↔ 统计」颜色一致） */
.ad-stat-dot.is-yes { background: #3d5bc9; }
.ad-stat-txt-label { color: var(--ad-text-2); }
/* 合计数字与文字同号（不做放大展示），仅靠加粗 + 颜色区分 */
.ad-stat-txt-val { font-size: var(--text-sm); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ad-stat-txt-val.is-primary { color: var(--ad-primary); }
.ad-stat-txt-val.is-ok { color: #16a34a; }
.ad-stat-txt-val.is-info { color: #0284c7; }
.ad-stat-txt-val.is-warn { color: #d97706; }
.ad-stat-txt-val.is-muted { color: #64748b; }
.ad-stat-txt-val.is-bad { color: #dc2626; }
.ad-stat-txt-val.is-yes { color: #3d5bc9; }
.ad-stat-txt-unit { color: var(--ad-text-3); }

/* 专家库搜索条件：4 列网格，字段对齐（覆盖 .ad-filter 的 flex 换行） */
.ad-pool .ad-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--space-5);
  row-gap: var(--space-3);
  align-items: center;
  margin-top: 0;
}
.ad-pool .ad-filter .ad-field { min-width: 0; }
.ad-pool .ad-filter .ad-field > span:first-child { flex-shrink: 0; white-space: nowrap; }
.ad-pool .ad-filter .ad-input,
.ad-pool .ad-filter .ad-pick,
.ad-pool .ad-filter .el-select { flex: 1; min-width: 0; }
.ad-pool .ad-filter .ad-pick select { width: 100%; }
.ad-pool .ad-filter .el-select { width: 100%; }
/* 输入框 / 原生下拉 / el-select 三者几何完全一致（等高、同边框、同圆角、同字号） */
.ad-pool .ad-filter .ad-input,
.ad-pool .ad-filter .ad-pick select,
.ad-pool .ad-filter .el-select .el-input__inner {
  height: var(--ad-ctrl-h);
  line-height: var(--ad-ctrl-h);
  border: 1px solid var(--ad-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--ad-text);
}
.ad-pool .ad-filter .ad-input { padding: 0 var(--space-3); }
.ad-pool .ad-filter .ad-pick select { padding: 0 28px 0 var(--space-3); }
.ad-pool .ad-filter .el-select .el-input__inner { padding: 0 12px; }

/* 「专业」多选字段：宽度与其它搜索框**严格一致**（占 1 列、不跨列），用 `collapse-tags` 折叠成
   「首个专业 +N」→ 标签永不换行、控件恒 32px，与其它字段同宽同高、完全对齐。
   （此前为平铺多个标签曾跨 2 列 + 标签层流内撑高；用户反馈宽度要跟其它框一致后改回等宽折叠。） */
.ad-pool .ad-filter .ad-field--major .el-select__tags { flex-wrap: nowrap; }
.ad-pool .ad-filter .ad-field--major .el-select__tags .el-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-pool .ad-filter .ad-field--major .el-select__tags .el-tag > span { overflow: hidden; text-overflow: ellipsis; }

/* 弹窗（暂停 / 退库）提示与行内输入 */
.ad-pool-form-tip { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--ad-text); line-height: 1.7; }

/* 详情弹窗内的表格（相关工作经历 / 职业执业资格） */
.ad-detail-table { margin-top: 4px; overflow-x: auto; }
.ad-detail-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ad-detail-table th,
.ad-detail-table td { padding: 7px 10px; border: 1px solid var(--gray-100); text-align: left; }
.ad-detail-table th { background: #f7f9fd; color: var(--ad-text-3); font-weight: 500; white-space: nowrap; }
.ad-detail-table td { color: var(--ad-text); }

/* --------------------------------------------------------------------------
   4.2 专家库：搜索多选下拉 + 详情分组
   -------------------------------------------------------------------------- */
.ad-filter .el-select { width: 170px; vertical-align: middle; }
.ad-filter .el-select .el-input__inner { height: var(--ad-ctrl-h); line-height: var(--ad-ctrl-h); }

.ad-pool-detail { max-height: calc(100vh - 170px); overflow-y: auto; }
.ad-detail-sec { margin-top: var(--space-4); }
.ad-detail-sec:first-child { margin-top: 0; }
.ad-detail-sec-hd {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--ad-line);
  font-size: var(--text-sm); font-weight: 700; color: var(--gray-900);
}
.ad-detail-sec-hd::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--ad-primary); }
.ad-detail-sec .ad-detail { margin: 0; }

/* 详情模块：水平页签切换（.ad-detail-tabs） */
.ad-pool-detail .ad-detail-tabs { margin-top: var(--space-3); }
.ad-pool-detail .ad-detail-tabs .el-tabs__header { margin: 0 0 var(--space-4); }
.ad-pool-detail .ad-detail-tabs .el-tabs__nav-wrap::after { height: 1px; background-color: var(--ad-line); }
.ad-pool-detail .ad-detail-tabs .el-tabs__item {
  height: 40px; line-height: 40px;
  font-size: var(--text-sm); color: var(--ad-text-2);
}
.ad-pool-detail .ad-detail-tabs .el-tabs__item.is-active { color: var(--ad-primary); font-weight: 600; }
.ad-pool-detail .ad-detail-tabs .el-tabs__active-bar { background-color: var(--ad-primary); height: 3px; border-radius: 2px; }
.ad-pool-detail .ad-detail-tabs .el-tabs__content { overflow: visible; }

/* 详情弹窗占 90% 宽：字段两列展示，标签稍宽 */
.ad-pool-detail .ad-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-6);
}
.ad-pool-detail .ad-detail li > span { flex-basis: 150px; }
