/* ============================================================
 * attendance.css  课时考勤 / 点名 / 补课 / 课时管理
 * ============================================================ */

/* ---------- 全屏点名宿主 ---------- */
.att-fullscreen{
  position:fixed; inset:0; z-index:1200;
  display:none; flex-direction:column;
  background:#F4F6FA; overflow-y:auto;
  padding:16px 20px 28px;
}

/* ---------- 顶部条 ---------- */
.at-top{
  display:flex; align-items:center; gap:14px;
  padding:12px 16px; margin-bottom:12px;
}
.at-title{min-width:0;}
.at-title-t{font-size:16px;font-weight:700;color:#0F172A;line-height:1.3;}
.at-title-sub{font-size:12.5px;color:#64748B;margin-top:2px;}

/* ---------- 批量条 ---------- */
.at-batch{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:10px 16px; margin-bottom:12px;
}
.at-all{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#334155;font-weight:600;}
.at-all input{width:15px;height:15px;accent-color:#2563EB;}
.at-batch-label{font-size:13px;color:#64748B;}
.at-batch-hours{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#334155;}
.at-batch-hours input{width:84px;height:34px;padding:0 8px;}

/* ---------- 学员行 ---------- */
.at-rows{display:flex;flex-direction:column;gap:10px;}
.at-row{
  display:grid;
  grid-template-columns:34px 46px minmax(150px,1.2fr) 130px minmax(250px,1.5fr);
  align-items:center; gap:14px;
  background:#fff; border:1px solid #E5E9F0; border-radius:12px;
  padding:12px 16px;
}
.at-pick input{width:16px;height:16px;accent-color:#2563EB;}
.at-av{
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#EFF6FF;color:#2563EB;font-weight:700;font-size:16px;
}
.at-name{font-size:14px;font-weight:600;color:#0F172A;}
.at-sid{font-size:12px;color:#94A3B8;margin-top:2px;}

/* 状态标签 */
.at-tag{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:14px;font-weight:600;padding:9px 20px;min-width:92px;border-radius:999px;letter-spacing:.5px;box-shadow:0 1px 2px rgba(15,23,42,.06);}
.at-tag-unset{background:#F1F5F9;color:#94A3B8;}
.at-tag-full{background:#DCFCE7;color:#15803D;}
.at-tag-partial{background:#FEF3C7;color:#B45309;}
.at-tag-leave{background:#FEE2E2;color:#B91C1C;}

/* 课时输入 + 分段 */
.at-ctrl{display:flex;align-items:center;gap:14px;justify-content:flex-end;flex-wrap:wrap;}
.at-hours{display:inline-flex;align-items:center;gap:7px;}
.at-hinput{width:88px;height:36px;padding:0 10px;}
.at-hinput:disabled{background:#F1F5F9;color:#94A3B8;}
.at-max{font-size:12.5px;color:#94A3B8;white-space:nowrap;}
.at-btns{display:inline-flex;border:1px solid #E2E8F0;border-radius:9px;overflow:hidden;}
.at-seg{
  border:0;background:#fff;color:#475569;font-size:13px;font-weight:600;
  padding:8px 16px;cursor:pointer;transition:all .15s;
}
.at-seg:hover{background:#F8FAFC;}
.at-seg-full.on{background:#2563EB;color:#fff;}
.at-seg-leave.on{background:#DC2626;color:#fff;}

/* ---------- 教师端班级切换 ---------- */
.at-cltabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px;}
.at-cltab{
  border:1px solid #E2E8F0;background:#fff;color:#475569;
  font-size:13px;font-weight:600;padding:8px 16px;border-radius:999px;cursor:pointer;
}
.at-cltab.on{background:#2563EB;border-color:#2563EB;color:#fff;}

/* ---------- 上课记录矩阵 ---------- */
.ah-card .ah-head-t{font-size:14px;font-weight:700;color:#0F172A;padding:14px 16px;}
.ah-class-block{margin-bottom:16px;}
.ah-class-ti{
  font-size:14.5px;font-weight:700;color:#0F172A;padding:14px 16px 0;
  display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
}
.ah-class-sub{font-size:12px;font-weight:500;color:#94A3B8;}
.ah-table th,.ah-table td{vertical-align:middle;}
.ah-corner{min-width:150px;}
.ah-date{font-size:12.5px;font-weight:700;color:#2563EB;}
.ah-lesson{font-size:11.5px;color:#94A3B8;margin-top:2px;font-weight:500;}
.ah-rowhead{display:flex;align-items:center;gap:9px;padding:8px 12px;text-align:left;min-width:150px;}
.ah-rowhead .ah-av{
  width:32px;height:32px;border-radius:50%;flex:0 0 auto;
  background:#EFF6FF;color:#2563EB;font-weight:700;font-size:14px;
  display:flex;align-items:center;justify-content:center;
}
.ah-name{font-size:13px;font-weight:600;color:#0F172A;}
.ah-cell{display:flex;flex-direction:column;gap:5px;align-items:flex-start;padding:6px 4px;}
.ah-pill{display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;padding:6px 14px;min-width:64px;border-radius:999px;}
.ah-pill-normal{background:#DCFCE7;color:#15803D;}
.ah-pill-leave{background:#FEE2E2;color:#B91C1C;}
.ah-pill-unset{background:#F1F5F9;color:#94A3B8;}
.ah-hours{font-size:11.5px;color:#64748B;}
.ah-mk{font-size:11.5px;cursor:pointer;}
.ah-inline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.ah-mk-done{border:1px solid #86EFAC;background:#F0FDF4;border-radius:999px;padding:2px 10px;}
.ah-mk-done:hover{background:#DCFCE7;}
.ah-rec-card .table-wrap{max-height:62vh;overflow:auto;}
.ah-mk-btn{border:1px solid #FDBA74;background:#FFF7ED;color:#C2410C;border-radius:999px;padding:2px 10px;font-weight:600;}
.ah-mk-done{color:#15803D;font-weight:600;}

/* ---------- 课时管理 ---------- */
.ah-period{font-size:12.5px;color:#94A3B8;font-weight:500;}
.hh-s{font-size:13.5px;font-weight:600;color:#0F172A;}
.hh-sub{font-size:11.5px;color:#94A3B8;}
.hh-num{font-weight:700;font-size:14px;}
.hh-normal{color:#2563EB;}
.hh-makeup{color:#16A34A;}
.hh-total{color:#0F172A;}
.hh-leave{color:#D97706;font-weight:600;}
.hh-pending{color:#DC2626;font-weight:600;}
.hh-done{color:#94A3B8;}
.hh-tcards{display:flex;flex-direction:column;gap:14px;}

/* ---------- 教室占用矩阵（scheduling 补充） ---------- */
.sk-matrix-card{padding:14px 16px;}
.sk-rmtable{border-collapse:separate;border-spacing:0;}
.sk-rmtable th,.sk-rmtable td{border:1px solid #EDF0F5;padding:7px 9px;vertical-align:top;}
.sk-rmtable thead th{background:#F8FAFC;font-size:12.5px;color:#475569;font-weight:600;text-align:center;}
.rm-corner{min-width:120px;text-align:left !important;background:#F8FAFC;}
.rm-rowhead{cursor:pointer;text-align:left !important;background:#FBFCFE;min-width:140px;}
.rm-rowhead:hover{background:#EFF6FF;}
.rm-h-name{font-size:13px;font-weight:700;}
.rm-name-class{color:#1D4ED8;}
.rm-name-one{color:#C2410C;}
.rm-h-sub{font-size:11px;color:#94A3B8;margin-top:3px;font-weight:500;}
.rm-cell{min-width:118px;height:100%;}
.rm-chip{
  display:flex;flex-direction:column;gap:2px;
  background:#EFF6FF;border:1px solid #BFDBFE;border-radius:8px;
  padding:5px 8px;margin-bottom:0;cursor:pointer;
}
.rm-chip:hover{border-color:#60A5FA;box-shadow:0 1px 4px rgba(37,99,235,.18);}
.rm-chipwrap{position:relative;padding-right:16px;margin-bottom:5px;}
.rm-chip-del{
  position:absolute;top:-4px;right:-2px;width:17px;height:17px;line-height:15px;
  text-align:center;font-size:12px;color:#94A3B8;cursor:pointer;border-radius:50%;
}
.rm-chip-del:hover{color:#DC2626;background:#FEE2E2;}
.rm-addline{font-size:11.5px;color:#16A34A;font-weight:600;cursor:pointer;margin-top:2px;}
.rm-addline:hover{color:#15803D;}
.rm-cell-has{background:#fff;}
.rm-chip-one{background:#FFF7ED;border-color:#FED7AA;}
.rmc-time{font-size:10.5px;color:#2563EB;font-weight:600;}
.rm-chip-one .rmc-time{color:#C2410C;}
.rmc-name{font-size:11.5px;color:#1E293B;font-weight:600;line-height:1.25;}
.rmc-teacher{font-size:10.5px;color:#64748B;line-height:1.2;}
.rm-mini{font-size:11.5px;font-weight:600;}
.rm-mini-free{color:#16A34A;}
.rm-mini-maint{color:#94A3B8;}
.rm-cell-maint{background:#F8FAFC;}

/* 整周课表弹框 */
.rw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;}
.rw-day{border:1px solid #E5E9F0;border-radius:10px;padding:10px 12px;}
.rw-day-t{font-size:13px;font-weight:700;color:#2563EB;margin-bottom:8px;}
.rw-line{display:flex;flex-direction:column;gap:1px;padding:6px 0;border-top:1px dashed #E5E9F0;}
.rw-slot{font-size:11.5px;color:#64748B;}
.rw-who{font-size:13px;font-weight:600;color:#0F172A;}
.rw-t{font-size:11.5px;color:#94A3B8;}


/* r22 课时管理二级 Tab */
.ah-tabs { display: flex; gap: 8px; margin: 14px 0; border-bottom: 1px solid #E5E9F0; }
.ah-tab {
  height: 38px; padding: 0 18px; font-size: 14px; background: none; border: none;
  color: #64748B; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.ah-tab.on { color: #2563EB; border-bottom-color: #2563EB; font-weight: 600; }
.ah-tcards { display: flex; flex-direction: column; gap: 14px; }

/* ---------- r25 教师上课矩阵（顶部老师切换） ---------- */
.am-tpills { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.am-tpill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #FFFFFF; border: 1px solid #E5E9F0; color: #475569;
  transition: all .15s ease;
}
.am-tpill i { font-style: normal; font-size: 11.5px; color: #94A3B8; font-weight: 500; }
.am-tpill:hover { border-color: #93C5FD; color: #2563EB; }
.am-tpill.on { background: #2563EB; border-color: #2563EB; color: #FFFFFF; }
.am-tpill.on i { color: #BFDBFE; }
.ah-cell .ah-mk-btn:hover { background: #FFEDD5; }

/* 课时管理 · 学生上课记录分页 */
.hh-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 0 2px; }
.hh-pager-info { font-size: 12.5px; color: #64748B; }
.hh-pager .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* 上课记录矩阵：姓名（学员）单元格去灰色背景 */
.ah-table tbody th.ah-rowhead { background: #fff !important; }

/* mp12 课时管理学生查询框 */
.hh-search { position: relative; margin: 0 16px 10px; }
.hh-search-input { width: 100%; height: 36px; border: 1px solid #E2E8F0; border-radius: 999px; padding: 0 38px 0 16px; font-size: 13px; color: #0F172A; background: #F8FAFC; box-sizing: border-box; outline: none; transition: border-color .15s, background .15s; }
.hh-search-input:focus { border-color: #93C5FD; background: #fff; }
.hh-search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: #E2E8F0; color: #64748B; font-size: 13px; line-height: 20px; text-align: center; cursor: pointer; }
.hh-search-clear:hover { background: #CBD5E1; }
