:root {
  --brand: #B42318;
  --brand-dark: #8f1c13;
  --brand-soft: #fdf3f2;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --line: #e3e6ea;
  --ok: #147d4b;
  --ok-soft: #eaf6ef;
  --warn: #b45309;
  --warn-soft: #fdf6e9;
  --info: #1d4ed8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------- 通用组件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 9px 16px; border-radius: 8px; font-size: 14px; cursor: pointer;
  transition: .15s; font-family: inherit; white-space: nowrap;
}
.btn:hover { border-color: #c9ced6; background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 6px; }
.btn-danger { color: var(--brand); border-color: #f0c9c5; }
.btn-danger:hover { background: var(--brand-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand); }

.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text); outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.textarea { resize: vertical; min-height: 68px; line-height: 1.6; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field .req { color: var(--brand); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card-hd { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-hd h3 { font-size: 15px; }
.card-bd { padding: 16px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-info { background: #eef2ff; color: var(--info); }
.tag-gray { background: #f1f2f4; color: var(--muted); }
.tag-err { background: #fdecea; color: var(--brand); }
/* 记录详情顶部的审核状态条 */
.audit-bar { padding: 10px 14px; font-size: 13px; line-height: 1.6; border-radius: 8px; margin-bottom: 12px; }
.audit-bar.warn { background: var(--warn-soft); color: #7a4a00; }
.audit-bar.err { background: #fdecea; color: var(--brand); }
.audit-bar.ok { background: var(--ok-soft); color: var(--ok); }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 0; min-width: 0; }
.spacer { flex: 1; }

.toast-wrap { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #262b33; color: #fff; padding: 9px 18px; border-radius: 8px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-width: 78vw; }
.toast.err { background: #b42318; }
.toast.ok { background: #147d4b; }

.mask { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: flex; align-items: center; justify-content: center; z-index: 900; padding: 20px; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; max-height: 86vh; overflow: auto; box-shadow: 0 24px 56px rgba(0,0,0,.25); }
.modal-hd { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.modal-bd { padding: 18px; }
.modal-ft { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.x-close { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: 0; padding: 0 4px; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: middle; }
table.grid th { background: #fafbfc; color: var(--muted); font-weight: 500; white-space: nowrap; font-size: 12px; }
table.grid tbody tr:hover { background: #fafbfc; }
table.grid td.actions { white-space: nowrap; text-align: right; }

/* ---------------------------------------------------------- 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(160deg, #fdf6f5 0%, #f4f5f7 46%, #eef1f5 100%); }
.login-box { width: 100%; max-width: 380px; }
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .mark { width: 58px; height: 58px; border-radius: 14px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(180, 35, 24, .28); }
.login-brand h1 { font-size: 19px; }
.login-brand p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.login-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; line-height: 1.9; }

/* ---------------------------------------------------------- 手机端 */
.app { max-width: 640px; margin: 0 auto; padding-bottom: 76px; min-height: 100vh; }
.appbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.appbar h2 { font-size: 16px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .back { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; padding: 0 2px; line-height: 1; }
.app-body { padding: 14px; }

.hero { background: linear-gradient(135deg, #B42318 0%, #8f1c13 100%); color: #fff; border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px; box-shadow: 0 8px 22px rgba(180,35,24,.2); }
.hero .hi { font-size: 17px; font-weight: 600; }
.hero .sub { font-size: 12.5px; opacity: .88; margin-top: 4px; }

.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px;
  cursor: pointer; transition: .15s; box-shadow: var(--shadow); }
.entry:active { transform: scale(.985); }
.entry .ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 10px; background: var(--brand-soft); color: var(--brand); }
.entry .t { font-weight: 600; font-size: 14px; }
.entry .d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.list-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px;
  cursor: pointer; box-shadow: var(--shadow); }
.list-item:active { background: #fafbfc; }
.list-item .l1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.list-item .l1 .name { font-weight: 600; font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .l2 { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 60; padding-bottom: env(safe-area-inset-bottom); max-width: 640px; margin: 0 auto; }
.tabbar .tab { flex: 1; text-align: center; padding: 8px 0 9px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.tabbar .tab .ic { display: block; font-size: 18px; line-height: 1.35; }
.tabbar .tab.on { color: var(--brand); font-weight: 600; }

.form-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.form-sec > .hd { padding: 11px 14px; background: #fafbfc; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.form-sec > .hd .no { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.form-sec > .bd { padding: 12px 14px; }

.item-row { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.item-row:last-child { border-bottom: 0; padding-bottom: 0; }
.item-row .c { font-size: 13.5px; line-height: 1.55; margin-bottom: 8px; }
.item-row .meta { font-size: 11.5px; color: var(--muted); }
/* 巡查情况 4 个选项，窄屏自动排成 2×2，避免挤在一行 */
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.seg label { flex: 1 1 calc(50% - 6px); box-sizing: border-box; text-align: center; padding: 8px 4px;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; line-height: 1.3; cursor: pointer; background: #fff; user-select: none; }
.seg input { display: none; }
.seg input:checked + span { font-weight: 600; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.seg label.ok:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.seg label.na:has(input:checked) { border-color: #9aa1ab; background: #f1f3f5; color: #5b6470; }

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
table.edit { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 660px; }
table.edit th { background: #fafbfc; border: 1px solid var(--line); padding: 7px 6px; font-weight: 500; color: var(--muted); white-space: nowrap; font-size: 12px; }
table.edit td { border: 1px solid var(--line); padding: 0; }
table.edit td input { border: 0; width: 100%; padding: 8px 6px; font-size: 12.5px; font-family: inherit; outline: none; background: transparent; }
table.edit td input:focus { background: #fffaf9; box-shadow: inset 0 0 0 2px rgba(180,35,24,.14); }
table.edit td.idx { text-align: center; color: var(--muted); background: #fafbfc; width: 34px; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f7f8fa; }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph .del { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: 0; font-size: 12px; line-height: 20px; cursor: pointer; }
.photos .add { aspect-ratio: 1; border: 1px dashed #c6ccd4; border-radius: 8px; display: flex; flex-direction: column;
  gap: 3px; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; background: #fff; -webkit-tap-highlight-color: transparent; }
.photos .add .ico { font-size: 20px; line-height: 1; }
.photos .add:active { border-color: var(--brand); color: var(--brand); }

/* ---------------------------------------------------------- 单据文档（详情 / 签字 / PDF） */
.doc { background: #fff; color: #000; padding: 16px; font-family: "SimSun", "宋体", "Songti SC", serif; }
.doc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .doc { min-width: 780px; }
}
.doc-title { text-align: center; font-size: 19px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.doc-meta { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
table.doc-tbl { border-collapse: collapse; width: 100%; font-size: 12px; }
table.doc-tbl th, table.doc-tbl td { border: 1px solid #333; padding: 5px 6px; line-height: 1.5; word-break: break-word; }
table.doc-tbl th { background: #f2f2f2; text-align: center; font-weight: 700; }
table.doc-tbl td.c { text-align: center; }
table.doc-tbl tr[data-nobreak] { page-break-inside: avoid; }
/* 强制分页：该行从新的一页开始（打印与另存 PDF 均生效） */
table.doc-tbl tr[data-pagebreak] { page-break-before: always; break-before: page; }
@media print {
  table.doc-tbl tr[data-pagebreak] { page-break-before: always; }
}
/* 表一按原模板：签字 / 备注 / 注 / 月检记录照片 都是表格内的行 */
table.doc-tbl td.l { text-align: left; }
/* 表一备注栏：内容由故障原因汇总而来，可能较长，字号略收以保证一页放得下 */
table.doc-tbl td.rmk { font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
table.doc-tbl td.note { font-size: 11.5px; line-height: 1.8; text-align: left; padding: 6px 8px; }
table.doc-tbl td.photo-hd { text-align: center; font-weight: 700; font-size: 12.5px; letter-spacing: .5px; padding: 6px; }
/* 表一月检照片：跨列，每行 4 张等宽、占满整幅单据宽度 */
table.doc-tbl td.pg-wrap { padding: 0; }
table.pg-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
table.pg-tbl td.pg-cell { width: 25%; height: 128px; padding: 3px; text-align: center; vertical-align: middle;
  border: 1px solid #666; background: #fff; }
table.pg-tbl td.pg-cell img { max-width: 100%; max-height: 120px; display: block; margin: 0 auto; }
table.doc-tbl td.blank { height: 24px; }
.doc-note { font-size: 11.5px; line-height: 1.85; margin-top: 8px; }
/* 表单后面的现场照片区（模板样式：居中标题 + 照片墙） */
.doc-photo-hd { margin-top: 18px; padding-top: 9px; border-top: 1px solid #333; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; }
/* 用行内块而非 grid：html2canvas 截图（出 PDF）时布局最稳；每行 4 张、每格一张带框
   注意：这一层不能加 background —— html2canvas 会把父元素的白底画到子 img 之上，照片变成空白框 */
.doc-photos { margin-top: 10px; font-size: 0; }
.doc-photo { display: inline-block; vertical-align: top; width: 23.5%; margin: 0 2% 8px 0;
  border: 1px solid #666; box-sizing: border-box; }
.doc-photo:nth-child(4n) { margin-right: 0; }
.doc-photo img { width: 100%; display: block; }
.doc-foot { margin-top: 12px; display: flex; justify-content: space-between; gap: 20px; font-size: 12.5px; flex-wrap: wrap; }
.doc-info { margin-top: 10px; border-top: 1px dashed #999; padding-top: 8px; font-size: 11.5px; color: #333;
  display: flex; gap: 18px; flex-wrap: wrap; }
.sig-block { margin-top: 14px; border: 1px solid #333; padding: 10px 12px; font-size: 12.5px; }
.sig-block .t { font-weight: 700; margin-bottom: 6px; }
.sig-img { height: 56px; display: block; }
.sig-line { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
/* 客户（消防安全管理人）手写签名：贴在签字栏文字后面。
   高度受控，避免把落款区撑高；父元素一律不能带 background（html2canvas 会把
   父级白底画到子 img 之上，签名变成空白框）。 */
.mgr-sig { height: 30px; width: auto; vertical-align: middle; margin-left: 6px; }

/* 单据尾部：审核确认（电子签名 + 单位电子签章） */
.doc-audit { margin-top: 12px; border: 1px solid #333; padding: 10px 12px; font-size: 12.5px; }
.doc-audit .t { font-weight: 700; margin-bottom: 8px; }
.doc-audit .audit-signs { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.doc-audit .as-item { min-width: 130px; }
.doc-audit .lab { color: #555; margin-bottom: 4px; }
.doc-audit .as-item img { height: 60px; display: block; }
.doc-audit .as-item img.seal { height: 84px; width: auto; }
.doc-audit .ph { height: 60px; display: flex; align-items: center; color: #999; }
.doc-audit .nm { margin-top: 4px; font-size: 12px; }
.doc-audit .audit-at { margin-top: 8px; color: #444; }

/* 表一：审核确认栏作为工作表最后一行（跨列），内容与尾部审核区一致 */
table.doc-tbl td.au-wrap { padding: 8px 10px; text-align: left; }
.doc-tbl .au-t { font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.doc-tbl .au-signs { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.doc-tbl .as-item { min-width: 150px; }
.doc-tbl .as-item .lab { color: #555; font-size: 12px; margin-bottom: 3px; }
.doc-tbl .as-item img { height: 54px; display: block; }
.doc-tbl .as-item img.seal { height: 78px; width: auto; }
.doc-tbl .as-item .ph { height: 54px; display: flex; align-items: center; color: #999; }
.doc-tbl .as-item .nm { margin-top: 3px; font-size: 12px; }
.doc-tbl .au-at { margin-top: 6px; color: #444; font-size: 11.5px; line-height: 1.7; }

/* 注册消防工程师执业签署：2 人的电子签名 + 注册章 */
.doc-stamps { margin-top: 12px; border: 1px solid #333; padding: 10px 12px; font-size: 12.5px; }
.doc-stamps .t { font-weight: 700; margin-bottom: 8px; }
.doc-stamps .st-list { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.doc-stamps .st-item { min-width: 190px; }
.doc-stamps .st-item .lab { color: #555; margin-bottom: 4px; }
.doc-stamps .imgs { display: flex; gap: 18px; align-items: flex-end; }
.doc-stamps .imgs .im { min-width: 78px; }
.doc-stamps .imgs .sl { color: #777; font-size: 11px; margin-bottom: 2px; }
.doc-stamps img { height: 52px; display: block; }
.doc-stamps img.seal { height: 76px; width: auto; }
.doc-stamps .ph { height: 52px; display: flex; align-items: center; color: #999; }
.doc-stamps .nm { margin-top: 5px; font-size: 12px; }

/* 表一 14/15 行：签字 + 预留日期，与小程序 PDF 输出一致 */
table.doc-tbl td.l { text-align: left; vertical-align: middle; }
table.doc-tbl td.l .r { float: right; color: #333; }
/* 表一 17/18 行：技术负责人 / 项目负责人（签字 + 签章），与小程序 PDF 输出一致 */
table.doc-tbl td.st-cell { padding: 6px 10px; }
.doc-tbl .st-nm { font-size: 12px; color: #333; margin-bottom: 4px; }
.doc-tbl .st-imgs { display: flex; gap: 24px; align-items: flex-end; }
.doc-tbl .st-imgs .im { min-width: 78px; }
.doc-tbl .st-imgs .sl { color: #777; font-size: 11px; margin-bottom: 2px; }
.doc-tbl .st-imgs img { height: 48px; display: block; }
.doc-tbl .st-imgs img.seal { height: 68px; width: auto; }
.doc-tbl .st-imgs .ph { height: 48px; display: flex; align-items: center; color: #999; }

.sig-canvas-box { border: 1px dashed #b9c0c9; border-radius: 10px; background: #fff; position: relative; touch-action: none; }
.sig-canvas-box canvas { display: block; width: 100%; height: 200px; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; pointer-events: auto; }
.sig-canvas-box .hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #b6bcc5; font-size: 13px; pointer-events: none; }

/* ---------------------------------------------------------- 后台 */
.admin-layout { display: flex; min-height: 100vh; }
.side { width: 208px; background: #1f2733; color: #c7cdd6; flex: none; display: flex; flex-direction: column; }
.side .brand { padding: 18px 18px 14px; color: #fff; font-weight: 600; font-size: 15px; border-bottom: 1px solid #2c3644; }
.side .brand small { display: block; font-weight: 400; font-size: 11px; color: #8b95a3; margin-top: 3px; }
.side nav { padding: 10px 8px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 8px; color: #c7cdd6; font-size: 13.5px; cursor: pointer; margin-bottom: 2px; }
.side nav a:hover { background: #2a3341; color: #fff; }
.side nav a.on { background: var(--brand); color: #fff; font-weight: 500; }
.side .foot { padding: 12px; border-top: 1px solid #2c3644; font-size: 12px; color: #8b95a3; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.topbar h2 { font-size: 16px; flex: 1; }
.content { padding: 18px 20px 40px; flex: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.25; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat.brand .n { color: var(--brand); }
.stat.ok .n { color: var(--ok); }
.stat.warn .n { color: var(--warn); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .f { display: flex; flex-direction: column; gap: 5px; }
.filters .f label { font-size: 12px; color: var(--muted); }
.filters .f .input, .filters .f .select { min-width: 130px; }

.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 0 0; font-size: 13px; color: var(--muted); }

.preview-pane { background: #eef0f3; padding: 20px; border-radius: var(--radius); overflow: auto; max-height: 74vh; }
.preview-pane .doc { max-width: 820px; margin: 0 auto; box-shadow: 0 4px 18px rgba(0,0,0,.12); }

.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; min-height: 300px; }

@media (max-width: 820px) {
  .admin-layout { flex-direction: column; }
  .side { width: 100%; flex-direction: row; overflow-x: auto; align-items: center; }
  .side .brand, .side .foot { display: none; }
  .side nav { display: flex; gap: 4px; padding: 8px; }
  .side nav a { white-space: nowrap; margin: 0; }
  .filters .f { flex: 1 1 46%; }
  .filters .f .input, .filters .f .select { min-width: 0; }
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .doc { box-shadow: none; padding: 0; }
}

/* 人员 / 项目分配勾选列表 */
.ck-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.ck-list .ck { display: flex; align-items: flex-start; gap: 8px; padding: 8px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 14px; line-height: 1.5; }
.ck-list .ck:last-child { border-bottom: 0; }
.ck-list .ck input { width: 16px; height: 16px; margin-top: 2px; flex: none; cursor: pointer; }
.ck-list .ck:hover { background: var(--bg-soft, #f6f7f9); }

/* 审核纠错：逐项修改 */
.fx-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.fx-item .tt { font-size: 13.5px; font-weight: 600; line-height: 1.6; margin-bottom: 8px; }
.fx-item .tt .no { color: var(--muted); font-weight: 400; }
.fx-item textarea { min-height: 56px; margin-top: 8px; }
