/* 网页后台 · 基础样式（浅色主题，主题色沿用小程序 #2F6FED） */
* { box-sizing: border-box; }

/* ⚠️ 全局兜底（2026-10-08 修 bug）：`hidden` 属性只靠浏览器默认样式表的
   `[hidden]{display:none}` 生效，那条规则**优先级为 0** —— 只要元素自身的
   class 里写了 display，hidden 就彻底失效。

   本次现场 bug 的根因就是这个：待绑定页（#pending-view）本该独占屏幕，
   但主壳 `.shell{display:flex}` 压过了它自己的 `[hidden]`，于是手机验证绑定
   页下方同时渲染出了整个后台主壳（首页指标 / 快捷入口 / 库存速览全都在）。

   这条规则把「加了 hidden 就必须真的不显示」变成不可违反的约定，
   以后新增「用 hidden 切换 + class 里带 display」的元素不会重蹈覆辙。 */
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: 32px 24px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1F2329;
  background: #F5F6FA;
}

h1 { font-size: 18px; font-weight: 500; margin: 0 0 4px; }

.hint { margin: 0 0 20px; color: #646A73; }

.card {
  max-width: 860px;
  padding: 20px 24px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 12px;
}

/* 「布草延期」跳转落点高亮（2026-10-19f）：加 class 即亮，1.6s 后由 JS 摘掉 */
.card.flash {
  border-color: #3370FF;
  box-shadow: 0 0 0 3px rgba(51, 112, 255, .16);
  transition: border-color .2s ease, box-shadow .2s ease;
}

button {
  padding: 8px 18px;
  margin: 0 8px 8px 0;
  font-size: 14px;
  font-family: inherit;
  color: #1F2329;
  background: #fff;
  border: 1px solid #D0D3D9;
  border-radius: 8px;
  cursor: pointer;
}

button:hover { border-color: #2F6FED; color: #2F6FED; }

button.primary {
  color: #fff;
  background: #2F6FED;
  border-color: #2F6FED;
}

button.primary:hover { background: #2258C4; color: #fff; }

dl { display: grid; grid-template-columns: 180px 1fr; gap: 4px 16px; margin: 0; }
dt { color: #646A73; }
dd { margin: 0; word-break: break-all; }

pre {
  max-height: 420px;
  padding: 16px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #1F2329;
  background: #fff;
  border: 1px solid #E5E6EB;
  border-radius: 12px;
}

/* ============ B1 骨架：登录页 ============ */
.login-body { padding: 0; }
.login-main {
  max-width: 420px;
  margin: 8vh auto 40px;
  padding: 0 16px;
}
.login-brand { text-align: center; margin-bottom: 20px; }
/* 2026-10-08 第十四轮：登录页图标与小程序登录页同一份 assets/icon.png
   （小程序 .logo-img 为 150rpx≈75px 方形原图，这里同尺寸对齐） */
.brand-mark { width: 76px; height: 76px; margin: 0 auto 12px; }
.brand-mark .brand-img { display: block; width: 100%; height: 100%; }
/* 兜底：icon.png 万一缺失时显示首字圆形，绝不留空白块 */
.brand-mark.brand-fallback { border-radius: 18px; background: #2F6FED; }
.hint.center { text-align: center; }
.login-card { max-width: none; }
.tabs { display: flex; border-bottom: 1px solid #E5E6EB; margin-bottom: 18px; }
.tabs button {
  flex: 1; margin: 0; padding: 10px 4px;
  background: none; border: none; border-bottom: 2px solid transparent;
  border-radius: 0; color: #646A73;
}
.tabs button.on { color: #2F6FED; border-bottom-color: #2F6FED; font-weight: 500; }
/* 只有一个标签时（2026-10-27l：运营经理进「基础数据」只有「房型标准」一格），
   不要让它被 flex:1 拉满整行，否则像页签掉了几个 */
.tabs.tabs-single button { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }
.field { display: block; margin-bottom: 14px; color: #4E5261; }
/* 2026-11-24 表单分组标题（个人档案「个人信息」「在职信息」等） */
.form-section {
  margin: 18px 0 12px;
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1F2329;
  border-bottom: 1px solid #EDEFF2;
}
.field input, .field select {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
  font-size: 14px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: #2F6FED; }
/* 多选下拉块（2026-11-15）：替代原生 <select multiple>，点开面板勾选 */
.ms-multi { position: relative; margin-top: 6px; }
.ms-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 12px; font-size: 14px; font-family: inherit;
  color: #1F2329; text-align: left; cursor: pointer;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff;
}
.ms-multi.open .ms-trigger { border-color: #2F6FED; }
.ms-placeholder { color: #A8AEB8; }
.ms-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-caret { flex: none; color: #8A9099; font-size: 12px; transition: transform .15s; }
.ms-multi.open .ms-caret { transform: rotate(180deg); }
.ms-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  display: none; max-height: 240px; overflow-y: auto;
  padding: 6px; background: #fff;
  border: 1px solid #D0D3D9; border-radius: 8px; box-shadow: 0 8px 24px rgba(31,35,41,.14);
}
.ms-multi.open .ms-panel { display: block; }
.ms-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; font-size: 13px; color: #4E5261; cursor: pointer; border-radius: 6px;
}
.ms-item:hover { background: #F5F7FA; }
.ms-item input[type=checkbox] { margin: 0; flex: none; display: inline-block; width: auto; padding: 0; border: 0; }
/* 可搜索多选下拉块（2026-11-16h）：面板顶部带搜索框 */
.ms-search .ms-search-kw {
  width: 100%; padding: 7px 10px; margin: 0 0 6px; font-size: 13px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 6px; box-sizing: border-box; color: #1F2329;
}
.ms-search .ms-search-kw:focus { outline: none; border-color: #2F6FED; }
.ms-search .ms-search-list { max-height: 200px; overflow-y: auto; }
.ms-search .ms-empty { padding: 8px 10px; font-size: 13px; color: #A8AEB8; }

/* 直接输入式多选（2026-11-16j）：触发区 = chips + 可输入框，直接打字模糊查询 */
.ms-combo .ms-combo-trigger {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  width: 100%; min-height: 42px; padding: 6px 8px; box-sizing: border-box;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff; cursor: text;
}
.ms-combo.open .ms-combo-trigger { border-color: #2F6FED; }
.ms-combo .ms-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-combo .ms-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; font-size: 12px; color: #2F6FED;
  background: #EBF1FF; border-radius: 12px; line-height: 1.4;
}
.ms-combo .ms-chip-x { color: #7A90C9; cursor: pointer; font-weight: 700; }
.ms-combo .ms-chip-x:hover { color: #2F6FED; }
.ms-combo .ms-combo-input {
  flex: 1 1 80px; min-width: 80px; padding: 4px 2px; font-size: 14px; font-family: inherit;
  border: 0; outline: none; color: #1F2329; background: transparent;
}
.ms-combo .ms-combo-input::placeholder { color: #A8AEB8; }
.ms-combo .ms-search-list { max-height: 220px; overflow-y: auto; }
.ms-combo .ms-empty { padding: 8px 10px; font-size: 13px; color: #A8AEB8; }

button.block { display: block; width: 100%; margin: 10px 0 0; padding: 10px; }
button.loading { opacity: .6; pointer-events: none; }
/* 页内二维码（2026-10-08）：iframe 承载微信开放平台的扫码页
   —— 微信那边明确支持 iframe 嵌入（页面注释「iframe & 客户端嵌入」），
      且不带 X-Frame-Options，因此可以整块嵌进来（扫码 + 轮询在微信页内完成）。 */
.qr-box {
  position: relative;
  display: flex; justify-content: center;
  width: 300px; height: 400px; margin: 0 auto;
  overflow: hidden;
}
/* 加载占位：绝对定位盖在 iframe 上，iframe onload 后隐藏 */
.qr-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #646A73; font-size: 13px;
}
.qr-loading[hidden] { display: none; }
/* ⚠️ 不要在这里写 display：`.wx-qr-frame[hidden]` 若被 display 覆盖，hidden 属性就失效了
   （2026-10-08 起全局 `[hidden]{display:none !important}` 已兜底，但仍保持这条约定） */
.wx-qr-frame { width: 300px; height: 400px; border: 0; background: #fff; }
/* 2026-10-08：二维码下方那行提示语（「微信扫码登录」）已按现场要求删除，
   对应的样式规则一并移除，不留死代码 */
button.linklike {
  background: none; border: none; color: #1F2329;
  padding: 0; margin: 0; font-size: 14px;
  text-decoration: none; text-align: left;
}
.divider { position: relative; margin: 16px 0 4px; text-align: center; color: #A8AEB8; }
.divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid #E5E6EB;
}
.divider span { position: relative; background: #fff; padding: 0 12px; }
.req-status { margin-top: 14px; padding: 12px 14px; background: #F0F4FF; border-radius: 8px; }

/* ============ B1 骨架：主壳 ============ */
.app-body { padding: 0; }
.shell { display: flex; min-height: 100vh; }
/* ⚠️ 侧栏必须「钉」在视口高度上（2026-10-13 修复「退出登录要滚到底才看得见」）。
   原来只有 `flex: 0 0 220px` 没有高度约束：flex 子项默认 align-self: stretch，
   会被拉长到与右侧内容等高 —— 内容越长侧栏越高，`.side-foot`（退出登录）就掉到
   文档最底部，用户必须先滚到底才能看到。现在侧栏自身高度 = 100vh（sticky 钉在顶部、
   align-self: flex-start 解除拉伸），菜单区超出时**在侧栏内部滚动**，底部「退出登录」
   恒固定可视。 */
.sidebar {
  position: sticky; top: 0; align-self: flex-start;
  flex: 0 0 220px; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 20px 12px; background: #fff; border-right: 1px solid #E5E6EB;
}
.side-brand { padding: 0 10px 18px; font-size: 16px; font-weight: 600; }
.side-brand small { display: block; font-size: 12px; font-weight: 400; color: #646A73; }
/* min-height: 0 是让 flex 子项真正可收缩（默认 min-height: auto 会撑破父容器、导致不滚动） */
#menu {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 10px 12px; text-align: left;
  background: none; border: none; border-radius: 8px;
}
.menu-item:hover { background: #F0F4FF; border: none; }
.menu-item.on { background: #2F6FED; color: #fff; }
.menu-item .icon { width: 18px; text-align: center; }
.menu-item .badge {
  margin-left: auto; font-size: 11px; color: #A8AEB8;
  border: 1px solid #E5E6EB; border-radius: 6px; padding: 0 5px;
}
.menu-item.on .badge { color: #fff; border-color: rgba(255,255,255,.5); }
/* 2026-10-08：左下角不再展示姓名 / 角色，只留「退出登录」，
   原本给 #me-name / #me-role 的两条规则一并移除 */
/* 2026-10-13：flex: 0 0 auto 保证这一条永远不被菜单挤压 / 顶出可视区 */
.side-foot { flex: 0 0 auto; padding: 14px 10px 0; border-top: 1px solid #E5E6EB; }
/* ⚠️ min-width: 0 不能省（2026-10-20 第 3 项）。
   flex 子项默认 min-width: auto —— 它不会收缩到小于「内容的最小宽度」。
   于是当页内表格设了 min-width（如成员表），这个下限会顶穿 .shell：
   右侧内容整块被推到视口外，页面出现横向滚动条，用户看到的是「表格超出屏幕」。
   加上 min-width: 0 之后，内容区可以被压到视口内，页内宽表格由各自的
   `overflow-x: auto` 容器内部滚动，页面本身永远不横向溢出。 */
.content { flex: 1; min-width: 0; padding: 28px 32px; max-width: 1020px; }
.content h2 { margin: 0 0 16px; font-size: 20px; font-weight: 600; }
.card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 4px 12px; font-size: 13px;
  background: #F5F6FA; border: 1px solid #E5E6EB; border-radius: 999px;
}
.chip.perm { background: #F0F4FF; border-color: #C9D9FB; }
.roadmap { margin: 0; padding-left: 18px; }
.roadmap li { margin-bottom: 6px; }
.req-row { padding: 12px 0; border-bottom: 1px solid #F2F3F5; }
.req-row:last-child { border-bottom: none; }
.req-main { font-weight: 500; }
.req-row .hint { margin: 2px 0 8px; font-size: 12px; }
.req-actions { display: flex; align-items: center; gap: 8px; }
.req-actions select { padding: 7px 10px; border: 1px solid #D0D3D9; border-radius: 8px; }
.req-actions button { margin: 0; }
.req-actions button.primary { margin-left: auto; }
/* 申请行第二条路径：绑定到已有人员 */
.req-actions.bind-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #EEE; }
.req-actions.bind-row select { flex: 1 1 auto; min-width: 0; }
.req-actions.bind-row .hint { margin: 0; white-space: nowrap; }

/* ============ B1 骨架：toast / 对话框 ============ */
.wb-toast {
  position: fixed; top: 24px; left: 50%; transform: translate(-50%, -12px);
  z-index: 99; max-width: 70vw; padding: 10px 20px;
  color: #1F2329; background: #fff; border: 1px solid #E5E6EB;
  border-radius: 10px; box-shadow: 0 6px 24px rgba(31,35,41,.12);
  opacity: 0; pointer-events: none; transition: all .2s;
}
.wb-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wb-toast.ok { border-color: #2F6FED; color: #2F6FED; }
.wb-toast.err { border-color: #F54A45; color: #F54A45; }
.wb-mask {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(31,35,41,.4);
  display: flex; align-items: center; justify-content: center;
}
.wb-dialog {
  width: 360px; padding: 20px 22px;
  background: #fff; border-radius: 12px;
}
.wb-dialog h3 { margin: 0 0 8px; font-size: 15px; }
/* pre-line：确认框正文允许用 \n 换行（2026-10-09b 起，删除类确认会附带
   「会留痕、可在操作日志恢复」的第二行；此前是单行文案，无副作用） */
.wb-dialog p { margin: 0 0 16px; color: #4E5261; white-space: pre-line; }
.wb-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.wb-dialog-actions button { margin: 0; }

/* ============ B2 基础数据 ============ */
.content .tabs { max-width: 720px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.toolbar .hint { margin: 0; font-size: 12px; }
.toolbar input[type=text] {
  width: 220px; padding: 8px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 8px;
}
.toolbar select {
  padding: 8px 10px; font-size: 14px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff;
}
.toolbar button { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td {
  padding: 9px 10px; text-align: left; border-bottom: 1px solid #F2F3F5;
  vertical-align: middle; word-break: break-all;
}
.data-table th { color: #646A73; font-weight: 500; background: #FAFBFC; }
.data-table td.op { white-space: nowrap; }
.data-table td.op .linklike { margin-right: 6px; }

/* ---- 单行表格（.data-table.fixed）—— 2026-10-15 第 1 项 ----
   现场反馈：「请购」和「基础数据 → 商品与单位」两张表里，同一个单元格折成两行，
   看起来零乱，希望调宽表格、一格只显示一行。

   根因有两条，都在这里收口：
     ① 上面那条 `.data-table th, .data-table td { word-break: break-all }` 允许在
        **任意字符**处断行 —— 连「2026-10-15 17:04」都会从空格处被劈成两行；
     ② 8~9 列的表格挤在 `.content`（max-width 1020px、两侧各 32px 内边距）里，
        auto 表格布局会按「哪个列最不挤就压哪个」随机决定折行位置。

   修法 = table-layout: fixed（列宽只认 <colgroup>，不再由内容反推）+ 单元格 nowrap。
   于是「一格一行」成了排版硬保证，长内容一律走省略号 + title 悬浮看全文。 */
.data-table.fixed { table-layout: fixed; }
.data-table.fixed th,
.data-table.fixed td {
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 操作列放行溢出：按钮个数随权限变化（请购最多 4 个），宁可略微顶出也不要把
   「转采购」截成「转采…」——那是点不动的按钮，比折行更糟 */
.data-table.fixed td.op { overflow: visible; }

/* ---- 「管理与授权 → 成员管理」成员表（2026-10-20 第 1 项）----
   现场反馈：成员列表「格式杂乱，希望调宽表格、一格一行」。
   根因两层，都不在表格本身：
     ① `.card { max-width: 860px }` 把 8 列表格压在 860px 里（内容区本来有 1020px）；
     ② 表格是 auto 布局，浏览器按「谁最容易被压」随机折行，长文本被劈成两三行。
   修法：该页内容区与卡片放开宽度 → 表格改 `.data-table.fixed`（table-layout: fixed
   + colgroup 定宽 + nowrap）。窄窗口不强行压缩，改为容器横向滚动，保证「一格一行」。 */
/* 宽度上限 1180px：够 8 列舒展，又不至于把「负责门店」这类列拉到 270px 一片空白。
   1360px 是上一版的过度放开 —— 宽屏下表格被摊成 1248px，看着松垮（2026-10-20 第 3 项）。 */
#page-manage { max-width: 1180px; }
#page-manage .member-list > .card { max-width: none; }
.member-list { overflow-x: auto; overscroll-behavior-x: contain; }
/* 960px 是「8 列各显示得下」的下限；按新列宽分配，1366 宽的办公本（可用 986px）
   也能整张看全，只有 1280 及更窄才需在表内横向拖。滚动条只出现在表格里，不带动整页。 */
.member-table { min-width: 960px; }
/* 唯一要折行的地方：「你的档案还没有归属小组…」整行提示 */
.member-table td.warn { white-space: normal; word-break: break-word; }

.st-badge {
  display: inline-block; padding: 1px 8px; font-size: 12px; border-radius: 999px;
}
.st-badge.on { color: #1677FF; background: #F0F4FF; }
.st-badge.off { color: #A8AEB8; background: #F5F6FA; }
.linklike.danger { color: #F54A45; }
.linklike.warn { color: #B25F00; }
/* 「未配置」也要是可点的入口（2026-10-18）：颜色轻一点，但仍要看出能点 */
.linklike.muted-link { color: #8A9099; }
.linklike.muted-link:hover { color: #1677FF; }

/* 房型耗材标准清单弹窗（2026-10-18 第 1 项）：一个房型多条耗材，列表维护 */
.wb-dialog.std-type-dialog { width: 680px; max-height: 84vh; overflow: auto; }
.wb-dialog.std-type-dialog .f-hint { margin: 0 0 10px; font-size: 12px; color: #A8AEB8; }
.wb-dialog.std-type-dialog .toolbar { margin: 0 0 10px; }
.wb-dialog.std-type-dialog .data-table { margin-top: 4px; }
.wb-dialog.std-type-dialog .wb-dialog-actions { margin-top: 14px; }

/* ---- 批量添加耗材弹窗（2026-11-18 用户需求：一次加多种商品）---- */
.wb-dialog.std-batch-dialog { width: 680px; max-height: 84vh; overflow: auto; }
.wb-dialog.std-batch-dialog .f-hint { margin: 0 0 12px; font-size: 12px; color: #A8AEB8; }
.wb-dialog.std-batch-dialog label.field { display: block; margin-bottom: 12px; }
.wb-dialog.std-batch-dialog .std-pick-head { font-size: 13px; margin-bottom: 6px; }
.wb-dialog.std-batch-dialog .std-pick-list {
  max-height: 200px; overflow: auto; border: 1px solid #E3E6EB; border-radius: 6px;
  padding: 6px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px;
}
.wb-dialog.std-batch-dialog .std-pick-item { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.wb-dialog.std-batch-dialog .std-qty-box { margin: 12px 0 4px; }
.wb-dialog.std-batch-dialog .std-qty-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0; }
.wb-dialog.std-batch-dialog .std-qty-row input { padding: 4px 8px; border: 1px solid #D6DAE0; border-radius: 4px; }
.wb-dialog.std-batch-dialog .wb-dialog-actions { margin-top: 14px; }

/* ---- 「基础数据 → 房型标准」字典表（2026-10-27h）----
   现场反馈：切到英文 / 越南语后这张表「排版不佳」。
   根因两层，都跟语种有关，跟数据无关：
     ① `.card { max-width: 860px }` + 左右 24px 内边距 → 7 列只剩 812px；
        中文表头是 2~4 个汉字（「耗材标准」= 52px），换成英文会长一倍；
     ② 原表是 auto 布局 + `word-break: break-all`：「耗材标准」在字典里被拆成
        Consumables + Standard 两段粘成一个**不能断行的长词**，浏览器只能把整列
        撑宽或把别列压成两三行，于是行高参差、文字错位。
   修法：卡片放开 860px 上限（跟随 1020px 内容区）→ 表格可用 908px；
        表格改 `.data-table.fixed` + colgroup 定宽 + nowrap，长文本走省略号；
        低于 860px 的窗口不在表内压缩，改为 `.rt-wrap` 横向滚动。 */
#master-body > .rt-card { max-width: none; }
#master-body .rt-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
#master-body .rt-table { min-width: 860px; }

/* ---- 「基础数据 → 宝寓绑定」两张表（2026-10-28a）----
   「宝寓房号」列要放「121019 · 大床001（宝寓已停用）」这类长串，沿用 2026-10-27h 的口径：
   卡片放开 860px 上限 + `.data-table.fixed` + colgroup 定宽 + nowrap，
   窄窗口不压缩内容，改由 `.by-wrap` 横向滚动。 */
#master-body .by-card { max-width: none; }
#master-body .by-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
#master-body .by-table { min-width: 900px; }
/* 工具栏里的「只看未绑定」勾选框：跟 hint 同号字，垂直居中对齐 */
.toolbar label.hint { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.wb-dialog.std-type-dialog .std-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.wb-dialog.std-type-dialog .std-table { min-width: 560px; }

/* 表单对话框（B2） */
.wb-dialog.wb-form { width: 520px; max-height: 84vh; overflow: auto; }
/* 个人档案弹窗（2026-11-15 需求4）：编辑/权限集/任职记录三页签合一 */
.wb-dialog.wb-profile-dialog { width: 560px; max-height: 86vh; display: flex; flex-direction: column; }
.wb-dialog.wb-profile-dialog h3 { flex: 0 0 auto; }
.wb-dialog.wb-profile-dialog .tabs { flex: 0 0 auto; margin-bottom: 12px; }
.wb-dialog.wb-profile-dialog .profile-body { flex: 1 1 auto; overflow-y: auto; min-height: 120px; }
.wb-dialog.wb-profile-dialog .profile-body .wb-dialog-actions { margin-top: 14px; }
.wb-form .field { margin-bottom: 12px; }
.wb-form .f-hint { margin: -6px 0 10px; font-size: 12px; color: #A8AEB8; }
.wb-form .field input[type=checkbox] { margin-right: 6px; }

/* ---- 考勤点「地图选点」弹窗（2026-12-02 考勤深化）----
   经纬度并排 + 地图选点按钮；地图弹窗承载腾讯地图 SDK 实例 */
.f-loc { display: flex; gap: 10px; margin-bottom: 4px; }
.f-loc .field { flex: 1 1 auto; margin-bottom: 0; }
.f-pick-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.f-pick-row .pick-map { margin: 0; flex: 0 0 auto; }
.f-pick-tip { font-size: 12px; color: #A8AEB8; }
.f-map-addr { margin: 2px 0 12px; font-size: 12px; color: #2F6FED; }
.wb-dialog.wb-map-dialog { width: 620px; max-width: 92vw; padding: 20px 22px; }
.wb-map-box { width: 100%; height: 380px; margin: 4px 0 10px; border: 1px solid #D0D3D9; border-radius: 10px; background: #F5F6F7; display: flex; align-items: center; justify-content: center; color: #8A8F99; font-size: 13px; overflow: hidden; }
.wb-map-tip { margin: 0 0 12px; font-size: 12px; color: #A8AEB8; }

/* ---- 关键词联想输入框（combobox，2026-10-18）----
   商品档案几百条、供应商几十条，原生 select 翻找太慢，改成「输入即筛」。
   弹层挂 position:absolute，父级 .combo 必须 position:relative；层级要压过表格与卡片。 */
.combo { position: relative; flex: 1 1 auto; min-width: 180px; }
.combo-input {
  width: 100%; box-sizing: border-box;
  padding: 7px 10px; font-size: 13px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff;
}
.combo-input:focus { outline: none; border-color: #3370FF; box-shadow: 0 0 0 2px rgba(51, 112, 255, .12); }
.combo-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
  max-height: 248px; overflow: auto;
  background: #fff; border: 1px solid #E5E6EB; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31, 35, 41, .12);
}
.combo-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 10px; font-size: 13px; color: #1F2329;
}
.combo-item.is-active { background: #F2F6FF; }
.combo-item .combo-label { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-item .combo-hint { flex: 0 0 auto; font-size: 12px; color: #A8AEB8; }
.combo-empty { padding: 10px; font-size: 12px; color: #A8AEB8; }

/* ---- 批量安排保洁任务（2026-10-15 第 3 项）----
   房间多，弹窗要能滚；但滚的是**房间列表**，标题/门店/清洁师/提交按钮必须常驻可见，
   否则勾到一半想换门店还得先滚回顶部。所以只给 .batch-rooms 限高滚动。
   2026-10-18：保洁类型与特殊要求改为**逐房设置**（原来整批统一），一行放不下，
   所以 .batch-line 允许换行，特殊要求独占第二行。 */
.wb-dialog.batch-dialog { width: 780px; max-height: 86vh; overflow: auto; }
.batch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.batch-row .batch-label { font-size: 13px; color: #646A73; }
.batch-row select {
  padding: 7px 10px; font-size: 13px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff;
}
.batch-rooms {
  max-height: 46vh; overflow: auto;
  padding: 6px 10px; border: 1px solid #E5E6EB; border-radius: 10px;
}
.batch-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #F2F3F5;
}
.batch-line:last-child { border-bottom: none; }
.batch-line input[type=checkbox] { margin: 0; flex: 0 0 auto; }
/* 勾选框 + 房间名包在内层 <label> 里（点名字也能勾）；清洁师下拉必须留在 label 之外，
   否则点下拉会被浏览器当成「激活 label 的第一个控件」而反选复选框。 */
.batch-line .batch-pick {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 auto; min-width: 150px; cursor: pointer;
}
.batch-line .batch-room { min-width: 100px; }
.batch-line select { flex: 1 1 auto; max-width: 260px; }
/* 逐房保洁类型（2026-10-18）：比清洁师下拉窄一档，别把一行挤爆 */
.batch-line select.batch-type { flex: 0 0 128px; max-width: 128px; }
/* 逐房特殊要求：独占第二行，与房间名左对齐（.batch-pick 的宽度 + gap 让出缩进感） */
.batch-line .batch-note {
  flex: 0 0 100%; display: flex; align-items: center; gap: 8px;
  margin: 2px 0 2px 0; padding-left: 2px;
}
.batch-line .batch-note input {
  flex: 1 1 auto; padding: 6px 10px; font-size: 12px; font-family: inherit;
  border: 1px solid #E5E6EB; border-radius: 8px; background: #FCFCFD;
}
.batch-line .batch-note input:focus { outline: none; border-color: #3370FF; background: #fff; }
.batch-line .batch-note .batch-note-label { flex: 0 0 auto; font-size: 12px; color: #A8AEB8; }
/* 房间没指定清洁师 → 这一行必须手选，标红（2026-10-16b 第 3 项） */
.batch-line select.is-missing { border-color: #F54A45; background: #FFF7F7; }
.batch-line .batch-done { margin-left: auto; color: #A85B00; font-size: 12px; }
.batch-line.is-done { color: #A8AEB8; background: #FAFBFC; }
.batch-line.is-done select { color: #A8AEB8; }

/* 房间行按钮（历史上是「加入 / 已加入」，现仅保留通用控件缩进规则） */
.batch-line .linklike { flex: 0 0 auto; }

/* ---- 已勾选栏（2026-11-02 第二十一轮）----
   恢复「可勾选多间房」的列表（上一轮的「＋ 加入 / 待选区 chips」撤销）：
   勾一间 → 它固定排在房间列表最前面并保持打勾 → 改「房间筛选」继续勾下一间。
   顶栏只承担「勾了几间 + 清空」；行本身在 .batch-rooms 里（见 drawRooms ①）。 */
.batch-picked {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 8px;
  border: 1px solid #C9DDFF; border-radius: 10px; background: #F0F6FF;
}
.batch-picked-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  flex: 1 1 auto; min-width: 0;
}
.batch-picked .batch-label { font-size: 13px; color: #1F5FA5; font-weight: 600; }
.batch-picked .linklike { flex: 0 0 auto; margin-left: auto; }
/* 行内右侧的门店名：关键词是跨门店检索的，勾之前得知道这间在哪家店 */
.batch-line .batch-line-store { margin-left: auto; font-size: 12px; color: #8A9099; }
/* 已勾选的行：淡蓝底 + 房名加重，一眼看出「这些已经进了这批」 */
.batch-line.is-picked { background: #F0F6FF; }
.batch-line.is-picked .batch-room { color: #1F5FA5; font-weight: 600; }

/* 单位换算对话框（B2） */
.unit-list { margin-bottom: 12px; }
.unit-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px dashed #F2F3F5;
}
.unit-row:last-child { border-bottom: none; }
.unit-row .unit-name { flex: 0 0 140px; }
.unit-row input { width: 110px; padding: 6px 10px; border: 1px solid #D0D3D9; border-radius: 6px; }
.unit-row .linklike { margin: 0 0 0 auto; }
.unit-add { display: flex; align-items: center; gap: 8px; padding: 10px; background: #FAFBFC; border-radius: 8px; }
.unit-add input { padding: 7px 10px; border: 1px solid #D0D3D9; border-radius: 8px; }
.unit-add input[type=text] { width: 120px; }
.unit-add input[type=number] { width: 90px; }
.unit-add button { margin: 0; }

/* 价格库（B2） */
.price-input { width: 110px; padding: 6px 10px; border: 1px solid #D0D3D9; border-radius: 6px; }

/* ============ B3 单据中心 ============ */
.st-badge.pend { color: #D46B08; background: #FFF3E8; }
.data-table td.summary { max-width: 340px; font-size: 12px; color: #4E5261; }
.data-table.mini { margin: 6px 0; }
.data-table.mini th, .data-table.mini td { padding: 6px 8px; font-size: 12px; }
tr.detail-tr > td { background: #FAFBFC; }
.wb-dialog.wide { width: 640px; }
.doc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #F2F3F5; }
.doc-line select { max-width: 240px; padding: 7px 10px; border: 1px solid #D0D3D9; border-radius: 8px; }
.doc-line input.num { width: 110px; padding: 7px 10px; border: 1px solid #D0D3D9; border-radius: 8px; }
.doc-line .linklike { margin: 0 0 0 auto; }
.doc-line.room { border-bottom: none; padding-top: 0; }
.doc-line.room select { max-width: 240px; }
.grn-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #F2F3F5; }
.grn-line .grn-name { flex: 1; }

/* ---- 布草间（2026-10-18 第七轮）----
   五态看板与小程序同构：干净在库 / 在车 / 在房 / 待洗 / 在洗。
   「待洗」「在洗」用暖色底 —— 这两个态是「欠着的活」，不是可用库存。 */
.linen-stat { display: flex; gap: 10px; margin: 12px 0 6px; }
.linen-stat .cell {
  flex: 1; padding: 12px 8px; text-align: center;
  background: #F7F8FA; border-radius: 10px;
}
.linen-stat .cell.warn { background: #FFF7EC; }
.linen-stat .num { font-size: 20px; font-weight: 600; color: #1D2129; }
.linen-stat .cell.warn .num { color: #B25E00; }
.linen-stat .cap { margin-top: 2px; font-size: 12px; color: #86909C; }
.grn-line input.num, .grn-line input[type=number] {
  width: 110px; padding: 7px 10px; font-family: inherit; font-size: 13px;
  border: 1px solid #D0D3D9; border-radius: 8px;
}
.grn-line input[type=text] {
  padding: 7px 10px; font-family: inherit; font-size: 13px;
  border: 1px solid #D0D3D9; border-radius: 8px;
}
.data-table.mini td input.num {
  width: 100px; padding: 5px 8px; font-family: inherit; font-size: 12px;
  border: 1px solid #D0D3D9; border-radius: 6px;
}
.grn-line input.num { width: 90px; padding: 6px 10px; border: 1px solid #D0D3D9; border-radius: 6px; }

/* ============ B4 盘点与报废 ============ */
.wb-dialog.wb-xwide { width: 860px; }
.item-picker {
  max-height: 220px; overflow: auto; padding: 8px 10px;
  background: #FAFBFC; border: 1px solid #E5E6EB; border-radius: 8px;
}
.pick-item { display: inline-flex; align-items: center; gap: 4px; width: 46%; margin: 3px 2% 3px 0; font-size: 13px; }
.doc-line.fb select { max-width: 200px; }
.data-table.mini select {
  max-width: 150px; padding: 5px 8px; font-size: 12px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 6px; background: #fff;
}
.data-table.mini select:disabled { background: #F5F6FA; color: #A8AEB8; }
.data-table td.diff-cell { font-variant-numeric: tabular-nums; }
.data-table td.diff-cell.warn { color: #D46B08; font-weight: 600; }

/* ============ B5 看板与报表 ============ */
.tbl-wrap { overflow-x: auto; }
.report-body { margin-top: 4px; }

/* ---- 「数据处理」两张表（2026-10-27）----
   现场反馈：「数据处理」菜单里的几个表格排版杂乱，一格显示两行；保洁效率分析表右侧
   与上方说明文字不齐（希望加宽到与文字右边缘持平）。

   根因两条，和 2026-10-15「请购 / 商品与单位」那轮完全一样：
     ① `.data-table` 是 auto 布局且单元格允许 break-all → 浏览器按「哪列最容易被压」
        随机折行，13 列的效率表连「标准次数」都会掉到第二行；
     ② 表格外套的 `.card` 有 `max-width: 860px` + 左右 24px 内边距，而上方那几行
        说明文字直接挂在内容区（最宽 1020px）里 → 右边缘差出 96px 以上，看着没对齐。

   修法三件事：
     · 本页内容区放宽到 1180px（13 列才排得开，与 #page-manage 同口径）；
     · 本页所有卡片取消 860px 上限，跟随内容区宽度；
     · 放表格的卡片再加 `.table-card`：左右内边距归零、`overflow: hidden` 收圆角，
       留白改由表格首/末列的内边距承担 —— 这样**表格右边缘与上方文字右边缘严格重合**，
       而不是被卡片内边距再往里缩 24px。
   窄窗口不强行压缩：`.tbl-wrap` 内部横向滚动，保证「一格一行」不被破坏。 */
#page-dataops { max-width: 1180px; }
#dataops-body > .card { max-width: none; }
#dataops-body > .card.table-card { padding-left: 0; padding-right: 0; overflow: hidden; }
#dataops-body .table-card .data-table th:first-child,
#dataops-body .table-card .data-table td:first-child { padding-left: 20px; }
#dataops-body .table-card .data-table th:last-child,
#dataops-body .table-card .data-table td:last-child { padding-right: 20px; }
/* 表格自身的下限宽度：低于这个宽度就在容器里横向滚动，而不是把文字压成两行 */
#dataops-body .do-table-history { min-width: 880px; }
/* 2026-11-04：效率表加了「开荒次数 / 开荒平均」两列（13 → 15），下限同步放宽到 1140px */
#dataops-body .do-table-efficiency { min-width: 1140px; }

/* ---- 通用「宽表页」口径（2026-10-27i）----
   现场反馈：「巡检记录」「星级评定」等表切到英文 / 越南语后排版混乱。

   根因与 2026-10-15 / 10-27 两次完全同源，只是这次暴露在所有列表页：
     ① 表头从 2~4 个汉字变成十几个拉丁字母（Inspection records / Star rating），
        `table-layout:auto` + `word-break:break-all` 让浏览器按「哪列最容易被压」
        随机折行，同一行里 3 行 / 1 行混排；
     ② `.card{max-width:860px}` 把 8~11 列压在 860px 内（内容区本来有 1020px）。

   修法：页面加 `.page-wide`（内容区 1240px + 卡片取消上限），表卡加 `.table-card`
   （左右内边距归零 → 表格右缘与上方说明文字右缘重合，首末列补 20px），
   表格本体 `.data-table.fixed` + colgroup 定宽，窄窗口在 `.tbl-wrap` 里横向滚动。 */
.page-wide { max-width: 1240px; }
.page-wide .card { max-width: none; }
.card.table-card { padding-left: 0; padding-right: 0; overflow: hidden; }
.card.table-card .data-table th:first-child,
.card.table-card .data-table td:first-child { padding-left: 20px; }
.card.table-card .data-table th:last-child,
.card.table-card .data-table td:last-child { padding-right: 20px; }
.tbl-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
/* 各表的下限宽度：低于此宽度就在容器里横向滚动，而不是把「巡检人 / Photos」压成两行。
   数值按「该表列数 × 平均最小可读宽度」给，够 1366 宽办公本整张看全。 */
.insp-table { min-width: 900px; }
.insp-agg-table { min-width: 520px; }
.assess-table { min-width: 980px; }
.st-table { min-width: 960px; }
.fb-table { min-width: 1080px; }
.disc-table { min-width: 1080px; }
.grn-table { min-width: 720px; }
.tr-table { min-width: 720px; }
.dd-table { min-width: 780px; }
.price-table { min-width: 780px; }
.cancel-table { min-width: 600px; }



.stat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.stat {
  flex: 1 1 132px; min-width: 110px; padding: 12px 14px;
  background: #F7F8FA; border: 1px solid #EDEEF2; border-radius: 10px;
}
.stat-v {
  font-size: 20px; font-weight: 600; color: #1F2329;
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.stat-k { margin-top: 2px; font-size: 12px; color: #8A9099; }
.data-table .up { color: #D93026; font-weight: 600; }
.data-table .down { color: #17803D; font-weight: 600; }
.data-table .flat { color: #8A9099; }
.toolbar .lbl { font-size: 13px; color: #646A73; }
.toolbar .chk { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #4E5261; }
/* 工具条控件的盒高必须钉死（2026-10-27 第 i+1 轮）：
   现场反馈「星级评定页的『评估月份』和『分组』两个选择栏高度不一致」。

   根因：两控件用的不是同一套高度算法 ——
     · 「评估月份」是 input[type=month]，内容区高度由浏览器按字体度量自算
       （14px 字号下约 17px），它**不接受** line-height；
     · 「分组」是原生 select，会继承 body 的 line-height: 1.6（22.4px）。
   同样 padding: 8px 10px，叠出来一个是 ~35px、一个是 ~40px，并排就高低不齐。

   只在 margin/line-height 上打补丁会在换字号、换语言（en/vi 字串更长）时复发，
   所以这里把三种工具条控件的高度钉成同一个 40px（与 .toolbar button 齐平），
   上下内边距归零，行高交给内容区，谁算内容高都不再影响外框。 */
.toolbar input.date-input,
.toolbar input.num-input,
.toolbar select.sel-input {
  width: auto; height: 40px; padding: 0 10px;
  font-size: 14px; font-family: inherit; line-height: 38px;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff; color: #1F2329;
}
/* 月份框内部的日期编辑区是浏览器私有渲染，行高写死会把「2026-10」挤偏：
   只保留统一外框高度，垂直居中交回浏览器 */
.toolbar input.date-input[type=month] { line-height: normal; }
.toolbar input.num-input { width: 84px; }
/* 操作日志筛选（2026-10-27k）：对象 / 动作两个下拉给最小宽度。
   最长选项是「仓库 / 库位」「耗材商品」，切到 en / vi 后更长，默认宽度会把文字挤成省略。 */
#audit-table { min-width: 200px; }
#audit-action { min-width: 140px; }
/* 保洁效率分析的房型筛选（2026-10-27m）：房型名长短差异大（大床房 / 亲子套房 / 两室一厅），
   给个最小宽度，切 en / vi 后也不至于挤成省略号。 */
#eff-roomtype { min-width: 130px; }

/* ============ 首页（2026-10-07 重做）============ */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-head-main h2 { margin: 0 0 4px; }
.dash-head-main .hint { margin: 0; }
.dash-who { display: flex; gap: 8px; flex-wrap: wrap; }
/* 首页头像（2026-10-08 第十三/十四轮）：欢迎词左侧圆形头像，与小程序同一份
   profiles.avatar_path（签名地址显示；无头像落姓名首字圆形兜底）。
   第十四轮起头像可点更换：上传 → 受信函数 web_set_avatar 回写同一列。 */
.dash-id { display: flex; align-items: center; gap: 12px; }
.dash-avatar-btn {
  position: relative; flex: none; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent;
  cursor: pointer; line-height: 0;
}
.dash-avatar-btn:hover .dash-avatar,
.dash-avatar-btn:hover .dash-avatar-fb { box-shadow: 0 0 0 3px rgba(47, 111, 237, .28); }
/* 2026-10-08 第十五轮：去掉右下角「改」字角标（用户要求不显示任何文字角标）。
   头像整体仍可点击更换（hover 时的光圈提示保留）。 */
.dash-avatar { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.dash-avatar-fb {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #2F6FED; color: #fff; font-size: 18px; font-weight: 500;
}
.chip.warn { color: #A85B00; background: #FFF4E5; }

.dash-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
/* 首页两张卡片必须与上方指标卡同宽。
   .card 默认 max-width: 860px 是给登录页 / 表单卡用的，放在 1020px 的内容区里
   会与 .dash-metrics（占满整行）右边缘差 96px —— 就是「快捷入口 / 库存速览
   边框与报废待办不在一条线上」的原因。 */
#page-home > .card { max-width: none; }
.metric {
  background: #fff; border: 1px solid #E7E9EE; border-radius: 12px; padding: 16px 18px;
  cursor: pointer; transition: box-shadow .15s ease, transform .15s ease;
}
.metric:hover { box-shadow: 0 6px 18px rgba(23, 26, 31, .08); transform: translateY(-1px); }
.metric-val { font-size: 28px; font-weight: 700; line-height: 1.1; color: #171A1F; font-variant-numeric: tabular-nums; }
.metric-val.hot { color: #D93026; }
.metric-label { margin-top: 6px; font-size: 13px; color: #646A73; }

.dash-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.entry {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border: 1px solid #E7E9EE; border-radius: 10px; background: #FAFBFC;
  font-size: 14px; color: #171A1F; cursor: pointer; font-family: inherit; text-align: left;
}
.entry:hover { border-color: #2F6FED; background: #F3F7FF; }
.entry-icon { font-size: 16px; }

.glance-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px dashed #EDEFF3; }
.glance-row:last-child { border-bottom: none; }
.glance-label { font-size: 14px; color: #4E5261; }
.glance-val { font-size: 16px; font-weight: 600; color: #171A1F; font-variant-numeric: tabular-nums; }
.glance-val.warn { color: #A85B00; }
.glance-val.danger { color: #D93026; }

@media (max-width: 900px) {
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ================= 2026-10-07 第 6 项：从小程序搬来的五个模块 ================= */

/* chip 语义变体（此前只有 .chip.warn） */
.chip.ok { color: #1F7A45; background: #EAF7F0; }
.chip.danger { color: #D93026; background: #FDEDEC; }
/* 2026-11-04 用户第 7 条：同房当日多次保洁的次序标（首次 / 二次 / 三次…），统一橙色系 */
.chip.seq { color: #A85B00; background: #FFF4E5; border-color: #F5DFA6; }
.chip.seq.rep { color: #C4320A; background: #FFF1E8; border-color: #FFBB96; font-weight: 600; }

/* 表格单元格语义色 */
.data-table td.warn { color: #A85B00; font-weight: 600; }
.data-table td.danger { color: #D93026; font-weight: 600; }

/* 保洁任务：三列看板 */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.kanban-col { min-height: 120px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; color: #171A1F; }
.kanban-count { min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 11px; background: #F0F2F5; color: #646A73; font-size: 12px; font-weight: 600; }
.task-card { border: 1px solid #E6E8EC; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #FFFFFF; }
.task-card:last-child { margin-bottom: 0; }
.task-room { font-weight: 600; color: #171A1F; }
.task-sub { font-size: 12px; color: #8A9099; margin-top: 2px; }
.task-who { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.task-time { font-size: 12px; color: #646A73; margin-top: 6px; }
.task-ops { margin-top: 8px; display: flex; gap: 6px; align-items: center; }

/* 巡检详情弹窗 */
.detail-list { margin-bottom: 10px; }
.detail-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #EDEFF3; font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { flex: none; width: 84px; color: #8A9099; }
.detail-val { color: #171A1F; word-break: break-all; }
.ded-list { margin: 6px 0 10px 18px; padding: 0; font-size: 13px; color: #4E5261; }
.ded-list li { margin: 3px 0; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.photo-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid #E6E8EC; background: #F7F8FA; }

/* ---- 巡检照片（2026-10-16 本轮）----
   照片成排后弹窗会变高，必须能滚；缩略图统一「可点放大」的手型光标。 */
.wb-dialog.detail-dialog { width: 680px; max-height: 86vh; overflow: auto; }
.photo-thumb { cursor: zoom-in; }
/* 取不到地址的那张：给灰底占位而不是留空，避免被误读成「没有照片」 */
.photo-thumb.photo-broken {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #A8ADB5; text-align: center; padding: 0 6px; line-height: 1.35;
  border-style: dashed; cursor: default;
}
.photo-cap { margin: 5px 0 -2px; font-size: 12px; color: #8A9099; }
.ded-item { line-height: 1.5; }
.ded-desc { margin-top: 2px; font-size: 12px; color: #8A9099; }

/* 大图查看器（点缩略图打开）：黑底、居中、左右切换、点空白 / ✕ / Esc 关闭 */
.photo-viewer {
  position: fixed; inset: 0; z-index: 60; background: rgba(16, 18, 22, .88);
  display: flex; align-items: center; justify-content: center;
}
.photo-viewer-img { max-width: 86vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.photo-viewer-cap {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  color: #E6E8EC; font-size: 12px;
}
.photo-viewer-close {
  position: absolute; top: 18px; right: 22px; width: 34px; height: 34px; padding: 0;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 15px; line-height: 34px; cursor: pointer;
}
.photo-viewer-close:hover { background: rgba(255, 255, 255, .28); }
.photo-viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 62px; padding: 0; border: none; border-radius: 8px;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px;
  line-height: 62px; cursor: pointer;
}
.photo-viewer-nav:hover { background: rgba(255, 255, 255, .26); }
.photo-viewer-nav.prev { left: 20px; }
.photo-viewer-nav.next { right: 20px; }

/* 角色权限勾选 */
/* 权限集弹窗（花名册人员级权限增减）：内容超高时弹窗整体可滚动，避免顶/底被裁 */
.wb-perm-dialog {
  width: 640px;
  max-height: 82vh;
  overflow-y: auto;
}
.perm-box { margin-top: 4px; }
.perm-group { margin-bottom: 14px; }
.perm-group h4 { margin: 0 0 8px; font-size: 13px; color: #646A73; font-weight: 600; }
.perm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; }
.perm-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4E5261; }
.perm-item .hint { font-size: 11px; color: #A8ADB5; }

@media (max-width: 900px) {
  .kanban { grid-template-columns: 1fr; }
  .perm-grid { grid-template-columns: 1fr; }
}

/* ============ 星级评定 · 月度评估表（含差评明细，2026-10-07 第八轮）============ */

/* 顶部统计条复用首页指标卡的样式，但不可点击 */
.stat-row .metric { cursor: default; }
.stat-row .metric:hover { box-shadow: none; transform: none; }

/* 评估表弹窗：两列输入 + 差评明细区 */
.wb-dialog.assess-dialog { width: 720px; }
.assess-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; margin-bottom: 10px; }

.cc-block { border-top: 1px solid #EDEFF3; margin-top: 6px; padding-top: 10px; }
.cc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc-head h4 { margin: 0; font-size: 14px; }
.cc-list { display: grid; gap: 8px; margin: 8px 0; }
.cc-item { border: 1px solid #EDEFF3; border-radius: 10px; padding: 10px 12px; background: #FAFBFC; }
.cc-item > input[type=text] {
  width: 100%; padding: 8px 10px; font-size: 13px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 8px; background: #fff;
}
.cc-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cc-thumb {
  position: relative; width: 84px; height: 84px; border-radius: 8px;
  border: 1px solid #E6E8EC; background: #F7F8FA; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-thumb .photo-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0;
  line-height: 1; border: none; border-radius: 50%;
  background: rgba(23, 26, 31, .6); color: #fff; font-size: 12px; cursor: pointer;
}
.cc-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.cc-ops .linklike { font-size: 13px; }

@media (max-width: 900px) {
  .assess-grid { grid-template-columns: 1fr; }
  .wb-dialog.assess-dialog { width: auto; }
}

/* ---------- 主题专项报告（2026-10-07 第九轮） ---------- */
.flex1 { flex: 1; min-width: 0; }
.list-item { padding: 10px 0; border-bottom: 1px solid #F0F1F4; }
.list-item:last-child { border-bottom: none; }
.report-item { display: flex; align-items: center; gap: 12px; }
.item-name { font-size: 14px; color: #1F2329; font-weight: 500; }
.muted { margin-top: 2px; font-size: 12px; color: #8A9099; }
/* 保洁任务统计分析分组标题（2026-11-20） */
.group-title { margin: 22px 0 8px; font-size: 14px; font-weight: 600; color: #1F2329; }

/* ============ 清洁车库位与绑定（2026-10-11b，与小程序同口径）============ */
/* 绑定下拉：紧凑一点，避免表格被撑开 */
.data-table.cart-table select {
  max-width: 190px; padding: 5px 8px; font-size: 12px; font-family: inherit;
  border: 1px solid #D0D3D9; border-radius: 6px; background: #fff;
}
.data-table.cart-table select:disabled { background: #F5F6FA; color: #A8AEB8; }
/* 「非本组」标记：与小程序 tag-orange 同色系（已绑的人不在候选里时提示） */
.tag-warn {
  display: inline-block; padding: 1px 6px; font-size: 11px; line-height: 16px;
  color: #A85B00; background: #FFF7E6; border: 1px solid #FFE0A3; border-radius: 4px;
}

/* ============ 批量导入（2026-10-15 第 5 项：商品 / 供应商一次性批量上传）============ */
/* 粘贴框：Excel 复制整块粘进来，等宽 + 限高内滚，别把对话框撑破 */
.import-textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 132px;
  padding: 9px 12px; margin-bottom: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6;
  color: #1F2329; background: #fff;
  border: 1px solid #D0D3D9; border-radius: 8px; resize: vertical;
}
.import-textarea:focus { outline: none; border-color: #2F6FED; }
.import-status { margin: 6px 0 2px; }
/* 预览区：行数可能多，限高内滚 */
.import-preview { max-height: 232px; overflow: auto; }
.import-preview .import-table { margin-bottom: 0; }
.import-table th, .import-table td { white-space: nowrap; }
/* 表头认不出来时的手动映射行（2026-10-19）：一行一个必填列，右侧下拉选列 */
.import-map:empty { display: none; }
.import-map { margin: 4px 0 10px; padding: 8px 10px; border-radius: 8px;
  background: #FFF7E6; border: 1px solid #FFE0A3; }
.import-map-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.import-map-label { font-size: 13px; color: #8A5A00; }
.import-map select { min-width: 200px; height: 30px; border-radius: 6px;
  border: 1px solid #D0D3D9; background: #fff; color: #1F2329; font-size: 13px; }
.import-map .f-hint { margin: 4px 0 0; }
/* 整体失败的原文块：等宽、可选中、限高 */
.import-err { max-height: 160px; overflow: auto; margin: 8px 0 10px;
  padding: 10px 12px; border-radius: 8px; background: #FDECEC; color: #B42318;
  border: 1px solid #F5C2C0; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ================= 审批流程可视化（2026-10-20a）=================
   四类单据的审批链画成横向步骤条：圆形序号 + 节点名 + 角色/指定人 +
   在途单数 + 行内操作（上移/下移/编辑/移除）。
   卡片本身沿用 .card；这里只补步骤条与「点名审批人」选择器的样式。 */
.flow-intro { max-width: 860px; }
.flow-tabs { margin-bottom: 14px; }
.flow-biz-hint { margin: -6px 0 14px; font-size: 12px; color: #8A9099; }
.flow-card { max-width: 1020px; }
.flow-card-head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.flow-card-title { display: flex; align-items: baseline; gap: 8px; }
.flow-card-title h3 { margin: 0; }
.flow-card-key { font-size: 11px; color: #A8AEB8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.flow-card-actions { display: flex; gap: 8px; }
.flow-card-actions button { padding: 4px 10px; font-size: 12px; }
.flow-steps { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; }
.flow-step { display: flex; gap: 8px; align-items: flex-start; min-width: 200px;
  flex: 1 1 200px; padding: 12px; background: #F7F8FA;
  border: 1px solid #E5E6EB; border-radius: 10px; }
.flow-step.busy { border-color: #FFC53D; background: #FFFBF0; }
.flow-step-no { width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: #2F6FED; color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.flow-step-body { min-width: 0; flex: 1; }
.flow-step-name { font-weight: 500; margin-bottom: 2px; }
.flow-step-role { font-size: 12px; color: #646A73; }
.flow-step-who { font-size: 12px; color: #8A9099; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-step-who.named { color: #2F6FED; }
.flow-step-pend { font-size: 12px; color: #D48806; margin-top: 4px; }
.flow-step-ops { display: flex; gap: 8px; margin-top: 6px; }
.flow-step-ops button[disabled] { color: #C9CDD4; cursor: default; }
.flow-arrow { align-self: center; color: #C9CDD4; font-size: 14px; }
.flow-card-foot { margin: 12px 0 0; font-size: 12px; color: #8A9099; }

/* 固定流程（请购 / 采购 / 星级评估 / 直送）：结构不可改，所以步骤卡用灰底，
   「谁能批」的说明往往是一整句话，必须允许折行 —— 截断会把关键条件吃掉 */
.flow-step.fixed { background: #FBFBFC; }
.flow-step.fixed .flow-step-who { white-space: normal; overflow: visible;
  text-overflow: clip; line-height: 1.5; }
.flow-step.fixed .flow-step-no { background: #646A73; }

/* 品类终审角色编辑块 */
.flow-role-box { margin-top: 14px; padding: 12px; background: #F7F8FA;
  border: 1px solid #E5E6EB; border-radius: 10px; }
.flow-role-title { font-weight: 500; margin-bottom: 2px; }
.flow-role-hint { font-size: 12px; color: #8A9099; margin: 0 0 10px; }
.flow-role-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.flow-role-cell { flex: 1 1 220px; }
.flow-role-save { margin-top: 10px; }
.flow-role-locked { margin: 8px 0 0; font-size: 12px; color: #A8AEB8; }

/* 节点编辑弹窗里的表单行（与 ui.formDialog 的 .field 同视觉，但这里要横排标签） */
.f-row { margin-bottom: 12px; }
.f-row-col { display: block; }
.f-label { display: block; font-size: 12px; color: #646A73; margin-bottom: 3px; }
.f-input { width: 100%; padding: 7px 10px; border: 1px solid #D0D3D9; border-radius: 6px;
  font-size: 13px; box-sizing: border-box; font-family: inherit; background: #fff; color: #1F2329; }
.f-input:focus { outline: none; border-color: #2F6FED; }
.flow-pick-tools { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; }
.flow-pick-find { flex: 1; }
.flow-pick-count { margin: 0; white-space: nowrap; font-size: 12px; color: #8A9099; }
.flow-pick-list { max-height: 240px; overflow: auto; border: 1px solid #E5E6EB;
  border-radius: 8px; padding: 4px 6px; }
.flow-pick-item { display: flex; align-items: center; gap: 8px; padding: 5px 4px;
  font-size: 13px; cursor: pointer; border-radius: 6px; }
.flow-pick-item:hover { background: #F2F6FF; }
.flow-pick-name { font-weight: 500; }
.flow-pick-role { color: #646A73; font-size: 12px; }
.flow-pick-store { margin-left: auto; color: #A8AEB8; font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }

/* ==========================================================================
   2026-10-29c · 保洁任务：门店铺分组 / 房态格 / 保洁类型标签
   ========================================================================== */

/* 安排弹窗里的门店分组头：一家店一块，页面上先看清「这家店还剩几间没排」 */
.batch-store-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px 7px; margin-top: 6px;
  border-bottom: 1px solid #E5E6EB;
}
.batch-store-name { font-weight: 600; color: #171A1F; }
.batch-store-count { font-size: 12px; color: #8A9099; }

/* 保洁类型标签：与「已改派」同尺寸，靠色差区分，不额外占行 */
.chip.type-standard { color: #2F6FED; background: #F0F4FF; border-color: #C9D9FB; }
.chip.type-simple { color: #A85B00; background: #FFF8E6; border-color: #F5DFA6; }
/* 开荒 / 重大保洁（2026-11-04 用户第 6 条）：紫色区别于标准蓝、简单黄 */
.chip.type-blitz { color: #6D28D9; background: #F5F0FF; border-color: #DCCDFB; }

/* 房态：按门店分组，房间是网格格子，点一下就切脏 / 净 */
.state-group { margin-bottom: 20px; }
.state-group:last-child { margin-bottom: 0; }
.state-group-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.state-group-name { font-weight: 600; font-size: 15px; color: #171A1F; }
.state-group-count { font-size: 12px; color: #8A9099; }

.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}
.state-cell {
  border: 1px solid #E5E6EB; border-radius: 10px; background: #fff;
  padding: 9px 10px; cursor: pointer; user-select: none;
  transition: transform .08s ease, box-shadow .12s ease;
}
.state-cell:hover { box-shadow: 0 2px 8px rgba(23, 26, 31, .1); transform: translateY(-1px); }
.state-cell.is-busy { opacity: .45; pointer-events: none; }
.state-name {
  font-size: 13px; font-weight: 600; color: #171A1F;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.state-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.state-tag { font-size: 11px; line-height: 1.5; padding: 1px 6px; border-radius: 6px;
  background: #F0F2F5; color: #646A73; }

/* 三态底色。脏用红（现场第一眼要抓到），净用绿，未标记用灰 —— 
   不用橙色是因为「已改派」的告警色也是橙，混在一起会误读 */
.state-cell.state-dirty { background: #FFF3F2; border-color: #FBC4C0; }
.state-cell.state-dirty .state-tag-dirty { background: #F54A45; color: #fff; }
.state-cell.state-clean { background: #F1FAF4; border-color: #BFE5CC; }
.state-cell.state-clean .state-tag-clean { background: #2BA471; color: #fff; }
.state-cell.state-unknown { background: #FAFBFC; }
.state-cell.state-unknown .state-tag-unknown { background: #E5E6EB; color: #8A9099; }

/* 宝寓侧标记：蓝底，与本地状态区分开 —— 它只读，点了也改不了宝寓 */
.state-tag.baoyu { background: #EAF2FF; color: #2F6FED; }
.state-tag.auto { background: #F0F2F5; color: #646A73; }

/* 任务小标记（2026-10-31 用户第 1 项；2026-10-31e 改版）：
   **行内 7px 圆点** —— 空心蓝环＝已安排，实心橙＝保洁中。
   原来那枚带文字的徽标（「已安排 / 保洁中」）在 4 列格子里把房名挤得很难看，
   圆点只占 7px，不遮盖任何文字；含义写在房态卡片上方的说明里，hover 也有 tooltip。 */
.task-dot { flex: none; align-self: center; width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box; }
.task-dot.task-dot-plan  { border: 1.5px solid #2F6FED; background: transparent; }
.task-dot.task-dot-doing { background: #E8833A; box-shadow: 0 0 0 2px rgba(232, 131, 58, 0.18); }
/* 2026-11-01 用户第 4 项：保洁完成 → 实心绿点 */
.task-dot.task-dot-done  { background: #2BA471; box-shadow: 0 0 0 2px rgba(43, 164, 113, 0.16); }

/* 退房边框（2026-11-01 用户第 4 项）：勾了「已退房」且还没做完。
   用 inset box-shadow 而不是 border —— border 会让 4 列网格错行。 */
.state-cell.is-checkout { box-shadow: inset 0 0 0 2px #E8833A; }

/* 安排弹窗里逐房的「已退房」复选（2026-11-01）
   它还嵌在 .batch-note 里，而 .batch-note input 是给文本框写的（padding / border / 背景），
   复选框必须单独复位，否则会被画成一个 12px 的输入框。 */
.batch-co { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 12px; color: #A85B00; white-space: nowrap; }
.batch-line .batch-note input[type=checkbox] { padding: 0; border: 0; background: none; flex: 0 0 auto; }
/* 「允许同一房间当日多次安排」开关（2026-11-01）：独立类名，不要复用 .batch-pick ——
   .batch-pick 是逐房行的静态契约（只包勾选框 + 房间名）。 */
label.batch-repeat { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.batch-done.repeat { color: #2F6FED; }

/* 任务弹窗（2026-11-01 第二轮用户第 2 项）
   看板行不再并排三个按钮，统一「＋ 调整」打开这个面板；房态格子单击也走同一条路径。
   只读信息用两列键值行，动作按钮放在 .wb-dialog-actions 里（与 formDialog 一致）。 */
.adjust-kv { margin: 4px 0 10px; }
.adjust-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #F0F1F4; font-size: 13px; }
.adjust-row:last-child { border-bottom: none; }
/* 2026-11-02 用户第 4 条：键名固定 84px 时，「当日已安排次数」7 个字放不下会被折成两行。
   改成「不换行 + 至少 84px」：短键仍与上面的行左对齐，长键自己撑开、
   把值往右推一点，而不是把整个键名折行（折行看起来像两行数据，现场就是误读的来源）。 */
.adjust-k { flex: 0 0 auto; min-width: 84px; color: #7A8090; white-space: nowrap; }
.adjust-v { flex: 1 1 0; min-width: 0; color: #1F2430; word-break: break-all; }
/* 单房间安排弹窗（2026-11-02 用户第 3 条）里的字段名 */
.field-label { display: block; margin: 10px 0 4px; font-size: 13px; color: #5A6472; }
.adjust-v.st-done { color: #2BA471; }
.adjust-v.st-in_progress { color: #C4701B; }
/* 「已退房」开关：房间级、随时可勾可撤（勾上立刻通知清洁师） */
.adjust-co { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; font-size: 13px; color: #A85B00; cursor: pointer; }
/* 特殊要求可编辑（2026-11-18）：label + 输入框 + 保存按钮并排 */
.adjust-note { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; }
.adjust-note input[type=text] { flex: 1 1 auto; min-width: 0; padding: 6px 8px; border: 1px solid #D6DAE0; border-radius: 4px; }
.btn.danger { color: #D93026; border-color: #F5C6C2; }



/* ==================== 房态页三个数据块 + 已入住方框（2026-11-01）====================
   与小程序房态页对齐：脏房 / 净房 / 保洁中三块等宽，点一下把那类房间排到最前。
   flex:1 1 0 + min-width:0 保证三块严格等分，左右两端贴齐卡片内边距 —— 不会右侧差一截。 */
.state-stats {
  display: flex;
  gap: 10px;
  margin: 4px 0 10px;
  width: 100%;
  box-sizing: border-box;
}
.state-stat {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #F7F8FA;
  cursor: pointer;
  font: inherit;
  transition: background .12s ease, border-color .12s ease;
}
.state-stat:hover { background: #EEF0F4; }
.state-stat-num { font-size: 22px; font-weight: 600; line-height: 1.1; color: #171A1F; }
.state-stat-label { font-size: 12px; color: #86909C; }
.state-stat-dirty .state-stat-num { color: #E8833A; }
.state-stat-clean .state-stat-num { color: #1A9C6B; }
.state-stat-doing .state-stat-num { color: #2B6CD4; }
.state-stat.on { border-color: #2B6CD4; background: #EEF4FF; }
.state-stat.on .state-stat-label { color: #2B6CD4; font-weight: 500; }

/* 已入住（2026-11-01e）：格子一圈**蓝色边框**，与「已退房」的橙色边框同一套画法，
   颜色不同即区分。格子里不再写「已入住」二字（用户第 2 条）——
   四个字在 4 列网格里会把房名挤成两行，而边框已经把事说清了。
   用 box-shadow 而不是 border：border 会挤动盒子尺寸，网格会错行。 */
.state-cell.is-occupied { box-shadow: inset 0 0 0 2px #2B6CD4; }

/* 同步时效条（2026-11-05b）：一行小字，正常是浅灰，停摆超过 30 分钟转橙红并加底色。
   放在工具栏下面、三块数据之上 —— 现场看房态时第一眼就能扫到。 */
.sync-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #F7F8FA;
  font-size: 12px;
  color: #86909C;
}
.sync-bar.stale {
  background: #FFF4E8;
  color: #B45309;
}
.sync-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #52C41A; flex: none;
}
.sync-bar.stale .sync-dot { background: #E8833A; }
.sync-text { flex: 1 1 auto; min-width: 0; }
.sync-manual { flex: none; color: #86909C; }
.sync-bar.stale .sync-manual { color: #B45309; }

/* 图例：与小程序同一套符号 */
.state-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 2px 0 12px;
  font-size: 12px;
  color: #86909C;
}
.state-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.state-legend-mark { display: inline-block; flex: none; }
.state-legend-mark.dot-plan {
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid #2B6CD4; box-sizing: content-box;
}
.state-legend-mark.dot-doing {
  width: 10px; height: 10px; border-radius: 50%; background: #E8833A;
}
.state-legend-mark.dot-done {
  width: 10px; height: 10px; border-radius: 50%; background: #1A9C6B;
}
.state-legend-mark.box-occ {
  width: 16px; height: 10px; border-radius: 3px;
  box-shadow: inset 0 0 0 2px #2B6CD4;
}
.state-legend-mark.box-out {
  width: 16px; height: 10px; border-radius: 3px;
  box-shadow: inset 0 0 0 2px #E8833A;
}

/* ── 单房间「安排保洁」弹窗（2026-11-02 用户第 3 条） ──────────────────────
   排版口径：标签与选项栏同一行；控件高度与字号向标签看齐；特殊要求三行；
   已退房单独一行。原来每个控件独占一行、行间塞满 12px 灰色提示语，
   一屏只能放下三个字段，看着又散又挤。 */
.wb-dialog.wb-form.f-one { width: 560px; }
.f-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.f-row-top { align-items: flex-start; }
.f-k {
  flex: 0 0 auto;
  min-width: 92px;
  font-size: 14px;
  line-height: 40px;
  color: #5A6472;
  white-space: nowrap;
}
.f-row-top .f-k { line-height: 20px; padding-top: 10px; }
.f-ctl,
.f-row input.f-ctl,
.f-row select.f-ctl,
.f-row textarea.f-ctl {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #D5DAE3;
  border-radius: 8px;
  background: #FFFFFF;
  color: #1F2430;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
  box-sizing: border-box;
}
.f-row select.f-ctl { padding-right: 8px; cursor: pointer; }
.f-row input.f-ctl:focus,
.f-row select.f-ctl:focus,
.f-row textarea.f-ctl:focus {
  outline: none;
  border-color: #2B6CD4;
  box-shadow: 0 0 0 3px rgba(43, 108, 212, 0.12);
}
/* 特殊要求：三整行高（3 × 20px 行高 + 上下内边距） */
.f-row textarea.f-ctl {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}
/* 已退房：单独一行 */
.f-co-row { margin: 4px 0 14px; }
.f-co {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #A85B00;
  cursor: pointer;
}
.f-co input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }

/* 开荒任务的多清洁师勾选（2026-11-04 用户第 6 条）：与 .f-row 左对齐，
   每个名字一条 chip，勾中变橙 —— 弹窗里一眼能数出选了几个人 */
.assist-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 40px;
  color: #8A93A3;
}
.assist-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px 104px;
  max-height: 168px;
  overflow-y: auto;
}
.assist-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #D5DAE3;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 13px;
  color: #22293A;
  cursor: pointer;
}
.assist-item input[type="checkbox"] { width: 14px; height: 14px; margin: 0; }
.assist-item.on {
  border-color: #E8833A;
  background: #FFF3E6;
  color: #B45309;
}

/* 2026-11-05d 用户第 2 条：保洁任务完成前「新增保洁」置灰。
   浏览器默认的 disabled 观感在深色按钮上几乎看不出来，这里给一条明确的灰态；
   保留 cursor: not-allowed，让鼠标移上去就知道点不了（原因写在 title 和下方灰字里）。 */
.wb-dialog-actions button[disabled],
.wb-dialog-actions button:disabled {
  color: #BFC5CF;
  background: #F5F6FA;
  border-color: #E7EAF0;
  cursor: not-allowed;
}

/* ===== 合同管理（2026-11-09a） ===== */
.contract-wrap { overflow-x: auto; }
.contract-stats {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.contract-stat-card {
  flex: 1 1 120px; min-width: 120px; padding: 12px 16px;
  background: #fff; border: 1px solid #E5E6EB; border-radius: 10px;
}
.contract-stat-num { font-size: 22px; font-weight: 600; }
.contract-stat-num.warn { color: #E6A23C; }
.contract-stat-num.danger { color: #F54A45; }
.contract-stat-label { font-size: 12px; color: #86909C; margin-top: 2px; }
.contract-sub { font-size: 12px; color: #86909C; margin-top: 2px; }
/* 2026-11-14：「新建」页签顶部（起草/录入入口按钮区） */
.contract-new-head { margin-bottom: 8px; }
.contract-new-head .toolbar { margin-top: 4px; margin-bottom: 0; }
.contract-ops { white-space: nowrap; }
.contract-ops .linklike { margin-right: 8px; }
.contract-bad { color: #F54A45; font-weight: 600; }
.contract-row-overdue { background: #FFF7F0; }
.contract-head-card h3 { margin: 0 0 10px; }
.contract-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.contract-meta-item { font-size: 13px; }
.contract-meta-label { color: #86909C; margin-right: 6px; }
.contract-head-ops { margin-top: 12px; }
.contract-thumb {
  width: 44px; height: 44px; object-fit: cover; border-radius: 6px;
  border: 1px solid #E5E6EB; cursor: zoom-in; margin-right: 6px;
}
.contract-form label.field { display: flex; align-items: center; }
.contract-form label.field input,
.contract-form label.field select,
.contract-form label.field textarea { flex: 1 1 auto; min-width: 0; margin-left: 8px; }
/* 2026-11-14：字段标题固定列宽，长标题在固定宽度内换行、不把整行挤成两行 */
.contract-form .contract-field-label {
  flex: 0 0 150px; font-size: 13px; color: #4E5261; line-height: 1.4;
}

/* ===== 合同管理（2026-11-09c 增强：正文 / 签署 / 配置） ===== */
.contract-pending-head { margin-bottom: 8px; }
/* 表单分组标题：一、基本信息 / 二、签约主体与责任归口 …… */
.contract-sec {
  margin: 18px 0 8px; padding-top: 12px; font-size: 14px; font-weight: 600; color: #1D2129;
  border-top: 1px solid #E5E6EB;
}
.contract-sec:first-of-type { border-top: 0; padding-top: 0; }
.contract-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.contract-sec-head .contract-sec { margin: 0; padding: 0; border-top: 0; }
.contract-body-cell { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.contract-body-cell .btn.ai-fill { margin-left: auto; flex: none; }
.contract-ai-hint { font-size: 12px; color: #8A9099; }
.contract-ai-hint:empty { display: none; }
.contract-ai-hint-row { margin-top: 6px; }
.contract-body-name {
  font-size: 13px; color: #1D2129; word-break: break-all;
}
.contract-body-name.muted { color: #8A9099; font-size: 12px; }
.contract-file-badge {
  flex: none; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 600;
  color: #1677FF; background: #EAF3FF; border: 1px solid #CFE3FF;
}
.contract-body-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding: 10px 12px; border: 1px dashed #E5E6EB; border-radius: 8px;
  background: #FAFBFC;
}
/* 正文全文（body_text）区块 + 编辑器（2026-11-14 合同补齐） */
.contract-body-text { margin-top: 12px; }
.contract-body-text .contract-sec-head { margin-bottom: 6px; }
.contract-body-pre {
  margin: 0; padding: 12px; background: #FAFBFC; border: 1px solid #E5E6EB;
  border-radius: 8px; font-size: 13px; line-height: 1.7; white-space: pre-wrap;
  word-break: break-word; max-height: 360px; overflow: auto; color: #1F2329;
}
.contract-body-editor {
  width: 100%; min-height: 260px; padding: 10px; border: 1px solid #D8DCE3;
  border-radius: 6px; font-size: 13px; line-height: 1.7; resize: vertical;
  box-sizing: border-box; font-family: inherit;
}
/* 履约方向切换条 */
.perf-dir { margin-bottom: 12px; }
/* 正文卡与签署卡紧贴头部卡，视觉上成为一组 */
.contract-sign-card { margin-top: 12px; }
.contract-sign-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.contract-sign-info {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 10px 0 8px; font-size: 13px;
}
/* 配置页工具栏里的长提示语不要撑满整行 */
.contract-toolbar .f-hint { flex: 1 1 100%; margin: 0 0 6px; }
.toolbar > .f-hint { flex: 1 1 100%; margin: 0 0 4px; }

/* ===== 组织与人员（2026-11-13 P0.5）===== */
.org-tree { display: flex; flex-direction: column; gap: 6px; }
.org-node {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid #E5E6EB; border-radius: 8px;
  background: #fff;
}
.org-node-icon { font-size: 16px; flex: none; color: #1F2329; line-height: 1; }
.org-node-main { flex: 1 1 auto; min-width: 0; }
.org-node-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.org-node-title b { font-size: 14px; color: #1F2329; }
.org-node-meta { margin-top: 3px; font-size: 12px; color: #8A9099; }
.org-node-acts { flex: none; display: flex; gap: 4px; }
.org-tree .chip { font-size: 11px; padding: 1px 6px; }

.roster-body { display: flex; flex-direction: column; gap: 4px; }
.roster-group-head {
  margin-top: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600;
  color: #4E5261; background: #F5F6F8; border-left: 3px solid #2F6FED; border-radius: 4px;
}
.roster-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 24px; border-bottom: 1px solid #F0F1F3; font-size: 13px;
}
.roster-main { flex: 1 1 auto; min-width: 0; }
.roster-namebox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.roster-name { font-weight: 500; color: #1F2329; min-width: 90px; }
.roster-star { color: #F5A623; font-size: 12px; }
.roster-meta { display: block; margin-top: 2px; font-size: 12px; color: #8A9099; }
.roster-acts { flex: none; display: flex; gap: 4px; }
.roster-row .chip { font-size: 11px; padding: 1px 6px; }

/* 2026-11-16b 停用列表 */
.inactive-section { margin-top: 20px; border-top: 1px solid #E5E6EB; padding-top: 12px; }
.inactive-head { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; }
.inactive-title { font-size: 14px; font-weight: 600; color: #1F2329; }
.inactive-count { font-size: 12px; color: #A85B00; background: #FFF4E5; padding: 1px 10px; border-radius: 10px; }
.inactive-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid #F0F1F3; font-size: 13px;
}
.inactive-main { flex: 1 1 auto; min-width: 0; }
.inactive-namebox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 任职记录（2026-11-14 P0-c） */
.asg-body { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.asg-row {
  padding: 12px 14px; border: 1px solid #E5E6EB; border-radius: 8px; background: #fff;
}
.asg-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.asg-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.asg-title b { font-size: 14px; color: #1F2329; }
.asg-now {
  flex: none; font-size: 11px; color: #fff; background: #2F6FED;
  padding: 1px 8px; border-radius: 10px;
}
.asg-meta { margin-top: 4px; font-size: 12px; color: #8A9099; }
.asg-reason { margin-top: 4px; font-size: 12px; color: #4E5261; }
.asg-row .chip { font-size: 11px; padding: 1px 6px; }

/* 组织架构视图（2026-11-14 P0-e） */
.ov-bandbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ov-bandbar .chip { cursor: pointer; font-size: 12px; padding: 3px 10px; }
.ov-bandbar .chip.on { background: #2F6FED; color: #fff; border-color: #2F6FED; }
.ov-child { margin-top: 0; }
.ov-node-bands { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ov-node-bands .chip { font-size: 11px; padding: 1px 8px; cursor: default; }
.ov-node-bands .chip.on { background: #2F6FED; color: #fff; border-color: #2F6FED; }
.ov-count {
  flex: none; font-size: 13px; font-weight: 600; color: #2F6FED;
  white-space: nowrap;
}
.ov-store { border-style: dashed; background: #FAFBFC; }

/* ===== 工作计划（org.js plan 页签）===== */
.plan-period { padding: 6px 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; }
.plan-emp { padding: 6px 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; min-width: 220px; }
.plan-title { margin: 12px 0 8px; font-size: 15px; }
.plan-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.plan-card-head strong { font-size: 14px; color: #1A1D24; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plan-review-bar { display: flex; gap: 24px; margin: 4px 0 10px; font-size: 13px; color: #4E5261; }
.plan-review-bar span { font-weight: 600; }
.plan-comment { font-size: 13px; color: #6B7280; margin: 8px 0 0; line-height: 1.6; }

/* 计划 / 总结编辑弹层 */
.wb-plan-editor { width: 780px; max-width: 92vw; max-height: 86vh; overflow: auto; }
.plan-editor-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.plan-editor-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #EDEFF3; border-radius: 8px; background: #FAFBFC; }
.plan-editor-row.sum-row { align-items: center; }
.pe-seq { flex-shrink: 0; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: #EFF4FF; color: #2F6FED; font-size: 12px; font-weight: 600; margin-top: 2px; }
/* 2026-11-14：统一输入框高度（title/date/weight 与 detail 同高 38px），消除行内高低不一 */
.pe-title { flex: 1; min-width: 140px; height: 38px; padding: 6px 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.pe-detail { flex: 1.4; min-width: 180px; height: 38px; min-height: 38px; padding: 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; resize: none; box-sizing: border-box; line-height: 20px; }
.pe-date { flex-shrink: 0; width: 140px; height: 38px; padding: 6px 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.pe-weight { flex-shrink: 0; width: 80px; height: 38px; padding: 6px 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.pe-score { flex-shrink: 0; width: 110px; height: 38px; padding: 6px 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
/* 2026-11-14：删除按钮改为与其它页一致的「linklike danger」文字按钮风格 */
.pe-del { flex-shrink: 0; width: 40px; font-size: 13px; align-self: center; }
.pe-title-fixed { flex: 1; min-width: 140px; font-size: 13px; color: #1A1D24; font-weight: 600; }
.pe-completion-view { flex: 1.4; min-width: 180px; font-size: 13px; color: #4E5261; }
.pe-comment { width: 100%; min-height: 56px; padding: 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; resize: vertical; box-sizing: border-box; }
.plan-editor-list .btn { align-self: flex-start; }

/* 计划编辑器表头行（列名置于第一行上方，与输入列严格对齐） */
.plan-editor-head { display: flex; align-items: center; gap: 8px; padding: 0 10px 6px; border-bottom: 2px solid #E5E8EE; margin-bottom: 2px; }
.plan-editor-head .ph-seq { flex-shrink: 0; width: 24px; }
.plan-editor-head .ph-title { flex: 1; min-width: 140px; }
.plan-editor-head .ph-detail { flex: 1.4; min-width: 180px; }
.plan-editor-head .ph-date { flex-shrink: 0; width: 140px; }
.plan-editor-head .ph-weight { flex-shrink: 0; width: 80px; }
.plan-editor-head .ph-del { flex-shrink: 0; width: 40px; }
.plan-editor-head span { font-size: 12px; font-weight: 600; color: #646A73; }

/* 数据行容器 */
.plan-editor-rows { display: flex; flex-direction: column; }

/* 计划编辑器输入行：去掉卡片边框，用更工整的表格化布局 */
.plan-editor-row { align-items: center; padding: 8px 10px; border: none; border-bottom: 1px solid #F0F2F5; border-radius: 0; background: #fff; }
.plan-editor-row:hover { background: #FAFBFD; }
.plan-editor-row .pe-detail { min-height: 38px; }

/* ===== 薪酬参数配置中心（P2-c）===== */
.salary-tabs { max-width: 720px; }
.detail-title { font-size: 15px; font-weight: 600; color: #1A1D24; }
.pay-form { max-width: 560px; margin-bottom: 14px; }
.pay-field { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pay-field label { flex: 0 0 150px; font-size: 13px; color: #4E5261; }
.pay-field input, .pay-field select { flex: 1; height: 38px; padding: 6px 8px; border: 1px solid #D8DCE3; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.badge.ok { color: #1E7F4F; background: #E8F6EF; }
.badge.warn { color: #A85B00; background: #FFF4E5; }
.badge.ov { color: #2F6FED; background: #EFF4FF; margin-right: 4px; }
.trial-table td.trial-k { width: 40%; font-weight: 600; color: #646A73; white-space: nowrap; }
p.warn { color: #A85B00; font-size: 12px; margin: 8px 0 0; }
/* 绩效管理（需求5）：申诉区块 + 指标/模板表格横向滚动 */
.perf-appeal-wrap { margin-top: 20px; }
.perf-appeal-wrap h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.perf-tbl-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.perf-tbl-wrap .data-table { min-width: 560px; }
/* 2026-11-17a：模板列表 —— table-layout:fixed + colgroup 定宽，各栏一行、长文本省略号，
   操作列放行溢出（查看/修改/删除三个按钮不折行不截断） */
.perf-tbl-wrap .data-table.tpl-list-table { table-layout: fixed; min-width: 640px; width: 100%; }
.perf-tbl-wrap .data-table.tpl-list-table th,
.perf-tbl-wrap .data-table.tpl-list-table td { white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; }
.perf-tbl-wrap .data-table.tpl-list-table td.op { overflow: visible; }
.perf-tbl-wrap .data-table.tpl-list-table td.op .btn.sm { margin-left: 4px; }
.perf-tbl-wrap .data-table.tpl-list-table td.op .btn.sm:first-child { margin-left: 0; }
/* 2026-11-16f：指标库列表 —— table-layout:fixed 定宽，各栏一行完整显示，长文本省略号 */
.perf-tbl-wrap .data-table.perf-ind-table { table-layout: fixed; min-width: 720px; width: 100%; }
.perf-tbl-wrap .data-table.perf-ind-table th,
.perf-tbl-wrap .data-table.perf-ind-table td { white-space: nowrap; word-break: normal; overflow: hidden; }
.perf-tbl-wrap .data-table.perf-ind-table td.multiline { white-space: normal; word-break: break-word; overflow: visible; vertical-align: top; }
.perf-tbl-wrap .data-table.perf-ind-table td.op { white-space: nowrap; }
/* 2026-11-16f：指标库列表斑马纹 —— 白色/浅灰相间区分各行 */
.perf-tbl-wrap .data-table.perf-ind-table tbody tr:nth-child(even) td { background: #F7F8FA; }
.perf-tbl-wrap .data-table.perf-ind-table tbody tr:nth-child(even) td.multiline { background: #F7F8FA; }
/* 2026-11-16 需求2：定量指标数据填写入口 */
.quant-fill-wrap { margin: 14px 0; padding: 14px 16px; background: #f7f9fc; border: 1px solid #e6ebf2; border-radius: 8px; }
.quant-fill-wrap h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
button.btn.sm.warn { color: #A85B00; border-color: #F0C36A; }
/* 计分规则结构化编辑器（2026-11-16 替换 JSON 文本框） */
.perf-indicator-dialog { width: 560px; max-height: 86vh; overflow: auto; }
.perf-indicator-dialog .field-label { margin: 10px 0 4px; }
.perf-indicator-dialog .rule-host { margin-bottom: 6px; }
.perf-indicator-dialog .rule-host .f-hint { margin: 0 0 8px; font-size: 12px; color: #A8AEB8; }
.rule-editor .rule-table { margin-bottom: 8px; }
.rule-editor .rule-table th { background: #FAFBFC; }
.rule-editor .rule-table input { width: 100%; padding: 6px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.rule-editor .rule-table input:focus { outline: none; border-color: #2F6FED; }
.rule-editor .rule-table td.op { width: 56px; text-align: center; }
.rule-editor-actions { margin-top: 4px; }
/* 专项考核任务编辑器（2026-11-16） */
.perf-indicator-dialog { width: 680px; }
.special-editor { display: flex; flex-direction: column; gap: 10px; }
.special-editor .special-task { border: 1px solid #E6EBF2; border-radius: 8px; padding: 10px 12px; background: #FAFBFC; }
.special-editor .special-field { display: block; margin: 6px 0; }
.special-editor .special-field > input { width: 100%; padding: 6px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.special-editor .special-field > input:focus { outline: none; border-color: #2F6FED; }
.special-editor .special-items { margin: 6px 0; }
.special-editor .special-items th { background: #fff; }
.special-editor .special-items input { width: 100%; padding: 5px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.special-editor .special-items td.op { width: 52px; text-align: center; }
.special-editor .special-evaluators { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 0; }
.special-editor .ev-item { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.special-editor .special-task > .btn { margin-right: 6px; }
/* 专项考核子任务配置（2026-11-16d）：发起考核弹窗内按指标分节 + 考评人下拉多选 */
.special-host { margin-top: 4px; }
.special-section { border: 1px solid #E6EBF2; border-radius: 8px; padding: 10px 12px; margin: 8px 0; background: #FAFBFC; }
.special-section h4 { margin: 0 0 8px; font-size: 14px; color: #1F2329; }
/* 考评人「多选 + 模糊搜索」控件 */
.pms-wrap { position: relative; width: 100%; }
.pms-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid #D0D3D9; border-radius: 6px; background: #fff; min-height: 32px; cursor: text; box-sizing: border-box; }
.pms-box:focus-within { border-color: #2F6FED; }
.pms-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.pms-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; color: #2F6FED; background: #EDF3FE; border-radius: 12px; }
.pms-chip .pms-x { cursor: pointer; color: #6E7684; font-size: 14px; line-height: 1; }
.pms-chip .pms-x:hover { color: #D93025; }
.pms-input { flex: 1 1 80px; min-width: 80px; border: 0; outline: none; font-size: 13px; padding: 3px 0; background: transparent; }
.pms-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 220px; overflow-y: auto; background: #fff; border: 1px solid #D0D3D9; border-radius: 8px; box-shadow: 0 8px 24px rgba(31,35,41,.14); }
.pms-item { padding: 7px 12px; font-size: 13px; color: #4E5261; cursor: pointer; }
.pms-item:hover { background: #F5F7FA; }
.pms-empty { padding: 8px 12px; font-size: 12px; color: #A8AEB8; }

.salary-body .comp-table { min-width: 860px; }
.salary-body { overflow-x: auto; overscroll-behavior-x: contain; }
.salary-body .comp-table td .hint { font-size: 11px; color: #A8ADB5; }

/* ===== 2026-11-16f 可视化模板配置编辑器 ===== */
.perf-template-dialog { width: 720px; max-width: 92vw; max-height: 90vh; overflow: auto; }.perf-template-dialog .tpl-sum-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 14px; padding: 8px 12px; background: #F7F9FC; border: 1px solid #E6EBF2; border-radius: 8px; font-size: 13px; }
.perf-template-dialog .tpl-sum { color: #4E5261; }
.perf-template-dialog .tpl-sum.ok { color: #1E7F4F; font-weight: 600; }
.perf-template-dialog .tpl-sum.bad { color: #D93026; font-weight: 600; }
.perf-template-dialog .tpl-sum.sep { color: #C0C4CC; }
.perf-template-dialog .tpl-mod-host { display: flex; flex-direction: column; gap: 12px; }
.perf-template-dialog .tpl-mod-card { border: 1px solid #E6EBF2; border-radius: 10px; padding: 12px 14px; background: #fff; }
.perf-template-dialog .tpl-mod-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.perf-template-dialog .tpl-mod-head select { padding: 6px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; }
.perf-template-dialog .tpl-w { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #4E5261; }
.perf-template-dialog .tpl-w-in { width: 72px; padding: 6px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.perf-template-dialog .tpl-w-in:focus { outline: none; border-color: #2F6FED; }
.perf-template-dialog .tpl-no-weight { font-size: 13px; color: #8A6D1A; background: #FFF8E6; border: 1px solid #F2E3B8; border-radius: 6px; padding: 5px 10px; }
.perf-template-dialog .tpl-sum.formula { color: #2F6FED; font-weight: 600; }
.perf-template-dialog .tpl-ind-table { width: 100%; }
.perf-template-dialog .tpl-ind-table td, .perf-template-dialog .tpl-ind-table th { padding: 6px 8px; }
.perf-template-dialog .tpl-ind-table td.op { width: 56px; }
.perf-template-dialog .tpl-add-row { margin-top: 8px; position: relative; }
.perf-template-dialog .tpl-picker { position: relative; margin-top: 6px; border: 1px solid #E6EBF2; border-radius: 8px; background: #FAFBFC; padding: 6px; }
.perf-template-dialog .tpl-picker-kw { width: 100%; padding: 6px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; box-sizing: border-box; }
.perf-template-dialog .tpl-picker-kw:focus { outline: none; border-color: #2F6FED; }
.perf-template-dialog .tpl-picker-list { max-height: 200px; overflow-y: auto; margin-top: 4px; }
.perf-template-dialog .tpl-picker-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: 13px; color: #1F2329; cursor: pointer; border-radius: 6px; }
.perf-template-dialog .tpl-picker-item:hover { background: #EDF3FE; }
.perf-template-dialog .tpl-picker-name { flex: 1 1 auto; }
.perf-template-dialog .tpl-picker-dim { flex: 0 0 auto; font-size: 11px; color: #8A9099; background: #F0F2F5; padding: 1px 8px; border-radius: 10px; }
.perf-template-dialog .tpl-mod-actions { margin-top: 12px; }
.perf-template-dialog .tpl-mod-actions .btn { margin-right: 8px; }
/* 2026-11-16g：模板适用岗位多选 + 发起考核选模板/被考核人预览 */
.perf-template-dialog .field-label { margin: 8px 0 4px; font-size: 13px; color: #4E5261; }
.perf-template-dialog .tpl-pos-sel { width: 100%; padding: 6px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; box-sizing: border-box; background: #fff; }
.perf-template-dialog .tpl-pos-sel:focus { outline: none; border-color: #2F6FED; }
.perf-indicator-dialog .task-tpl-sel { width: 100%; padding: 6px 8px; border: 1px solid #D0D3D9; border-radius: 6px; font-size: 13px; box-sizing: border-box; background: #fff; }
.perf-indicator-dialog .task-tpl-sel:focus { outline: none; border-color: #2F6FED; }
/* 2026-11-16k4：仅「指标类型 / 维度权重 / 删除维度 / +添加指标」四控件统一 30px（height==line-height 居中）。
   模板名称（.field input/select）不参与降高；岗位范围（.ms-combo-trigger）降 min-height 42→40，
   对齐模板名称栏（.field input ≈ 40px）。 */
.perf-template-dialog .tpl-mod-head select { height: 30px; padding: 0 10px; box-sizing: border-box; }
.perf-template-dialog .tpl-w-in { height: 30px; padding: 0 8px; line-height: 30px; box-sizing: border-box; }
.perf-template-dialog .tpl-mod-head button.btn.sm.warn,
.perf-template-dialog .tpl-add-row button.btn.sm { height: 30px; padding: 0 12px; line-height: 30px; box-sizing: border-box; }
.perf-template-dialog .ms-combo .ms-combo-trigger { height: 40px; min-height: 40px; padding: 0 12px; box-sizing: border-box; }
.perf-indicator-dialog .matched-host { margin: 6px 0 10px; }
.perf-indicator-dialog .matched-host .matched-sum { margin: 0; padding: 8px 10px; background: #F0F7F1; border: 1px solid #D5E8D9; border-radius: 6px; font-size: 13px; color: #1E7F4F; line-height: 1.6; }

/* 2026-11-18 需求3：发起考核弹窗内「考核表预览」——选中模板后带出该模板在被考核人端展示的完整考核表 */
.perf-indicator-dialog .template-preview-host { margin: 4px 0 12px; }
.perf-indicator-dialog .tpl-preview-head { margin: 0 0 6px; }
.perf-indicator-dialog .tpl-preview-head h4 { margin: 0; font-size: 13px; font-weight: 600; color: #1F2329; }
.perf-indicator-dialog .template-preview-host .tpl-detail-table { table-layout: fixed; width: 100%; }
.perf-indicator-dialog .template-preview-host .tpl-detail-table th,
.perf-indicator-dialog .template-preview-host .tpl-detail-table td { white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; }
.perf-indicator-dialog .template-preview-host .tpl-detail-table td.multiline { white-space: normal; word-break: break-word; overflow: visible; vertical-align: top; line-height: 1.6; }

/* 2026-11-18 需求2/3：发起考核「完整绩效考核表」——分维度卡片式布局
   参考被考核人端样式：浅灰底 + 白色圆角卡片，维度（含权重）→ 指标（含权重）→
   考核标准/计分规则 → 指标得分（绿色强调）；专项考核指标项内嵌子任务编辑器。 */
.perf-indicator-dialog.perf-task-dialog { width: 760px; max-width: 94vw; }
.perf-indicator-dialog .perf-form-preview { margin: 4px 0 12px; }
.perf-indicator-dialog .perf-form-preview .hint,
.perf-indicator-dialog .perf-form-preview .warn { margin: 4px 0; }

/* 考核表整体容器 */
.perf-indicator-dialog .perf-sheet { border-radius: 10px; overflow: hidden; border: 1px solid #E6EBF2; background: #F7F8FA; }
/* 表头：标题 + 得分/系数汇总 */
.perf-indicator-dialog .perf-sheet-head { padding: 14px 16px; background: #fff; border-bottom: 1px solid #EEF0F4; }
.perf-indicator-dialog .perf-sheet-head h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #1F2329; }
.perf-indicator-dialog .perf-sheet-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5F6672; }
.perf-indicator-dialog .perf-sheet-meta .perf-sheet-score { font-size: 16px; font-weight: 700; color: #1E7F4F; min-width: 40px; }

/* 维度模块（白色圆角卡片） */
.perf-indicator-dialog .perf-dim-module { background: #fff; border-radius: 8px; margin: 10px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(31,35,41,.04); }
.perf-indicator-dialog .perf-dim-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #F0F2F5; }
.perf-indicator-dialog .perf-dim-title { font-size: 14px; font-weight: 700; color: #1F2329; }
.perf-indicator-dialog .perf-dim-weight { font-size: 12px; color: #2F6FED; background: #EEF3FE; border-radius: 10px; padding: 2px 10px; }

/* 指标项 */
.perf-indicator-dialog .perf-ind-row { padding: 10px 0; border-bottom: 1px dashed #EEF0F4; }
.perf-indicator-dialog .perf-ind-row:last-child { border-bottom: none; }
.perf-indicator-dialog .perf-ind-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.perf-indicator-dialog .perf-ind-title { font-size: 13px; font-weight: 600; color: #1F2329; }
.perf-indicator-dialog .perf-ind-weight { font-size: 12px; color: #5F6672; background: #F2F3F5; border-radius: 10px; padding: 2px 8px; }
.perf-indicator-dialog .perf-ind-type { font-size: 11px; color: #2F6FED; background: #EEF3FE; border-radius: 4px; padding: 1px 6px; }
.perf-indicator-dialog .perf-ind-type.quant { color: #B46A0A; background: #FFF4E0; }
.perf-indicator-dialog .perf-ind-type.special { color: #7A3FD3; background: #F3EDFD; }

/* 键值对行（考核标准 / 计分规则） */
.perf-indicator-dialog .perf-ind-kv { display: flex; gap: 8px; margin: 4px 0; font-size: 12px; line-height: 1.6; }
.perf-indicator-dialog .perf-ind-label { flex: 0 0 56px; color: #A8AEB8; }
.perf-indicator-dialog .perf-ind-text { flex: 1 1 auto; color: #3A4049; word-break: break-word; }

/* 指标结果录入/得分占位行 */
.perf-indicator-dialog .perf-ind-result { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; }
.perf-indicator-dialog .perf-ind-result .perf-ind-label { flex: 0 0 56px; color: #A8AEB8; }
.perf-indicator-dialog .perf-ind-value { flex: 1 1 auto; color: #8A919C; }
.perf-indicator-dialog .perf-ind-score { flex: 0 0 auto; font-weight: 600; color: #1E7F4F; }

/* 专项考核指标项内嵌子任务编辑器：容器微调 */
.perf-indicator-dialog .perf-ind-row.special .special-editor { margin-top: 8px; }
.perf-indicator-dialog .perf-ind-row.special .special-editor .special-task { background: #FBFBFD; }

/* ===== 2026-11-17c 查看模板详情：全屏铺展页 + 考评人列 + 修改移入弹窗 =====
   全屏铺满视口（非居中弹窗），顶部标题栏固定、内容区自滚动，表格 8 列完整展示。
   「考核标准」「计分规则」两栏允许多行；其余一格一行。 */
.perf-template-view { position: fixed; inset: 0; z-index: 98; display: flex; align-items: center; justify-content: center; }
.perf-template-view-mask { position: absolute; inset: 0; background: rgba(31,35,41,.4); }
.perf-template-view-panel {
  position: relative; width: 100%; height: 100%;
  background: #fff; display: flex; flex-direction: column;
}
.perf-tv-head {
  flex: 0 0 auto; display: flex; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid #F2F3F5;
  /* 右上角给语言切换胶囊(#wb-lang)留出空间 */
  padding-right: 160px;
}
.perf-tv-head h3 { margin: 0; font-size: 16px; font-weight: 600; color: #1F2329; }
.perf-tv-body { flex: 1 1 auto; overflow: auto; padding: 20px 24px; }
.perf-tv-body .tpl-detail-table { table-layout: fixed; width: 100%; }
.perf-tv-body .tpl-detail-table th,
.perf-tv-body .tpl-detail-table td { white-space: nowrap; word-break: normal; overflow: hidden; text-overflow: ellipsis; }
/* 考核标准 / 计分规则两栏：允许多行完整显示，顶部对齐 */
.perf-tv-body .tpl-detail-table td.multiline { white-space: normal; word-break: break-word; overflow: visible; vertical-align: top; line-height: 1.6; }
/* 表格下方右下角操作栏：修改 / 删除 / 关闭 */
.perf-tv-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }



/* ==================== 审批中心（2026-11-17 P5）====================
   与小程序端 pages/admin/approval-center 同源的 Web 版；
   设置页是网页端独有的可视化流程编辑器。 */
/* 小号按钮（此前 flow.js 用 .flow-card-actions 兜底，这里给通用 .btn.small） */
button.btn.small { padding: 4px 10px; font-size: 12px; }
/* 状态标签补充（.tag-warn 已在库；这里补 ok/danger/gray） */
.tag-ok { display: inline-block; padding: 1px 6px; font-size: 11px; line-height: 16px; color: #1F7A45; background: #EAF7F0; border: 1px solid #B7E2C6; border-radius: 4px; }
.tag-danger { display: inline-block; padding: 1px 6px; font-size: 11px; line-height: 16px; color: #D93026; background: #FDEDEC; border: 1px solid #F5C6C2; border-radius: 4px; }
.tag-gray { display: inline-block; padding: 1px 6px; font-size: 11px; line-height: 16px; color: #646A73; background: #F5F6FA; border: 1px solid #E5E6EB; border-radius: 4px; }

/* 二级页签（审批下的「待处理/已处理/抄送我」）：比一级更轻、缩进一点 */
.approval-sub-tabs { margin: -10px 0 14px; border-bottom: none; }
.approval-sub-tabs button { font-size: 13px; padding: 6px 12px; }

/* ① 发起：流程分组宫格（2026-11-25 重构为分组 + 图标） */
.approval-flow-grid { display: flex; flex-direction: column; gap: 18px; }
.approval-flow-group-title {
  font-size: 14px; font-weight: 600; color: #1F2329; margin-bottom: 10px;
  padding-left: 8px; border-left: 3px solid #2F6FED;
}
.approval-flow-cells {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.approval-flow-item {
  padding: 16px 12px; background: #fff; border: 1px solid #E5E6EB; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
}
.approval-flow-item.clickable { cursor: pointer; }
.approval-flow-item.clickable:hover { border-color: #2F6FED; box-shadow: 0 2px 8px rgba(47,111,237,.10); }
.approval-flow-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.approval-flow-img { width: 28px; height: 28px; }
.approval-flow-name { font-weight: 500; color: #1F2329; font-size: 14px; }
.approval-flow-biz { font-size: 11px; color: #B0B6BF; }

/* ②③ 待处理 / 已处理 / 抄送我 / 已提交：列表行 */
.approval-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.approval-toolbar .hint { margin: 0; font-size: 12px; }
/* 2026-12-04 审批检索栏（参照企业微信审批页） */
.approval-search-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.approval-search-input {
  flex: 1; min-width: 220px; height: 36px; padding: 0 12px;
  border: 1px solid #E5E6EB; border-radius: 8px; font-size: 13px; color: #1F2329; outline: none;
}
.approval-search-input:focus { border-color: #2f6fed; }
.approval-filter-select {
  height: 36px; padding: 0 8px; border: 1px solid #E5E6EB; border-radius: 8px;
  font-size: 13px; color: #4E5969; background: #fff; outline: none; cursor: pointer;
}
.approval-filter-select:focus { border-color: #2f6fed; }
/* 2026-12-05 批量处理：与筛选下拉同高同圆角同边框，仅文字用主色区分可点击 */
.approval-filter-btn {
  height: 36px; padding: 0 14px; border: 1px solid #E5E6EB; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #2f6fed; background: #fff;
  outline: none; cursor: pointer; white-space: nowrap;
}
.approval-filter-btn:hover { border-color: #2f6fed; background: #F5F8FF; }
.approval-filter-btn:active { background: #EAF1FE; }
.approval-list { display: flex; flex-direction: column; gap: 10px; }
.approval-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; border: 1px solid #E5E6EB; border-radius: 10px;
}
.approval-row-main { flex: 1; min-width: 0; }
.approval-row-title { font-weight: 500; color: #1F2329; margin-bottom: 4px; }
.approval-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: #8A9099; }
.approval-row-meta .strong { color: #A85B00; font-weight: 500; }
.approval-row-ops { display: flex; align-items: center; gap: 8px; flex: none; }
.approval-row-ops .btn { margin: 0; }

/* 2026-12-05 审批批量处理弹窗（对齐小程序 approval-batch 独立页） */
.approval-batch-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #E5E6EB; }
.approval-batch-head h3 { margin: 0; font-size: 16px; color: #1F2329; }
.approval-batch-all { display: flex; align-items: center; gap: 6px; padding: 8px 2px; font-size: 13px; color: #4E5969; cursor: pointer; }
.approval-batch-list { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 4px 0 8px; }
.approval-batch-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: #1F2329; cursor: pointer; }
.approval-batch-item:hover { background: #F7F8FA; }
.approval-batch-item span { flex: 1; min-width: 0; }
.approval-batch-item small { color: #8A9099; }
.approval-batch-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding-top: 12px; border-top: 1px solid #E5E6EB; }
.approval-batch-foot .hint { color: #8A9099; font-size: 13px; }

/* ④ 设置：流程卡片 + 步骤条（复用 .flow-step 的视觉语言，但用 approval 前缀避免污染旧页） */
.approval-setting-list { display: flex; flex-direction: column; gap: 14px; }
.approval-flow-card { max-width: none; }
.approval-flow-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.approval-flow-card-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.approval-flow-card-title h3 { margin: 0; }
.approval-flow-card-key { font-size: 11px; color: #A8AEB8; white-space: nowrap; }
.approval-flow-card-actions { display: flex; gap: 8px; flex: none; }
.approval-flow-card-actions .btn { margin: 0; }
.approval-flow-steps { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.approval-flow-step {
  display: flex; gap: 8px; align-items: flex-start; min-width: 180px; flex: 1 1 180px;
  padding: 10px 12px; background: #FAFBFC; border: 1px solid #E5E6EB; border-radius: 8px;
}
.approval-flow-step-no {
  width: 22px; height: 22px; flex: none; border-radius: 50%; background: #2F6FED; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.approval-flow-step-body { min-width: 0; flex: 1; }
.approval-flow-step-name { font-weight: 500; margin-bottom: 2px; color: #1F2329; }
.approval-flow-step-who { font-size: 12px; color: #8A9099; }
.approval-flow-arrow { align-self: center; color: #A8AEB8; font-size: 16px; }
.approval-flow-cc { margin: 8px 0 0; font-size: 12px; color: #8A9099; }

/* 详情页步骤态 */
.approval-flow-step.current { border-color: #2F6FED; background: #F0F4FF; }
.approval-flow-step.done { background: #EAF7F0; border-color: #B7E2C6; }
.approval-flow-step.done .approval-flow-step-no { background: #2BA471; }
.approval-flow-step.rejected { border-color: #F5C6C2; background: #FDEDEC; }
.approval-flow-step.rejected .approval-flow-step-no { background: #D93026; }
.approval-flow-step.skipped { opacity: .55; }
.approval-detail-head { margin-bottom: 14px; }
.approval-detail-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.approval-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: #8A9099; }
/* 2026-11-24：通用表单字段展示 */
.approval-form-list { margin: 4px 0 10px; }
.approval-form-row { display: flex; padding: 7px 0; border-bottom: 1px solid #F2F3F5; font-size: 13px; }
.approval-form-row:last-child { border-bottom: none; }
.approval-form-label { width: 120px; flex-shrink: 0; color: #8A9099; }
.approval-form-value { flex: 1; min-width: 0; color: #32373E; word-break: break-all; }
.approval-detail-rec { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #F2F3F5; font-size: 13px; }
.approval-detail-rec:last-child { border-bottom: none; }
.approval-detail-rec span { color: #646A73; }
.approval-detail-recs { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E5E6EB; }
.approval-detail-subtitle { font-size: 13px; font-weight: 600; color: #1F2329; margin-bottom: 4px; }
.approval-detail-items { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 13px; }
.approval-detail-items th, .approval-detail-items td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid #F2F3F5; vertical-align: top;
}
.approval-detail-items th { background: #FAFBFC; color: #646A73; font-weight: 500; white-space: nowrap; }
.approval-detail-items td { color: #1F2329; }
.approval-detail-items td:last-child { text-align: right; }
.approval-detail-items tr:last-child td { border-bottom: none; }
.approval-detail-req { margin: 4px 0 10px; font-size: 13px; color: #646A73; }
.approval-detail-link { color: #2F6FED; cursor: pointer; text-decoration: none; }
.approval-detail-link:hover { text-decoration: underline; }
.approval-detail-ops { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #F2F3F5; }

/* 通用表单发起（2026-11-29）：报销明细行 + 表单字段 */
.approval-expense { display: flex; flex-direction: column; gap: 10px; }
.approval-expense .field { margin: 0; }
.approval-expense .field input, .approval-expense .field select, .approval-expense .field textarea { margin-top: 4px; }
.approval-expense-lines { display: flex; flex-direction: column; gap: 8px; }
.approval-expense-line { display: flex; align-items: center; gap: 8px; }
.approval-expense-line select { flex: 2; }
.approval-expense-line input[type="number"] { flex: 1; min-width: 0; }
.approval-expense-line input[type="text"] { flex: 1; min-width: 0; }
.approval-expense-line .btn.mini { flex: none; margin: 0; }
.approval-expense .btn.mini { align-self: flex-start; margin: 0; }
/* 报销明细（审批详情，2026-11-30 需求2） */
.approval-detail-expense { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.approval-detail-expense .h4, .approval-detail-expense h4 { margin: 2px 0 4px; }
.approval-detail-expense-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; background: #FAFBFC; border: 1px solid #F2F3F5; border-radius: 6px; font-size: 13px; }
.approval-detail-expense-main { flex: 1; min-width: 0; color: #1F2329; }
.approval-detail-expense-main div { margin: 2px 0; }
.approval-detail-expense-type { font-weight: 600; }
.approval-detail-expense-amt { flex: none; color: #1F2329; font-weight: 600; }
/* 报销类型分组标题（2026-11-30 需求2：报销类型是明细的高一级字段） */
.approval-detail-expense-type-head { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 6px 10px; background: #F0F3F7; border-radius: 6px; font-size: 13px; }
.approval-detail-expense-type-head:first-of-type { margin-top: 0; }
.approval-detail-expense-type-name { font-weight: 600; color: #1F2329; }
.approval-detail-expense-type-sub { color: #646A73; }
.approval-detail-expense-note { font-weight: 500; }
/* 审批流程时间线（节点竖线串联 + 每节点右侧审批记录，2026-11-30 需求1） */
.approval-flow-timeline { margin: 10px 0 4px; }
.approval-flow-tl-node { display: flex; align-items: flex-start; }
.approval-flow-tl-rail { width: 28px; flex: none; display: flex; flex-direction: column; align-items: center; }
.approval-flow-tl-dot { width: 16px; height: 16px; border-radius: 50%; background: #D7DBE4; margin-top: 4px; flex: none; }
.approval-flow-tl-dot.done { background: #2BA471; }
.approval-flow-tl-dot.current { background: #2F6FED; box-shadow: 0 0 0 4px rgba(47,111,237,.15); }
.approval-flow-tl-line { width: 2px; flex: 1; min-height: 40px; background: #E3E6EE; margin-top: 6px; }
.approval-flow-tl-body { flex: 1; min-width: 0; padding: 0 0 18px 10px; }
.approval-flow-tl-name { font-weight: 600; color: #1F2329; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.approval-flow-cur-tag { margin-left: 2px; }
.approval-flow-tl-who { font-size: 12px; color: #8A9099; margin-top: 2px; }
.approval-flow-tl-rec { margin-top: 8px; }
/* 审批记录一行显示：审批人 + 时间 + 结果（2026-11-30 深夜：不再做独立小板块；2026-12-01 标签与文字平行、间距调宽；
   2026-12-01 需求2/3：整行统一为表单内容同款字体 13px，状态去背景色、同行基线对齐） */
.approval-flow-tl-rec-line { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.approval-flow-tl-rec-who { font-weight: 400; color: #333; font-size: 13px; }
.approval-flow-tl-rec-time { font-size: 13px; color: #8A9099; }
.approval-flow-tl-rec-status { font-size: 13px; font-weight: 400; }
.approval-flow-tl-rec-status.st-ok { color: #1F7A45; }
.approval-flow-tl-rec-status.st-skip { color: #8A9099; }
.approval-flow-tl-rec-status.st-warn { color: #A85B00; }
.approval-flow-tl-rec-status.st-reject { color: #D93026; }
.approval-flow-tl-rec-comment { font-size: 12px; color: #646A73; margin-top: 3px; }
/* 抄送人并入审批流程板块（2026-11-30 需求1） */
.approval-detail-cc { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E5E6EB; }
.wb-dialog form .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.wb-dialog form .field input, .wb-dialog form .field select, .wb-dialog form .field textarea { width: 100%; padding: 7px 10px; border: 1px solid #D9DCE1; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.wb-dialog form .field textarea { resize: vertical; }

/* 设置：节点编辑器 */
.approval-edit-title { font-weight: 600; font-size: 14px; margin: 16px 0 8px; color: #1F2329; }
.approval-node-editor { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; border: 1px solid #E5E6EB; border-radius: 8px; padding: 8px; }
.approval-node-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #FAFBFC; border: 1px solid #E5E6EB; border-radius: 8px; }
.approval-node-seq { width: 22px; height: 22px; flex: none; border-radius: 50%; background: #2F6FED; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.approval-node-main { flex: 1; min-width: 0; }
.approval-node-name { font-weight: 500; color: #1F2329; }
.approval-node-who { font-size: 12px; color: #8A9099; }
.approval-node-ops { display: flex; align-items: center; gap: 4px; flex: none; }
.approval-node-ops button { margin: 0; font-size: 12px; }
.approval-node-ops button[disabled] { color: #C9CDD4; cursor: default; }
.approval-node-add { padding: 4px 0; }
.approval-node-add .btn { margin: 0; }

/* 固定抄送编辑 */
.approval-cc-edit { margin-bottom: 12px; }
.approval-cc-subtitle { font-size: 13px; color: #646A73; margin-bottom: 6px; }
.approval-cc-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.approval-cc-role-item { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #1F2329; }

/* 节点条件分支编辑（2026-11-18 需求2） */
.approval-cond-editor { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.approval-cond-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #FAFBFC; border: 1px solid #E5E6EB; border-radius: 8px; }
.approval-cond-field { flex: none; width: 92px; }
.approval-cond-op { flex: none; width: 68px; }
.approval-cond-value { flex: 1; min-width: 90px; }
.approval-cond-role { flex: none; width: 150px; }
.approval-cond-row button { flex: none; margin: 0; font-size: 12px; }
.approval-cond-add { padding: 2px 0; }
.approval-cond-add .btn { margin: 0; }





/* ================= 公告模块（2026-11-19） ================= */
.announce-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.announce-bar > div { display: flex; align-items: center; gap: 10px; }
.announce-bar h3 { margin: 0; }
.announce-list { display: flex; flex-direction: column; gap: 10px; }
.announce-card { border: 1px solid #E5E6EB; border-radius: 10px; padding: 14px 16px; background: #fff; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.announce-card:hover { border-color: #B8C2F0; box-shadow: 0 2px 10px rgba(30,60,180,.08); }
.announce-card-head { display: flex; align-items: center; gap: 8px; }
.announce-title { font-size: 15px; font-weight: 600; color: #1F2329; }
.announce-unread { color: #E64545; font-size: 11px; line-height: 1; }
.announce-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: #8A9099; }
.announce-count { color: #4E5E9E; white-space: nowrap; }
.announce-content { white-space: pre-wrap; word-break: break-word; line-height: 1.7; color: #1F2329; font-size: 14px; margin: 12px 0; }
.announce-stats-summary { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.announce-stats-summary .stat { flex: 1; min-width: 110px; border: 1px solid #E5E6EB; border-radius: 8px; padding: 12px; text-align: center; font-size: 14px; color: #1F2329; background: #FAFBFC; }
.announce-name-list { display: flex; flex-wrap: wrap; gap: 8px; }
.name-chip { display: inline-block; padding: 3px 10px; border-radius: 14px; background: #EEF0F6; color: #4E5E9E; font-size: 13px; }

/* 发布弹窗 */
.announce-publish-dialog { width: 560px; max-width: 92vw; max-height: 86vh; overflow-y: auto; }
.announce-publish-dialog h3 { margin: 0 0 14px; font-size: 17px; line-height: 1.5; }
.announce-publish-dialog textarea { width: 100%; min-height: 120px; padding: 8px 10px; border: 1px solid #D5D8E0; border-radius: 8px; font-size: 14px; resize: vertical; box-sizing: border-box; font-family: inherit; }
.announce-scope-all { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; }
.announce-scope { margin-top: 4px; }
.announce-scope-toggle { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 10px; border: 1px solid #D5D8E0; border-radius: 8px; background: #fff; font-size: 14px; color: #1F2329; cursor: pointer; text-align: left; box-sizing: border-box; }
.announce-scope-toggle:hover { border-color: #B8C2F0; }
.announce-scope-toggle.open { border-color: #2F6FED; }
.announce-scope-arrow { color: #8A9099; font-size: 12px; line-height: 1; }
.announce-scope-label { font-weight: 500; }
.announce-scope-count { margin-left: auto; font-size: 12px; color: #4E5E9E; }
.announce-tree { max-height: 240px; overflow-y: auto; border: 1px solid #E5E6EB; border-radius: 8px; padding: 6px; background: #FAFBFC; }
.announce-tree-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 14px; color: #1F2329; cursor: pointer; border-radius: 4px; }
.announce-tree-row:hover { background: #EEF0F6; }
.announce-tree-row input { margin: 0; }
.announce-picked { margin-top: 6px; font-size: 12px; color: #4E5E9E; }

/* 附件（发布 + 详情） */
.announce-attach { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.announce-attach-list { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.announce-attach-chip { display: inline-flex; align-items: center; gap: 6px; background: #EEF0F6; border: 1px solid #DDE1EC; border-radius: 6px; padding: 4px 8px; font-size: 12px; color: #1F2329; }
.announce-attach-rm { cursor: pointer; color: #8A9099; font-weight: 700; padding: 0 2px; }
.announce-attach-rm:hover { color: #E64545; }
.announce-attachments { margin-top: 12px; }
.announce-attachments h4 { margin: 0 0 8px; font-size: 14px; color: #1F2329; }
.announce-attach-item { display: block; padding: 6px 0; font-size: 13px; color: #2F6FED; text-decoration: none; }
.announce-attach-item:hover { text-decoration: underline; }


/* 授权人管理 */
.announce-pub-dialog { width: 460px; max-width: 92vw; max-height: 80vh; overflow-y: auto; }
.announce-pub-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.announce-pub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid #E5E6EB; border-radius: 8px; }
.announce-pub-info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #1F2329; }
.announce-pub-info .hint { font-size: 12px; color: #8A9099; }
.announce-pub-add { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: #1F2329; }
.announce-pub-add input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #D5D8E0; border-radius: 8px; }

/* ===== 绩效任务进度明细（2026-11-21 需求2）===== */
.task-detail-row td { background: #FBFBFD; padding: 12px 16px; }
.task-progress { margin-bottom: 14px; }
.task-progress .tp-title { font-size: 13px; font-weight: 700; color: #1F2329; margin-bottom: 8px; }
.task-progress .tp-tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 10px; white-space: nowrap; }
.task-progress .tp-tag.ok { color: #1E7F4F; background: #E7F6EF; }
.task-progress .tp-tag.todo { color: #E64545; background: #FDEDED; }
.task-progress .tp-special { margin: 8px 0; padding: 8px 10px; border: 1px solid #EEF0F4; border-radius: 8px; background: #fff; }
.task-progress .tp-special-name { font-size: 13px; font-weight: 600; color: #3A4049; margin-bottom: 6px; }
.task-progress .tp-evaluator { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.task-progress .tp-evaluator-name { color: #5F6672; min-width: 80px; }

/* ===== 绩效批量操作（2026-11-21 需求4）===== */
.task-batch-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #EEF0F4; }
.score-batch-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; background: #F7F8FA; border-radius: 8px; }
.score-batch-count { font-size: 13px; color: #5F6672; margin-right: 4px; }
.perf-batch-score table, .perf-batch-quant table { width: 100%; }
.batch-score-in, .batch-rate-in, .batch-quant-in { width: 100%; max-width: 120px; padding: 5px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; }
.perf-targets-dialog { width: 680px; max-width: 94vw; max-height: 80vh; overflow-y: auto; }
.tp-targets-host { margin: 10px 0; max-height: 50vh; overflow: auto; }
.tp-target-in { width: 100%; max-width: 140px; padding: 5px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; }

/* ===== 绩效人员名单矩阵（2026-11-21 需求3）===== */
.task-batch-title { font-size: 13px; font-weight: 700; color: #1F2329; margin-right: 8px; }
.perf-matrix { width: 100%; }
.perf-matrix .matrix-tpl-sel { max-width: 180px; padding: 4px 6px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 12px; }
/* 矩阵表格内全局 tp-tag（不依赖 .task-progress 作用域） */
.tp-tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 2px 10px; white-space: nowrap; }
.tp-tag.ok { color: #1E7F4F; background: #E7F6EF; }
.tp-tag.todo { color: #E64545; background: #FDEDED; }
.perf-targets-matrix { width: 100%; }
.perf-targets-matrix th, .perf-targets-matrix td { text-align: center; }
.perf-targets-matrix td:first-child { text-align: left; white-space: nowrap; }
.perf-targets-matrix .tp-target-in { max-width: 120px; }
/* 2026-11-22 需求2：目标值弹窗员工列下的部门小字 */
.dept-sub { font-size: 12px; color: #8A9099; margin-top: 2px; }

/* ===== 2026-11-22 加分项/减分项事项录入 ===== */
.perf-score-dialog { width: 640px; max-width: 94vw; max-height: 86vh; display: flex; flex-direction: column;
  padding: 0; overflow: hidden; }
.perf-score-dialog h3 { margin: 0; padding: 16px 20px 12px; font-size: 15px; font-weight: 600; color: #1F2329; border-bottom: 1px solid #EEF0F4; }
.perf-score-dialog .perf-view-meta { padding: 14px 20px; background: #F7F8FA; flex: 0 0 auto; }
.perf-score-dialog .perf-view-sheet { padding: 12px 20px 20px; }
.perf-score-dialog .wb-dialog-actions { padding: 12px 20px; border-top: 1px solid #EEF0F4; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.perf-score-dialog .wb-dialog-actions label.checkbox { margin-right: auto; }
/* 打分输入框 + 实时总分 + 维度标签 */
.perf-score-dialog input.score-item-in { width: 90px; padding: 5px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; }
.perf-score-dialog input.score-rate-in { width: 110px; padding: 4px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; }
.perf-score-dialog .score-total-val { font-size: 16px; font-weight: 700; color: #1E7F4F; }
.perf-view-sheet .perf-dim-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.perf-view-sheet .perf-dim-tag.bonus { color: #1E7F4F; background: #E6F4EC; }
.perf-view-sheet .perf-dim-tag.penalty { color: #C0392B; background: #FBEAE8; }
.perf-bp-host { margin: 12px 0; padding-top: 12px; border-top: 1px dashed #E4E7ED; }
.perf-bp-title { font-size: 13px; font-weight: 700; color: #1F2329; margin-bottom: 8px; }
.perf-bp-block { margin-bottom: 10px; padding: 10px 12px; background: #F7F8FA; border-radius: 8px; }
.perf-bp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.perf-bp-ind { font-size: 13px; font-weight: 600; color: #1F2329; }
.perf-bp-rule { font-size: 12px; color: #8A9099; }
.perf-bp-line { display: flex; gap: 8px; margin-bottom: 6px; align-items: flex-start; }
.perf-bp-comment { flex: 1; padding: 6px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; line-height: 1.5; min-height: 58px; resize: vertical; font-family: inherit; }
.perf-bp-score { width: 90px; padding: 5px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; }
.perf-bp-add { margin-top: 2px; }

/* 2026-11-22 续19：校准表单（浏览弹窗底部） */
.perf-calibrate-form { margin-top: 16px; padding: 14px 16px; background: #F7F8FA; border-radius: 8px; border: 1px solid #EAECF0; }
.perf-calibrate-title { font-size: 14px; font-weight: 600; color: #1F2329; margin-bottom: 10px; }
.perf-calibrate-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.perf-calibrate-label { flex: 0 0 130px; font-size: 13px; color: #4A4F57; line-height: 32px; }
.perf-calibrate-score { width: 160px; padding: 6px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; }
.perf-calibrate-reason { flex: 1; padding: 6px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; line-height: 1.5; resize: vertical; font-family: inherit; }
.perf-batch-calibrate { min-width: 480px; }

/* 2026-11-22 需求2：考核任务「操作」下拉块 */
.perf-op-menu { position: relative; display: inline-block; }
.perf-op-toggle { white-space: nowrap; }
.perf-op-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 128px;
  background: #fff; border: 1px solid #E4E7ED; border-radius: 8px; box-shadow: 0 4px 16px rgba(31,35,41,.12); padding: 4px; }
.perf-op-item { display: block; width: 100%; text-align: left; padding: 8px 12px; border: none; background: none;
  font-size: 13px; color: #1F2329; border-radius: 6px; cursor: pointer; }
.perf-op-item:hover { background: #F2F4F7; }

/* 2026-11-22 需求2：考核任务「浏览」只读绩效考核表弹窗 */
.perf-view-dialog { width: 640px; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column;
  padding: 0; overflow: hidden; }
.perf-view-dialog h3 { margin: 0; padding: 16px 20px 12px; font-size: 15px; font-weight: 600; color: #1F2329; border-bottom: 1px solid #EEF0F4; }
.perf-view-dialog .perf-view-meta { padding: 14px 20px; background: #F7F8FA; flex: 0 0 auto; }
.perf-view-sum { width: 100%; border-collapse: collapse; font-size: 13px; }
.perf-view-sum td { padding: 3px 8px 3px 0; vertical-align: top; }
.perf-view-sum td.k { color: #8A9099; white-space: nowrap; width: 76px; }
.perf-view-sum td.v { color: #1F2329; font-weight: 500; }
.perf-view-sheet { padding: 12px 20px 20px; }
.perf-view-sheet .perf-dim-module { background: #fff; border: 1px solid #E6EBF2; border-radius: 8px; margin-bottom: 10px; padding: 12px 14px; }
.perf-view-sheet .perf-dim-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.perf-view-sheet .perf-dim-title { font-size: 14px; font-weight: 700; color: #1F2329; }
.perf-view-sheet .perf-dim-weight { font-size: 12px; color: #8A9099; }
.perf-view-sheet .perf-ind-row { padding: 8px 0; border-bottom: 1px dashed #EEF0F4; }
.perf-view-sheet .perf-ind-row:last-child { border-bottom: none; }
.perf-view-sheet .perf-ind-name { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.perf-view-sheet .perf-ind-title { font-size: 13px; font-weight: 600; color: #1F2329; }
.perf-view-sheet .perf-ind-weight { font-size: 12px; color: #8A9099; }
.perf-view-sheet .perf-ind-score-line { display: flex; align-items: center; gap: 8px; }
.perf-view-sheet .perf-ind-label { font-size: 12px; color: #8A9099; }
.perf-view-sheet .perf-ind-value { font-size: 13px; font-weight: 600; color: #1E7F4F; }
.perf-view-sheet .perf-ind-value.empty { color: #B0B5BD; font-weight: 400; }
.perf-view-sheet .perf-ind-kv { margin-top: 4px; }
.perf-view-sheet .perf-ind-text { font-size: 13px; color: #5F6672; }
.perf-view-dialog .wb-dialog-actions { padding: 12px 20px; border-top: 1px solid #EEF0F4; flex: 0 0 auto; }

/* ============================================================================
   2026-11-22 续9：绩效考核表美观化（对齐设计图卡片式风格）
   设计图核心：白底卡片 + 浅灰页面底 + 绿色得分强调 + 维度卡片 + 阶梯计分规则 +
              达成率进度条 + 指标得分绿色大字
   ============================================================================ */

/* 弹窗整体：浅灰底，白色卡片区 */
.perf-view-dialog, .perf-score-dialog {
  background: #F5F6F8 !important;
  width: 640px;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
}

/* 标题区 */
.perf-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2329;
  padding: 18px 20px 12px;
  text-align: left;
  flex: 0 0 auto;
  border-bottom: 1px solid #EEF0F4;
}

/* 2026-11-22 续10：信息卡/结果卡/指标卡统一放入可滚动区（取消固定，可上拉下拉） */
.perf-scroll-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 0 8px;
  min-height: 0;
}

/* 基本信息卡 */
.perf-info-card {
  background: #fff;
  border-radius: 12px;
  margin: 10px 16px 0;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(31,35,41,.06);
}
.perf-info-row { display: flex; align-items: center; padding: 4px 0; }
.perf-info-label { flex: 0 0 72px; color: #8A9099; font-size: 13px; }
.perf-info-value { flex: 1 1 auto; color: #1F2329; font-size: 13px; font-weight: 500; }

/* 结果汇总卡（总分/等级/系数 绿色强调） */
.perf-result-card {
  background: #fff;
  border-radius: 12px;
  margin: 10px 16px 0;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(31,35,41,.06);
}
.perf-result-title { font-size: 13px; font-weight: 600; color: #1F2329; margin-bottom: 8px; }
.perf-result-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; }
.perf-result-label { color: #8A9099; font-size: 13px; }
.perf-result-value { font-size: 16px; font-weight: 700; }
.perf-result-value.score { color: #00B578; font-size: 22px; }
.perf-result-value.grade { color: #00B578; }
.perf-result-value.coef { color: #00B578; }
.perf-score-dialog input.score-rate-in {
  width: 110px; padding: 4px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px;
}

/* 指标卡片列表容器 */
.perf-view-sheet.perf-sheet-cards { padding: 12px 16px 20px; }

/* 维度卡片 */
.perf-dim-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(31,35,41,.06);
  overflow: hidden;
}
.perf-dim-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #FAFBFC;
  border-bottom: 1px solid #F0F2F5;
}
.perf-dim-card-title { font-size: 14px; font-weight: 700; color: #1F2329; }
.perf-dim-card-weight { font-size: 12px; color: #2F6FED; background: #EEF3FE; border-radius: 10px; padding: 2px 10px; }
.perf-dim-card-tag { font-size: 11px; font-weight: 600; border-radius: 10px; padding: 2px 10px; }
.perf-dim-card-tag.bonus { color: #1E7F4F; background: #E6F4EC; }
.perf-dim-card-tag.penalty { color: #C0392B; background: #FBEAE8; }
.perf-dim-card-body { padding: 6px 16px; }

/* 指标子区块 */
.perf-ind-card { padding: 12px 0; border-bottom: 1px dashed #EEF0F4; }
.perf-ind-card:last-child { border-bottom: none; }
.perf-ind-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.perf-ind-card-title { font-size: 14px; font-weight: 600; color: #1F2329; }
.perf-ind-card-weight { font-size: 12px; color: #8A9099; }

/* 目标值/完成值 + 达成率进度条 */
.perf-ind-card-tv { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.perf-ind-card-tv-left { display: flex; align-items: center; gap: 6px; }
.perf-ind-card-label { font-size: 12px; color: #8A9099; }
.perf-ind-card-tv-val { font-size: 13px; font-weight: 600; color: #1F2329; }
.perf-ind-card-tv-val.achieved { color: #2F6FED; }
.perf-ind-card-sep { color: #C9CED6; }
.perf-rate-wrap { display: flex; align-items: center; gap: 8px; flex: 1 1 160px; min-width: 140px; }
.perf-rate { flex: 1; height: 8px; background: #F0F2F5; border-radius: 4px; overflow: hidden; }
.perf-rate-fill { height: 100%; background: #4A90E2; border-radius: 4px; transition: width .2s; }
.perf-rate-pct { font-size: 12px; color: #3A4049; font-weight: 600; white-space: nowrap; }

/* 考核标准 / 计分规则 / 完成情况（kv） */
.perf-ind-card-kv { display: flex; gap: 8px; margin: 5px 0; }
.perf-ind-card-kv .perf-ind-card-label { flex: 0 0 56px; padding-top: 1px; }
.perf-ind-card-text { flex: 1 1 auto; color: #3A4049; font-size: 13px; line-height: 1.6; word-break: break-word; }

/* 阶梯计分规则逐行 */
.perf-rule-rows { flex: 1 1 auto; }
.perf-rule-line { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; font-size: 13px; }
.perf-rule-seg { color: #5F6672; }
.perf-rule-score { color: #2F6FED; font-weight: 600; }

/* 指标得分（绿色大字，右对齐） */
.perf-ind-card-score { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.perf-ind-card-score-label { font-size: 12px; color: #8A9099; }
.perf-ind-card-score-val { font-size: 20px; font-weight: 700; color: #00B578; }
.perf-ind-card-score-val.empty { color: #B0B5BD; font-weight: 400; font-size: 14px; }

/* 打分输入框 */
.perf-score-dialog input.score-item-in, .perf-view-dialog input.score-item-in {
  width: 90px; padding: 5px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 14px; font-weight: 600; color: #00B578; text-align: center;
}

/* 加分/减分块 */
.perf-dim-card.bp-dim .perf-bp-block { margin-bottom: 10px; padding: 10px 12px; background: #F7F8FA; border-radius: 8px; }
.perf-bp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.perf-bp-ind { font-size: 13px; font-weight: 600; color: #1F2329; }
.perf-bp-rule { font-size: 12px; color: #8A9099; }
.perf-bp-line { display: flex; gap: 8px; margin-bottom: 6px; align-items: flex-start; }
.perf-bp-comment { flex: 1; padding: 6px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; line-height: 1.5; min-height: 58px; resize: vertical; font-family: inherit; }
.perf-bp-score { width: 90px; padding: 5px 8px; border: 1px solid #D5D8E0; border-radius: 6px; font-size: 13px; }
.perf-bp-add { margin-top: 2px; }



/* ==================== 2026-11-24 个人档案九部分（档案详情页签）==================== */
.detail-section { margin-bottom: 18px; }
.detail-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.detail-sec-head h4 { margin: 0; font-size: 14px; font-weight: 600; color: #1F2329; }
.detail-section > h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #1F2329; }
.detail-list { border: 1px solid #EDEFF2; border-radius: 8px; overflow: hidden; }
.detail-list > .hint { margin: 0; padding: 14px; color: #A8AEB8; }
.detail-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #F0F1F4; }
.detail-row:last-child { border-bottom: none; }
.detail-row-main { flex: 1 1 auto; min-width: 0; }
.detail-row-title { font-size: 14px; color: #1F2329; font-weight: 500; }
.detail-row-meta { margin-top: 3px; font-size: 12px; color: #7A8090; word-break: break-all; }
.detail-row-desc { margin-top: 4px; font-size: 12px; color: #4E5261; word-break: break-all; }
.detail-att { margin-top: 4px; }
.detail-att a { color: #2F6FED; font-size: 12px; margin-right: 10px; }
.detail-row-ops { flex: 0 0 auto; display: flex; gap: 12px; padding-top: 2px; }
button.link { background: none; border: none; padding: 0; margin: 0; font-size: 13px; color: #2F6FED; cursor: pointer; }
button.link.danger { color: #D93026; }
button.link:hover { text-decoration: underline; }
.btn.mini { padding: 3px 10px; font-size: 12px; }

/* ==================== 2026-11-25 人力资源（hr.js）==================== */
#page-hr .quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
#page-hr .quick-grid .btn { margin: 0; width: 100%; justify-content: center; }
#page-hr .stat-v.hot { color: #D93026; }
#page-hr .stat-v.warn { color: #C4701B; }
/* 转正管理四分类统计 Tab（2026-11-28 重设计） */
#page-hr .stat-bar { flex-wrap: nowrap; }
#page-hr .stat-bar .stat { cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
#page-hr .stat-bar .stat:hover { border-color: #2F6FED; }
#page-hr .stat-bar .stat.active { border-color: #2F6FED; background: #EEF4FF; }
#page-hr .stat-bar .stat.active .stat-k { color: #2F6FED; font-weight: 600; }
#page-hr .stat-bar .stat.active .stat-v { color: #2F6FED; }

/* 内联柱状图（无图表库） */
.chart-wrap { width: 100%; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 8px; }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; height: 100%; }
.chart-pair { flex: 1 1 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.chart-bar { width: 60%; max-width: 26px; background: #4A90E2; border-radius: 3px 3px 0 0; min-height: 2px; }
.chart-bar.in { background: #4A90E2; }
.chart-bar.out { background: #F2A65A; }
.chart-x { margin-top: 6px; font-size: 10px; color: #8A9099; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chart-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: #646A73; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.chart-legend .legend-in::before { background: #4A90E2; }
.chart-legend .legend-out::before { background: #F2A65A; }

/* 横向条形列表（结构分布） */
.hbar-list { display: flex; flex-direction: column; gap: 8px; }
.hbar-line { display: flex; align-items: center; gap: 10px; }
.hbar-name { flex: 0 0 90px; font-size: 13px; color: #4E5261; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { flex: 1 1 auto; height: 18px; background: #F0F2F5; border-radius: 4px; overflow: hidden; }
.hbar-fill { height: 100%; background: #4A90E2; border-radius: 4px; transition: width .3s; }
.hbar-val { flex: 0 0 40px; font-size: 13px; color: #1F2329; font-variant-numeric: tabular-nums; }
