/* ===== 培训管理 ===== */
/* ---- 培训项目切换条（新员工/店长/专项/考证…，按项目隔离） ---- */
#trPrograms{margin:0 0 12px}
.tr-programs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tr-prog{position:relative;border:1px solid var(--bd,#e3e8f0);background:var(--card-bg,#fff);color:#4a5568;
  padding:8px 16px;border-radius:999px;font:inherit;font-size:13.5px;font-weight:500;cursor:pointer;
  display:inline-flex;align-items:center;gap:7px;
  transition:border-color .15s,color .15s,transform .15s var(--ease,cubic-bezier(.22,.61,.36,1)),box-shadow .15s}
.tr-prog:hover{border-color:#bcd7f5;color:#0071e3;transform:translateY(-1px)}
.tr-prog.on{background:linear-gradient(135deg,#0071e3,#0a84ff);color:#fff;border-color:transparent;
  box-shadow:0 4px 12px rgba(0,113,227,.28);font-weight:600}
.tr-prog.on:hover{color:#fff}
.tr-prog-n{font-size:11px;line-height:1;padding:3px 7px;border-radius:999px;background:rgba(0,113,227,.12);color:#0071e3;font-weight:600}
.tr-prog.on .tr-prog-n{background:rgba(255,255,255,.24);color:#fff}
.tr-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px;padding:4px;background:rgba(120,130,150,.07);border-radius:12px;width:fit-content;max-width:100%}
.tr-tab{border:0;background:transparent;padding:8px 16px;border-radius:9px;font:inherit;font-size:13.5px;color:#4a5568;cursor:pointer;transition:background .15s,color .15s}
.tr-tab:hover{background:rgba(0,113,227,.08);color:#0071e3}
.tr-tab.active{background:#fff;color:#0071e3;font-weight:600;box-shadow:0 1px 4px rgba(20,40,80,.12)}

/* 智能建议 */
.tr-suggest-btn{margin-left:auto;position:relative}
.tr-sug-badge{display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;margin-left:5px;border-radius:10px;background:#0071e3;color:#fff;font-size:11px;font-weight:700;text-align:center;vertical-align:middle}
.tr-sug-list{display:flex;flex-direction:column;gap:10px;max-height:62vh;overflow:auto}
.tr-sug{border-radius:12px;padding:12px 14px;border:1px solid var(--bd,#e7ebf2);background:#fff}
.tr-sug-info{border-left:3px solid #0071e3}
.tr-sug-warn{border-left:3px solid #e6a23c;background:#fffdf6}
.tr-sug-danger{border-left:3px solid #ff5a4d;background:#fff7f6}
.tr-sug-hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tr-sug-hd b{font-size:14px;color:#1f2937}
.tr-sug-tag{font-size:11px;font-weight:700;padding:2px 8px;border-radius:6px;background:rgba(120,130,150,.12);color:#4a5568}
.tr-sug-info .tr-sug-tag{background:rgba(0,113,227,.1);color:#0071e3}
.tr-sug-warn .tr-sug-tag{background:rgba(230,162,60,.14);color:#b7791f}
.tr-sug-danger .tr-sug-tag{background:rgba(255,90,77,.12);color:#d6453a}
.tr-sug p{margin:6px 0 0;font-size:12.5px;color:#5a6478;line-height:1.7}
.tr-sug-list2{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tr-chip{display:inline-block;background:#f2f5fa;border:1px solid #e2e8f2;border-radius:8px;padding:3px 9px;font-size:12.5px;color:#33415c;line-height:1.5}
.tr-sug-ops{margin-top:9px;text-align:right}
.tr-sug-ops .btn{padding:5px 14px}
.tr-panel-anim{animation:trFade .25s ease}
@keyframes trFade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* 班次卡片 */
.tr-sess-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.tr-sess{background:var(--card-bg,#fff);border:1px solid var(--bd,#e7ebf2);border-radius:14px;padding:16px;box-shadow:var(--shadow-sm,0 1px 3px rgba(16,40,80,.06));display:flex;flex-direction:column;gap:10px;transition:border .15s,box-shadow .15s}
.tr-sess:hover{border-color:#bcd7f5;box-shadow:0 4px 14px rgba(16,40,80,.1)}
.tr-sess-head{display:flex;align-items:center;gap:10px}
.tr-sess-title{font-weight:650;font-size:15px;flex:1;line-height:1.35}
.tr-sess-tag{flex-shrink:0;font-size:11px;padding:2px 9px;border-radius:20px;font-weight:600}
.tag-base{background:#e8f1fd;color:#1f6fd0}.tag-promote{background:#fdeeda;color:#c67a12}.tag-advanced{background:#ede7fb;color:#6d4fc4}.tag-merge{background:#e0f2e6;color:#2e8a4e}
.tr-sess-meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:#74809a}
.tr-sess-meta span{display:inline-flex;align-items:center;gap:4px}
.tr-sess-prog{height:6px;background:#eef1f6;border-radius:4px;overflow:hidden}
.tr-sess-prog i{display:block;height:100%;background:#0071e3;border-radius:4px;transition:width .3s}
.tr-sess-ops{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.tr-sess-ops button{flex:1;min-width:86px}
.tr-sess-st{font-size:11.5px;padding:2px 8px;border-radius:6px;background:#eef1f6;color:#68748c;align-self:flex-start;border:0;cursor:pointer;font:inherit;white-space:nowrap;flex-shrink:0}
.st-planned{background:#eef1f6;color:#68748c}.st-open{background:#e0f2e6;color:#2e8a4e}.st-closed{background:#fbe9e6;color:#c05a1e}
.tr-sess-st:hover{filter:brightness(.96)}
.tr-status-menu{position:fixed;z-index:90;background:var(--card-bg,#fff);border:1px solid var(--bd,#e3e8f0);border-radius:10px;box-shadow:0 8px 24px rgba(16,40,80,.14);padding:4px;min-width:112px}
.tr-status-opt{display:block;width:100%;text-align:left;padding:7px 12px;border:0;background:transparent;border-radius:7px;font-size:13px;color:var(--txt,#223);cursor:pointer;font:inherit}
.tr-status-opt:hover{background:#eef4fb;color:#0071e3}
.tr-status-opt[data-st="open"]{color:#2e8a4e}
.tr-status-opt[data-st="closed"]{color:#c05a1e}
.tr-ehist{position:fixed;z-index:89;background:var(--card-bg,#fff);border:1px solid var(--bd,#e3e8f0);border-radius:10px;box-shadow:0 8px 24px rgba(16,40,80,.16);padding:10px 12px;min-width:240px;max-width:340px}
.tr-ehist-title{font-size:13px;font-weight:650;color:var(--txt,#223);margin-bottom:6px}
.tr-ehist-body{max-height:240px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.tr-ehist-item{border-left:3px solid #0071e3;background:#f6f9fd;padding:6px 9px;border-radius:0 8px 8px 0}
.tr-ehist-l1{font-size:13px;color:var(--txt,#223);display:flex;align-items:center;gap:6px}
.tr-ehist-tag{font-size:10.5px;padding:1px 7px;border-radius:12px;background:#e0f2e6;color:#2e8a4e;font-weight:600;flex-shrink:0}
.tr-ehist-l2{font-size:11.5px;color:#74809a;margin-top:2px}
.tr-ehist-l3{font-size:11.5px;color:#74809a;margin-top:2px}
.tr-ehist-empty{font-size:12.5px;color:#8a94aa;padding:6px 0}
.tr-ehist-load{font-size:12.5px;color:#8a94aa;padding:4px 0}

/* 表格 */
.tr-table-wrap{overflow-x:auto;border:1px solid var(--bd,#e7ebf2);border-radius:14px;background:var(--card-bg,#fff);box-shadow:var(--shadow-sm,0 1px 3px rgba(16,40,80,.06))}
table.tr-table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:640px}
.tr-table th{text-align:left;padding:11px 14px;background:#f7f9fc;color:#5a6781;font-weight:600;font-size:12.5px;border-bottom:1px solid var(--bd,#e7ebf2);white-space:nowrap}
.tr-table td{padding:10px 14px;border-bottom:1px solid #f0f3f8;vertical-align:middle;color:#34415c}
.tr-table tr:last-child td{border-bottom:0}
.tr-table tbody tr:nth-child(even){background:#fafbfe}
.tr-table tbody tr:hover{background:#f2f7fd}
.tr-table .row-ops{display:flex;gap:6px;flex-wrap:wrap}

/* 状态徽章 */
.tr-ps{padding:2px 9px;border-radius:20px;font-size:11.5px;font-weight:600;white-space:nowrap}
.ps-pending{background:#eef1f6;color:#68748c}.ps-doing{background:#e8f1fd;color:#1f6fd0}.ps-done{background:#e0f2e6;color:#2e8a4e}.ps-quit{background:#fbe9e6;color:#c05a1e}
.tr-mn{border-radius:8px;padding:2px 8px;font-size:11.5px;background:#fdf0d5;color:#a66b0a;white-space:nowrap}
.tr-ok{color:#2e8a4e;font-weight:600}.tr-no{color:#c05a1e;font-weight:600}

/* 成绩记录表 */
.tr-grade-table{min-width:560px}
.tr-grade-table th{text-align:center;white-space:normal;line-height:1.35}
.tr-grade-table td{text-align:center}
.tr-grade-table .tr-g-single{min-width:160px}
.tr-g-stu{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}
.tr-g-no{font-size:11px;color:#8a94aa;font-variant-numeric:tabular-nums}
.tr-g-cell{min-width:74px}
.tr-g-score{display:inline-flex;align-items:center;gap:5px;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;min-width:30px;justify-content:center}
.tr-g-score.ok{color:#2e8a4e}.tr-g-score.no{color:#c05a1e}.tr-g-score.none{color:#c3cbd9;font-weight:400;font-size:14px}
.tr-g-retake{font-style:normal;font-size:10px;font-weight:600;color:#c67a12;background:#fdf0d5;border-radius:6px;padding:1px 5px}
.tr-g-prog{display:inline-block;margin-top:6px;font-size:10.5px;font-weight:600;border-radius:6px;padding:1px 6px;white-space:nowrap}
.tr-g-prog.all{background:#e0f2e6;color:#2e8a4e}.tr-g-prog.part{background:#fdf0d5;color:#a66b0a}.tr-g-prog.none{background:#fbe9e6;color:#c05a1e}
.tr-g-ops{justify-content:center;flex-direction:column;align-items:stretch}
.tr-g-sticky-l{position:sticky;left:0;z-index:2;background:var(--card-bg,#fff)}
.tr-g-sticky-r{position:sticky;right:0;z-index:2;background:var(--card-bg,#fff)}
.tr-grade-table thead .tr-g-sticky-l,.tr-grade-table thead .tr-g-sticky-r{background:#f5f7fb}
.tr-g-cell{cursor:pointer;transition:background .15s}
.tr-g-cell:hover{background:#f0f5ff}
.tr-g-cell.editing{cursor:default;background:#f0f5ff}
.tr-g-inp{width:64px;padding:5px 6px;border:1.5px solid #0071e3;border-radius:8px;font-size:15px;font-weight:600;text-align:center;outline:none;background:#fff;color:#111;font-variant-numeric:tabular-nums}
.tr-g-inp:focus{box-shadow:0 0 0 3px rgba(0,113,227,.18)}
/* 按课程批量录入 */
.tr-batch-box{max-width:560px;width:94vw}
.tr-batch-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border-bottom:1px solid #eef1f7;flex-wrap:wrap}
.tr-batch-row:last-child{border-bottom:0}
.tr-batch-row:nth-child(even){background:#fafbfd}
.tr-batch-stu{display:flex;flex-direction:column;min-width:110px;flex:1;gap:1px}
.tr-batch-stu b{font-size:14px;color:#1c2434}
.tr-batch-no{font-size:11px;color:#8a94aa;font-variant-numeric:tabular-nums}
.tr-batch-rk{font-size:12.5px;color:#5b6a78;white-space:nowrap}
.tr-batch-rk input{margin-right:3px}
.tr-batch-prev{min-width:34px;text-align:center}
/* 班次数据分析 */
.tr-stat-card{background:#f6f9fd;border:1px solid #e8eef7;border-radius:12px;padding:10px 14px}
.tr-stat-k{font-size:11.5px;color:#8a94aa;font-weight:600;margin-bottom:4px}
.tr-stat-v{font-size:19px;font-weight:700;color:#1c2434;font-variant-numeric:tabular-nums}
.tr-stats-note{font-size:12px;color:#8a94aa;margin:0 0 10px;line-height:1.6}
.tr-table .tr-stat-row td{text-align:center}

/* 员工档案分页 */
.tr-pager{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 2px;flex-wrap:wrap;gap:8px}
.tr-pager-btns{display:flex;gap:8px}
.tr-pager .btn[disabled]{opacity:.45;cursor:not-allowed}

/* 满月提醒条 */
.tr-alert{display:flex;gap:10px;align-items:flex-start;background:#e8f1fd;border:1px solid #cfe2f8;border-radius:12px;padding:12px 14px;margin-bottom:14px;font-size:13px;color:#1f5ea8}
.tr-alert b{color:#0071e3}

/* 空态 */
.tr-empty{text-align:center;padding:46px 16px;color:#98a2b8;font-size:13.5px}
.tr-empty .tr-empty-ico{width:54px;height:54px;border-radius:16px;background:#f0f5fc;display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px;color:#8fb7ec}
.tr-empty button{margin-top:10px}

/* 选择器行 */
.tr-selbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.tr-selbar select{max-width:260px}

/* 成绩表单元格 */
.tr-score{font-variant-numeric:tabular-nums}

/* 模态框 */
.tr-modal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}
.tr-mask{position:absolute;inset:0;background:rgba(10,25,50,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.tr-box{position:relative;background:#fff;border-radius:16px;width:min(520px,96vw);max-height:88vh;display:flex;flex-direction:column;box-shadow:0 18px 50px rgba(10,30,60,.25);animation:trPop .2s ease}
.tr-box.wide{width:min(880px,96vw)}
.tr-box.wide table.tr-table{min-width:780px}
@keyframes trPop{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:none}}
.tr-box-hd{display:flex;align-items:center;gap:10px;padding:16px 18px 0}
.tr-box-hd b{font-size:15.5px;flex:1}
.tr-box-x{border:0;background:rgba(120,130,150,.12);width:28px;height:28px;border-radius:8px;cursor:pointer;color:#4a5568;font-size:15px;line-height:1}
.tr-box-x:hover{background:rgba(120,130,150,.22)}
.tr-box-bd{padding:14px 18px 4px;overflow-y:auto}
.tr-box-ft{padding:12px 18px 16px;display:flex;gap:10px;justify-content:flex-end}
/* 通用确认模态框（替代原生 confirm） */
.tr-confirm{width:min(420px,94vw)}
.tr-confirm .tr-box-bd{padding:10px 18px 0;color:#3a4557;font-size:14px;line-height:1.7}
.tr-confirm-msg{white-space:pre-line;word-break:break-word}
.tr-confirm-ft{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px 16px}
.tr-confirm-ft .btn{min-width:88px;justify-content:center}
.tr-confirm-ic{display:flex;align-items:center;justify-content:center;margin-top:20px}
.tr-confirm-ic svg{width:44px;height:44px}
.tr-field{margin-bottom:12px}
.tr-field label{display:block;font-size:12.5px;color:#5a6781;margin-bottom:5px;font-weight:600}
.tr-field input,.tr-field select,.tr-field textarea{width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #d8deeb;border-radius:9px;font:inherit;font-size:13.5px;background:#fff;color:#223;outline:none;transition:border .15s,box-shadow .15s}
.tr-field input:focus,.tr-field select:focus,.tr-field textarea:focus{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.14)}
.tr-field textarea{resize:vertical;min-height:60px}
.tr-err{color:#d33;font-size:12.5px;min-height:18px;padding:0 2px}
.tr-hint{font-size:11.5px;color:#8a94aa;margin-top:4px}

/* 学员批量导入 */
.tr-imp-tip{font-size:12.5px;color:#5a6781;line-height:1.6;background:#f4f7fb;border:1px solid #e4ebf5;border-radius:10px;padding:9px 12px;margin-bottom:10px}
.tr-imp-tip b{color:#223}
.tr-imp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.tr-imp-preview{max-height:300px;overflow-y:auto;border:1px solid #e4ebf5;border-radius:10px;padding:8px}
.tr-imp-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.tr-imp-tbl th,.tr-imp-tbl td{padding:7px 9px;text-align:left;border-bottom:1px solid #eef1f7;white-space:nowrap}
.tr-imp-tbl th{font-size:11.5px;color:#8a94aa;font-weight:600;background:#f7f9fc;position:sticky;top:0}
.tr-imp-tbl tr.tr-imp-bad td{background:#fff5f5}
.tr-imp-ok{color:#2e8a4e;font-size:11.5px;font-weight:600}
.tr-imp-flag{color:#d70015;font-size:11.5px;font-weight:600}
.tr-imp-err{color:#d33;font-size:12.5px;text-align:center;padding:16px 0}

/* 复选框组（分班选择） */
.tr-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;max-height:260px;overflow-y:auto;padding:2px}
.tr-check{display:flex;align-items:center;gap:8px;border:1px solid #e2e7f1;border-radius:9px;padding:8px 10px;cursor:pointer;font-size:13px;transition:border .15s,background .15s}
.tr-check:hover{border-color:#bcd7f5;background:#f6fafe}
.tr-check.on{border-color:#0071e3;background:#eaf3fe}
.tr-check input{accent-color:#0071e3;width:15px;height:15px}
.tr-check small{color:#8a94aa}
.tr-enr-search{flex:1 1 180px;min-width:150px;height:32px;padding:0 10px;border:1px solid #d5dce9;border-radius:8px;font-size:13px;background:#fafbfe;outline:none;transition:border .15s,box-shadow .15s}
.tr-enr-search:focus{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.12);background:#fff}
.tr-enr-tabs{display:flex;gap:8px;margin-bottom:10px;border-bottom:1px solid #e6eaf2;padding-bottom:8px}
.tr-enr-tabs button{flex:1;padding:7px 0;border:1px solid transparent;background:transparent;border-radius:8px;font-size:13px;color:#6b7688;cursor:pointer;transition:.15s}
.tr-enr-tabs button:hover{color:#0071e3}
.tr-enr-tabs button.on{background:#eaf3fe;color:#0071e3;font-weight:600}
.tr-enr-pane{min-height:0}
#trEnrNames{width:100%;box-sizing:border-box;border:1px solid #d5dce9;border-radius:10px;padding:10px;font-size:13px;font-family:inherit;resize:vertical;outline:none;background:#fafbfe}
#trEnrNames:focus{border-color:#0071e3;box-shadow:0 0 0 3px rgba(0,113,227,.12);background:#fff}
.tr-enr-result{margin-top:8px;max-height:250px;overflow-y:auto;display:grid;gap:6px}
.tr-enr-ok{font-size:12.5px;color:#1f8a4c;background:#eefaf2;border:1px solid #d5f0df;border-radius:8px;padding:6px 9px}
.tr-enr-miss{font-size:12.5px;color:#c0392b;background:#fdf0ee;border:1px solid #f7d7d2;border-radius:8px;padding:6px 9px}
.tr-enr-multi{font-size:12.5px;color:#8a6d1a;background:#fef8e8;border:1px solid #f3e5b5;border-radius:8px;padding:8px 9px}
.tr-enr-multi b{display:block;margin-bottom:6px}
.tr-enr-cands{display:flex;flex-wrap:wrap;gap:6px}
.tr-enr-chip{border:1px solid #d5dce9;background:#fff;border-radius:999px;padding:4px 10px;font-size:12px;color:#37415a;cursor:pointer;transition:.15s}
.tr-enr-chip:hover{border-color:#0071e3;color:#0071e3}
.tr-enr-chip.chosen{border-color:#34c759;background:#eefaf2;color:#1f8a4c;font-weight:600}

/* 期次总览 / 三阶段 */
.tr-batch{background:var(--card-bg,#fff);border:1px solid var(--bd,#e7ebf2);border-radius:16px;padding:16px;margin-bottom:14px;box-shadow:var(--shadow-sm,0 1px 3px rgba(16,40,80,.06))}
.tr-batch-legacy{background:#fbfcfe}
.tr-batch-hd{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.tr-batch-hd>div:first-child{flex:1;min-width:220px}
.tr-batch-hd b{font-size:15.5px;color:var(--txt,#1f2937);font-weight:650}
.tr-batch-sub{font-size:12px;color:#8490a6;margin-top:4px}
.tr-batch-st{font-size:11.5px;padding:3px 10px;border-radius:20px;background:#e8f1fd;color:#1f6fd0;font-weight:600;white-space:nowrap}
.tr-batch-st.closed{background:#eef1f6;color:#68748c}
.tr-batch-st.legacy{background:#f3eefb;color:#6d4fc4}
.tr-batch-ops{display:flex;gap:7px;flex-wrap:wrap}
.tr-stage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:12px}
/* auto-fit 会折叠空的重复轨道：3 个阶段均分整行，不再留出一整列空白。
   只有 1 个阶段的历史期限制卡片宽度，避免单张卡片横跨通栏。 */
.tr-stage-grid[data-n="1"]{grid-template-columns:minmax(0,340px)}
.tr-stage{border:1px solid var(--bd,#e7ebf2);border-radius:12px;padding:12px;background:#fcfdff;display:flex;flex-direction:column;gap:8px}
.tr-stage-hd{display:flex;align-items:center;gap:8px}
.tr-stage-hd .tr-sess-tag{flex-shrink:0}
.tr-stage-del{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 auto;border:1px solid rgba(255,59,48,.32);border-radius:8px;background:transparent;color:var(--red,#ff3b30);cursor:pointer;transition:background .15s,border-color .15s,transform .1s;padding:0;margin-left:6px}
.tr-stage-del:hover{background:rgba(255,59,48,.08);border-color:var(--red,#ff3b30)}
.tr-stage-del:active{transform:scale(.94)}
.tr-stage-del svg{width:18px;height:18px;stroke-width:2}
.tr-stage-mon{font-size:12px;color:#8490a6;flex:1;min-width:0}
.tr-stage-meta{font-size:12px;color:#74809a;display:flex;flex-wrap:wrap;gap:4px 10px}
.tr-stage-ops{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;padding-top:9px;border-top:1px dashed #eef1f7}
.tr-stage-ops button{flex:1;min-width:60px}
.tr-stage-missing{border:1px dashed #e2b8b4;background:#fff8f7;align-items:center;justify-content:center;min-height:140px;text-align:center;color:#b25c52;font-size:13px;gap:10px}
.tr-prog3{display:inline-flex;gap:3px}
.tr-prog3 i{font-style:normal;font-size:11px;width:20px;height:20px;line-height:20px;text-align:center;border-radius:6px;background:#eef1f6;color:#8a94aa}
.tr-prog3 i.part{background:#fdeeda;color:#c67a12}
.tr-prog3 i.ok{background:#e0f2e6;color:#2e8a4e}
.tr-miss-chip{display:inline-block;font-size:11.5px;padding:2px 8px;border-radius:6px;margin:2px 4px 2px 0;background:#fdeaea;color:#c0453d;border:1px solid #f5cfcb}
.tr-miss-chip.warn{background:#fff5e4;color:#b7791f;border-color:#f2dfb8}
.tr-miss-chip.ok{background:#eaf7ee;color:#2e8a4e;border-color:#cfe9d7}
.tr-miss-level{font-size:11px;font-weight:600;padding:2px 8px;border-radius:6px;background:#fdeaea;color:#c0453d}
.tr-miss-level.warn{background:#fff5e4;color:#b7791f}
.tr-miss-note{font-size:12px;color:#74809a;line-height:1.6}

/* 小屏 */
@media(max-width:720px){
  .tr-tabs{width:100%}
  .tr-tab{flex:1;padding:8px 6px;font-size:12.5px;text-align:center}
  .tr-sess-grid{grid-template-columns:1fr}
  .tr-stage-grid,.tr-stage-grid[data-n]{grid-template-columns:1fr}
  .tr-batch-ops{width:100%}
  .tr-box-bd{padding:12px 14px 4px}
  .tr-box-ft{padding:10px 14px 14px}
  table.tr-table{min-width:520px}
  .tr-selbar select{flex:1 1 auto;min-width:0;max-width:none}
  .tr-selbar .btn{flex:1 1 auto;justify-content:center;min-height:38px}
  .tr-table th:last-child,.tr-table td:has(.row-ops){position:sticky;right:0;z-index:2;box-shadow:-8px 0 12px -8px rgba(16,40,80,.12)}
  .tr-table th:last-child{background:#f7f9fc}
  .tr-table td:has(.row-ops){background:var(--card-bg,#fff)}
  .tr-table tbody tr:nth-child(even) td:has(.row-ops){background:#fafbfe}
  .tr-table tbody tr:hover td:has(.row-ops){background:#f2f7fd}
  .tr-table tr.tr-stat-row td{position:static;box-shadow:none}
}
@media(max-width:560px){
  #view-training .page-head{flex-direction:column;align-items:flex-start;gap:10px}
  #view-training .head-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #view-training .head-actions .btn{justify-content:center;min-height:38px;width:100%}
  .tr-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}
  .tr-tab{flex:0 0 auto;white-space:nowrap}
  .tr-suggest-btn{margin-left:0}
  .tr-sug-badge{display:none}
  .tr-box{width:96vw;max-height:94vh}
  .tr-box-ft .btn{flex:1;justify-content:center}
  .tr-checks{grid-template-columns:1fr 1fr}
  .tr-enr-tabs button{font-size:12.5px}
}


/* ===== 从其他班次批量导入学员 ===== */
.tr-from-tip{font-size:12.5px;color:#5a6781;line-height:1.7;background:#f4f7fb;border:1px solid #e4ebf5;border-radius:10px;padding:9px 12px;margin-bottom:10px}
.tr-from-tip b{color:#223}
.tr-from-srchd{font-size:12px;color:#8a94aa;font-weight:600;margin-bottom:6px}
.tr-from-srcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px;max-height:150px;overflow-y:auto;padding:2px;margin-bottom:10px}
.tr-from-src{display:flex;align-items:center;gap:8px;border:1px solid #e2e7f1;border-radius:9px;padding:8px 10px;cursor:pointer;font-size:12.5px;transition:border .15s,background .15s;line-height:1.4}
.tr-from-src:hover{border-color:#bcd7f5;background:#f6fafe}
.tr-from-src.on{border-color:#0071e3;background:#eaf3fe}
.tr-from-src input{accent-color:#0071e3;width:15px;height:15px;flex:0 0 auto}
.tr-from-src small{color:#8a94aa;margin-left:3px;white-space:nowrap}
.tr-from-src small.tr-src-grad{margin-left:5px;padding:1px 5px;border-radius:5px;background:#eef1f7;color:#6b7688;font-size:10.5px;font-weight:600;cursor:help}
.tr-from-none{grid-column:1/-1;color:#8a94aa;font-size:12.5px;padding:14px;text-align:center;border:1px dashed #dbe2ee;border-radius:10px}
.tr-from-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.tr-from-list{max-height:230px}
.tr-from-emp{align-items:flex-start}
.tr-from-emp small{display:block;line-height:1.5;margin-top:3px}
.tr-from-busy{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:5px;background:#fff4e5;color:#b26a00;font-size:10.5px;font-weight:600;vertical-align:middle}
.tr-from-grad{display:inline-block;margin-left:5px;padding:1px 5px;border-radius:5px;background:#eef1f7;color:#6b7688;font-size:10.5px;font-weight:600;vertical-align:middle}
.tr-from-excl{margin-top:8px;font-size:12px;color:#8a6d3b;line-height:1.6}
.tr-from-excl:empty{display:none}
@media(max-width:720px){.tr-from-srcs{grid-template-columns:1fr}}
.tr-exam-yes{display:inline-block;padding:1px 7px;border-radius:5px;background:#e7f6ee;color:#18804a;font-size:11px;font-weight:600}
.tr-exam-no{display:inline-block;padding:1px 7px;border-radius:5px;background:#f1f3f7;color:#7b8598;font-size:11px;font-weight:600}
/* 删除按钮已移至卡片右上角图标（.tr-stage-del），操作区仅 5 个功能按钮 */
.tr-text-sample{margin:6px 0;padding:7px 10px;background:#fff;border:1px dashed #dbe2ee;border-radius:8px;font-family:ui-monospace,Consolas,monospace;font-size:12px;line-height:1.8;color:#33445c}
.tr-ct-auto{display:flex;align-items:center;gap:6px;margin:-2px 0 10px;font-size:12.5px;color:#5b6780;cursor:pointer;line-height:1.5}
.tr-ct-auto input{accent-color:#2563eb;width:14px;height:14px;margin:0;cursor:pointer}
.tr-imp-next{display:inline-block;margin-left:4px;padding:1px 5px;border-radius:5px;background:#fff0d9;color:#a86200;font-size:10.5px;font-weight:600;white-space:nowrap}
/* 班次回收站 */
#trTrashBadge{background:#8a94aa}
.tr-trash-sub{font-size:11.5px;color:#8a94aa;margin-top:2px;line-height:1.4}
