/* web/css/mentor.css —— 传帮带（mentor）模块样式（Apple 风）。
 *
 * 设计口径（技术方案 §6.2 / §6.3 / UAT C-4 的 390px 硬约束）：
 *   · 390px 首屏：overflow-x:hidden；三线进度三列 grid 不换行；tab 条横滑且不撑破容器；
 *     可点按钮 ≥44×44；节点行标题 text-overflow:ellipsis 不折行。
 *   · Apple 风：主色 #0071e3；1px 发丝线（rgba(0,0,0,.06)）；胶囊圆角 999px；
 *     字体 PingFang SC；卡片白底 + 极淡阴影。
 *   · §6.5 边界：**复用 .learn-card 的 CSS 类**（web/css/v44.css:3025，卡片外观一致），
 *     但**不复用 learn.js 的渲染函数** —— 那套带"我的必学 / AI 问答"语义，混入进度会互相污染。
 *     本文件只放 mentor 自己的类，前缀统一 mnt-。
 */

/* ── 0) 页面骨架 ─────────────────────────────────────────────────────────── */
.mnt-home {
  overflow-x: hidden;                 /* ★ C-4：390px 不许出现横向滚动 */
  max-width: 100%;
  padding: 0 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
}
.mnt-hd {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);   /* 1px 发丝线 */
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(20px);
  position: sticky; top: 0; z-index: 5;
}
.mnt-hd .t { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.mnt-hd .s { font-size: 12px; color: #86868b; }
.mnt-empty { padding: 32px 16px; text-align: center; color: #86868b; font-size: 13px; }

/* ── 1) 倒计时卡（72px）──────────────────────────────────────────────────── */
.mnt-countdown {
  margin: 12px; padding: 12px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid rgba(0, 113, 227, .14);
  border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
}
.mnt-countdown .days {
  min-width: 56px; text-align: center;
  font-size: 26px; font-weight: 700; color: #0071e3; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.mnt-countdown .days small { display: block; font-size: 11px; font-weight: 500; color: #86868b; }
.mnt-countdown .meta { flex: 1; min-width: 0; }
.mnt-countdown .meta .n {
  font-size: 13px; font-weight: 600; color: #1d1d1f;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mnt-countdown .meta .d { font-size: 11px; color: #86868b; margin-top: 2px; }
.mnt-countdown.over .days { color: #ff3b30; }
.mnt-countdown.over .meta .n { color: #ff3b30; }

/* ── 2) 三线进度（88px；三列 grid 绝不换行）──────────────────────────────── */
.mnt-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* ★ C-4/D-02：三列同行，不许 wrap */
  gap: 8px; margin: 0 12px;
}
.mnt-line {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 14px;
  padding: 10px 8px; text-align: center; min-width: 0;
}
.mnt-line .k { font-size: 11px; color: #86868b; }
.mnt-line .v {
  font-size: 15px; font-weight: 700; margin-top: 2px;
  font-variant-numeric: tabular-nums; color: #1d1d1f;
}
.mnt-line .v b { color: #0071e3; font-weight: 700; }
.mnt-line .bar {
  height: 4px; border-radius: 999px; background: #eceef1; margin-top: 6px; overflow: hidden;
}
.mnt-line .bar i {
  display: block; height: 100%; border-radius: 999px; background: #0071e3;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.mnt-line.done .bar i { background: #34c759; }
.mnt-line .u { font-size: 10px; color: #aeaeb2; margin-top: 4px; }

/* ── 3) tab 条（44px，横滑不撑破容器）───────────────────────────────────── */
.mnt-tabs {
  display: flex; gap: 6px; padding: 12px 12px 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mnt-tabs::-webkit-scrollbar { display: none; }        /* D-03：隐藏滚动条 */
.mnt-tab {
  flex: 0 0 auto; min-height: 32px; padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 999px;   /* 胶囊 */
  background: #fff; color: #1d1d1f; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.mnt-tab.on { background: #0071e3; border-color: #0071e3; color: #fff; }
.mnt-tab .badge {
  display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 4px;
  border-radius: 999px; background: #ff3b30; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center;
}
.mnt-panel { padding: 8px 12px 0; }

/* ── 4) 待办 / 节点行（单行 56px，标题截断不折行）────────────────────────── */
.mnt-sec { margin: 14px 12px 6px; display: flex; align-items: baseline; justify-content: space-between; }
.mnt-sec .t { font-size: 15px; font-weight: 600; }
.mnt-sec .n { font-size: 11px; color: #86868b; }
.mnt-sec-action { flex: none; margin-left: 8px; }
.mnt-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 12px;
  background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.mnt-row:first-of-type { border-top: 1px solid rgba(0, 0, 0, .06); border-radius: 12px 12px 0 0; }
.mnt-row:last-of-type { border-radius: 0 0 12px 12px; }
.mnt-row .dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; background: #d2d2d7;
}
.mnt-row .dot.todo { background: #0071e3; }
.mnt-row .dot.passed { background: #34c759; }
.mnt-row .dot.rejected { background: #ff3b30; }
.mnt-row .dot.overdue, .mnt-row .dot.over { background: #ff9500; }
.mnt-row .main { flex: 1; min-width: 0; }
.mnt-row .main .t {
  font-size: 13px; font-weight: 500; color: #1d1d1f;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;   /* ★ C-4 */
}
.mnt-row .main .d { font-size: 11px; color: #86868b; margin-top: 2px; }
.mnt-row .main .d.warn { color: #ff9500; }
.mnt-row .main .d.bad { color: #ff3b30; }
.mnt-row .go { flex: 0 0 auto; }

/* ── 5) 按钮（最小 44×44）───────────────────────────────────────────────── */
.mnt-btn {
  min-width: 44px; min-height: 44px; padding: 0 16px;
  border: none; border-radius: 999px;                 /* 胶囊 */
  background: #0071e3; color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s ease, opacity .15s ease;
}
.mnt-btn:active { transform: scale(.97); opacity: .9; }
.mnt-btn.ghost { background: #f2f4f7; color: #0071e3; }
.mnt-btn.line { background: #fff; color: #0071e3; border: 1px solid rgba(0, 113, 227, .35); }
.mnt-btn[disabled] { background: #e8e8ed; color: #aeaeb2; cursor: not-allowed; }
.mnt-btn.sm { min-height: 32px; min-width: 32px; padding: 0 12px; font-size: 12px; }

/* ── 5.5) 建档表单（Apple 商务风；.mnt-sub 标签 + 控件）────────────────────── */
.mnt-sub {
  display: block;
  font-size: 13px; font-weight: 600; color: #1d1d1f; margin: 0 0 6px;
}
.mnt-sub input, .mnt-sub select {
  width: 100%; height: 44px; border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 12px; padding: 0 14px; font-size: 15px;
  background: #fff; color: #1d1d1f; outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-appearance: none; appearance: none;
}
.mnt-sub input:focus, .mnt-sub select:focus {
  border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .15);
}
/* 建档表单卡片（仅作用于表单，不影响其它 learn-card 用途） */
.mnt-card.learn-card.mnt-form {
  padding: 16px; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06); gap: 14px;
  display: flex; flex-direction: column;
}
/* 人员选择行：只读显示 + 选择按钮 */
.mnt-pickrow { display: flex; align-items: center; gap: 8px; }
.mnt-pickval {
  flex: 1; min-width: 0; height: 44px; display: flex; align-items: center;
  padding: 0 14px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px;
  background: #fff; color: #1d1d1f; font-size: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mnt-pickval.placeholder { color: #aeaeb2; }

/* ── 5.6) 人员选择弹窗（.mnt-picker）────────────────────────────────────── */
.mnt-picker {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .4);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
.mnt-picker .sheet {
  width: min(92vw, 420px); max-height: 80vh; background: #fff;
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}
.mnt-picker .ph {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: 15px; font-weight: 600; color: #1d1d1f;
}
.mnt-picker .ph .x {
  width: 32px; height: 32px; border: none; border-radius: 999px;
  background: #f2f4f7; color: #1d1d1f; font-size: 16px; cursor: pointer;
}
.mnt-picker .search { padding: 10px 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.mnt-picker .search input {
  width: 100%; height: 40px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px;
  padding: 0 12px; font-size: 15px; outline: none; font-family: inherit;
}
.mnt-picker .search input:focus { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .15); }
.mnt-picker .list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0; }
.mnt-picker .row {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  cursor: pointer; border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.mnt-picker .row:active { background: #f5f5f7; }
.mnt-picker .row .nm { font-size: 14px; font-weight: 500; color: #1d1d1f; }
.mnt-picker .row .rl { font-size: 12px; color: #86868b; margin-left: auto; }
.mnt-picker .empty { padding: 24px 16px; text-align: center; color: #86868b; font-size: 13px; }
/* ── 5.6b) 新建带教档案弹窗 ───────────────────────────────────────────── */
.mnt-newarc-sheet { width: min(94vw, 460px); }
.mnt-newarc-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 8px 12px; }

/* ── 6) 卡片（复用 .learn-card 的外观语义，见 web/css/v44.css:3025）───────── */
.mnt-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 12px; }
.mnt-card.learn-card { gap: 8px; }
.mnt-card .t {
  font-size: 13px; font-weight: 600; color: #1d1d1f;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mnt-card .sub { font-size: 11px; color: #86868b; }
.mnt-card .ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mnt-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: #f2f4f7; color: #48484a; font-size: 10px; font-weight: 500;
}
.mnt-chip.req { background: rgba(0, 113, 227, .1); color: #0071e3; }
.mnt-chip.opt { background: #f2f4f7; color: #86868b; }
.mnt-chip.done { background: rgba(52, 199, 89, .12); color: #248a3d; }
.mnt-chip.warn { background: rgba(255, 149, 0, .12); color: #c93400; }

/* ── 7) 阅读器（C1，§6.3）───────────────────────────────────────────────── */
.mnt-reader {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column; background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
.mnt-reader .rd-hd {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(20px);
}
.mnt-reader .rd-hd .t {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mnt-reader .rd-hd .seg { font-size: 12px; color: #0071e3; font-variant-numeric: tabular-nums; }
.mnt-reader .rd-close {
  width: 44px; height: 44px; border: none; border-radius: 999px;
  background: #f2f4f7; color: #1d1d1f; font-size: 18px; cursor: pointer;
}
/* ── 7a) 全屏 / 退出全屏（单按钮 + 沉浸态；.rd-fs 为状态单一真相）──────── */
.mnt-reader .rd-fs-btn {
  min-width: 84px; height: 44px; padding: 0 12px;
  border: none; border-radius: 999px;                  /* 胶囊，与 .rd-close 同款 */
  background: #f2f4f7; color: #1d1d1f; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.mnt-reader .rd-fs-btn:hover { background: #0071e3; color: #fff; }
.mnt-reader .rd-fs-btn:active { transform: scale(.97); }
/* 原生全屏时确保铺满整个屏幕（隐藏地址栏 / 企业微信顶栏后的可用区域） */
.mnt-reader:fullscreen, .mnt-reader:-webkit-full-screen {
  inset: 0; width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0;
}
/* 沉浸态只收起底部动作栏（约 105px 还给 PDF）；★ .rd-hd 必须保留 —— 全屏/关闭出口在里面，
   隐藏了就没有退出入口会卡死。.mnt-reader 本身已是满视口，故这里不做「放大对话框」。 */
.mnt-reader.rd-fs .rd-ft { display: none; }
@media (max-width: 480px) {
  .mnt-reader .rd-fs-btn { min-width: 0; padding: 0 10px; font-size: 11px; }
}
.mnt-reader .rd-body { flex: 1; min-height: 0; position: relative; background: #fff; }
.mnt-reader .rd-body iframe {
  width: 100%; height: 100%; border: 0; display: block; background: #fff;
}
/* ★ 文件空白排查（2026-11-15 续）：预览区顶部固定提示 + 直达链接，确保空白时也能打开原文件 */
.mnt-reader .rd-pdfnotice {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin: 0; background: #fff8e6; border-bottom: 1px solid #ffe2a8;
  font-size: 13px; color: #8a5a00;
}
.mnt-reader .rd-pdfnotice .tx { flex: 1 1 auto; min-width: 120px; }
.mnt-reader .rd-pdfnotice-open {
  flex: none; padding: 7px 14px; border-radius: 999px; background: #0071e3; color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.mnt-reader .rd-pdfnotice-open:active { background: #005bbf; }
/* ★ PDF 内嵌降级卡片（无 viewer 环境）：文字版正文 + 打开/下载，杜绝空白 iframe */
.mnt-reader .rd-filecard {
  height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 20px 18px 32px; box-sizing: border-box; background: #fff;
}
.mnt-reader .rd-filecard .fc-hd { display: flex; align-items: flex-start; gap: 10px; }
.mnt-reader .rd-filecard .fc-ic {
  flex: none; margin-top: 2px; padding: 3px 8px; border-radius: 6px;
  background: #ffe9e7; color: #d70015; font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.mnt-reader .rd-filecard .fc-tt { font-size: 15px; font-weight: 600; color: #1d1d1f; line-height: 1.45; }
.mnt-reader .rd-filecard .fc-tip {
  margin: 12px 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #f2f7ff; color: #3b5b8c; font-size: 13px; line-height: 1.6;
}
.mnt-reader .rd-filecard .fc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mnt-reader .rd-filecard .fc-text-label { font-size: 12px; color: #86868b; margin: 6px 0; }
.mnt-reader .rd-filecard .fc-text {
  white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.75;
  color: #1d1d1f; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 12px; background: #fcfcfd;
}
.mnt-reader .rd-filecard .fc-note { font-size: 13px; color: #86868b; padding: 12px 0; line-height: 1.6; }
/* 分屏文本渲染：一屏一个 section，IntersectionObserver 埋点 */
.mnt-reader .rd-text { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mnt-reader .rd-screen {
  padding: 16px 16px 40vh;                  /* 底部留一屏，保证"滚到底"可判定 */
  font-size: 15px; line-height: 1.75; color: #1d1d1f;
}
.mnt-reader .rd-screen.seen { background: rgba(0, 113, 227, .03); }
.mnt-reader .rd-screen .sn { font-size: 11px; color: #aeaeb2; margin-bottom: 8px; }
.mnt-reader .rd-img { height: 100%; display: flex; align-items: center; justify-content: center; background: #000; }
.mnt-reader .rd-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mnt-reader .rd-ft {
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(20px);
}
.mnt-reader .rd-status { font-size: 11px; color: #86868b; margin-bottom: 8px; }
.mnt-reader .rd-status b { color: #0071e3; font-variant-numeric: tabular-nums; }
.mnt-reader .rd-bar { height: 4px; border-radius: 999px; background: #eceef1; overflow: hidden; margin-bottom: 10px; }
.mnt-reader .rd-bar i { display: block; height: 100%; background: #0071e3; border-radius: 999px; transition: width .3s; }
.mnt-reader .rd-acts { display: flex; align-items: center; gap: 8px; }
.mnt-reader .rd-acts .sp { flex: 1; }
.mnt-reader .rd-hint {
  margin-top: 8px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 149, 0, .08); color: #8a4b00; font-size: 11px; line-height: 1.5;
}
.mnt-reader .rd-busy {
  position: absolute; inset: 0; z-index: 3; display: none;
  align-items: center; justify-content: center; text-align: center;
  background: rgba(245, 245, 247, .92); color: #1d1d1f; font-size: 13px; padding: 24px;
}
.mnt-reader .rd-busy.on { display: flex; }
.mnt-reader .rd-busy .box { max-width: 260px; }
.mnt-reader .rd-busy .box b { display: block; margin-bottom: 8px; font-size: 15px; }

/* 手机端：段推进 + 显式确认（§5.4 / R-08）*/
.mnt-reader.mobile .rd-acts .mnt-btn { min-height: 48px; }
@media (max-width: 480px) {
  .mnt-home { padding-bottom: 32px; }
  .mnt-cards { grid-template-columns: 1fr; }
  .mnt-reader .rd-acts { gap: 6px; }
  .mnt-reader .rd-acts .mnt-btn { flex: 1; min-height: 48px; padding: 0 10px; font-size: 12px; }
}

/* 骨架屏加载态（替代裸「加载中…」） */
.mnt-loading { padding: 28px 20px; display: flex; flex-direction: column; gap: 12px; }
.mnt-loading-cap { font-size: 13px; line-height: 1.4; color: #86868b; text-align: center; margin-top: 4px; }
.mnt-skel { border-radius: 10px; background: linear-gradient(90deg, #ececec 25%, #f5f5f7 37%, #ececec 63%); background-size: 400% 100%; animation: mnt-shimmer 1.4s ease infinite; }
.mnt-skel-card { height: 56px; }
.mnt-skel-line { height: 14px; }
.mnt-skel-short { width: 60%; align-self: center; }
@keyframes mnt-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ══════════════════════════════════════════════════════════════════════════
 * 上岗流程清单（mentor-onboarding.js；Apple 风，复用 mnt- 调色板）
 *   #0071e3 蓝 / #34c759 绿（合格/完成）/ #ff9500 橙（未解锁/待考）/ #ff3b30 红（补考）
 *   1px 发丝线 rgba(0,0,0,.06)；胶囊圆角；卡片白底 + 极淡阴影。
 * ══════════════════════════════════════════════════════════════════════════ */
.mnt-ob { margin: 12px 12px 0; }
.mnt-ob-hd { padding: 14px 16px; background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
  border: 1px solid rgba(0, 113, 227, .14); border-radius: 16px; }
.mnt-ob-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mnt-ob-tag { font-size: 11.5px; color: #86868b; margin-top: 4px; line-height: 1.6; }
.mnt-ob-sub { font-size: 12px; color: #86868b; margin-top: 3px; }
.mnt-ob-mode { display: inline-block; margin-top: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.mnt-ob-mode.ed { background: rgba(52, 199, 89, .12); color: #248a3d; }
.mnt-ob-mode.ro { background: rgba(0, 113, 227, .1); color: #0071e3; }
.mnt-ob-tools { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mnt-ob-btn { min-height: 32px; padding: 0 14px; border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px; background: #fff; color: #1d1d1f; font-size: 12px; font-weight: 500; cursor: pointer; }
.mnt-ob-btn:active { transform: scale(.97); }
.mnt-ob-btn.primary { background: #0071e3; border-color: #0071e3; color: #fff; }

/* ── 学员档案条（问题9 v2：通栏浅蓝一行 + 修改档案）─────────────────────── */
.mnt-ob-staffbar {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(180deg, #eef5ff 0%, #e6f0fe 100%);
  border: 1px solid rgba(0, 113, 227, .18);
}
.mnt-ob-staffbar .sb-txt { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.7; color: #1d1d1f; }
.mnt-ob-staffbar .sb-txt b { font-weight: 700; }
.mnt-ob-staffbar .sb-k { color: #0071e3; font-weight: 700; }
.mnt-ob-staffbar .sb-txt i { font-style: normal; color: #a9c8ea; margin: 0 5px; }
.mnt-ob-staffbar .sb-btn { flex: 0 0 auto; background: #fff; color: #0071e3;
  border-color: rgba(0, 113, 227, .35); }

/* ── 主卡片（问题9 v2：岗位/姓名/带教只读 + 按钮 + 数字块 + 进度块）──────── */
.mnt-ob-main {
  margin-top: 12px; padding: 14px 16px; background: #fff;
  border: 1px solid rgba(0, 0, 0, .08); border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.mnt-ob-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mnt-ob-fields .fl { font-size: 11px; color: #86868b; margin-bottom: 4px; }
.mnt-ob-fields .fv {
  font-size: 13.5px; font-weight: 600; color: #1d1d1f; padding: 7px 10px;
  background: #f7f9fc; border: 1px solid rgba(0, 0, 0, .06); border-radius: 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── 分节标题行（左标题 + 右侧小字：岗位码 / 计划书来源 / 数量口径）──────── */
.mnt-ob-secrow { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.mnt-ob-secrow .mnt-ob-sect { margin: 0; }
.mnt-ob-secrt { font-size: 11px; color: #86868b; line-height: 1.5; }

.mnt-ob-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mnt-ob-stat { background: rgba(0, 113, 227, .06); border-radius: 12px; padding: 10px 8px; text-align: center; }
.mnt-ob-stat .n { font-size: 20px; font-weight: 700; color: #0071e3; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mnt-ob-stat .l { font-size: 11px; color: #86868b; margin-top: 2px; }

.mnt-ob-pbox { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(0, 113, 227, .14);
  border-radius: 14px; background: linear-gradient(180deg, #f4f9fe, #fff); }
.mnt-ob-pbox.full { border-color: #34c759; background: linear-gradient(180deg, #e9f9f3, #fff); }
.mnt-ob-pnum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mnt-ob-pnum b { font-size: 26px; font-weight: 700; color: #0071e3; line-height: 1; }
.mnt-ob-pbox.full .mnt-ob-pnum b { color: #248a3d; }
.mnt-ob-pnum .tot { font-size: 13px; color: #86868b; }
.mnt-ob-pnum .pct { margin-left: auto; font-size: 16px; font-weight: 700; color: #248a3d;
  background: rgba(52, 199, 89, .12); border-radius: 8px; padding: 2px 12px; }
.mnt-ob-pbar { height: 14px; background: #eceef1; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.mnt-ob-pbar.sm { height: 8px; margin-top: 6px; box-shadow: none; }
.mnt-ob-pbar i { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #2fa98a, #0f6e56); transition: width .45s; }
.mnt-ob-ptext { font-size: 11px; color: #86868b; margin-top: 8px; line-height: 1.5; }

/* ── 三定位卡（问题9 v2：已完成/应完成 + 百分比 + 进度条 + 点击定位）─────── */
.mnt-ob-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mnt-ob-pill {
  background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 12px; padding: 10px 12px;
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.mnt-ob-pill:hover { border-color: rgba(0, 113, 227, .4); box-shadow: 0 1px 6px rgba(0, 113, 227, .1); }
.mnt-ob-pill:active { transform: scale(.99); }
.mnt-ob-pill.done { border-color: rgba(52, 199, 89, .45); background: #f6fdf9; }
.mnt-ob-pill { min-width: 0; }
.mnt-ob-pill .ph {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 6px;
  font-size: 11px; color: #1d1d1f; flex-wrap: wrap;
}
.mnt-ob-pill .ph .nm { font-weight: 600; line-height: 1.4; min-width: 0; flex: 1 1 auto; }
.mnt-ob-pill .ph .loc { font-style: normal; font-size: 10px; color: #0071e3; margin-left: 6px; white-space: nowrap; }
.mnt-ob-pill .cq { flex: 0 0 auto; text-align: right; }
.mnt-ob-pill .cq em { display: block; font-style: normal; font-size: 9.5px; color: #aeaeb2; line-height: 1.4; }
.mnt-ob-pill .cq b { font-size: 12px; color: #0071e3; font-variant-numeric: tabular-nums; }
.mnt-ob-pill .pv { font-size: 18px; font-weight: 700; color: #1d1d1f; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mnt-ob-pill.done .pv { color: #248a3d; }

/* 定位落点高亮（1.8s，与 flashHL 同步） */
#obTabBody { scroll-margin-top: 64px; }
@keyframes mnt-ob-flash {
  0%, 55% { box-shadow: 0 0 0 2px rgba(0, 113, 227, .5); background: rgba(0, 113, 227, .07); }
  100% { box-shadow: none; background: transparent; }
}
.mnt-ob-flash { animation: mnt-ob-flash 1.8s ease-out; border-radius: 12px; }

/* 窄屏：三定位卡不挤压（单项全宽），四个数字块两列，避免 390px 横向溢出 */
@media (max-width: 480px) {
  .mnt-ob-fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mnt-ob-hud { grid-template-columns: minmax(0, 1fr); }
  .mnt-ob-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .mnt-ob-stat .n { font-size: 18px; }
  .mnt-ob-staffbar { flex-wrap: wrap; }
  .mnt-ob-staffbar .sb-btn { margin-left: auto; }
}

.mnt-ob-sec { margin-top: 18px; }
.mnt-ob-sect { font-size: 14px; font-weight: 600; margin: 0 0 10px; padding-left: 10px;
  border-left: 4px solid #0071e3; }

/* 阶段折叠卡 */
.mnt-ob-stage { border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.mnt-ob-stage.key { border-color: #ff9500; }
.mnt-ob-stage .sh { display: flex; gap: 12px; padding: 12px 14px; cursor: pointer; align-items: center; user-select: none; }
.mnt-ob-stage .sno { flex: 0 0 80px; text-align: center; background: rgba(0, 113, 227, .12); color: #0071e3;
  border-radius: 8px; padding: 6px 4px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.mnt-ob-stage.key .sno { background: #ff9500; color: #fff; }
.mnt-ob-stage .stmain { flex: 1; min-width: 0; }
.mnt-ob-stage .stmain .tt { font-size: 14px; font-weight: 600; }
.mnt-ob-stage .sgoal { flex: 0 0 auto; font-size: 11px; color: #0071e3; background: rgba(0, 113, 227, .08);
  border-radius: 6px; padding: 4px 10px; }
.mnt-ob-stage.key .sgoal { color: #8a4b00; background: rgba(255, 149, 0, .14); }
.mnt-ob-stage .sbody { padding: 2px 14px 12px; border-top: 1px dashed rgba(0, 0, 0, .08); display: none; }
.mnt-ob-stage.open .sbody { display: block; }
.mnt-ob-stage .cat { margin-top: 12px; }
.mnt-ob-stage .ch { font-size: 12px; font-weight: 600; color: #1d1d1f; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.mnt-ob-stage .dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; }
.mnt-ob-stage .dot.d { background: #0071e3; } .mnt-ob-stage .dot.l { background: #34c759; }
.mnt-ob-stage .dot.k { background: #ff3b30; } .mnt-ob-stage .dot.j { background: #ff9500; }
.mnt-ob-li { list-style: none; margin: 0; padding: 0; }
.mnt-ob-li li { display: flex; gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 13px; align-items: flex-start; }
.mnt-ob-li li:hover { background: #f7f7f9; }
.mnt-ob-li li.done .tx { color: #86868b; text-decoration: line-through; }
.mnt-ob-li .ci { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.mnt-ob-li input { margin: 3px 0 0; flex: 0 0 auto; width: 16px; height: 16px; accent-color: #34c759; cursor: pointer; }
.mnt-ob-li .tx { flex: 1; min-width: 0; line-height: 1.5; }
.mnt-ob-li .who { font-size: 11px; color: #0071e3; background: rgba(0, 113, 227, .08); border-radius: 4px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }
.mnt-ob-li .who.o { color: #86868b; background: #f1efea; }
.mnt-ob-li .fx { display: block; font-size: 11px; color: #86868b; margin-top: 2px; }

/* ── 第一部分：周 / 月折叠分组（岗位学习流程）────────────────────────── */
.ob-month { border: 1px solid rgba(0, 113, 227, .18); border-radius: 14px;
  background: rgba(0, 113, 227, .035); margin-bottom: 12px; overflow: hidden; }
.ob-month.done { border-color: rgba(52, 199, 89, .35); background: rgba(52, 199, 89, .045); }
.ob-month-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; cursor: pointer; user-select: none; }
.ob-mcaret { display: inline-block; color: #0071e3; font-size: 12px;
  transition: transform .18s ease; transform: rotate(0deg); }
.ob-month.collapsed .ob-mcaret { transform: rotate(-90deg); }
.ob-mtitle { font-size: 14px; font-weight: 600; color: #1d1d1f; }
.ob-mstat { font-size: 11.5px; color: #86868b; }
.ob-mtag { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ob-mtag.done { color: #248a3d; background: rgba(52, 199, 89, .14); }
.ob-mhint { margin-left: auto; font-size: 11px; color: #0071e3; white-space: nowrap; }
.ob-month-body { padding: 0 10px 10px; }
.mnt-ob-stage .stmain .spr { margin-top: 3px; font-size: 11px; color: #86868b; font-weight: 500; }
.mnt-ob-stage.stage-done .stmain .spr { color: #248a3d; }

/* ── 第一部分 extras：大项 / 分类两级折叠（参考周 / 月分组）────────────── */
.ob-extra { border: 1px solid rgba(0, 113, 227, .18); border-radius: 14px;
  background: rgba(0, 113, 227, .035); margin: 16px 0 12px; overflow: hidden; }
.ob-extra.done { border-color: rgba(52, 199, 89, .35); background: rgba(52, 199, 89, .045); }
.ob-extra-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 14px; cursor: pointer; user-select: none; }
.ob-ecaret { display: inline-block; color: #0071e3; font-size: 12px;
  transition: transform .18s ease; transform: rotate(0deg); }
.ob-extra.collapsed .ob-ecaret { transform: rotate(-90deg); }
.ob-extra-title { font-size: 14px; font-weight: 600; color: #1d1d1f; }
.ob-estat { font-size: 11.5px; color: #86868b; }
.ob-etag { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.ob-etag.done { color: #248a3d; background: rgba(52, 199, 89, .14); }
.ob-ehint { margin-left: auto; font-size: 11px; color: #0071e3; white-space: nowrap; }
.ob-extra-body { padding: 2px 10px 10px; }

/* 标签切换 */
.mnt-ob-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.mnt-ob-tab { flex: 0 0 auto; font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .1);
  background: #fff; color: #1d1d1f; font-weight: 500; cursor: pointer; }
.mnt-ob-tab.on { background: #0071e3; border-color: #0071e3; color: #fff; }

/* 通用表格（课件/制度/考试/材料） */
.mnt-ob-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mnt-ob-tbl th, .mnt-ob-tbl td { border: 1px solid rgba(0, 0, 0, .08); padding: 7px 10px; text-align: left; vertical-align: top; }
.mnt-ob-tbl th { background: #f2f4f7; font-weight: 600; font-size: 12px; white-space: nowrap; }
.mnt-ob-tbl tr:nth-child(even) td { background: #fcfcfb; }
.mnt-ob-tbl tr.done td { color: #86868b; }
.mnt-ob-tbl tr.done td:nth-child(2) { text-decoration: line-through; }
.mnt-ob-tbl tr.locked td { color: #b8b6ae; }
.mnt-ob-tbl input[type=checkbox] { width: 16px; height: 16px; accent-color: #34c759; cursor: pointer; margin: 0; vertical-align: middle; }
.mnt-ob-tbl .score { width: 60px; font-size: 12.5px; padding: 3px 6px; border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px; text-align: center; color: #1d1d1f; }
.mnt-ob-tbl .score.ok { border-color: #34c759; color: #248a3d; font-weight: 700; }
.mnt-ob-tbl .score.bad { border-color: #d4537e; color: #a32d2d; font-weight: 700; }
.mnt-ob-tbl .lockmsg { font-size: 11px; color: #a32d2d; margin-top: 2px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 5px; white-space: nowrap; }
.tag.r { background: rgba(163, 45, 45, .1); color: #a32d2d; }
.tag.o { background: #f1efea; color: #86868b; }
.tag.p { background: rgba(52, 199, 89, .14); color: #248a3d; }

.mnt-ob-note { font-size: 11.5px; color: #86868b; background: #f1efea; border-radius: 8px; padding: 10px 14px; margin-top: 14px; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════════════
 * 打印 / 存 PDF（问题9：主卡片「打印 / 存 PDF」按钮，window.print()）
 *   只保留看板内容：隐藏导航条、页签按钮、操作按钮、上传控件与阅读器；
 *   阶段卡强制展开，避免打印件缺内容；进度条底色强制输出。
 * ══════════════════════════════════════════════════════════════════════════ */
@media print {
  @page { margin: 10mm; }
  .mnt-hd, .mnt-tabs, .mnt-tab, .mnt-panel > .mnt-sec,
  .mnt-ob-mode, .mnt-ob-tools, .mnt-ob-tabs, .mnt-ob-tab,
  .mnt-ob-staffbar .sb-btn, .mnt-btn, .ds-upload-pick, .pm-act,
  .mnt-picker, .mnt-reader, .mnt-ob-pill .loc { display: none !important; }
  .mnt-home { padding: 0 !important; overflow: visible !important; }
  .mnt-ob-hd, .mnt-ob-main, .mnt-ob-staffbar, .mnt-ob-stage,
  .mnt-ob-pill, .mnt-ob-pbox, .mnt-ob-stat {
    box-shadow: none !important; background: #fff !important;
  }
  .mnt-ob-staffbar { border-color: #9bbde0 !important; }
  .mnt-ob-stage .sbody { display: block !important; }        /* 折叠全部展开 */
  .ob-month-body { display: block !important; }             /* 月组也强制展开 */
  .ob-extra-body { display: block !important; }             /* extras 大项也强制展开 */
  .ob-month-head, .ob-extra-head { cursor: default; }
  .mnt-ob-stage .sh { cursor: default; }
  .mnt-ob-sec, .mnt-ob-stage, .mnt-ob-pill, .mnt-ob-pbox, .mnt-ob-tbl tr { break-inside: avoid; }
  .mnt-ob-pbar i, .mnt-line .bar i, .mnt-ob-stat {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* ── 分节折叠（二、我这个岗位要学什么/考什么）──────────────────────────── */
.mnt-ob-secrow.collapsible { cursor: pointer; user-select: none; }
.mnt-ob-caret { display: inline-block; margin-left: 6px; color: #0071e3; font-size: 11px;
  transition: transform .18s ease; transform: rotate(0deg); }
.mnt-ob-sec.collapsed .mnt-ob-caret { transform: rotate(-90deg); }
.mnt-ob-sec.collapsed .ob-sec-body { display: none; }

/* ── 周期材料：月/周折叠（月报作月头 + 周报归月）────────────────────────── */
.pm-months { display: flex; flex-direction: column; gap: 10px; }
.pm-month { border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; background: #fff; overflow: hidden; }
.pm-month-head, .pm-week-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; cursor: pointer; user-select: none; }
.pm-month-head { background: linear-gradient(180deg, #f4f9fe, #fff); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.pm-month.collapsed > .pm-month-body { display: none; }
.pm-month-body { padding: 4px 12px 12px; }
.pm-monthly-detail { padding: 8px 0 10px; border-bottom: 1px dashed rgba(0, 0, 0, .08); margin-bottom: 8px; }
.pm-week { border: 1px solid rgba(0, 0, 0, .06); border-radius: 10px; margin-top: 8px; overflow: hidden; background: #fcfcfd; }
.pm-week:first-child { margin-top: 0; }
.pm-week.collapsed > .pm-week-body { display: none; }
.pm-week-body { padding: 6px 12px 10px; }
.pm-caret { display: inline-block; color: #0071e3; font-size: 11px; transition: transform .18s ease; transform: rotate(0deg); }
.pm-month.collapsed > .pm-month-head .pm-caret,
.pm-week.collapsed > .pm-week-head .pm-caret { transform: rotate(-90deg); }
/* 已完成分组的额外标记（折叠与否不再由完成态决定，完成态仅作视觉区分） */
.pm-month.pm-done > .pm-month-head .pm-title,
.pm-week.pm-done > .pm-week-head .pm-title { color: #248a3d; }
.pm-month-head .tag.p, .pm-week-head .tag.p { flex: none; }
.pm-title { font-size: 13px; font-weight: 600; color: #1d1d1f; }
.pm-due { font-size: 11px; color: #86868b; }
.pm-weekcount { margin-left: auto; font-size: 11px; color: #248a3d; background: rgba(52, 199, 89, .12);
  border-radius: 8px; padding: 1px 10px; }
.pm-act { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.pm-files { font-size: 12px; color: #1d1d1f; margin-top: 4px; }
.pm-dl { color: #0071e3; text-decoration: none; cursor: pointer; }
.pm-dl:hover { text-decoration: underline; }
.pm-file { display: inline-flex; align-items: center; gap: 4px; }
/* 附件删除：仅未提交/已驳回出现；发丝线胶囊 + 红色警示，点击有确认 */
.pm-file-del { margin-left: 4px; padding: 1px 7px; font-size: 11px; line-height: 1.6;
  color: #d70015; background: #fff; border: 1px solid #f2c9cd; border-radius: 999px;
  cursor: pointer; }
.pm-file-del:hover { background: #fff1f2; border-color: #d70015; }
.pm-orphans { display: flex; flex-direction: column; gap: 8px; }
/* 驳回态标签补全（代码已用 .tag.bad，补齐配色） */
.tag.bad { background: rgba(212, 83, 126, .14); color: #a32d2d; }

/* ── 新建带教档案：默认折叠（点击标题展开）──────────────────────────────── */
.mnt-sec-toggle { cursor: pointer; user-select: none; }
.mnt-sec-caret { margin-left: auto; color: #0071e3; font-size: 12px; transition: transform .18s ease; transform: rotate(0deg); }
.mnt-sec-collapse.collapsed .mnt-sec-caret { transform: rotate(-90deg); }
.mnt-sec-body { padding: 6px 12px 12px; }

/* ── 具体人员界面：返回传帮带总览按钮 ─────────────────────────────────── */
.mnt-back-row { padding: 12px 12px 0; }
