* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pri: #4285f4; --pri-l: #336fd9; --brand: #56c1d8; --bg: #ffffff; --card: #fafafa;
  --bd: #e5e7eb; --tx: #4b5563; --tx1: #1f2937; --tx2: #71717a;
  --pos: #16a34a; --neg: #dc2626; --warn-bg: #fffbeb; --warn-bd: #f59e0b;
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg); color: var(--tx); font-size: 13px; line-height: 1.55;
}

/* ---------- 顶栏 ---------- */
/* ★20261024l 布局重构：顶栏改 flex 换行两行制——
   第一行 品牌 + 右侧功能（铃铛/版本标签/用户框），第二行 页签（可换行不再挤压竖排）。
   修复：铃铛掉到页签下方被裁半、发公告按钮弹出面板跑到视口外点不到、
   新增页签后页签被压缩成一字一行。 */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 12px;
  background: linear-gradient(100deg, #4285f4, #336fd9);
  color: #fff; padding: 12px 24px 0; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.topbar > .brand { flex: 1 1 auto; min-width: 0; }
.topbar > .ntfbox, .topbar > .ver-tag, .topbar > .userbox { flex: none; }
.topbar > .tabs {
  flex: 1 1 100%; order: 9;
  flex-wrap: wrap; row-gap: 2px;
}
.topbar > .tabs > button, .topbar > .tabs > .navmenu { flex: none; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; transition: opacity .15s; }
.brand:hover { opacity: .85; }
.brand:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
.logo {
  width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.3);
}
.brand h1 { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.brand p { font-size: 11px; opacity: .78; }
.tabs { display: flex; gap: 4px; margin-top: 10px; }
.tabs button {
  background: transparent; border: none; color: rgba(255,255,255,.75);
  padding: 9px 17px; font-size: 13px; cursor: pointer;
  border-radius: 7px 7px 0 0; font-family: inherit; transition: .15s;
}
.tabs button:hover { background: rgba(255,255,255,.12); color: #fff; }
.tabs button.active { background: var(--bg); color: var(--pri); font-weight: 600; }
.navmenu { position: relative; }
.navmenu .caret { font-size: 10px; opacity: .85; margin-left: 2px; }
.navmenu .navmenu-drop {
  position: absolute; left: 0; top: calc(100% + 4px);
  background: #fff; border-radius: 9px; box-shadow: 0 10px 30px rgba(0,0,0,.22);
  min-width: 160px; overflow: hidden; z-index: 300; padding: 5px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.navmenu.open .navmenu-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.navmenu .navmenu-drop button {
  display: block; width: 100%; text-align: left; padding: 10px 16px;
  background: none; border: none; font-size: 13px; color: #2b3a4f; cursor: pointer;
  border-radius: 0;
}
.navmenu .navmenu-drop button:hover { background: #f2f6fc; color: var(--pri); }
.navmenu .navmenu-drop button.active { background: #f2f6fc; color: var(--pri); font-weight: 600; }

/* ---------- 布局 ---------- */
main { padding: 18px 24px 60px; max-width: none; margin: 0 auto; }
.page { display: none; }
.page.active { display: block; animation: pageIn .28s cubic-bezier(.16,1,.3,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .page.active { animation: none; } }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .layout, .two { grid-template-columns: 1fr; } }
/* ★20261026g 统计汇总改 Tab 切换（替代原并排/堆叠方案）：每表独占全宽，13 列不再挤压 */
.sum-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.sum-tab {
  padding: 9px 20px; border: 1px solid var(--bd); border-radius: 10px;
  background: var(--bg); color: var(--tx2); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.sum-tab:hover { border-color: var(--pri-l); color: var(--pri); background: #f7fafd; }
.sum-tab.active { background: var(--pri); border-color: var(--pri); color: #fff; box-shadow: 0 1px 4px rgba(66,133,244,.28); }
.sum-tab:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
/* 统计汇总骨架屏（加载中占位，shimmer 流光） */
.skl { display: inline-block; height: 12px; border-radius: 6px; vertical-align: middle;
  background: linear-gradient(90deg, #e9edf2 25%, #f6f8fb 45%, #e9edf2 65%);
  background-size: 200% 100%; animation: sklFlow 1.2s ease-in-out infinite; }
@keyframes sklFlow { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skl { animation: none; } }
.skl.w48 { width: 48px; } .skl.w72 { width: 72px; } .skl.w110 { width: 110px; } .skl.w150 { width: 150px; }
.col-side { position: relative; }

.card {
  background: var(--card); border: 1px solid var(--bd); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 13px; padding-bottom: 9px; border-bottom: 1px solid #eef1f5;
}
.card-hd h2 { font-size: 14px; font-weight: 600; color: var(--pri); }
.card-hd h2::before {
  content: ''; display: inline-block; width: 3px; height: 13px;
  background: var(--pri); border-radius: 2px; margin-right: 8px;
  vertical-align: -2px;
}
.projfilter { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); }
.projfilter select { padding: 6px 9px; border: 1px solid var(--bd); border-radius: 6px; }
.hint, .desc { font-size: 12px; color: var(--tx2); }
.desc { margin-bottom: 12px; line-height: 1.7; }
.sticky { position: sticky; top: 108px; }
#basicCard { position: sticky; top: 108px; z-index: 45; }
.bfields { display: flex; gap: 22px; flex-wrap: wrap; margin: 2px 0 16px; }
.bfields label { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.bfields input { width: 96px; }

/* ---------- 截止时间控件（勾选 + 周几下拉 + 时间） ---------- */
.dlab { display: flex; align-items: center; gap: 10px; }
.dlab .dlck { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; }
.dlab .dlck input[type="checkbox"] { padding: 0; width: auto; margin: 0; }
.dlinput { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; }
.dlinput select, .dlinput input[type="time"] {
  padding: 8px 10px; border: 1px solid var(--bd); border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--tx1);
}
.dlinput select { width: 96px; }
.dlinput input[type="time"] { width: 124px; }
.dlinput.off select, .dlinput.off input[type="time"] { background: #f4f5f7; color: #9aa4b0; }
.dlinput select:disabled, .dlinput input:disabled { cursor: not-allowed; }
/* 基础信息页：勾选式补传窗口 */
.bpdl { gap: 8px; }
.bpdlck { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bfields input[type="checkbox"] { width: auto; }
#bMeetingBackfill { width: 200px; }

/* ---------- 表单 ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px 14px; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld label { font-size: 12px; color: var(--tx2); }
.fld input, .fld select {
  padding: 7px 9px; border: 1px solid var(--bd); border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff; transition: .15s;
}
.fld input:focus, .fld select:focus {
  outline: none; border-color: var(--pri-l); box-shadow: 0 0 0 3px rgba(66,133,244,.18);
}
.fld .unit { font-size: 11px; color: #9aa5b1; }

/* 考核项分组 */
.grp { margin-bottom: 6px; }
.grp-hd {
  background: #f1f3f5; color: var(--pri); font-weight: 600; font-size: 12.5px;
  padding: 7px 11px; border-radius: 6px; margin-bottom: 10px;
  border-left: 3px solid var(--pri);
}
.grp-hd.autohd { background: #eaf7ef; color: var(--pos); border-left-color: var(--pos); }
.grp-bd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
@media (max-width: 900px) { .grp-bd { grid-template-columns: repeat(2, 1fr); } }
.fld .fhint { font-size: 11px; color: #98a2b3; }
.fld input.auto-read { background: #f2f5f8; color: var(--tx2); }

/* ---------- 右侧结果 ---------- */
.result .big {
  background: linear-gradient(120deg,#4285f4,#336fd9); color: #fff;
  border-radius: 9px; padding: 14px 16px; margin-bottom: 12px;
}
.big-label { display: block; font-size: 12px; opacity: .8; margin-bottom: 3px; }
.big-num { font-size: 30px; font-weight: 700; letter-spacing: .5px; }
.rt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rt td { padding: 6px 2px; border-bottom: 1px dashed #eef1f5; }
.rt td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rt tr.sep td { border-top: 1px solid var(--bd); padding-top: 8px; color: var(--tx2); }
.rt .neg { color: var(--neg); }
.rt .pos { color: var(--pos); }
.side-tip {
  margin-top: 12px; font-size: 11.5px; color: #98a2b3; line-height: 1.6;
  background: #f7f9fb; padding: 9px 11px; border-radius: 7px;
}
.warnbox {
  margin-top: 11px; background: var(--warn-bg); border: 1px solid var(--warn-bd);
  color: #8a5a00; border-radius: 7px; padding: 9px 11px; font-size: 12px;
}

/* ---------- 按钮 ---------- */
.btn {
  padding: 8px 15px; border: 1px solid var(--bd); background: #fff; color: var(--tx);
  border-radius: 7px; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s;
}
.btn:hover { border-color: var(--pri-l); color: var(--pri); background: #f7fafd; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.primary:hover { background: var(--pri-l); border-color: var(--pri-l); color: #fff; }
.btn.big { padding: 11px 22px; font-size: 14px; width: 100%; margin-top: 8px; }
.btn.danger { color: var(--neg); border-color: #eec4be; }
.btn.danger:hover { background: #fdf3f2; border-color: var(--neg); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; align-items: center; gap: 11px; margin: 4px 0 20px; }
.savemsg { font-size: 12.5px; color: var(--pos); }

/* ---------- 筛选条 ---------- */
.filterbar { display: flex; gap: 10px; align-items: center; margin-bottom: 13px; flex-wrap: wrap; }
.filterbar input, .filterbar select {
  padding: 7px 10px; border: 1px solid var(--bd); border-radius: 7px;
  font-size: 13px; font-family: inherit; background: #fff;
}
.filterbar input { min-width: 210px; }
/* ★STEP8 筛选栏里的勾选（如「只看手动系数」） */
.filterbar .bulkck { display: flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
/* ★STEP9 班级档案：兼职班整行高亮 + 兼职系数列强调 */
.dt tbody tr.ptrow { background: #fff8e6; }
.dt tbody tr.ptrow:hover { background: #fff1d4; }
.dt tbody tr.ptrow td.ptcoef { font-weight: 700; color: #b06f00; }
.grow { flex: 1; }

/* ---------- 表格 ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--bd); border-radius: 8px; }
.dt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dt th {
  background: #f1f3f5; color: var(--pri); font-weight: 600; text-align: left;
  padding: 9px 11px; white-space: nowrap; border-bottom: 1px solid var(--bd);
  position: sticky; top: 0;
}
.dt td { padding: 8px 11px; border-bottom: 1px solid #f2f5f8; white-space: nowrap; }
.dt tbody tr:hover { background: #f8fbfe; }
.dt .num { text-align: right; font-variant-numeric: tabular-nums; }
.dt .neg { color: var(--neg); font-weight: 600; }
.dt .final { color: var(--pri); font-weight: 700; }
.dt tr.warnrow { background: #fff6f5; }
.dt tr.sum td { background: #f1f3f5; font-weight: 700; border-top: 2px solid var(--bd); }
.tablefoot { margin-top: 10px; font-size: 12.5px; color: var(--tx2); }
.tag {
  display: inline-block; padding: 1px 7px; border-radius: 20px;
  font-size: 11px; background: #f1f3f5; color: var(--pri); margin-right: 4px;
}
.tag.red { background: #fdecea; color: var(--neg); }
.tag.amber { background: var(--warn-bg); color: #8a5a00; }
.tag.green { background: #e8f5e9; color: #2e7d32; }
.tag.blue { background: #e8f0fe; color: #1a56db; }
.tag.orange { background: #fff3e0; color: #c05621; }
.tag.purple { background: #f3e8ff; color: #6b21a8; }
.tag.mut { background: #f1f3f5; color: #868e96; }

/* ---------- 登录页 ---------- */
.login-wrap {
  display: none; position: fixed; inset: 0; z-index: 500;
  align-items: center; justify-content: flex-end;
  padding-right: clamp(32px, 7vw, 140px);
  background: #1f2937;
}
.login-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(1.16) saturate(1.05);
}
.login-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .10);
}
.login-card {
  position: relative; z-index: 2;
  width: 400px; max-width: calc(100% - 48px);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  padding: 34px 32px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.school-logo { display: block; width: 230px; height: auto; margin: 0 auto 14px; }
.school-logo-top { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 3px 8px; display: block; }
.login-brand .logo {
  display: inline-flex; width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand); color: #fff; font-size: 22px; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 10px;
}
.login-brand h1 { font-size: 19px; margin: 0 0 4px; color: var(--pri); }
.login-brand p { font-size: 12px; color: var(--tx2); margin: 0; }
.login-card .fld { margin-bottom: 14px; }
.login-card .fld label { display: block; font-size: 12px; color: var(--tx2); margin-bottom: 6px; }
.login-card .fld input {
  width: 100%; box-sizing: border-box; padding: 11px 13px; font-size: 14px;
  border: 1px solid rgba(15, 23, 42, .15); border-radius: 8px; outline: none;
  background: rgba(255, 255, 255, .82); transition: border .15s;
}
.login-card .fld input:focus { border-color: var(--pri); }
.lg-err { min-height: 18px; font-size: 12px; color: var(--neg); margin: 4px 0 10px; }
.lg-btn {
  width: 100%; padding: 12px; font-size: 15px; font-weight: 600;
  background: var(--pri); color: #fff; border: none; border-radius: 8px;
  cursor: pointer; transition: filter .15s;
}
.lg-btn:hover { filter: brightness(1.1); }
.lg-btn:disabled { opacity: .6; cursor: default; }
.lg-foot { text-align: center; font-size: 11px; color: #5f6b7a; margin-top: 18px; line-height: 1.7; }
.lg-forgot { text-align: right; margin-top: 10px; }
.lg-link { background: none; border: none; color: var(--pri); font-size: 12px; cursor: pointer; padding: 0; }
.lg-link:hover { text-decoration: underline; }
.fp-title { font-size: 15px; font-weight: 600; color: var(--pri); margin-bottom: 14px; }
.fp-err { min-height: 18px; font-size: 12px; color: var(--neg); margin: 4px 0 10px; }
.fp-step .fld { margin-bottom: 14px; }
.fp-back { text-align: center; margin-top: 12px; }

/* ---------- 顶栏用户菜单 ---------- */
.userbox { position: relative; margin-left: 10px; }
.userbox .ubtn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff;
  border-radius: 20px; padding: 6px 13px 6px 6px; font-size: 13px;
  border: none;
}
.userbox .ubtn:hover { background: rgba(255, 255, 255, .2); }
.userbox .uavatar {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--pri);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex: none;
}
.userbox .ubtn .uinfo { text-align: left; line-height: 1.25; }
.userbox .ubtn .uinfo b { display: block; font-size: 12.5px; font-weight: 600; }
.userbox .ubtn .uinfo i { font-style: normal; font-size: 10.5px; opacity: .8; }
.userbox .umenu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  min-width: 150px; overflow: hidden; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.userbox.open .umenu { opacity: 1; visibility: visible; transform: translateY(0); }
.userbox .umenu button {
  display: block; width: 100%; text-align: left; padding: 10px 15px;
  background: none; border: none; font-size: 13px; color: #2b3a4f; cursor: pointer;
}
.userbox .umenu button:hover { background: #f2f6fc; color: var(--pri); }
.userbox .umenu .usplit { height: 1px; background: #eef1f6; }
.userbox .umenu .trust-status { padding: 6px 15px; font-size: 12px; color: #6b7a90; line-height: 1.5; }

/* ---------- 批量操作条 ---------- */
.bulkbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 14px; margin: 0 0 10px;
  background: #f7faff; border: 1px solid #e2ebf7; border-radius: 9px;
  font-size: 12.5px; color: #4a5a70;
}
.bulkbar .grow { flex: 1; }
.bulkbar .bulkinfo b { color: var(--pri); font-size: 14px; }
.bulkbar .sep { width: 1px; height: 18px; background: #dbe5f1; }
.bulkbar .bulkck { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.bulkbar select {
  padding: 5px 8px; border: 1px solid #d5dce6; border-radius: 7px;
  font-size: 12.5px; color: #2b3a4f; background: #fff; outline: none;
}
.bulkbar .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 角色说明条 ---------- */
.rolelegend {
  display: flex; flex-direction: column; gap: 5px;
  padding: 11px 15px; margin: 0 0 12px;
  background: #fbfcfe; border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0; font-size: 12.5px; color: #5a6b80; line-height: 1.6;
}
.rolelegend b { color: #1f2f47; }

/* ---------- 账号弹窗（复用 cform） ---------- */
.modal .cform label.wide { grid-column: 1 / -1; }
.modal .calcbox { font-size: 12.5px; line-height: 1.7; }

/* ---------- 拖拽上传 ---------- */
.drop {
  border: 2px dashed #c3cdd8; border-radius: 10px; padding: 34px 20px;
  text-align: center; cursor: pointer; transition: .18s; background: #fafcfe;
}
.drop:hover, .drop.over { border-color: var(--pri-l); background: #f1f7fd; }
.drop-ico { font-size: 30px; color: var(--pri-l); margin-bottom: 7px; }
.drop p { font-size: 13.5px; color: var(--tx); margin-bottom: 4px; }
.drop small { font-size: 11.5px; color: var(--tx2); }
.import-log { margin-top: 13px; font-size: 12.5px; max-height: 210px; overflow-y: auto; }
.import-log .li { padding: 6px 10px; border-radius: 6px; margin-bottom: 5px; }
.import-log .ok { background: #eaf7ef; color: var(--pos); }
.import-log .er { background: #fdecea; color: var(--neg); }
/* ---------- 上传进度条 ---------- */
.upload-progress {
  margin-top: 14px; padding: 12px 14px 11px;
  border: 1px solid var(--bd); border-radius: 10px;
  background: #fbfcfe; box-shadow: 0 1px 3px rgba(16,24,40,.04);
  transition: opacity .35s ease, transform .35s ease;
}
.upload-progress[hidden] { display: none; }
.upload-progress.up-in { animation: upIn .3s cubic-bezier(.16,1,.3,1); }
.upload-progress.is-leave { opacity: 0; transform: translateY(-6px); }
@keyframes upIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.up-head { display: flex; align-items: center; gap: 8px; }
.up-ico { width: 20px; height: 20px; display: grid; place-items: center; flex: none; font-size: 15px; line-height: 1; }
.up-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--bd); border-top-color: var(--pri); animation: upSpin .7s linear infinite; }
@keyframes upSpin { to { transform: rotate(360deg); } }
.up-ico .ok-ico { color: var(--pos); font-weight: 700; animation: upPop .5s cubic-bezier(.34,1.56,.64,1); }
.up-ico .er-ico { color: var(--neg); font-weight: 700; animation: upPop .35s ease; }
@keyframes upPop { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.28); opacity: 1; } 100% { transform: scale(1); } }
.up-status { font-size: 13px; font-weight: 600; color: var(--tx1); }
.up-pct { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--pri); font-variant-numeric: tabular-nums; }
.up-track { margin-top: 9px; height: 9px; border-radius: 999px; background: #eef1f5; overflow: hidden; box-shadow: inset 0 1px 2px rgba(16,24,40,.08); }
.up-fill {
  height: 100%; width: 0%; position: relative; overflow: hidden; border-radius: 999px;
  background: linear-gradient(90deg, var(--pri), var(--pri-l));
  transition: width .45s cubic-bezier(.16,1,.3,1), background .3s ease;
}
.up-fill::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 9px, rgba(255,255,255,0) 9px 18px);
  background-size: 25px 25px; animation: upFlow 1s linear infinite;
}
.up-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%);
  transform: translateX(-100%); animation: upShimmer 1.7s ease-in-out infinite;
}
@keyframes upFlow { from { background-position: 0 0; } to { background-position: 25px 0; } }
@keyframes upShimmer { to { transform: translateX(100%); } }
.up-foot { margin-top: 7px; font-size: 12px; color: var(--tx2); }
.upload-progress.is-read .up-track { animation: upBreathe 1.8s ease-in-out infinite; }
@keyframes upBreathe {
  0%, 100% { box-shadow: inset 0 1px 2px rgba(16,24,40,.08), 0 0 0 0 rgba(66,133,244,.14); }
  50% { box-shadow: inset 0 1px 2px rgba(16,24,40,.08), 0 0 0 5px rgba(66,133,244,.05); }
}
.upload-progress.is-ok .up-fill { background: var(--pos); }
.upload-progress.is-ok .up-pct, .upload-progress.is-ok .up-status { color: var(--pos); }
.upload-progress.is-err .up-fill { background: var(--neg); }
.upload-progress.is-err .up-pct, .upload-progress.is-err .up-status { color: var(--neg); }
.upload-progress.is-err .up-track { animation: upShake .45s ease; }
@keyframes upShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.upload-progress.is-ok .up-fill::before, .upload-progress.is-ok .up-fill::after,
.upload-progress.is-err .up-fill::before, .upload-progress.is-err .up-fill::after { display: none; }
.drop.is-busy { pointer-events: none; opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .up-fill::before, .up-fill::after, .up-spin, .upload-progress.is-read .up-track, .up-ico .ok-ico { animation: none; }
}

.bullet { margin: 0 0 12px 18px; font-size: 12.5px; color: var(--tx2); line-height: 1.9; }
.bullet code { background: #f1f3f5; padding: 1px 6px; border-radius: 4px; color: var(--pri); font-size: 12px; }

/* ---------- 弹窗 ---------- */
.modal {
  display: none; position: fixed; inset: 0; background: rgba(16,24,40,.5);
  z-index: 100; padding: 40px 20px; overflow-y: auto;
}
.modal.show { display: block; }
.modal-box {
  background: #fff; border-radius: 11px; max-width: 700px; margin: 0 auto;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.modal-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; background: var(--pri); color: #fff;
}
.modal-hd h3 { font-size: 15px; font-weight: 600; }
.modal-hd button {
  background: transparent; border: none; color: #fff; font-size: 24px;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.modal-bd { padding: 18px 20px; max-height: 66vh; overflow-y: auto; }

.dsec { font-size: 13px; font-weight: 600; color: var(--pri); margin: 14px 0 7px;
        padding-bottom: 5px; border-bottom: 1px solid #eef1f5; }
.dsec:first-child { margin-top: 0; }
.dtb { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dtb td { padding: 5px 8px; border-bottom: 1px solid #f5f7fa; }
.dtb td:first-child { color: var(--tx2); width: 58%; }
.dtb td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.dtb tr.hl td { background: #f1f3f5; color: var(--pri); font-weight: 700; }
.dtb.detail4 th { padding: 5px 8px; border-bottom: 1px solid #e0e6ed; text-align: left; color: var(--tx2); font-weight: 600; }
.dtb.detail4 td:first-child { width: auto; }
.dtb.detail4 td:nth-child(3) { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--neg); }
.dtb.detail4 td:last-child { text-align: left; font-weight: 400; color: var(--tx2); }

/* ---------- 班级编辑弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16,24,40,.5); z-index: 200;
  padding: 40px 20px; overflow-y: auto;
}
.modal-mask .modal {
  display: block; position: static; background: #fff; border-radius: 11px;
  max-width: 720px; margin: 0 auto; padding: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.28); overflow: hidden;
}
.modal-mask .modal h3 {
  font-size: 15px; font-weight: 600; color: #fff; background: var(--pri);
  padding: 14px 20px; margin: 0;
}
.cform {
  padding: 18px 20px; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;
}
.cform label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--tx2); }
.cform label input, .cform label select {
  padding: 8px 10px; border: 1px solid var(--bd); border-radius: 6px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--tx1);
}
.cform label input:focus, .cform label select:focus {
  outline: none; border-color: var(--pri-l); box-shadow: 0 0 0 3px rgba(66,133,244,.18);
}
.calcbox {
  margin: 0 20px; padding: 12px 14px; border-radius: 8px;
  background: #f6f9fd; border: 1px solid #e3ecf7; font-size: 13px; color: var(--tx2);
}
.calcbox b { color: var(--pri); font-size: 15px; }
.calcbox b.hl { color: #d97706; font-size: 17px; }
.cnote { font-size: 12px; color: var(--tx2); margin-left: 8px; }
/* ---------- 手动人数系数 ---------- */
.coefwrap { display: flex; align-items: center; gap: 6px; }
.coefwrap input { flex: 1; min-width: 0; }
.coefwrap .btn.sm { padding: 6px 10px; line-height: 1; }
.coefcell { cursor: pointer; }
.coefcell:hover { background: #eef4fd; box-shadow: inset 0 0 0 1px var(--pri-l); }
.coefcell .mstar { color: #d97706; font-style: normal; font-weight: 700; }
.coefinput { width: 64px; padding: 3px 6px; border: 1px solid var(--pri-l); border-radius: 5px;
  font-size: 12px; font-family: inherit; text-align: right; color: var(--tx1); }
.mtag { display: inline-block; padding: 1px 6px; margin-left: 3px; border-radius: 4px;
  background: #fff3d6; color: #b45309; font-size: 11px; }
.cfimp { margin-top: 10px; padding: 10px 12px; border-radius: 7px;
  background: #fffdf5; border: 1px solid #f3e4c0; font-size: 12.5px; line-height: 1.75; }
.cfimph { font-weight: 600; margin-bottom: 4px; }
.cnote2 { margin-top: 8px; font-size: 12px; color: var(--tx2); }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px 18px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%) translateY(70px);
  background: #1f2933; color: #fff; padding: 11px 22px; border-radius: 8px;
  font-size: 13.5px; opacity: 0; transition: .25s; z-index: 200; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--neg); }
.empty { padding: 34px; text-align: center; color: #98a2b3; font-size: 13px; }

/* ---------- 批量操作二次确认弹窗 ---------- */
.cfbox { max-width: 560px !important; }
.cfsum {
  padding: 16px 20px 4px; font-size: 13.5px; line-height: 1.85; color: var(--tx1);
}
.cfsum b { color: var(--pri); }
.cfsum .cw { color: #c2410c; font-size: 12.5px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 6px; padding: 6px 10px; display: inline-block; margin-top: 8px; }
.cfw { margin: 6px 20px 0; border: 1px solid var(--bd); border-radius: 7px; background: #fafbfc; }
.cfw summary {
  cursor: pointer; padding: 8px 12px; font-size: 12.5px; color: var(--pri);
  user-select: none; list-style: none;
}
.cfw summary::-webkit-details-marker { display: none; }
.cfw summary::before { content: '▸ '; }
.cfw[open] summary::before { content: '▾ '; }
.cfwlist {
  padding: 4px 12px 10px; font-size: 12px; color: var(--tx2); line-height: 1.9;
  max-height: 210px; overflow-y: auto; font-family: ui-monospace, Menlo, monospace;
}
#cfOk { background: #dc2626; }
#cfOk:hover { background: #b91c1c; }
/* ---------- 改班级档案的确认弹窗（逐月影响面） ---------- */
.cfchgt { font-weight: 600; margin: 10px 0 2px; }
.cfchg { padding: 1px 0; }
.cfold { color: var(--tx2); text-decoration: line-through; }
.cfnoaff { color: var(--tx2); font-size: 12px; }
.cfscroll {
  margin: 6px 0 2px; border: 1px solid var(--bd); border-radius: 6px;
  max-height: 170px; overflow-y: auto; background: #fff;
}
.cfrow {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px;
  font-size: 12.5px; border-bottom: 1px solid #f2f4f7;
}
.cfrow:last-child { border-bottom: 0; }
.cfrow.cflock { background: #f7f8fa; color: var(--tx2); }
.cfrow.cfopen { background: #fffaf0; }
.cfm { font-weight: 600; min-width: 60px; color: var(--tx1); }
.cfrow.cflock .cfm { color: var(--tx2); }
.cfbadge { font-size: 11px; padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.cfrow.cflock .cfbadge { background: #eceef1; color: #6b7280; }
.cfrow.cfopen .cfbadge { background: #ffedd5; color: #b45309; }
.cfn { min-width: 46px; }
.cfres { margin-left: auto; font-size: 12px; }
.cfrow.cflock .cfres { color: var(--tx2); }
.cfrow.cfopen .cfres { color: #b45309; font-weight: 600; }
.cfpeer {
  margin-top: 8px; padding: 7px 10px; border-radius: 6px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-weight: 700; font-size: 12.5px; line-height: 1.7;
}
.cfpeer b { color: #dc2626; }
.cflocktip {
  margin-top: 9px; padding: 8px 11px; border-radius: 6px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  font-size: 12.5px; line-height: 1.7;
}
.cfbox.cfsafe #cfOk { background: var(--pri); }
.cfbox.cfsafe #cfOk:hover { background: var(--pri-l); }


/* ============ 考核项目勾选（考评员分权） ============ */
#umProjWrap { grid-column: 1 / -1; }
.projhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px; font-size: 13px; flex-wrap: wrap;
}
.projhead em { font-style: normal; font-size: 12px; }
.projquick { display: flex; gap: 6px; }
.btn.xs { padding: 4px 10px; font-size: 11.5px; line-height: 1.7; }
.projgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 6px 12px;
  max-height: 360px; overflow-y: auto;
  border: 1px solid var(--bd); border-radius: 8px;
  background: #fafbfc; padding: 10px;
}
.projcatlab {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 600; color: var(--pri);
  padding: 6px 0 4px; border-bottom: 1px dashed var(--bd); margin-bottom: 2px;
}
.projchk {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  padding: 5px 8px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 400; margin: 0;
  transition: background .12s;
  white-space: nowrap;
}
.projchk:hover { background: #eef2f7; }
.projchk.on { background: #e8f0fe; }
.projchk input { width: auto; margin: 0; flex: 0 0 auto; }
.projchk span { flex: 0 0 auto; font-weight: 500; }
.projchk em { flex: 1 1 auto; text-align: right; font-size: 11.5px; font-style: normal; overflow: hidden; text-overflow: ellipsis; }
/* 覆盖 .cform label 的 flex-direction:column，确保复选框在左、文字在右 */
.cform label.projchk { flex-direction: row; align-items: center; gap: 8px; }
#umProjCount { margin-top: 8px; font-size: 12.5px; }
#umProjCount .warn { color: #c2410c; }

/* 录入页：无权录入的项目字段置灰 */
.fld.locked { opacity: .48; }
.fld.locked input, .fld.locked select { background: #f1f3f5 !important; cursor: not-allowed; }
.fbadge {
  display: inline-block; margin-left: 6px; font-size: 10.5px;
  padding: 1px 6px; border-radius: 4px;
  background: #fee2e2; color: #b91c1c; vertical-align: middle;
}
.minebar {
  margin: 0 0 12px; padding: 9px 14px; border-radius: 8px; font-size: 13px;
  background: #eef6ff; border: 1px solid #bfdbfe; color: #1e40af;
}
.minebar b { color: #1d4ed8; }
.minebar .mut { color: #3b82f6; font-size: 12px; }

/* ============ 操作日志 ============ */
.olstat {
  margin: 0 0 12px; padding: 9px 14px; border-radius: 8px; font-size: 13px;
  background: #f7f9fc; border: 1px solid #e3e9f2; color: var(--ink, #24303f);
}
.olstat b { color: #1d4ed8; }
.olsum { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.rowbad { background: #fff8f7; }
.rowbad:hover { background: #fff1ef; }
.olok { color: #2e7d32; font-weight: 600; }
.olbad { color: var(--neg, #c62828); font-weight: 700; }
.oltag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: #eef2f7; color: #46586e;
}
.ol-login       { background: #e8f5e9; color: #2e7d32; }
.ol-login_fail  { background: #fdecea; color: #c62828; }
.ol-logout      { background: #eef2f7; color: #55677d; }
.ol-change_pwd  { background: #e8f0fe; color: #1a56db; }
.ol-set_pwd     { background: #fff3e0; color: #c05621; }
.ol-reset_pwd   { background: #fff8e1; color: #8a5a00; }
.ol-user_add    { background: #e6f7ef; color: #1b7a4b; }
.ol-user_edit   { background: #eef6ff; color: #1e40af; }
.ol-user_del    { background: #fdecea; color: #c62828; }
.ol-user_toggle { background: #f3e8ff; color: #6b21a8; }
.pager {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 4px 2px;
}
.pager .pgtext { font-size: 13px; color: #5b6b80; padding: 0 6px; }
.pager .btn[disabled] { opacity: .42; cursor: not-allowed; }
.pager select {
  margin-left: auto; padding: 5px 8px; border-radius: 8px;
  border: 1px solid #d5dde9; font-size: 12.5px; background: #fff;
}
.chk-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #46586e; white-space: nowrap;
}
.chk-inline input { width: auto; margin: 0; }


/* ============ 二级学院考核 ============ */
.dt .pos { color: var(--pos); font-weight: 600; }
.lk { color: var(--pri); cursor: pointer; text-decoration: none; margin-right: 10px; }
.lk:hover { text-decoration: underline; }
.caform { max-height: 62vh; overflow-y: auto; padding-right: 6px; }
.caform-score { background: #f1f3f5; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px;
  font-weight: 600; color: var(--pri); font-size: 13px; position: sticky; top: 0; z-index: 2; }
.casec { margin: 16px 0 6px; font-size: 14px; color: var(--pri); border-left: 3px solid var(--brand); padding-left: 8px; }
.casec:first-of-type { margin-top: 0; }
.casec-title { font-size: 12.5px; color: var(--tx2); font-weight: 600; margin: 10px 0 4px; }
.ca-field { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f3f5f8; font-size: 12.5px; }
.ca-field .ca-label { flex: 0 0 240px; color: var(--tx); }
.ca-field .ca-auto { flex: 0 0 120px; color: #3b82f6; font-weight: 600; font-variant-numeric: tabular-nums; }
.ca-field input[type=number] { width: 96px; }
.ca-field .ca-unit { color: #9aa5b1; font-size: 11px; }
.ca-field.veto { font-size: 12.5px; }
.ca-field.veto input { margin-right: 6px; }
.ca-actions { display: flex; gap: 10px; margin-top: 16px; position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; }
.detail-wrap { max-height: 62vh; overflow-y: auto; }
.dsum { display: flex; flex-wrap: wrap; gap: 8px 20px; background: #f1f3f5; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 8px; font-size: 13px; }
.dsum b { font-size: 16px; color: var(--pri); }
.mut { color: #98a2b3; font-size: 11px; margin-top: 2px; }

.uploader-bar { display: flex; align-items: center; gap: 10px; padding: 0 20px 12px; flex-wrap: wrap; }
.uploader-chks { display: flex; gap: 14px; flex-wrap: wrap; }


/* ============ 移动端响应式 ============ */
.mnav-btn {
  display: none; flex: none; width: 42px; height: 42px;
  background: rgba(255,255,255,.14); border: none; border-radius: 9px;
  cursor: pointer; padding: 0; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.mnav-btn span { display: block; width: 19px; height: 2px; background: #fff; border-radius: 2px; }
.mnav-mask { display: none; }

@media (max-width: 768px) {
  .mnav-btn { display: flex; }
  .topbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 10px 14px; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand h1 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand .school-logo-top { height: 26px; padding: 2px 6px; }
  .userbox { margin-left: auto; flex: none; }

  /* 抽屉导航 */
  .tabs {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 400;
    width: 78%; max-width: 300px; margin: 0; gap: 2px;
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 12px 48px;
    overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.25);
    transform: translateX(-100%); transition: transform .25s ease;
  }
  body.nav-open .tabs { transform: translateX(0); }
  .tabs button {
    display: block; width: 100%; text-align: left;
    color: var(--tx1); background: none; border-radius: 8px;
    padding: 12px 14px; font-size: 14px; border: none; margin: 0;
  }
  .tabs button:hover { background: #f2f6fc; color: var(--pri); }
  .tabs button.active { background: #eaf1fe; color: var(--pri); font-weight: 600; }
  .navmenu { position: static; }
  .navmenu .navmenu-drop {
    position: static; min-width: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    display: none; background: #f6f8fb; border-radius: 8px;
    margin: 2px 0 6px; padding: 4px 0;
  }
  .navmenu.open .navmenu-drop { display: block; }
  .navmenu .navmenu-drop button { padding: 11px 14px 11px 26px; font-size: 13.5px; }
  .mnav-mask {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 40; opacity: 0; visibility: hidden; transition: opacity .25s ease;
  }
  body.nav-open .mnav-mask { opacity: 1; visibility: visible; }

  /* 布局 */
  main { padding: 12px 12px 48px; }
  .layout, .two { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grp-bd { grid-template-columns: 1fr; }
  .card { padding: 14px 12px; }
  .bfields { gap: 12px; }
  .bfields label { width: 100%; }
  .bfields input { width: 100%; }
  .sticky, #basicCard { position: static; }

  /* 筛选条换行 */
  .filterbar { gap: 8px; }
  .filterbar input, .filterbar select { min-width: 0; flex: 1 1 auto; }
  .filterbar .grow { display: none; }

  /* 触控目标 + 防 iOS 缩放 */
  .btn { min-height: 42px; }
  .fld input, .fld select, .filterbar input, .filterbar select {
    font-size: 16px; min-height: 40px;
  }

  /* 弹窗 */
  .modal { padding: 16px 10px; }
  .modal-box { max-width: none; }
  .modal-bd { max-height: 70vh; }
  .modal-mask { padding: 16px 10px; }
  .modal-mask .modal { max-width: none; }
}


/* ============ 移动端横向溢出修复 ============ */
@media (max-width: 768px) {
  .brand h1 { display: none; }
  .brand { gap: 0; }
  .brand .school-logo-top { height: 22px; padding: 2px 5px; }
  .grid4 .fld, .grp-bd .fld { min-width: 0; }
  .fld input, .fld select { width: 100%; min-width: 0; }
  .projgrid { grid-template-columns: 1fr; }
  .ca-field { flex-wrap: wrap; }
  .ca-field .ca-label { flex: 1 1 100%; }
  .cform { grid-template-columns: 1fr; }
  .modal .cform label.wide { grid-column: auto; }
}


/* ============ 移动端卡片化（汇总/记录） ============ */
.cd-sub { display: none; }
@media (max-width: 768px) {
  .dt-cards { border: none; }
  .dt-cards thead { display: none; }
  .dt-cards, .dt-cards tbody, .dt-cards tr, .dt-cards td { display: block; width: auto; }
  .dt-cards tbody { display: flex; flex-direction: column; gap: 10px; }
  .dt-cards tr {
    border: 1px solid var(--bd); border-radius: 12px;
    padding: 12px 14px; background: #fff; margin: 0;
    box-shadow: 0 1px 3px rgba(16,24,40,.05);
  }
  .dt-cards td {
    display: flex; justify-content: space-between; align-items: baseline;
    border: none !important; padding: 4px 0; white-space: normal; text-align: right; gap: 12px;
  }
  .dt-cards td::before {
    content: attr(data-label);
    color: var(--tx2); font-size: 12px; flex: none; text-align: left;
  }
  .dt-cards td.cd-month, .dt-cards td.cd-check,
  .dt-cards td.cd-college, .dt-cards td.cd-counselor { display: none; }
  .dt-cards td.cd-title {
    display: block; text-align: left;
    font-size: 15px; font-weight: 700; color: var(--tx1);
    padding: 0 0 8px; margin-bottom: 6px; border-bottom: 1px solid #eef1f5;
  }
  .dt-cards td.cd-title::before { content: none; }
  .dt-cards td.cd-title .cd-sub {
    display: block; font-size: 12px; font-weight: 400; color: var(--tx2); margin-top: 3px;
  }
  .dt-cards td.cd-pay {
    margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--bd);
    font-size: 15px; font-weight: 700; color: var(--pri);
  }
  .dt-cards td.cd-pay::before { font-weight: 600; color: var(--tx1); }
  .dt-cards td.cd-ops { justify-content: flex-start; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
  .dt-cards td.cd-ops::before { content: none; }
  .dt-cards td.empty { display: block; text-align: center; }
  .dt-cards td.empty::before { content: none; }
}
/* 班会资料 - 文件下载链接 */
.mmfile { color: var(--pri); text-decoration: none; }
.mmfile:hover { text-decoration: underline; }


/* ============ 班会资料：状态徽标 / 审核 / 预览 ============ */
.mm-status {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.mm-st-pending  { background: color-mix(in srgb, var(--tx2) 12%, transparent); color: var(--tx2); }
.mm-st-approved { background: color-mix(in srgb, var(--pos) 12%, transparent); color: var(--pos); }
.mm-st-rejected { background: color-mix(in srgb, var(--neg) 12%, transparent); color: var(--neg); }
.mm-st-reviewing { background: color-mix(in srgb, var(--pri) 12%, transparent); color: var(--pri); }
.mm-st-rejected-final { background: color-mix(in srgb, #991b1b 12%, transparent); color: #991b1b; }
/* ============ 班会开展：完成情况 ============ */
.mm-st-exempted { background: color-mix(in srgb, var(--warn-bd) 18%, transparent); color: #b45309; }
.mm-seg { display: inline-flex; border: 1px solid var(--bd); border-radius: 8px; overflow: hidden; }
.mm-seg-btn { border: 0; background: transparent; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--tx); }
.mm-seg-btn.active { background: var(--pri); color: #fff; }
.mm-sub-note { font-size: 11px; color: var(--tx2); margin-left: 4px; }
.mm-pct { font-weight: 600; }
.mm-pct-low { color: var(--neg); }
.mm-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mm-sub-table { margin: 0; }
.mm-sub-table th, .mm-sub-table td { padding: 6px 10px; font-size: 12.5px; }

.mm-tc { text-align: center; }

.mm-comment {
  display: inline-block; max-width: 180px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}
.mm-hist { color: var(--pri); font-size: 12px; text-decoration: none; }
.mm-hist:hover { text-decoration: underline; }

.mm-hist-row td { background: color-mix(in srgb, var(--tx2) 6%, transparent); padding: 10px 16px; }
.mm-hist-box { display: flex; flex-direction: column; gap: 6px; }
.mm-hist-item { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; }
.mm-hist-act { flex: 0 0 auto; padding: 1px 8px; border-radius: 4px; background: color-mix(in srgb, var(--tx2) 10%, transparent); color: var(--tx1); font-weight: 600; }
.mm-hist-comment { flex: 1; color: var(--tx); word-break: break-all; }
.mm-hist-meta { flex: 0 0 auto; color: var(--tx2); font-size: 11.5px; }

/* --mmpad 跟随 .modal 的上下 padding（移动端 768px 断点被覆盖为 16px，这里同步跟着改） */
.mm-preview { --mmpad: 40px; }
.mm-preview .modal-box {
  width: 90vw; max-width: 1400px;
  display: flex; flex-direction: column;
  height: calc(100vh - var(--mmpad) * 2);
}
.mm-preview-bd { padding: 0; max-height: none; flex: 1 1 auto; min-height: 0; }
.mm-preview-bd iframe { display: block; width: 100%; height: 100%; }
.mm-preview-ops {
  flex: none; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--bd);
}
.mm-preview-ops.is-hidden { display: none; }
.mm-preview-ops .btn:disabled { opacity: .45; cursor: not-allowed; }
.mm-preview-st { display: flex; align-items: center; }
.mm-preview-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 768px) { .mm-preview { --mmpad: 16px; } }

/* ============ 首页 ============ */
.home-hero { padding: 22px 24px; }
.home-hero h2 { font-size: 22px; margin: 0 0 6px; color: var(--tx); }
.home-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.qcard { border: 1px solid var(--bd); border-radius: 10px; padding: 16px; cursor: pointer; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.qcard:hover { border-color: var(--pri); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.qcard b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--tx); }
.qcard span { font-size: 12px; color: var(--tx2); }
.todo-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--bd); border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: var(--card); transition: border-color .15s; }
.todo-item:hover { border-color: var(--pri); }
.todo-count { background: var(--pri); color: #fff; border-radius: 12px; padding: 1px 9px; font-size: 12px; font-weight: 600; min-width: 22px; text-align: center; }
@media (max-width: 720px) { .home-quick { grid-template-columns: 1fr; } }

/* ---- 完成情况筛选：输入匹配下拉（自绘 combo，风格沿用 .navmenu-drop）---- */
.ms-combo { position: relative; }
.ms-combo input { padding-right: 32px; }
.ms-combo .ms-combo-x {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; line-height: 15px; text-align: center; padding: 0;
  border: none; border-radius: 50%; background: #e8edf4; color: #5b6b80;
  font-size: 12px; cursor: pointer;
}
.ms-combo .ms-combo-x:hover { background: #d8e0ea; color: #2b3a4f; }
.ms-combo .ms-combo-panel {
  position: absolute; left: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--bd); border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  min-width: 220px; max-width: 340px; max-height: 280px; overflow-y: auto;
  z-index: 300; padding: 5px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.ms-combo.open .ms-combo-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.ms-combo .ms-combo-item { padding: 7px 12px; cursor: pointer; }
.ms-combo .ms-combo-item.on, .ms-combo .ms-combo-item:hover { background: #f2f6fc; }
.ms-combo .ms-combo-lb { display: block; font-size: 13px; color: #2b3a4f; }
.ms-combo .ms-combo-sub { display: block; font-size: 11.5px; color: #7b8a9e; margin-top: 1px; }
.ms-combo .ms-combo-more, .ms-combo .ms-combo-empty {
  padding: 6px 12px; font-size: 11.5px; color: #93a1b3;
}
.ms-combo .ms-combo-more { border-top: 1px solid #eef1f6; margin-top: 4px; }
@media (max-width: 720px) {
  .ms-combo { flex: 1 1 auto; }
  .ms-combo .ms-combo-panel { max-width: none; }
}

/* ---------- 豁免弹窗：班级搜索框 ---------- */
.mp-grid-search {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 8px; position: relative;
}
.mp-grid-search input {
  flex: 1 1 auto; min-width: 0;
  padding: 6px 28px 6px 10px; border: 1px solid #d5dce6; border-radius: 7px;
  font-size: 12.5px; color: #2b3a4f; background: #fff; outline: none;
}
.mp-grid-search input:focus { border-color: #9db8dd; }
.mp-grid-search .mp-grid-qx {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; line-height: 1; padding: 0;
  border: 0; border-radius: 50%; background: #e7ecf3; color: #6b7a8d;
  font-size: 14px; cursor: pointer;
}
.mp-grid-search .mp-grid-qx:hover { background: #d8e0ea; color: #3b4a5d; }
.mp-grid-list .mp-grid-none { padding: 12px 8px; font-size: 12.5px; }


/* ---------- 导出/下载进行中角标 ---------- */
.dl-tip {
  position: fixed; top: 66px; right: 18px; z-index: 450;
  display: none; align-items: center; gap: 9px;
  background: #1f2933; color: #fff; padding: 9px 16px 9px 13px;
  border-radius: 8px; font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.dl-tip.show { display: flex; }
.dl-spin {
  width: 14px; height: 14px; flex: 0 0 14px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: dlspin .7s linear infinite;
}
@keyframes dlspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dl-spin { animation: none; } }

/* ★STEP10 冻结月归档提示 + 归档值标记 */
.archivetip { margin: 8px 0 10px; padding: 8px 12px; border-left: 3px solid #c88b00;
  background: #fff8e6; color: #7a5200; font-size: 12.5px; line-height: 1.7;
  border-radius: 0 4px 4px 0; }
.archivetip b { color: #a06a00; }
.dt tbody tr.arched td { color: #5b5b5b; }
.archflag { font-style: normal; font-size: 10px; color: #8a6a1f; background: #fdf3d8;
  border: 1px solid #e8d5a3; border-radius: 3px; padding: 0 3px; margin-left: 4px; }
/* ---------- STEP13 通用分页：跳转输入 / 已选提示 ---------- */
.pager .pgjump {
  width: 68px; padding: 5px 8px; border: 1px solid #d5dde9; border-radius: 8px;
  font-size: 12.5px; text-align: center; background: #fff;
}
.recsel { padding: 10px 4px 0; font-size: 13px; color: var(--tx2); }
.recsel b { color: var(--tx1); }

/* ---------- 通用可搜索下拉 Combo（★STEP16 第1批） ---------- */
.combo { position: relative; display: inline-flex; vertical-align: middle; }
.combo > input {
  padding: 7px 28px 7px 10px; border: 1px solid var(--bd); border-radius: 7px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--tx1);
  min-width: 0; width: 100%; box-sizing: border-box;
}
.combo > input:focus { outline: none; border-color: var(--pri); }
.combo .combo-x {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; line-height: 15px; text-align: center; padding: 0;
  border: none; border-radius: 50%; background: #e8edf4; color: #5b6b80;
  font-size: 12px; cursor: pointer; display: none;
}
.combo:hover .combo-x, .combo.open .combo-x { display: block; }
.combo .combo-x:hover { background: #d8e0ea; color: #2b3a4f; }
.combo .combo-panel {
  position: absolute; left: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--bd); border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  min-width: 220px; max-width: 360px; max-height: 280px; overflow-y: auto;
  z-index: 300; padding: 5px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.combo.open .combo-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.combo .combo-item { padding: 7px 12px; cursor: pointer; }
.combo .combo-item.on, .combo .combo-item:hover { background: #f2f6fc; }
.combo .combo-lb { display: block; font-size: 13px; color: #2b3a4f; }
.combo .combo-sub { display: block; font-size: 11.5px; color: #7b8a9e; margin-top: 1px; }
.combo .combo-more, .combo .combo-empty { padding: 6px 12px; font-size: 11.5px; color: #93a1b3; }
.combo .combo-more { border-top: 1px solid #eef1f6; margin-top: 4px; }
@media (max-width: 720px) {
  .combo { flex: 1 1 auto; }
  .combo .combo-panel { max-width: none; }
}
/* ★20261024 第2步：卫生缺报强提示横幅 */
.hm-bar {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid #f0b8b8; background: #fdf2f2; color: #8a1f1f;
  font-size: 13px; line-height: 1.7;
}
.hm-bar[hidden] { display: none; }
.hm-bar .hm-head { font-size: 13.5px; }
.hm-bar .hm-head b { font-size: 15px; color: #c0392b; }
.hm-bar .hm-sub { color: #a34a4a; font-size: 12.5px; }
.hm-bar .hm-list { color: #7b4a4a; font-size: 12px; word-break: break-all; }
/* ===== 版本更新日志（20261024d） ===== */
.ver-tag {
  margin-left: auto;
  border: 1px solid #d8dce6;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.ver-tag:hover { color: #2563eb; border-color: #2563eb; }
.md-body { max-height: 60vh; overflow: auto; line-height: 1.7; font-size: 13.5px; }
.md-body h2 { font-size: 18px; margin: 14px 0 6px; }
.md-body h3 { font-size: 15.5px; margin: 12px 0 4px; }
.md-body h4 { font-size: 14px; margin: 10px 0 4px; color: #1f2937; }
.md-body code { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 4px; padding: 0 4px; font-size: 12.5px; }
.md-body pre { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px; overflow: auto; }
.md-body table { border-collapse: collapse; margin: 8px 0; }
.md-body th, .md-body td { border: 1px solid #e5e7eb; padding: 4px 8px; font-size: 12.5px; }
.md-body th { background: #f3f4f6; }
.md-body blockquote { border-left: 3px solid #d1d5db; margin: 6px 0; padding: 2px 10px; color: #6b7280; }
.md-body ul { margin: 4px 0 8px 18px; list-style: disc; }
.md-body li { margin: 2px 0; }
.md-body hr { border: 0; border-top: 1px dashed #d1d5db; margin: 12px 0; }

/* ★20261024i 数据看板 */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dash-grid .card { min-width: 0; }
.dash-grid .card:last-child { grid-column: 1 / -1; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
/* ★20261024m 看板空数据占位 */
.dash-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 14px; background: transparent; pointer-events: none; }

/* ★20261024o 出勤月报 · 学院平均到课率排行榜 */
.rk-list { padding: 4px 20px 16px; }
.rk-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #eef2f7; }
.rk-row:last-child { border-bottom: none; }
.rk-name { flex: none; width: 180px; max-width: 38%; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-bar { flex: 1 1 auto; height: 14px; background: #f1f5f9; border-radius: 7px; overflow: hidden; min-width: 80px; }
.rk-fill { display: block; height: 100%; border-radius: 7px; transition: width .4s ease; }
.rk-rate { flex: none; min-width: 64px; text-align: center; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 10px; }
.rk-meta { flex: none; width: 150px; text-align: right; color: #94a3b8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .rk-meta { display: none; } .rk-name { width: 110px; } }

/* ★20261024j 通知中心 */
.ntfbox { position: relative; display: inline-flex; margin-right: 10px; }
.ntf-bell { position: relative; background: none; border: none; font-size: 19px; cursor: pointer; padding: 4px 6px; line-height: 1; }
.ntf-dot { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; border-radius: 8px; background: #e11d48; color: #fff; font-size: 10.5px; line-height: 16px; text-align: center; padding: 0 3px; font-weight: 600; }
.ntf-panel { position: absolute; right: 0; top: 36px; width: 340px; max-width: 92vw; background: var(--card, #fff); border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.15); z-index: 60; overflow: hidden; }
.ntf-hd { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; font-weight: 600; border-bottom: 1px solid #f1f5f9; }
.ntf-hd .btn { padding: 2px 10px; font-size: 12px; }
.ntf-list { max-height: 380px; overflow: auto; }
.ntf-empty { padding: 26px 0; text-align: center; color: #94a3b8; font-size: 13px; }
.ntf-item { padding: 9px 12px; border-bottom: 1px solid #f8fafc; cursor: default; }
.ntf-item.unread { background: #eff6ff; cursor: pointer; }
.ntf-item.unread:hover { background: #dbeafe; }
.ntf-item-hd { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.ntf-item-hd b { flex: 1; }
.ntf-unread-dot { width: 7px; height: 7px; border-radius: 4px; background: #e11d48; flex: none; }
.ntf-tag { flex: none; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #f1f5f9; color: #475569; }
.ntf-tag.t-meeting_reject { background: #fef2f2; color: #b91c1c; }
.ntf-tag.t-appeal { background: #fffbeb; color: #b45309; }
.ntf-tag.t-broadcast { background: #ecfdf5; color: #047857; }
.ntf-item-bd { font-size: 12.5px; color: #475569; margin-top: 3px; white-space: normal; word-break: break-all; }
.ntf-item-ft { font-size: 11.5px; color: #94a3b8; margin-top: 3px; }


/* ============================================================
   ★20261024s 移动端体验适配（原生 CSS，无框架）
   1. 班会资料上报：卡片流表单 + 大号文件按钮 + 醒目进度条
   2. 全局表格：移动端限高 + sticky 表头生效；mmTable 卡片化
   3. 全局弹窗：按钮换行不溢出、内容限高可滚动
   4. 通知面板 / 版本标签 窄屏适配
   ============================================================ */

/* ---------- 班会资料上报：mm-form 卡片流表单 ---------- */
.mm-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 13px; }
.mm-form .mm-f { display: flex; flex-direction: column; gap: 4px; }
.mm-form .mm-lb { display: none; font-size: 12px; color: var(--tx2); }
.mm-form input, .mm-form select {
  padding: 7px 10px; border: 1px solid var(--bd); border-radius: 7px;
  font-size: 13px; font-family: inherit; background: #fff; min-width: 0;
}
.mm-form input { min-width: 200px; }
#btnMmPick {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  line-height: 1.3;
}
#btnMmPick .mm-pick-sub { display: none; font-size: 10.5px; font-weight: 400; opacity: .85; }

@media (max-width: 768px) {
  /* 卡片流：垂直堆叠，label 常显，控件整行大触控 */
  .mm-form {
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 14px 12px; border: 1px solid var(--bd); border-radius: 12px;
    background: #fbfcfe; margin-bottom: 14px;
  }
  .mm-form .mm-lb { display: block; font-size: 12.5px; color: var(--tx2); padding-left: 2px; }
  .mm-form input, .mm-form select {
    width: 100%; min-width: 0; font-size: 16px; min-height: 44px;
  }
  /* 大号文件选择按钮：调用系统文件管理器（PDF 走文件 App） */
  #btnMmPick {
    width: 100%; min-height: 64px; font-size: 16.5px; font-weight: 600;
    border-radius: 12px; margin-top: 2px;
  }
  #btnMmPick .mm-pick-sub { display: block; }

  /* 上传进度条：手机端加大加粗，清晰可见 */
  .upload-progress { padding: 14px 14px 13px; border-width: 1.5px; }
  .up-track { height: 13px; }
  .up-pct { font-size: 17px !important; font-weight: 700; }
  .up-status { font-size: 14px; font-weight: 600; }
  .up-foot { font-size: 12.5px; }

  /* 资料记录表：移动端卡片化（td 自带 data-label） */
  #mmTable thead { display: none; }
  #mmTable, #mmTable tbody, #mmTable tr, #mmTable td { display: block; width: auto; }
  #mmTable tbody { display: flex; flex-direction: column; gap: 10px; }
  #mmTable tr {
    border: 1px solid var(--bd); border-radius: 12px; padding: 12px 14px;
    background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.05);
  }
  #mmTable td {
    display: flex; justify-content: space-between; align-items: baseline;
    border: none !important; padding: 4px 0; white-space: normal;
    text-align: right; gap: 12px;
  }
  #mmTable td::before {
    content: attr(data-label); color: var(--tx2); font-size: 12px;
    flex: none; text-align: left; font-weight: 600;
  }
  #mmTable td.mm-tc, #mmTable td.mm-filecell { text-align: right; }
  #mmTable td .btn.sm, #mmTable td .btn.xs { margin: 2px 0 2px 6px; }
  #mmTable td[style] { white-space: normal !important; }
  #mmTable td[colspan] { justify-content: center; text-align: center; color: var(--tx2); }

  /* 审核历史（手风琴展开行）：移动端竖排排版 */
  .mm-hist-row td { padding: 8px 2px 2px; }
  .mm-hist-item { flex-wrap: wrap; gap: 4px 8px; }
  .mm-hist-comment { flex: 1 1 100%; order: 3; }

  /* 全局表格：限高滚动，sticky 表头（.dt th 已全局 sticky）生效 */
  .tablewrap { max-height: 72vh; overflow: auto; -webkit-overflow-scrolling: touch; }
  .dt th { z-index: 2; box-shadow: 0 1px 0 var(--bd); }

  /* 全局弹窗：按钮换行不挤出屏幕、内容限高可滚动 */
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; min-height: 44px; min-width: 120px; }
  .cfbox .cfsum { max-height: 46vh; overflow-y: auto; }
  .modal-mask .modal h3 { word-break: break-word; line-height: 1.45; }

  /* 通知中心 / 版本标签：窄屏不遮挡不溢出 */
  .ntf-panel { width: min(340px, calc(100vw - 20px)); max-width: calc(100vw - 20px); }
  .ntf-list { max-height: 62vh; }
  .ntf-hd { flex-wrap: wrap; gap: 6px; }
  .ver-tag { padding: 4px 9px; font-size: 11px; flex: none; }
  .topbar { column-gap: 6px; }
}
