* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #033A8A;
  --brand-dark: #022E6E;
  --brand-50: #EDF1F7;
  --brand-100: #D9E1ED;
  --brand-200: #B8C8DE;
  --accent: #16A8A8;
  --accent-50: #EFF9F9;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --line: #E6E4E1;
  --line-soft: #F1F0ED;
  --text: #1A1A1A;
  --sub: #6E6D6C;
  --hint: #9A9997;
  --danger: #C9403A;
  --warn: #B8860B;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 登录 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #033A8A 0%, #022E6E 100%);
}

.login-card {
  width: 380px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 36px 32px;
}

.login-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.login-title { margin-top: 18px; font-size: 20px; font-weight: 600; }
.login-sub { margin-top: 4px; font-size: 13px; color: var(--sub); }
.login-form { margin-top: 28px; }
.login-tip { margin-top: 18px; font-size: 12px; color: var(--hint); line-height: 1.7; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }

input[type="text"], input[type="password"], select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-family: inherit;
}

input:focus, select:focus { border-color: var(--brand); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { background: #FAFBFC; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { color: var(--brand); border-color: var(--brand-200); }
.btn-danger { color: var(--danger); border-color: #F0C9C4; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

/* ---------- 框架 ---------- */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 200px;
  flex: none;
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
}

.side-head { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.side-title { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.side-sub { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 3px; }

.nav { padding: 12px 10px; flex: 1; }
.nav-item {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 500; }

.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.6); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex: none;
}

.topbar h1 { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--sub); }

.content { padding: 20px 24px 40px; flex: 1; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.card-label { font-size: 12px; color: var(--sub); }
.card-num { font-size: 28px; font-weight: 600; margin-top: 4px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.card-num.brand { color: var(--brand); }
.card-num.accent { color: var(--accent); }
.card-num.danger { color: var(--danger); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 30, 50, 0.04);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title { font-size: 14px; font-weight: 600; }
.panel-body { padding: 18px; }
.panel-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
  text-align: left;
  padding: 10px 12px;
  background: #FAFBFC;
  color: var(--sub);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

tbody tr:hover { background: #FCFCFD; }
tbody tr:last-child td { border-bottom: none; }

.t-wrap { max-width: 420px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
}
.tag-done { background: #E8F6EA; color: #0A7D2C; }
.tag-todo { background: var(--brand-50); color: var(--brand); }
.tag-warn { background: #FBF4E6; color: var(--warn); }
.tag-danger { background: #FBEDEC; color: var(--danger); }
.tag-mute { background: #F1F0ED; color: var(--sub); }

.rate-bar { display: flex; align-items: center; gap: 8px; }
.rate-track { width: 70px; height: 6px; background: #EDEDEA; border-radius: 3px; overflow: hidden; }
.rate-fill { height: 100%; background: var(--accent); }
.rate-text { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* ---------- 图纸 ---------- */
.upload-box {
  border: 1px dashed var(--brand-200);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
  background: #FAFBFD;
  cursor: pointer;
}
.upload-box:hover { background: var(--brand-50); }
.upload-title { font-size: 14px; color: var(--brand); font-weight: 500; }
.upload-hint { font-size: 12px; color: var(--hint); margin-top: 6px; line-height: 1.8; }

.thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: #111; cursor: pointer; }

/* ---------- 开关 ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.switch-desc { font-size: 12px; color: var(--sub); margin-top: 4px; max-width: 560px; line-height: 1.7; }

.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: #D3D1C7; border-radius: 13px; cursor: pointer; transition: .18s;
}
.switch span::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .18s;
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- 空态与提示 ---------- */
.empty { padding: 48px 0; text-align: center; color: var(--hint); font-size: 13px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(26,26,26,.9);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; z-index: 900;
  /* 上下留白 + 兜底滚动：弹窗再高也不会顶出视口被裁掉 */
  padding: 24px 16px; box-sizing: border-box;
}
.modal {
  width: 420px; background: #fff; border-radius: 12px; padding: 24px;
  /* 长表单弹窗（授权 / 编辑用户）自身可滚动，之前没有 max-height+overflow，底部按钮点不到 */
  max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  box-sizing: border-box;
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.muted { color: var(--sub); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* 侧边栏身份标识 */
.side-role { font-size: 11px; color: #8FD9C7; margin-top: 2px; }

/* 弹窗里的多选行 */
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; cursor: pointer; }
.check-line input { width: 15px; height: 15px; }

/* 单位与人员：展开的人员子表 */
tr.org-detail > td { background: #F7FAF9; padding: 0 !important; }
.org-people { padding: 12px 16px 16px; }
.org-people-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.org-people table { background: #fff; border-radius: 8px; }

/* ---------- 题库管理 ---------- */
.tab-line { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  height: 34px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--sub); font-size: 13px; cursor: pointer; font-family: inherit;
}
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; line-height: 1.6; resize: vertical; outline: none; color: var(--text);
}
textarea:focus { border-color: var(--brand); }
input[type="file"] { width: 100%; font-size: 13px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-stem { max-width: 520px; }
.q-text {
  font-size: 13px; line-height: 1.5; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.q-ops { white-space: nowrap; }
.q-ops .btn { margin-right: 6px; }

/* 专项检查 */
tr.row-on td { background: #F0F7F5; }

/* 小程序用户头像 */
.u-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #F0F1F3;
}

/* ---------- 图纸管理 ---------- */
.draw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}
.draw-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}
.draw-img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #1a1a1a;
  border-radius: 6px;
  cursor: pointer;
}
.draw-meta { font-size: 12px; color: var(--sub); min-height: 16px; }
.draw-meta .tag { margin-top: 2px; }

/* 楼栋标签 + 删除按钮 */
.b-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-50, #EAF6F2);
  color: var(--brand, #16A8A8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 3px 8px;
  font-size: 13px;
}
.b-chip-del {
  border: none;
  background: transparent;
  color: var(--brand, #16A8A8);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
}
.b-chip-del:hover { color: #C9403A; }
.b-chip-off { opacity: .5; }
.b-chip-toggle {
  border: 1px solid var(--brand, #16A8A8);
  background: transparent;
  color: var(--brand, #16A8A8);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 2px;
}

/* 问题照片网格（修改弹窗） */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.photo-grid .thumb { width: 72px; height: 72px; }

/* ---------- 通用拖拽上传 ---------- */
.dz {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--sub);
  background: #FAFCFB;
  cursor: pointer;
  transition: .15s;
  line-height: 1.5;
}
.dz:hover, .dz.dz-over { border-color: var(--brand); background: var(--brand-50, #EAF6F2); color: var(--brand); }
.dz input[type=file] { display: none; }

/* ---------- 行内小图 / 放大镜 ---------- */
.thumb-sm { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); cursor: zoom-in; background: #111; }
.row-photos { display: flex; flex-wrap: wrap; gap: 4px; }
.img-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; z-index: 1000; cursor: zoom-out; }
.img-viewer img { max-width: 92vw; max-height: 90vh; border-radius: 6px; }

/* ---------- 图纸标记弹窗 ---------- */
.mark-wrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.mark-wrap img { max-width: 100%; max-height: 60vh; border-radius: 6px; display: block; }
.mark-dot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(201,64,58,.92); border: 2px solid #fff; color: #fff; font-size: 11px; line-height: 16px; text-align: center; pointer-events: none; }

/* ---------- 楼栋折叠块 / 外立面栅格 ---------- */
.b-block { border: 1px solid var(--line); border-radius: 10px; margin: 10px 16px; background: #fff; overflow: hidden; }
.b-block-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #F7FAF9; cursor: pointer; }
.b-block-body { padding: 0 14px 14px; }
.facade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.facade-cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  text-align: center; background: #FCFDFD;
  box-shadow: 0 1px 3px rgba(20, 30, 50, .05);
  display: flex; flex-direction: column; gap: 6px;
}
.facade-cell .dz { flex: 1; min-height: 96px; display: flex; align-items: center; justify-content: center; }
.facade-cell .fc-name { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }

/* ---------- 图纸楼层矩阵表 ---------- */
.matrix-table { border-collapse: separate; border-spacing: 0; }
.matrix-table thead th {
  padding: 9px 10px; font-size: 12px; font-weight: 600; color: var(--sub);
  background: #F7FAF9; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
.matrix-table tbody td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.matrix-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.matrix-table tbody tr:hover td { background: #FAFCFB; }
.matrix-table .thumb-sm { border-radius: 6px; border: 1px solid var(--line); cursor: zoom-in; }
/* ---------- 专项检查 · 录入问题表格 ---------- */
.entry-table { border-collapse: separate; border-spacing: 0; }
.entry-table thead th {
  padding: 10px 8px; font-size: 12px; font-weight: 600; color: var(--sub);
  background: #F7FAF9; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
}
.entry-table thead th:first-child { padding-left: 14px; }
.entry-table thead th:last-child { padding-right: 14px; }
.entry-table tbody td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.entry-table tbody td:first-child { padding-left: 14px; }
.entry-table tbody td:last-child { padding-right: 14px; }
.entry-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.entry-table tbody tr:hover td { background: #FAFCFB; }
.entry-table select,
.entry-table input[type=text],
.entry-table input[type=number] {
  width: 100%; height: 34px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--text); font-size: 13px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.entry-table select:focus,
.entry-table input[type=text]:focus,
.entry-table input[type=number]:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(3, 58, 138, .08);
}
/* 列宽集中管理（内容列自动撑开） */
.entry-table .et-c-module { width: 70px; }
.entry-table .et-c-content { min-width: 190px; }
.entry-table .et-c-location { width: 150px; }
.entry-table .et-c-contact, .entry-table .et-c-follow { width: 124px; }
.entry-table .et-c-category { width: 110px; }
.entry-table .et-c-due { width: 64px; }
.entry-table .et-c-photos { width: 100px; }
.entry-table .et-c-op { width: 48px; text-align: center; }
/* 位置列：下拉与标记按钮等宽对齐 */
.et-c-location select { margin-bottom: 5px; }
.et-mark { width: 100%; }
/* 期限输入去 spinner 边距 */
.entry-table input[type=number] { text-align: center; }
/* ---------- 专项检查 · 已录入问题表 ---------- */
.issue-table { table-layout: fixed; }
.issue-table thead th { text-align: center; padding: 10px 8px; white-space: nowrap; }
.issue-table tbody td { padding: 10px 8px; vertical-align: top; }
.issue-table tbody td.c-no, .issue-table tbody td.c-mod, .issue-table tbody td.c-status,
.issue-table tbody td.c-due, .issue-table tbody td.c-op { text-align: center; }
.issue-table .c-no { width: 48px; }
.issue-table .c-mod { width: 78px; }
.issue-table .c-content { width: auto; }
.issue-table .c-photo { width: 92px; }
.issue-table .c-loc { width: 148px; }
.issue-table .c-org { width: 148px; }
.issue-table .c-contact { width: 92px; }
.issue-table .c-cat { width: 104px; }
.issue-table .c-follow { width: 92px; }
.issue-table .c-status { width: 96px; }
.issue-table .c-due { width: 96px; }
.issue-table .c-op { width: 132px; }
.issue-table .c-content,
.issue-table .c-loc,
.issue-table .c-org { word-break: break-word; }
/* 模块显示不全：给足宽度并单独居中 */
.issue-table tbody td.c-mod { white-space: nowrap; }
.mini-link { color: var(--brand); cursor: pointer; font-size: 12px; }



/* ---------------- 用户授权：申请信息块 / 勾选列 ---------------- */
.apply-box {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FBF7EE;
  border: 1px solid #EFE2C6;
}
.apply-line {
  font-size: 12px;
  color: #6B5A2E;
  line-height: 1.7;
}
.apply-line b {
  color: #8A6410;
  font-weight: 600;
}
.apply-box .btn {
  margin-top: 8px;
}
table th input[type="checkbox"],
table td input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #033A8A;
  cursor: pointer;
}

/* ================================================================
   视觉升级 v2（2026-11）：更柔和的层次、更清楚的表格、更克制的主色
   仅覆盖样式，不改任何结构与交互
   ================================================================ */
:root {
  --brand: #0B4DA2;
  --brand-dark: #0A3C7D;
  --brand-deep: #072C5C;
  --brand-50: #EFF4FC;
  --brand-100: #DEE9F9;
  --brand-200: #BFD3F0;
  --accent: #0E9C8A;
  --accent-50: #EBF8F5;
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --line: #E5E9F0;
  --line-soft: #EFF2F7;
  --text: #1B2430;
  --sub: #667085;
  --hint: #98A2B3;
  --danger: #C9403A;
  --warn: #B17A08;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 30, 54, .05), 0 1px 3px rgba(16, 30, 54, .04);
  --shadow-md: 0 2px 6px rgba(16, 30, 54, .06), 0 8px 24px -12px rgba(16, 30, 54, .12);
}

body { letter-spacing: .1px; }

/* 侧栏：深蓝渐变 + 高亮条 */
.side {
  background: linear-gradient(185deg, #0A3C7D 0%, #072C5C 100%);
  box-shadow: 1px 0 0 rgba(255,255,255,.04) inset, 6px 0 24px -18px rgba(7,44,92,.9);
}
.side-head { padding: 22px 20px 16px; }
.side-title { font-size: 15.5px; letter-spacing: .6px; }
.side-sub { letter-spacing: 1.2px; font-size: 10.5px; text-transform: uppercase; }
.nav { padding: 14px 12px; }
.nav-item {
  position: relative;
  height: 42px;
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.72);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,.13);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.nav-item.active::before {
  content: "";
  position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: #4FD1C5;
}

/* 顶栏：吸顶 + 毛玻璃 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 60px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  border-bottom: none;
}
.topbar h1 { font-size: 16.5px; letter-spacing: .2px; }
.topbar-right { gap: 12px; }
.topbar-right span { font-size: 12.5px; }

.content { padding: 22px 26px 48px; }

/* 指标卡：顶部细色条 + 悬停轻抬 */
.cards { gap: 14px; }
.card {
  position: relative;
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #3F8ADF);
  opacity: .9;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-label { font-size: 12.5px; letter-spacing: .2px; }
.card-num { font-size: 27px; font-weight: 650; letter-spacing: -.4px; }

/* 面板 */
.panel {
  border-radius: var(--radius);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.panel-head {
  padding: 14px 18px;
  background: linear-gradient(180deg, #FCFDFF, #F7F9FC);
  border-bottom: 1px solid var(--line-soft);
}
.panel-title { font-size: 14.5px; letter-spacing: .2px; }
.panel-title::before {
  content: "";
  display: inline-block;
  width: 3px; height: 14px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: -2px;
}
.panel-body { padding: 16px 18px; }

/* 表格：表头更轻、内容更清楚 */
table { font-size: 13px; }
thead th {
  background: #F7F9FC;
  color: #5B6B82;
  font-weight: 600;
  letter-spacing: .3px;
  font-size: 11.5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 11px 12px; line-height: 1.55; }
tbody tr:hover td { background: #F8FAFD; }

/* 按钮 */
.btn {
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(.5px); }
.btn-primary {
  background: linear-gradient(180deg, #1257B4, var(--brand));
  border-color: var(--brand);
  box-shadow: 0 1px 2px rgba(11,77,162,.24), 0 6px 14px -10px rgba(11,77,162,.6);
}
.btn-primary:hover { background: linear-gradient(180deg, #0F4E9E, var(--brand-dark)); }
.btn-accent { background: linear-gradient(180deg, #12A895, var(--accent)); border-color: var(--accent); }
.btn-sm { height: 31px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* 输入框 / 下拉 */
input[type="text"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
  border-radius: 9px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus,
input[type="date"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,77,162,.1);
}

/* 标签 */
.tag { border-radius: 6px; font-size: 11.5px; padding: 1.5px 8px; font-weight: 500; }
.tag-done { background: #E8F6EA; color: #0A7D2C; }
.tag-todo { background: var(--brand-50); color: var(--brand); }
.tag-warn { background: #FCF3E2; color: var(--warn); }
.tag-danger { background: #FBEDEC; color: var(--danger); }
.tag-mute { background: #F2F4F7; color: var(--sub); }

/* 筛选条（操作日志等页面通用） */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 18px;
}

/* 操作日志表 */
.op-table tbody td { vertical-align: middle; }
.op-time { color: var(--sub); font-size: 12.5px; white-space: nowrap; }
.op-actor { font-weight: 500; }
.op-target { word-break: break-word; }
.op-path { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 登录页 */
.login-card { border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(4,20,44,.55); }
.login-logo { border-radius: 12px; background: linear-gradient(160deg, #1257B4, var(--brand)); }

/* 空态 */
.empty { color: var(--hint); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #D3DAE5; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #BCC6D6; }
::-webkit-scrollbar-track { background: transparent; }

/* 主色调整后的收口：硬编码旧色值统一跟新品牌色对齐 */
.login-wrap { background: linear-gradient(160deg, #0B4DA2 0%, #072C5C 100%); }
table th input[type="checkbox"], table td input[type="checkbox"] { accent-color: var(--brand); }

/* ---------------- 趋势图 / 专项查看弹窗 ---------------- */
.modal-wide { width: min(860px, 94vw); max-height: 88vh; overflow-y: auto; }

.btn-view {
  background: #F08519;
  border-color: #F08519;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(240,133,25,.3), 0 6px 14px -10px rgba(240,133,25,.7);
}
.btn-view:hover { background: #DB760E; border-color: #DB760E; }

.trend-chart { padding: 4px 0 0; }
.trend-svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 2px 4px 10px; font-size: 12px; color: var(--sub);
}
.lg-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-item i { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.trend-summary {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 10px 2px 0; font-size: 13px; color: var(--text);
}

/* 趋势图 2026-11-08：图例与下方按钮共用色块；选中=实色，未选中=虚线灰 */
button.lg-item {
  border: 1px solid transparent; background: transparent; padding: 2px 6px;
  border-radius: 6px; cursor: pointer; font: inherit; color: var(--sub);
}
button.lg-item:hover { border-color: #E4E7EC; background: #F8F9FB; }
button.lg-item.is-off { opacity: .38; }
button.lg-item.is-off span { text-decoration: line-through; }
.ts-swatch { width: 16px; height: 4px; border-radius: 2px; display: inline-block; flex: none; }

.trend-series-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: 14px;
  font-size: 12.5px; line-height: 1; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--sc); background: var(--sc-soft);
  color: var(--sc); font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.trend-series-btn:hover { filter: brightness(.97); }
.trend-series-btn.is-on { box-shadow: inset 0 0 0 1px var(--sc-mid); }
.trend-series-btn.is-off {
  background: #fff; border: 1px dashed #D0D5DD; color: #98A2B3;
  font-weight: 500; box-shadow: none;
}
.trend-series-btn.is-off .ts-swatch { opacity: .35; }
.trend-series-btn.is-off span { text-decoration: line-through; text-decoration-color: #C7CDD6; }
.trend-series-btn:focus-visible,
button.lg-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.trend-all-hidden { padding: 96px 0; color: var(--sub); font-size: 13px; }

.pie-wrap { display: flex; align-items: center; gap: 18px; }
.pie-svg { width: 128px; height: 128px; flex: none; }
.pie-legend { display: grid; gap: 6px; }
.pie-lg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); }
.pie-lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pie-lg b { color: var(--text); font-variant-numeric: tabular-nums; }
.pie-lg span { color: var(--hint); font-size: 11.5px; }

.view-sum { min-width: 220px; }

tr.rank-row { cursor: pointer; }
tr.rank-row:hover td { background: var(--brand-50); }

/* ---------------- 数据概览：起止时间选择器（v2） ---------------- */
.range-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F7F9FC;
  border-bottom: 1px solid var(--line);
}

.range-field {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  background: #FFFFFF;
  border: 1px solid #DCE3EC;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.range-field:focus-within {
  border-color: #0B4DA2;
  box-shadow: 0 0 0 3px rgba(11, 77, 162, 0.12);
}

.range-cap {
  flex: none;
  margin-right: 6px;
  font-size: 12px;
  color: #7A8798;
}

.range-input {
  width: 122px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: #1F2937;
  font-variant-numeric: tabular-nums;
}

.range-dash {
  color: #B7C1CE;
  font-size: 13px;
}

.range-sep {
  width: 1px;
  height: 20px;
  margin: 0 4px;
  background: #DCE3EC;
}

.range-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.range-switch input {
  display: none;
}

.range-switch-track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: #D5DBE3;
  transition: background 0.15s ease;
}

.range-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: left 0.15s ease;
}

.range-switch input:checked + .range-switch-track {
  background: #0B4DA2;
}

.range-switch input:checked + .range-switch-track::after {
  left: 18px;
}

.range-switch-text {
  font-size: 12px;
  color: #5B6779;
}

.range-select {
  flex: none;
  width: auto;
  max-width: 220px;
  height: 34px;
  min-width: 140px;
  padding: 0 8px;
  border: 1px solid #DCE3EC;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 13px;
  color: #1F2937;
}

/* 登录页 logo：方形图标（与浏览器 favicon 同一张 SVG） */
.login-logo img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.login-logo { overflow: hidden; }

/* 授权 / 启用 两个独立开关：开关旁显示状态文字 */
.switch-line { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.switch-text { font-size: 13px; font-weight: 500; color: #333; }
.switch input:disabled + span { opacity: .45; cursor: not-allowed; }

/* 身份 / 单位类型标签：各用各的颜色，不再一律绿 */
.tag-role-admin { background:#E4EAF8; color:#123C8C; }
.tag-role-owner { background:#E7ECFA; color:#1F3C88; }
.tag-role-chief { background:#DDF0EA; color:#0B5D4E; }
.tag-role-supervisor { background:#E0F4F6; color:#0B6B73; }
.tag-role-contractor { background:#FFF0DF; color:#9A5B00; }
.tag-role-student { background:#F0F0F2; color:#5C5C66; }
.tag-org-owner { background:#E7ECFA; color:#1F3C88; }
.tag-org-supervisor { background:#E0F4F6; color:#0B6B73; }
.tag-org-contractor { background:#FFF0DF; color:#9A5B00; }

/* 人员弹层：授权 / 账号状态 分成两块，避免两个开关混在一起误操作 */
.form-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 4px;
  margin-bottom: 14px;
  background: #FCFDFE;
}
.form-block.is-muted {
  background: #FAFBFC;
  border-style: dashed;
}
.block-title {
  font-size: 13px;
  font-weight: 600;
  color: #1F2A37;
  margin-bottom: 4px;
}
.block-desc {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* 人员行四个操作按钮：等宽、不换行、禁用的看得懂 */
.u-ops {
  white-space: nowrap;
}
.u-ops .btn {
  min-width: 52px;
  margin-right: 4px;
}
.u-ops .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(1);
}
.u-ops .btn:last-child {
  margin-right: 0;
}

/* ---------------- 红宝书：标签芯片 + 富文本编辑器（b20） ---------------- */
/* 以前 .rb-chip 完全没有样式，标签被浏览器当行内文字连成一串，
   看上去像一个不可编辑的文本框 —— 这是「标签无法选择」的根因。 */
.rb-chip-group { margin-bottom: 10px; }
.rb-chip-head {
  font-size: 11.5px;
  color: var(--sub);
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #DFE3EA;
  background: #FFFFFF;
  color: #4A4A48;
  font-size: 12.5px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.rb-chip:hover { border-color: #B9C6DD; background: #F7F9FD; }
.rb-chip.is-on { font-weight: 600; box-shadow: 0 1px 2px rgba(16, 36, 78, .12); }
.rb-chip.is-quality.is-on { background: #1F4F9E; border-color: #1F4F9E; color: #FFFFFF; }
.rb-chip.is-safety.is-on { background: #B4690E; border-color: #B4690E; color: #FFFFFF; }
.rb-chip.is-on::before { content: '✓'; margin-right: 4px; font-size: 11px; }

/* 列表里的标签：按分类上色，一眼区分质量 / 安全 */
.rb-tag.is-quality { background: #E8EEFA; color: #1F3C88; }
.rb-tag.is-safety { background: #FCF0DF; color: #9A5B00; }

.rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid #DFE3EA;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #F7F8FA;
}
.rt-btn {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #FFFFFF;
  color: #34405A;
  font-size: 12.5px;
  line-height: 1;
  cursor: pointer;
}
.rt-btn:hover { border-color: #C7D2E5; background: #EEF3FB; }
.rt-btn:active { background: #E2EAF7; }
.rt-sep { width: 1px; height: 18px; background: #DDE3EC; margin: 0 4px; }
.rt-colors { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--sub); }
.rt-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
  cursor: pointer;
  display: inline-block;
}
.rt-color:hover { transform: scale(1.12); }
.rt-editor {
  min-height: 170px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid #DFE3EA;
  border-radius: 0 0 8px 8px;
  background: #FFFFFF;
  font-size: 13.5px;
  line-height: 1.75;
  color: #1F1F1F;
  outline: none;
}
.rt-editor:focus { border-color: #9FB6DA; box-shadow: 0 0 0 3px rgba(31, 79, 158, .08); }
.rt-editor:empty::before {
  content: attr(data-placeholder);
  color: #A6ADBB;
  pointer-events: none;
}
.rt-editor ol, .rt-editor ul { margin: 6px 0; padding-left: 22px; }
.rt-editor p { margin: 0 0 8px; }

/* ---------------- 待跟进事项：在线表格（b20） ---------------- */
.follow-wrap {
  /* 表格自己滚：鼠标停在表格里滚动只动表格，页面不动 */
  max-height: 60vh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #E6E9EF;
  border-radius: 10px;
  background: #FFFFFF;
}
.follow-table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
}
.follow-table th,
.follow-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #EEF1F5;
  background: #FFFFFF;
  font-size: 12.5px;
  text-align: left;
  vertical-align: middle;
}
/* 表头标题在本单元格居中（Bootstrap table 风格） */
.follow-table thead th {
  text-align: center;
  vertical-align: middle;
}
.follow-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #F5F7FA;
  font-weight: 600;
  color: #34405A;
  white-space: nowrap;
  border-bottom: 1px solid #DDE3EC;
}
/* 冻结到责任人：前 7 列横向滚动时不动 */
.follow-table .fw { position: sticky; z-index: 2; }
.follow-table thead .fw { z-index: 4; }
.follow-table .c-contact { box-shadow: 8px 0 8px -8px rgba(16, 36, 78, .16); }
.follow-table tbody tr:hover td { background: #FAFBFD; }
.follow-table tbody tr.row-overdue td { background: #FFF8F7; }
.follow-table tbody tr.row-overdue:hover td { background: #FFF3F1; }
/* 逾期未开始（到了计划开始还没开始）：换一种更沉的砖红，跟「已逾期」的淡粉区分开 */
.follow-table tbody tr.row-late-start td { background: #FCE5E0; }
.follow-table tbody tr.row-late-start:hover td { background: #F9D8D1; }
.follow-table tbody tr.row-late-start .c-status select {
  color: #B42318;
  font-weight: 600;
  background: #FFF4F2;
  border-color: #F0B5AB;
}
/* 新增一行后短暂高亮，一眼能看到落在哪 */
.follow-table tbody tr.is-new-row td { background: #E7F0FE !important; transition: background 0.3s ease; }
.follow-table .num { text-align: right; }

.cell-input {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #1F1F1F;
  font-size: 12.5px;
  font-family: inherit;
}
.cell-input:hover { border-color: #DFE3EA; background: #FFFFFF; }
.cell-input:focus {
  border-color: #9FB6DA;
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 79, 158, .08);
}
select.cell-input { padding-right: 2px; }

.follow-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.flt-btn {
  margin-left: 4px;
  padding: 0 5px;
  height: 20px;
  border: 1px solid #DFE3EA;
  border-radius: 5px;
  background: #FFFFFF;
  color: #5C6478;
  font-size: 11px;
  cursor: pointer;
}
.flt-btn.is-on { background: #1F4F9E; border-color: #1F4F9E; color: #FFFFFF; }
.flt-x {
  border: 0;
  background: transparent;
  color: #B3B9C6;
  cursor: pointer;
  font-size: 11px;
  padding: 0 2px;
}
.flt-x:hover { color: var(--danger); }

.flt-pop {
  position: fixed;
  z-index: 999;
  width: 226px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #DFE3EA;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(16, 36, 78, .16);
  overflow: hidden;
}
.flt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #EEF1F5;
  font-size: 12px;
  color: #34405A;
}
.flt-acts a { margin-left: 8px; color: #1F4F9E; cursor: pointer; font-size: 11.5px; }
.flt-body { padding: 6px 10px 10px; overflow-y: auto; }
.flt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 12.5px;
  color: #34405A;
}

/* 时间轴弹窗 */
.tl-wrap {
  position: relative;
  max-height: 44vh;
  overflow-y: auto;
  padding: 6px 0 6px 6px;
  margin-bottom: 12px;
}
.tl-wrap::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(#C9D6EA, #E8EDF6);
}
.tl-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 14px 26px;
}
.tl-dot {
  position: absolute;
  left: 7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #1F4F9E;
}
.tl-item.is-last .tl-dot { background: #1F4F9E; box-shadow: 0 0 0 3px rgba(31, 79, 158, .14); }
.tl-date { flex: 0 0 92px; color: #34405A; font-size: 12.5px; font-weight: 600; }
.tl-time { display: block; color: #98A0B0; font-weight: 400; font-size: 11px; }
.tl-text { flex: 1; color: #1F1F1F; font-size: 12.5px; line-height: 1.6; }
.tl-by { display: block; color: #98A0B0; font-size: 11px; margin-top: 2px; }
/* 202611091730：创建节点小字、删除节点标红；圆点按类型分色 */
.tl-item.is-create .tl-text { font-size: 11.5px; color: #7E8798; }
.tl-item.is-delete .tl-text { color: #B42318; }
.tl-item.is-create .tl-dot { border-color: #7BAE8E; }
.tl-item.is-field .tl-dot { border-color: #2E6FD8; }
.tl-item.is-progress .tl-dot { border-color: #B4690E; }
.tl-item.is-delete .tl-dot { border-color: #C9403A; background: #C9403A; }
/* 2026-11-09：时间轴弹窗里，字段修改标红、进展保持普通文字 */
.tl-item.is-changed .tl-text { color: #B42318; font-weight: 600; }
.tl-item.is-changed .tl-dot { border-color: #C9403A; background: #C9403A; }
.tl-item.is-progress .tl-text { color: #1F2937; font-weight: 400; }

/* ---------------- 待跟进表格 b21 增强 ---------------- */
/* 事项列：多行文本 + 字号比正文大两号 */
.follow-table .cell-matter {
  min-height: 34px;
  font-size: 15px;
  line-height: 1.5;
  padding: 5px 6px;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
}
/* 序号下面挂创建时间，不额外占一列 */
.follow-table .seq-at {
  font-size: 10.5px;
  color: #98A2B3;
  text-align: center;
  margin-top: 3px;
  white-space: nowrap;
}
/* 列宽拖拽手柄 */
.follow-table thead th { position: relative; }
.col-resizer {
  position: absolute;
  top: 0;
  /* 202611082230 文档第 26 条：原来 right:-3px + 宽 7px，被 thead 的 overflow:hidden
     裁掉一半，只剩 4px 能点到。改成整块落在单元格内、加宽到 10px，鼠标一定抓得到 */
  right: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  z-index: 8;
  /* 平时看不见，鼠标靠近才显一条竖线，方便对准 */
  background: linear-gradient(to right, transparent 4px, rgba(24, 95, 165, .22) 4px, rgba(24, 95, 165, .22) 5px, transparent 5px);
}
.col-resizer:hover { background: rgba(24, 95, 165, .2); }
body.col-resizing { cursor: col-resize; user-select: none; }
body.col-resizing * { cursor: col-resize !important; }
/* 单元格里的「可搜索下拉」按钮 */
.cell-pick {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #1F1F1F;
  font-size: 12.5px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-pick:hover { border-color: #DFE3EA; background: #FFFFFF; }
.cell-pick.is-empty { color: #A5ADBB; }
.cell-pick-multi { white-space: normal; line-height: 1.35; }
/* 可搜索下拉浮层 */
.pick-pop { width: 260px; padding: 0; }
.pick-search { padding: 8px; border-bottom: 1px solid #EEF1F5; }
.pick-search input {
  width: 100%;
  box-sizing: border-box;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #DDE3EC;
  border-radius: 6px;
  font-size: 13px;
}
.pick-list { max-height: 230px; overflow: auto; }
.pick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #F4F6FA;
}
.pick-item:hover { background: #F3F7FD; }
.pick-item.is-on { background: #EAF2FC; }
.pick-name { flex: 1; color: #1F1F1F; }
.pick-sub { color: #98A2B3; font-size: 11.5px; }
.pick-box {
  width: 13px;
  height: 13px;
  border: 1px solid #C4CCD9;
  border-radius: 3px;
  display: inline-block;
  position: relative;
  flex: none;
}
.pick-item.is-on .pick-box { background: #185FA5; border-color: #185FA5; }
.pick-item.is-on .pick-box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg);
}
.pick-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid #EEF1F5;
}
/* 数据概览 b21：指标卡 + 图表卡 */
.ov-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 10px;
}
.ov-sec-head .bar {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: #185FA5;
}
.ov-sec-head .txt { font-size: 14px; font-weight: 500; color: #1F2A44; }
.ov-sec-head .hint { font-size: 12px; color: #98A2B3; }
.ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.ov-kpi {
  border: 1px solid #EDF0F5;
  border-radius: 12px;
  padding: 12px 14px;
  background: #FFFFFF;
}
.ov-kpi .k-label { font-size: 12px; color: #7A879C; }
.ov-kpi .k-num { font-size: 24px; font-weight: 600; color: #1B2430; margin-top: 4px; line-height: 1.1; }
.ov-kpi .k-foot { font-size: 11.5px; color: #98A2B3; margin-top: 6px; }
.ov-kpi .k-bar { height: 5px; border-radius: 3px; background: #EEF1F5; margin-top: 8px; overflow: hidden; }
.ov-kpi .k-bar > i { display: block; height: 100%; border-radius: 3px; }
.ov-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 1180px) { .ov-charts { grid-template-columns: 1fr; } }
.chart-card { border: 1px solid #EDF0F5; border-radius: 12px; padding: 12px 14px; background: #FFF; }
.chart-card .c-title { font-size: 13px; font-weight: 500; color: #34405A; margin-bottom: 8px; }
.chart-card .c-empty { font-size: 12px; color: #98A2B3; padding: 24px 0; text-align: center; }
.ov-pies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }

/* ---------- 202611082130 文档：待跟进表格隔行换色 + 提示语不再被压 ---------- */
/* 提示语原来用 margin:-4px 贴到标题上，被面板头压掉半行；改成独立一行正常行高 */
.panel-hint {
  padding: 0 18px;
  margin: 8px 0 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #8B93A5;
}
/* 隔行换色：hover 与「已逾期」行仍然优先，避免被斑马纹盖住 */
.follow-table tbody tr:nth-child(even) td { background: #F6F8FB; }
.follow-table tbody tr:nth-child(even):hover td { background: #FAFBFD; }
.follow-table tbody tr:nth-child(even).row-overdue td { background: #FFF6F5; }
.follow-table tbody tr:nth-child(even).row-overdue:hover td { background: #FFF1EF; }
.follow-table tbody tr:nth-child(even).row-late-start td { background: #FADFDA; }
.follow-table tbody tr:nth-child(even).row-late-start:hover td { background: #F7D2CB; }
/* 概览里的明细表也用同一套斑马纹 */
table.ov-zebra tbody tr:nth-child(even) td { background: #F8FAFC; }
table.ov-zebra tbody tr:nth-child(even):hover td { background: #F2F6FB; }

/* ---------- 左侧导航：数据概览下的两个子菜单 ---------- */
.nav-group {
  padding: 12px 12px 6px;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .42);
}
.nav-group + .nav-item { margin-top: 0; }
.nav-item.nav-child {
  height: 34px;
  padding-left: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .68);
}
.nav-item.nav-child::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
}
.nav-item.nav-child.active::after { background: #4FD1C5; }
.nav-item.nav-child.active::before { top: 8px; bottom: 8px; }

/* 6 个指标的页用三列排成两行，避免最后一张卡孤零零占一行 */
.ov-grid.ov-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ov-grid.ov-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 冻结单元格必须有实色底，否则滚动时下面的内容会透出来（表头压内容的观感来源之一） */
.follow-table thead th.fw { background: #F5F7FA; background-clip: padding-box; }
.follow-table tbody td.fw { background: #FFFFFF; background-clip: padding-box; }
.follow-table tbody tr:nth-child(even) td.fw { background: #F6F8FB; }
.follow-table tbody tr:hover td.fw { background: #FAFBFD; }
.follow-table tbody tr.row-overdue td.fw { background: #FFF8F7; }
.follow-table tbody tr.row-overdue:hover td.fw { background: #FFF1EF; }
/* 冻结列要实色底，否则横向滚动时后面的单元格会从底下透出来 */
.follow-table tbody tr.row-late-start td.fw { background: #FCE5E0; }
.follow-table tbody tr.row-late-start:hover td.fw { background: #F9D8D1; }
/* 表头文字不换行也不外溢，避免窄列里标题串到隔壁列 */
.follow-table thead th { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 待跟进「点击行编辑」弹窗（202611082130 文档） ---------- */
.modal.modal-form {
  width: min(900px, 94vw);
  max-height: 90vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ff-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 20px 12px; border-bottom: 1px solid #EEF1F5;
}
.ff-title { font-size: 16px; font-weight: 600; color: #1F2937; }
.ff-sub { margin-top: 4px; font-size: 12px; color: #8B93A5; }
.ff-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 内容区自己滚：长表单也能完整看，不会顶出屏幕外 */
.ff-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; max-height: 64vh; }
.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ff-col-2 { grid-column: span 2; }
.ff-field { display: flex; flex-direction: column; gap: 6px; }
.ff-label { font-size: 12.5px; color: #5B6472; }
.ff-req { color: #E5484D; font-style: normal; }
.ff-hint { font-style: normal; color: #98A2B3; font-size: 11.5px; }
.ff-input {
  width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px;
  border: 1px solid #DDE3EC; border-radius: 8px; background: #fff;
  font-size: 13px; color: #1F2937; font-family: inherit;
}
.ff-input:focus { outline: none; border-color: #9FB6DA; box-shadow: 0 0 0 3px rgba(31, 79, 158, .08); }
.ff-textarea { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.ff-readonly { background: #F5F7FA; color: #5B6472; cursor: not-allowed; }
.ff-pick { text-align: left; cursor: pointer; }
.ff-pick.is-empty { color: #98A2B3; }
/* ---------------- 表单编辑 / 归档弹窗：时间轴（202611091730） ----------------
   不再是平铺列表：竖线 + 圆点 + 日期时间 + 内容；创建节点用小字。 */
.ff-tl-wrap { margin-top: 18px; border-top: 1px dashed #E6E9EF; padding-top: 12px; }
.ff-tl-head { font-size: 13px; font-weight: 600; color: #34405A; margin-bottom: 10px; }
.ff-tl { position: relative; list-style: none; margin: 0; padding: 2px 0 2px 20px; }
.ff-tl::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(#C9D6EA, #E8EDF6);
}
.ff-tl-item { position: relative; padding: 0 0 14px 0; }
.ff-tl-item:last-child { padding-bottom: 2px; }
.ff-tl-dot {
  position: absolute;
  left: -20px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #9DB2D4;
  box-sizing: border-box;
}
.ff-tl-item.is-create .ff-tl-dot { border-color: #7BAE8E; }
.ff-tl-item.is-field .ff-tl-dot { border-color: #2E6FD8; }
.ff-tl-item.is-progress .ff-tl-dot { border-color: #B4690E; }
.ff-tl-item.is-delete .ff-tl-dot { border-color: #C9403A; background: #C9403A; }
.ff-tl-main { min-width: 0; }
.ff-tl-at { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.ff-tl-time { font-size: 12px; font-weight: 600; color: #34405A; font-variant-numeric: tabular-nums; }
.ff-tl-by { font-size: 11px; color: #6B768B; background: #F1F4FA; border-radius: 4px; padding: 1px 6px; }
.ff-tl-tag { font-size: 10.5px; color: #1F4F9E; border: 1px solid #D6E1F5; border-radius: 4px; padding: 0 5px; line-height: 16px; }
.ff-tl-item.is-create .ff-tl-tag { color: #2E7D57; border-color: #CDE8D9; }
.ff-tl-item.is-delete .ff-tl-tag { color: #B42318; border-color: #F2CFCB; }
.ff-tl-text { font-size: 13px; color: #1F2937; line-height: 1.6; word-break: break-word; }
.ff-tl-lines { display: flex; flex-direction: column; gap: 3px; }
.ff-tl-line { font-size: 12.5px; color: #1F2937; line-height: 1.55; word-break: break-word; }
.ff-tl-line b { color: #34405A; font-weight: 600; margin-right: 4px; }
.ff-tl-from { color: #8A8A88; text-decoration: line-through; }
.ff-tl-arrow { margin: 0 4px; color: #98A2B3; }
.ff-tl-to { color: #0E6E62; font-weight: 600; }
/* 文档第 1 条：创建节点简单列举，文字比后面的节点小 */
.ff-tl-item.is-create .ff-tl-text,
.ff-tl-item.is-create .ff-tl-lines,
.ff-tl-item.is-create .ff-tl-line { font-size: 11.5px; color: #7E8798; }
.ff-tl-item.is-delete .ff-tl-text { color: #B42318; }
.ff-tl-empty { list-style: none; font-size: 12.5px; color: #98A2B3; padding-left: 2px; }

/* ---- 2026-11-09：字段修改节点标红；进展节点明确不标红 ---- */
.ff-tl-item.is-changed .ff-tl-dot {
  border-color: #C9403A; background: #C9403A;
  box-shadow: 0 0 0 3px rgba(201, 64, 58, .12);
}
.ff-tl-item.is-changed .ff-tl-tag { color: #B42318; border-color: #F2CFCB; background: #FFF6F5; }
.ff-tl-item.is-changed .ff-tl-text,
.ff-tl-item.is-changed .ff-tl-line { color: #A8281F; }
.ff-tl-item.is-changed .ff-tl-line b { color: #8E211A; }
.ff-tl-item.is-changed .ff-tl-to { color: #B42318; }
.ff-tl-item.is-changed .ff-tl-from { color: #9B8A88; }
.ff-tl-item.is-changed .ff-tl-main {
  background: #FFF7F6; border: 1px solid #F3D8D4;
  border-radius: 8px; padding: 8px 10px; margin-top: -2px;
}
/* 进展：中性绿，绝不带红，也不写「由 A 改成 B」 */
.ff-tl-item.is-progress .ff-tl-dot { border-color: #7BAE8E; }
.ff-tl-item.is-progress .ff-tl-tag { color: #2E7D57; border-color: #CDE8D9; background: #F5FBF7; }
.ff-tl-item.is-progress .ff-tl-text { color: #1F2937; }
.ff-tl-word { margin: 0 5px; color: #8A94A6; font-size: 11.5px; }
/* 保存当前进展后：自动定位到该行时闪一下底色（不刷新页面） */
@keyframes gczlSavedRow { 0%, 100% { background: transparent; } 25%, 75% { background: #E9F6EE; } }
#followTable tbody tr.is-saved-row > td { animation: gczlSavedRow 1.8s ease-in-out; }

/* 已删除事项归档弹窗 */
.fa-list { max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; }
.fa-item { border: 1px solid #E6E9EF; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #FCFDFE; }
.fa-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: #1F2937; }
.fa-head b { font-weight: 600; word-break: break-word; }
.fa-sub { margin-top: 3px; }
.fa-item .ff-tl { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #E6E9EF; }
.ff-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-top: 1px solid #EEF1F5; background: #FCFDFF;
}

/* ---------- 202611082230 文档：概览说明条 / 专项检查统计弹窗 / 弹窗事项字号 ---------- */

/* 两种闭合率的口径说明，放在趋势图下面，字号小一点不抢图 */
.ov-note {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #F6F8FC;
  color: #5B6472;
  font-size: 12px;
  line-height: 1.7;
}
.ov-note b { color: #1F3A6E; font-weight: 600; }

/* 专项检查统计弹窗 */
.sp-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 132px;
  overflow-y: auto;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #E6EAF1;
  border-radius: 10px;
  background: #FBFCFE;
}
.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #E1E6EF;
  background: #FFFFFF;
  font-size: 12.5px;
  color: #4A5568;
  cursor: pointer;
  user-select: none;
}
.sp-chip:hover { border-color: #B9CCE8; }
.sp-chip.is-on { border-color: #1F4F9E; background: #EEF3FB; color: #1F3A6E; }
.sp-chip input { accent-color: #1F4F9E; margin: 0; }
.sp-chip-name { font-weight: 500; }
.sp-chip-meta { color: #98A2B3; font-size: 11.5px; }
.sp-body { max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; }
.sp-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.sp-kpi {
  padding: 10px 12px;
  border-radius: 10px;
  background: #F6F8FC;
  border: 1px solid #EDF0F6;
  text-align: center;
}
.sp-kpi b { display: block; font-size: 20px; color: #1F3A6E; line-height: 1.3; }
.sp-kpi span { font-size: 12px; color: #7B8595; }
.sp-sub {
  margin: 16px 0 8px;
  padding-left: 9px;
  border-left: 3px solid #1F4F9E;
  font-size: 13px;
  font-weight: 600;
  color: #1F3A6E;
}
.sp-matrix td.num { white-space: nowrap; }
.sp-matrix thead th.num { text-align: center; }

/* 弹窗里「事项」是本行最重要的一条，字号大 3 号并加粗一点 */
.modal-form #ffMatter,
.modal-form .ff-textarea#ffMatter {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  color: #1F1F1F;
  min-height: 76px;
}

/* 趋势图别铺满整行：最大 920px，高度自然缩到 ~270px */
.chart-card > .trend-svg { max-width: 920px; }

/* 专项检查页内嵌的「数据概览」：不滚内层、跟随页面上滚，避免双重滚动条 */
.sp-body.is-inline {
  max-height: none;
  overflow: visible;
}
#spStatsPanel .sp-pick {
  margin-bottom: 14px;
}

/* ---------- 左侧栏目固定（2026-11-09） ----------
   原因：.shell 是 flex 且 min-height:100vh，.side 默认被 stretch 到整页高度，
   页面上下滚动时侧栏会跟着一起滚走。
   做法：只把侧栏改成「视口高度 + 吸顶」，不改动整页滚动容器，
   因此 .topbar 的 sticky、待跟进表格的表头/冻结列 sticky、
   以及 JS 里的 scrollIntoView 都保持原有行为。 */
.side {
  position: sticky;
  top: 0;
  align-self: flex-start;   /* 关键：抵消 flex 默认 stretch，否则高度仍是整页高度 */
  height: 100vh;            /* 侧栏恒等于视口高度 */
  overflow: hidden;         /* 溢出交给 .nav 自己滚，头尾信息不会被顶出视口 */
  z-index: 30;              /* 高于 topbar(20)，远低于弹窗(900+) */
}
.side .nav {
  min-height: 0;            /* 关键：允许 flex 子项收缩，overflow 才会生效 */
  overflow-y: auto;
  overscroll-behavior: contain;  /* 菜单滚到底不带动整页滚动 */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}
.side .nav::-webkit-scrollbar { width: 6px; }
.side .nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.24);
  border-radius: 3px;
}
.side .nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.42); }

/* ---------- 侧栏折叠 / 展开按钮（2026-11-09） ----------
   按钮放在顶栏左侧，侧栏隐藏后按钮仍在，随时可以展开。
   折叠用 display:none 而不是 width:0：宽度一步到位，
   待跟进表按容器宽度算冻结列时不会读到动画中间值，
   隐藏内容也不会被键盘 Tab 聚焦。 */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.side-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.side-toggle:hover { background: var(--brand-50); border-color: var(--brand-200); }
.side-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.side-toggle .ico { width: 18px; height: 18px; display: block; }
.side-toggle .ico-expand,
.shell.side-collapsed .side-toggle .ico-menu { display: none; }
.shell.side-collapsed .side-toggle .ico-expand { display: block; }

/* 退出登录：从内联样式收成 class，折叠态改显示图标 */
.foot-logout { margin-top: 6px; cursor: pointer; color: #9FE1CB; }
/* 这三样只在折叠态出现 */
.side-mini-logo,
.nav-ico,
.foot-avatar { display: none; }

/* ---------- 折叠态：保留一条 56px 窄图标条（2026-11-09） ----------
   不再 display:none，侧栏收成一条窄栏：顶部品牌块可点展开、
   每个菜单只留图标（title 显示全名、点击照常切页）、底部留头像与退出。
   窄栏仍占布局宽度，内容区随之变宽；派发 resize 会重算表格冻结列。 */
.shell.side-collapsed .side { width: 56px; }
.shell.side-collapsed .side-head { padding: 14px 8px; }
.shell.side-collapsed .side-title,
.shell.side-collapsed .side-sub,
.shell.side-collapsed .nav-label,
.shell.side-collapsed .nav-group,
.shell.side-collapsed .foot-text { display: none; }
.shell.side-collapsed .side-mini-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.shell.side-collapsed .side-mini-logo:hover { background: rgba(255,255,255,.2); }
.shell.side-collapsed .nav { padding: 10px 8px; }
.shell.side-collapsed .nav-item,
.shell.side-collapsed .nav-item.nav-child { justify-content: center; padding: 0; }
.shell.side-collapsed .nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
}
.shell.side-collapsed .nav-ico svg { width: 20px; height: 20px; }
.shell.side-collapsed .side-foot { padding: 12px 8px; text-align: center; }
.shell.side-collapsed .foot-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.shell.side-collapsed #logoutBtn { font-size: 0; }
.shell.side-collapsed #logoutBtn::after { content: "⏻"; font-size: 16px; }


/* 事项跟进行必填校验：失焦 / 新建拦截时整行左右抖动提示 */
@keyframes gczlRowShake {
  0%, 100% { transform: translateX(0); }
  15%, 55% { transform: translateX(-7px); }
  35%, 75% { transform: translateX(7px); }
}
#followTable tbody tr.row-shake > td {
  animation: gczlRowShake 0.42s ease-in-out;
}
