/* 教材服务平台 · 后台布局样式
   组件外观全部由 element-plus.css 负责，这里只管「外壳怎么摆」+ 组织层级配色
   布局数值照 vue-manage-system：顶栏 70px / 侧栏 250px（收起 64px）/ 内容区 left 250px / 底色 #eef0fc */

/* ---------- 全局重置（同 vue-manage-system main.css） ---------- */
* { margin: 0; padding: 0; outline: 0 !important; }

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'microsoft yahei', arial, STHeiTi, sans-serif;
  font-size: 14px;
  color: var(--el-text-color-regular);
  background: #eef0fc;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
[hidden] { display: none !important; }

:root {
  --header-bg-color: #242f42;
  --header-text-color: #fff;
  --page-bg: #eef0fc;

  /* 组织架构五层配色 */
  --lv0: #409eff; --lv0-bg: #ecf5ff; --lv0-bd: #d9ecff;
  --lv1: #13c2c2; --lv1-bg: #e6fffb; --lv1-bd: #b5f5ec;
  --lv2: #fa8c16; --lv2-bg: #fff7e6; --lv2-bd: #ffe7ba;
  --lv3: #722ed1; --lv3-bg: #f9f0ff; --lv3-bd: #efdbff;
  --lv4: #5b7c99; --lv4-bg: #f5f8fb; --lv4-bd: #e3ebf3;
}

/* ---------- 错误横幅：任何报错都直接显示在页面顶部 ---------- */
.__errbox {
  position: fixed; left: 0; right: 0; top: 0; z-index: 99999;
  background: #fef0f0; color: #f56c6c;
  border-bottom: 1px solid #fde2e2;
  padding: 8px 70px 8px 16px; font-size: 13px; line-height: 1.7;
  max-height: 40vh; overflow: auto;
  font-family: Consolas, Monaco, monospace;
}
.__errbox-line { word-break: break-word; }
.__errbox-close {
  position: absolute; right: 10px; top: 7px;
  background: #fff; border: 1px solid #fde2e2; color: #f56c6c;
  border-radius: 3px; padding: 1px 9px; font-size: 12px; cursor: pointer;
  font-family: inherit;
}
.__errbox-close:hover { background: #f56c6c; color: #fff; border-color: #f56c6c; }

/* ---------- 外框（同 home.vue .wrapper） ---------- */
.wrapper { height: 100vh; overflow: hidden; position: relative; }

/* ---------- 顶栏 70px（同 header.vue） ---------- */
.header {
  display: flex; justify-content: space-between; align-items: center;
  box-sizing: border-box; width: 100%; height: 70px;
  color: var(--header-text-color);
  background-color: var(--header-bg-color);
  border-bottom: 1px solid #ddd;
}

.header-left { display: flex; align-items: center; padding-left: 20px; height: 100%; }
.header-left .logo { display: flex; align-items: center; }
.header-left .logo svg {
  width: 35px; height: 35px; display: block;
  stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.web-title { margin: 0 40px 0 10px; font-size: 22px; white-space: nowrap; }

.collapse-btn {
  display: flex; justify-content: center; align-items: center;
  height: 100%; padding: 0 10px; cursor: pointer;
  opacity: .8; color: #fff;
  transition: opacity .2s ease;
}
.collapse-btn:hover { opacity: 1; }

.header-right { padding-right: 50px; }
.header-user-con { display: flex; height: 70px; align-items: center; }

.btn-icon {
  position: relative; width: 30px; height: 30px; margin: 0 5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--header-text-color);
  transition: opacity .2s ease;
}
.btn-icon:hover { opacity: .75; }
.btn-bell-badge {
  position: absolute; right: 4px; top: 0;
  width: 8px; height: 8px; border-radius: 4px; background: #f56c6c;
}

.user-avator { margin: 0 10px 0 20px; flex: 0 0 auto; }
.el-dropdown-link {
  color: var(--header-text-color); cursor: pointer;
  display: flex; align-items: center; font-size: 14px;
}

/* ---------- 左侧菜单 250px（同 sidebar.vue） ---------- */
.sidebar-el-menu {
  position: absolute; left: 0; top: 70px; bottom: 0;
  overflow-y: scroll; overflow-x: hidden;
  min-height: 100%;
  border-right: 1px solid #26313f;
}
.sidebar-el-menu::-webkit-scrollbar { width: 0; }
/* el-menu 收起宽 = 24(图标) + 20×2(内边距) = 64px，EP 自带 */
.sidebar-el-menu:not(.el-menu--collapse) { width: 250px; }

/* 侧栏菜单不让它随主题变白 */
.sidebar-el-menu .el-menu-item.is-active { background-color: #283446; }

/* ---------- 内容区（同 home.vue .content-box） ---------- */
.content-box {
  position: absolute;
  left: 250px; right: 0; top: 70px; bottom: 0;
  padding-bottom: 30px;
  background: var(--page-bg);
  overflow: hidden;
  display: flex; flex-direction: column;
  -webkit-transition: left .3s ease-in-out;
  transition: left .3s ease-in-out;
}
.content-collapse { left: 65px; }

.content {
  flex: 1; min-height: 0;
  width: auto; padding: 20px;
  overflow-y: scroll; box-sizing: border-box;
}
.content::-webkit-scrollbar { width: 0; }

/* ---------- 页签栏（同 tabs.vue） ---------- */
.tabs-container { position: relative; overflow: hidden; background: #fff; padding: 2px 120px 0 0; flex: 0 0 auto; }
.tabs-container .el-tabs__header { margin-bottom: 0; }
.tabs-container .el-tabs__nav { height: 28px; }
.tabs-container .el-tabs { --el-tabs-header-height: 28px; }

.Tabs-close-box {
  position: absolute; right: 0; top: 0; z-index: 10;
  box-sizing: border-box; padding-top: 1px; text-align: center;
  width: 110px; height: 30px; background: #fff;
  box-shadow: -3px 0 15px 3px rgba(0, 0, 0, .1);
}

/* ---------- 页面切换动画 ----------
   放在页面根节点上：keep-alive 命中时会重新插回 DOM，动画自动重放。
   这比 Vue 的 <transition mode="out-in"> 稳（后者要靠退场结束事件协调，容易卡住）。 */
.page-root { animation: pageIn .18s cubic-bezier(.22, .61, .36, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* 系统开了「减弱动态效果」就关掉（也方便无头截图时用 --force-prefers-reduced-motion 拿到静止画面） */
@media (prefers-reduced-motion: reduce) {
  .page-root { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 页面里常用的间距 ---------- */
.page-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.page-toolbar .grow { flex: 1; }

/* 页面里的筛选条（配合 comp-org-filter.js）
   三行结构：① 一排下拉框 ② 关键字搜索行（可选）③ 单独一行【确认】【重置】 */
.org-filter {
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--el-border-color-lighter);
}
.org-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.org-filter-row .fl { color: var(--el-text-color-secondary); font-size: 13px; white-space: nowrap; }
/* 关键字搜索行：紧挨在【确认】上面 */
.org-filter-search {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 10px; padding: 10px 12px;
  background: var(--el-fill-color-light, #f5f7fa);
  border-radius: var(--el-border-radius-base);
}
.org-filter-search .fl { color: var(--el-text-color-secondary); font-size: 13px; white-space: nowrap; }
.org-filter-search .kw-input .el-input__wrapper { background: #fff; }
.org-filter-search .kw-tip { font-size: 12px; color: var(--el-text-color-placeholder); margin-left: auto; }
.org-filter-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.org-filter-hint { font-size: 12px; color: var(--el-text-color-placeholder); }
.org-filter-hint.warn { color: var(--el-color-warning); }
/* 日期框缩窄一点，别占一整行 */
.org-filter .date-mini .el-input__wrapper { padding-left: 26px; }
.org-filter .date-mini .el-input__prefix { left: 6px; }
.card { background: #fff; border-radius: var(--el-border-radius-base); padding: 18px 20px; }
.ibox { background: #fff; border: 1px solid var(--el-border-color-lighter); border-radius: var(--el-border-radius-base); margin-bottom: 16px; }
.ibox-title { padding: 14px 20px; border-bottom: 1px solid var(--el-border-color-lighter); font-size: 15px; font-weight: 600; color: var(--el-text-color-primary); display: flex; align-items: center; gap: 10px; }
.ibox-title .sub { font-weight: 400; color: var(--el-text-color-secondary); font-size: 12px; }
.ibox-content { padding: 18px 20px 20px; }
.tip-text { color: var(--el-text-color-secondary); font-size: 13px; line-height: 2; }
.mono { font-family: Consolas, Monaco, monospace; }

/* ---------- 数据范围树（管理员设置里勾「能管到哪里」） ---------- */
.scope-tree {
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--el-border-color);
  border-radius: var(--el-border-radius-base);
  padding: 6px 10px;
}
.scope-tree .el-tree-node__content { height: 28px; }

/* ---------- 概览统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.stat-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--el-border-color-lighter);
  border-radius: var(--el-border-radius-base); padding: 20px;
  transition: box-shadow .3s var(--el-transition-function-ease-in-out-bezier), transform .3s var(--el-transition-function-ease-in-out-bezier);
}
.stat-card:hover { box-shadow: 0 2px 14px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.stat-ico { width: 56px; height: 56px; flex: 0 0 56px; border-radius: var(--el-border-radius-base); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; }
.stat-body .num { font-size: 26px; font-weight: 600; color: #1f2d3d; line-height: 1.15; }
.stat-body .lbl { font-size: 13px; color: var(--el-text-color-secondary); margin-top: 5px; }
.stat-blue   .stat-ico { background: var(--el-color-primary); }
.stat-green  .stat-ico { background: var(--el-color-success); }
.stat-orange .stat-ico { background: var(--el-color-warning); }
.stat-red    .stat-ico { background: var(--el-color-danger); }
.stat-gray   .stat-ico { background: var(--el-color-info); }
.stat-cyan   .stat-ico { background: #13c2c2; }
.stat-purple .stat-ico { background: #8b5cf6; }

/* ---------- 学校管理：五层彩色行 + 常驻彩框 ---------- */
.org-tree { max-height: 640px; overflow: auto; padding: 2px; }

.org-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 6px;
  border: 1px solid; border-left-width: 4px;
  border-radius: var(--el-border-radius-base);
  transition: box-shadow .3s var(--el-transition-function-ease-in-out-bezier);
}
.org-row:last-child { margin-bottom: 0; }
.org-row--parent { cursor: pointer; }
.org-row:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }

.org-row.lv0 { background: var(--lv0-bg); border-color: var(--lv0-bd); border-left-color: var(--lv0); padding-left: 14px; }
.org-row.lv1 { background: var(--lv1-bg); border-color: var(--lv1-bd); border-left-color: var(--lv1); padding-left: 38px; }
.org-row.lv2 { background: var(--lv2-bg); border-color: var(--lv2-bd); border-left-color: var(--lv2); padding-left: 62px; }
.org-row.lv3 { background: var(--lv3-bg); border-color: var(--lv3-bd); border-left-color: var(--lv3); padding-left: 86px; }
.org-row.lv4 { background: var(--lv4-bg); border-color: var(--lv4-bd); border-left-color: var(--lv4); padding-left: 110px; }

.org-tag {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  height: 20px; min-width: 34px; padding: 0 8px;
  border-radius: 10px;
  font-size: 11px; color: #fff; letter-spacing: .5px; white-space: nowrap;
}
.org-row.lv0 .org-tag { background: var(--lv0); }
.org-row.lv1 .org-tag { background: var(--lv1); }
.org-row.lv2 .org-tag { background: var(--lv2); }
.org-row.lv3 .org-tag { background: var(--lv3); }
.org-row.lv4 .org-tag { background: var(--lv4); }

.org-arrow { width: 14px; flex: 0 0 14px; text-align: center; font-size: 11px; color: #9aa7b8; transition: color .2s ease; }
.org-row--parent:hover .org-arrow { color: var(--el-color-primary); }

.org-name { font-size: 14px; color: var(--el-text-color-primary); }
.org-row.lv0 .org-name { font-weight: 600; font-size: 15px; }
.org-row.lv1 .org-name { font-weight: 600; }
.org-row.lv4 .org-name { color: var(--el-text-color-regular); }

.org-path { margin-left: auto; color: var(--el-text-color-secondary); font-size: 12px; }
.org-id { font-family: Consolas, Monaco, monospace; font-size: 12px; color: var(--el-text-color-placeholder); min-width: 62px; text-align: right; }

/* ---------- 签名图 ---------- */
.sign-img { width: 100%; border: 1px solid var(--el-border-color-lighter); border-radius: var(--el-border-radius-base); background: #fff; }

/* 列表里的签名缩略图：不用点开也能一眼看到签的是什么 */
.sign-thumb {
  height: 34px; max-width: 96px; object-fit: contain;
  border: 1px solid var(--el-border-color-lighter);
  border-radius: 4px; background: #fff;
  cursor: zoom-in; vertical-align: middle; display: inline-block;
  transition: border-color .15s, box-shadow .15s;
}
.sign-thumb:hover {
  border-color: var(--el-color-primary);
  box-shadow: 0 0 0 2px var(--el-color-primary-light-7);
}
.sign-none { color: var(--el-text-color-placeholder); font-size: 12px; }

/* ---------- 「按班别」点开后弹出的学生名单 ---------- */
.cls-detail { padding: 10px 14px 14px 40px; background: #fafbfc; }
.cls-detail-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.cls-detail-head .sub { color: var(--el-text-color-secondary); font-size: 12px; }
.cls-detail .el-table { background: #fff; }

/* 「按班别」整行可点：鼠标变手型，悬停给个底色提示 */
.el-table .row-clickable { cursor: pointer; }
.el-table .row-clickable:hover > td.el-table__cell { background: var(--el-color-primary-light-9); }

/* 班级名单弹窗里：还没签完的人整行淡红，一眼看到要点谁 */
.el-table .row-unsigned > td.el-table__cell { background: #fff6f5; }
.el-table .row-unsigned:hover > td.el-table__cell { background: #ffeceb; }

/* ---------- 金额 ---------- */
.money { font-weight: 600; color: #e6a23c; font-variant-numeric: tabular-nums; }

/* ---------- 表单里的说明小字 ---------- */
.form-tip { margin-left: 10px; font-size: 12px; color: var(--el-text-color-secondary); }

/* ---------- 确认框里的换行 ----------
   ElMessageBox 的 message 是当纯文本塞进去的，默认不认 \n。
   这里放开换行，「整枝删除」那种多行提醒才排得开。 */
.el-message-box__message { white-space: pre-line; line-height: 1.9; }
.el-message-box { max-width: 92vw; }
.el-message-box__message p { word-break: break-word; }

/* ---------- 学校管理行内的小按钮（改名 / 删除）----------
   名字后面整块往右推，ID 和两个文字按钮排在行尾，别抢宽度 */
.org-row .org-name { margin-right: auto; }
.org-row .org-path { margin-left: 0; margin-right: 10px; }
.org-row .org-id { margin-left: 0; margin-right: 6px; }
.org-row .el-button.is-text { padding: 3px 6px; height: auto; font-size: 12px; }
.org-row .el-button + .el-button { margin-left: 2px; }

/* ---------- 签字状态：待签的用大红字，一眼看见 ---------- */
.warn-num {
  color: #f56c6c; font-weight: 600; font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.todo-text { color: #f56c6c; font-weight: 600; font-size: 17px; }
.done-text { color: #67c23a; font-weight: 600; }
.status-tag {
  font-size: 14px; font-weight: 600;
  height: 26px; line-height: 24px; padding: 0 11px;
}

/* ---------- 表格里的小字 / 强调数字 ---------- */
.muted { color: var(--el-text-color-placeholder); font-variant-numeric: tabular-nums; }
.num-strong { font-weight: 600; font-size: 15px; color: #1f2d3d; font-variant-numeric: tabular-nums; }
.disc-price { font-weight: 600; color: #f56c6c; font-variant-numeric: tabular-nums; }

/* ---------- 征订清单底部的合计条（总金额单独放大）---------- */
.total-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 14px; padding: 11px 16px;
  background: var(--el-fill-color-light, #f5f7fa);
  border: 1px solid var(--el-border-color-lighter);
  border-radius: 8px;
}
.total-bar .grow { flex: 1; }
.tb-item { display: flex; align-items: baseline; gap: 7px; }
.tb-l { font-size: 12px; color: var(--el-text-color-secondary); }
.tb-v {
  font-size: 14px; font-weight: 600; color: var(--el-text-color-primary);
  font-variant-numeric: tabular-nums;
}
.tb-old { font-weight: 400; color: var(--el-text-color-secondary); }
.tb-amount { font-size: 22px; font-weight: 600; color: #e6a23c; }
.tb-save { color: #67c23a; }
.tb-main { padding-left: 20px; border-left: 1px dashed var(--el-border-color); }

/* ---------- 征订管理：新建征订工作台 ---------- */
.order-dlg { max-width: 96vw; }
.order-dlg .el-dialog__body { padding: 14px 20px 4px; }
.order-dlg .el-dialog__footer { padding: 10px 20px 14px; border-top: 1px solid var(--el-border-color-lighter); }

.ob { display: flex; gap: 16px; align-items: stretch; }
.ob-left { flex: 0 0 52%; min-width: 0; }
.ob-right { flex: 1; min-width: 0; border-left: 1px dashed var(--el-border-color); padding-left: 16px; }

.ob-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #1f2d3d; margin-bottom: 10px;
}
.ob-head b {
  display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--el-color-primary); color: #fff;
  font-size: 12px; font-weight: 600;
}
.ob-head .sub { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--el-text-color-secondary); }

.ob-field { margin-bottom: 12px; }
.ob-field > label { display: block; font-size: 12px; color: var(--el-text-color-secondary); margin-bottom: 5px; }
.ob-grid { display: flex; gap: 12px; }
.ob-grid .ob-field { flex: 1; min-width: 0; }
.ob-tip { margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--el-text-color-secondary); }
.ob-tip b { color: #e6a23c; }
.ob-tip a { color: var(--el-color-primary); text-decoration: none; }

.ob-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ob-actions .grow { flex: 1; }
.ob-bulk { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--el-text-color-secondary); }

.ob-cascade { display: flex; gap: 8px; margin-bottom: 9px; }

.ob-picked {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 10px; max-height: 78px; overflow: auto;
}
.ob-picked .fl { font-size: 12px; color: var(--el-text-color-secondary); }
.ob-row-on td { background: var(--el-color-primary-light-9) !important; }

.ob-footer { display: flex; align-items: center; gap: 10px; }
.ob-footer .grow { flex: 1; }
.ob-footer .fl { font-size: 13px; color: var(--el-text-color-secondary); }
.ob-preview { font-size: 13px; font-weight: 600; color: #67c23a; }
.ob-preview.warn { color: #e6a23c; }

.gopt { display: flex; flex-direction: column; line-height: 1.35; padding: 3px 0; }
.gopt-t { font-size: 13px; color: var(--el-text-color-primary); }
.gopt-m { font-size: 11px; color: var(--el-text-color-secondary); font-family: Consolas, Monaco, monospace; }

.imp-box { padding: 12px 14px; background: var(--el-fill-color-light, #f5f7fa); border-radius: 8px; margin-bottom: 14px; }
.imp-cols { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.imp-cols span {
  font-size: 12px; padding: 3px 9px; background: #fff;
  border: 1px solid var(--el-border-color); border-radius: 20px;
  color: var(--el-text-color-regular);
}
.imp-errs {
  margin-top: 10px; max-height: 160px; overflow: auto;
  font-size: 12px; line-height: 1.9; color: #f56c6c;
  background: #fef0f0; border-radius: 6px; padding: 9px 12px;
}

.ro { font-size: 13px; line-height: 34px; color: var(--el-text-color-regular); }

/* ---------- 新建征订：没选层级时，右边先空着给提示 ---------- */
.ob-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  height: 336px; margin-top: 4px;
  border: 1px dashed var(--el-border-color); border-radius: 8px;
  background: var(--el-fill-color-lighter, #fafafa);
  color: var(--el-text-color-secondary); font-size: 13px; line-height: 2;
}
.ob-empty .el-icon { font-size: 34px; color: var(--el-border-color-dark); }
.ob-empty b { color: var(--el-color-primary); }

/* ---------- 内容区滚动条（之前宽度设成 0，看着像滚不动） ---------- */
.content::-webkit-scrollbar { width: 10px; height: 10px; }
.content::-webkit-scrollbar-thumb {
  background: rgba(144, 147, 153, .45); border-radius: 6px;
  border: 2px solid transparent; background-clip: content-box;
}
.content::-webkit-scrollbar-thumb:hover { background: rgba(144, 147, 153, .75); background-clip: content-box; }
.content::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录页 ---------- */
.login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b3a52 0%, #324157 55%, #3d4d68 100%);
  z-index: 2000;
}
.login-card {
  width: 360px; padding: 38px 36px 34px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .28);
  text-align: center;
  animation: pageIn .25s cubic-bezier(.22,.61,.36,1);
}
.login-logo svg { width: 52px; height: 52px; fill: #409eff; }
.login-logo path, .login-logo rect { stroke: #409eff; stroke-width: 1.6; fill: none; }
.login-title { font-size: 20px; font-weight: 700; color: #1f2d3d; margin-top: 10px; }
.login-sub { font-size: 13px; color: #909399; margin: 8px 0 24px; }
.login-card .el-input { text-align: left; }

/* 班级书单：选班提示做得醒目（橙色大字 + 跳动箭头） */
.pick-class-hint {
  text-align: center;
  padding: 46px 20px 50px;
}
.pch-arrow {
  font-size: 30px;
  line-height: 1;
  color: #fa8c16;
  animation: pch-bounce 1.1s ease-in-out infinite;
}
.pch-main {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #d46b08;
}
.pch-hl {
  color: #fff;
  background: #fa8c16;
  border-radius: 6px;
  padding: 2px 8px;
}
.pch-sub {
  margin-top: 10px;
  font-size: 14px;
  color: #ad6800;
}
@keyframes pch-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- 合并页签（征订书单 / 统计报表：一页里几个页签） ---------- */
.merge-tabs > .el-tabs__header { margin-bottom: 14px; }
.merge-tabs .el-tabs__item { font-size: 14px; }

/* ---------- 学期管理 ---------- */
.term-hint {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--el-text-color-secondary);
  background: var(--el-fill-color-light, #f5f7fa);
  border-radius: var(--el-border-radius-base);
}

/* ---------- 签字汇总 ---------- */
.sum-legend { font-size: 12px; color: var(--el-text-color-secondary); display: flex; align-items: center; gap: 6px; }
.sdot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 10px; }
.sdot:first-child { margin-left: 0; }
.sdot--signed { background: #409eff; }
.sdot--wait   { background: #1a7f5a; }
.sdot--no     { background: #f56c6c; }
.sdot--na     { background: #c0c4cc; }

.sum-sec { margin-bottom: 22px; }
.sum-sec:last-child { margin-bottom: 0; }
.sum-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sum-class { font-size: 16px; font-weight: 700; color: var(--el-text-color-primary); }
.sum-meta { font-size: 12px; color: var(--el-text-color-secondary); }
.sum-meta b { font-weight: 600; }
.c-signed { color: #409eff; }
.c-wait   { color: #1a7f5a; }
.c-no     { color: #f56c6c; }

/* 一格一本书：点一下切状态 */
.cell-state {
  display: inline-block;
  min-width: 62px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: filter .15s;
}
.cell-state:hover { filter: brightness(.94); }
.cs-signed { background: #ecf5ff; color: #409eff; border-color: #b3d8ff; }
.cs-wait   { background: #eefaf4; color: #1a7f5a; border-color: #b7e4cd; }
.cs-no     { background: #fef0f0; color: #f56c6c; border-color: #fbc4c4; }
.cs-na     { background: #f4f4f5; color: #a8abb2; cursor: not-allowed; }

.col-head { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100px; vertical-align: bottom; }
.sum-mini { font-size: 12px; color: var(--el-text-color-regular); }
.sign-meta { margin-top: 10px; font-size: 13px; color: var(--el-text-color-secondary); }

/* ---------- 组织页：某个节点的管理员弹窗 ---------- */
.own-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; margin-bottom: 8px;
  border: 1px solid var(--el-border-color-lighter); border-radius: 6px;
}
.own-row .own-name { font-size: 13px; color: var(--el-text-color-regular); }
.own-row .grow { flex: 1; }
.own-empty {
  padding: 12px; text-align: center; font-size: 13px;
  color: var(--el-text-color-secondary);
  background: var(--el-fill-color-lighter); border-radius: 6px;
}
.own-block { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--el-border-color); }
.own-block-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.own-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.own-label { width: 64px; flex: none; font-size: 13px; color: var(--el-text-color-regular); }
.org-owner { font-size: 12px; color: var(--el-color-success); margin-left: 8px; }

/* ---------- 导入报错弹窗（2026-10-18：整批拒绝，提示要醒目） ---------- */
.ik-err-dialog { width: 780px !important; max-width: 94vw; }
.ik-err-dialog .el-message-box__title { color: #c0392b; font-size: 18px; font-weight: 700; }
.ik-err-dialog .el-message-box__message { max-height: 62vh; overflow: auto; }
.ik-err-head {
  display: inline-block; margin-bottom: 6px; padding: 4px 10px; border-radius: 4px;
  background: #fef0f0; color: #c0392b; font-weight: 700; font-size: 15px;
}
.ik-err-sub { color: #606266; font-size: 13px; margin-bottom: 10px; }
.ik-err-list {
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 13px; line-height: 1.75;
  background: #fafafa; border: 1px solid #ebeef5; border-radius: 6px;
  padding: 10px 12px; max-height: 46vh; overflow: auto;
  user-select: text;               /* 允许全选复制 */
}
.ik-err-line { color: #303133; white-space: pre-wrap; word-break: break-all; }
.ik-err-line + .ik-err-line { border-top: 1px dashed #eef0f3; padding-top: 2px; }
.ik-err-more { color: #909399; margin-top: 6px; }

/* ==================== 边框加深一档（2026-10-18 用户要求） ====================
   反馈：框跟背景太像，表格里的勾选框都快看不见了。
   Element Plus 所有框（输入框/表格/下拉/勾选框/卡片）都引用下面这一组变量，
   这里整体加深一档，选中/报错的彩色状态不受影响。 */
:root {
  --el-border-color: #a9b0b8;            /* 原 #dcdfe6 —— 输入框、勾选框、卡片描边 */
  --el-border-color-hover: #8f97a0;      /* 原 #c0c4cc —— 悬停时再深一点 */
  --el-border-color-light: #c6ccd2;      /* 原 #e4e7ed */
  --el-border-color-lighter: #d4d9de;    /* 原 #ebeef5 —— 表格线、分隔线 */
  --el-border-color-extra-light: #e3e7eb;/* 原 #f2f6fc */
}
/* 勾选框 / 单选框单独再兜一层（有组件写死了颜色，不跟着变量走；
   选择器加权确保压过 Element Plus 自带的 .el-checkbox__input .el-checkbox__inner） */
.el-checkbox .el-checkbox__input .el-checkbox__inner { border: 1px solid #a2a9b1; }
.el-radio .el-radio__input .el-radio__inner { border: 1px solid #a2a9b1; }

/* ==================== 导入进度条（2026-10-20） ====================
   用户反馈：大表导入时页面像卡死，不知道到底在动还是在等。
   现在导入全程盖一层浅色遮罩 + 百分比，用真实上传字节算进度，
   服务器写库那段没有真进度，就平滑爬升，到 99 停住等结果。 */
.pg-mask {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(245, 247, 250, .78);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  animation: pg-in .16s ease-out;
}
@keyframes pg-in { from { opacity: 0 } to { opacity: 1 } }
.pg-mask.pg-out { animation: pg-out .22s ease-in forwards; }
@keyframes pg-out { from { opacity: 1 } to { opacity: 0 } }

.pg-card {
  width: 420px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid #d4d9de; border-radius: 10px;
  box-shadow: 0 12px 34px rgba(48, 58, 70, .18);
  padding: 22px 24px 18px;
}
.pg-title {
  font-size: 15px; font-weight: 600; color: #303133;
  margin-bottom: 16px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pg-bar {
  height: 12px; border-radius: 7px; background: #eef1f5;
  border: 1px solid #e3e7eb; overflow: hidden;
}
.pg-bar > i {
  display: block; height: 100%; width: 0;
  border-radius: 7px; background: linear-gradient(90deg, #6aa9ff, #3d7ef5);
  transition: width .22s ease-out;
}
.pg-half .pg-bar > i { background: linear-gradient(90deg, #52c07a, #2fa25c); }
.pg-bad .pg-bar > i { background: linear-gradient(90deg, #f08a80, #d9534f); }

.pg-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 9px; gap: 12px;
}
.pg-pct { font-size: 20px; font-weight: 700; color: #3d7ef5; font-variant-numeric: tabular-nums; }
.pg-half .pg-pct { color: #2fa25c; }
.pg-bad .pg-pct { color: #d9534f; }
.pg-note { font-size: 12.5px; color: #7a838c; text-align: right; flex: 1; }

/* ---------- 签字管理：编辑弹窗 ---------- */
.sign-edit .se-line { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; }
.sign-edit .se-k { width: 52px; color: #909399; flex: 0 0 52px; }
.sign-edit .form-tip { margin: 12px 0 0; color: #909399; font-size: 12px; line-height: 1.6; }
