/* ==========================================================================
   三金玻璃机械 · 员工培训管理系统
   视觉令牌取自 www.sanjinglass.com 实测渲染值
   ========================================================================== */

:root {
  --red: #E50012;          /* 品牌主色：按钮 / 激活态 / 装饰条 */
  --red-dark: #B80010;
  --red-soft: #FDECEE;
  --ink: #391F0E;          /* 正文主色（暖棕黑） */
  --ink-2: #333333;
  --muted: #6A6A6A;
  --muted-2: #9AA0A6;
  --line: #E3E3E3;
  --line-2: #EFEFEF;
  --bg: #F0F0F0;
  --bg-2: #F7F7F7;
  --card: #FFFFFF;
  --green: #2A8C4A;
  --green-soft: #E4F3E8;
  --amber: #D98B00;
  --amber-soft: #FDF3E2;
  --blue: #015AAC;
  --blue-soft: #E8F1FA;
  --shadow: 0 1px 2px rgba(57,31,14,.05), 0 4px 14px rgba(57,31,14,.05);
  --shadow-lg: 0 12px 40px rgba(57,31,14,.16);
  --r: 10px;
  --r-sm: 7px;
  --font: Arial, "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  /* 英文/数字统一 Arial（用户明确要求）；保留 --mono 变量名仅为兼容既有引用 */
  --mono: Arial, "Microsoft YaHei", sans-serif;
}

[data-theme="dark"] {
  --red: #FF3B45;
  --red-dark: #E50012;
  --red-soft: #3A1C1F;
  --ink: #EDE7E1;
  --ink-2: #DED8D2;
  --muted: #A8A29C;
  --muted-2: #7C7873;
  --line: #3A3733;
  --line-2: #302E2B;
  --bg: #1B1A18;
  --bg-2: #232120;
  --card: #242220;
  --green: #5BC47C;
  --green-soft: #1E3326;
  --amber: #E0A93C;
  --amber-soft: #33290F;
  --blue: #63A9E8;
  --blue-soft: #16283A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.dot { margin: 0 6px; color: var(--muted-2); }

/* ---------------------------------------------------------------- 顶部
   品牌红顶栏（Brutally minimal × Industrial）：整幅红色品牌头是全站唯一色彩锚。
   白色 logo / 标题 / 导航压在深红渐变上，靠斜切高光与细颗粒制造工业质感，不做平涂。
   英文副标沿用 Arial 是用户明确指定；内网系统不能依赖联网字体，属合理约束例外。 */
.topstrip { height: 4px; background: linear-gradient(90deg, #8C0006, #C00010 42%, #8C0006); }
.site-header {
  position: sticky; top: 0; z-index: 60;
  color: #fff;
  background:
    linear-gradient(107deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,0) 36%),
    linear-gradient(180deg, #E50012 0%, #C60010 48%, #9C000C 100%);
  box-shadow: 0 6px 24px rgba(120,0,8,.24), inset 0 -1px 0 rgba(255,255,255,.12);
}
/* 细颗粒：仅覆盖顶栏自身，不影响下方用户下拉菜单（故不设 overflow:hidden） */
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 18px; color: #fff; flex: none; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark svg, .brand-mark img { display: block; }
.brand-mark img { height: 44px; width: auto; }
[data-theme="dark"] .brand-mark img { filter: none; }
.brand-divider { width: 1px; height: 38px; background: rgba(255,255,255,.32); }
.brand-sys b {
  display: block; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .6px;
  text-shadow: 0 1px 2px rgba(90,0,6,.25);
}
.brand-sys small {
  display: block; margin-top: 4px; font-family: Arial, sans-serif;
  font-size: 10.5px; color: rgba(255,255,255,.74); letter-spacing: 1px; text-transform: uppercase;
}

/* ---------------------------------------------------- 左侧纵向导航（红灰白 · 外企工业后台） */
/* 整页纵向撑满视口（顶栏 4px 装饰条 + 72px 红头），内容不足一屏时页脚贴底 */
#appRoot { min-height: 100vh; display: flex; flex-direction: column; }
#appRoot[hidden] { display: none !important; }
.app-body { display: flex; align-items: stretch; flex: 1 1 auto; min-height: 0; }
.sidebar {
  position: sticky; top: 72px; align-self: flex-start;
  width: 224px; flex: 0 0 224px; height: calc(100vh - 76px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-right: 1px solid var(--line);
  padding: 14px 0 12px; z-index: 40;
}
/* 导航区内部滚动，底部核心价值观固定可见 */
.sidebar .mainnav { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.sidebar .side-cap, .sidebar .side-foot { flex: 0 0 auto; }
.side-cap {
  padding: 0 24px 14px; font-family: Arial, sans-serif; font-size: 10.5px;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-2);
}
.mainnav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-group-cap { padding: 0 14px 7px; font-size: 11px; color: var(--muted-2); letter-spacing: .6px; }
.mainnav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 4px; font-size: 13.5px; color: var(--ink-2);
  border-left: 3px solid transparent;
  transition: color .16s, background .16s, border-color .16s;
}
.mainnav a svg { flex: none; opacity: .78; }
.mainnav a:hover { color: var(--red); background: var(--red-soft); text-decoration: none; }
.mainnav a.on {
  color: #fff; background: var(--red); border-left-color: var(--red-dark); font-weight: 700;
  box-shadow: 0 1px 3px rgba(229,0,18,.22);
}
.mainnav a.on svg { opacity: 1; }
.side-foot {
  margin: 12px 22px 0; padding-top: 9px; border-top: 1px solid var(--line-2);
  font-size: 11px; color: var(--muted-2); line-height: 1.4;
}
.sf-cap { font-family: Arial, sans-serif; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted-2); }
.sf-values { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 4px; margin: 9px 0 14px; }
.sf-values span { position: relative; padding-left: 11px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sf-values span::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; background: var(--red);
}
.sf-org { padding-top: 7px; border-top: 1px dashed var(--line-2); font-size: 10px; color: var(--muted-2); line-height: 1.35; }
/* 核心价值观：布赫三大价值 RESPECT / Reliability / Innovation（中英同行，紧凑吸底） */
.sf-values.cv-list { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 8px; }
.sf-values.cv-list span::before { display: none; }
.cv-item { display: flex; align-items: baseline; gap: 8px; }
.cv-no { display: none; }
.cv-words { display: flex; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
.cv-en {
  font-family: Arial, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .2px;
  color: var(--ink-2); line-height: 1.2;
}
.cv-en.cv-italic { font-style: italic; font-weight: 700; letter-spacing: 0; }
.cv-zh { font-style: normal; font-size: 10px; color: var(--muted-2); letter-spacing: 1px; }
.sf-cap { font-size: 9px; letter-spacing: .8px; }
.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* 内容不足一屏时，主区撑满剩余高度，把页脚压到页面最底 */
.app-content > main.wrap { flex: 1 0 auto; }
/* 页内「返回上一页」：左上角、浅描边、箭头用品牌红 */
.page-back { margin: 0 0 14px; }
.page-back .btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; }
.page-back .bk-arrow { color: var(--red); font-weight: 800; font-size: 14px; line-height: 1; }
.app-content .crumb-bar .wrap,
.app-content .site-footer .wrap { max-width: none; padding: 0 30px; }
.app-content main.wrap { max-width: none; width: 100%; padding: 34px 30px 44px; }

.header-tools { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.lang-toggle {
  height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.12); border-radius: var(--r-sm); color: #fff;
  font: 700 12px Arial, Helvetica, sans-serif; letter-spacing: .04em; cursor: pointer;
  white-space: nowrap;
}
.lang-toggle:hover { background: #fff; color: var(--red); border-color: #fff; }
.icon-btn {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.12);
  border-radius: var(--r-sm); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.22); border-color: #fff; }
.icon-btn:disabled { opacity: .7; cursor: wait; }
.icon-btn.busy svg { animation: spin .8s linear infinite; }
.who {
  font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.12); border-radius: 20px; padding: 4px 12px; white-space: nowrap;
}

/* ---------------------------------------------------------------- 面包屑 */
.crumb-bar { background: var(--card); border-bottom: 1px solid var(--line-2); }
.crumb-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.crumb { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--red); text-decoration: none; }
.crumb .sep { color: var(--muted-2); }
.crumb .cur { color: var(--ink); font-weight: 700; }
.crumb-right { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }

main {
  display: block; padding: 34px 0 44px; min-height: 60vh;
  /* 极淡的暖灰纵向层次，去掉纯平铺的苍白感；仍守红灰白三色 */
  background: linear-gradient(180deg, rgba(229,0,18,.022) 0%, rgba(229,0,18,0) 220px);
}
/* ---------------------------------------------------------------- 标题 */
/* 标题区离面包屑留出呼吸空间：add padding-top 避免"顶格"贴脸。 */
.page-head { margin-bottom: 22px; padding-top: 8px; }
.page-head h1 {
  position: relative; padding-left: 14px; font-size: 23px; color: var(--ink);
  letter-spacing: .3px; line-height: 1.3;
}
/* 红色竖锚：外企仪表盘的标题定式，与顶栏红色头呼应 */
.page-head h1::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 2px; background: var(--red);
}
.page-head p { margin: 6px 0 0 14px; color: var(--muted); font-size: 13px; }

.sec-title { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.sec-title .bar { width: 4px; height: 16px; background: var(--red); border-radius: 1px; flex: none; }
.sec-title h2 { font-size: 15px; color: var(--ink); letter-spacing: .2px; }
.sec-title .en { font-size: 11px; color: var(--muted-2); letter-spacing: 1.1px; text-transform: uppercase; }
.center-title { text-align: center; margin-bottom: 18px; }
.center-title h2 { font-size: 17px; }
.center-title .rule { width: 30px; height: 2px; background: var(--red); margin: 8px auto 0; }

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.card.pad { padding: 18px 20px; }
.card + .card { margin-top: 18px; }
/* 网格内卡片的间距由 .grid 的 gap 提供；避免在多列网格里给第二张卡误加 18px 上边距，
   导致左右两张卡顶部/表头不对齐（见仪表盘「重点课程排行」与「最新培训记录」）。 */
.grid .card + .card { margin-top: 0; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap;
}
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.card-body { padding: 18px 20px; }
.ca-summary { line-height: 1.9; font-size: 13.5px; color: var(--ink); }
.ca-card .card-head h3 { color: var(--brand, #E50012); }
.grid { display: grid; gap: 18px; align-items: stretch; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c2-1 { grid-template-columns: 1.62fr 1fr; }
.grid.c1-2 { grid-template-columns: 1fr 1.62fr; }

/* ---------------------------------------------------------------- KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
/* 固定列数的 KPI 网格：8 张卡时用 4×2，避免出现 6+2 这类失衡的尾行 */
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--r); padding: 15px 16px 14px; box-shadow: var(--shadow);
}
.kpi.ink { border-top-color: var(--ink); }
.kpi.plain { border-top-color: var(--muted-2); }
.kpi-click { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kpi-click:hover { border-color: var(--red); box-shadow: 0 3px 14px rgba(229,0,18,.12); }
.kpi .k-hint { margin-left: auto; font-size: 10.5px; color: var(--red); font-weight: 600; white-space: nowrap; }
.kpi .k { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 27px; font-weight: 700; color: var(--ink); line-height: 1.15; margin-top: 5px; letter-spacing: -.5px; }
.kpi .v small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.kpi .s { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }
.kpi .s.good { color: var(--green); }
.kpi .s.warn { color: var(--amber); }
.kpi .s.bad { color: var(--red); }
.kpi .v.good { color: var(--green); }
.kpi .v.bad { color: var(--red); }

/* 专项培训学时 6 组卡（安全/质量/外来/客户/新员工/工艺）—— 每组一个框，含学时+人均 */
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.sp-card {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--muted-2);
  border-radius: var(--r); padding: 14px 15px 12px; box-shadow: var(--shadow); min-width: 0;
}
.sp-card.sp-safety { border-top-color: var(--red); }
.sp-card.sp-quality { border-top-color: var(--ink); }
.sp-card.sp-outside { border-top-color: var(--muted); }
.sp-card.sp-customer { border-top-color: var(--muted-2); }
.sp-card.sp-newemp { border-top-color: var(--muted); }
.sp-card.sp-process { border-top-color: var(--muted-2); }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sp-head b { font-size: 13.5px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.sp-src { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 2026-11-24：专项卡右上角「申报学时」直达申报工作台 */
.sp-head-right { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sp-head-right .sp-src { max-width: 128px; }
.sp-apply { flex: 0 0 auto; padding: 2px 7px; border: 1px solid var(--red); background: #fff; color: var(--red); font-size: 10.5px; line-height: 15px; text-decoration: none; white-space: nowrap; }
.sp-apply:hover { background: var(--red); color: #fff; }
.sp-body { display: flex; gap: 10px; margin-top: 12px; }
.sp-metric { flex: 1; min-width: 0; }
.sp-label { font-size: 11px; color: var(--muted); }
.sp-num { font-size: 25px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-top: 3px; letter-spacing: -.5px; }
.sp-num small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.sp-metric:last-child .sp-num { color: var(--red); }
.sp-noalloc .sp-num .sp-na { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.sp-noalloc .sp-metric:last-child .sp-num { color: var(--ink); }
.sp-foot {
  font-size: 10.5px; color: var(--muted-2); margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 980px) { .sp-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 表格 */
.table-wrap { width: 100%; overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th {
  background: var(--ink); color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 9px 10px; text-align: left; white-space: nowrap; border: 1px solid var(--ink);
}
table.t td { padding: 9px 10px; border: 1px solid var(--line); vertical-align: middle; }
table.t tbody tr:hover td { background: var(--bg-2); }
table.t td.c, table.t th.c { text-align: center; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tfoot td { background: var(--red-soft); font-weight: 700; }
table.t.compact td, table.t.compact th { padding: 6px 8px; font-size: 12.5px; }
.rank-top { color: var(--red); font-size: 13px; }
/* 签到场次表：9 列在半屏里会挤碎主题文字，给最小宽度让 .table-wrap 横向滚动，
   "主题"列固定较宽，标题最多两行省略，避免拆成七八行。 */
table.t.si-table { min-width: 880px; }
table.t.si-table td:first-child { min-width: 190px; max-width: 240px; }
table.t.si-table td:first-child,
table.t.si-table th:first-child { white-space: normal; line-height: 1.5; }

/* ---------------------------------------------------------------- 标签 */
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 20px;
  font-size: 11.5px; line-height: 18px; white-space: nowrap;
  background: var(--bg); color: var(--muted); border: 1px solid transparent;
}
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.bad { background: var(--red-soft); color: var(--red); }
.tag.warn { background: var(--amber-soft); color: var(--amber); }
.tag.info { background: var(--blue-soft); color: var(--blue); }
.tag.line { background: transparent; border-color: var(--line); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border-radius: var(--r-sm); background: var(--bg); color: var(--ink-2); font-size: 11.5px;
}
.chip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--r);
  font-family: var(--font); font-size: 13.5px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  transition: background .14s, color .14s, border-color .14s;
}
.btn:hover { border-color: var(--red); color: var(--red); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--bg); color: var(--red); }
.btn.danger { border-color: var(--line); color: var(--muted); }
.btn.danger:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.btn.sm { height: 29px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { flex: none; }
.btn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 表单 */
.field { margin-bottom: 15px; }
/* 表单内两字段并排（如开始/结束时间），窄屏自动落回单列 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { min-width: 0; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
/* 无 type 属性的 <input class="input"> 命中不了下面的 input[type=text] 规则，
   会保留浏览器默认的直角、默认字体和 ~175px 宽度。这里按类补齐基础外观，
   宽度仍交给各自的布局规则（.field / .ser-row / flex 容器）控制。 */
.input {
  box-sizing: border-box; height: 36px; padding: 0 11px;
  font-family: var(--font); font-size: 13.5px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); outline: none;
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
/* 无 type 属性的 <input class="input"> 命中不了下面的 input[type=text] 规则，
   会塌成浏览器默认的 ~175px；表单字段统一按列宽撑满。 */
.field > .input { width: 100%; min-width: 0; box-sizing: border-box; }
.field > label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; font-weight: 700; }
.field > label .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }
.field .err { font-size: 11.5px; color: var(--red); margin-top: 4px; }
input[type=text], input[type=number], input[type=date], input[type=search],
select, textarea {
  width: 100%; height: 36px; padding: 0 11px; font-family: var(--font); font-size: 13.5px;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); outline: none;
}
textarea { height: auto; min-height: 76px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
input.bad, select.bad, textarea.bad { border-color: var(--red); background: var(--red-soft); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236A6A6A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; padding-right: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
/* 自学记录表单：标签在上、控件在下，列宽统一，行间留白（只作用于本弹窗，不影响其他复用 form-grid 的表单） */
.sf-form { gap: 15px 20px; }
.sf-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.sf-form label > input, .sf-form label > select, .sf-form label > textarea {
  margin-top: 6px; width: 100%; box-sizing: border-box;
}
.sf-form .req { color: var(--red); margin-left: 2px; }
.sf-form textarea { min-height: 88px; }
.sf-attach { margin-top: 18px; }
.sf-attach-h {
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  margin-bottom: 8px; padding-left: 9px; border-left: 3px solid var(--red);
}
.callout.sf-note { background: var(--bg-2); border-left-color: var(--muted-2); color: var(--ink-2); }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; }

/* 筛选条 */
.filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.filters .f { min-width: 128px; }
.filters .f label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.filters .f.grow { flex: 1; min-width: 200px; }

/* 文件上传 */
.drop {
  border: 1.5px dashed var(--line); border-radius: var(--r); padding: 22px 16px;
  text-align: center; color: var(--muted); background: var(--bg-2); cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.drop b { color: var(--ink); }
.drop .small { display: block; margin-top: 4px; }
.filelist { list-style: none; margin: 12px 0 0; padding: 0; }
.filelist li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--card);
}
.filelist .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.filelist .sz { font-size: 11.5px; color: var(--muted-2); }

/* ---------------------------------------------------------------- 侧栏列表（品牌红块激活态） */
.sidelist { list-style: none; margin: 0; padding: 0; }
.sidelist li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; font-size: 13.5px; color: var(--ink-2);
  background: var(--bg-2); border-bottom: 1px solid var(--card); border-left: 3px solid transparent;
}
.sidelist li a:hover { text-decoration: none; color: var(--red); }
.sidelist li a.on { background: var(--red); color: #fff; border-left-color: var(--red-dark); font-weight: 700; }
.sidelist li a .cnt { font-size: 11.5px; opacity: .75; }

/* 分段控件 */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.segmented button {
  border: 0; background: transparent; padding: 0 14px; height: 34px; cursor: pointer;
  font-family: var(--font); font-size: 13px; color: var(--muted);
}
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button.on { background: var(--red); color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------- 提示块 */
.callout {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: var(--r);
  background: var(--bg-2); border-left: 3px solid var(--muted-2); font-size: 13px; color: var(--ink-2);
}
/* 信息提示统一走中性灰（用户配色规则：红/灰/白，不用蓝绿橙紫）；警示才用红底 .bad */
.callout.info { background: var(--bg-2); border-left-color: var(--muted); }
.callout.warn { background: var(--amber-soft); border-left-color: var(--amber); }
.callout.bad { background: var(--red-soft); border-left-color: var(--red); }
.callout.good { background: var(--green-soft); border-left-color: var(--green); }
.callout b { color: var(--ink); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.callout li { margin-bottom: 3px; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .big { font-size: 30px; opacity: .35; margin-bottom: 8px; }

/* ---------------------------------------------------------------- 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; flex-wrap: wrap; }
.pager .pg { display: flex; gap: 5px; align-items: center; }
.pager .pg button {
  min-width: 31px; height: 31px; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--r-sm); cursor: pointer; font-family: var(--font); font-size: 12.5px; color: var(--ink-2);
}
.pager .pg button.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pager .pg button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- 加载 */
.splash {
  position: fixed; inset: 0; background: var(--bg); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--muted); font-size: 13px;
}
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--red);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg) 25%, var(--bg-2) 37%, var(--bg) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--r-sm); }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------- 弹层 */
.hide { display: none !important; }
.overlay-root { position: relative; z-index: 120; }
.scrim { position: fixed; inset: 0; background: rgba(30,18,8,.45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
}
.dialog.wide { max-width: 880px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h3 { font-size: 15px; }
.dialog-body { padding: 18px 20px; overflow-y: auto; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line); background: var(--bg-2); }
/* 学院系列管理：一行一个系列，编码只读、名称可改 */
.ser-tip { font-size: 12px; line-height: 1.6; color: var(--muted-2); background: var(--bg-2); border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; }
.ser-head, .ser-row, .ser-add-row { display: grid; grid-template-columns: 1fr 118px 62px; gap: 10px; align-items: center; }
.ser-head { font-size: 12px; font-weight: 700; color: var(--muted-2); padding: 0 12px 9px; }
/* 一行一张浅灰小卡片，替掉原来生硬的横线 */
.ser-row {
  padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2);
}
.ser-row .input, .ser-add-row .input { width: 100%; min-width: 0; margin: 0; }
.ser-row .input:focus, .ser-add-row .input:focus { outline: none; }
.ser-code { font-family: ui-monospace, monospace; font-size: 12px; color: var(--muted-2); background: var(--card); padding: 9px 10px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; }
.ser-add { margin-top: 14px; background: var(--bg-2); border-radius: 14px; padding: 14px 16px; }
.ser-add-title { font-size: 12.5px; font-weight: 700; margin-bottom: 10px; }
.ser-add-row .btn { border-radius: var(--r); }
/* 学院管理：二级子页切换（课程管理 / 数据中心），红灰白胶囊条 */
.aa-subnav { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.aa-subtab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 8px 18px; border-radius: 7px; transition: background .15s, color .15s;
}
.aa-subtab:hover { color: var(--ink); background: var(--card); }
.aa-subtab.on { background: var(--red); color: #fff; box-shadow: 0 1px 3px rgba(229, 0, 18, .25); }
/* 学院管理：按建课流程组织的工具栏与四步说明 */
/* 学院管理：一行主操作 + 一条轻量流程提示，不再重复铺大卡片 */
.aa-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 11px 14px; margin-bottom: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.aa-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aa-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 14px; margin-bottom: 14px;
  background: var(--bg-2); border-radius: 10px; font-size: 12px; color: var(--muted);
}
.aa-step { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.aa-step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  font-size: 10px; color: var(--red); font-weight: 700;
}
.aa-steps i { font-style: normal; color: var(--muted-2); margin: 0 2px; }
/* 学院课程表：此前误用 .table（无样式），改用专用类并放大间距、拉开层次 */
.aa-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.aa-table th {
  background: var(--ink); color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 14px 18px; text-align: left; white-space: nowrap; border: 0;
}
.aa-table th:first-child { border-radius: 8px 0 0 0; }
.aa-table th:last-child { border-radius: 0 8px 0 0; }
.aa-table td { padding: 18px; border: 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.aa-table tbody tr:last-child td { border-bottom: 0; }
.aa-table tbody tr:hover td { background: var(--bg-2); }
.aa-course-cell { min-width: 210px; }
.aa-course-wrap { display: flex; align-items: center; gap: 12px; }
.aa-course-wrap > div { min-width: 0; }
.aa-course-name { font-size: 14px; font-weight: 700; line-height: 1.45; }
.aa-course-meta { margin-top: 6px; font-size: 11.5px; color: var(--muted-2); }
.aa-count { font-size: 15px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.aa-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; line-height: 17px; white-space: nowrap;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.aa-tag.red { background: var(--red-soft); color: var(--red); border-color: var(--red-soft); }
.aa-tag.solid::before { content: '\2713'; color: var(--red); font-weight: 700; margin-right: 6px; }
.aa-act { display: flex; align-items: center; gap: 10px; }
.aa-act .btn.sm { height: 32px; padding: 0 13px; }
/* 学习进度弹窗：统计卡 + 进度条 */
.aa-report-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.aa-report-sum > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.aa-report-sum b { display: block; font-size: 21px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }
.aa-report-sum span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-2); }
.aa-prog { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.aa-prog-bar { flex: 1; height: 7px; background: var(--line); border-radius: 5px; overflow: hidden; }
.aa-prog-bar i { display: block; height: 100%; background: var(--red); border-radius: 5px; }
.aa-prog b { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.dialog.wide:has(.aa-report-sum) { max-width: 980px; }
#aaCourseTable td, #aaCourseTable th { padding-right: 18px; }
@media (max-width: 900px) { .aa-steps { grid-template-columns: repeat(2, 1fr); } .aa-toolbar { gap: 10px; } }
@media (max-width: 620px) { .ser-head { display: none; } .ser-row, .ser-add-row { grid-template-columns: 1fr 62px; } .ser-row .ser-code { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Toast */
.toast-root { position: fixed; top: 78px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  min-width: 250px; max-width: 400px; padding: 11px 15px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--ink);
  box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink-2); animation: tin .2s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast b { display: block; color: var(--ink); margin-bottom: 1px; }
@keyframes tin { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 页脚 */
.site-footer { background: var(--card); border-top: 1px solid var(--line); margin-top: 20px; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }
.footer-values { margin-top: 8px; font-size: 11px; color: var(--ink-2); letter-spacing: .2px; }
.footer-values > span { color: var(--muted-2); font-size: 10px; letter-spacing: .6px; margin-right: 10px; }
.footer-values b { font-family: Arial, sans-serif; font-weight: 800; }
.footer-values b.italic { font-style: italic; }
.footer-values .sep { color: var(--line-2); margin: 0 8px; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c2-1, .grid.c1-2 { grid-template-columns: 1fr; }
  .header-inner { gap: 16px; }
  .brand-mark img { height: 40px; }
  .sidebar { width: 196px; flex-basis: 196px; }
}
@media (max-width: 860px) {
  .header-inner { gap: 12px; }
  .brand-sys small { display: none; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .who { display: none; }
  .wrap { padding: 0 14px; }
  /* 侧栏收成图标条，保证窄屏仍能切换页面 */
  .sidebar { width: 64px; flex-basis: 64px; }
  .side-cap, .nav-group-cap, .side-foot, .mainnav a span { display: none; }
  .mainnav { padding: 0 8px; }
  .mainnav a { justify-content: center; padding: 12px 0; }
  .mainnav a svg { width: 19px; height: 19px; }
  .app-content .crumb-bar .wrap,
  .app-content .site-footer .wrap { padding: 0 18px; }
  .app-content main.wrap { padding: 26px 18px 40px; }
  /* 四列 KPI 在侧栏图标条旁会被挤成竖排文字，窄屏降两列 */
  .kpis.k4, .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kpi .v { font-size: 20px; }
  .kpi .s { font-size: 10.5px; }
  .filters .f { min-width: 100%; }
}

@media print {
  .site-header, .crumb-bar, .site-footer, .topstrip, .sidebar, .btn, .toast-root, .splash { display: none !important; }
  .app-body, .app-content { display: block; min-height: 0; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}


/* ==========================================================================
   登录页 / 用户菜单 / 个人学时（2026-09 新增）
   ========================================================================== */

[hidden] { display: none !important; }
body.is-login { background: #fff; }

/* ---------------------------------------------------------------- 登录页 */
/* 外企专业定调：Brutally minimal。左品牌墙 : 右登录 = 4 : 6
   左侧不做满幅海报，做安静的品牌陈述墙；视觉重心让给登录动作。 */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 4fr 6fr; }

/* 左栏：单一深红，去掉斜切与噪点；一道极窄的右侧高光保留质感而不喧宾夺主 */
.login-aside {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, #D00014 0%, #AC000F 42%, #87000C 100%);
}
.login-aside::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.10), transparent 22%, transparent 82%, rgba(0,0,0,.10));
}
.login-aside-inner {
  position: relative; z-index: 2; height: 100%; min-height: 100vh;
  padding: 58px 56px 48px; display: flex; flex-direction: column;
}
/* 顶部：纯白 logo，克制尺寸，作为品牌签名而非海报主体 */
.brand-plaque { width: fit-content; max-width: 100%; }
.plaque-logo { display: block; width: 176px; height: auto; }
/* 品牌陈述：垂直居中，标题从 68px 巨字收敛到 52px 的稳重尺度 */
.lp-statement { margin: auto 0; padding: 24px 0; }
.login-aside h1 {
  position: relative; margin: 0; padding-top: 26px;
  font-size: 52px; line-height: 1.16; font-weight: 700;
  letter-spacing: 3px; color: #fff;
}
.login-aside h1::before {
  content: ""; position: absolute; left: 4px; top: 0;
  width: 44px; height: 3px; background: rgba(255,255,255,.92);
}
.login-sub {
  margin: 24px 0 0; font-family: Arial, sans-serif;
  font-size: 12px; letter-spacing: 2.6px;
  text-transform: uppercase; color: rgba(255,255,255,.62);
}
/* 底部：一条发丝规则线 + 公司署名，克制收尾 */
.login-foot {
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.login-foot b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .5px; color: rgba(255,255,255,.92); }
.login-foot span { display: block; margin-top: 5px; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.55); }
/* 窄屏响应：字号梯度放缓，逐级收敛避免「员工培训」碎行 */
@media (max-width: 1360px) and (min-width: 1081px) {
  .login-aside h1 { font-size: 46px; }
  .login-aside-inner { padding-left: 44px; padding-right: 44px; }
  .plaque-logo { width: 162px; }
}
@media (max-width: 1080px) and (min-width: 861px) {
  .login-aside h1 { font-size: 40px; letter-spacing: 2px; }
  .login-aside-inner { padding-left: 32px; padding-right: 32px; }
  .plaque-logo { width: 146px; }
}

/* 入场序列：品牌立轴与表单卡错峰浮现，一次编排胜过零散微交互 */
@keyframes lgRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.login-aside .brand-plaque,
.login-aside .lp-statement,
.login-aside .login-foot,
.login-main .login-card,
.login-main .login-copy { animation: lgRise .62s cubic-bezier(.16,1,.3,1) both; }
.login-aside .brand-plaque { animation-delay: .04s; }
.login-aside .lp-statement { animation-delay: .14s; }
.login-aside .login-foot { animation-delay: .24s; }
.login-main .login-card { animation-delay: .2s; }
.login-main .login-copy { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .login-aside .brand-plaque, .login-aside .lp-statement, .login-aside .login-foot,
  .login-main .login-card, .login-main .login-copy { animation: none; }
}

.login-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 44px 48px; background: #F4F4F5;
}
/* 登录卡：外企专业做法——直角感的小圆角、发丝边框、极轻分层阴影，
   靠结构而非厚阴影建立层次；宽度收敛到 440，避免过度放大后的空旷。 */
.login-card {
  width: 100%; max-width: 440px;
  background: var(--card);
  padding: 46px 48px 38px;
  border: 1px solid #E6E6E8;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20,20,24,.03), 0 12px 34px rgba(20,20,24,.045);
}
.login-card .lg-head { margin-bottom: 34px; }
/* 眉题：小号字距 + 一道短线，工业/外企后台常见的分区锚点 */
.lg-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; font-family: Arial, sans-serif;
  font-size: 10.5px; font-weight: 700; letter-spacing: 2.4px;
  color: var(--red);
}
.lg-eyebrow-line { flex: 1; height: 1px; background: var(--line); }
.login-card .lg-head h2 {
  margin: 0 0 12px; font-size: 30px; font-weight: 700; color: var(--ink);
  letter-spacing: -.5px;
}
.login-card .lg-head p { margin: 0; font-size: 13.5px; color: #6A6A6A; line-height: 1.75; text-wrap: balance; }
.login-card .field { margin-bottom: 20px; }
.login-card .field > label { font-size: 12.5px; margin-bottom: 8px; letter-spacing: .3px; }
.login-card input[type=text], .login-card input[type=password] {
  width: 100%; height: 50px; padding: 0 16px; font-size: 15.5px;
  border: 1px solid #DCDCDD; border-radius: 3px;
  background: var(--card); color: var(--ink); font-family: var(--font);
  transition: border-color .15s, box-shadow .15s;
}
/* 焦点态用中性深墨而非品牌红：红色只留给按钮/眉题，避免误读成报错态 */
.login-card input:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(120,120,120,.12);
}
/* 按钮：正常字距 + 箭头，去掉此前 3px 的松散字距 */
.lg-submit {
  width: 100%; height: 50px; padding: 0 16px; font-size: 15.5px;
  margin-top: 6px; letter-spacing: 1px; position: relative;
}
.lg-arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 19px; font-weight: 400; transition: transform .18s ease; }
.lg-submit:hover .lg-arrow { transform: translate(3px, -50%); }
/* 企业微信扫码登录（红 / 灰 / 白） */
.lg-wecom { text-align: center; padding: 2px 0 16px; }
.lg-wecom-btn { width: 100%; height: 50px; letter-spacing: .5px; }
.lg-wecom-title { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .5px; margin-bottom: 12px; }
.lg-qr { display: flex; align-items: center; justify-content: center; min-height: 196px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.lg-qr svg { display: block; }
.lg-wecom-tip { margin-top: 12px; font-size: 12px; color: #6A6A6A; line-height: 1.6; }
.lg-wecom-refresh { margin-top: 8px; font-size: 12px; color: var(--red); cursor: pointer; }
.lg-wecom-refresh:hover { text-decoration: underline; }
.lg-pw-maintenance { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.lg-pw-maintenance > summary { font-size: 12px; color: #8A8A8A; cursor: pointer; list-style: none; }
.lg-pw-maintenance > summary::-webkit-details-marker { display: none; }
.lg-pw-maintenance > summary::before { content: '+ '; color: var(--red); }
.lg-pw-maintenance[open] > summary::before { content: '- '; }
.lg-foot {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2);
  font-size: 12px; color: #8A8A8A; line-height: 1.8; text-align: center;
}
.login-copy { margin-top: 22px; font-family: Arial, sans-serif; font-size: 11.5px; letter-spacing: .3px; color: #9A9A9A; text-align: center; }

/* 口令可见性切换 */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer;
  font-size: 15px; line-height: 1; color: var(--muted-2); border-radius: var(--r-sm);
}
.pw-toggle:hover { background: var(--bg-2); color: var(--ink); }
.pw-toggle.on { color: var(--red); }

.pw-meter { margin-top: 2px; min-height: 20px; }
.chk {
  display: flex; align-items: center; gap: 7px; font-size: 13.5px;
  color: var(--ink-2); margin: 4px 0 2px; cursor: pointer;
}
.chk input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.init-pw {
  margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--red);
  border-radius: var(--r); background: var(--red-soft);
  font-family: var(--mono); font-size: 20px; font-weight: 700;
  letter-spacing: 1.4px; color: var(--ink); text-align: center;
  user-select: all; word-break: break-all;
}

/* ---------------------------------------------------------------- 顶部用户区 */
.userbox { position: relative; }
.userbtn {
  display: flex; align-items: center; gap: 8px; padding: 4px 11px 4px 4px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(88,0,7,.28);
  cursor: pointer; font-family: var(--font); color: #fff; max-width: 220px;
}
.userbtn:hover { background: rgba(88,0,7,.42); border-color: rgba(255,255,255,.55); }
.userbtn .ua {
  width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  background: #fff; color: var(--red-dark); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.userbtn .un { display: flex; flex-direction: column; line-height: 1.25; text-align: left; overflow: hidden; }
.userbtn .un b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbtn .un small { font-size: 10.5px; color: rgba(255,255,255,.86); white-space: nowrap; }
.userbtn .caret { font-size: 9px; color: rgba(255,255,255,.82); }

.usermenu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 258px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px;
}
.um-head {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  padding: 6px 8px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px;
}
.um-head b { font-size: 13.5px; }
.um-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 3px 8px; font-size: 12px; color: var(--muted);
}
.um-row b { color: var(--ink); font-weight: 600; text-align: right; }
.um-sep { height: 1px; background: var(--line-2); margin: 7px 0; }
.um-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: transparent;
  font-family: var(--font); font-size: 13px; color: var(--ink); cursor: pointer; text-align: left;
}
.um-item:hover { background: var(--bg-2); }
.um-item.danger { color: var(--red); }
.um-item.danger:hover { background: var(--red-soft); }

/* ---------------------------------------------------------------- 工具栏与个人图表 */
.toolbar {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.toolbar .f { min-width: 128px; }
.toolbar .f.grow { flex: 1; min-width: 200px; }
.f-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }

.mybars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 6px 0 0; }
.mybar { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mybar .b {
  width: 100%; height: 122px; display: flex; align-items: flex-end;
  background: var(--bg-2); border-radius: 3px 3px 0 0; overflow: hidden;
}
.mybar .b i { display: block; width: 100%; background: var(--muted-2); border-radius: 3px 3px 0 0; min-height: 2px; }
.mybar:hover .b i { background: var(--red); }
.mybar span { font-size: 10.5px; color: var(--muted-2); margin-top: 5px; }

/* 补充标签与 KPI 变体 */
.tag.na { background: var(--bg-2); color: var(--muted); }
.kpi.good { border-top-color: var(--green); }
.kpi.bad { border-top-color: var(--red); }
.callout.ok { background: var(--green-soft); border-left-color: var(--green); }
.callout.gray-note { background: var(--bg-2); border-left-color: var(--muted-2); color: var(--ink-2); }
.callout.gray-note b { color: var(--ink); }

/* ---------------------------------------------------------------- 登录页响应式 */
@media (max-width: 940px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-main { padding: 34px 16px; min-height: 100vh; background: #F4F4F5; }
  .login-card {
    background: var(--card); border: 1px solid #E6E6E8;
    border-radius: 4px; box-shadow: 0 1px 2px rgba(20,20,24,.03), 0 12px 34px rgba(20,20,24,.045);
    padding: 36px 28px 30px;
  }
  .login-card .lg-head h2 { font-size: 27px; }
  .userbtn .un { display: none; }
  .usermenu { right: -4px; }
}
@media (max-width: 620px) {
  .toolbar { padding: 12px; }
  .toolbar .f { min-width: 100%; }
  .mybars { gap: 3px; }
  .mybar span { font-size: 9px; }
}

/* ============================================================ 扫码签到（组织者） */
.si-detail { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.si-qr { text-align: center; border-right: 1px solid var(--line); padding-right: 18px; }
.si-qr-box {
  width: 252px; height: 252px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
.si-qr-box svg { display: block; width: 100%; height: 100%; }
.si-qr-url { margin-top: 12px; text-align: left; }
.si-url-row { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.si-url-row code {
  flex: 1; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.si-status { display: inline-block; margin-top: 12px; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.si-status.on { background: #F0F0F0; color: var(--red); }
.si-status.off { background: var(--bg-2); color: var(--muted); }
.si-tip { margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.si-records { min-width: 0; }
.si-rec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.si-rec-head .spacer { flex: 1; }
.si-rec-head .btn { margin-left: 0; }
@media (max-width: 720px) {
  .si-detail { grid-template-columns: 1fr; }
  .si-qr { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 16px; }
}

/* 结训方式选择 / 题库上传（2026-11-25） */
.si-choice {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; margin-top: 7px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer;
  font-size: 13px; line-height: 1.6;
}
.si-choice:has(input:checked) { border-color: var(--red); background: var(--red-soft, #fff5f6); }
.si-choice input { margin-top: 3px; accent-color: var(--red); }
.si-choice b { color: var(--ink); }
.si-bank-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.si-bank-row input[type=file] { font-size: 12px; max-width: 100%; }

/* 学员端结训确认页 */
.sg-step { margin: 14px 0 8px; font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.sg-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sg-q:last-child { border-bottom: 0; }
.sg-q-title { font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.sg-opt {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px; margin: 5px 0;
  border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: 13px;
}
.sg-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft, #fff5f6); }
.sg-opt input { margin-top: 3px; accent-color: var(--red); }
.sg-sign-meta {
  display: flex; gap: 18px; flex-wrap: wrap; padding: 9px 12px; margin-bottom: 10px;
  background: var(--bg-2); border-radius: var(--r-sm); font-size: 12.5px; color: var(--ink-2);
}
.sg-canvas-wrap { border: 1px dashed var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.sg-canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.sg-stars { display: flex; gap: 6px; }
.sg-star {
  font-size: 30px; line-height: 1; color: #c9c9c9; cursor: pointer; user-select: none;
  background: none; border: 0; padding: 0 3px;
}
.sg-star.on { color: var(--red); }
.sg-fail { background: #fff5f6; border: 1px solid var(--red); border-radius: var(--r-sm); padding: 12px; margin-top: 12px; }

/* ============================================================ 2027 培训计划提报（红灰白 · 组织学习） */
.pz-wrap { max-width: 1180px; }
.pz-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 4px 0 20px; }
.pz-eyebrow { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 1.8px;
  color: var(--red); font-weight: 700; text-transform: uppercase; }
.pz-hero h1 { margin: 8px 0 6px; font-size: 26px; letter-spacing: .3px; }
.pz-hero-sub { color: var(--muted); font-size: 13px; }
.pz-hero-badge { font-family: Arial, sans-serif; font-size: 40px; font-weight: 900;
  color: var(--red-soft); letter-spacing: -1px; line-height: 1; }
.pz-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.pz-summary.board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pz-kpi { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: var(--r-sm); padding: 14px 16px; }
.pz-kpi .v { font-size: 24px; font-weight: 800; color: var(--red); line-height: 1.1; }
.pz-kpi .l { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pz-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pz-tab { border: 0; background: none; padding: 10px 18px; font-size: 14px; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pz-tab:hover { color: var(--red); }
.pz-tab.on { color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
.pz-pane { display: flex; flex-direction: column; gap: 16px; }
.pz-card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pz-sec-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  background: var(--red); color: #fff; border-radius: 4px; font-size: 13px; font-weight: 800;
  margin-right: 8px; }
.pz-grid { display: grid; gap: 12px 14px; }
.pz-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pz-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pz-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pz-static { padding: 8px 0; font-size: 13.5px; color: var(--ink-2); min-height: 36px; }
.pz-static.gap-diff { font-weight: 800; color: var(--red); }
.pz-tip { margin-top: 14px; padding: 10px 14px; background: var(--bg-2); border-left: 3px solid var(--red);
  border-radius: 3px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.pz-mini { border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 4px; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.pz-mini:hover { border-color: var(--red); color: var(--red); }
.pz-mini.danger:hover { border-color: var(--red); color: #fff; background: var(--red); }
.pz-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 2px; }
.pz-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.pz-check input { margin: 0; }
.gap-row { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px;
  margin-bottom: 12px; background: var(--card); }
.gap-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gap-hd b { color: var(--red); font-size: 13px; }
.pi-sub { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 16px 0 10px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.pi-sub:first-child { margin-top: 0; }
.plan-item { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px;
  overflow: hidden; background: var(--card); }
.pi-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  background: var(--bg-2); border-bottom: 1px solid transparent; }
.pi-hd:hover { background: var(--red-soft); }
.pi-seq { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  background: var(--red); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 800; flex: none; }
.pi-title { flex: 1; font-size: 14px; font-weight: 600; }
.pi-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pi-body { padding: 16px; }
.pz-actionbar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-lg); z-index: 5; }
.pz-actionbar #pzSaveHint { margin-left: 8px; }
.list-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.list-table th, .list-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line-2); }
.list-table th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg-2); }
/* 个人中心履职表格（我主讲 / 我组织）：表头与内容统一左对齐，避免 th 落回浏览器默认居中 */
.role-table th, .role-table td { text-align: left; }
.pz-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12.5px; }
.pz-bar-label { width: 96px; flex: none; color: var(--ink-2); }
.pz-bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.pz-bar-fill { display: block; height: 100%; background: var(--red); }
.pz-bar-val { width: 28px; text-align: right; color: var(--red); }
.tag.ok { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
@media (max-width: 1180px) {
  .pz-summary.board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .pz-summary, .pz-summary.board { grid-template-columns: repeat(2, 1fr); }
  .pz-grid.g3, .pz-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pz-summary, .pz-summary.board { grid-template-columns: 1fr; }
  .pz-grid.g2, .pz-grid.g3, .pz-grid.g4 { grid-template-columns: 1fr; }
  .pz-hero-badge { display: none; }
  .list-table { font-size: 11px; }
}

/* ---------------- STAMP 车间人员技能看板 ---------------- */
.stp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stp-toolbar label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.stp-toolbar select { min-width: 210px; }
/* 自绘班组下拉：避免原生 select 在嵌入式预览里弹出层飘走 */
.stp-picker { position: relative; display: inline-block; min-width: 210px; }
.stp-picker-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; min-height: 32px; padding: 5px 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  font-size: 13px; color: var(--ink); text-align: left; font-family: inherit;
}
.stp-picker-btn:hover { border-color: var(--red); }
.stp-picker-btn:disabled { opacity: .55; cursor: not-allowed; }
.stp-picker-caret { color: var(--muted); font-size: 11px; }
.stp-picker-menu {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14); max-height: 340px; overflow-y: auto;
}
.stp-picker-menu[hidden] { display: none; }
.stp-picker-opt { padding: 8px 12px; font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.stp-picker-opt:hover { background: var(--bg); }
.stp-picker-opt.on { background: var(--red); color: #fff; font-weight: 700; }
.stp-spacer { flex: 1; }
.stp-scroll { overflow-x: auto; max-height: 72vh; overflow-y: auto; scrollbar-gutter: stable; }
.stp-table {
  /* 2026-12-02 去掉培训/出勤两段列后，姓名列会把整表剩余宽度全吃掉（左边一大片空白）。
     改成固定表格布局 + 姓名列定宽，剩余宽度平均分给技能等级格。 */
  border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px;
  table-layout: fixed; font-size: 12px; font-family: Arial, "Microsoft YaHei", sans-serif;
}
.stp-table th, .stp-table td {
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: 5px 6px; text-align: center; white-space: nowrap;
}
.stp-table th { background: var(--bg); font-weight: 700; color: var(--ink-2); }
.stp-table .stp-r1 th { background: var(--ink); color: #fff; letter-spacing: .6px; }
.stp-table .stp-r2 th { background: #F3F3F3; }
.stp-table .stp-r3 th { font-size: 10px; color: var(--muted); padding: 3px 4px; }
.stp-name {
  position: sticky; left: 0; z-index: 3; width: 112px; min-width: 112px; max-width: 112px;
  text-align: left !important; background: var(--card); font-weight: 600;
  box-shadow: 1px 0 0 var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stp-table th.stp-name { z-index: 5; background: var(--ink); color: #fff; }
.stp-table .stp-r3 th.stp-name { background: var(--bg); color: var(--ink-2); }
.stp-sub { font-size: 9px; color: var(--muted); font-weight: 400; }
.stp-lv, .stp-att { width: 34px; min-width: 34px; }
.stp-lv { font-weight: 700; }
.stp-lv.editable, .stp-att.editable { cursor: pointer; }
.stp-lv.editable:hover, .stp-att.editable:hover {
  outline: 2px solid var(--red); outline-offset: -2px; background: rgba(229, 0, 18, .04);
}
.stp-up { color: #1B8A4B; }
.stp-down { color: var(--red); }
.stp-flat { color: var(--ink-2); }
.stp-att { color: var(--ink-2); }

/* STAMP 培训计划：每个员工矩阵行下方的计划子行（管理者填写，其他人只读） */
.stp-plan-row > td { background: #FCFCFC; padding: 4px 8px 6px 10px !important; border-top: 1px dashed var(--line); }
.stp-plan-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 24px; }
.stp-plan-tag {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--ink-2);
  padding: 2px 7px; border-radius: 2px; letter-spacing: .3px;
}
/* 计划内容靠左紧跟标签，按钮不再被推到整行最右端（去掉培训/出勤列后整行很长，右端会显得空） */
.stp-plan-list { display: flex; gap: 6px; flex-wrap: wrap; flex: 0 1 auto; min-width: 0; }
.stp-plan-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
  padding: 2px 8px; border-radius: 2px;
}
.stp-plan-chip b { color: var(--ink); }
.stp-plan-chip i { color: var(--red); font-style: normal; font-weight: 700; }
.stp-plan-chip span { color: var(--muted); }
.stp-plan-chip .stp-plan-note { color: var(--ink-2); }
.stp-plan-empty { font-size: 11px; color: var(--muted-2); font-style: italic; }
.stp-plan-btn {
  flex: 0 0 auto; font-size: 10.5px; color: var(--red); border: 1px solid var(--red);
  background: #fff; padding: 2px 9px; border-radius: 2px; cursor: pointer;
}
.stp-plan-btn:hover { background: var(--red); color: #fff; }
/* 雷达卡片下的培训计划：时间 / 周期 / 要求 */
.stp-radar-plan { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.stp-radar-plan-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stp-radar-plan-body { margin-top: 6px; display: flex; flex-direction: column; gap: 5px; }
.stp-radar-plan-item { font-size: 11px; line-height: 1.5; color: var(--ink); background: #FCFCFC; border-left: 3px solid var(--red); padding: 4px 8px; }
.stp-radar-plan-item b { color: var(--ink); }
.stp-radar-plan-item span { display: inline-block; margin-right: 8px; color: var(--muted); }
.stp-radar-plan-item .stp-radar-plan-req { display: block; color: var(--ink-2); }
.plan-item {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  border: 1px solid var(--line); background: #FCFCFC; padding: 10px 12px; margin-bottom: 10px;
}
.plan-item .full { grid-column: 1 / -1; }
.plan-item .plan-del {
  position: absolute; top: 6px; right: 8px; border: 0; background: transparent;
  color: var(--red); font-size: 11px; cursor: pointer;
}
.plan-item input, .plan-item select {
  border: 1px solid var(--line); padding: 4px 6px; font-size: 12px; background: #fff; color: var(--ink);
}

/* STAMP 雷达视图：每人一张 7 维能力图 + 班组画像 */
.stp-view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.stp-view-btn { border: 0 !important; border-radius: 0 !important; padding: 5px 12px !important; }
.stp-view-btn.on { background: var(--red) !important; color: #fff !important; }
.stp-radar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 14px; }
.stp-radar-card { border: 1px solid var(--line); background: #fff; padding: 12px 12px 14px; }
.stp-radar-hd {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.stp-radar-hd b { font-size: 14px; color: var(--ink); }
.stp-radar-hd span { font-size: 11px; color: var(--muted); }
.stp-radar-svg { display: block; width: 100%; height: auto; }
.stp-radar-tags {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px;
  font-size: 10px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px;
}
.stp-radar-tags b.lv-L0, .stp-radar-tags b.lv-L1 { color: var(--muted); }
.stp-radar-tags b.lv-L2 { color: #8C1A1E; }
.stp-radar-tags b.lv-L3 { color: var(--red); }
.stp-radar-tags b.lv-L4 { color: var(--red); font-weight: 800; }
.stp-radar-tags b.lv-none { color: #BBB; }
.stp-team-card {
  grid-column: 1 / -1; display: flex; gap: 22px; align-items: center;
  background: #FCFCFC; padding: 16px 20px;
}
.stp-team-fig { flex: 0 0 300px; max-width: 300px; }
.stp-team-info h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.stp-team-info p { margin: 4px 0; }
.stp-team-kpi { display: flex; gap: 28px; margin: 14px 0 10px; }
.stp-team-kpi div { display: flex; flex-direction: column; }
.stp-team-kpi b { font-size: 24px; color: var(--red); line-height: 1.1; }
.stp-team-kpi span { font-size: 11px; color: var(--muted); }
.stp-radar-verdict { color: var(--red); font-weight: 700; margin: 8px 0 !important; }
.stp-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 14px;
  font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line);
}
.stp-legend b { color: var(--ink); }
.stp-remark { padding: 10px 14px 16px; font-size: 11px; color: var(--muted); line-height: 1.7; }
/* 总经理定义 · L0-L4 标准面板 */
.stp-std { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.stp-std-title { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.stp-std-body { padding: 10px 0 2px; }
.stp-std-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.stp-std-item { border-left: 3px solid var(--red); background: var(--bg); padding: 8px 10px; }
.stp-std-item b { display: block; font-size: 12px; color: var(--ink); margin-bottom: 3px; }
.stp-std-item span { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }
.stp-std-law { margin: 10px 0 0 !important; font-size: 11px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 640px) { .stp-toolbar select { min-width: 140px; } }

/* ==========================================================================
   参训范围化录入（sc- 前缀，避免与短类名串味）
   ========================================================================== */
.sc-step { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.sc-scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc-scope {
  display: block; position: relative; padding: 11px 13px 11px 32px;
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  background: var(--card); cursor: pointer; transition: border-color .12s, background .12s;
}
.sc-scope:hover { border-color: var(--red); }
.sc-scope.sel { border-color: var(--red); border-left-color: var(--red); background: var(--red-soft); }
.sc-scope input[type=radio] { position: absolute; left: 11px; top: 14px; margin: 0; accent-color: var(--red); }
.sc-scope-t { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.sc-scope-d { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.sc-scope.sel .sc-scope-t { color: var(--red-dark); }
.sc-boxes { margin-top: 14px; }
.sc-box { padding: 13px 14px; background: var(--bg-2); border: 1px solid var(--line); }
.sc-inline-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.sc-inline-note b { color: var(--red-dark); }
.sc-checks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; padding: 8px; background: var(--card); border: 1px solid var(--line); }
.sc-chip { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 4px 8px; font-size: 12px; font-weight: 400; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); }
.sc-chip input { margin: 0; accent-color: var(--red); }
.sc-chip em { font-style: normal; font-size: 10px; color: var(--muted); }
.sc-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; max-height: 210px; overflow-y: auto; margin-top: 10px; padding: 8px; background: var(--card); border: 1px solid var(--line); }
.sc-person { display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 6px; font-size: 12px; font-weight: 400; cursor: pointer; }
.sc-person input { margin: 0; accent-color: var(--red); }
.sc-person em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--muted); }
.sc-allocs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sc-alloc { display: block; position: relative; padding: 11px 12px 11px 30px; border: 1px solid var(--line); border-top: 3px solid var(--line); background: var(--card); cursor: pointer; }
.sc-alloc.sel { border-color: var(--red); border-top-color: var(--red); background: var(--red-soft); }
.sc-alloc input[type=radio] { position: absolute; left: 10px; top: 14px; margin: 0; accent-color: var(--red); }
.sc-alloc-t { display: block; font-size: 12px; font-weight: 700; color: var(--ink); }
.sc-alloc.sel .sc-alloc-t { color: var(--red-dark); }
.sc-alloc-d { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.sc-hint { margin-top: 10px; padding: 8px 10px; font-size: 11.5px; color: var(--ink-2); background: var(--bg-2); border-left: 3px solid var(--muted-2); }
.sc-preview { padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--card); }
.sc-pv-title { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.sc-pv-badge { padding: 2px 8px; font-size: 11px; font-weight: 700; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); }
.sc-pv-badge.bad { color: #fff; background: var(--red); border-color: var(--red); }
.sc-pv-line { margin-top: 9px; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.sc-pv-nums { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; padding: 9px 12px; background: var(--bg-2); font-size: 12px; color: var(--muted); }
.sc-pv-nums b { color: var(--red-dark); font-size: 14px; }
.sc-pv-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 11.5px; }
.sc-pv-table th, .sc-pv-table td { padding: 5px 8px; text-align: left; border-bottom: 1px solid var(--line-2); }
.sc-pv-table th { background: var(--bg-2); color: var(--muted); font-weight: 700; }
.sc-pv-warn { margin-top: 10px; padding: 8px 10px; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); background: var(--amber-soft); border-left: 3px solid var(--amber); }
.sc-guide { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.sc-guide th, .sc-guide td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.sc-guide th { color: var(--muted); background: var(--bg-2); font-weight: 700; }
.sc-guide td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) {
  .sc-scopes, .sc-allocs { grid-template-columns: 1fr; }
}

/* ===== 培训记录 · 按场次/按个人视图切换（2026-11-19） ===== */
.sv-switch { display: flex; align-items: center; gap: 4px; margin: 0 0 16px; border-bottom: 2px solid var(--line-2); }
.sv-tab { appearance: none; border: 0; background: transparent; padding: 9px 16px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; letter-spacing: .2px; }
.sv-tab:hover { color: var(--ink); }
.sv-tab.on { color: var(--red); border-bottom-color: var(--red); }
.sv-hint { margin-left: auto; font-size: 11.5px; color: var(--muted-2); padding-bottom: 8px; }
.sv-sub { font-size: 10.5px; color: var(--muted-2); font-weight: 400; letter-spacing: .5px; margin-left: 6px; }
.sv-drill { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--red); cursor: pointer; }
.sv-drill:hover { color: var(--red); }
.sv-todo { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--bg-soft, #f5f5f5); color: var(--muted-2); font-size: 10px; font-weight: 400; letter-spacing: .3px; vertical-align: 1px; }
.sv-zero-dept td { color: var(--muted-2); }
.session-tbl tr.sv-person-fill td { background: var(--bg-soft, #fafafa); color: var(--muted-2); }
.session-tbl td { font-size: 11.5px; }
.session-tbl th { font-size: 11px; white-space: nowrap; }

/* 培训时间表头点击排序：与筛选栏「排序」下拉同源 */
.session-tbl .sv-sort-h { appearance: none; border: 0; background: transparent; padding: 0;
  margin: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.session-tbl .sv-sort-h:hover { text-decoration: underline; }
.session-tbl .sv-sort-h.on { color: #fff; }
.session-tbl .sv-sort-arrow { margin-left: 3px; font-size: 11px; opacity: .75; }
.btn-link { appearance: none; border: 0; background: transparent; color: var(--red); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 2px 4px; }
.btn-link:hover { text-decoration: underline; }
.sv-edit-tip { display: none; margin: 0 0 10px; padding: 8px 12px; background: #fff4f4; border: 1px solid #f3c9cb; border-left: 3px solid var(--red); color: #8c1a1e; font-size: 12px; }
.sv-edit-tip.on { display: block; }
/* 批量编辑态：表格单元格内联输入框 */
.session-tbl.sv-edit input, .session-tbl.sv-edit select {
  width: 100%; min-width: 42px; box-sizing: border-box;
  padding: 3px 5px; font: inherit; font-size: 11.5px; color: var(--ink);
  border: 1px solid #d8dadd; border-radius: 3px; background: #fff; height: 26px;
}
.session-tbl.sv-edit input[type=number] { text-align: right; padding-right: 3px; }
.session-tbl.sv-edit input:focus, .session-tbl.sv-edit select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 2px rgba(229,0,18,.12);
}
.session-tbl.sv-edit .sv-seq { min-width: 34px; }
.session-tbl.sv-edit .sv-cell-sub { margin-top: 3px; }
.session-tbl.sv-edit .sv-cell-sub input { color: var(--muted); font-size: 10.5px; height: 22px; }
/* 改动过的单元格高亮（由 JS 打 dirty 标记） */
.session-tbl.sv-edit .dirty input, .session-tbl.sv-edit .dirty select {
  border-color: var(--red); background: #fff5f5; font-weight: 700;
}
/* 参训明细列：摘要直读 + 点开即改 */
.session-tbl .sv-att { display: block; width: 100%; min-width: 148px; text-align: left; appearance: none; border: 0; background: transparent; padding: 2px 0; font: inherit; cursor: pointer; }
.sv-att-brief { display: block; font-size: 11.5px; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-att-meta { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2); }
.sv-att-warn { color: var(--red); font-weight: 700; }
.sv-att-empty .sv-att-brief { color: var(--muted-2); }
.sv-att:hover .sv-att-brief { color: var(--red); }
.sv-att-head { padding: 10px 12px; background: var(--bg-2, #f7f7f7); border-left: 3px solid var(--red); }
.sv-att-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.sv-att-kpi { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.sv-att-kpi b { color: var(--ink); }
.sv-att-sec { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.sv-att-sec .small { font-weight: 400; margin-left: 8px; }
.sv-att-grid { margin-top: 4px; }
@media (max-width: 900px) {
  .sv-switch { flex-wrap: wrap; }
  .sv-hint { display: none; }
}

/* ===== 培训记录 · 按月份核实条（2026-11-25） ===== */
.sv-month-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sv-month-head > b { font-size: 13.5px; color: var(--ink); }
.sv-month-head .small { flex: 1; }
.sv-month-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.sv-month {
  appearance: none; border: 1px solid var(--line); background: var(--card); cursor: pointer;
  padding: 8px 2px 7px; text-align: center; border-radius: 2px; font: inherit;
  display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: border-color .12s, background .12s;
}
.sv-month:hover { border-color: var(--red); }
.sv-month-lb { font-size: 11px; color: var(--muted); font-weight: 700; }
.sv-month-h { font-size: 15px; font-weight: 800; color: var(--ink); font-family: Arial, sans-serif; line-height: 1.1; }
.sv-month-n { font-size: 10px; color: var(--muted-2); }
.sv-month.on { border-color: var(--red); background: var(--red-soft, #FDECEE); }
.sv-month.on .sv-month-h { color: var(--red); }
.sv-month.zero .sv-month-h { color: var(--muted-2); font-weight: 600; }
@media (max-width: 1100px) {
  .sv-month-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ===== 培训学时申报工作台（2026-11-20） ===== */
.wb-lgbar { border-bottom-color: var(--line-2); }
.wb-lgbar .sv-tab { padding-left: 20px; padding-right: 20px; }
.wb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.wb-stat {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--muted-2);
  padding: 14px 16px 12px; min-height: 92px; box-sizing: border-box;
}
.wb-stat.hot { border-top-color: var(--red); background: var(--bg-2); }
.wb-stat > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.wb-stat > b { display: block; margin: 5px 0 3px; font-size: 26px; line-height: 1.1; font-weight: 800; color: var(--ink); font-family: Arial, sans-serif; }
.wb-stat.hot > b { color: var(--red); }
.wb-stat > small { display: block; font-size: 10.5px; color: var(--muted-2); }
.wb-pf-content { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
  .wb-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 部门表个人填报下钻链接 ===== */
.pf-drill { color: var(--red); font-weight: 700; border-bottom: 1px dashed var(--red); text-decoration: none; }
.pf-drill small { font-size: 10px; margin-left: 1px; }
.pf-drill:hover { background: var(--red-soft); }
.pf-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 场次学时自动计算（只读框 + 自动标记） ===== */
input.sv-autocalc { background: var(--bg-2); color: var(--ink-2); font-weight: 700; cursor: default; }
.sv-auto-tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 1px 5px; border-radius: 3px; margin-left: 5px; vertical-align: 1px; }

/* ===== 参训范围选择器（新增/编辑场次） ===== */
.sc-pick { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--bg-2); }
.sc-pick-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 9px; }
.sc-pick-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.sc-pick-mode {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card);
  font-size: 12.5px; color: var(--ink-2); transition: all .15s;
}
.sc-pick-mode input { margin: 0; accent-color: var(--red); }
.sc-pick-mode:hover { border-color: var(--red); }
.sc-pick-mode.on { border-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 700; }
.sc-pick-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; }
.sc-pick-note { font-size: 12px; color: var(--muted); margin-bottom: 9px; line-height: 1.5; }
.sc-dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 10px; max-height: 190px; overflow-y: auto; }
.sc-dept-item { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.sc-dept-item:hover { background: var(--bg-2); }
.sc-dept-item input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--red); }
.sc-dept-name { flex: 1; color: var(--ink-2); }
.sc-dept-heads { color: var(--muted-2); font-size: 10.5px; }
.sc-dept-item input[type=number] { width: 58px; height: 26px; padding: 0 5px; font-size: 12px; border: 1px solid var(--line); border-radius: 4px; }
.sc-person-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sc-person-bar select, .sc-person-bar input[type=text] { height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; font-size: 12px; }
.sc-person-bar select { min-width: 170px; }
.sc-person-bar input[type=text] { min-width: 140px; }
.sc-person-list { max-height: 190px; overflow-y: auto; }
.sc-person-dept { display: flex; align-items: center; gap: 8px; margin: 7px 0 5px; font-size: 12px; color: var(--ink-2); }
.sc-person-dept b { margin-right: auto; }
.sc-person-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sc-person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; cursor: pointer; font-size: 11.5px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink-2);
}
.sc-chip input { display: none; }
.sc-chip small { color: var(--muted-2); font-size: 9.5px; }
.sc-chip.on { border-color: var(--red); background: var(--red-soft); color: var(--red); font-weight: 700; }
.sc-5s-sum { margin: 0 0 7px; font-size: 12px; color: var(--muted); }
.sc-5s-sum b { color: var(--red); font-size: 13px; }
@media (max-width: 760px) { .sc-dept-grid { grid-template-columns: 1fr; } }

/* 部门人均学时达标曲线（DEPARTMENT LEDGER 卡片内） */
.dept-attain { padding: 14px 16px 4px; border-bottom: 1px solid var(--line); }
.attain-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.attain-head b { font-size: 13px; color: var(--ink); }
.attain-legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.attain-legend i { display: inline-block; flex: none; }
.attain-ok { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.attain-no { width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid #8C98A4; }
.attain-line { width: 16px; height: 0; border-top: 2px dashed var(--red); }
.attain-small { width: 10px; height: 10px; border-radius: 50%; border: 1px dashed #8C98A4; }
.attain-legend em { font-style: normal; margin-left: 8px; color: var(--muted-2); }
.sm-note { font-size: 9.5px; color: var(--muted-2); border: 1px dashed var(--line); border-radius: 3px; padding: 0 3px; cursor: help; }

/* 名册数据质量体检条 */
.roster-quality { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.roster-quality b { color: var(--ink); font-size: 12.5px; }
.roster-quality span b { color: var(--ink); font-variant-numeric: tabular-nums; }
.roster-quality span.bad b { color: var(--red); }
.roster-quality span.bad { color: var(--red); }
.roster-quality em { font-style: normal; margin-left: auto; color: var(--muted-2); font-size: 11px; }
.roster-quality.has-issue em { color: var(--red); }

/* ===== 2026 培训计划执行（红灰白） ===== */
.ps-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14px 0 16px; }
.ps-stat { padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--ink-2); }
.ps-stat.ps-done { border-top-color: var(--red); }
.ps-stat.ps-doing { border-top-color: #8C98A4; }
.ps-stat.ps-pending { border-top-color: var(--line); }
.ps-stat.ps-total { border-top-color: var(--red); background: #FBF3F4; }
.ps-n { font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.ps-n small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.ps-l { font-size: 12px; color: var(--muted); margin-top: 5px; }
.ps-sub { font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.ps-bar { height: 4px; background: var(--line); margin-top: 9px; }
.ps-bar i { display: block; height: 100%; background: var(--ink-2); }
.ps-done .ps-bar i, .ps-total .ps-bar i { background: var(--red); }
.ps-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ps-sel, .ps-q { height: 32px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0 9px; font-size: 12px; font-family: inherit; }
/* 覆盖全局 select{width:100%}，保持筛选栏横排对齐 */
.ps-sel { width: auto; min-width: 118px; flex: 0 0 auto; }
.ps-q { min-width: 200px; flex: 0 1 300px; }
.ps-table td { vertical-align: middle; font-size: 12px; }
/* 2026-11-24：计划表列宽可拖拽（表头右边缘） */
.ps-table th { position: relative; }
.ps-col-resize { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 3; }
.ps-col-resize::after { content: ''; position: absolute; top: 22%; bottom: 22%; left: 4px; width: 1px; background: var(--line); }
.ps-col-resize:hover::after { background: var(--red); width: 2px; left: 3px; }
body.ps-col-dragging, body.ps-col-dragging * { cursor: col-resize !important; user-select: none !important; }
.ps-col-tip { margin-left: 12px; color: var(--muted-2); }
.ps-reset-cols { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline; }
.ps-reset-cols:hover { color: var(--ink); }
.ps-lv { display: inline-block; padding: 1px 7px; font-size: 11px; border: 1px solid var(--line); }
.ps-lv.lv-co { color: var(--red); border-color: var(--red); }
.ps-lv.lv-dept { color: var(--muted); }
.ps-badge { display: inline-block; min-width: 58px; padding: 3px 9px; font-size: 11px; cursor: default; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
[data-id].ps-badge[title] { cursor: pointer; }
.ps-badge.ps-done { color: var(--ink); background: var(--bg-2); border-color: var(--ink-2); font-weight: 600; }
.ps-badge.ps-done::before { content: '✓ '; color: var(--red); }
.ps-badge.ps-doing { color: var(--red); background: #FBF3F4; border-color: var(--red); }
.ps-badge.ps-pending { color: var(--muted-2); background: var(--bg); }
/* 2026 计划完成情况的 KPI 卡与表格勾选 */
.ps-kpi { border-top-color: var(--red); }
.ps-kpi .v { font-variant-numeric: tabular-nums; }
.ps-mini { height: 4px; background: var(--line); margin-top: 9px; }
.ps-mini i { display: block; height: 100%; background: var(--red); }
.ps-table .ps-check { width: 34px; }
.ps-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; }
.ps-table .ps-edit { padding: 2px 9px; font-size: 11px; line-height: 18px; }
.ps-table td.nowrap { white-space: nowrap; color: var(--ink-2); }
@media (max-width: 980px) { .ps-stats { grid-template-columns: repeat(2, 1fr); } }

/* 我的上报明细（公司级 / 部门级共用，2026-11-24） */
.mysub-host { margin-top: 18px; }
.mysub-card .sec-title { display: flex; align-items: center; }
.mysub-sum { margin-left: auto; font-size: 12px; color: var(--muted); }
.mysub-sum b { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.mysub-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 4px 0 14px; }
.mysub-tab { padding: 9px 16px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.mysub-tab span { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; font-size: 11px; line-height: 16px; background: var(--bg-2); color: var(--muted); }
.mysub-tab.on { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }
.mysub-tab.on span { background: #FBF3F4; color: var(--red); }
.mysub-scroll { overflow-x: auto; }
.mysub-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mysub-table th { text-align: left; padding: 10px 8px; background: var(--bg-2); border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; white-space: nowrap; }
.mysub-table td { padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--ink); }
.mysub-table tbody tr:hover { background: #FAFAFB; }
.mysub-table small { display: block; margin-top: 2px; font-size: 11px; }
.ms-title { min-width: 170px; font-weight: 600; }
.ms-date, .ms-hours, .ms-meta { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-hours { color: var(--red); font-weight: 600; }
.mysub-tag { display: inline-block; padding: 2px 7px; font-size: 11px; border: 1px solid var(--line); white-space: nowrap; }
.mysub-tag.c { color: var(--red); background: #FBF3F4; border-color: var(--red); }
.mysub-tag.d { color: var(--muted); background: var(--bg-2); }
.mysub-empty { text-align: center; padding: 32px 10px !important; color: var(--muted); }

/* =========================================================== 线上学院 · 数据中心 */
.dc-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.dc-head h2 { margin:0 0 4px; font-size:20px; }
/* 一个培训一个数据中心：顶部分流入口 */
.dc-center-nav { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); gap:12px; margin-bottom:12px; }
.dc-center { appearance:none; text-align:left; cursor:pointer; background:var(--card); border:1px solid var(--line);
  border-left:3px solid var(--line); border-radius:10px; padding:12px 16px; transition:border-color .15s,background .15s; }
.dc-center b { display:block; font-size:13px; color:var(--ink); margin-bottom:3px; }
.dc-center span { display:block; font-size:11.5px; color:var(--muted-2); }
.dc-center:hover { border-left-color:var(--red); background:var(--bg-2); }
.dc-center.on { border-color:rgba(229,0,18,.3); border-left-color:var(--red); background:var(--red-soft); }
.dc-center.on b { color:var(--red); }
.dc-center.more { cursor:default; border-style:dashed; background:transparent; }
.dc-center.more b { color:var(--muted); }
.dc-center-note { font-size:12px; color:var(--muted); background:var(--bg-2); border:1px solid var(--line);
  border-radius:8px; padding:8px 12px; margin-bottom:14px; }
.dc-center-note b { color:var(--ink); }
/* 2026-12-02 数据中心改为分组排布：8 个数字不再挤成一行 */
.dc-kpi-label { font-size:11px; font-weight:700; letter-spacing:.6px; color:var(--muted-2);
  margin:14px 0 8px; padding-left:2px; }
.dc-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:4px; }
.dc-kpi { background:var(--card); border:1px solid var(--line); border-top:3px solid var(--red); border-radius:11px; padding:16px 18px; }
.dc-kpi .k { font-size:12px; color:var(--muted-2); white-space:nowrap; }
.dc-kpi .v { margin-top:6px; font-size:24px; font-weight:700; line-height:1.1; color:var(--ink); font-variant-numeric:tabular-nums; }
.dc-kpi .v small { font-size:12px; font-weight:500; color:var(--muted); margin-left:2px; }
.dc-kpi .p { margin-top:5px; font-size:11px; color:var(--muted-2); }
.dc-anom { background:var(--bg-2); border:1px solid var(--line); border-radius:9px; padding:11px 14px; margin-bottom:16px; }
.dc-anom-title { font-size:12px; font-weight:700; color:var(--ink-2); margin-bottom:7px; }
.dc-anom-row { display:flex; flex-wrap:wrap; gap:8px 22px; font-size:12px; color:var(--muted); margin-top:4px; }
.dc-anom-row b { color:var(--ink); font-variant-numeric:tabular-nums; }
.dc-warn { color:var(--red); }
.dc-warn b { color:var(--red); }
.dc-grid2 { display:grid; grid-template-columns:1.15fr 1fr; gap:14px; margin-bottom:14px; }
.dc-svg { width:100%; display:block; }
.dc-svg .grid { stroke:#E5E5E5; stroke-width:1; }
.dc-svg .ylab,.dc-svg .xlab { fill:#8A8A8A; font-size:11px; }
.dc-svg .vlab { fill:#391F0E; font-size:10px; }
.dc-legend { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:8px; font-size:11.5px; color:var(--muted); }
.dc-legend span { display:inline-flex; align-items:center; gap:6px; }
.dc-legend i { width:10px; height:10px; border-radius:2px; display:inline-block; }
.dc-funnel { display:flex; flex-direction:column; gap:6px; }
.dc-funnel .fn { display:grid; grid-template-columns:170px 1fr 46px 52px; gap:10px; align-items:center; font-size:12px; }
.dc-funnel .fn .k { color:var(--ink-2); font-weight:600; }
.dc-funnel .fn .k em { font-style:normal; font-weight:400; font-size:10.5px; color:var(--muted-2); margin-left:6px; }
.dc-funnel .bar { height:18px; background:var(--bg-2); border-radius:3px; overflow:hidden; }
.dc-funnel .bar i { display:block; height:100%; background:var(--red); }
.dc-funnel .fn b { text-align:right; color:var(--ink); font-variant-numeric:tabular-nums; }
.dc-funnel .fn u { text-decoration:none; text-align:right; color:var(--muted-2); font-size:11px; font-variant-numeric:tabular-nums; }
.dc-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:12px; }
.dc-filters .input { width:auto; min-width:220px; }
/* 2026-12-02 用户反馈：矩阵列距偏大、配色过硬；改为浅灰表头 + 紧凑列距 + 圆角 */
.dc-table { width:100%; border-collapse:collapse; font-size:12px; table-layout:auto; }
.dc-table th { background:var(--bg-2); color:var(--muted); font-weight:600; font-size:11.5px;
  padding:8px 9px; text-align:left; white-space:nowrap; border-bottom:1px solid var(--line); }
.dc-table td { padding:7px 9px; border-bottom:1px solid var(--line-2); vertical-align:middle; white-space:nowrap; }
.dc-table thead th:first-child { border-top-left-radius:8px; }
.dc-table thead th:last-child { border-top-right-radius:8px; }
.dc-table tbody tr:hover td { background:var(--bg-2); }
.dc-table tbody tr.on td { background:var(--red-soft); }
.dc-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.dc-table .sp { color:var(--muted-2); }
.dc-chip { border-radius:5px; }
.dc-link { color:var(--red); cursor:pointer; }
.dc-matrix-actions { display:inline-flex; gap:5px; }
.dc-matrix-actions .btn { height:25px; padding:0 8px; font-size:11px; }
.dc-export-row { display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.dc-export-row .btn { height:30px; padding:0 11px; font-size:12px; }
.dc-link:hover { text-decoration:underline; }
.dc-rate { display:flex; align-items:center; gap:8px; min-width:110px; }
.dc-rate .track { flex:1; height:7px; background:var(--line); border-radius:5px; overflow:hidden; }
.dc-rate .track i { display:block; height:100%; background:var(--red); }
.dc-rate b { font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; min-width:42px; text-align:right; }
.dc-chip { display:inline-block; min-width:28px; padding:2px 7px; border-radius:4px; background:var(--bg-2); color:var(--muted-2); text-align:center; }
.dc-chip.on { background:var(--red); color:#fff; }
.dc-pill { display:inline-block; padding:2px 7px; border-radius:4px; background:var(--bg-2); color:var(--muted); font-size:11px; white-space:nowrap; }
.dc-pill.ok,.dc-pill.done { background:var(--red-soft); color:var(--red); }
.dc-pill.wait { color:var(--muted); }
.dc-flag { margin-top:3px; font-size:10.5px; color:var(--red); }
.dc-edit { display:flex; gap:14px; margin-top:14px; }
.dc-edit label { flex:1; font-size:12px; color:var(--muted); }
.dc-edit .input { width:100%; margin-top:4px; }
@media (max-width:1100px){ .dc-kpis{grid-template-columns:repeat(4,1fr);} .dc-grid2{grid-template-columns:1fr;} }
@media (max-width:640px){ .dc-kpis{grid-template-columns:repeat(2,1fr);} .dc-funnel .fn{grid-template-columns:110px 1fr 38px 44px;} }

/* =========================================================== 课程媒体上传（双通道） */
.up-tabs { display:flex; gap:8px; border-bottom:1px solid var(--line); margin-bottom:2px; }
.up-tab { border:0; background:transparent; padding:9px 16px; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; }
.up-tab.on { color:var(--red); border-bottom-color:var(--red); }
.up-pane.hide { display:none; }
.up-dirbar { display:flex; gap:10px; align-items:center; margin-bottom:10px; }
.up-dirbar .input { flex:1; }
.up-dirlist { max-height:300px; overflow:auto; border:1px solid var(--line); border-radius:8px; }
.up-file-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:9px 12px; border-bottom:1px solid var(--line); }
.up-file-row:last-child { border-bottom:0; }
.up-file-row:hover { background:var(--bg-2); }
.up-fi { display:flex; flex-direction:column; gap:3px; min-width:0; }
.up-fi b { font-size:12.5px; font-weight:600; color:var(--ink); word-break:break-all; }

/* =========================================================== 课程媒体上传 · 格式整理 */
.up-pick { display:flex; align-items:center; gap:12px; padding:16px; border:1px dashed var(--red); border-radius:8px; background:var(--red-soft); cursor:pointer; transition:background .15s; }
.up-pick:hover { background:var(--red-soft); filter:brightness(.98); }
.up-pick-ico { width:38px; height:38px; flex:0 0 38px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:var(--red); color:#fff; font-size:20px; font-weight:700; }
.up-pick b { display:block; font-size:13px; color:var(--ink); font-weight:700; }
.up-pick small { display:block; margin-top:3px; font-size:11px; color:var(--muted-2); }
.up-file-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.up-filename { margin:7px 0 2px; font-size:12px; color:var(--muted); min-height:16px; }
.up-urlrow { display:flex; gap:8px; }
.up-urlrow .input { flex:1; min-width:0; font-family:Consolas,Monaco,monospace; font-size:12px; background:var(--bg-2); cursor:text; }
.up-urlrow .btn { flex:0 0 auto; }

/* 课程弹窗内联上传：地址 + 上传/试看按钮 + 就地进度 + 预览 */
.up-inline { display:flex; gap:8px; align-items:center; }
.up-inline .input { flex:1; min-width:0; font-family:Consolas,Monaco,monospace; font-size:12px; }
.up-inline .btn { flex:0 0 auto; }
.up-inline .up-sel { flex:0 0 auto; width:auto; }
.up-progress { display:flex; align-items:center; gap:10px; margin-top:8px; }
.up-progress .bar { flex:1; height:6px; background:var(--line); border-radius:4px; overflow:hidden; }
.up-progress .bar > i { display:block; height:100%; width:0; background:var(--red); transition:width .2s; }
.up-progress .txt { font-size:11.5px; color:var(--muted); white-space:nowrap; }
.vid-preview { margin-top:10px; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--bg-2); text-align:center; }
.vid-preview video { display:block; height:220px; width:auto; max-width:100%; margin:0 auto; background:#000; }
/* 课程列表缩略图（有封面用封面，没有用占位） */
.aa-thumb { width:92px; height:52px; border-radius:5px; object-fit:cover; border:1px solid var(--line); background:var(--bg-2); display:block; }
.aa-thumb-ph { width:92px; height:52px; border-radius:5px; border:1px dashed var(--line); display:flex; align-items:center; justify-content:center; color:var(--muted-2); font-size:10px; text-align:center; line-height:1.2; }

/* =========================================================== 课程封面（抖音/视频号式） */
.ac-course-card { overflow:hidden; padding:0 !important; }
.ac-course-card > .card-body { padding:14px; }
.ac-cover { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; background:var(--bg-2); }
.ac-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.ac-cover .tag { position:absolute; left:10px; top:10px; }

/* ----------------------------------------------------------- 学员端首页：学院头图 + 课程墙 */
.ac-hero {
  position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between;
  gap:24px; padding:24px 26px; border-radius:12px; margin-bottom:18px;
  background:linear-gradient(118deg, #8E0009 0%, #C6000F 42%, #E50012 78%, #F0554B 100%);
  color:#fff; box-shadow:0 10px 24px -14px rgba(229,0,18,.55);
}
.ac-hero::after {
  content:''; position:absolute; right:-70px; top:-80px; width:260px; height:260px; border-radius:50%;
  background:rgba(255,255,255,.09); pointer-events:none;
}
.ac-hero::before {
  content:''; position:absolute; right:70px; bottom:-96px; width:180px; height:180px; border-radius:50%;
  background:rgba(255,255,255,.06); pointer-events:none;
}
.ac-hero-l { position:relative; z-index:1; max-width:640px; }
.ac-hero-kicker { display:inline-block; font-size:11px; letter-spacing:.16em; font-weight:700; opacity:.8; }
.ac-hero h2 { margin:6px 0 8px; font-size:26px; line-height:1.2; color:#fff; }
.ac-hero p { margin:0; font-size:13px; line-height:1.7; color:rgba(255,255,255,.9); }
.ac-hero-stats { position:relative; z-index:1; display:flex; gap:14px; flex:0 0 auto; }
.ac-hs {
  min-width:104px; padding:12px 16px; border-radius:10px;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(2px); text-align:center;
}
.ac-hs b { display:block; font-size:24px; line-height:1.15; color:#fff; }
.ac-hs b i { font-style:normal; font-size:11px; font-weight:400; margin-left:3px; opacity:.85; }
.ac-hs span { display:block; margin-top:3px; font-size:11px; color:rgba(255,255,255,.82); }

.ac-panel { border:1px solid var(--line); border-radius:12px; background:var(--white,#fff); }
.ac-panel-head {
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding:16px 18px; border-bottom:1px solid var(--line);
}
.ac-panel-title { display:flex; align-items:baseline; gap:10px; }
.ac-panel-title h3 { margin:0; font-size:16px; }
.ac-panel-title .sub { font-size:12px; color:var(--muted); }
.ac-chips { display:flex; gap:8px; flex-wrap:wrap; }
.ac-chip {
  display:inline-flex; align-items:center; gap:6px; height:30px; padding:0 13px;
  border:1px solid var(--line); border-radius:16px; background:var(--white,#fff);
  color:var(--ink-2,#4A4A4A); font-size:12.5px; cursor:pointer; transition:.15s;
}
.ac-chip i { font-style:normal; font-size:11px; color:var(--muted); }
.ac-chip:hover { border-color:rgba(229,0,18,.45); color:var(--red); }
.ac-chip.on { background:var(--red); border-color:var(--red); color:#fff; font-weight:600; }
.ac-chip.on i { color:rgba(255,255,255,.8); }

.ac-grid { display:grid; gap:16px; padding:18px; grid-template-columns:repeat(auto-fill, minmax(258px, 1fr)); }
.ac-grid-few { grid-template-columns:repeat(auto-fit, minmax(430px, 1fr)); }
.ac-course-card {
  display:flex; flex-direction:column; border:1px solid var(--line); border-radius:10px;
  background:var(--white,#fff); overflow:hidden; cursor:pointer; transition:transform .16s, box-shadow .16s, border-color .16s;
}
.ac-course-card:hover { transform:translateY(-2px); border-color:rgba(229,0,18,.35); box-shadow:0 12px 22px -16px rgba(0,0,0,.35); }
.ac-course-card .ac-play {
  position:absolute; right:10px; bottom:10px; width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:12px; color:#fff;
  background:rgba(0,0,0,.42); border:1px solid rgba(255,255,255,.5); transition:.16s;
}
.ac-course-card:hover .ac-play { background:var(--red); border-color:var(--red); }
.ac-course-card .ac-body { display:flex; flex-direction:column; gap:8px; padding:14px 15px 15px; flex:1; }
.ac-course-card h3 { margin:0; font-size:15px; line-height:1.4; }
.ac-course-card .ac-sum {
  margin:0; font-size:12.5px; line-height:1.65; color:var(--muted);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:41px;
}
.ac-course-card .ac-meta { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.ac-course-card .ac-hours { margin-left:auto; color:var(--red); font-weight:600; }
.ac-course-card .ac-cta { margin-top:auto; padding-top:6px; }
.ac-course-card .ac-cta .btn { pointer-events:none; }
.ac-course-card.feat { flex-direction:row; }
.ac-course-card.feat .ac-cover {
  width:44%; flex:0 0 44%; aspect-ratio:16/9; min-height:0; align-self:center;
  margin:16px 0 16px 16px; border-radius:8px;
}
.ac-course-card.feat .ac-body { padding:18px 22px 18px 20px; justify-content:center; gap:10px; }
.ac-course-card.feat h3 { font-size:19px; }
.ac-course-card.feat .ac-sum { font-size:13px; -webkit-line-clamp:3; min-height:0; }
.ac-course-card.done .ac-cta .btn { background:var(--white,#fff); color:var(--ink-2,#4A4A4A); border:1px solid var(--line); }
.ac-course-card.feat .ac-cta .btn { pointer-events:none; }
/* 学员端卡片：状态标签移到右上，避开标题页自带的品牌角标 */
.ac-course-card .ac-cover .tag { left:auto; right:10px; top:10px; background:rgba(255,255,255,.94); }

/* 底部三条学习说明 */
.ac-tips { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:16px; }
.ac-tip {
  display:flex; gap:12px; padding:16px 16px 15px; border:1px solid var(--line);
  border-radius:10px; background:var(--white,#fff);
}
.ac-tip-no { flex:0 0 auto; font-size:13px; font-weight:700; color:var(--red); letter-spacing:.06em; padding-top:1px; }
.ac-tip b { display:block; font-size:13.5px; color:var(--ink,#2B2B2B); }
.ac-tip p { margin:5px 0 0; font-size:12px; line-height:1.65; color:var(--muted); }
@media (max-width: 1100px) { .ac-tips { grid-template-columns:1fr; } }
@media (max-width: 900px) {
  .ac-hero { flex-direction:column; align-items:flex-start; }
  .ac-hero-stats { width:100%; }
  .ac-hs { flex:1; min-width:0; }
  .ac-grid, .ac-grid-few { grid-template-columns:1fr; }
  .ac-course-card.feat { flex-direction:column; }
  .ac-course-card.feat .ac-cover { width:100%; flex:none; min-height:0; aspect-ratio:16/9; }
}

.cover-pick { display:inline-flex; align-items:center; gap:14px; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--bg-2); }
.cover-pick > img { width:140px; height:79px; object-fit:cover; border-radius:5px; border:1px solid var(--line); }
.cover-pick .cover-ph { width:140px; height:79px; display:flex; align-items:center; justify-content:center; border:1px dashed var(--line); border-radius:5px; color:var(--muted-2); font-size:12px; }
.cover-ops { display:flex; flex-direction:column; gap:7px; }
/* 封面选择：小窗口，视频与预览统一 16:9，避免固有尺寸把弹窗撑爆 */
.dialog.cover-dlg { max-width: 760px; }
.cover-dialog { display:grid; grid-template-columns:minmax(0,1fr) 232px; gap:20px; align-items:start; }
.cover-stage { min-width:0; }
.cover-stage video {
  display:block; width:100%; height:auto; aspect-ratio:16/9;
  max-height:none; object-fit:contain;
  background:#111; border-radius:8px;
}
.cover-side { min-width:0; display:flex; flex-direction:column; gap:10px; }
.cover-preview { width:100%; aspect-ratio:16/9; border:1px solid var(--line); border-radius:8px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--bg-2); }
.cover-preview img { width:100%; height:100%; object-fit:cover; }
.cover-or { text-align:center; color:var(--muted-2); font-size:11px; }
@media (max-width:800px){
  .cover-dialog{grid-template-columns:minmax(0,1fr);}
  .cover-stage, .cover-side{max-width:460px; margin:0 auto; width:100%;}
  .cover-preview{max-width:300px;}
}

/* ---------------------------------------------------------------- 课程看板弹窗 */
/* 原实现用了 class="table"，但样式表里没有对应规则，表格走了浏览器默认样式，
   7 列数字挤在一起。这里改为专用 .aa-b* 一套，放大留白与层级。 */
.dialog.aa-board { max-width: 1000px; }
/* .scrim-inner 是内容自适应宽度的容器，不撑满时 .dialog 的 width:100% 拿不到父宽度，
   弹窗会被表格 min-width 顶成 714px。这里只对看板放开到父级满宽。 */
.scrim-inner:has(> .dialog.aa-board) { width: 100%; }
.dialog.aa-board .dialog-body { padding: 22px 26px 24px; }

.aa-bhead {
  padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 8px; background: var(--bg-2);
}
.aa-bhead h3 { font-size: 16px; line-height: 1.4; color: var(--ink); }
.aa-bhead p { margin: 7px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.aa-bkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 4px; }
.aa-bk {
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 8px; padding: 19px 20px 17px; box-shadow: var(--shadow);
}
.aa-bk.w2 { grid-column: span 2; }
.aa-bk-k { font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.aa-bk-v {
  margin-top: 11px; font-size: 32px; font-weight: 700; line-height: 1.05;
  color: var(--ink); letter-spacing: -.6px; font-variant-numeric: tabular-nums;
}
.aa-bk-v small { margin-left: 5px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.aa-bk-bar { margin-top: 13px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.aa-bk-bar i { display: block; height: 100%; border-radius: 3px; background: var(--red); }

.aa-bsec { margin-top: 26px; }
.aa-bsec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.aa-bsec-h h4 { font-size: 14.5px; color: var(--ink); }
.aa-bsec-h span { font-size: 12px; color: var(--muted-2); }

.aa-bwrap { border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
.aa-btable { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13.5px; min-width: 660px; }
.aa-btable th {
  padding: 12px 16px; text-align: right; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.aa-btable td {
  padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line-2);
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.aa-btable th.l, .aa-btable td.l { text-align: left; }
.aa-btable tbody tr:last-child td { border-bottom: 0; }
.aa-btable tbody tr:hover td { background: var(--bg-2); }
.aa-btable td.l strong { font-weight: 600; color: var(--ink); }
.aa-btable .zero { color: var(--muted-2); }
.aa-btable td.aa-bmod { text-align: left; font-size: 12px; line-height: 1.65; color: var(--muted); white-space: normal; max-width: 240px; }
.aa-brate { display: inline-flex; align-items: center; gap: 9px; }
.aa-brate > span { width: 46px; height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.aa-brate i { display: block; height: 100%; background: var(--red); }
.aa-brate b { font-weight: 600; font-variant-numeric: tabular-nums; }
.aa-bempty { padding: 34px 0; text-align: center; color: var(--muted-2); font-size: 13px; }
.aa-bh-right { display: flex; align-items: baseline; gap: 14px; }
.aa-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; color: var(--red);
  border-bottom: 1px solid currentColor; line-height: 1.5;
}
.aa-link:hover { color: var(--red-dark); }
.cf-matmore { display: block; margin: 10px auto 0; }
.aa-bmore { padding: 11px 16px; font-size: 12px; color: var(--muted-2); background: var(--bg-2); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- 课程编辑弹窗 */
/* 原来把「模块定义 / 学习资料 / 题库」三个 JSON 文本框直接摊在表单里，业务人员看不懂。
   改为分区 + 可视化编辑：模块一张卡、资料一行、题库单独弹窗。 */
.dialog.cf-dialog { max-width: 1040px; }
.scrim-inner:has(> .dialog.cf-dialog) { width: 100%; }
.dialog.cf-dialog .dialog-body { padding: 22px 26px 20px; }

.cf-sec { padding: 22px 0 6px; border-top: 1px solid var(--line-2); }
.cf-sec:first-child { padding-top: 0; border-top: 0; }
.cf-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.cf-sec-no {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--red);
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.cf-sec-h h4 { font-size: 14px; color: var(--ink); }
.cf-sec-h .cf-sec-tip { margin-left: auto; font-size: 11.5px; color: var(--muted-2); font-weight: 400; }

/* 模块卡片 */
.cf-mods { display: flex; flex-direction: column; gap: 11px; }
.cf-mod { border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow: hidden; }
.cf-mod-h {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.cf-no { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.cf-mod-h .input { height: 32px; font-size: 13px; background: var(--card); }
.cf-mod-h .cf-mod-name { flex: 1.3 1 0; min-width: 0; }
.cf-mod-h .cf-mod-en { flex: 1 1 0; min-width: 0; }
.cf-mod-b { padding: 12px; display: flex; flex-direction: column; gap: 11px; }

.cf-vid {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px dashed var(--line); border-radius: 6px; background: var(--bg-2); min-height: 40px;
}
.cf-vid.has { border-style: solid; background: var(--card); }
.cf-vid-ico { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 10px; }
.cf-vid.has .cf-vid-ico { background: var(--red); color: #fff; }
.cf-vid-name { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-vid-name.none { font-weight: 400; color: var(--muted-2); }
.cf-vid-tip { flex: 0 0 auto; font-size: 11.5px; color: var(--muted-2); }
.cf-vid-ops { flex: 0 0 auto; display: flex; gap: 6px; }

.cf-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cf-meta label { display: block; min-width: 0; font-size: 11.5px; color: var(--muted); }
.cf-meta .input { width: 100%; min-width: 0; height: 32px; margin-top: 4px; font-size: 13px; }

/* 添加按钮：整条虚线 */
.cf-add {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 40px; margin-top: 11px; cursor: pointer;
  border: 1px dashed var(--line); border-radius: 8px; background: var(--bg-2);
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.cf-add:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* 学习资料行 */
.cf-mats { display: flex; flex-direction: column; gap: 9px; }
.cf-mat {
  display: grid; grid-template-columns: minmax(0, 1fr) 200px auto auto;
  align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
}
.cf-mat .input { width: 100%; min-width: 0; height: 32px; font-size: 13px; }
.cf-mat-file {
  min-width: 0; font-size: 12px; color: var(--muted-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right;
}
.cf-mat-file.has { color: var(--ink-2); }

/* 题库摘要卡 */
.cf-qsum {
  display: flex; align-items: center; gap: 16px; padding: 15px 18px;
  border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 8px; background: var(--bg-2);
}
.cf-qsum-n { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.cf-qsum-n small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.cf-qsum-txt { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* 题库编辑弹窗 */
.dialog.cf-bank-dialog { max-width: 860px; }
.scrim-inner:has(> .dialog.cf-bank-dialog) { width: 100%; }
.cf-q {
  border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  padding: 13px 15px; margin-bottom: 10px;
}
.cf-q-h { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.cf-q-no { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.cf-q textarea { min-height: 46px; font-size: 13px; }
.cf-opts { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.cf-opt { display: flex; align-items: center; gap: 9px; }
.cf-opt input[type=radio] { flex: 0 0 auto; accent-color: var(--red); width: 15px; height: 15px; cursor: pointer; }
.cf-opt .cf-opt-k { flex: 0 0 18px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; }
.cf-opt .input { width: 100%; min-width: 0; height: 32px; font-size: 13px; }
.cf-opt.on .cf-opt-k { color: var(--red); }
.cf-opt-tip { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 860px) {
  .cf-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-mod-h { flex-wrap: wrap; }
  .cf-mod-h .cf-mod-name, .cf-mod-h .cf-mod-en { flex: 1 1 100%; }
}

@media (max-width: 900px) {
  .aa-bkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .aa-bk.w2 { grid-column: span 2; }
  .aa-bk-v { font-size: 26px; }
}

/* ===== 专业英语学习模块：主系统内嵌窗口（2026-12-01） ===== */
.vocab-embed { padding: 10px; overflow: hidden; }
.vocab-embed iframe {
  display: block; width: 100%; height: calc(100dvh - 260px); min-height: 620px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}

/* ===== 线上学院课程页：一个模块一个窗口，视频不再横铺满屏（2026-12-01） ===== */
#academyCourse > .card {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.ac-video-card .card-body { padding: 14px 16px 16px; }
.ac-video-window {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .85fr);
  gap: 16px;
  align-items: start;
}
.ac-video-stage {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ac-video-stage video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  background: #000;
  object-fit: contain;
}
.ac-video-side {
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-soft, #f7f7f7);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ac-video-side-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
}
.ac-video-side-title {
  margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink);
  line-height: 1.45;
}
@media (max-width: 760px) {
  .ac-video-window { grid-template-columns: minmax(0, 1fr); }
  #academyCourse > .card { max-width: 100%; }
}
table.t tr.dept-group td {
  background: var(--red-soft); color: var(--red-dark); font-weight: 600;
  border-top: 1px solid rgba(229, 0, 18, .18);
}
table.t tr.dept-group:hover td { background: var(--red-soft); }

/* =========================================================== 合规培训 · 完成情况
   线上平台导出快照的一比一复刻：柔和红灰白 / 紧凑列距 / 查看名单 / 导出 */
.cp-bar { display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  background:var(--card); border:1px solid var(--line); border-radius:12px; padding:13px 16px; margin-bottom:12px; }
.cp-mark { width:30px; height:30px; border-radius:7px; background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:none; }
.cp-title h2 { margin:0; font-size:16px; font-weight:700; line-height:1.3; }
.cp-sp { font-size:11.5px; color:var(--muted-2); margin-top:2px; }
.cp-spacer { flex:1; }
.cp-admin { font-size:12px; color:var(--muted); white-space:nowrap; }
.cp-bar .btn-line { background:var(--card); color:var(--ink-2); border:1px solid var(--line); }
.cp-bar .btn-line:hover { border-color:var(--red); color:var(--red); }
.cp-bar .btn { padding:0 11px; height:30px; font-size:12.5px; }
.cp-identity { display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-size:12px;
  color:var(--muted); background:var(--bg-2); border:1px solid var(--line); border-radius:9px;
  padding:9px 14px; margin-bottom:18px; }
.cp-identity i { width:1px; height:12px; background:var(--line); }
.cp-identity b { color:var(--ink); font-variant-numeric:tabular-nums; }
.cp-identity .cp-warn, .cp-identity .cp-warn b { color:var(--red); }
.cp-sec-h { display:flex; align-items:baseline; gap:11px; margin:20px 0 10px; }
.cp-sec-h h3 { margin:0; font-size:14px; font-weight:700; }
.cp-hint { font-size:11.5px; color:var(--muted-2); }
/* 合规完成情况：7 个数字改为 4+3 两行，留足呼吸空间 */
.cp-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.cp-kpi { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px 18px 14px; box-shadow:var(--shadow); }
.cp-kpi .k { font-size:11.5px; color:var(--muted); }
.cp-kpi .v { font-size:25px; font-weight:800; margin-top:4px; line-height:1.1; font-variant-numeric:tabular-nums; letter-spacing:-.4px; }
.cp-kpi .v small { font-size:12px; font-weight:600; color:var(--muted); margin-left:2px; }
.cp-kpi .p { font-size:10.5px; color:var(--muted-2); margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cp-kpi.hot { border-color:rgba(229,0,18,.28); }
.cp-kpi.hot .v { color:var(--red); }
.cp-panel { background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); overflow:auto; }
.cp-table { width:100%; border-collapse:collapse; font-size:12px; min-width:900px; }
.cp-table th { background:var(--bg-2); color:var(--muted); font-size:11.5px; font-weight:600;
  padding:8px 10px; text-align:left; white-space:nowrap; border-bottom:1px solid var(--line); }
.cp-table td { padding:7px 10px; border-bottom:1px solid var(--line-2); vertical-align:middle; white-space:nowrap; }
.cp-table tbody tr:hover td { background:var(--bg-2); }
.cp-table tbody tr:last-child td { border-bottom:0; }
.cp-table .num { text-align:right; font-variant-numeric:tabular-nums; }
.cp-sp { color:var(--muted-2); font-size:11px; }
.cp-link { color:var(--red); cursor:pointer; border-bottom:1px dashed transparent; }
.cp-link:hover { border-bottom-color:var(--red); }
.cp-rate { display:flex; align-items:center; gap:7px; min-width:112px; }
.cp-track { flex:1; height:6px; background:var(--line); border-radius:99px; overflow:hidden; display:block; }
.cp-track i { display:block; height:100%; background:var(--red); border-radius:99px; }
.cp-rate b { font-size:11.5px; font-weight:600; min-width:40px; text-align:right; font-variant-numeric:tabular-nums; }
.cp-chip { display:inline-block; min-width:28px; padding:2px 7px; border-radius:5px;
  background:var(--bg-2); color:var(--muted); text-align:center; font-size:11px; }
.cp-chip.on { background:var(--red-soft); color:var(--red); font-weight:700; }
.cp-flag { color:var(--red); font-weight:600; }
.cp-pill { display:inline-block; padding:2px 7px; border-radius:99px; font-size:10.5px; font-weight:600; white-space:nowrap; }
.cp-pill.done { background:var(--red); color:#fff; }
.cp-pill.mid { background:var(--bg-2); color:var(--ink-2); }
.cp-pill.none { background:var(--bg-2); color:var(--muted-2); }
.cp-pill.fail { background:var(--card); color:var(--red); border:1px solid var(--red); }
.cp-pill.must { background:var(--red-soft); color:var(--red); border:1px solid rgba(229,0,18,.24); }
.cp-pill.opt { background:var(--card); color:var(--muted); border:1px solid var(--line); }
.cp-filters { display:flex; gap:9px; align-items:center; flex-wrap:wrap; padding:12px 14px; border-bottom:1px solid var(--line); }
.cp-filters .input { width:auto; min-width:118px; height:32px; font-size:12.5px; padding:0 10px; }
.cp-filters #cpQ { min-width:180px; }
.cp-count { margin-left:auto; font-size:12px; color:var(--muted); }
.cp-empty { text-align:center; color:var(--muted-2); padding:28px !important; }
.cp-pager { display:flex; gap:8px; align-items:center; padding:11px 14px; border-top:1px solid var(--line); }
.cp-pager span { margin-right:auto; font-size:12px; color:var(--muted); }
.cp-pager .btn { height:29px; padding:0 11px; font-size:12px; }
.cp-pager .btn:disabled { opacity:.45; cursor:default; }
.cp-foot { text-align:center; color:var(--muted-2); font-size:11.5px; line-height:1.8; margin:20px 0 6px; }
.cp-dialog { max-width:560px; }
.cp-dialog .dialog-body { padding:16px 20px 20px; }
.cp-mcard { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:11px 13px; margin-bottom:9px; }
.cp-mcard .t { display:flex; justify-content:space-between; align-items:baseline; font-size:13px; font-weight:700; }
.cp-mcard .row { display:flex; justify-content:space-between; font-size:11.5px; color:var(--muted); margin-top:5px; }
.cp-mcard .cp-track { margin-top:7px; height:5px; }
.cp-profile-rows { margin-top:12px; border-top:1px solid var(--line); }
.cp-profile-rows > div { display:flex; justify-content:space-between; gap:12px; padding:7px 0;
  border-bottom:1px solid var(--line-2); font-size:12px; }
.cp-profile-rows span { color:var(--muted); }
@media (max-width:1180px){ .cp-cards{grid-template-columns:repeat(4,1fr);} }
@media (max-width:640px){ .cp-cards{grid-template-columns:repeat(2,1fr);} }

/* ---------------------------------------------------------------- 用户账号列表
   630+ 账号：操作列四个按钮必须同一行，其余列收紧、行高统一。
   操作列用 width:1% + nowrap 让浏览器按按钮实际宽度给列，剩余宽度分给其他列，
   避免再出现「删除」被挤到第二行。 */
.u-toolbar { margin-bottom: 14px; }
.u-card .card-head { gap: 14px; }
.u-head-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.u-size { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.u-size select {
  height: 28px; padding: 0 6px; font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); cursor: pointer;
}
.u-tbl { min-width: 1080px; }
.u-tbl td { padding: 7px 10px; }
.u-tbl tbody tr { height: 46px; }
.u-tbl th.acts, .u-tbl td.acts { width: 1%; white-space: nowrap; text-align: right; }
.u-tbl td.acts .row-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.u-tbl td.acts .btn { height: 28px; padding: 0 10px; font-size: 12px; }
.u-tbl .u-last { white-space: nowrap; line-height: 1.45; }
.u-pager { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .u-head-right { gap: 8px; } }
.u-tbl td.u-emp { line-height: 1.4; }
.u-tbl td.u-emp b { font-weight: 600; }
.u-emp-todo { color: var(--amber); font-size: 11.5px; }

/* ---------- 企业微信通讯录同步（员工名册 → 从企微同步） ---------- */
.ws-src { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.ws-src-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--card); }
.ws-src-card.off { background: var(--bg-2); }
.ws-src-card > b { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.ws-src-card .small { display: block; line-height: 1.65; margin-bottom: 12px; color: var(--muted); }
.ws-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.ws-stat { font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--card); }
.ws-stat b { color: var(--ink); font-weight: 500; margin-left: 2px; }
.ws-stat.hot { border-color: var(--red); color: var(--red); }
.ws-stat.hot b { color: var(--red); }
.ws-stat.muted { background: var(--bg-2); }
.ws-group { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; background: var(--card); }
.ws-group-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ws-group-head b { font-size: 13px; color: var(--ink); }
.ws-group-head em { font-style: normal; color: var(--red); margin-left: 4px; }
.ws-list { max-height: 260px; overflow: auto; }
.ws-row { display: grid; grid-template-columns: 20px 92px 108px 110px 100px 76px; gap: 4px 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line-2); font-size: 12px; cursor: pointer; }
.ws-row:last-child { border-bottom: 0; }
.ws-row:hover { background: var(--bg-2); }
.ws-row.lock { cursor: default; background: var(--bg-2); }
.ws-row input { margin: 0; }
.ws-box { width: 13px; height: 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); }
.ws-name { font-weight: 500; color: var(--ink); }
.ws-mono { font-family: var(--mono); color: var(--muted); }
.ws-dept, .ws-pos { color: var(--ink-2); }
.ws-role { color: var(--red); font-size: 11px; }
.ws-why { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.5; white-space: normal; }
.ws-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 6px; }
.ws-foot { margin-right: auto; color: var(--muted); align-self: center; }
@media (max-width: 760px) {
  .ws-src { grid-template-columns: 1fr; }
  .ws-row { grid-template-columns: 20px 1fr 1fr; row-gap: 2px; }
  .ws-why { grid-column: 1 / -1; }
}

/* 分部门学时：来源分段图例（红＝自主组织 / 深灰＝公司级分摊 / 浅灰＝他部门组织参训） */
.ch-legend { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ch-legend span { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--muted-2); }
.ch-legend i { width:10px; height:10px; border-radius:2px; display:inline-block; }
.si-rec-head { flex-wrap: wrap; row-gap: 6px; }
.si-rec-head > b { white-space: nowrap; }

/* 培训方式构成（2026-12-02）：原卡片下半截一大片空，环形图只有 210。
   宽卡片→环形图长到 280 + 图例右侧铺开；窄卡片（≤1500）→ 上下堆叠，图例吃满整宽。 */
.mk-donut { flex:1 1 200px; min-width:0; max-width:280px; display:flex; align-items:center; justify-content:center; }
.mk-legend { flex:1 1 168px; min-width:0; max-width:340px; }
@media (max-width: 1500px) {
  .mk-card .card-body { flex-direction: column; gap: 8px; justify-content: center; }
  .mk-donut { flex: 0 0 auto; width: 100%; max-width: 210px; }
  .mk-legend { flex: 1 1 auto; width: 100%; max-width: 100%; }
}

/* 客户及售后培训：按客户拆分（2026-12-02）。客户名是业务数据，不加 data-i18n-no 会被词库误译。 */
.sp-custs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-2); }
.sp-custs-lb { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
.sp-cust { display: inline-flex; align-items: baseline; gap: 3px; font-size: 11.5px; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-cust b { color: var(--red); font-weight: 600; }
.sp-cust i { font-style: normal; color: var(--muted); font-size: 10.5px; }
