:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e6eaf0;
  --text: #1f2a37;
  --text-2: #5b6675;
  --text-3: #8a94a6;
  --primary: #2563eb;
  --primary-soft: #e8f0fe;
  --accent: #0ea5a4;
  --success: #16a34a;
  --success-soft: #e7f6ec;
  --warning: #d97706;
  --warning-soft: #fdf2e0;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .05);
  --radius: 12px;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

#app { display: flex; height: 100vh; overflow: hidden; }

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-w);
  background: #0f1f3d;
  color: #c7d2e3;
  display: flex;
  flex-direction: column;
  transition: width .2s ease;
  flex-shrink: 0;
}
.sidebar.collapsed { width: 64px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 16px;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0ea5a4);
  color: #fff; font-weight: 700; font-size: 20px;
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-logo .brand-logo-img {
  width: 100%; height: 100%; border-radius: 10px; object-fit: cover; display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { color: #fff; font-weight: 700; font-size: 17px; }
.brand-sub { color: #7e8ba6; font-size: 11px; }
.sidebar.collapsed .brand-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .tenant-meta { display: none; }

.nav { flex: 1; padding: 8px 10px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 9px;
  color: #aab6cc; cursor: pointer; margin-bottom: 4px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.nav-ico { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; }
.nav-label { font-size: 14px; }

.sidebar-foot { padding: 14px; }
.tenant-card {
  background: rgba(255,255,255,.06); border-radius: 10px;
  padding: 12px; display: flex; flex-direction: column; gap: 2px;
}
.tenant-name { color: #fff; font-weight: 600; font-size: 14px; }
.tenant-meta { color: #7e8ba6; font-size: 11px; }
.sidebar-beian { margin-top: 10px; font-size: 11px; color: #7e8ba6; text-align: center; line-height: 1.4; }
.sidebar-beian a { color: #7e8ba6; text-decoration: none; }
.sidebar-beian a:hover { color: #cbd5e1; text-decoration: underline; }

/* ===== 主区域 ===== */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px; flex-shrink: 0;
}
.menu-btn {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-2); padding: 4px 8px; border-radius: 8px;
}
.menu-btn:hover { background: var(--surface-2); }
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-search { margin-left: auto; }
.topbar-search input {
  width: 280px; max-width: 32vw; height: 38px;
  border: 1px solid var(--border); border-radius: 9px;
  padding: 0 14px; font-size: 13px; background: var(--surface-2);
  outline: none; transition: border .15s, background .15s;
}
.topbar-search input:focus { border-color: var(--primary); background: #fff; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.bell { font-size: 18px; cursor: pointer; }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { color: var(--text-3); font-size: 11px; }

.content { flex: 1; overflow-y: auto; padding: 22px; }

/* ===== 通用组件 ===== */
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font-size: 19px; font-weight: 700; }
.page-head .sub { color: var(--text-3); font-size: 13px; }
.spacer { flex: 1; }

.btn {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 9px 16px; border-radius: 9px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: #cdd5e0; background: var(--surface-2); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: transparent; }
.pos-primary { display:inline-block; font-size:11px; line-height:1; color:#2563eb; background:#eff6ff; border:1px solid #bfdbfe; border-radius:4px; padding:1px 4px; margin-left:3px; vertical-align:middle; }
.badge-leave { display:inline-block; font-size:11px; line-height:1; color:#b45309; background:#fffbeb; border:1px solid #fde68a; border-radius:4px; padding:1px 5px; margin-left:5px; vertical-align:middle; }
.leave-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 10px; border:1px solid var(--border); border-radius:8px; margin:6px 0; font-size:13px; }
.sched-sel { width:100%; min-width:74px; padding:4px 6px; font-size:12px; }
.btn-link { background:none; border:none; color:#2563eb; cursor:pointer; font-size:11px; padding:2px 4px; margin-top:3px; line-height:1.4; }
.btn-link:hover { text-decoration:underline; }
.btn-link.btn-cancel { color:#ef4444; }
.tag-cancel { display:inline-block; background:#f3f4f6; color:#6b7280; border:1px solid #e5e7eb; border-radius:4px; padding:1px 6px; font-size:11px; }
.tag-fill { display:inline-block; background:#fff7ed; color:#c2410c; border:1px solid #fed7aa; border-radius:4px; padding:1px 6px; font-size:11px; margin-left:4px; }
/* 「同一时段并发（主岗 + 辅助岗）」标记：并发不累加工时、按最短一项计入（用户 2026-09-14 口径） */
.tag-conc { display:inline-block; background:#ecfeff; color:#0e7490; border:1px solid #a5f3fc; border-radius:4px; padding:1px 6px; font-size:11px; margin-left:4px; }
/* 「⇄ 并发设置」弹窗：按一级分类分组的二级分类勾选区（用户 2026-09-14） */
.conc-bar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:10px 0; font-size:12px; color:#475569; }
.conc-scroll { max-height:52vh; overflow:auto; padding-right:4px; }
.conc-grp { border:1px solid #e2e8f0; border-radius:8px; margin-bottom:8px; overflow:hidden; }
.conc-grp-h { padding:6px 10px; background:#f8fafc; font-size:12px; color:#334155; border-bottom:1px solid #e2e8f0; }
.conc-box { display:flex; flex-wrap:wrap; gap:8px 18px; padding:8px 10px; }
.conc-box .chk { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#334155; cursor:pointer; }
.conc-box .chk input { width:15px; height:15px; accent-color:var(--primary); }
/* 格子里的「同刻冲突」标记：不可同时开展的两项被排在同一时段（人工改派所致） */
.tag-conc-x { display:inline-block; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; border-radius:4px; padding:1px 6px; font-size:11px; margin-left:4px; }
.tag-qual { display:inline-block; background:#eef2ff; color:#4338ca; border:1px solid #c7d2fe; border-radius:4px; padding:1px 6px; font-size:11px; margin-left:4px; }
.tag-qual-x { display:inline-block; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; border-radius:4px; padding:1px 6px; font-size:11px; margin-left:4px; }
.sched-flex { display:inline-block; background:#f1f5f9; color:#475569; border:1px solid #e2e8f0; border-radius:4px; padding:1px 6px; font-size:11px; }
/* 上岗资格：法定强制（红） / 非强制（青） ── 2026-09-14 用户口径表 */
.tag-qual-law { display:inline-block; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; border-radius:4px; padding:1px 6px; font-size:11px; margin-left:4px; }
.tag-qual-soft { display:inline-block; background:#f0fdfa; color:#0f766e; border:1px solid #99f6e4; border-radius:4px; padding:1px 6px; font-size:11px; margin-left:4px; }
/* 岗位性质：管理岗位（琥珀）/ 服务岗位（蓝） ── 2026-09-15 j 版：管理称呼不参与 AI 排班选岗 */
.tag-manage { display:inline-block; background:#fffbeb; color:#b45309; border:1px solid #fde68a; border-radius:4px; padding:1px 6px; font-size:11px; }
.tag-service { display:inline-block; background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; border-radius:4px; padding:1px 6px; font-size:11px; }
/* 员工管理：员工 / 岗位 按部门分组标题 ── 2026-09-16 k 版 */
.grp td { background:#f8fafc; border-top:2px solid #e2e8f0; border-bottom:1px solid #e2e8f0; padding:7px 12px; }
.grp .grp-name { font-weight:700; color:#0f172a; font-size:13px; }
.grp .grp-n { margin-left:8px; color:#64748b; font-size:12px; font-weight:normal; }
.qual-grp { width:100%; }
.qual-grp + .qual-grp { margin-top:10px; border-top:1px dashed #e2e8f0; padding-top:8px; }
.qual-grp-h { display:flex; align-items:center; gap:6px; font-size:12px; margin:0 0 6px; }
.qual-grp-h b { font-weight:600; }
.qual-grp.legal .qual-grp-h b { color:#b91c1c; }
.qual-grp.soft .qual-grp-h b { color:#0f766e; }
.qual-grp.other .qual-grp-h b { color:#475569; }
.qual-grp-h .qual-grp-n { color:#94a3b8; font-size:11px; }
.qual-grp-h .qual-grp-d { color:#94a3b8; font-size:11px; }
.qual-grp-items { display:flex; flex-wrap:wrap; gap:6px 18px; }
.qual-grp .chk { display:inline-flex; align-items:flex-start; gap:6px; font-size:12px; color:#334155; cursor:pointer; }
.qual-grp .chk input { width:15px; height:15px; margin-top:2px; flex:0 0 auto; accent-color:var(--primary); }
.qual-grp .qk { display:flex; flex-direction:column; line-height:1.35; }
.qual-grp .qk .qn { display:inline-flex; align-items:center; }
.qual-grp .qk .qm { color:#94a3b8; font-size:11px; }
.qual-box { display:flex; flex-wrap:wrap; gap:0; max-height:220px; overflow:auto; border:1px solid #e2e8f0; border-radius:8px; padding:8px 10px; background:#fff; }
.qual-box .chk { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#334155; cursor:pointer; }
.qual-box .chk input { width:15px; height:15px; accent-color:var(--primary); }
/* AI 排班：劳动法工时合规 - 超载标红 / 合规提示块 */
.sched-over { background:#fff1f2; }
.sched-over .sched-sel { border-color:#fca5a5; }
/* 「待排」＝该任务当天找不到可安排的员工（部门无在岗 / 全员休假 / 岗位不匹配）。
   必须与「已排到人」有肉眼可辨的差异，否则管理者会把它当成排好的计划漏过去。 */
/* 2026-09-18ah：无人可排（该执行但排不出人）—— 不是排班日，用浅灰提示，与红底「待排」区分 */
.sched-pending { background:#fef2f2; }
.sched-pending .sched-sel { border-color:#dc2626; color:#dc2626; font-weight:700; }
.pending-txt { color:#dc2626; font-weight:700; }
/* ⚠ 必须写成 .plan-chip.plan-chip-pending：.plan-chip 定义在本文件靠后位置，
   单类选择器同优先级下会被它整体覆盖（左边框/底色都盖回蓝色白色），待排 chip 就不红了。 */
.plan-chip.plan-chip-pending { border-left-color:#dc2626; background:#fef2f2; }
.warn { color:#dc2626; font-weight:600; }
.compliance-ok { margin-top:8px; padding:8px 12px; background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; border-radius:6px; font-size:13px; }
.compliance-warn { margin-top:8px; padding:8px 12px; background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:6px; font-size:13px; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.table-wrap td.op { white-space: nowrap; }
.table-wrap td.op .btn { margin: 1px 2px; }
.btn-danger { color: var(--danger); border-color: var(--danger-soft); background: var(--danger-soft); }

/* 员工端权限开关 */
.perm-toggles { display: inline-flex; gap: 4px; }
.perm-toggles .mini {
  width: 26px; height: 22px; line-height: 20px; padding: 0; font-size: 12px;
  border-radius: 6px; border: 1px solid var(--border); background: #f1f3f5;
  color: var(--text-3); cursor: pointer; transition: .15s;
}
.perm-toggles .mini.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.perm-toggles .mini:hover { opacity: .85; }
.chk-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.chk-row .chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.chk-row .chk input { width: 16px; height: 16px; accent-color: var(--primary); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }

/* KPI 卡片 */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.kpi-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 12px;
}
.kpi-label { color: var(--text-3); font-size: 13px; }
.kpi-value { font-size: 26px; font-weight: 700; margin: 4px 0; }
.kpi-trend { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.up { color: var(--success); }
.down { color: var(--danger); }

/* 两栏布局 */
.row-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 18px; }
.row-2b { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }

/* 区块标题 */
.section-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ""; width: 4px; height: 15px; background: var(--primary); border-radius: 2px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-3); font-weight: 600; background: var(--surface-2); font-size: 12px; position: sticky; top: 0; }
tbody tr:hover { background: var(--surface-2); }
td .sub { color: var(--text-3); font-size: 12px; }

/* 徽标 */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.b-primary { background: var(--primary-soft); color: var(--primary); }
.b-success { background: var(--success-soft); color: var(--success); }
.b-warning, .b-warn { background: var(--warning-soft); color: var(--warning); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--primary-soft); color: var(--primary); }
.b-gray { background: #eef1f5; color: var(--text-2); }

/* 任职岗位标签（先选部门→选岗位→添加，可多次；可取消） */
.pick-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pick-row .select { min-width: 130px; }
.pos-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pos-tags .empty { color: var(--text-3); font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px;
  background: var(--primary-soft); color: var(--primary); border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6; }
.tag b { cursor: pointer; width: 16px; height: 16px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; background: rgba(0,0,0,0.07);
  font-weight: 700; font-size: 13px; line-height: 1; }
.tag b:hover { background: var(--danger); color: #fff; }

/* 进度条 */
.bar { height: 8px; background: #eef1f5; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }

/* 列表 */
.feed { display: flex; flex-direction: column; gap: 4px; }
.feed-item { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px dashed var(--border); }
.feed-item:last-child { border-bottom: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.feed-body { flex: 1; }
.feed-body .t { font-weight: 600; font-size: 13px; }
.feed-body .m { color: var(--text-3); font-size: 12px; margin-top: 2px; }

/* 图表 */
.chart { width: 100%; height: 220px; }

/* 筛选条 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.select, .input {
  height: 38px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 12px; font-size: 13px; background: var(--surface);
  outline: none; color: var(--text);
}
.select:focus, .input:focus { border-color: var(--primary); }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; }
.tab { padding: 7px 14px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 600; }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); }
/* 任务计划安排·顶部横向 tab 条（2026-09-17ac）：窄屏 5 个 tab 横排可滑不换行 */
.task-nav { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  display: none; align-items: center; justify-content: center; z-index: 6000;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--surface); border-radius: 14px; width: 100%; max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; }
.modal-close { border: none; background: none; font-size: 22px; cursor: pointer; color: var(--text-3); }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-full { max-width: none; width: 100%; max-height: 96vh; border-radius: 14px; }
.modal-full .modal-body { padding: 22px 26px 26px; }
.modal-full .modal-head, .modal-full .modal-foot { padding-left: 26px; padding-right: 26px; }
.modal-full .ai-groups { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.modal-full .ai-group { margin-bottom: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.field .input, .field .select, .field textarea {
  height: 40px; border: 1px solid var(--border); border-radius: 9px;
  padding: 0 12px; font-size: 13px; outline: none; font-family: inherit; background: #fff;
}
.field textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.field .input:focus, .field textarea:focus { border-color: var(--primary); }
.reg-addr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.reg-addr .input { width: 100%; box-sizing: border-box; }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0f1f3d; color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 6100;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 空态 */
.empty { text-align: center; color: var(--text-3); padding: 40px 0; }

/* 表单提示 */
.hint { font-size: 12px; color: var(--text-3); margin-top: 10px; line-height: 1.6; }

/* 筛选 chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.chip:hover { border-color: var(--brand-soft); }
.chip.active { background: var(--brand); color: #fff; }
.chip-n { background: rgba(255,255,255,.25); border-radius: 10px; padding: 0 6px; font-size: 11px; }
.chip:not(.active) .chip-n { background: var(--surface-3); color: var(--text-3); }

/* 系统设备管理：按设备系统分类分组 */
.sys-filter { margin: 14px 0 6px; }
.sys-group { margin: 14px 0 4px; }
.sys-group-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-1); padding: 4px 2px 8px; border-bottom: 2px solid var(--brand-soft); margin-bottom: 8px; }
.sys-group-head .count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }

/* 监控条形分布 */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.bar-label { width: 76px; flex: none; font-size: 13px; color: var(--text-2); font-weight: 600; }
.bar-track { flex: 1; height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--brand); }
.bar-val { width: 28px; flex: none; text-align: right; font-size: 13px; color: var(--text-1); font-weight: 700; }

/* 派单规则网格 */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.rule { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: 13px; }
.rule-k { font-weight: 700; color: var(--text-1); }
.rule-v { color: var(--brand); font-weight: 600; }

/* 详情 */
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-3); }
.detail-row .v { font-weight: 600; }

.stat-mini { display: flex; align-items: baseline; gap: 8px; }
.stat-mini .n { font-size: 20px; font-weight: 700; }
.stat-mini .l { color: var(--text-3); font-size: 12px; }

/* 响应式 */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .row-2, .row-2b { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sidebar { position: fixed; z-index: 40; height: 100%; }
  .topbar-search { display: none; }
}

/* ===== 顶栏切换器 ===== */
.switchers { display: flex; gap: 10px; margin-left: 18px; flex-wrap: wrap; }
.sw-label { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.sw { height: 34px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font-size: 12px; background: var(--surface); color: var(--text); outline: none; cursor: pointer; }
.sw:focus { border-color: var(--primary); }
.port-banner { margin: 10px 12px 4px; padding: 7px 12px; border-radius: 8px; background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(14,165,164,.18)); color: #cfe0ff; font-size: 12px; font-weight: 600; text-align: center; border: 1px solid rgba(120,160,255,.25); }
.sidebar.collapsed .port-banner { display: none; font-size: 0; }
.sidebar.collapsed .nav-group-title { display: none; }

/* ===== 分组导航 ===== */
.nav-group { margin-bottom: 8px; }
.nav-group-title { font-size: 11px; color: #6c7a99; padding: 10px 14px 4px; font-weight: 700; letter-spacing: .5px; }
.sidebar.collapsed .nav-group-title { display: none; }

/* ===== 步骤状态机 ===== */
.stepper { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 6px 0 14px; }
.step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--text-3); font-size: 12px; }
.step .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.step.done .dot { background: var(--success); color: #fff; border-color: var(--success); }
.step.active .dot { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.18); }
.step.active { color: var(--primary); font-weight: 700; }
.step:not(:last-child)::after { content: ""; width: 18px; height: 2px; background: var(--border); }

/* ===== 投票进度条 ===== */
.vbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: 10px 0 6px; background: var(--surface-2); }
.vseg { display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; min-width: 28px; }
.vseg.yes { background: #16a34a; }
.vseg.no { background: #dc2626; }
.vseg.ab { background: #94a3b8; }
.vlegend { font-size: 12px; color: var(--text-3); }
.resolution { margin-top: 10px; padding: 12px; background: var(--success-soft); border-radius: 8px; font-size: 13px; color: #14532d; line-height: 1.5; }

/* ===== 评分大数字 ===== */
.score-big { font-size: 44px; font-weight: 800; color: var(--primary); line-height: 1; }
.score-big span { font-size: 18px; color: var(--text-3); margin-left: 4px; }

/* 头像emoji不显示时的兜底 */
.nav-ico { font-family: "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* ===== 登录门禁 ===== */
.login-screen { position: fixed; inset: 0; z-index: 5000; overflow-y: auto; display: block; background: #f1f5f9; }
.lp { min-height: 100%; display: flex; flex-direction: column; }
.lp-nav { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.lp-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text); }
.lp-brand .lp-logo { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg,#1e3a8a,#2563eb); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; object-fit: cover; overflow: hidden; }
.lp-brand em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.lp-menu { display: flex; gap: 28px; }
.lp-menu a { font-size: 14px; color: var(--text-2); cursor: pointer; }
.lp-menu a:hover { color: var(--primary); }
.lp-login-link { height: 38px; padding: 0 22px; border: none; border-radius: 9px; background: linear-gradient(135deg,#3b82f6,#2563eb); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.lp-login-link:hover { filter: brightness(1.05); }
/* 右上角「登录」下拉：三端口入口（平台管理为内部入口，仅在此处出现，不常驻首页登录区） */
.lp-entry { position: relative; }
.lp-caret { font-size: 11px; margin-left: 2px; opacity: .85; }
.lp-entry-menu { position: absolute; top: 46px; right: 0; z-index: 40; min-width: 246px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,.14); display: none; }
.lp-entry-menu.show { display: block; }
.lp-entry-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none;
  background: transparent; border-radius: 9px; text-align: left; cursor: pointer; }
.lp-entry-item:hover { background: var(--surface-2); }
.lp-entry-ico { flex: 0 0 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg,#3b82f6,#2563eb);
  color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.lp-entry-txt { display: flex; flex-direction: column; line-height: 1.4; }
.lp-entry-txt b { font-size: 13.5px; font-weight: 600; color: var(--text); }
.lp-entry-txt em { font-style: normal; font-size: 12px; color: var(--text-3); }
/* AI 方案采纳 · 差异确认 */
.adopt-sec { margin-top: 14px; }
.adopt-sec-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.adopt-sec-h .btn { margin-left: auto; }
.adopt-row { cursor: pointer; }
.adopt-row:hover { background: var(--surface-2); }
.adopt-row.on { background: #f0fdf4; }
@media (max-width: 520px){ .lp-entry-menu { min-width: 220px; } }
.lp-hero { position: relative; overflow: hidden; text-align: center; padding: 78px 20px 58px; color: #fff;
  background:
    radial-gradient(440px 380px at 12% -12%, rgba(56,189,248,.32), transparent 60%),
    radial-gradient(520px 460px at 110% -18%, rgba(99,102,241,.30), transparent 60%),
    linear-gradient(135deg,#0f2a6b,#1e3a8a 46%,#2563eb); }
.lp-hero::before { content:""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(125,211,252,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,.10) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 32%, transparent 78%);
  mask-image: radial-gradient(120% 92% at 50% 0%, #000 32%, transparent 78%); }
.lp-hero::after { content:""; position: absolute; top: 0; bottom: 0; width: 38%; left: -40%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent);
  animation: heroSheen 6.5s ease-in-out infinite; }
@keyframes heroSheen { 0%{ left:-40%; } 55%,100%{ left:120%; } }
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero h1 { font-size: 56px; font-weight: 800; letter-spacing: 10px; margin: 0; text-shadow: 0 0 26px rgba(56,189,248,.55), 0 4px 18px rgba(0,0,0,.25); }
.lp-hero-sub { font-size: 18px; font-weight: 600; margin-top: 14px; color: #dbeafe; letter-spacing: 2px; }
.lp-hero-lead { font-size: 14px; margin-top: 12px; color: rgba(219,234,254,.82); }
.lp-hero-actions { margin: 30px auto 0; max-width: 760px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lp-hero-actions .lp-go { flex: 1 1 0; min-width: 0; }
.lp-go { height: 48px; padding: 0 40px; border: none; border-radius: 12px; background: #fff; color: #1e3a8a; font-weight: 700; font-size: 16px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 0 rgba(56,189,248,.5); transition: .2s; }
.lp-go:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(0,0,0,.22), 0 0 22px 2px rgba(56,189,248,.45); }
.lp-feat-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 20px; box-shadow: 0 6px 18px rgba(15,23,42,.04); transition: .2s; }
.lp-feat-card::before { content:""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#2563eb,#38bdf8); opacity: 0; transition: .2s; }
.lp-feat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37,99,235,.14); }
.lp-feat-card:hover::before { opacity: 1; }
.lp-feat-ico { font-size: 26px; }
.lp-feat-t { font-size: 15px; font-weight: 700; margin-top: 12px; color: var(--text); }
.lp-feat-d { font-size: 12.5px; color: var(--text-3); margin-top: 8px; line-height: 1.7; }
.lp-mod-grid { max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.lp-login { position: relative; max-width: 980px; width: 100%; margin: 0 auto; padding: 6px 24px 44px; display: flex; justify-content: center; box-sizing: border-box; }
.lp-login::before { content:""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: min(680px,92%); height: 200px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(37,99,235,.12), transparent 70%); pointer-events: none; }
.lp-wins { display: flex; gap: 20px; width: 100%; max-width: 820px; align-items: stretch; }
.login-win { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 14px 40px rgba(30,58,138,.12); overflow: hidden; }
.login-win-head { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: linear-gradient(135deg,#1e3a8a,#2563eb); color: #fff; }
.login-win-mark { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex: 0 0 auto; }
.login-win-title { font-size: 15px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; }
.login-win-sub { font-size: 11.5px; color: rgba(219,234,254,.85); margin-top: 3px; }
.login-win-body { padding: 16px 22px 4px; }
.login-fields { display: flex; gap: 12px; margin-bottom: 10px; }
.login-fields .login-field { flex: 1; min-width: 0; margin-bottom: 0; }
.login-field label { display: block; font-size: 11.5px; color: var(--text-2); margin-bottom: 4px; }
.login-input { position: relative; display: flex; align-items: center; }
.login-ico { position: absolute; left: 11px; font-size: 14px; opacity: .7; pointer-events: none; }
.login-input .input { width: 100%; height: 40px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; background: var(--surface-2); box-sizing: border-box; }
.login-input .input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.login-err { color: var(--danger); font-size: 12px; min-height: 16px; padding: 0 2px; }
.login-foot { padding: 4px 2px 12px; }
.login-btn { width: 100%; height: 42px; border: none; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: 0 8px 18px rgba(37,99,235,.3); transition: .15s; }
.login-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.login-hint { margin: 10px 2px 16px; padding: 9px 12px; background: var(--surface-2); border: 1px dashed var(--border);
  border-radius: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; text-align: center; }
.login-hint b { color: var(--text-2); }
/* 弹窗里的提示块统一左对齐：
   .login-hint 原生 text-align:center 是为登录页单行提示设计的，放进弹窗后会让多行说明居中、
   每行起止参差，逐项阅读时很难读（实测「业态：住宅。」单独飘到右侧）。
   原先只覆盖 .form-grid 内的，但弹窗顶部/底部直接挂在 .modal-body 下的提示仍是居中（改密与
   登记手机号弹窗的多行说明就被截成参差三行）→ 放宽到 #modal 全域。 */
#modal .login-hint { text-align: left; }
.login-foot2 { text-align: right; margin: -8px 2px 4px; }
.login-link { color: var(--primary); font-size: 12px; cursor: pointer; text-decoration: underline; }
.login-link:hover { color: #1d4ed8; }
.ai-group { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ai-group-h { padding: 9px 14px; font-weight: 700; font-size: 13px; color: var(--text-1); background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.ai-group-h .sub { font-weight: 400; font-size: 11px; color: var(--text-3); }
.ai-group .table-wrap { overflow-x: auto; }
.ai-group table { margin: 0; border: none; }
.ai-group thead th { background: transparent; font-size: 11px; }
.ai-group tr:last-child td { border-bottom: none; }
.sched-cats { display: flex; flex-direction: column; gap: 14px; }
.sched-cat { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.sched-cat-h { padding: 10px 14px; font-weight: 700; font-size: 13px; color: var(--text-1); background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sched-cat-h .sub { font-weight: 400; font-size: 11px; color: var(--text-3); }
.sched-cat .table-wrap { overflow-x: auto; }
.sched-cat table { margin: 0; }
.sched-cat thead th { background: transparent; font-size: 11px; white-space: nowrap; }
.sched-cat tr:last-child td { border-bottom: none; }

/* ===== AI 排班：12 列（服务任务 / 执行部门 / 所需岗位 / 服务时间 / 工时 + 周一~周日）**一屏全可见** =====
   用户 2026-09-14：「同页面显示全部」= 不要横向拖动才能看到周日。
   原表格继承 table{width:100%} + th,td{padding:12px 14px;white-space:nowrap}
   + .sched-sel{min-width:74px}，12 列在 1440px（内容区 ≈1164px）下必然超宽 → 必须左右拖。
   现在：table-layout:fixed + 百分比列宽（合计 100%）+ 紧凑内边距/字号 + 允许单元格内换行。
   外层 .table-wrap 的 overflow-x:auto 仍保留，只作极窄屏（手机）兜底。 */
.sched-cat table { table-layout: fixed; width: 100%; }
.sched-cat th, .sched-cat td { padding: 6px 6px; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.sched-cat td { font-size: 12px; line-height: 1.5; }
.sched-cat th.sc-task { width: 13%; }
.sched-cat th.sc-dept { width: 8%; }
.sched-cat th.sc-pos  { width: 10%; }
.sched-cat th.sc-time { width: 8%; }
.sched-cat th.sc-hour { width: 5%; }
.sched-cat th.sc-day  { width: 8%; }          /* 7 × 8% = 56%；与左侧 44% 合计 100% */
.sched-cat td .sched-sel { min-width: 0; width: 100%; padding: 3px 4px; font-size: 11.5px; }
.sched-cat td .sub { font-size: 10.5px; line-height: 1.5; }
.sched-cat td .tag-conc, .sched-cat td .tag-conc-x, .sched-cat td .tag-qual, .sched-cat td .tag-qual-x, .sched-cat td .tag-qual-law, .sched-cat td .tag-qual-soft, .sched-cat td .tag-fill { margin-left: 0; margin-top: 2px; }
.sched-cat .btn-link { font-size: 10.5px; padding: 1px 2px; }
/* 极窄屏（手机）：固定布局会把 12 列压到不可读 → 恢复最小宽度，交回横向滚动 */
@media (max-width: 900px) { .sched-cat table { min-width: 880px; } }
/* 「本周无常规任务」的分类占位：服务分类固定 10 项，零任务的分类只出一行说明，不渲染空表格。
   注意必须双类（.sched-cat-empty .sched-cat-h）——.sched-cat-h 定义在后文件靠下时，单类会被其覆盖。 */
.sched-cat-empty { border-style: dashed; background: transparent; }
.sched-cat-empty .sched-cat-h { background: transparent; border-bottom: none; color: var(--text-2); font-weight: 600; }
.ai-understand { margin: 4px 0 14px; padding: 12px 14px; background: linear-gradient(135deg, #eef4ff, #f3f0ff); border: 1px solid #d9e2ff; border-radius: 12px; }
.ai-understand-h { font-weight: 700; font-size: 13px; color: #3b5bdb; margin-bottom: 8px; }
.ai-understand ul { margin: 0; padding-left: 18px; }
.ai-understand li { font-size: 12.5px; line-height: 1.85; color: #2f3b66; }
.ai-understand li b { color: #1e3a8a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 4px 11px; font-size: 12px; line-height: 1.6; color: #2f3b66; background: #fff; border: 1px solid #c7d2fe; border-radius: 999px; box-shadow: 0 1px 2px rgba(59,91,219,.08); }
/* AI 生成方案 · 人工调整控件 */
.ai-edit { vertical-align: top; }
.ai-time-sum, .ai-freq-sum { display: inline-block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.ai-time-edit, .ai-freq-edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ai-time { width: 92px; padding: 3px 6px; font-size: 12px; }
.ai-num { width: 56px; padding: 3px 6px; font-size: 12px; }
/* 借鉴 fee-calculator：每个任务来源标签 */
.ai-src-tag { display: inline-block; padding: 1px 8px; margin: 0 0 0 6px; font-size: 11px; line-height: 1.5; border-radius: 999px; vertical-align: middle; font-weight: 600; }
.ai-src-law { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.ai-src-data { color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe; }
.ai-src-biz { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.ai-src-gen { color: #475569; background: #f1f5f9; border: 1px solid #cbd5e1; }
.wd-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chip.wd { cursor: pointer; padding: 2px 8px; font-size: 12px; color: var(--text-3); background: #fff; border: 1px solid var(--border); border-radius: 999px; opacity: .6; box-shadow: none; }
.chip.wd:hover { opacity: 1; border-color: var(--primary); }
.chip.wd.on { opacity: 1; color: #fff; background: var(--primary); border-color: var(--primary); font-weight: 600; }
.lp-foot { text-align: center; padding: 24px; color: var(--text-3); font-size: 12.5px; border-top: 1px solid var(--border); background: #fff; }
.lp-foot-links { margin-bottom: 10px; }
.lp-foot-links a { color: inherit; text-decoration: none; margin: 0 10px; font-size: 13px; opacity: .85; }
.lp-foot-links a:hover { text-decoration: underline; opacity: 1; }
/* ===== 登录页移动端展示区 ===== */
.lp-appshow { max-width: 1080px; width: 100%; margin: 0 auto; padding: 56px 24px 30px; box-sizing: border-box; }
.lp-sec-head { text-align: center; margin-bottom: 36px; }
.lp-sec-badge { display: inline-block; background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; border-radius: 999px; padding: 4px 14px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.lp-sec-head h2 { font-size: 28px; margin: 0 0 8px; color: #0f172a; }
.lp-sec-head p { margin: 0; color: #64748b; font-size: 14px; }
.staff-preview-body { flex: 1; overflow: auto; padding: 12px; background: #f1f5f9; display: flex; flex-direction: column; gap: 10px; }
.pv-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; }
.pv-card-t { font-weight: 700; font-size: 14px; color: #0f172a; margin-bottom: 6px; }
.pv-card-d { font-size: 13px; color: #475569; line-height: 1.7; }
.pv-card-ghost { background: #f8fafc; border-style: dashed; }
@media (max-width: 900px){ .lp-wins{ flex-direction: column; max-width: 440px; } .lp-menu{ display:none; } .lp-nav{ padding: 0 18px; } .lp-sec-head h2{ font-size: 23px; } .lp-mod-grid{ grid-template-columns: repeat(2,1fr); } .lp-mp-card{ flex-direction: column; align-items: center; padding: 24px; } }
/* ===== 首页 · 小程序码入口（业主端 / 员工端） ===== */
.lp-go-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.lp-go-ghost:hover { background: rgba(255,255,255,.24); }
.lp-mp { max-width: 1080px; width: 100%; margin: 0 auto; padding: 34px 24px 10px; box-sizing: border-box; }
.lp-mp-card { display: flex; align-items: center; gap: 34px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px 32px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.lp-mp-qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2, #f8fafc); }
.lp-mp-qr img { width: 176px; height: 176px; display: block; border-radius: 10px; background: #fff; }
.lp-mp-qr-tip { font-size: 11.5px; color: var(--text-3); }
.lp-mp-info { flex: 1; min-width: 0; }
.lp-mp-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.lp-mp-tab { display: inline-block; padding: 3px 12px; font-size: 12px; font-weight: 600; color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; }
.lp-mp-steps { margin: 0 0 16px; padding-left: 20px; color: var(--text-2); font-size: 13px; line-height: 1.9; }
.lp-mp-steps b { color: var(--text); margin-right: 6px; }
.lp-mp-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lp-mp-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 10px; text-decoration: none; font-size: 13.5px; font-weight: 600; color: #fff; background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.lp-mp-btn:hover { filter: brightness(1.06); }
.lp-mp-hint { font-size: 12px; color: var(--text-3); }
@media (max-width: 520px){ .lp-mod-grid{ grid-template-columns: 1fr; } .lp-hero h1{ font-size: 40px; } .lp-hero{ padding: 54px 16px 40px; } .lp-hero-actions{ flex-direction: column; max-width: 260px; gap: 12px; } .lp-hero-actions .lp-go{ max-width: none; } .lp-mp{ padding: 28px 16px 6px; } .lp-mp-card{ gap: 20px; padding: 20px; } .lp-mp-qr img{ width: 150px; height: 150px; } }
.logout-btn { margin-left: 12px; height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; }
.logout-btn:hover { border-color: var(--danger); color: var(--danger); }
.sw:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; opacity: .85; }

/* ===== 员工与编制（部门/岗位/员工 标签页） ===== */
.kpi-row { display: flex; gap: 14px; flex-wrap: wrap; }
.kpi-mini { flex: 1; min-width: 92px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.kpi-mini .n { font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.kpi-mini .l { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.vtabs { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.vtab { padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--text-2); border-radius: 10px; cursor: pointer; transition: .15s; }
.vtab:hover { background: var(--surface-2); }
.vtab.active { color: #fff; background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: 0 4px 12px rgba(37,99,235,.25); }
.vtabs-act { margin-left: auto; }

/* ===== 任务安排计划 · 周视图排程板 ===== */
.plan-week { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; }
.plan-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 8px; min-height: 96px; display: flex; flex-direction: column; gap: 8px; }
.plan-col-h { font-size: 12px; font-weight: 700; color: var(--text-2); text-align: center; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.plan-col-d { font-size: 11px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.plan-col-today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,.14); }
.plan-col-today .plan-col-h { color: var(--primary); }
.plan-week-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px 2px; }
.plan-week-label { font-size: 13px; font-weight: 700; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; }
.plan-week-jump { font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.plan-week-jump .input { padding: 4px 8px; font-size: 12.5px; }
.plan-chip { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 8px; padding: 7px 9px; }
.plan-chip b { font-size: 12.5px; color: var(--text); font-weight: 700; }
.plan-chip .sub { margin-top: 3px; display: flex; align-items: center; gap: 5px; }

/* ===== 特约服务 · 星级展示与评分 ===== */
.stars { color:#f59e0b; letter-spacing:2px; font-size:14px; }
.stars .star-off { color:#d1d5db; }
.star-pick { display:flex; align-items:center; gap:4px; padding-top:6px; }
.sp-star { font-size:27px; line-height:1; color:#d1d5db; cursor:pointer; transition:.12s; }
.sp-star:hover { transform:scale(1.12); }
@media (max-width: 860px){ .plan-week { grid-template-columns: repeat(2,1fr); } }

/* ===== 特约服务（业主端展示卡片） ===== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 8px; }
.svc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.svc-name { font-weight: 600; font-size: 15px; color: var(--text); }
.svc-content { font-size: 13px; color: var(--text-3); line-height: 1.5; flex: 1; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.svc-price { color: #dc2626; font-weight: 700; font-size: 16px; }
.svc-unit { color: var(--text-3); font-size: 12px; font-weight: 400; margin-left: 2px; }

/* ===== 员工端（移动工作台 overlay） ===== */
.staff-app { position: fixed; inset: 0; z-index: 6000; background: rgba(15,23,42,.55); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; padding: 16px; }
.staff-phone { width: 100%; max-width: 420px; max-height: 92vh; overflow: hidden; background: #f1f5f9; border-radius: 22px; box-shadow: 0 24px 70px rgba(15,23,42,.4); display: flex; flex-direction: column; }
.staff-top { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: linear-gradient(135deg,#2563eb,#1d4ed8); color: #fff; }
.staff-title { font-weight: 700; font-size: 16px; }
.staff-close { background: rgba(255,255,255,.18); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.staff-pick { padding: 20px 16px; overflow-y: auto; }
.staff-pick-h { font-size: 14px; color: #475569; margin-bottom: 12px; }
.staff-emp-list { display: flex; flex-direction: column; gap: 10px; }
.staff-emp { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: .12s; }
.staff-emp:hover { border-color: #2563eb; box-shadow: 0 4px 14px rgba(37,99,235,.12); transform: translateY(-1px); }
.staff-emp-avatar { width: 40px; height: 40px; border-radius: 12px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; flex: none; }
.staff-emp-info { flex: 1; }
.staff-emp-name { font-weight: 600; color: #0f172a; }
.staff-emp-pos { font-size: 12px; color: #94a3b8; }
.staff-emp-go { color: #2563eb; font-weight: 600; font-size: 13px; }
.staff-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.staff-me { display: flex; align-items: center; gap: 10px; }
.staff-me-avatar { width: 36px; height: 36px; border-radius: 11px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.staff-me-name { font-weight: 600; color: #0f172a; font-size: 14px; }
.staff-me-pos { font-size: 12px; color: #94a3b8; }
.staff-switch { background: #eef2ff; color: #2563eb; border: 1px solid #c7d2fe; border-radius: 9px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.staff-kpis { flex: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 12px 14px; background: #fff; }
.staff-kpi { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: 8px 4px; text-align: center; }
.staff-kpi .v { font-size: 19px; font-weight: 800; color: #0f172a; }
.staff-kpi .l { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.staff-tools { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; gap: 10px; }
/* 员工端主页签已增至 6 个（任务/报修/特约/报事/访客/投诉）：窄屏放不下时横向滚动，不换行、不挤压 */
.staff-tools .staff-tabs { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.staff-tools .staff-tabs::-webkit-scrollbar { display: none; }
.staff-tools .staff-tabs .tab { white-space: nowrap; flex: none; }
.staff-today { font-size: 12px; color: #475569; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.staff-orders { flex: 1; overflow-y: auto; padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.staff-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; }
.staff-card.is-done { opacity: .72; }
.staff-card-top { display: flex; align-items: center; justify-content: space-between; }
.staff-card-title { font-weight: 700; color: #0f172a; font-size: 15px; }
.staff-card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; font-size: 12px; color: #64748b; }
.staff-card-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.staff-card-actions { margin-top: 10px; }
.staff-done-tag { color: #16a34a; font-weight: 600; font-size: 13px; }
.staff-cancel-tag { color: #94a3b8; font-size: 13px; }
.staff-empty { text-align: center; color: #94a3b8; font-size: 13px; padding: 30px 10px; }
.staff-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; vertical-align: middle; }
.staff-inc-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 10px; }
.staff-inc-cnt { font-size: 13px; color: #475569; font-weight: 600; }
.staff-report { padding: 4px 14px 16px; }
.staff-report-h { font-size: 16px; font-weight: 700; color: #0f172a; margin: 4px 0 12px; }
.staff-report label { display: block; font-size: 12px; color: #64748b; margin: 12px 0 5px; }
.staff-report select, .staff-report input, .staff-report textarea { width: 100%; box-sizing: border-box; padding: 10px 11px; border: 1px solid #e2e8f0; border-radius: 11px; font-size: 14px; background: #fff; color: #0f172a; font-family: inherit; }
.staff-report textarea { min-height: 80px; resize: vertical; }
.staff-report-actions { display: flex; gap: 10px; margin-top: 16px; }
.staff-report-actions .btn { flex: 1; }

/* ===== 业主端（独立业主移动端 overlay，复用 .staff-phone 容器） ===== */
.owner-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.app-nav { flex: none; display: flex; border-top: 1px solid #e2e8f0; background: #fff; }
.app-nav-btn { flex: 1; text-align: center; padding: 9px 2px; font-size: 12px; color: #64748b; cursor: pointer; transition: .12s; }
.app-nav-btn.active { color: #2563eb; font-weight: 700; background: #eff6ff; }
.owner-hero { background: linear-gradient(135deg,#0ea5a4,#0d9488); color: #fff; border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 700; }
.owner-hero .sub { font-size: 12px; font-weight: 400; opacity: .9; margin-top: 4px; }
.owner-acts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.owner-act { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 6px; text-align: center; cursor: pointer; font-size: 13px; color: #334155; transition: .12s; }
.owner-act:hover { border-color: #0ea5a4; box-shadow: 0 4px 14px rgba(13,148,136,.12); transform: translateY(-1px); }
.owner-act-ico { font-size: 22px; margin-bottom: 6px; }
.owner-tab-head { padding: 0 0 4px; }
.owner-form-h { flex: none; padding: 12px 14px; font-weight: 700; color: #0f172a; border-bottom: 1px solid #eef2f7; background: #fff; display: flex; align-items: center; gap: 8px; }
.owner-form { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.owner-back { background: none; border: none; color: #2563eb; cursor: pointer; font-size: 14px; padding: 0; }
.owner-demo-banner { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; font-size: 12.5px; line-height: 1.5; }

/* ===== 基础数据 / 系统设备：紧凑布局（bd-page 作用域，不影响其他页面） ===== */
.bd-page .page-head { margin-bottom: 10px; }
.bd-page .page-head h2 { font-size: 17px; }
.bd-page .toolbar { margin-bottom: 10px; }
.bd-page .tabs { padding: 3px; gap: 3px; border-radius: 9px; }
.bd-page .tab { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }
.bd-page table { font-size: 12.5px; }
.bd-page th, .bd-page td { padding: 6px 6px; }
.bd-page th { white-space: nowrap; }
/* 单元格允许换行：列宽自动收缩，所有列一屏放下（不再横向滚动） */
.bd-page td { white-space: normal; word-break: break-word; min-width: 0; }
.bd-page td.op { white-space: nowrap; }
.bd-page td.op .btn { margin: 0 1px; padding: 3px 8px; font-size: 12px; }
/* 表格内的徽章收紧 */
.bd-page .badge { padding: 1px 7px; font-size: 11.5px; }
.bd-page .chips { margin: 8px 0 2px; gap: 6px; }
.bd-page .chip { padding: 4px 10px; font-size: 12px; }
.bd-page .sys-group { margin: 10px 0 2px; }
.bd-page .sys-group-head { padding: 2px 2px 5px; margin-bottom: 6px; font-size: 13px; }
.bd-page .empty { padding: 22px 0; }

/* ===== AI 生成来源标记 ===== */
.ai-src { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.ai-src.llm { background: #e8f6ee; color: #1a7f43; border: 1px solid #bfe6cd; }
.ai-src.local { background: #eef1f4; color: #5a6672; border: 1px solid #dde3ea; }
/* 按一级分类填写服务要求 */
.ai-req-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; max-height: 240px; overflow: auto; padding: 4px; border: 1px solid #eef1f4; border-radius: 10px; background: #fbfcfe; }
.ai-req-row { display: flex; flex-direction: column; gap: 3px; }
.ai-req-cat { font-size: 12px; font-weight: 600; color: #495057; }
.ai-req-in { font-size: 12.5px; padding: 6px 9px; }
@media (max-width: 720px){ .ai-req-list { grid-template-columns: 1fr; } }

/* ===== 版本体系：基础版受限功能灰字样式 =====
 * .disabled-look 用于受限菜单/tab/按钮：保留点击（弹引导），视觉灰化
 */
.nav-item.disabled-look { opacity: .55; color: #9ca3af !important; cursor: not-allowed; }
.nav-item.disabled-look:hover { background: transparent; }
.nav-item.disabled-look .nav-ico { filter: grayscale(1); opacity: .65; }
.tab.disabled-look { opacity: .55; color: #9ca3af !important; cursor: not-allowed; }
.tab.disabled-look.active { opacity: .65; }
.btn.disabled-look { opacity: .55; color: #9ca3af !important; cursor: not-allowed; background: #f1f5f9 !important; border-color: #e2e8f0 !important; }
.btn.disabled-look:hover { background: #f1f5f9 !important; }

/* ===== 标准版升级审批（admin 端，2026-09-05） ===== */
/* KPI 卡片（响应式自动列）：网格布局 */
.kpi { padding: 16px; }
.kpi .sub { font-size: 12.5px; color: var(--text-3); }
.kpi > div:not(.sub):first-of-type { font-weight: 600; color: var(--text-2); font-size: 13.5px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi-grid > .kpi { margin: 0; }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
/* admin 端强调色：蓝紫主色（与 pm 主色作视觉区分，仍读得懂蓝紫调） */
body[data-port="admin"] .nav-item.on, body[data-port="admin"] .nav-item:hover { background: #f5f3ff; color: #6d28d9; }
body[data-port="admin"] .nav-item.on .nav-ico { color: #6d28d9; }
body[data-port="admin"] .page-head h2 { color: #6d28d9; }
body[data-port="admin"] .portBanner { color: #6d28d9; }
body[data-port="admin"] .side-nav .nav-group-title { color: #6d28d9; }
/* 升级申请状态徽标别名（保留 b-warning 已可使用，这里只加好看边缘 padding 提升可读性） */
.badge { vertical-align: middle; }
/* 付款 / 凭证展示 */
.kpi > div[style*="color:#a16207"] { font-feature-settings: "tnum" 1; }
.kpi > div[style*="color:#166534"] { font-feature-settings: "tnum" 1; }
.kpi > div[style*="color:#0d9488"] { font-feature-settings: "tnum" 1; }
.kpi > div[style*="color:#b45309"] { font-feature-settings: "tnum" 1; }
.kpi > div[style*="color:#1d4ed8"] { font-feature-settings: "tnum" 1; }
.kpi > div[style*="color:#475569"] { font-feature-settings: "tnum" 1; }
/* 应用 body 标识 admin 端：JS 会在 <body data-port="admin"> 上打标 */
body[data-port="admin"] .side-nav .nav-group-title { color: #6d28d9; }

/* ===== 规划数据管理：23 项规划控制指标台账 =====
   表格里每行都可直接填写（不是弹窗表单），所以输入框要在单元格内自适应收缩，
   备注列会随屏幕变窄让位（≤900px 隐藏备注，只留填写区，避免横向滚动）。 */
.pd-page .toolbar { flex-wrap: wrap; }
.pd-sum { display: flex; align-items: baseline; gap: 5px; font-size: 12.5px; color: var(--text-3); }
.pd-sum .pd-sum-n { color: var(--primary); font-weight: 600; }
.pd-sum .pd-sum-n b { font-size: 16px; }
.pd-sum .pd-sep { color: var(--border); }
.pd-table { table-layout: auto; }
.pd-table .pd-h-no, .pd-table .pd-no { width: 42px; text-align: center; }
.pd-table .pd-no { color: var(--text-3); font-feature-settings: "tnum" 1; }
.pd-table .pd-h-item, .pd-table .pd-item { min-width: 132px; font-weight: 500; }
.pd-table .pd-h-unit, .pd-table .pd-unit { width: 48px; text-align: center; color: var(--text-3); }
.pd-table .pd-h-val, .pd-table .pd-val { width: 176px; }
.pd-table .pd-h-remark, .pd-table .pd-remark { min-width: 260px; font-size: 12px; color: var(--text-3); line-height: 1.9; }
.pd-in { width: 100%; min-width: 84px; height: 30px; padding: 0 8px; font-size: 13px; }
.pd-in-num { text-align: right; font-feature-settings: "tnum" 1; }
/* 文本类指标（用地性质 / 地块出入口 / 其他管控要求）：自由文本，给足宽度否则一句话被截断 */
.pd-in-text { min-width: 200px; }
.pd-in-sub { display: inline-block; min-width: 0; height: 24px; margin: 0 3px; padding: 0 4px; font-size: 12.5px; text-align: center; vertical-align: middle; }
.pd-cmp { flex: 0 0 auto; width: 14px; color: var(--danger); font-weight: 600; }
.pd-num-wrap { display: flex; align-items: center; }
.pd-dash { color: var(--border); }
/* 未填行：控制值列淡红底提示，填完自动消失 */
.pd-unfilled .pd-val { background: rgba(220, 38, 38, .035); }
.pd-warn { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--warning-soft); border: 1px solid #fed7aa; color: #c2410c; font-size: 12.5px; line-height: 1.6; }
/* 窄屏不折叠列：备注列里有«»子项输入框（车位数构成、人防掩蔽面积/人数），
   隐藏备注 = 手机上这些子项根本无法填写 → 改为整表定最小宽度，交给 .table-wrap 横向滚动。 */
@media (max-width: 900px) {
  .pd-table { min-width: 780px; }
  .pd-table .pd-h-val, .pd-table .pd-val { width: 150px; }
  .pd-table .pd-h-remark, .pd-table .pd-remark { min-width: 220px; }
}

/* ===== AI 智能设置：定期服务的「服务日期」编辑器（类别按执行频次分流后的定期行 UI） =====
   · 常规服务行仍是「每周 N 次 + 周几」；定期服务行改为折叠面板 + 日期增删，
     避免把「每月/每年一次」的服务硬塞进周频次控件里（口径与实际作业量不符）。 */
.ai-md-edit { margin-top: 5px; }
.ai-md-edit > summary { cursor: pointer; font-size: 12px; color: #0369a1; outline: none; }
.ai-md-edit > summary:hover { text-decoration: underline; }
.ai-md-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 3px; }
.ai-md-list .chip { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.ai-md-list .chip b { color: #94a3b8; margin-left: 3px; font-weight: 600; }
.ai-md-list .chip b:hover { color: #dc2626; }

/* ===== 任务计划安排单页（2026-09-17w）：5 区块同页，表格适配页面宽度、不横向滑动 =====
   · 全局 th,td{white-space:nowrap} + .table-wrap{overflow-x:auto} 下，列多的表（执行工单 / 工单考核明细等）
     会撑宽溢出、需左右拖动才能看全。任务模块内改用固定布局 + 100% 宽 + 单元格换行，
     常规桌面宽度下完整显示、不横滑。
   · AI 排班表（.sched-cat）窄屏（≤900px）min-width:880px 兜底滚动仍由 .sched-cat .table-wrap{overflow-x:auto} 保留，
     不受本作用域覆盖（桌面下同样 fixed+100% 不溢出）。 */
.tasks-module table { table-layout: fixed; width: 100%; }
.tasks-module th, .tasks-module td { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
/* 操作列原 .table-wrap td.op{white-space:nowrap}(特异性 0,2,1) 高于上面 .tasks-module td(0,1,1)，
   会把「开始执行/完成/取消」按钮撑破列宽 → 整表横向溢出。这里用同等特异性(0,2,1)且靠后定义，
   让任务模块操作列按钮换行，彻底消除横滚。 */
.tasks-module td.op { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
/* ===== 2026-09-18af C10：窄屏（手机 / 平板 ≤900px）横滑兜底 =====
   桌面下任务模块是 fixed+100% 不横滑；窄屏列实在挤不开（执行工单 10 列、考核表 14 列、
   周视图 7 列）时改回「最小宽度 + 横向滚动」，并开启惯性滚动，避免手机上只看得到半张表。 */
@media (max-width: 900px) {
  .tasks-module table { table-layout: auto; min-width: 900px; }
  .tasks-module th, .tasks-module td { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
  .tasks-module td.op { white-space: nowrap; }
  .tasks-module .card { overflow-x: auto; }
  .plan-week { min-width: 860px; }
}
.table-wrap, .task-nav, .tasks-module .card { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }

/* ===== 服务模块管理列表（2026-09-29）：8 列在页面宽度内完整显示、不左右滑动 =====
   · 原状：本页表格未套 .tasks-module，沿用全局 `th,td{white-space:nowrap}` + `.table-wrap{overflow-x:auto}`，
     「二级分类 / 频次·服务日期」等长文本把表格撑宽，1440px 桌面下也要左右拖动才能看全。
   · 改法：与本模块任务计划安排同思路 —— 固定布局 + 100% 宽 + 单元格换行，列宽由 <colgroup> 按内容分配，
     任何视口宽度都不会超出容器，滚动条不再出现（.table-wrap 的 overflow-x:auto 仅作异常兜底，常态不触发）。
   · 列宽合计 100%：编号 5 / 任务 24 / 类别 7 / 一级分类 10 / 二级分类 17 / 服务时间 9 / 频次 13 / 操作 15。 */
.svc-mgr-table { table-layout: fixed; width: 100%; }
.svc-mgr-table th, .svc-mgr-table td { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
/* 操作列：全局 `.table-wrap td.op{white-space:nowrap}`（特异性 0,2,1）高于 `.svc-mgr-table td`（0,1,1），
   会把「编辑 / 取消」按钮撑破列宽 → 整表横向溢出。这里用同等特异性且靠后定义覆盖，让按钮换行。 */
.svc-mgr-table td.op { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.svc-mgr-table td.op .btn { margin: 2px 4px 2px 0; }
/* 分组行（按一级分类归类）跨 8 列，保持单行不折行 */
.svc-mgr-table tr.grp-row td { white-space: nowrap; }
/* 2026-09-17aa：AI 排班改派下拉——候选带「角色/当日工时」注释；无上岗资格者置灰不可选 */
.sched-sel optgroup { font-style: normal; color: #b91c1c; background: #fef2f2; }
.sched-sel option[disabled] { color: #9ca3af; }
.sched-pend-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #fef3c7; color: #92400e; font-weight: 600; font-size: 12px; }

/* 2026-09-17y：任务计划安排整体重做 —— 6 阶段管线概览（信息条，非导航）+ 区块卡片化 */
.task-pipeline { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.task-pipeline .ph {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; color: #475569; line-height: 1;
}
.task-pipeline .ph-no { font-weight: 700; color: #2563eb; }
.task-pipeline .ph-label { color: #64748b; }
.task-pipeline .ph-val { color: #0f172a; font-weight: 600; }
.task-pipeline .ph[style*="cursor:pointer"]:hover { background: #e8f0fe; border-color: #2563eb; }
.plan-filter-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #eef4ff; border: 1px solid #c7d7fe; border-radius: 10px;
  padding: 9px 14px; margin: 6px 0 12px; font-size: 13px; color: #1e3a8a;
}
.plan-filter-banner .btn { margin-left: 2px; }
.task-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; margin: 18px 0; box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.task-card .page-head { margin-top: 0; }
.task-card .page-head h2 { font-size: 18px; }


