/* ==========================================================================
   OA 智能管理系统 · 设计系统 v2「浅色轻盈」
   --------------------------------------------------------------------------
   气质：浅色侧栏 + 品牌蓝，靠「描边」分层而不是靠投影堆叠，信息密度中等。
   改动原则：★ 选择器与变量名保持不变 ★
   22 个业务视图（views-core/hr/fin）共用这里的 60+ 个类，只换视觉、不换结构。
   视图 JS 里有 2 处内联引用了 var(--line-2)，删不得。
   ========================================================================== */
:root {
  /* ---- 面：三级层次，靠这三层色 + 描边撑开空间感 ---- */
  --bg: #f6f7f9;            /* 页面底 */
  --panel: #ffffff;         /* 卡片面 */
  --panel-2: #fafbfc;       /* 次级面：表头、代码块、内嵌块 */
  --panel-3: #f1f3f7;       /* 三级面：hover、斑马纹、未选中态 */

  /* ---- 字 ---- */
  --ink: #16202e;           /* 主文字 */
  --ink-2: #48546a;         /* 次文字 */
  --ink-3: #8a94a6;         /* 弱文字：标签、辅助说明 */

  /* ---- 线：本设计的主要分层手段 ---- */
  --line: #e3e7ee;          /* 主描边 */
  --line-2: #eef1f6;        /* 细描边：表格行、分隔 */
  --line-3: #f5f7fa;        /* 极浅：斑马纹 */

  /* ---- 品牌 ---- */
  --brand: #185fa5;         /* 主色 */
  --brand-2: #378add;       /* 亮主色：图形、hover 态 */
  --brand-soft: #e6f1fb;    /* 主色浅底：选中、强调块 */
  --brand-line: #b5d4f4;    /* 主色浅描边 */

  /* ---- 语义色（同时给出浅底与浅描边，标签/横幅/状态块统一用这三件套）---- */
  --green: #0f6e56;  --green-soft: #e1f5ee;  --green-line: #9fe1cb;
  --orange: #b26b10; --orange-soft: #faeeda; --orange-line: #fac775;
  --red: #a32d2d;    --red-soft: #fcebeb;    --red-line: #f7c1c1;
  --purple: #534ab7; --purple-soft: #eeedfe; --purple-line: #cecbf6;
  --blue: #185fa5;   --grey: #5f5e5a;

  /* ---- 形状 ---- */
  --radius: 8px;            /* 卡片 */
  --radius-sm: 6px;         /* 输入、标签、小按钮 */
  --radius-lg: 12px;        /* 弹窗、登录卡片 */
  --shadow: 0 1px 2px rgba(22, 32, 46, .04);
  --shadow-pop: 0 10px 30px rgba(22, 32, 46, .10), 0 2px 6px rgba(22, 32, 46, .05);

  --side-w: 224px;

  /* ---- Element Plus 主题对齐 ----
     不覆盖这些，EP 的按钮/页签/开关仍是默认的 #409eff，跟本系统的品牌蓝打架。
     light-N 是按 EP 的算法「主色向白色混 10%×N」算出来的，保持一致。 */
  --el-color-primary: #185fa5;
  --el-color-primary-light-3: #5d8fc0;
  --el-color-primary-light-5: #8cafd2;
  --el-color-primary-light-7: #bacfe4;
  --el-color-primary-light-8: #d1dfed;
  --el-color-primary-light-9: #e8eff6;
  --el-color-primary-dark-2: #134c84;
  --el-color-success: #0f6e56;
  --el-color-warning: #b26b10;
  --el-color-danger: #a32d2d;
  --el-color-error: #a32d2d;
  --el-color-info: #8a94a6;
  --el-border-radius-base: 6px;
  --el-border-radius-small: 4px;
  --el-font-size-base: 14px;
  --el-text-color-primary: #16202e;
  --el-text-color-regular: #48546a;
  --el-border-color: #e3e7ee;
  --el-border-color-light: #eef1f6;
  --el-fill-color-light: #f1f3f7;
  --el-bg-color-page: #f6f7f9;
}

* { box-sizing: border-box; }

html, body, #app { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 12px; }
h4 { font-size: 13.5px; margin: 16px 0 8px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 通用小工具类（22 个视图大量使用，别动名字） ---------- */
.small { font-size: 12px; }
.muted { color: var(--ink-3); }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.big { font-size: 16px; font-weight: 600; }
.spacer { flex: 1 1 auto; }
.mb0 { margin-bottom: 0; }
.mb6 { margin-bottom: 6px; }
.mb10 { margin-bottom: 10px; }
.mt0 { margin-top: 0; }
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mt14 { margin-top: 14px; }
.mr10 { margin-right: 10px; }
.pl10 { padding-left: 10px; }

.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.tight { gap: 4px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 主次分明的两列：左侧待办列表要放单号+节点+箭头，给它更宽的一列 */
.g-2to1 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2to1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .g2, .g3, .g4, .g-2to1 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 待办清单行（工作台「待我处理」） ---------- */
.todo-i {
  display: flex; align-items: center; gap: 8px; padding: 9px 2px;
  border-bottom: 1px dashed var(--line-2); cursor: pointer; border-radius: var(--radius-sm);
  transition: .14s;
}
.todo-i:last-child { border-bottom: none; }
.todo-i:hover { background: var(--panel-2); }
.todo-i .tn { font-weight: 600; font-size: 12.5px; }
.todo-i .go { color: var(--ink-3); font-size: 12px; }
.todo-i:hover .go { color: var(--brand); }

/* ---------- 加载态 ---------- */
.boot {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}

/* ==========================================================================
   登录页
   ========================================================================== */
.login-wrap {
  min-height: 100%; padding: 40px 20px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
/* 卡片 = 抬头（横跨整宽）+ 表单 + 演示账号。
   之前是「抬头和表单上下叠在左列、演示面板 grid-row:1/span 2 跨两行」：
   跨行元素比两行内容高得多，多出来的高度要摊到它跨的行上，第 1 行被撑到 255px，
   而抬头是 align-self:stretch 拉满再垂直居中 —— 于是抬头下方平白多出一大块空白。
   现在抬头独占一行、下面两列各自从顶部对齐，空白不会再产生。 */
.login-card {
  width: 940px; max-width: 100%; display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 22px 32px; align-items: start;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
}
/* 关掉演示模式（OA_DEMO_MODE=0）后右半边是空的，卡片收窄居中，不留半张空桌 */
.login-card.no-demo { width: 440px; grid-template-columns: minmax(0, 1fr); }

.lg-brand {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-2);
}
.lg-logo {
  width: 44px; height: 44px; border-radius: var(--radius); color: #fff; font-weight: 700;
  background: var(--brand); flex: none;
  display: flex; align-items: center; justify-content: center; letter-spacing: .5px;
}
.lg-brand h1 { font-size: 18px; margin: 0 0 3px; }
.lg-brand .sub { color: var(--ink-3); font-size: 12.5px; }

.lg-form { grid-column: 1; }
.lg-err {
  color: var(--red); font-size: 12.5px; background: var(--red-soft);
  border: 1px solid var(--red-line); border-radius: var(--radius-sm);
  padding: 7px 10px; margin-bottom: 12px;
}

.lg-demo {
  grid-column: 2; grid-row: 2;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 16px 18px;
}
@media (max-width: 900px) {
  .login-card { grid-template-columns: minmax(0, 1fr); }
  .login-card.no-demo { width: 100%; }
  .lg-brand, .lg-form, .lg-demo { grid-column: 1; grid-row: auto; }
}
.lg-demo-h {
  display: flex; align-items: baseline; justify-content: space-between;
  font-weight: 600; font-size: 13px; margin-bottom: 10px;
}
/* 6 个演示账号排三列：左侧表单只有 2 输入 + 1 按钮（约 120px 高），
   演示面板若排两列就有 380px 高，卡片左下会空出一大片、重心整个偏到右下。
   排三列把面板压到 240px 上下，两列高度接近，卡片才是平的。 */
.lg-demo-list { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .lg-demo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lg-demo-list { grid-template-columns: minmax(0, 1fr); } }
.lg-demo-item {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; cursor: pointer; transition: .16s;
}
.lg-demo-item:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.lg-demo-item .r1 { display: flex; align-items: baseline; gap: 8px; }
.lg-demo-item .r2 { color: var(--brand); font-size: 12px; margin-top: 2px; }
.lg-demo-item .r3 { color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }

/* ==========================================================================
   应用外壳
   ========================================================================== */
.shell { height: 100vh; }

/* 浅色侧栏：白底 + 右侧一条描边，与内容区靠「线」分开，不再用整块深色压场 */
.side {
  background: var(--panel); color: var(--ink-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 14px; border-bottom: 1px solid var(--line-2);
}
.brand .logo {
  width: 32px; height: 32px; border-radius: var(--radius-sm); color: #fff; font-weight: 700;
  font-size: 12.5px; background: var(--brand);
  display: flex; align-items: center; justify-content: center; flex: 0 0 32px;
}
.brand .bt { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; }
.brand .ver {
  font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 4px; line-height: 15px;
}

.side-user { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.side-user .nm { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.side-user .rl { color: var(--brand); font-size: 11.5px; margin-top: 3px; }
.side-user .dp { color: var(--ink-3); font-size: 11px; margin-top: 2px; }

.menu { flex: 1 1 auto; overflow-y: auto; padding: 10px 8px 14px; }
/* 分组小标题：刻意不用 .menu-i，否则浏览器自检数菜单项会数错 */
.menu-g {
  font-size: 11px; color: var(--ink-3); letter-spacing: .06em;
  padding: 12px 10px 5px; font-weight: 600;
}
.menu-g:first-child { padding-top: 2px; }
.menu-i {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  cursor: pointer; font-size: 13px; color: var(--ink-2); transition: .14s;
  border-radius: var(--radius-sm); margin-bottom: 2px;
}
.menu-i:hover { background: var(--panel-3); color: var(--ink); }
.menu-i.on { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.menu-i .ic { font-size: 15px; flex: 0 0 15px; }
.menu-i .lb { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-i .bdg {
  background: var(--red); color: #fff; font-size: 10.5px; min-width: 17px; height: 17px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; font-weight: 600;
}
.side-foot {
  border-top: 1px solid var(--line-2); padding: 10px 16px; display: flex; gap: 14px;
  font-size: 12px;
}
.side-foot .link { color: var(--ink-3); cursor: pointer; }
.side-foot .link:hover { color: var(--brand); }

.top {
  background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding: 0 20px;
}
.top h2 { font-size: 15px; margin: 0; font-weight: 600; }
.top .u { color: var(--ink-2); font-size: 12.5px; margin-left: 6px; }
.top .u b {
  display: inline-block; margin-left: 6px; font-weight: 500; color: var(--ink-3);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
}
.tdiv { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.crumb { color: var(--ink-3); }

.main { padding: 18px 20px 32px; overflow-y: auto; background: var(--bg); }

/* ---------- 页面标题区（各视图顶部统一用它起头） ---------- */
.page-h {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px;
}
.page-h .t { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.page-h .d { color: var(--ink-3); font-size: 12.5px; padding-bottom: 2px; }
.page-h .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- 通知抽屉 ---------- */
.note-i {
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px;
  margin-bottom: 8px; cursor: pointer; background: var(--panel);
}
.note-i:hover { border-color: var(--line); }
.note-i.unread { border-left: 3px solid var(--brand); background: var(--brand-soft); }
.note-i .r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.note-i .r2 { color: var(--ink-2); font-size: 12.5px; margin-top: 4px; }

/* ==========================================================================
   卡片 / 统计块
   ========================================================================== */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px;
}
.card.no-pad { padding: 0; overflow: hidden; }
.card h3 .sub { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 8px; }
.card-h {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--line-2); flex-wrap: wrap;
}
.card-h h3 { margin: 0; }
.card-b { padding: 14px 18px; }

/* 统计块：语义色只用一个 6px 圆点 + 数字着色，不用整块色条压场，保持「轻」 */
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .k {
  color: var(--ink-3); font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}
.stat .k::before {
  content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line); display: block;
}
.stat .v {
  font-size: 26px; font-weight: 650; line-height: 1.3; margin-top: 4px;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat .v small { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
.stat .f { color: var(--ink-3); font-size: 11.5px; margin-top: 5px; }
.stat.accent .k::before { background: var(--brand); }
.stat.good .k::before { background: var(--green); }
.stat.good .v { color: var(--green); }
.stat.warn .k::before { background: var(--orange); }
.stat.warn .v { color: var(--orange); }
.stat.bad .k::before { background: var(--red); }
.stat.bad .v { color: var(--red); }

/* ==========================================================================
   提示条
   ========================================================================== */
.banner {
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12.5px;
  color: #123a63; margin-bottom: 14px; line-height: 1.7;
}
.banner.warn { background: var(--orange-soft); border-color: var(--orange-line); color: #7a4a08; }
.banner.bad { background: var(--red-soft); border-color: var(--red-line); color: #7c2020; }
.banner.good { background: var(--green-soft); border-color: var(--green-line); color: #0b5341; }

.ok-note { color: var(--green); }

/* ==========================================================================
   标签 / 金额
   ========================================================================== */
.tag {
  display: inline-block; padding: 0 7px; border-radius: var(--radius-sm); font-size: 11.5px;
  line-height: 19px; border: 1px solid transparent; white-space: nowrap;
}
.tag.grey { background: var(--panel-3); color: var(--grey); border-color: var(--line); }
.tag.blue { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.tag.green { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.tag.orange { background: var(--orange-soft); color: var(--orange); border-color: var(--orange-line); }
.tag.red { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.tag.purple { background: var(--purple-soft); color: var(--purple); border-color: var(--purple-line); }

.money, .num { font-variant-numeric: tabular-nums; }
.money.strong, .strong { font-weight: 600; }
.amt-neg { color: var(--red); }
.amt-ok { color: var(--green); font-weight: 600; }
.amt-warn { color: var(--orange); }

.wsum-ok { color: var(--green); font-weight: 600; }
.wsum-bad { color: var(--red); font-weight: 600; }

/* ==========================================================================
   明细表（纯 HTML 表，比 el-table 更适合做对账视图）
   ========================================================================== */
table.kv { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.kv td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.kv td:first-child { color: var(--ink-3); width: 42%; }
table.kv tr:last-child td { border-bottom: none; }
table.kv tr.total td {
  border-top: 1px solid var(--line); font-weight: 600; background: var(--panel-2);
  color: var(--ink); font-size: 13px;
}
table.kv td.big { font-size: 15px; font-weight: 600; }

table.calc { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.calc th, table.calc td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: left; }
table.calc th { color: var(--ink-3); font-weight: 500; background: var(--panel-2); }
table.calc td.right, table.calc th.right { text-align: right; font-variant-numeric: tabular-nums; }
table.calc tr.sum td { font-weight: 600; border-top: 1px solid var(--line); background: var(--panel-2); }
/* ★ 视图里一直有 <tr class="grp">（个税计算的「累计应纳税所得额」这一行，
   是后面所有档位计算的分水岭），但从来没写过对应样式，一直在平铺显示。
   补上：加粗 + 浅底，让它从上下相邻行里跳出来。 */
table.calc tr.grp td {
  font-weight: 600; color: var(--ink); background: var(--panel-3);
}

/* ==========================================================================
   审批路径
   ========================================================================== */
.flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.flow-arrow { align-self: center; color: var(--ink-3); font-size: 13px; }
.flow-node {
  flex: 1 1 150px; min-width: 150px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px;
  position: relative;
}
.flow-node .seq {
  width: 18px; height: 18px; border-radius: 50%; background: var(--panel-3); color: var(--ink-2);
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; margin-bottom: 6px;
}
.flow-node .nm { font-weight: 600; font-size: 12.5px; }
.flow-node .meta { color: var(--ink-3); font-size: 11.5px; margin-top: 3px; line-height: 1.5; }
.flow-node .meta.cond { color: var(--orange); }
.flow-node.pay { background: var(--purple-soft); border-color: var(--purple-line); }
.flow-node.cur {
  border-color: var(--orange-line); background: var(--orange-soft);
  box-shadow: 0 0 0 2px rgba(178, 107, 16, .12);
}
.flow-node.done { border-color: var(--green-line); background: var(--green-soft); }

/* ==========================================================================
   时间线
   ========================================================================== */
.tl { position: relative; padding-left: 14px; }
.tl-i { position: relative; padding: 0 0 12px 12px; border-left: 2px solid var(--line-2); }
.tl-i:last-child { padding-bottom: 0; }
.tl-i::before {
  content: ''; position: absolute; left: -6px; top: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: #c3cbd9; border: 2px solid var(--panel);
}
.tl-i.ok::before { background: var(--green); }
.tl-i.no::before { background: var(--red); }
.tl-i.cur::before { background: var(--orange); }
.tl-i .t1 { font-size: 12.5px; }
.tl-i .cmt {
  color: var(--ink-2); font-size: 12px; background: var(--panel-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 5px 9px; margin-top: 5px;
}

/* ==========================================================================
   评分标准 / 条形图 / 收款码
   ========================================================================== */
.scales { font-size: 12px; line-height: 1.8; color: var(--ink-2); }
.scales b { color: var(--brand); margin-right: 4px; }

.bar-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; font-size: 12.5px; }
.bar-row .lb {
  width: 104px; flex: 0 0 104px; color: var(--ink-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.bar-row .bw { flex: 1 1 auto; height: 10px; background: var(--panel-3); border-radius: 5px; overflow: hidden; }
.bar-row .bf { display: block; height: 100%; border-radius: 5px; transition: width .3s; }
.bar-row .vl { width: 140px; flex: 0 0 140px; text-align: right; font-variant-numeric: tabular-nums; }

.qr-thumb {
  width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: zoom-in;
}
.qr-big { width: 100%; max-width: 300px; border-radius: var(--radius-sm); }

/* ---------- 付款成功凭证截图（可多张，右上角带删除） ---------- */
.proof-thumb {
  position: relative; display: inline-block; margin: 0 8px 8px 0;
}
.proof-thumb img {
  width: 108px; height: 108px; object-fit: cover; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: zoom-in; display: block;
}
.proof-del {
  position: absolute; right: -6px; top: -6px; width: 20px; height: 20px;
  line-height: 18px; text-align: center; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 14px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}
.proof-del:hover { opacity: .85; }

.pfi { font-size: 12.5px; }
.pfi .ln { display: flex; justify-content: space-between; padding: 3px 0; }
.pfi .ln.b { font-weight: 600; border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 6px; }

/* ---------- 表单辅助 ---------- */
.fl {
  display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px;
}
.fl .req { color: var(--red); margin-left: 3px; }
.plan-box {
  background: var(--panel-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px;
}
.role-row, .cap-row {
  padding: 8px 0; border-bottom: 1px dashed var(--line-2);
}
.role-row:last-child, .cap-row:last-child { border-bottom: none; }
.dlg-body { padding: 2px 2px 6px; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 22px 10px;
}
.empty .ic { font-size: 22px; margin-bottom: 6px; }

/* ==========================================================================
   Element Plus 微调（让默认样式贴合本系统的密度与形状）
   ========================================================================== */
.el-table { font-size: 12.5px; }
.el-table th.el-table__cell { background: var(--panel-2) !important; color: var(--ink-2); font-weight: 500; }
.el-table .cell { line-height: 1.5; }
.el-table--border, .el-table--border .el-table__cell { border-color: var(--line-2); }
.el-table__body tr:hover > td.el-table__cell { background: var(--panel-2) !important; }
.el-form-item__label { color: var(--ink-2); }
.el-form-item { margin-bottom: 0; }
.el-card, .el-dialog { border-radius: var(--radius-lg); }
.el-dialog { box-shadow: var(--shadow-pop); }
.el-dialog__header { margin-right: 0; border-bottom: 1px solid var(--line-2); padding-bottom: 12px; }
.el-dialog__body { padding: 16px 20px; max-height: 72vh; overflow-y: auto; }
.el-drawer__body { padding: 14px 18px; }
.el-drawer__header { border-bottom: 1px solid var(--line-2); padding-bottom: 14px; margin-bottom: 0; }
.el-message { border-radius: var(--radius-sm); }
.el-button { border-radius: var(--radius-sm); }
.el-button--primary { box-shadow: none; }
.el-button + .el-button { margin-left: 6px; }
.el-radio-button__inner, .el-checkbox__label { font-size: 12.5px; }
.el-badge__content.is-fixed { top: 4px; }
.el-input__wrapper, .el-textarea__inner { border-radius: var(--radius-sm); }
.el-popper.is-light { box-shadow: var(--shadow-pop); }
.el-select-dropdown__item.is-selected { color: var(--brand); }
.el-tabs__item.is-active { color: var(--brand); }
.el-tabs__active-bar { background-color: var(--brand); }
.el-upload--picture-card, .el-upload-list--picture-card .el-upload-list__item {
  border-radius: var(--radius-sm);
}

/* ==================== 绩效考核表编辑（卡片式布局） ==================== */
.perf-tpl-dlg { max-width: 96vw; }
.tpl-card {
  border: 1px solid var(--line-2, #e4e7ed);
  border-radius: 8px;
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  background: #fff;
}
.tpl-card.is-bonus { background: #fdfaf3; border-color: #f0dcb4; }
.tpl-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.tpl-idx {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand, #1565c0); color: #fff; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tpl-card.is-bonus .tpl-idx { background: #b8860b; }
.tpl-lab { color: #909399; font-size: 12px; margin-left: 2px; }
.tpl-desc-row { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.tpl-scales {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 9px;
}
.tpl-scale {
  border: 1px solid var(--line-1, #ebeef5); border-radius: 6px;
  padding: 6px 8px; background: #fafbfc; min-width: 0;
}
.tpl-card.is-bonus .tpl-scale { background: #fff; }
.tpl-scale-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.tpl-grade {
  flex: none; width: 20px; height: 20px; border-radius: 4px; color: #fff;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.tpl-grade.S { background: #9333ea; }
.tpl-grade.A { background: #16a34a; }
.tpl-grade.B { background: #2563eb; }
.tpl-grade.C { background: #d97706; }
.tpl-grade.D { background: #dc2626; }
.tpl-grade.E { background: #6b7280; }
.tpl-foot-tip { color: #909399; font-size: 12px; line-height: 1.7; }
@media (max-width: 1100px) {
  .perf-tpl-dlg { width: 96vw !important; }
  .tpl-scales { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .tpl-scales { grid-template-columns: repeat(2, 1fr); }
}
/* 发起考核向导 */
.launch-sum { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.launch-sum .sum-chip {
  border: 1px solid var(--line-2, #e4e7ed); border-radius: 6px;
  padding: 6px 12px; font-size: 12.5px; background: #fafbfc;
}
.launch-sum .sum-chip b { font-size: 15px; margin-left: 4px; }
.launch-sum .sum-chip.warn { border-color: #f5dab1; background: #fdf6ec; }
/* 待完善岗位行弱警示 */
.el-table .tpl-row-warn { background: #fffaf2; }
.el-table .tpl-row-warn:hover > td { background: #fdf3e3; }
/* ============ 岗位与考核表页版面规范 ============ */
/* 配置进度列：chip + 说明同行排列，行距统一 24px，两区块间距 2px */
.cfg-line { display: flex; align-items: center; gap: 6px; line-height: 22px; margin-bottom: 2px; flex-wrap: wrap; }
.cfg-line:last-child { margin-bottom: 0; }
.cfg-line .tag { flex: none; }
/* 操作列：单行不换行，按钮间距统一 */
.op-row { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
.op-col .cell { text-align: center; }
/* 响应式：统计条 4 格 → 平板 2 格 → 手机 1 格 */
@media (max-width: 992px) {
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid.g4 { grid-template-columns: 1fr; }
  .op-row { flex-wrap: wrap; white-space: normal; }
}

/* ==================== 绩效：待自评醒目横幅 ==================== */
.perf-cta {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 14px;
  border-radius: 8px; color: #fff;
  background: linear-gradient(100deg, #f59e0b 0%, #f97316 60%, #ef4444 100%);
  box-shadow: 0 4px 14px rgba(249, 115, 22, .35);
}
.perf-cta .cta-icon {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: rgba(255, 255, 255, .22);
}
.perf-cta .cta-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .65);
  animation: perfPulse 1.6s ease-out infinite;
}
@keyframes perfPulse {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.25); opacity: 0; }
}
.perf-cta .cta-main { flex: 1; min-width: 0; }
.perf-cta .cta-title { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.perf-cta .cta-badge {
  display: inline-block; margin-left: 6px; padding: 0 7px;
  min-width: 18px; text-align: center;
  background: #dc2626; color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 9px; border: 1.5px solid #fff;
}
.perf-cta .cta-sub { margin-top: 3px; font-size: 12.5px; opacity: .95; }
.perf-cta .cta-btn { font-weight: 700; letter-spacing: 1px; border: none; }
.perf-cta .cta-btn-badge sup { border-color: #fff; }

/* ==========================================================================
   UI 打磨 v2.3（2026-09-26）：登录节奏 / 链接交互 / 上传行间距 / 焦点可达性
   ========================================================================== */

/* ---- 登录页表单节奏 ----
   全局把 .el-form-item 的下边距清零（服务筛选区等密集表单需要），
   但登录页只有账号/密码/按钮三个元素，间距全无就挤成一团。这里单独放开。 */
.lg-form .el-form-item { margin-bottom: 18px; }
.lg-form .el-form-item:last-of-type { margin-bottom: 0; }
.lg-form .el-button { margin-top: 4px; }
/* 输入框描边与悬停态向设计系统对齐：默认线、悬停加深、聚焦品牌蓝 */
.lg-form .el-input__wrapper { box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .16s; }
.lg-form .el-input__wrapper:hover { box-shadow: 0 0 0 1px var(--brand-line) inset; }
.lg-form .el-input__wrapper.is-focus { box-shadow: 0 0 0 1.5px var(--brand) inset; }

/* ---- 表格内的可点击链接（花名册姓名等）：颜色并入品牌色、补齐交互态 ---- */
.el-table .el-link { font-weight: 500; }
.el-table .el-link.el-link--primary,
.el-table .el-link.el-link--primary .el-link__inner { color: var(--brand); }
.el-table .el-link.el-link--primary:hover {
  color: var(--brand-2);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.el-table .el-link.el-link--primary:hover .el-link__inner { color: var(--brand-2); }
.el-table .el-link.el-link--primary:active { color: var(--brand); opacity: .72; }
.el-table .el-link.el-link--primary:focus-visible {
  outline: 2px solid var(--brand-line); outline-offset: 2px; border-radius: 3px;
}

/* ---- 表单里的「上传收款码」行 ----
   el-form 固定标签宽是绝对定位右对齐的，内容区从标签宽处贴着开始，
   短标签 + 按钮会零间隙贴死；行内元素之间也统一放宽到 12px。 */
.qr-row { gap: 12px; padding: 3px 0 3px 4px; }

/* ---- 键盘可达性：所有裸链接的聚焦态给出可见描边 ---- */
a:focus-visible { outline: 2px solid var(--brand-line); outline-offset: 2px; border-radius: 3px; }
