/* ===== 基础 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f2f5f9; color: #2b3440; font-size: 15px; line-height: 1.5;
}
a { color: #4a90d9; text-decoration: none; }
a:hover { color: #2f6fb0; }
h1, h2, h3 { font-weight: 600; }

/* ===== 布局 ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 100;
  background: #2f5d9e; color: #fff; display: flex; align-items: center; padding: 0 14px;
  box-shadow: 0 2px 8px rgba(20, 40, 80, .15);
}
.brand { font-size: 17px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; margin-right: 10px; padding: 4px 8px; display: flex; align-items: center; gap: 4px; }
.menu-btn .menu-start { font-size: 15px; font-weight: 600; }
.top-user { display: flex; align-items: center; gap: 8px; }
.top-uname { font-size: 13px; opacity: .9; }
.top-role { position: relative; margin-right: 2px; }
.top-role-btn {
  display: inline-block; padding: 4px 12px; font-size: 12px; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); border-radius: 14px;
}
.top-role-btn:hover { background: rgba(255,255,255,.28); }
.top-role-menu {
  display: none; position: absolute; right: 0; top: 38px; z-index: 99; min-width: 130px;
  background: #fff; border: 1px solid #e6ebf1; border-radius: 8px; box-shadow: 0 4px 14px rgba(15,30,50,.12);
  overflow: hidden; padding: 4px 0;
}
.top-role-menu.open { display: block; }
.top-role-tip { padding: 6px 14px 4px; font-size: 12px; color: #9aa7b4; }
.top-role-menu a { display: block; padding: 8px 14px; font-size: 13px; color: #2b3440; text-decoration: none; white-space: nowrap; }
.top-role-menu a:hover { background: #f2f6fa; color: #2563eb; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff;
}
.sidebar {
  position: fixed; top: 56px; bottom: 0; left: 0; width: var(--nav-w, 210px); z-index: 90;
  background: #fff; border-right: 1px solid #e6ebf1; overflow-y: auto; padding-bottom: 20px;
  transition: width .18s ease;
}
.side-user { padding: 18px 16px 14px; border-bottom: 1px solid #eef2f6; }
.side-name { font-weight: 600; font-size: 15px; }
.side-role { color: #8a97a8; font-size: 12px; margin-top: 3px; }
.nav { padding: 10px 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: #46535f;
  font-size: 14px; border-left: 3px solid transparent;
}
.nav-item:hover { background: #f4f7fb; color: #2f5d9e; }
.nav-item.active { background: #eaf2fb; color: #2f5d9e; border-left-color: #4a90d9; font-weight: 600; }
.nav-icon { font-size: 16px; }
.nav-num {
  font-size: 12px; color: #9aa7b4; font-variant-numeric: tabular-nums;
  min-width: 20px; text-align: right; flex-shrink: 0;
}
.nav-item.active .nav-num, .nav-item:hover .nav-num { color: #7d99bd; }
.nav-badge {
  margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 600; line-height: 18px;
  padding: 0 7px; border-radius: 10px; color: #e03434; background: #fdecec;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* 分组 + 二级菜单 */
.nav-group .nav-parent { display: flex; align-items: center; }
.nav-group .nav-parent .nav-item { flex: 1; min-width: 0; }
.nav-caret {
  background: none; border: none; cursor: pointer; color: #97a3b0; font-size: 11px;
  padding: 0 16px 0 2px; line-height: 1; flex-shrink: 0; transition: transform .2s;
}
.nav-caret:hover { color: #2f5d9e; }
.nav-group.open > .nav-parent .nav-caret { transform: rotate(180deg); }
.nav-sub { display: none; }
.nav-group.open .nav-sub { display: block; }
.nav-sub .nav-item { padding: 9px 18px 9px 46px; font-size: 13px; }
.nav-sub .nav-icon { font-size: 14px; width: 18px; text-align: center; }
.nav-item.nav-parent-static { cursor: default; }
.nav-divider { height: 1px; background: #eef2f6; margin: 8px 14px; }
.nav-mask { display: none; }
.content { margin-left: var(--nav-w, 210px); padding: 76px 20px 40px; min-height: calc(100vh - 60px); transition: margin-left .18s ease; }

/* ===== 左侧菜单：可折叠 + 拖动调宽 ===== */
:root { --nav-w: 210px; }
.nav-resizer {
  position: fixed; top: 56px; bottom: 0; left: calc(var(--nav-w, 210px) - 3px); width: 6px;
  cursor: col-resize; z-index: 96; user-select: none;
}
.nav-resizer:hover, body.nav-resizing .nav-resizer { background: rgba(74, 144, 217, .28); }
body.nav-resizing, body.nav-resizing * { cursor: col-resize !important; transition: none !important; }
@media (min-width: 900px) {
  body.nav-collapsed .sidebar { width: 54px; }
  body.nav-collapsed .content { margin-left: 54px; }
  body.nav-collapsed .site-footer { margin-left: 54px; }
  body.nav-collapsed .side-user { display: none; }
  body.nav-collapsed .nav-item {
    padding-left: 0; padding-right: 0; justify-content: center; gap: 0;
  }
  body.nav-collapsed .nav-label, body.nav-collapsed .nav-num,
  body.nav-collapsed .nav-badge, body.nav-collapsed .nav-caret { display: none !important; }
  /* 折叠态分组：点主图标后在其下方展开子图标（默认收起） */
  body.nav-collapsed .nav-sub { display: none; }
  body.nav-collapsed .nav-group.open .nav-sub { display: block; }
  body.nav-collapsed .nav-sub .nav-item {
    padding-left: 0; padding-right: 0; justify-content: center;
  }
  body.nav-collapsed .nav-sub .nav-icon { font-size: 16px; width: auto; }
  body.nav-collapsed .nav-divider { margin: 8px 10px; }
  body.nav-collapsed .nav-resizer { display: none; }
}
.nav-label { white-space: nowrap; }
@media (max-width: 899px) { .nav-resizer { display: none; } }

/* ===== 页脚版权 ===== */
.site-footer {
  margin-left: var(--nav-w, 210px); border-top: 1px solid #e6ebf1;
  background: #fff; color: #98a3b3; font-size: 12px;
  padding: 14px 20px; text-align: center;
}
.footer-inner { display: inline-flex; align-items: center; gap: 8px; }
.footer-sep { color: #c9d3df; }
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.page-head h1 { font-size: 20px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 卡片与表格 ===== */
.card { background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; box-shadow: 0 2px 8px rgba(30,60,100,.05); }
.card + .card { margin-top: 16px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid #eef2f6; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 18px; }
.card-body.p0 { padding: 0; overflow-x: auto; }
/* 说明列表（增购信息说明等） */
.note-list { margin: 0; padding-left: 20px; line-height: 1.8; font-size: 14px; color: #4a5a6a; }
.note-list li { margin-bottom: 6px; }
.note-list b { color: #2c3e50; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.table th { background: #f7f9fc; color: #5b6b7d; font-weight: 600; font-size: 13px; }
.table tr:hover td { background: #fafcff; }
.table .num { text-align: center; color: #8a97a8; }
.table .check-cell { text-align: center; width: 36px; }
/* 物品数量统计：用户选择的项目为列名，下方显示数量 */
.stat-block { border-bottom: 1px solid #eef2f6; }
.stat-block:last-child { border-bottom: 0; }
.stat-block .stat-title { padding: 12px 18px 0; font-weight: 600; font-size: 13px; color: #5b6b7d; }
.stat-block .table { min-width: 480px; }
.stat-block .stat-sum td { background: #f7f9fc; }
.table .check-cell input { margin: 0; vertical-align: middle; accent-color: #2563eb; }
.batch-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eef2f6; background: #fbfcfe; flex-wrap: wrap; }
.batch-bar .muted { font-size: 12px; }
/* 数据查看页：查看选项勾选框（合并 / 汇总） */
.view-tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.view-tools .tool-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: #34495e; user-select: none; }
.view-tools .tool-check input { margin: 0; accent-color: #2563eb; }
.view-tools .tool-check.disabled { opacity: .45; cursor: not-allowed; }
.table .row-sum td { background: #f3f7ff; font-weight: 600; color: #1f2d3d; }
.table .row-sum td.num { color: #2563eb; }
.table .row-sum .muted { font-weight: 400; }
.td-wrap { max-width: 220px; white-space: normal; word-break: break-all; }

/* ===== 表单 ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #5b6b7d; margin-bottom: 6px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field input[type=email], .field input[type=datetime-local],
.field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px;
  background: #fff; outline: none; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,.12); }
.field textarea { min-height: 70px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.radio-row { display: flex; gap: 18px; align-items: center; padding: 8px 0; }
.radio-row label { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #2b3440; cursor: pointer; }

/* 协作填写项：绿色背景强调（协作名称 / 简介 / 需完成时间 / 需新增填写数据） */
.field input.green-field, .field textarea.green-field { background: #e9f9ef; border-color: #b7e3c8; }
.field input.green-field:focus, .field textarea.green-field:focus { border-color: #3dbf73; box-shadow: 0 0 0 2px rgba(61,191,115,.15); }
.list-col-row input.green-field { background: #e9f9ef; border-color: #b7e3c8; }
.list-col-row input.green-field:focus { border-color: #3dbf73; box-shadow: 0 0 0 2px rgba(61,191,115,.15); }

/* 新建协作填写流程图：圆圈 + 箭头链接，填写完成后节点变绿 */
.flow-steps { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 14px; padding: 14px 12px; background: #f7fafc; border: 1px dashed #d5dde5; border-radius: 10px; margin-bottom: 16px; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-right: 22px; min-width: 52px; }
.flow-step:last-child { padding-right: 0; }
.flow-dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #c2cdd8; color: #8a97a8; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: all .25s; }
.flow-step span { font-size: 11px; color: #8a97a8; white-space: nowrap; transition: color .25s; }
.flow-step:not(:last-child)::after { content: '→'; position: absolute; top: 7px; right: 4px; font-size: 14px; line-height: 1; color: #c2cdd8; transition: color .25s; }
.flow-step.done .flow-dot { background: #3dbf73; border-color: #3dbf73; color: #fff; }
.flow-step.done span { color: #2e9e5b; font-weight: 600; }
.flow-step.done::after { color: #3dbf73; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  font-size: 14px; background: #eef2f6; color: #2b3440; transition: all .15s; text-align: center;
}
.btn:hover { opacity: .9; }
.btn-primary { background: #4a90d9; color: #fff; }
.btn-primary:hover { background: #3a7bc4; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-success { background: #27ae60; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-save-wide { display: block; width: 60%; margin: 24px auto 0; padding: 11px 18px; font-size: 15px; }
.btn-ghost { background: #fff; border-color: #d5dde5; }
/* 个人明细每笔末尾的异议按钮：默认灰字「异议」，点击标记后变红「有异议」，再点取消 */
.btn-dispute { background: #f0f3f6; border-color: #e3e9ef; color: #8a97a5; }
.btn-dispute.on { background: #fdecea; border-color: #f5c6c0; color: #e74c3c; }
a.btn { text-decoration: none; }
/* 采集/自由清单填写表单：「保存 + 协作完成」双按钮 */
.form-actions .btn-half { flex: 1; min-width: 160px; padding: 12px 18px; font-size: 15px; }
.form-actions .btn-half[disabled], .form-actions .btn-half.disabled { opacity: .6; cursor: not-allowed; }

/* ===== 徽章 ===== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eef2f6; color: #5b6b7d; }
.role-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.role-check {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; cursor: pointer;
  border: 1px solid #dfe6ee; border-radius: 8px; background: #fafbfc; font-size: 13px; color: #2b3440;
}
.role-check:hover { border-color: #b9c6d6; background: #f2f6fa; }
.role-check input { margin: 0; accent-color: #2563eb; }
.role-default { font-size: 11px; color: #2f6fb0; background: #eaf2fb; border-radius: 8px; padding: 0 6px; }
.badge-blue { background: #eaf2fb; color: #2f6fb0; }
/* 登记字段编号（与小程序 no-badge 一致：info_fields.id 蓝色胶囊） */
.field-no { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 20px; padding: 0 6px; margin-right: 6px; border-radius: 10px; background: #2f5d9e; color: #fff; font-size: 12px; line-height: 1; }
.badge-green { background: #e8f6ec; color: #1e7e34; }
.badge-red { background: #fdecec; color: #c0392b; }
.badge-orange { background: #fdf3e3; color: #b9770e; }
.badge-gray { background: #eceff2; color: #7a8694; }

/* ===== 协作管理状态过滤 tabs ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; border: 1px solid #d5dde5;
  background: #fff; color: #5b6b7d; font-size: 13px; text-decoration: none;
}
.filter-tab em { font-style: normal; font-size: 12px; color: #8a97a8; }
.filter-tab:hover { border-color: #b9c6d6; background: #f2f6fa; }
.filter-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.filter-tab.active em { color: #dbe7ff; }

/* ===== 我的信息：竖排一项一行 + 状态列 ===== */
.info-rows { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; padding: 10px 2px; border-bottom: 1px dashed #eef2f6; }
.info-row:last-child { border-bottom: none; }
.info-head { border-bottom: 1px solid #e3ecf5; background: #f7fafd; padding: 8px 2px; font-weight: 600; color: #5b6b7d; }
.info-head .info-index, .info-head .info-label, .info-head .info-value, .info-head .info-state, .info-head .info-time { color: #5b6b7d; font-size: 12px; }
.info-check { flex: 0 0 28px; display: flex; align-items: center; }
.info-check input { margin: 0; accent-color: #2563eb; }
.info-index { flex: 0 0 26px; font-size: 13px; color: #9aa7b4; }
.info-label { flex: 0 0 110px; font-size: 13px; color: #5b6b7d; }
.info-value { flex: 1; min-width: 0; font-size: 14px; color: #2b3440; word-break: break-all; }
.info-state { flex: 0 0 84px; margin-left: 12px; }
.info-time { flex: 0 0 110px; margin-left: 12px; text-align: right; font-size: 12px; color: #8a97a8; }
/* 竖排编辑表单：info-value 内的输入控件 */
.info-value input, .info-value select, .info-value textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px;
  background: #fff; outline: none; font-family: inherit;
}
.info-value input:focus, .info-value select:focus, .info-value textarea:focus { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,.12); }
.info-value textarea { min-height: 60px; resize: vertical; }
/* 未开放编辑的登记项：直接显示当前值（仅管理员可修改） */
.info-value .ro-value {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  background: #f4f6f9; color: #2b3440; font-size: 14px; line-height: 1.5;
}

/* ===== 协作编辑：显示现有数据供参考（勾选基础信息列） ===== */
.ref-field-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-field-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1px solid #d5dde5; border-radius: 8px;
  background: #fbfcfe; font-size: 13px; cursor: pointer;
}
.ref-field-item input { accent-color: #2563eb; }

/* ===== 登记字段类型＝「下拉多选」：可勾选的选项片（基础信息 / 用户编辑） ===== */
.multi-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.multi-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid #d7e1ec; border-radius: 999px;
  background: #f7fafd; color: #40536a; font-size: 13px; cursor: pointer;
}
.multi-chip input { margin: 0; accent-color: #2563eb; }
.multi-chip.on { background: #e8f1fd; border-color: #9fc2f0; color: #1d4ed8; }

/* ===== 清单执行：基础信息参考数据（只读展示） ===== */
.ref-info {
  margin-bottom: 16px; padding: 12px 14px;
  background: #f7fafd; border: 1px solid #e3ecf5; border-radius: 8px;
}
.ref-title { font-size: 13px; color: #5b6b7d; font-weight: 600; margin-bottom: 6px; }
.ref-info .info-row { padding: 6px 2px; }
.ref-info .info-label { flex-basis: 120px; }
.mr8 { margin-right: 8px; }
.mt8 { margin-top: 8px; }

/* ===== 清单「我的」标记：已了解（发光灯泡）/ 已完成（绿色对勾） ===== */
.mark-form { display: inline-flex; gap: 6px; align-items: center; }
.mark-btn {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1px solid #d5dde5; background: #fff; cursor: pointer;
  font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  color: #9aa7b4; transition: all .2s;
}
.mark-btn:hover { border-color: #7d99bd; transform: scale(1.08); }
.mark-btn.on { border-color: transparent; }
.mark-btn.mark-know.on {
  background: #fff6df; color: #e0900a;
  animation: bulb-glow 1.6s ease-in-out infinite;
}
.mark-btn.mark-done.on {
  background: #e8f6ec; color: #1e8449; font-weight: 700;
  box-shadow: 0 0 8px 2px rgba(30, 132, 73, .3);
}
@keyframes bulb-glow {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(224, 144, 10, .35); }
  50% { box-shadow: 0 0 18px 7px rgba(224, 144, 10, .6); }
}

/* ===== 登录页 ===== */
.login-body { background: linear-gradient(135deg, #2f5d9e 0%, #4a90d9 100%); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-wrap { width: 100%; max-width: 380px; text-align: center; }
.login-logo { font-size: 54px; }
.login-title { color: #fff; font-size: 22px; margin-top: 10px; }
.login-sub { color: rgba(255,255,255,.75); font-size: 13px; margin: 8px 0 24px; }
.login-card { padding: 28px 24px; text-align: left; border: 0; box-shadow: 0 12px 40px rgba(10,30,60,.25); }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img { height: 42px; width: 120px; border-radius: 8px; cursor: pointer; border: 1px solid #d5dde5; }
.login-tip { text-align: center; color: #8a97a8; font-size: 12px; margin-top: 14px; }

/* ===== 提示页 ===== */
.msg-wrap { text-align: center; background: #fff; border-radius: 14px; padding: 40px 30px; max-width: 380px; width: 100%; box-shadow: 0 10px 40px rgba(10,30,60,.2); }
.msg-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.msg-success { background: #27ae60; }
.msg-error { background: #e74c3c; }
.msg-warning { background: #e67e22; }
.msg-text { font-size: 15px; margin-bottom: 20px; }
.msg-tip { color: #8a97a8; font-size: 12px; margin-top: 12px; }

/* ===== 分享 ===== */
.qr-box { text-align: center; padding: 10px 0; }
.qr-box img { width: 180px; height: 180px; }
.share-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.link-box { display: flex; gap: 8px; margin-top: 12px; }
.link-box input { flex: 1; padding: 9px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 13px; color: #5b6b7d; background: #f7f9fc; }

/* ===== 校服表格 ===== */
.uniform-table input, .uniform-table select { padding: 9px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; width: 100%; }
.btn-del-row { color: #e74c3c; background: none; border: 0; cursor: pointer; font-size: 16px; }

/* 校服按学生汇总行 */
.u-line { padding: 4px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.u-ops { margin-left: auto; white-space: nowrap; }
.u-ops .sep { color: #d5dde5; margin: 0 2px; }
.u-ops .link { color: #2f6fb0; font-size: 12px; cursor: pointer; background: none; border: 0; padding: 0; text-decoration: none; }
.u-ops .link:hover { text-decoration: underline; }
.u-ops .link-danger { color: #e74c3c; font-size: 12px; cursor: pointer; background: none; border: 0; padding: 0; }
.u-ops .link-danger:hover { text-decoration: underline; }

/* 校服登记表单分区（标准套 / 增购信息参考） */
.form-section { margin-top: 18px; }
.form-section-title { font-size: 14px; font-weight: 700; color: #2f3b4b; margin-bottom: 4px; }
.form-section-title::before { content: ''; display: inline-block; width: 4px; height: 14px; background: #2f6fb0; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.form-section-tip { color: #8a97a8; font-size: 12px; margin: 0 0 10px; }

/* 自由清单表单分组区域框（每组一个区域框） */
.form-section.form-box { border: 1px solid #e3eaf1; border-radius: 10px; padding: 14px 16px; background: #f8fafc; margin-top: 16px; }
.form-section.form-box .form-section-title { margin-bottom: 12px; }

/* 物品表格（type=table）：多行添加 */
.tbl-editor { margin-top: 6px; }
.tbl-ops { margin-top: 10px; }
.tbl-editor .extra-table select, .tbl-editor .extra-table input { min-width: 0; }
.tbl-row td { white-space: normal; }
.extra-table { width: 100%; }
.extra-table th { font-size: 12px; color: #8a97a8; font-weight: 600; text-align: left; padding: 6px 8px; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.extra-table td { padding: 6px 8px; vertical-align: middle; white-space: normal; }
.extra-table select, .extra-table input { padding: 9px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; width: 100%; box-sizing: border-box; }
/* 内容选择 + 行删除按钮同行：选择框宽度随按钮占用同步缩短 */
.tbl-item-cell { display: flex; align-items: center; gap: 6px; }
.tbl-item-cell select { flex: 1; min-width: 0; }
.tbl-item-cell .btn { flex: none; white-space: nowrap; }
/* 按基础列分解（refsplit）：人员勾选表格 */
.refsplit-editor { margin-bottom: 8px; }
.refsplit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.refsplit-title { font-weight: 600; }
.refsplit-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.refsplit-total { width: 130px; padding: 5px 8px; border: 1px solid #d5dee7; border-radius: 6px; font-size: 13px; }
.refsplit-editor .extra-table td { vertical-align: middle; }
.refsplit-editor .extra-table input[type="number"] { width: 100%; }
.refsplit-editor .cal-tip { margin: 8px 2px 0; }

/* 增购意向说明条 */
.form-section-note { background: #fff8e6; border: 1px solid #f0d9a8; color: #8a6d1f; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin: 0 0 10px; }

/* 增购确认倒计时 */
.cd { font-family: Consolas, Menlo, monospace; font-size: 12px; color: #2f6fb0; white-space: nowrap; }
.cd-expired { color: #e74c3c; font-weight: 700; }
.btn-green { background: #27ae60; color: #fff; border: 1px solid #27ae60; }
.btn-green:hover { background: #229954; }
.btn-green:disabled, .btn-green[disabled] { background: #a5d6a7; border-color: #a5d6a7; cursor: default; }

/* 校服信息顶部状态条（页面最上方一行） */
.ubar { padding: 12px 18px; border-left: 4px solid transparent; }
.ubar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ubar-msg { font-size: 14px; color: #46535f; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* 协作附件 / 相关链接（用户侧展示次序：① 附件 → ② 协作简介 → ③ 相关链接） */
.ubar-att { padding: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ubar-att + .ubar-inner { border-top: 1px solid #f0f3f6; padding-top: 8px; }
.ubar-link { border-top: 1px solid #f0f3f6; padding: 8px 0 0; }
.ubar-link a { color: #2f5d9e; font-size: 14px; word-break: break-all; }
.att-img-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; max-width: 150px; text-decoration: none; }
.att-img { display: inline-block; border: 1px solid #e3eaf2; border-radius: 6px; overflow: hidden; }
.att-img img { display: block; max-width: 140px; max-height: 140px; object-fit: cover; }
.att-img-wrap:hover .att-img { border-color: #4a90d9; }
.att-img-name { max-width: 140px; font-size: 12px; color: #5c6b7a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-img-wrap:hover .att-img-name { color: #2f5d9e; }
.att-file { display: inline-flex; align-items: center; font-size: 13px; color: #2f5d9e; background: #eaf3fb; border-radius: 999px; padding: 4px 12px; }
.card.ubar-pending { background: #fff9e6; border-left-color: #f0c419; }
.card.ubar-done { background: #e8f6ec; border-left-color: #27ae60; }
.cd-lg { font-size: 14px; font-weight: 700; }

/* 完成状态：大绿色对号（顶部居中展示） */
.ubar-done-box {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 8px 0; flex-wrap: wrap;
}
.ubar-check {
  width: 54px; height: 54px; border-radius: 50%;
  background: #27ae60; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 14px rgba(39, 174, 96, .35);
  flex: 0 0 auto;
}
.ubar-done-title { font-size: 16px; font-weight: 700; color: #1e7d3e; }
.ubar-done-sub { font-size: 13px; color: #7d8a99; margin-top: 3px; }

/* 校服信息操作列：编辑 + 完成 按钮间距 */
.u-ops-cell .btn + .btn { margin-left: 4px; }

/* 校服登记表单区域背景色（未完成浅黄 / 完成浅绿），桌面与手机通用 */
.card.uform-pending { background: #fff9e6; }
.card.uform-done { background: #e8f6ec; }

/* 校服信息列表行：未完成浅黄 / 已完成浅绿（hover 时保持） */
.row-pending td, .table tr.row-pending:hover td { background: #fff9e6; }
.row-done td, .table tr.row-done:hover td { background: #e8f6ec; }

/* 校服信息：手机端竖排卡片（字段名 + 值 每行一条） */
@media (max-width: 768px) {
  .uniform-table thead { display: none; }
  .uniform-table, .uniform-table tbody, .uniform-table tr, .uniform-table td { display: block; width: 100%; box-sizing: border-box; }
  .uniform-table tbody tr {
    border: 1px solid #e6ebf1; border-radius: 10px;
    padding: 4px 12px 10px; margin-bottom: 12px; background: #fff;
  }
  .uniform-table tbody tr.row-pending { background: #fff9e6; }
  .uniform-table tbody tr.row-done { background: #e8f6ec; }
  .uniform-table td {
    display: flex; justify-content: flex-start; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px dashed #eef2f6;
    white-space: normal; text-align: left; flex-wrap: wrap;
  }
  .uniform-table td:last-child { border-bottom: none; }
  .uniform-table td::before {
    content: attr(data-label);
    font-size: 13px; font-weight: 600; color: #5b6b7d;
    flex: 0 0 auto; width: 84px; text-align: left;
  }
  .uniform-table .td-wrap { max-width: none; }
  .uniform-table .u-ops-cell { justify-content: flex-start; flex-wrap: wrap; }
  .uniform-table .u-ops-cell .btn + .btn { margin-left: 4px; }
  .uniform-table .u-line .badge { margin-left: 0; }
}

/* 已完成（锁定）增购信息列表 */
.locked-list { margin-top: 14px; border-top: 1px dashed #e3e8ef; padding-top: 10px; }
.locked-title { font-size: 13px; font-weight: 700; color: #8a97a8; margin-bottom: 8px; }
.locked-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f7f9fb; border: 1px solid #eef2f6; border-radius: 6px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; }
.locked-row .muted { font-size: 13px; }

/* ===== 人员选择穿梭框 ===== */
.transfer { display: flex; gap: 10px; align-items: stretch; }
.transfer-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  border: 1px solid #e6ebf1; border-radius: 10px; overflow: hidden; background: #fff;
}
.transfer-head {
  padding: 10px 12px; background: #f7f9fc; font-size: 13px; color: #5b6b7d;
  font-weight: 600; border-bottom: 1px solid #eef2f6;
}
.transfer-filter { margin: 10px 12px; padding: 8px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px; outline: none; }
.transfer-list { flex: 1; overflow-y: auto; max-height: 340px; padding: 6px; }
.transfer-list .empty { padding: 26px 0; font-size: 13px; text-align: center; color: #8a97a8; }
.titem {
  padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; user-select: none;
}
.titem:hover { background: #f4f7fb; }
.titem.sel { background: #eaf2fb; color: #2f6fb0; }
.titem.active { background: #dcebf9; outline: 2px solid #4a90d9; }
.titem .badge { font-size: 11px; }
.transfer-mid { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.btn-vtext { writing-mode: vertical-rl; padding: 14px 9px; letter-spacing: 3px; border-radius: 10px; }

/* 条件勾选列 */
.cond-col {
  width: 190px; flex-shrink: 0; display: flex; flex-direction: column;
  border: 1px solid #e6ebf1; border-radius: 10px; overflow: hidden; background: #fff;
}
.cond-list { flex: 1; overflow-y: auto; max-height: 340px; padding: 8px; }
.cond-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cond-item:hover { background: #f4f7fb; }
.cond-item input { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: #4a90d9; }
.cond-divider { height: 1px; background: #eef2f6; margin: 6px 4px; }
.transfer-col .transfer-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eef2f6; flex-wrap: wrap; }
.preview {
  border: 1px dashed #d5dde5; border-radius: 10px; padding: 10px 12px;
  max-height: 260px; overflow: auto;
}
/* 数据列勾选 */
/* 数据列勾选：一行横向排列，超宽横向滚动，不占用多行 */
.col-select {
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  overflow-x: auto; padding: 8px 12px; border: 1px solid #f0f3f7;
  border-radius: 8px; background: #fbfcfe;
}
.col-item {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; cursor: pointer; user-select: none; white-space: nowrap;
}
.col-item:hover { color: #4a90d9; }
.col-item input { width: 13px; height: 13px; margin: 0; flex-shrink: 0; accent-color: #4a90d9; }
/* 左侧条件匹配人数徽标 */
.c-count {
  margin-left: auto; font-size: 12px; color: #8a97a5; background: #f1f4f8;
  border-radius: 10px; padding: 0 7px; line-height: 18px; white-space: nowrap;
}
/* 随机人数输入框 */
.cond-rand { gap: 6px; }
.cond-item .rand-num {
  width: 70px; height: 30px; margin: 0; padding: 4px 8px; flex-shrink: 0;
  border: 1px solid #d5dde5; border-radius: 6px; font-size: 13px;
}
.cond-item .rand-num:focus { border-color: #4a90d9; outline: none; }
/* 预览表格 */
.preview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.preview-table th, .preview-table td {
  border: 1px solid #e6ebf1; padding: 5px 8px; text-align: left; white-space: nowrap;
}
.preview-table th { background: #f7f9fc; color: #5b6b7d; font-weight: 600; position: sticky; top: 0; }
.chip {
  background: #eaf2fb; color: #2f6fb0; border-radius: 14px; padding: 3px 10px; font-size: 13px; white-space: nowrap;
}
@media (max-width: 900px) {
  .cond-col { width: 100%; }
  .cond-list { display: flex; flex-wrap: wrap; max-height: none; }
}
@media (max-width: 720px) {
  .transfer { flex-direction: column; }
  .transfer-mid { flex-direction: row; }
  .transfer-list { max-height: 220px; }
}

/* ===== 工具 ===== */
.muted { color: #8a97a8; font-size: 13px; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-bar input, .search-bar select { padding: 9px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px; outline: none; }
.empty { text-align: center; color: #8a97a8; padding: 40px 0; }

/* ===== 日历 ===== */
.cal-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-tab { padding: 8px 16px; border-radius: 8px; background: #f0f4f8; color: #4a5a6a; font-size: 14px; font-weight: 600; text-decoration: none; }
.cal-tab:hover { background: #e4ecf4; }
.cal-tab.active { background: #2f6fb0; color: #fff; }
.cal-toolbar { margin-bottom: 12px; }
.cal-class-form { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4a5a6a; flex-wrap: wrap; }
.cal-class-form select { padding: 8px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px; }
.cal-class-form label.ck { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: #4a5a6a; user-select: none; white-space: nowrap; }
.cal-class-form label.ck input { width: 15px; height: 15px; margin: 0; accent-color: #2f6fb0; }
/* 叠加勾选单独一行、等宽排列（与 App / 小程序的勾选行保持一致） */
.cal-overlay-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cal-overlay-row label.ck { flex: 1; min-width: 150px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 8px; background: #f4f6f9; cursor: pointer; color: #4a5a6a; user-select: none; white-space: nowrap; }
.cal-overlay-row label.ck input { width: 15px; height: 15px; margin: 0; accent-color: #2f6fb0; }
.cal-ov-tip { color: #8a97a8; font-size: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.cal-title { font-size: 17px; font-weight: 700; color: #2c3e50; }
.cal-nav { display: flex; gap: 6px; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; border-radius: 12px; overflow: hidden; }
.cal-table th { background: #f5f8fb; padding: 8px 4px; font-size: 12px; color: #8a97a8; text-align: center; border: 1px solid #eef2f6; }
.cal-cell { border: 1px solid #eef2f6; vertical-align: top; height: 96px; padding: 4px; background: #fff; overflow: hidden; }
.cal-cell.dim { background: #fafbfc; }
.cal-cell.dim .cal-num { color: #c3ccd6; }
.cal-cell.today { background: #eef6ff; }
.cal-num { font-size: 13px; font-weight: 600; color: #4a5a6a; margin-bottom: 4px; }
.cal-cell.today .cal-num { color: #2f6fb0; }
.cal-item { display: flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1.4; color: #fff; border-radius: 4px; padding: 2px 5px; margin-bottom: 2px; text-decoration: none; overflow: hidden; }
.cal-item .ci-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.personal { background: #2f6fb0; }
.cal-item.class { background: #27ae60; }
.cal-item.school { background: #e67e22; }
.cal-item.task { opacity: .95; }
.cal-item.done { text-decoration: line-through; opacity: .55; }
.cal-item.course { background: #8e44ad; cursor: default; }
.cal-item.menu { background: #0f9b8e; cursor: default; }
.cal-item .ci-tag { font-size: 10px; background: rgba(255,255,255,.3); border-radius: 3px; padding: 0 3px; flex: 0 0 auto; }
.date-chip-used { display: inline-block; margin: 0 2px; padding: 0 4px; font-size: 11px; color: #c0392b; background: #fdecea; border-radius: 3px; }

/* ===== 家校协作附件列（type=file）填报控件 ===== */
.file-upload-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.file-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; background: #f4f6f8; border: 1px solid #e3eaf1; border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.file-chip a { color: #2f6fb0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.file-chip-del { border: none; background: transparent; cursor: pointer; color: #c0392b; font-size: 13px; line-height: 1; padding: 2px 4px; }
.file-chip-del:hover { color: #a93226; }
.file-tip { font-size: 12px; color: #8a97a8; width: 100%; }
.file-add input[type=file] { display: none; }
.cal-names { display: flex; flex-wrap: wrap; gap: 3px; }
.cal-name { font-size: 11px; color: #2f6fb0; background: #eef4ff; border-radius: 3px; padding: 1px 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-legend { display: flex; gap: 16px; margin: 10px 2px 0; font-size: 12px; color: #7d8a99; }
.cal-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.cal-legend .dot-personal { background: #2f6fb0; }
.cal-legend .dot-class { background: #27ae60; }
.cal-legend .dot-school { background: #e67e22; }
.cal-legend .dot-course { background: #8e44ad; }
.cal-legend .dot-menu { background: #0f9b8e; }
.cal-tip { font-size: 12px; color: #8a97a8; margin: 8px 2px 0; line-height: 1.7; }
.form-actions { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== 协作编辑：左右两栏布局（左侧填写数据配置，右侧协作设定） ===== */
.edit-cols { display: flex; align-items: flex-start; gap: 20px; }
.edit-col { min-width: 0; }
.edit-col-main { flex: 1 1 64%; order: 1; }
.edit-col-side { flex: 1 1 36%; order: 2; background: #fbfcfe; border: 1px solid #e8eef4; border-radius: 12px; padding: 14px 16px; }
.edit-col-side .form-grid { grid-template-columns: 1fr; gap: 0; }
.edit-col-side .field:last-child { margin-bottom: 0; }
.edit-col-side .radio-row { flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 960px) {
  .edit-cols { flex-direction: column; }
}

/* ===== 待办 ===== */
.todo-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eef2f6; }
.todo-item:last-child { border-bottom: none; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 14px; font-weight: 700; color: #2c3e50; }
.todo-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #7d8a99; margin-top: 4px; }
.todo-content { font-size: 13px; color: #5b6b7d; margin-top: 4px; }
.todo-countdown { font-size: 12px; font-weight: 700; color: #e74c3c; margin-top: 5px; }
.todo-countdown::before { content: '⏳ '; }
.todo-ops { flex: 0 0 auto; }
.todo-overdue { background: #fff5f5; }
.todo-overdue .todo-title, .todo-overdue .todo-meta { color: #e74c3c; }
.todo-done { opacity: .65; }
.todo-done .todo-title { color: #9aa7b5; text-decoration: line-through; }
.text-danger { color: #e74c3c; font-weight: 600; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 4px 0 20px rgba(0,0,0,.1); }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-mask { opacity: 1; pointer-events: auto; }
  .content { margin-left: 0; padding: 70px 12px 30px; }
  .site-footer { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .top-uname { display: none; }
  .nav-icon { display: none; }
  .cal-cell { height: 66px; padding: 2px; }
  .cal-num { font-size: 12px; margin-bottom: 2px; }
  .cal-item { font-size: 10px; padding: 1px 3px; }
  .cal-table th { padding: 5px 2px; font-size: 11px; }
  .todo-item { padding: 10px 12px; }
  .todo-ops .btn { font-size: 12px; padding: 5px 8px; }
}
@media (max-width: 520px) {
  .table th, .table td { padding: 8px; font-size: 13px; }
  .page-head h1 { font-size: 17px; }
}

/* ===== 清单（自由清单 / 采集清单） ===== */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.list-card { border: 1px solid #e6ebf1; border-radius: 12px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.list-card:hover { border-color: #c8d8ec; box-shadow: 0 4px 14px rgba(30,80,160,.08); }
.list-card.list-disabled { background: #f5f7f9; opacity: .72; }
.list-card.list-disabled .list-card-name { color: #8a97a8; }
.list-card-head { display: flex; align-items: center; gap: 8px; }
.list-card-name { font-size: 16px; font-weight: 600; color: #2b3440; text-decoration: none; flex: 1; }
.list-card-name:hover { color: #1a73e8; }
.list-card-ops { display: flex; gap: 8px; }
.list-meta { font-size: 12px; color: #8a97a8; }
.list-col-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.list-desc { font-size: 13px; color: #5b6b7d; line-height: 1.6; }

/* 清单列定义构建器：每条记录纵向排布（标题 + 控件），条与条之间用虚线分隔 */
.list-col-row { padding: 10px 0 4px; border-bottom: 1px dashed #dde5ec; }
.list-col-row:last-child { border-bottom: none; }
.list-col-row input[type=text], .list-col-row select { padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; box-sizing: border-box; background: #fff; }
.list-col-row input[type=text]:focus, .list-col-row select:focus { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,.12); outline: none; }
.list-col-row input[type=text]:disabled { background: #f5f7fa; color: #8a97a8; }
/* 组号 + 组名：放同一行（仅每组第一条有组名填写） */
.list-col-row .group-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.list-col-row .group-line .col-group-no { width: 58px; }
.list-col-row .group-line .col-group { flex: 1; min-width: 140px; max-width: 70%; }
/* 每个字段项：标题 + 控件，控件宽度为所在区域宽度的 70% */
.list-col-row .col-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.list-col-row .col-item-title { font-size: 12px; color: #5b6b7d; flex: 0 0 64px; text-align: right; white-space: nowrap; }
.list-col-row .col-item input[type=text], .list-col-row .col-item select { width: 70%; }
.list-col-row .col-req { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #5b6b7d; white-space: nowrap; cursor: pointer; }
.list-col-row .col-file-tip { font-size: 12px; color: #8a97a8; line-height: 1.5; }
/* 下拉选项：每个选项一行输入框（可增删行） */
.list-col-row .col-options.select-options { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 70%; }
.list-col-row .opt-list { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.list-col-row .opt-row { display: flex; align-items: center; gap: 6px; }
.list-col-row .opt-item { flex: 1; min-width: 120px; }
.list-col-row .opt-add { align-self: flex-start; padding: 4px 10px; font-size: 12px; }

/* 协作编辑：列按组分区域框（不同组背景色不同） */
.col-region { border: 1px solid #e3eaf1; border-radius: 10px; padding: 10px 12px 4px; margin-bottom: 12px; background: #f8fafc; }
.col-region[data-group-no="0"] { background: #f4f6f8; }
.col-region-title { font-size: 13px; font-weight: 700; color: #2f3b4b; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.col-region-title::before { content: ''; width: 4px; height: 13px; border-radius: 2px; background: #2f6fb0; }
.col-region[data-group-no="1"] { background: #eaf6f1; border-color: #c9e8d9; }
.col-region[data-group-no="2"] { background: #f3f0fa; border-color: #dcd3f0; }
.col-region[data-group-no="3"] { background: #fdf3e6; border-color: #f3dfc0; }
.col-region[data-group-no="4"] { background: #e8f4fb; border-color: #c7e2f2; }
.col-region[data-group-no="5"] { background: #fbeef1; border-color: #f0cfd8; }
.col-region[data-group-no="6"] { background: #f0f8ec; border-color: #d8ecca; }
.col-region[data-group-no="7"] { background: #eef4fb; border-color: #d2e0f0; }
.col-region[data-group-no="8"] { background: #faf3ec; border-color: #eddcc8; }
.col-region[data-group-no="9"] { background: #eef4f0; border-color: #d5e4da; }
.col-region[data-group-no="10"] { background: #f7f0f8; border-color: #e6d3e8; }
.col-region[data-group-no="11"] { background: #eefbf6; border-color: #cdecdf; }
.col-region[data-group-no="12"] { background: #fbf0ee; border-color: #eecfc9; }

/* 用户侧清单填写表单：宽度为屏幕 70% */
.fill-70 { width: 70vw; max-width: 100%; }
@media (max-width: 900px) { .fill-70 { width: 100%; } }
/* 同一组有多条字段时：每条一行，竖排 */
.fill-70 .form-grid { grid-template-columns: 1fr; }
/* 类型为多行（textarea）时：宽度撑满表单卡片（卡片即屏幕 70%） */
.fill-70 .form-section textarea { width: 100%; box-sizing: border-box; }

/* 协作参与范围筛选条件构建器 */
.scope-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.scope-row input[type=text], .scope-row select { padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; box-sizing: border-box; background: #fff; }
.scope-row input[type=text]:focus, .scope-row select:focus { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,.12); outline: none; }
.scope-row .scope-key { width: 150px; }
.scope-row .scope-op { width: 100px; }
.scope-row .scope-value { width: 220px; }
/* 参与范围条件值：「下拉 + 其他（手工输入）」兜底结构 */
.scope-value-wrap { display: inline-flex; align-items: center; gap: 8px; }
.scope-value-custom { width: 220px; }
.scope-row input.green-field { background: #e9f9ef; border-color: #b7e3c8; }
.scope-row input.green-field:focus { border-color: #3dbf73; box-shadow: 0 0 0 2px rgba(61,191,115,.15); }

/* 清单条目拖拽排序（仅管理员） */
tr.drag-row { cursor: grab; }
tr.drag-row.drag-frm { opacity: .45; }
tr.drag-row .drag-handle { cursor: grab; color: #8a97a8; margin-right: 6px; user-select: none; }
tr.drag-row .drag-handle:hover { color: #1a73e8; }

/* ===== 班费管理 ===== */
.fund-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fund-tabs .fund-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 20px; border: 1px solid #d5dde5; background: #fff; font-size: 14px; color: #4a5a6a; cursor: pointer; text-decoration: none; }
.fund-tabs .fund-tab.active { background: #4a90d9; border-color: #4a90d9; color: #fff; font-weight: 600; }

/* 总表统计卡片 */
.fund-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fund-card { background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(30,60,100,.05); }
.fund-card .fc-label { font-size: 12px; color: #8a97a5; margin-bottom: 6px; }
.fund-card .fc-num { font-size: 24px; font-weight: 700; color: #2b3440; line-height: 1.2; }
.fund-card .fc-num small { font-size: 13px; font-weight: 400; color: #8a97a5; margin-left: 2px; }
.fund-card.fc-in .fc-num { color: #1e7e34; }
.fund-card.fc-out .fc-num { color: #c0392b; }
.fund-card.fc-balance .fc-num { color: #2f6fb0; }
.fund-card.fc-neg .fc-num { color: #c0392b; }

/* 金额颜色（表格内） */
.amt-in { color: #1e7e34; font-weight: 600; }
.amt-out { color: #c0392b; font-weight: 600; }
.amt-bal { color: #2f6fb0; font-weight: 600; }
.amt-neg { color: #c0392b; font-weight: 600; }

/* 缴费状态徽章色 */
.badge-unpaid { background: #eceff2; color: #7a8694; }
.badge-partial { background: #fdf3e3; color: #b9770e; }

/* 批量操作条 */
.fund-batch { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #eef2f6; background: #fbfcfe; flex-wrap: wrap; }
.fund-batch .fb-input { width: 130px; padding: 9px 12px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.fund-batch .fb-input:focus { border-color: #4a90d9; outline: none; }
.fund-batch .muted { font-size: 12px; }

/* 表尾合计行 */
.table .fund-sum td { background: #f3f7ff; font-weight: 600; color: #1f2d3d; }

/* 快捷入口卡 */
.fund-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.fund-link { display: block; background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; padding: 14px 16px; text-decoration: none; color: #2b3440; box-shadow: 0 2px 8px rgba(30,60,100,.05); transition: all .15s; }
.fund-link:hover { border-color: #b9d4f0; transform: translateY(-1px); }
.fund-link .fl-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.fund-link .fl-desc { font-size: 12px; color: #8a97a5; line-height: 1.6; }

/* 个人明细列表：姓名链接（查看个人明细） */
.fund-name-link { color: #2f6fb0; font-weight: 600; text-decoration: none; }
.fund-name-link:hover { color: #1c4f85; text-decoration: underline; }

/* 个人明细：汇总条 + 卡片列表（格式参考小程序「个人明细」列表） */
.fund-summary { background: #fbfcfe; border: 1px solid #eef2f6; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 13px; color: #5c6b7a; line-height: 1.7; }
/* 与小程序侧一致：竖向列表（非卡片网格），每行一人，点击整行进入个人明细 */
.fund-person-list { border: 1px solid #e6ebf1; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(30,60,100,.05); }
.fund-person { position: relative; background: #fff; border-radius: 0; padding: 12px 16px; transition: background .15s; }
.fund-person + .fund-person { border-top: 1px solid #eef2f6; }
.fund-person:hover { background: #f6faff; }
.fund-person .fp-link { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1; }
.fund-person .fp-row { display: flex; align-items: center; gap: 10px; }
.fund-person .fp-left { flex: 1; min-width: 0; }
.fund-person .fp-name { font-size: 16px; font-weight: 700; color: #2b3440; }
.fund-person .fp-user { font-size: 12px; color: #8a97a5; margin-top: 3px; }
.fund-person .fp-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.fund-person .fp-bal { font-size: 17px; font-weight: 700; }
.fund-person .fp-arrow { color: #b9c4d0; font-size: 20px; line-height: 1; }
.fund-person .fp-meta { margin-top: 6px; font-size: 13px; color: #5c6b7a; line-height: 1.7; }
.fund-person .fp-remark { margin-top: 2px; font-size: 12px; color: #8a97a5; line-height: 1.6; }
.fund-person .fp-ops { position: relative; z-index: 2; margin-top: 10px; display: flex; justify-content: flex-end; gap: 6px; }
.fund-person .fp-right .btn { position: relative; z-index: 2; }
.fund-person .fp-remark + .fp-ops { margin-top: 8px; }
@media (max-width: 600px) {
  .fund-person .fp-row { flex-wrap: wrap; }
  .fund-person .fp-right { margin-left: auto; }
}

/* 个人明细：个人视角流水（参考小程序 pages/fund/person，收入金额靠右、支出金额靠左） */
.fund-ledger { border-top: 1px solid #eef2f6; }
.fund-ledger .fl-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eef2f6; }
.fund-ledger .fl-row:last-of-type { border-bottom: none; }
.fund-ledger .fl-row.fl-void { opacity: .55; }
.fund-ledger .fl-amt { flex: 0 0 96px; font-size: 16px; font-weight: 700; text-align: left; }
.fund-ledger .fl-amt.in { color: #1e7e34; }
.fund-ledger .fl-amt.out { color: #c0392b; }
.fund-ledger .fl-row.fl-in .fl-amt { order: 2; text-align: right; }
.fund-ledger .fl-row.fl-in .fl-main { order: 1; }
.fund-ledger .fl-main { flex: 1; min-width: 0; }
.fund-ledger .fl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fund-ledger .fl-item { font-size: 14px; font-weight: 600; color: #2b3440; }
.fund-ledger .fl-no { font-size: 12px; color: #8a97a5; }
.fund-ledger .fl-meta { margin-top: 4px; font-size: 12px; color: #8a97a5; }
.fund-ledger .fl-remark { margin-top: 4px; font-size: 12px; color: #8a97a5; word-break: break-all; }
.fund-ledger-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #f3f7ff; border-top: 1px solid #e6ebf1; font-size: 13px; font-weight: 600; color: #1f2d3d; }
.fund-ledger-foot .fl-bal { margin-left: auto; }
@media (max-width: 600px) {
  .fund-ledger .fl-amt { flex: 0 0 78px; font-size: 15px; }
}

/* ===== 学生多选（班费收支/缴费/分摊选人） ===== */
.sel-box { border: 1px solid #e0e7ee; border-radius: 8px; background: #fbfcfe; overflow: hidden; }
.sel-box .sel-ops { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eef2f6; background: #fff; flex-wrap: wrap; }
.sel-box .sel-ops .muted { font-size: 12px; }
.sel-box .sel-list { display: flex; flex-wrap: wrap; gap: 0; max-height: 260px; overflow-y: auto; padding: 4px 6px; }
.sel-box .sel-item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; margin: 2px; border: 1px solid #e6ebf1; border-radius: 6px; background: #fff; font-size: 13px; cursor: pointer; user-select: none; }
.sel-box .sel-item:hover { border-color: #b9d4f0; background: #f3f8fe; }
.sel-box .sel-item input { width: 14px; height: 14px; margin: 0; accent-color: #4a90d9; flex-shrink: 0; }
.sel-box .sel-item .sel-name { color: #2b3440; }
.sel-box .sel-item .muted { font-size: 12px; }

/* ===== 分摊项目选择（从班级明细中选择） ===== */
.share-tx-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-tx-row select { flex: 1; min-width: 260px; padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.share-tx-row select:focus { border-color: #4a90d9; outline: none; }
.share-filter { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #4a5a6a; cursor: pointer; white-space: nowrap; }
.share-filter input { width: 14px; height: 14px; margin: 0; accent-color: #4a90d9; }

/* ===== 个人明细：一人一行（表格） ===== */
.table-wrap { overflow-x: auto; }
.ta-r { text-align: right; }
.fund-share-table .fs-bal { font-size: 15px; }
.fs-toggle { color: #2563eb; text-decoration: none; white-space: nowrap; }
.fs-toggle:hover { text-decoration: underline; }
.fs-caret { font-size: 12px; }
.fund-share-table tr.fs-detail > td { background: #fafbfc; padding: 0; }
.fund-share-table tr.fs-detail .fund-ledger { border-top: none; }
