/* ============ VKU ERP 样式（浅色主题） ============ */
/* 修复：类选择器的 display 会覆盖 hidden 属性的 UA 默认样式，必须强制 */
[hidden] { display: none !important; }

:root {
  --brand: #1e40af;
  --brand-dark: #1e3a8a;
  --brand-light: #dbeafe;
  --bg: #f1f5f9;
  --panel: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --yellow: #d97706;
  --yellow-bg: #fffbeb;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --blue-bg: #eff6ff;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; cursor: pointer; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 45%, #3b82f6 100%);
}
.login-card {
  width: 400px; background: #fff; border-radius: 16px; padding: 36px 36px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.login-logo { text-align: center; margin-bottom: 8px; }
.login-logo .zh { font-size: 24px; font-weight: 700; color: var(--brand-dark); letter-spacing: 2px; }
.login-logo .en { font-size: 12px; color: var(--text-3); letter-spacing: 3px; margin-top: 2px; }
.login-sub { text-align: center; color: var(--text-2); font-size: 13px; margin-bottom: 24px; }
.login-card .field { margin-bottom: 14px; }
.login-card input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.login-card input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }
.login-err { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 6px; }
.login-btn {
  width: 100%; padding: 12px; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.login-btn:hover { background: var(--brand-dark); }
.login-accounts { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 12px; }
.login-accounts summary { font-size: 12px; color: var(--text-3); cursor: pointer; }
.login-accounts .acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.login-accounts .acc-grid span b { color: var(--brand); font-weight: 500; cursor: pointer; }

/* ---------- 主框架 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #0f2547; color: #cbd5e1; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 18px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar .brand .zh { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.sidebar .brand .en { font-size: 10px; color: #7c93b8; letter-spacing: 2px; margin-top: 1px; }
.nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; cursor: pointer;
  font-size: 13.5px; color: #b6c4da; border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-item.active { background: rgba(59, 130, 246, .18); color: #fff; border-left-color: #3b82f6; }
.nav-item .ico { width: 18px; text-align: center; font-size: 15px; }
.nav-item .badge { margin-left: auto; background: var(--red); color: #fff; border-radius: 9px; padding: 0 7px; font-size: 11px; line-height: 18px; }
.nav-sect { padding: 12px 18px 4px; font-size: 11px; color: #64748b; letter-spacing: 1px; }
.sidebar .user-box { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; }
.sidebar .user-box .nm { color: #fff; font-weight: 600; }
.sidebar .user-box .rl { color: #7c93b8; margin-top: 1px; }
.sidebar .user-box .logout { color: #93c5fd; cursor: pointer; margin-top: 6px; display: inline-block; }

/* v5-E#11：主内容区最小宽 1200px——窗口更小出横向滚动条，不压缩表格列；卡片区自带 wrap */
.main { flex: 1; min-width: 1200px; }
.topbar {
  background: var(--panel); border-bottom: 1px solid var(--border); padding: 12px 24px; height: 56px; box-sizing: border-box;
  display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 17px; font-weight: 600; }
.topbar .crumb { color: var(--text-3); font-size: 13px; }
.topbar .sp { flex: 1; }
/* #63 通知铃铛 */
.bell { position: relative; cursor: pointer; font-size: 17px; padding: 4px 6px; border-radius: 7px; user-select: none; }
.bell:hover { background: var(--bg); }
.bell .nbadge { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; border-radius: 9px; padding: 0 5px; font-size: 10.5px; line-height: 16px; font-weight: 700; }
.content { padding: 20px 24px 40px; }

/* ---------- 通用组件 ---------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
/* 批 V19 V19-13c 公共底（审核方 #4 11-19 17:1x 换皮第二段；主会话定的口径）：换皮时老卡片 .card 换成 u-card、老表 .tbl 换成 u-tbl 的同时带 data-legacy="1"——
 *   带版式（间距、宽度、溢出、横滚、吸顶、折行、吸右）的通用规则在原规则下面并列一条，也认带 data-legacy 的新零件；纯外观（颜色、边框、圆角、阴影、字号）不扩，换新零件就是要新样子。
 *   写成 .u-card:where([data-legacy]) / table.u-tbl:where([data-legacy])：:where 不加优先级，和原来那条一样高，叠在一起时谁赢照旧；本来就是新零件、没带 data-legacy 的不受影响。
 *   老卡片本来不裁内容（「⋯」菜单、宽表照常露出来），新零件 .u-card 自带 overflow: hidden——带 data-legacy 的照老样子不裁（同 .u-card.pop） */
:is(.card, .u-card:where([data-legacy])) + .u-card:where([data-legacy]), .u-card:where([data-legacy]) + .card { margin-top: 16px; }
.u-card[data-legacy] { overflow: visible; }
.card-hd { padding: 13px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.card-hd h3 { font-size: 14.5px; font-weight: 600; }
.card-hd .sub { color: var(--text-3); font-size: 12.5px; }
.card-hd .sp { flex: 1; }
.card-bd { padding: 16px 18px; }
.card-bd.flush { padding: 0; }

/* 批 V18 V18-33 A（审核方 #365 ★1–★3 18:45，Mike 19:08 同意设计稿）：老 .btn 就地改成新按钮体系（core-v17-ui.css 的 .u-btn）的别名，全站一起变——
 *   .btn = 次 · 中 36、.btn.sm / .btn.xs = 小 32（.btn.xs 在下面「工作台」那一段，原来高 22）、.primary 主、.danger 危险、不能点同 .u-btn:disabled（不再半透明）；
 *   用 min-height 不用 height：<label class="btn xs"> 选文件、<a class="btn"> 也一样高，个别故意折行的地方不切字；按钮里不折字（规则 5），放不下整个按钮换行。
 *   这一段在「批 V16d ②」之前（用例 5154：那段到文件末尾不许有全局 .btn 规则）；高、字号、颜色和 .u-btn 一致由用例 6047 核 */
.btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; box-sizing: border-box; border-radius: var(--u-radius-md);
  border: 1px solid var(--u-control); background: var(--u-surface); color: var(--u-ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 22px;
  white-space: nowrap; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--u-ground); }
.btn:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; }
.btn.primary { background: var(--u-brand); border-color: var(--u-brand); color: var(--u-surface); font-weight: 600; }
.btn.primary:hover { background: var(--u-brand-hover); border-color: var(--u-brand-hover); }
.btn.danger { background: var(--u-surface); color: var(--u-danger); border-color: var(--u-danger); }
.btn.danger:hover { background: var(--u-danger-soft); }
.btn.sm { min-height: 32px; padding: 4px 12px; }
.btn:disabled, .btn.primary:disabled, .btn.danger:disabled, .btn[aria-disabled="true"] { background: var(--u-neutral-soft); color: var(--u-ink-3); border-color: var(--u-neutral-soft); cursor: not-allowed; opacity: 1; }
@media (max-width: 767px) {
  .btn.sm, .btn.xs { min-height: 36px; padding: 6px 14px; }
  .btn { position: relative; }
  .btn::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
}

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 9px 14px; background: #f8fafc; color: var(--text-2);
  font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12.5px;
}
.tbl td { padding: 9px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #f8fafc; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 批 V19 V19-13c 公共底（审核方 #4 11-19 17:4x）：换过皮的表（u-tbl 带 data-legacy）格子左右内边距保留老表现在的——手机 14、≥ 768 是 12（换皮 13a #435 ★2 选 B，表不变宽）；
 *   u-tbl 自己是 16，9 列的表每列多 8，俄文 1366 会出横滚。Core.section 平铺卡片里首尾两格 16 同换皮那两条。整行悬停不进公共底（能点的行各页自己加 class="click"） */
table.u-tbl:where([data-legacy]) > thead > tr > th, table.u-tbl:where([data-legacy]) > tbody > tr > td { padding-left: 14px; padding-right: 14px; }
@media (min-width: 768px) { table.u-tbl:where([data-legacy]) > thead > tr > th, table.u-tbl:where([data-legacy]) > tbody > tr > td { padding-left: 12px; padding-right: 12px; } }
.ui-sec-bd.flush table.u-tbl:where([data-legacy]) > thead > tr > th:first-child, .ui-sec-bd.flush table.u-tbl:where([data-legacy]) > tbody > tr > td:first-child { padding-left: 16px; }
.ui-sec-bd.flush table.u-tbl:where([data-legacy]) > thead > tr > th:last-child, .ui-sec-bd.flush table.u-tbl:where([data-legacy]) > tbody > tr > td:last-child { padding-right: 16px; }
/* 批 V19 V19-13c 公共底（主会话 11-19，skin-acct 量出来的）：手机宽度（≤ 767）换过皮的表尺寸照老表——V19-13a 定的是手机上只换颜色、线、圆角，不换尺寸。
 *   值是 main f4e01f21 上老 table.tbl 在 700 宽实际画出来的（逐项量）：正文 13 / 行高 1.55（20.15）、表头 12.5 / 600 / 行高 1.55、格子上下 9（左右 14 在上面）、正文竖直靠上；
 *   表里的标签 12 / 400 / 行高 19、内边距 1px 9px（高 21，不写死）。只认带 data-legacy 的表，别的页的新零件不动 */
@media (max-width: 767px) {
  table.u-tbl:where([data-legacy]) { font-size: 13px; line-height: 1.55; }
  table.u-tbl:where([data-legacy]) > thead > tr > th { font-size: 12.5px; font-weight: 600; line-height: 1.55; padding-top: 9px; padding-bottom: 9px; }
  table.u-tbl:where([data-legacy]) > tbody > tr > td { padding-top: 9px; padding-bottom: 9px; vertical-align: top; }
  table.u-tbl:where([data-legacy]) .u-tag { font-weight: 400; line-height: 19px; padding: 1px 9px; height: auto; }
}

.tag { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; line-height: 19px; white-space: nowrap; }
.tag.gray { background: #f1f5f9; color: var(--text-2); }
.tag.blue { background: var(--blue-bg); color: var(--brand); }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.yellow { background: var(--yellow-bg); color: var(--yellow); }
.tag.purple { background: #f5f3ff; color: #7c3aed; }

.light { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.light::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.light.red { color: var(--red); }
.light.yellow { color: var(--yellow); }
.light.green { color: var(--green); }
.light.gray { color: var(--text-3); }
.light.blue { color: #2563eb; }   /* 批 V16 V16-A1：签证「已递交 · 审理中」蓝灯 */

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.stat-card .lb { font-size: 12.5px; color: var(--text-2); }
.stat-card .vl { font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-card .vl.red { color: var(--red); }
.stat-card .vl.blue { color: var(--brand); }
/* v5-A：卡片=筛选器——可点、hover 抬升、选中高亮描边 */
.stat-card.clickable { cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; user-select: none; }
.stat-card.clickable:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(30, 64, 175, .14); transform: translateY(-1px); }
.stat-card.clickable:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.stat-card.clickable.on { border-color: var(--brand); background: var(--blue-bg); box-shadow: 0 0 0 2px var(--brand-light); }
.stat-card.clickable.on .lb { color: var(--brand); font-weight: 600; }

/* 红灯看板 */
.red-panel { border: 1px solid #fecaca; background: var(--red-bg); border-radius: var(--radius); overflow: hidden; }
.red-panel .rp-hd { padding: 10px 16px; font-weight: 700; color: var(--red); display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #fecaca; font-size: 14px; }
.red-item { padding: 9px 16px; border-bottom: 1px solid #fee2e2; display: flex; gap: 10px; align-items: baseline; font-size: 13px; background: #fff; }
.red-item:last-child { border-bottom: 0; }
.red-item .dot { color: var(--red); font-weight: 700; }
.red-item .ord { color: var(--brand); font-weight: 600; white-space: nowrap; cursor: pointer; }
.red-item .dt { color: var(--text-3); font-size: 12px; white-space: nowrap; margin-left: auto; }
.yellow-item .dot { color: var(--yellow); }

/* 表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 13.5px;
  font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 60px; }

/* 抽屉与弹窗 */
.mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 44vw; min-width: 560px; max-width: 94vw; background: #fff; z-index: 101;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .15); display: flex; flex-direction: column;
  animation: slideIn .18s ease-out;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-hd { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.drawer-hd h3 { font-size: 15.5px; }
.drawer-hd .x { margin-left: auto; cursor: pointer; color: var(--text-3); font-size: 20px; padding: 2px 8px; border-radius: 6px; }
.drawer-hd .x:hover { background: var(--bg); color: var(--text); }
.drawer-bd { flex: 1; overflow-y: auto; padding: 18px 20px; }
.drawer-ft { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.mask-center { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 101; display: grid; place-items: center; }
.modal-box { width: 560px; max-width: 94vw; max-height: 88vh; background: #fff; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.modal-box .drawer-bd { padding: 16px 20px; }

/* Toast */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 9px 20px; border-radius: 8px; color: #fff; font-size: 13.5px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); animation: toastIn .2s ease-out; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
.toast.info { background: #334155; }

/* 节点时间线/甘特 */
.gantt-row { display: grid; grid-template-columns: 62px 200px 1fr; gap: 0 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #f1f5f9; }
.gantt-row:last-child { border-bottom: 0; }
.gantt-code { font-weight: 700; color: var(--brand-dark); font-size: 12.5px; }
.gantt-name { font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-bar-wrap { position: relative; height: 22px; background: #f8fafc; border-radius: 5px; }
.gantt-bar { position: absolute; top: 3px; height: 16px; border-radius: 4px; background: var(--brand-light); min-width: 4px; }
.gantt-bar.done { background: #86efac; }
.gantt-bar.doing { background: #93c5fd; }
.gantt-bar.overdue { background: #fca5a5; }
.gantt-bar.actual { top: auto; bottom: -2px; height: 3px; background: var(--green); border-radius: 2px; }
.stage-sect { padding: 8px 0 4px; font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 1px; }

/* 描述列表 */
.desc { display: grid; grid-template-columns: 110px 1fr; gap: 7px 14px; font-size: 13px; }
.desc dt { color: var(--text-3); }
.desc dd { color: var(--text); word-break: break-all; }

/* 页签 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; }
.tabs .tab { padding: 10px 16px; cursor: pointer; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs .tab .badge { background: var(--red); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex .sp { flex: 1; }
.wrap { flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.empty { padding: 34px; text-align: center; color: var(--text-3); font-size: 13px; }
.kv-pitfall { background: var(--yellow-bg); border: 1px solid #fde68a; border-radius: 7px; padding: 8px 12px; font-size: 12.5px; color: #92400e; }

@media (max-width: 900px) {
  .grid2, .form-grid { grid-template-columns: 1fr; }
  .sidebar { width: 64px; }
  .sidebar .brand .zh, .sidebar .brand .en, .nav-item .txt, .sidebar .user-box { display: none; }
}

/* ===== 计划日历 ===== */
/* v5-E#25：左右两栏同一 grid 容器、align-items:start；右侧「当日计划」标题行高 = 日历「周一…周日」表头行高（约 31px） */
#pc-layout{display:grid;grid-template-columns:minmax(560px,2fr) minmax(320px,1fr);gap:16px;align-items:start}
@media (max-width:1300px){#pc-layout{grid-template-columns:1fr}}
.pc-day-hd{padding:4px 18px !important;min-height:31px}
.pc-day-hd h3{font-size:13.5px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:#e2e8f0}
.cal-h{background:#f8fafc;text-align:center;font-size:12px;color:#64748b;padding:6px 0;font-weight:600}
.cal-d{background:#fff;min-height:86px;padding:4px 6px;cursor:pointer;position:relative}
.cal-d:hover{background:#f8fafc}
.cal-d.today .cal-n{background:#2563eb;color:#fff;border-radius:50%;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center}
.cal-d.sel{outline:2px solid #2563eb;outline-offset:-2px}
.cal-d.empty-d{background:#f8fafc;cursor:default}
.cal-n{font-size:12.5px;font-weight:600;color:#334155}
.cal-badges{position:absolute;top:4px;right:4px;display:flex;gap:3px}
.cb{font-size:10px;padding:1px 5px;border-radius:8px;font-weight:600}
.cb.green{background:#dcfce7;color:#16a34a}
.cb.red{background:#fee2e2;color:#dc2626}
.cb.blue{background:#dbeafe;color:#2563eb}
.cal-item{font-size:11px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.cal-item.done{color:#94a3b8;text-decoration:line-through}
.cal-item.od{color:#dc2626}
.cal-more{font-size:10.5px;color:#94a3b8;margin-top:1px}
.plan-item{padding:8px 0;border-bottom:1px solid #f1f5f9}
.plan-item.od{background:#fef2f2;margin:0 -16px;padding:8px 16px}
/* 批 V18 V18-33 D3（团队日历当日计划，造数截图时发现）：右栏窄，一排按钮（打开 + 一键催办 +「⋯」）不换行时把标题挤成一行两三个字——标题至少留 150 宽，放不下时整排按钮换到下一行靠右，按钮那一排自己也可以整个按钮换行 */
.plan-item > .flex { flex-wrap: wrap; }
.plan-item > .flex > div[style*="flex:1"] { flex-basis: 150px !important; }
.plan-item .u-row-acts { flex-wrap: wrap; margin-left: auto; }
.strike{text-decoration:line-through}
.ipt.sm{padding:2px 6px;font-size:12px;height:26px}
.ipt{padding:6px 10px;border:1px solid var(--border);border-radius:7px;font-size:13px;font-family:inherit;background:#fff}
.ipt:focus{outline:2px solid var(--brand-light);border-color:var(--brand)}
.kv{margin-bottom:12px}
.kv b{display:block;font-size:12.5px;color:var(--text-2);margin-bottom:4px}
.green{color:#16a34a}.red{color:#dc2626}

/* 节点编辑表单两列网格 */
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.f-grid .field{margin-bottom:0}
@media (max-width:760px){.f-grid{grid-template-columns:1fr}}

/* ===== #59 全局检索/搜索框统一美化 ===== */
.search-wrap{position:relative;display:inline-flex;align-items:center}
.search-wrap::before{
  content:'';position:absolute;left:10px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;pointer-events:none;opacity:.55;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E");
  background-size:contain;background-repeat:no-repeat;
}
.search-ipt{
  padding:7px 30px 7px 30px;border:1px solid var(--border);border-radius:18px;font-size:13px;
  font-family:inherit;background:#fff;transition:border-color .15s,box-shadow .15s;width:200px;
}
.search-ipt:hover{border-color:#cbd5e1}
.search-ipt:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-light)}
.search-ipt::placeholder{color:var(--text-3)}
.search-clear{
  position:absolute;right:7px;top:50%;transform:translateY(-50%);width:18px;height:18px;border:0;border-radius:50%;
  background:#e2e8f0;color:var(--text-2);font-size:11px;line-height:18px;text-align:center;cursor:pointer;display:none;padding:0;
}
.search-wrap.has-val .search-clear{display:block}
.search-clear:hover{background:#cbd5e1;color:var(--text)}
/* 筛选条内 select 统一圆角风格 */
.fb-sel{padding:7px 11px;border:1px solid var(--border);border-radius:18px;font-size:13px;background:#fff;font-family:inherit}
.fb-sel:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-light)}
/* 手写筛选条布局（leads 等页） */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.filter-bar select:not(.fb-sel){padding:7px 11px;border:1px solid var(--border);border-radius:18px;font-size:13px;background:#fff;font-family:inherit}
.filter-bar select:not(.fb-sel):focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-light)}
/* 外勤任务表：固定列宽，跨日/跨周表格列对齐 */
.ft-tbl{table-layout:fixed;width:100%}
.ft-tbl td{overflow:hidden;text-overflow:ellipsis}
/* 批 R R1-8：自由文字列通用截断（配 title 悬停看全文）——.clamp1 一行省略、.clamp2 两行省略。
 * 用在单元格里的 div 上（不要直接加在 td 上）：自动列宽的表里 max-width 兜住，长文字不把列撑宽、不把行拉高；固定列宽的表（.ft-tbl）跟列宽走 */
.clamp1 { display: block; max-width: var(--clamp-w, 280px); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: var(--clamp-w, 280px); min-width: 0; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
.ft-tbl .clamp1, .ft-tbl .clamp2 { max-width: none; }

/* v5-E#33：单项服务节点链——表头固定、标签链自动换行不溢出 */
.ds-tbl{table-layout:fixed;width:100%}
.ds-tags{display:flex;flex-wrap:wrap;gap:3px 5px;align-items:center;line-height:1.9}
.ds-tags .tag{padding:0 7px;font-size:11.5px;line-height:18px}
.ds-tags .ds-arr{color:var(--text-3);font-size:11px}
.ds-total{white-space:nowrap;font-weight:600;color:var(--text-2)}

/* ===== v6 UI 统一：表单控件 / 页签 / 指标卡 / 工具条 / 日历撑满 ===== */
select, textarea,
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not(.search-ipt) {
  font-family: inherit; font-size: 13px; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 7px; padding: 7px 11px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.login-card input { font-size: 14px; padding: 11px 14px; border-radius: 8px; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
select:hover, textarea:hover, input:not([type=checkbox]):not([type=radio]):not(.search-ipt):hover { border-color: #cbd5e1; }
select:focus, textarea:focus, input:not([type=checkbox]):not([type=radio]):not(.search-ipt):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
input[type=date], input[type=month] { min-width: 150px; }
input[type=number] { font-variant-numeric: tabular-nums; }
.ipt.sm { padding: 2px 6px; height: 26px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .sp { flex: 1; }

/* 页签：分段式，不依赖底线，二级页签同样清晰 */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #e9eef5; border-radius: 10px; border-bottom: 0 !important; max-width: 100%; }
.tabs .tab { padding: 7px 14px; border-radius: 8px; border-bottom: 0; margin-bottom: 0; font-size: 13.5px; color: var(--text-2); transition: background .12s, color .12s; white-space: nowrap; }
.tabs .tab:hover { color: var(--text); }
.tabs .tab.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .14); }
.card > .tabs { margin: 12px 14px 0; }
.card > .tabs + .card-bd { padding-top: 14px; }
.u-card:where([data-legacy]) > .tabs { margin: 12px 16px 0; }   /* 批 V19 V19-13c 公共底：同上两条，也认换过皮的卡片（值取现在实际画出来的：左右 16 是换皮 13a 那层盖过的） */
.u-card:where([data-legacy]) > .tabs + .card-bd { padding-top: 14px; }

/* 指标卡：等高、三行结构（标题 / 数值 / 一行说明），公式放到展开区 */
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.card-hd h3 { white-space: nowrap; }
.card-hd .sub { min-width: 0; }
.stat-card { display: flex; flex-direction: column; gap: 3px; min-height: 96px; }
.stat-card .lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .vl { font-size: 24px; line-height: 1.25; }
.stat-card .sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }
.stat-card .vl .tag { font-size: 12px; vertical-align: middle; }
details.card > summary { padding: 12px 18px; cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.card > summary::before { content: '▸'; color: var(--text-3); font-size: 12px; transition: transform .12s; }
details.card[open] > summary::before { transform: rotate(90deg); }
details.u-card:where([data-legacy]) > summary { padding: 12px 16px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }   /* 批 V19 V19-13c 公共底：折叠卡片的标题行（版式）和展开箭头（行为），也认换过皮的卡片；内边距取现在实际画出来的（换皮 13a 盖成 12 16）；字重字号、.sub 那条是纯外观不扩 */
details.u-card:where([data-legacy]) > summary::before { content: '▸'; color: var(--text-3); font-size: 12px; transition: transform .12s; }
details.u-card:where([data-legacy])[open] > summary::before { transform: rotate(90deg); }
details.card > summary .sub { font-weight: 400; color: var(--text-3); font-size: 12.5px; }

/* 计划日历：左侧日历撑满与右栏等高，不留空白 */
#pc-layout { align-items: stretch; }
#pc-layout > .card:first-child { display: flex; flex-direction: column; }
#pc-layout > .card:first-child > .card-bd { flex: 1; display: flex; }
#pc-cal .cal-grid { flex: 1; width: 100%; grid-template-rows: auto; grid-auto-rows: minmax(86px, 1fr); }

/* ===== 部门任务详情抽屉：模块化头部 / 来源卡 ===== */
.dt-head { padding: 14px 16px; background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.dt-head-row { display: flex; align-items: center; gap: 8px; }
.dt-title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.dt-ru { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.dt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dt-chip { font-size: 12px; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 2px 10px; line-height: 18px; }
.dt-src { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.dt-src-hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 13px; flex-wrap: wrap; }
.dt-src-hd .sp { flex: 1; }
.dt-src-tag { font-size: 11.5px; color: var(--brand); background: var(--blue-bg); border-radius: 6px; padding: 1px 8px; font-weight: 600; }
.dt-blk { padding: 10px 14px; border-top: 1px dashed var(--border); }
.dt-blk:first-of-type { border-top: 0; }
.dt-blk-hd { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.dt-list { margin: 0; padding-left: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 14px; }
.dt-list li { font-size: 12.5px; color: var(--text); padding-left: 14px; position: relative; line-height: 1.5; }
.dt-list li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; }
.dt-blk.ok .dt-list li::before { background: var(--green); }
.dt-blk.warn { background: var(--red-bg); border-top: 1px solid #fecaca; }
.dt-blk.warn .dt-blk-hd { color: var(--red); }
.dt-blk-txt { font-size: 12.5px; color: #991b1b; line-height: 1.6; }

/* ===== 勾选胶囊（建单产品/服务范围等多选） ===== */
.field input[type=checkbox], .field input[type=radio], input[type=checkbox], input[type=radio] { width: auto; padding: 0; margin: 0; accent-color: var(--brand); }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 16px; font-size: 13px; line-height: 18px; cursor: pointer; background: #fff; color: var(--text); transition: border-color .12s, background .12s; user-select: none; }
.pick-chip:hover { border-color: #cbd5e1; }
.pick-chip:has(input:checked) { border-color: var(--brand); background: var(--blue-bg); color: var(--brand); font-weight: 500; }
.pick-chip input { width: 14px; height: 14px; }
.pick-chip .muted { font-weight: 400; }
.field label .muted { font-weight: 400; margin-left: 4px; }

/* 胶囊在表单字段内：覆盖 .field label 的块级样式，复选框与文字垂直居中、等宽对齐 */
.field .pick-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; }
.field .pick-chip { display: inline-flex; align-items: center; margin: 0; font-size: 13px; color: var(--text); line-height: 18px; }
.field .pick-chip input { flex: none; }
.field .pick-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 会计月度周期：过程时间线 ===== */
.ac-tl { position: relative; padding-left: 18px; margin: 4px 0 6px; }
.ac-tl::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 10px; width: 2px; background: #e2e8f0; }
.ac-tl-item { position: relative; padding: 3px 0 10px; }
.ac-tl-item::before { content: ''; position: absolute; left: -17px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.ac-tl-item.remind::before { background: var(--yellow); }
.ac-tl-item.note::before { background: #94a3b8; }
.ac-tl-hd { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.ac-tl-time { color: var(--text-3); font-size: 12px; min-width: 118px; font-variant-numeric: tabular-nums; }
.ac-tl-step { font-size: 12.5px; color: var(--text-2); }
.ac-tl-step.on { color: var(--brand); font-weight: 600; }
.ac-tl-note { font-size: 12.5px; color: var(--text-2); background: #f8fafc; border-radius: 6px; padding: 6px 10px; margin-top: 5px; line-height: 1.6; }
.ac-tl-note.warn { background: var(--red-bg); color: #991b1b; }

/* 过程记录：固定高度约 5 条，超出滚动；单行条目；折叠箭头 */
.ac-tl-box { max-height: 176px; overflow-y: auto; padding-right: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px 0 12px; background: #fff; }
.ac-tl-box .ac-tl { margin: 0; }
.ac-tl-box .ac-tl-item { padding: 4px 0 6px; }
.ac-tl-hd { flex-wrap: nowrap; min-width: 0; }
.ac-tl-note { display: inline-block; background: none; padding: 0; margin: 0 0 0 4px; font-size: 12.5px; color: var(--text-2); flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-tl-note.warn { background: none; color: #b91c1c; }
.ac-tl-who { color: var(--text-3); font-size: 12px; margin-left: auto; white-space: nowrap; padding-left: 8px; }
.ac-tl-arrow { display: inline-block; width: 14px; color: var(--text-3); font-size: 12px; transition: transform .12s; }
.ac-tl-toggle:hover .ac-tl-arrow { color: var(--brand); }
.ac-cy-detail .ac-tl { max-height: 240px; overflow-y: auto; }

/* ===== 外勤当日明细抽屉：一单一卡 ===== */
.fd-card, .u-card.fd-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; border-left: 4px solid #cbd5e1; }   /* 批 V19 V19-13c：经营指标「构成」卡换成 u-card，带上 .u-card 压得住它的边框 / 圆角 / 底色（同一个优先级时 u-card 排在后面） */
.fd-card.done { border-left-color: var(--green); }
.fd-card.fail { border-left-color: var(--red); }
.fd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fd-time { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-no { font-size: 12px; color: var(--text-3); background: var(--bg); border-radius: 6px; padding: 1px 7px; }
.fd-client { font-size: 14px; font-weight: 600; margin: 8px 0 10px; }
.fd-client a { font-weight: 500; font-size: 13px; margin-left: 4px; }
.fd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.fd-cell { background: #f8fafc; border-radius: 8px; padding: 8px 10px; }
.fd-k { font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; }
.fd-v { font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-line; word-break: break-word; }
.fd-blk { margin-top: 10px; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chip { font-size: 12px; background: var(--blue-bg); color: var(--brand); border-radius: 12px; padding: 2px 10px; }
.fd-result { margin-top: 10px; background: var(--green-bg); border: 1px solid #bbf7d0; border-radius: 8px; padding: 8px 10px; }
.fd-result.fail { background: var(--red-bg); border-color: #fecaca; }
.fd-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
/* 申报日历：逾期清单横幅 */
.ac-od-box { background: var(--red-bg); border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; }
.ac-od-hd { color: #991b1b; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.ac-od-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 2px 24px; }
.ac-od-item { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #fecaca; white-space: nowrap; }
.ac-od-item:last-child, .ac-od-item:nth-last-child(2) { border-bottom: 0; }
.ac-od-item b { overflow: hidden; text-overflow: ellipsis; }
.ac-od-item .muted { font-size: 12px; }
.ac-od-item .tag { min-width: 104px; text-align: center; }
.ac-od-item .u-tag { min-width: 104px; justify-content: center; }   /* 批 V19 V19-13c：逾期清单的标签换成 u-tag（flex，用 justify-content 居中） */
.ac-od-item a { min-width: 48px; text-align: right; }

/* ===== 外勤卡片补充：操作留痕 / 订单链接 / 列表行可点 ===== */
.fd-traces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fd-trace { font-size: 12px; color: var(--text-2); background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 2px 9px; }
.fd-foot { align-items: center; gap: 8px; }
.fd-foot .sp { flex: 1; }
.fd-olink { font-weight: 500; font-size: 13px; margin-left: 6px; white-space: nowrap; }
tr.ft-row { cursor: pointer; }
/* 去办理：二选一（任务摘要条 + 两张选项卡） */
.go-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.go-sum b { color: var(--text); font-size: 14px; }
.go-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.go-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: var(--text); transition: transform .12s, box-shadow .12s, border-color .12s; }
.go-opt:hover { border-color: var(--brand); box-shadow: 0 8px 22px rgba(30, 64, 175, .14); transform: translateY(-2px); }
.go-opt.primary { border-color: #93c5fd; background: linear-gradient(180deg, #eff6ff, #fff); }
.go-opt b { font-size: 15px; }
.go-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; line-height: 1; background: #f1f5f9; }
.go-ic.walk { background: var(--green-bg); }
.go-ic.print { background: var(--blue-bg); }
.go-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.55; min-height: 58px; }
.go-cta { font-size: 12.5px; font-weight: 600; color: var(--brand); margin-top: 2px; }
.go-opt:not(.primary) .go-cta { color: var(--green); }
/* 办理中（绿色）与复核块 */
/* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：外勤「办理中」是状态、点不了——和「不能点」一个样子（字深一点），不再是绿色实心；.fd-go 不能点时照通用的不能点（不再单独半透明） */
.btn.ft-doing, .btn.ft-doing:hover { background: var(--u-neutral-soft); border-color: var(--u-neutral-soft); color: var(--u-ink-2); cursor: default; font-weight: 600; }
.fd-review { margin-top: 10px; border-radius: 8px; padding: 8px 10px; border: 1px solid var(--border); background: #f8fafc; }
.fd-review.wait { background: var(--yellow-bg); border-color: #fde68a; }
.fd-review.back { background: var(--red-bg); border-color: #fecaca; }
.fd-review.ok { background: var(--blue-bg); border-color: #bfdbfe; }
/* 复核弹窗 */
.rv-sum { border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; margin-bottom: 12px; background: #f8fafc; }
.rv-row { display: flex; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #e2e8f0; }
.rv-row:last-child { border-bottom: 0; }
.rv-k { color: var(--text-3); white-space: nowrap; min-width: 76px; }
.rv-v { color: var(--text); }
.rv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rv-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.rv-opt b { font-size: 14px; }
.rv-opt.on { border-color: var(--brand); background: var(--blue-bg); box-shadow: 0 0 0 2px var(--brand-light); }
.rv-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.rv-ic.ok { background: var(--green-bg); color: var(--green); }
.rv-ic.back { background: var(--red-bg); color: var(--red); }
/* ===== 订单摘要抽屉（全系统共用） ===== */
.of-head { padding: 14px 16px; background: linear-gradient(180deg, #f8fafc, #fff); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.of-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.of-row .sp { flex: 1; }
.of-no { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.of-client { font-size: 14.5px; font-weight: 600; margin-top: 6px; }
.of-meta, .of-svc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.of-prog { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.of-pcard { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.of-pv { font-size: 20px; font-weight: 700; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.of-pv .muted { font-size: 13px; font-weight: 400; }
.prog { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; background: var(--brand); border-radius: 4px; transition: width .2s; }
.prog-fill.green { background: var(--green); }
.of-terms { margin-top: 10px; background: var(--yellow-bg); border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; }
.of-nodes { display: flex; flex-direction: column; gap: 6px; }
.of-node { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px; background: #f8fafc; border-radius: 8px; }
.of-node-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.amber { background: var(--yellow-bg); color: #b45309; }

/* ===== 项目 360 节点排程：外勤任务 ===== */
.gantt-dates { width: 196px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-ft { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gantt-ft-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 18px; padding: 2px 10px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.gantt-ft-chip:hover { border-color: var(--brand); color: var(--brand); }
.gantt-ft-chip.doing { border-color: #93c5fd; background: var(--blue-bg); color: var(--brand); }
.gantt-ft-chip.done { border-color: #bbf7d0; background: var(--green-bg); color: var(--green); }
.gantt-ft-chip.fail { border-color: #fecaca; background: var(--red-bg); color: var(--red); }
.gantt-ft-chip.wait { border-color: #fde68a; background: var(--yellow-bg); color: var(--yellow); }
.gantt-ft-mark { position: absolute; top: 1px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; border: 1.5px solid #94a3b8; display: grid; place-items: center; font-size: 11px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.gantt-ft-mark.doing { border-color: var(--brand); }
.gantt-ft-mark.done { border-color: var(--green); }
.gantt-ft-mark.fail { border-color: var(--red); }
.gantt-ft-mark.wait { border-color: var(--yellow); }
.gantt-row.virtual { background: #faf5ff; border-radius: 6px; }
.gantt-ft-mark.multi { border-color: var(--brand); color: var(--brand); font-weight: 700; font-size: 11.5px; }

/* ===== 项目 360 头部返回 / 订单列表定位 / 文本换行 ===== */
.od-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.od-back { padding: 3px 10px; }
tr.row-focus td { background: #fef9c3 !important; transition: background 1.2s; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
::placeholder { color: #a9b4c2; }

/* 系统设置：金额可见权限 */
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.av-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.av-role { flex: 1; font-size: 13px; font-weight: 600; }
.av-row .ipt { width: 150px; }

/* ===== 全站文本框：说明/备注/原因类一律可拉大（右下角拖动） ===== */
textarea { resize: vertical; min-height: 64px; line-height: 1.55; font-family: inherit; }
textarea.ipt { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; font-size: 13px; box-sizing: border-box; }

/* ======================================================================
 * 2026-10-08 界面优化（Mike 反馈 1–4）：应用外框固定 + 悬浮侧边栏 + 新铃铛 + 统一日期组件
 * 写在文件末尾，覆盖前面的同名规则；登录页不受影响（body.app-shell 只在登录后加）
 * ====================================================================== */

/* ① 猛滑不露白：整页不滚，只有主区滚；关闭橡皮筋回弹 */
html { background: var(--bg); }   /* 批 V19 V19-19（审核方 #471）：整页不再 overscroll-behavior: none——Mac 触控板、iPhone 滚到头有回弹；抽屉 / 弹窗 / 下拉里的 contain 照旧 */
body { }
body.app-shell { overflow: hidden; }
body.app-shell .layout { height: 100vh; min-height: 0; overflow: hidden; }
body.app-shell .main { flex: 1; min-width: 0; height: 100vh; overflow: auto; scrollbar-gutter: stable; }
body.app-shell .main > .content { min-width: 1100px; }   /* #11（Mike 2026-10-09 放宽）：主区内容最小 1100px——1366 屏去掉侧栏与边距后正好放下、不出横向滚动条；窗口再窄才出横向滚动，页面不变形 */
body.app-shell .main > .topbar { left: 0; }   /* 顶栏随可见宽度、横向滚动时也钉住（铃铛始终可见） */

/* ③ 悬浮侧边栏：上下各留 0.5cm、左侧 12px、圆角、投影 */
body.app-shell .sidebar {
  position: relative; top: auto; width: 224px; height: calc(100vh - 1cm); margin: 0.5cm 0 0.5cm 12px;
  border-radius: 18px; overflow: hidden; color: #cbd5e1;
  background: linear-gradient(180deg, #16376a 0%, #0f2850 48%, #0a1d3c 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 14px 34px rgba(15, 37, 71, .26), 0 2px 8px rgba(15, 37, 71, .16);
}
.sidebar .brand { padding: 18px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sidebar .brand .zh { font-size: 17px; letter-spacing: 2px; }
.sidebar .brand .en { color: #8ea4c8; letter-spacing: 2.5px; }
.sidebar .nav { padding: 6px 10px 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.sidebar .nav::-webkit-scrollbar { width: 6px; }
.sidebar .nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 3px; }
.sidebar .nav::-webkit-scrollbar-track { background: transparent; }
.sidebar .nav-sect { padding: 14px 12px 6px; font-size: 11px; color: #6f88ae; letter-spacing: 1.5px; }
.sidebar .nav-item {
  border-left: 0; border-radius: 10px; padding: 9px 12px; margin: 1px 0; color: #b9c7dd;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.sidebar .nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .nav-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(59, 130, 246, .5), rgba(59, 130, 246, .2));
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .22), 0 6px 14px rgba(15, 37, 90, .35);
}
.sidebar .nav-item .ico { width: 20px; opacity: .9; }
.sidebar .nav-item.active .ico { opacity: 1; }
.sidebar .nav-item .badge { box-shadow: 0 0 0 2px rgba(15, 40, 80, .9); }
/* 走查 WB05（10-14）：员工「我的工作台」两个数——红色 = 今天的待办（含逾期），描边 = 待我处理 */
.nav-item .badge + .badge { margin-left: 4px; }
.sidebar .nav-item .badge.b2 { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.sidebar .user-box {
  margin: 6px 10px 10px; padding: 10px 10px 10px 12px; border-radius: 12px; border-top: 0;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07);
}
.sidebar .user-box .av {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 2px 6px rgba(59, 130, 246, .4);
}
.sidebar .user-box .meta { flex: 1; min-width: 0; }
.sidebar .user-box .nm, .sidebar .user-box .rl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user-box .logout {
  margin: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #9fb4d6; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.sidebar .user-box .logout svg { width: 16px; height: 16px; }
.sidebar .user-box .logout:hover { background: rgba(239, 68, 68, .18); color: #fecaca; }

/* 顶栏：半透明磨砂，随主区吸顶 */
body.app-shell .topbar {
  background: #fff;   /* 批 V19 V19-19：顶栏不再 backdrop-filter 模糊（滚动时整条重绘），实底 */
  border-bottom: 1px solid rgba(226, 232, 240, .9); padding: 12px 28px;
}
.top-date {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px;
  font-size: 12.5px; color: var(--text-2); background: #f1f5f9; border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.top-date svg { width: 14px; height: 14px; color: var(--text-3); }

/* ② 铃铛：线条图标 + 圆形按钮 + 胶囊角标 + 新消息轻摆 */
.bell {
  position: relative; width: 36px; height: 36px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; color: var(--text-2); background: #f1f5f9; border: 1px solid var(--border); font-size: 0;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.bell svg { width: 18px; height: 18px; transform-origin: 50% 8%; }
.bell:hover { background: var(--brand-light); color: var(--brand); border-color: #bfdbfe; box-shadow: 0 2px 8px rgba(30, 64, 175, .15); }
.bell:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-light); }
.bell.has-unread { color: var(--brand); }
.bell .nbadge {
  position: absolute; top: -5px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: 9px; border: 2px solid #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, #f43f5e, #dc2626); color: #fff; font-size: 10px; line-height: 1; font-weight: 700;
  box-shadow: 0 2px 6px rgba(220, 38, 38, .35); font-variant-numeric: tabular-nums;
}
.bell.ring svg { animation: bell-ring .9s ease; }
@keyframes bell-ring { 0% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(0); } }

/* ④ 统一日期组件（public/js/datepicker.js）：输入框右侧日历图标 + 弹出面板 */
input.dp-input {
  min-width: 150px; cursor: pointer; padding-right: 32px !important; font-variant-numeric: tabular-nums;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 16px 16px;
}
input.dp-input[data-dp=datetime-local] { min-width: 190px; }
/* 批 R R1-5：时间框（原生 type=time 已由组件接管）——右侧钟表图标，最小宽够放「09:30」和图标 */
input.dp-input[data-dp=time] { min-width: 104px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E"); }
input.dp-input.sm, .ipt.sm.dp-input { background-size: 14px 14px; background-position: right 6px center; padding-right: 26px !important; }
input.dp-input:hover { border-color: #cbd5e1; }
input.dp-input.dp-open { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
input.dp-input.dp-bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-bg) !important; }
input.dp-input:disabled, input.dp-input[readonly] { cursor: default; }
.dp-pop {
  position: fixed; z-index: 400; width: 304px; padding: 12px; box-sizing: border-box; user-select: none;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; font-size: 13px; color: var(--text);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
  animation: dp-in .12s ease-out;
}
@keyframes dp-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.dp-hd { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.dp-title { flex: 1; font-weight: 600; font-size: 14px; padding: 5px 8px; border-radius: 8px; cursor: pointer; }
.dp-title:hover { background: #f1f5f9; }
.dp-title .caret { color: var(--text-3); font-size: 11px; margin-left: 4px; }
.dp-nav { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.dp-nav:hover { background: #f1f5f9; color: var(--brand); }
.dp-nav svg { width: 16px; height: 16px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 11.5px; color: var(--text-3); padding: 4px 0 6px; }
.dp-wd.we { color: #f87171; }
.dp-d {
  position: relative; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  font-variant-numeric: tabular-nums; transition: background .1s;
}
.dp-d:hover { background: var(--blue-bg); }
.dp-d.we { color: #94a3b8; }
.dp-d.out { color: #cbd5e1; }
.dp-d.focus { background: #f1f5f9; }
.dp-d.today { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); font-weight: 600; }
.dp-d.sel { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(30, 64, 175, .3); }
.dp-d.dis { color: #e2e8f0; cursor: not-allowed; background: none !important; box-shadow: none; }
.dp-d .dots { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.dp-d .dot { width: 4px; height: 4px; border-radius: 50%; }
.dp-d .dot.cn { background: #ef4444; }
.dp-d .dot.kz { background: #0ea5e9; }
.dp-d.sel .dot { background: #fff; }
.dp-d .ban { position: absolute; top: 1px; right: 3px; font-size: 8.5px; line-height: 1; color: #d97706; font-weight: 600; }
.dp-d.sel .ban { color: #fde68a; }
.dp-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-m { height: 42px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.dp-m:hover { background: var(--blue-bg); }
.dp-m.cur { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); font-weight: 600; }
.dp-m.sel { background: var(--brand); color: #fff; font-weight: 600; }
.dp-m.dis { color: #e2e8f0; cursor: not-allowed; background: none !important; }
/* 批 R R1-5：时间组件 .dp-tc（时间框弹层 .dp-tm；日期时间弹层 .dp-dt = 左日历 + 右时间，原来的两个原生下拉不用了） */
.dp-pop.dp-tm { width: 236px; }
.dp-pop.dp-dt { width: 470px; }
.dp-body { display: flex; gap: 12px; align-items: stretch; }
.dp-body .dp-cal { width: 280px; flex: none; }
.dp-body .dp-tc { flex: 1; min-width: 0; border-left: 1px solid var(--border); padding-left: 12px; }
.dp-tc-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 2px 6px; font-size: 12.5px; color: var(--text-2); }
.dp-tc-hd b { font-size: 16px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.dp-tc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dp-ch { text-align: center; font-size: 11.5px; color: var(--text-3); padding: 0 0 4px; }
.dp-col { height: 168px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: 9px; background: #f8fafc; padding: 2px; box-sizing: border-box; }
.dp-ci { height: 28px; border-radius: 7px; display: grid; place-items: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-ci:hover { background: var(--blue-bg); }
.dp-ci.sel { background: var(--brand); color: #fff; font-weight: 600; }
.dp-ci.dis, .dp-q.dis { color: #cbd5e1; cursor: not-allowed; background: none !important; }
.dp-qk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.dp-q { text-align: center; font-size: 12px; line-height: 24px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font-variant-numeric: tabular-nums; color: var(--text-2); }
.dp-q:hover { border-color: #93c5fd; color: var(--brand); background: var(--blue-bg); }
.dp-q.sel { border-color: var(--brand); color: var(--brand); font-weight: 600; }
@media (max-width: 520px) { .dp-pop.dp-dt { width: 304px; } .dp-body { flex-direction: column; } .dp-body .dp-cal { width: auto; } .dp-body .dp-tc { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 6px; } .dp-dt .dp-col { height: 120px; } }
.dp-ft { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.dp-legend { flex: 1; display: flex; gap: 8px; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
/* 走查 Q07（10-14）：工作台等俄文页的日期组件也出俄文后，按钮变长——俄文面板（.dp-ru）图例放不下时按钮换到下一行，不再把图例截成「Праздни…」；中文排法不变 */
.dp-ru .dp-ft { flex-wrap: wrap; row-gap: 4px; }
.dp-ru .dp-ft .dp-legend { min-width: max-content; }
.dp-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 3px; vertical-align: 1px; }
.dp-btn { font-size: 12.5px; padding: 5px 10px; border-radius: 7px; cursor: pointer; color: var(--brand); white-space: nowrap; }
.dp-btn:hover { background: var(--blue-bg); }
.dp-btn.muted { color: var(--text-2); }
.dp-btn.primary { background: var(--brand); color: #fff; }
.dp-btn.primary:hover { background: var(--brand-dark); }
.dp-tip { position: fixed; z-index: 401; pointer-events: none; background: #0f172a; color: #fff; font-size: 11.5px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 12px rgba(15, 23, 42, .25); }

/* ⑤ 右侧抽屉同样悬浮（Mike 2026-10-08 晚追加）：上下各 0.5cm、右侧 12px、圆角、投影；头尾固定、中间滚动 */
/* 批 V16 V16-5b（修改要求_2026-11-12_批V16_1112反馈 第一节 mm V16-5 ②「弹窗快速滚动闪屏」，Mike 13；审核方 #177 11-13 15:31 定「直接做」）：
   遮罩的 backdrop-filter 模糊在 Mac 的 Chrome / Safari 上滚动时整层重绘，是常见的闪因——去掉模糊、换深一点的半透明纯色（.36 → .45 补上没了模糊的遮挡感）；
   抽屉 / 弹窗自成合成层（will-change + contain: paint），滚动区滚到头不带着整页抖（overscroll-behavior: contain）。顶栏那处模糊这次不动。只改样式，随时能退 */
.mask, .mask-center { background: rgba(15, 23, 42, .45); }
.modal-box, .drawer { will-change: transform; contain: paint; }
.drawer-bd, .modal-box .drawer-bd { overscroll-behavior: contain; }
.drawer {
  top: 0.5cm; bottom: 0.5cm; right: 12px; max-width: calc(100vw - 24px);
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(226, 232, 240, .9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22), 0 4px 14px rgba(15, 23, 42, .10);
  animation: drawerIn .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes drawerIn { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-hd { padding: 16px 22px; background: linear-gradient(180deg, #fff, #fbfcfe); border-bottom: 1px solid var(--border); }
.drawer-hd h3 { font-size: 16px; font-weight: 600; }
.drawer-hd .x {
  width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-size: 20px; line-height: 1; color: var(--text-2); background: #f1f5f9; transition: background .15s, color .15s;
}
.drawer-hd .x:hover { background: #e2e8f0; color: var(--text); }
.drawer-bd { padding: 18px 22px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.drawer-bd::-webkit-scrollbar { width: 8px; }
.drawer-bd::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; border: 2px solid #fff; }
.drawer-ft { padding: 12px 22px; background: #fbfcfe; border-top: 1px solid var(--border); }
.modal-box { border-radius: 16px; overflow: hidden; border: 1px solid rgba(226, 232, 240, .9); animation: modalIn .18s cubic-bezier(.2, .8, .2, 1); }
@keyframes modalIn { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ⑥ 抽屉内容模块化（Mike 2026-10-08 晚：详情抽屉「没有模块化」）——core.js modularize() 自动分卡 */
.drawer-bd { background: #f5f7fb; }
.drawer-bd.mods > .flex.wrap:first-child, .drawer-bd.mods > .flex:first-child { margin-bottom: 12px !important; }
.mod {
  background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; margin-bottom: 12px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.mod-hd { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-bottom: 1px solid #eef2f7; }
.mod-ic {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--blue-bg);
}
.mod-ic svg { display: block; width: 14px; height: 14px; }   /* 走查 Q24（10-14）：模块图标改 icons.js 线性图标 */
.mod-t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.mod-count { font-size: 11.5px; color: var(--text-2); background: #f1f5f9; border-radius: 10px; padding: 1px 8px; }
.mod-bd { padding: 12px 16px 14px; font-size: 13px; color: var(--text); }
.mod-bd > * + * { margin-top: 10px; }
.mod-bd > .mt8, .mod-bd > .mt16, .mod-bd > .mb8 { margin-bottom: 0 !important; }
/* 键值：两栏 + 分隔线 */
.mod .desc { grid-template-columns: 112px 1fr; gap: 0 14px; }
.mod .desc dt, .mod .desc dd { padding: 8px 0; border-bottom: 1px dashed #eef2f7; line-height: 1.55; }
.mod .desc dt { color: var(--text-3); font-size: 12.5px; }
.mod .desc dt:nth-last-child(2), .mod .desc dd:last-child { border-bottom: 0; }
.mod .desc.mt16 { margin-top: 0; }
/* 步骤：编号圆点 + 连接线 */
.mod-steps { list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.mod-steps > li { position: relative; padding-left: 36px; counter-increment: st; line-height: 1.65; }
.mod-steps > li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--brand-light);
}
.mod-steps > li:not(:last-child)::after { content: ''; position: absolute; left: 11.5px; top: 28px; bottom: -12px; width: 1px; background: #d6deea; }
/* 打勾列表 */
.mod-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mod-bullets > li { position: relative; padding-left: 26px; line-height: 1.6; }
.mod-bullets > li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
/* 核对行（复选框） */
.mod-bd label:has(> input[type=checkbox]) {
  display: flex !important; gap: 10px !important; align-items: flex-start; padding: 9px 12px; border: 1px solid #e6ebf2; border-radius: 10px;
  background: #fbfcfe; transition: border-color .15s, background .15s; line-height: 1.55;
}
.mod-bd label:has(> input[type=checkbox]):hover { border-color: #bfdbfe; background: var(--blue-bg); }
.mod-bd label:has(> input[type=checkbox]:checked) { border-color: #bbf7d0; background: var(--green-bg); }
.mod-bd label > input[type=checkbox] { margin-top: 3px !important; width: 16px; height: 16px; }
/* 材料等标签 */
.mod-bd > .flex.wrap .tag { padding: 3px 10px; border-radius: 14px; }
/* 提示卡：坑点 / 说明 */
.drawer-bd .mod-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; font-size: 13px; line-height: 1.65; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.drawer-bd .mod-alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.drawer-bd .mod-alert.info { background: #faf5ff; border: 1px solid #e9d5ff; color: #6b21a8; }
.mod-bd .kv-pitfall { border-radius: 10px; }
/* 抽屉底部的说明文字 */
.drawer-bd.mods > .small.muted:last-child { padding: 2px 4px; line-height: 1.6; }
/* 部门任务等已有分块的抽屉：统一成同款卡片 */
.drawer-bd .dt-head, .drawer-bd .dt-src { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.drawer-bd .dt-src-hd { background: #fff; border-bottom: 1px solid #eef2f7; padding: 11px 16px; }
.drawer-bd .dt-blk { padding: 12px 16px; }
.drawer-bd .dt-blk.warn { background: #fffbeb; border-top: 1px solid #fde68a; }
.drawer-bd .dt-blk.warn .dt-blk-hd { color: #b45309; }
.drawer-bd .dt-blk.warn .dt-blk-txt { color: #92400e; }
/* 抽屉里的普通卡片（人事等页面已用 .card 的） */
.drawer-bd > .card { border-radius: 14px; border-color: #e6ebf2; }
.drawer-bd .mod-foot { padding: 4px 6px 2px; line-height: 1.6; }
/* 模块化补充：抽屉头部卡、操作条、模块里的子卡片、危险提示 */
.drawer-bd .mod-hero { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.drawer-bd .mod-actions { background: #fff; border: 1px solid #e6ebf2; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px !important; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); align-items: center; }
.drawer-bd .mod-alert.danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.mod-bd > .card.mod-sub { border-radius: 10px; box-shadow: none; background: #fbfcfe; border-color: #eef2f7; margin: 0 !important; }
.mod-bd > .card.mod-sub + .card.mod-sub { margin-top: 8px !important; }
.mod-bd > .u-card:where([data-legacy]).mod-sub { margin: 0 !important; }   /* 批 V19 V19-13c 公共底：老抽屉模块化（core.js modularize）收进模块的卡片，间距也认换过皮的卡片（外观那几样不扩） */
.mod-bd > .u-card:where([data-legacy]).mod-sub + .u-card:where([data-legacy]).mod-sub { margin-top: 8px !important; }
.mod-bd > #vd-steps { margin: 0; }
.mod-bd > .empty { padding: 14px 0; }

/* ⑦ 2026-10-08 Mike 圈出的两处：侧边栏与主区留间距、顶栏与页面同色（滚动后磨砂）、菜单滚动淡出；组织图树状连接线 */
body.app-shell .sidebar { margin: 0.5cm 12px 0.5cm 12px; }
body.app-shell .topbar {
  background: #f1f5f9; border-bottom: 1px solid transparent; padding: 12px 24px;   /* 批 V19 V19-19：实底，和页面同色；不再模糊 */
  transition: background .2s, border-color .2s, box-shadow .2s;
}
body.app-shell .topbar.scrolled { background: #fff; border-bottom-color: rgba(226, 232, 240, .95); box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .25); }
body.app-shell .bell, body.app-shell .top-date { background: #fff; }
.sidebar .nav.ft { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
.sidebar .nav.fb { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22px); mask-image: linear-gradient(to top, transparent 0, #000 22px); }
.sidebar .nav.ft.fb { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.org-children { margin-left: 18px; padding-left: 22px; }
.org-child { position: relative; }
.org-child::before { content: ''; position: absolute; left: -22px; top: -8px; bottom: 0; border-left: 2px solid #d3dce8; }
.org-child:last-child::before { bottom: auto; height: 35px; }
.org-child::after { content: ''; position: absolute; left: -22px; top: 26px; width: 18px; border-top: 2px solid #d3dce8; }
.org-child > .org-card::before { content: ''; position: absolute; left: -7px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #93c5fd; z-index: 1; }
.org-card { position: relative; }
.org-parent { font-size: 11.5px; color: var(--text-2); background: #f1f5f9; border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px; }

/* ⑧ 开票流程（Mike 2026-10-08 六条）：多行抬头、专票 / 普票胶囊、发票列表整行可点、详情抽屉流程条 */
.field textarea.ia-title { min-height: 104px; line-height: 1.6; resize: vertical; }
.ia-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ia-pill { position: relative; cursor: pointer; margin: 0; }
.ia-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ia-pill span { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 17px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-size: 13px; transition: all .15s; }
.ia-pill:hover span { border-color: #93c5fd; }
.ia-pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 6px rgba(30, 64, 175, .25); }
.ia-pill input:focus-visible + span { outline: 2px solid var(--brand-light); }
.ia-order, .ia-sum { padding: 9px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--border); font-size: 13px; }
.ia-sum { margin-bottom: 12px; }
.ia-note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--blue-bg); border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 13px; line-height: 1.6; }
.inv-tbl tr.inv-row { cursor: pointer; }
.inv-tbl tr.inv-row:hover td { background: #f5f9ff; }
.inv-ttl { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 260px; line-height: 1.5; }
.inv-next { min-width: 92px; max-width: 200px; }
.inv-tbl td.nw { white-space: nowrap; }
@keyframes invFlash { 0%, 30% { background: #fef3c7; } 100% { background: transparent; } }
.inv-tbl tr.inv-flash td { animation: invFlash 2.6s ease-out; }
.inv-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-hero-top { display: flex; align-items: center; gap: 10px; }
.inv-amt { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: .2px; }
.inv-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 14px; }
.inv-step { display: flex; gap: 8px; align-items: flex-start; min-width: 0; flex: 0 1 auto; }
.inv-step .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #e2e8f0; color: #64748b; }
.inv-step b { font-size: 13px; }
.inv-step .small { color: var(--text-3); line-height: 1.45; overflow-wrap: anywhere; }
.inv-step.done .dot { background: var(--green); color: #fff; }
.inv-step.cur .dot { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-light); }
.inv-step.cur .small { color: var(--brand); }
.inv-step.err .dot { background: var(--red); color: #fff; }
.inv-step.err .small { color: var(--red); }
.inv-step.off { opacity: .55; }
.inv-step-line { flex: 1 1 24px; min-width: 16px; height: 2px; background: #e2e8f0; margin: 11px 8px 0; border-radius: 1px; }
.inv-title-full { white-space: pre-wrap; word-break: break-word; line-height: 1.7; padding: 10px 14px; background: #f8fafc; border: 1px dashed #dbe3ee; border-radius: 10px; font-size: 13.5px; }

/* ⑨ 刷新不跳顶不闪屏（2026-10-09 九项反馈第 7 条） */
/* 定格：刷新期间旧画面的复制品盖在原位（.rf-ghost），真正的内容在下面隐身重画（core.js refreshMain）；
 * 刷新期间关闭主区滚动锚定，隐身内容变高变矮时浏览器不自己挪滚动位置 */
.main.rf-frz { position: relative; overflow-anchor: none; }
.content.rf-hidden { visibility: hidden !important; }
.rf-ghost { pointer-events: none !important; user-select: none; -webkit-user-select: none; }
.rf-ghost, .rf-ghost * { animation: none !important; transition: none !important; }   /* 复制品里的高亮闪烁等动画不重放 */
/* 顶栏底部细进度条：刷新超过 0.15 秒才显出（快的刷新不闪），结束淡出 */
.topbar .rf-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease; z-index: 1; }
.topbar .rf-bar::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 36%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(30, 64, 175, 0), var(--brand) 45%, #3b82f6 70%, rgba(59, 130, 246, 0));
  transform: translateX(-100%);
}
.topbar.rf-busy .rf-bar { opacity: 1; transition-delay: .15s; }
.topbar.rf-busy .rf-bar::before { animation: rfBar 1.1s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes rfBar { from { transform: translateX(-100%); } to { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) {
  .topbar.rf-busy .rf-bar::before { animation: none; transform: none; width: 100%; opacity: .55; }
}
/* 定格期间主区是 position:relative，整块会画到侧边栏右缘投影上面（10-09 复查：阴影变浅）；
 * 定格时外框带 .rf-frz-l，侧边栏临时抬一层，投影照旧盖在主区上 */
.layout.rf-frz-l > .sidebar { z-index: 1; }

/* ===== 人事附件组（2026-10-09 九项反馈第 2 条：制度版本 / 招聘简历 / 清单任务凭证；类名前缀 hrf-） ===== */
.hrf-err { background: var(--red-bg); border: 1px solid #fecaca; border-radius: 7px; padding: 8px 12px; font-size: 12.5px; color: var(--red); line-height: 1.6; }
.hrf-err[hidden] { display: none; }
.hrf-err > div + div { margin-top: 2px; }
.hrf-carry { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; font-weight: normal; }
.hrf-carry input { margin: 0; }
.hrf-carry-f { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; }
.hrf-up { margin-top: 6px; }
.hrf-evf { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }

/* ===== 2026-10-09 九项反馈 misc 组（第 2、6、7 条）：计划日历新版月格 / 主数据文件上传条 / 股东证件上传区 =====
 * 只用 .pc2-* / .pm-* 前缀；计划日历两栏仍是 #pc-layout 这个 grid（上面 v5-E#25 的列宽、等高规则照用） */
.pc2-cal { min-width: 0; display: flex; flex-direction: column; }
.pc2-cal > .vc { flex: 1 1 auto; }
.pc2-tools { display: flex; align-items: center; gap: 8px; }
.pc2-user { width: 150px; height: 30px; padding: 4px 8px; }
.pc2-day { margin: 0; display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 16px; border-color: #e6ebf2; overflow: hidden; }
/* 右侧标题行高 = 日历头部行高（JS 量出来写进 --pc2-hd-h；默认 55px = 头部 12+30+12 + 1px 底线） */
.pc2-day-hd { box-sizing: border-box; height: var(--pc2-hd-h, 55px); padding-top: 0; padding-bottom: 0; flex: none; }
.pc2-day-hd h3 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc2-day-bd { flex: 1 1 auto; overflow-y: auto; max-height: 640px; }
/* 两栏时：右栏高度跟左侧日历走（内容多了在栏内滚动，不把整行撑高）；≤1300px 单栏时右栏按内容高、最高 640px */
@media (min-width: 1301px) {
  .pc2-day-bd { flex: 1 1 0; min-height: 0; max-height: none; contain: size; }
}
.pc2-lg-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); white-space: nowrap; }
.pc2-lg-badge .cb { font-style: normal; margin-left: 4px; }
/* 订单 360 › 公司与主数据 › 主数据文件：卡片底部的紧凑上传条 */
.pm-mf-ft { padding: 10px 18px; border-top: 1px solid var(--border); }
/* 编辑哈国公司信息 › 股东行里的证件上传区：收紧成一行高 */
.pm-sh-file { margin-top: 6px; }
.pm-sh-file .fu-zone { padding: 7px 12px; min-height: 0; gap: 10px; }
.pm-sh-file .fu-ico { width: 26px; height: 26px; }
.pm-sh-file .fu-ico svg { width: 14px; height: 14px; }

/* ⑩ 组织与人员 / 员工档案（2026-10-09 九项反馈第 3、4 条，pages-hrm-org.js；类名统一 hro- 前缀）
 * 二级页签 .hro-subtabs：下划线样式，和顶部胶囊页签（.tabs）区分开——上一级是胶囊，下一级是下划线 */
.hro-subtabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--border); padding: 0 4px; }
.hro-subtabs .hro-tab { position: relative; padding: 9px 2px 10px; margin-bottom: -1px; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .12s, border-color .12s; user-select: none; }
.hro-subtabs .hro-tab:hover { color: var(--text); border-bottom-color: #cbd5e1; }
.hro-subtabs .hro-tab.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.hro-subtabs .hro-tab .badge { background: var(--red); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
/* 员工列表：筛选条 / 批量条 / 表格 */
.hro-bar { gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.hro-bar .hro-count { margin-left: 2px; white-space: nowrap; }
.hro-batch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 8px 14px; border-radius: 10px; background: var(--blue-bg); border: 1px solid #bfdbfe; font-size: 13px; }
.hro-tbl td.nw { white-space: nowrap; }
.hro-tbl th.hro-ckc, .hro-tbl td.hro-ckc { width: 34px; text-align: center; padding-left: 8px; padding-right: 4px; cursor: default; }
.hro-tbl .hro-ckc input { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }
.hro-ok { color: var(--green); font-weight: 700; }
.hro-err { color: var(--red); }
.hro-todo { color: #b45309; font-size: 12px; }
.hro-mt4 { margin-top: 4px; }
.hro-stat .vl.warn { color: #b45309; }
/* 档案页：面包屑 / 页头一行关键信息 / 缺项黄条 */
.hro-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin: -2px 0 10px; }
.hro-crumb a { color: var(--text-2); }
.hro-crumb a:hover { color: var(--brand); text-decoration: underline; }
.hro-crumb .sep { color: var(--text-3); }
.hro-crumb b { color: var(--text); font-weight: 600; }
.hro-pname { font-size: 18px; font-weight: 600; }
.hro-hline { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 13px; }
.hro-hline .hro-hi { padding: 0 14px; border-left: 1px solid var(--border); }
.hro-hline .hro-hi:first-child { padding-left: 0; border-left: 0; }
.hro-hline .hro-hi .muted { margin-right: 4px; }
.hro-miss { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border-radius: 8px; background: var(--yellow-bg); border: 1px solid #fde68a; color: #92400e; font-size: 13px; }
.hro-miss a { color: #b45309; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hro-miss a:hover { color: #92400e; }
.hro-miss .sep { color: #d6a65b; }
/* 合同证件：附件卡片底部的上传条；证件弹窗「选已有附件 / 上传新文件」二合一 */
.hro-upl { padding: 10px 18px 12px; border-top: 1px solid var(--border); }
.hro-upl:empty { display: none; }
.hro-fpick { display: flex; flex-direction: column; gap: 8px; }
.hro-seg { display: inline-flex; align-self: flex-start; padding: 2px; border-radius: 8px; background: #eef2f7; gap: 2px; }
.hro-seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.hro-seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .14); }
.hro-fp-pick select { width: 100%; }
.hro-b-res td { vertical-align: top; }

/* ⑩ 考勤休假 / HR 首页（2026-10-09 九项反馈第 5、6、7 条，leave 组）：审批轨迹、按月小计条、操作按钮间距、团队日历人名筛选、年历编辑条 */
.lvx-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lvx-wrap { max-width: 260px; white-space: normal; word-break: break-word; }
.lvx-req td { vertical-align: top; }
.lvx-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 12px; line-height: 20px; max-width: 420px; }
.lvx-trail .lvx-arr { color: var(--text-3); font-style: normal; }
.lvx-st { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 9px; white-space: nowrap; background: #f1f5f9; color: var(--text-2); }
.lvx-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.lvx-st.ok { background: var(--green-bg); color: var(--green); }
.lvx-st.wait { background: var(--yellow-bg); color: #b45309; }
.lvx-st.bad { background: var(--red-bg); color: var(--red); }
.lvx-st.off { background: #f1f5f9; color: var(--text-3); }
.lvx-ym { font-size: 14px; min-width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
.lvx-mstrip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding: 10px 14px 4px; }
.lvx-mchip { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; font: inherit; color: var(--text); transition: border-color .12s, background .12s; }
.lvx-mchip span { font-size: 11.5px; color: var(--text-3); }
.lvx-mchip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.lvx-mchip em { font-style: normal; font-size: 11px; color: #b45309; }
.lvx-mchip.zero b { color: var(--text-3); font-weight: 500; }
.lvx-mchip:hover { border-color: var(--brand); }
.lvx-mchip.on { border-color: var(--brand); background: var(--blue-bg); box-shadow: 0 0 0 2px var(--brand-light); }
.lvx-sub { padding: 8px 14px 2px; }
.lvx-calcard > .card-bd { padding: 10px 12px; }
.lvx-people { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.lvx-pchip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 12px; line-height: 19px; color: var(--text-2); cursor: pointer; }
.lvx-pchip::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--lvx-c, var(--brand)); }
.lvx-pchip:hover { border-color: var(--lvx-c, var(--brand)); }
.lvx-pchip.on { border-color: var(--lvx-c, var(--brand)); color: var(--text); font-weight: 600; box-shadow: 0 0 0 2px rgba(37, 99, 235, .12); }
.lvx-caled { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 12px; border: 1px dashed var(--border); border-radius: 10px; background: #f8fafc; }
.lvh-strip { padding: 8px 12px; }
@media (max-width: 1280px) { .lvx-mstrip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ⑪ 薪酬中心 · 假种待核定提醒（2026-10-09 九项反馈第 5 条跟进，pages-hrm-payroll.js；类名 pr- 前缀，只作用于本块） */
.pr-unsettled .pr-un-tbl { overflow-x: auto; margin-top: 6px; }
.pr-unsettled .pr-un-tbl table.tbl { background: transparent; min-width: 0; }
.pr-unsettled .pr-un-tbl table.tbl td { border-color: #fde68a; padding: 6px 8px; vertical-align: middle; color: inherit; }
.pr-unsettled .pr-un-tbl tr:last-child td { border-bottom: 0; }
.pr-unsettled .pr-un-tbl a { white-space: nowrap; }

/* ⑪ 绩效（2026-10-09 九项反馈第 1 条，pages-hrm-perf.js，perf 组；类名统一 pf- 前缀；二级页签沿用上面的 .hro-subtabs 下划线样式） */
.hro-subtabs .pf-help { margin-left: auto; align-self: center; font-size: 13px; padding: 6px 0; white-space: nowrap; }
.pf-guide { border-color: #bfdbfe; background: #eff6ff; }
.pf-guide > .card-bd { padding: 12px 16px; }
.pf-guide-tx { font-size: 13px; line-height: 1.75; color: var(--text); }
.pf-guide-tx .pf-more { margin-left: 6px; white-space: nowrap; }
.pf-guide-full { font-size: 13px; line-height: 1.75; max-height: 64vh; overflow: auto; padding-right: 4px; }
.pf-gsec { margin-bottom: 16px; }
.pf-gsec h4 { margin: 0 0 6px; font-size: 14px; color: var(--text); }
.pf-gsec p { margin: 0 0 6px; color: var(--text-2); }
.pf-gtbl td { vertical-align: top; font-size: 12.5px; }
.pf-gtbl td:first-child { white-space: nowrap; font-weight: 600; }
/* 关系图：岗位 → 指标模板；主岗任职 → 岗位 / 直属主管；四级流转；结果去向 */
.pf-rel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.pf-rel-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-node { display: inline-flex; flex-direction: column; padding: 6px 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #fff; min-width: 150px; }
.pf-node b { font-size: 13px; color: var(--brand); }
.pf-node small { font-size: 11.5px; color: var(--text-3); }
.pf-arr { color: var(--text-3); font-weight: 600; }
.pf-split { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 240px; font-size: 12.5px; color: var(--text-2); }
.pf-split b { color: var(--text); }
.pf-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px; }
.pf-chip { display: inline-block; padding: 3px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-size: 12px; color: var(--text); white-space: nowrap; }
.pf-chip.done { background: var(--green-bg); border-color: #bbf7d0; color: var(--green); }
.pf-chip.warn { background: var(--yellow-bg); border-color: #fde68a; color: #b45309; }
.pf-rel-out { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--text-2); border-top: 1px dashed var(--border); padding-top: 8px; }
/* 考核记录：筛选条 / 生成结果 / 环节计数 */
.pf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.pf-bar .ipt { width: auto; }
.pf-genres { border-color: #bfdbfe; }
.pf-genres > .card-bd { padding: 10px 16px; }
.pf-genlist { margin-top: 8px; font-size: 13px; line-height: 1.9; }
.pf-stage-cards { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pf-sc { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; font-size: 12.5px; color: var(--text-2); user-select: none; transition: border-color .12s, background .12s; }
.pf-sc b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.pf-sc:hover { border-color: var(--brand); }
.pf-sc.on { border-color: var(--brand); background: var(--blue-bg); color: var(--brand); box-shadow: 0 0 0 2px var(--brand-light); }
.pf-sc:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pf-tbl tr.pf-row { cursor: pointer; }
.pf-tbl tr.pf-row:hover td { background: #f8fafc; }
.pf-tbl td.pf-handler { white-space: nowrap; }
.pf-tbl td.nw { white-space: nowrap; }
.pf-tbl td.pf-std { max-width: 280px; white-space: normal; word-break: break-word; }
.pf-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-foot { padding: 8px 16px 10px; border-top: 1px solid var(--border); }
/* 岗位与指标：左列表 + 右详情 */
.pf-pos { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-pos-list { position: sticky; top: 8px; }
.pf-pos-search { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pf-pos-search .ipt { width: 100%; }
.pf-pos-items { max-height: calc(100vh - 300px); min-height: 160px; overflow: auto; }
.pf-pos-item { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pf-pos-item:last-child { border-bottom: 0; }
.pf-pos-item:hover { background: #f8fafc; }
.pf-pos-item.on { background: var(--blue-bg); box-shadow: inset 3px 0 0 var(--brand); }
.pf-pos-item .nm { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.pf-pos-item .cd { font-size: 11.5px; color: var(--text-3); }
.pf-pos-item .ct { margin-left: auto; font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-holders { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-txt { white-space: pre-wrap; font-size: 13px; line-height: 1.7; }
.pf-duty { white-space: pre-wrap; font-size: 12.5px; line-height: 1.7; max-height: 220px; overflow: hidden; position: relative; }
.pf-duty.open { max-height: none; }
/* 评审抽屉：页头信息 / 四步进度 / 合计 / 各级留痕 / 证据 */
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -2px 0 10px; }
.pf-steps { display: flex; gap: 4px; margin: 4px 0 14px; }
.pf-step { flex: 1; min-width: 0; text-align: center; padding: 7px 2px; border-radius: 7px; font-size: 12px; border: 1px solid var(--border); background: #fff; }
.pf-step .n { font-size: 10px; color: var(--text-3); }
.pf-step.done { border-color: var(--green); background: var(--green-bg); }
.pf-step.cur { border-color: var(--brand); background: #eff6ff; font-weight: 700; }
.kv-pitfall.pf-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.kv-pitfall.pf-ok { background: var(--green-bg); border-color: #bbf7d0; color: #166534; }
.pf-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.pf-sum b { font-variant-numeric: tabular-nums; }
.pf-lv { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pf-ev { margin-top: 4px; }
.pf-ev-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.pf-ev-row .pr-ev-t { flex: 1; min-width: 120px; }
.pf-ev-row .pr-ev-up .fu-line { padding: 0; border: 0; background: transparent; }
@media (max-width: 900px) {
  .pf-pos { grid-template-columns: 1fr; }
  .pf-pos-list { position: static; }
  .pf-pos-items { max-height: 260px; }
  .pf-steps { flex-wrap: wrap; }
  .pf-step { flex: 1 1 45%; }
}
/* ⑪ 绩效（续，perf 组）：评审抽屉指标表里的小输入框不撑出列宽 */
.pf-dtbl td .ipt.sm { width: 100%; min-width: 48px; box-sizing: border-box; }
.pf-dtbl td:first-child { min-width: 220px; }
/* ⑪ 绩效（续 2，perf 组，2026-10-09 复核）：列表表格外包一层可横向滚动的框（不再撑出卡片 / 主区横滚）；俄文表头与处理人列可换行、列距收窄 */
.pf-tw { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pf-tbl.pf-ru th { white-space: normal; vertical-align: bottom; }
.pf-tbl.pf-ru th, .pf-tbl.pf-ru td { padding-left: 10px; padding-right: 10px; }
.pf-tbl.pf-ru td.pf-handler { white-space: normal; min-width: 110px; }
/* 走查 HR02（10-14）：人资「汇报与任务」月度表——表内横向滚动条常显（不再只在悬停时出现）、姓名列固定在左、部门列给最小宽（不再一两个字一行）；
 * 俄文表头可在软连字符处折行（Поло-жено / Выпол-нено / Обяза-тельства），数字格内距收窄，1366 俄文一屏放下 14 列 */
.pf-rt-w { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.pf-rt-w::-webkit-scrollbar { height: 10px; }
.pf-rt-w::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.pf-rt-w::-webkit-scrollbar-track { background: #f1f5f9; }
.pf-tbl.pf-rt th:first-child, .pf-tbl.pf-rt td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--border); }
.pf-tbl.pf-rt thead th:first-child { z-index: 2; }
.pf-tbl.pf-rt td:nth-child(2) { min-width: 72px; }
.pf-tbl.pf-rt.pf-ru th { hyphens: manual; font-size: 12px; }
.pf-tbl.pf-rt.pf-ru th.num, .pf-tbl.pf-rt.pf-ru td.num { padding-left: 6px; padding-right: 6px; }

/* ===== 九项反馈第 8 条（refund 组）：退款 / 折扣 / 坏账审批链进度 + 审批表（2026-10-09） ===== */
.apc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; line-height: 1.5; font-size: 12px; }
.apc-s { display: inline-block; padding: 0 7px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text-2); white-space: nowrap; }
.apc-ar { color: var(--text-3); font-size: 11px; }
.apc-done { border-color: #bbf7d0; background: var(--green-bg); color: var(--green); }
.apc-current { border-color: #fcd34d; background: var(--yellow-bg); color: #92400e; font-weight: 600; }
.apc-waiting { color: var(--text-3); }
.apc-skipped { color: var(--text-3); border-style: dashed; }
.apc-rejected { border-color: #fecaca; background: var(--red-bg); color: var(--red); font-weight: 600; }
.apc-unreached { color: var(--text-3); text-decoration: line-through; }
.fa-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fa-tbl td, .u-tbl.fa-tbl td { vertical-align: top; }   /* 批 V19 V19-13c：退款审批表换成 u-tbl（它的格子竖直居中、优先级 0,1,3），带上 .u-tbl 压得住 */
.fa-tbl td.fa-reason { max-width: 240px; min-width: 140px; white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.fa-tbl td.fa-prog { min-width: 220px; max-width: 360px; white-space: normal; }
.fa-tbl .fa-client { max-width: 160px; white-space: normal; overflow-wrap: anywhere; }
.fa-acts { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; }
.fa-acts .btn, .fa-acts .u-btn { white-space: nowrap; }   /* 批 V19 V19-13c：退款审批的按钮换成 u-btn */
.fa-filter { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fa-filter .fa-n { display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 5px; border-radius: 8px; background: rgba(15, 23, 42, .08); font-size: 11px; line-height: 16px; text-align: center; }
.fa-filter .btn.primary .fa-n, .fa-filter .u-btn.primary .fa-n { background: rgba(255, 255, 255, .25); }

/* ======================================================================
 * ⑫ 区块组件 + 项目360（2026-10-09 九项反馈第 9 条，o360 组）
 * ui.js：Core.section / tip / kpis / progress / empty / chip；项目 360 页（.o3）布局。只新增类名，不改前面已有的规则
 * ====================================================================== */
/* —— 区块卡 —— */
.ui-sec-hd { flex-wrap: wrap; gap: 6px 10px; min-height: 48px; }
.ui-sec-hd .sub { white-space: nowrap; }
.ui-cnt { font-size: 11.5px; line-height: 18px; padding: 0 8px; border-radius: 9px; background: #eef2f7; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ui-chip { display: inline-flex; align-items: center; font-size: 12px; line-height: 18px; padding: 1px 9px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text-2); white-space: nowrap; }
.ui-chip.red { background: var(--red-bg); border-color: #fecaca; color: var(--red); }
.ui-chip.amber, .ui-chip.yellow { background: var(--yellow-bg); border-color: #fde68a; color: #b45309; }
.ui-chip.green { background: var(--green-bg); border-color: #bbf7d0; color: var(--green); }
.ui-chip.blue { background: var(--blue-bg); border-color: #bfdbfe; color: var(--brand); }
.ui-chip.purple { background: #f5f3ff; border-color: #ddd6fe; color: #7c3aed; }
.ui-chip.gray { background: #f8fafc; color: var(--text-3); }
.ui-sec-act { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ui-sec.collapsible > .ui-sec-hd { cursor: pointer; user-select: none; }
.ui-sec.collapsible > .ui-sec-hd:hover { background: #fafbfd; }
.ui-sec.collapsible > .ui-sec-hd:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ui-sec-arr { display: inline-block; width: 14px; text-align: center; color: var(--text-2); font-size: 13px; line-height: 1; transition: transform .15s; transform: rotate(90deg); }
.ui-sec.collapsed > .ui-sec-hd .ui-sec-arr { transform: none; }
.ui-sec.collapsed > .ui-sec-hd { border-bottom: 0; }
.ui-sec.collapsed > .ui-sec-bd, .ui-sec.collapsed > .ui-sec-ft { display: none; }
.ui-sec-bd.flush .tbl > thead > tr > th:first-child, .ui-sec-bd.flush .tbl > tbody > tr > td:first-child { padding-left: 18px; }
.ui-sec-bd.flush .tbl > thead > tr > th:last-child, .ui-sec-bd.flush .tbl > tbody > tr > td:last-child { padding-right: 18px; }
.ui-sec-bd.flush > .ui-empty { padding: 26px 20px; }
/* —— ⓘ 说明：悬停 / 键盘聚焦显示；收起时 display:none（不占滚动区，不会撑出横向滚动条） —— */
.ui-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; cursor: help; border-radius: 50%; outline: none; }
.ui-tip-i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #cbd5e1; color: var(--text-3); font: italic 600 10px/1 Georgia, "Times New Roman", serif; background: #fff; transition: border-color .12s, color .12s; }
.ui-tip:hover .ui-tip-i, .ui-tip:focus-visible .ui-tip-i { border-color: var(--brand); color: var(--brand); }
.ui-tip:focus-visible .ui-tip-i { box-shadow: 0 0 0 3px var(--brand-light); }
.ui-tip-b { display: none; position: absolute; top: calc(100% + 8px); left: -8px; z-index: 40; width: max-content; max-width: 340px; padding: 8px 12px; border-radius: 8px;
  background: #0f172a; color: #f1f5f9; font: 400 12.5px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; text-align: left; white-space: normal; letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .22); pointer-events: none; }
.ui-tip:hover .ui-tip-b, .ui-tip:focus .ui-tip-b { display: block; animation: uiTipIn .12s ease-out; }
.ui-tip.end .ui-tip-b { left: auto; right: -8px; }
.ui-tip.center .ui-tip-b { left: 50%; margin-left: -170px; }
.ui-tip.top .ui-tip-b { top: auto; bottom: calc(100% + 8px); }
@keyframes uiTipIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
/* —— 指标卡 —— */
.ui-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ui-kpi { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 96px; padding: 11px 14px 12px; background: var(--panel); border: 1px solid var(--border); border-top: 3px solid #e2e8f0; border-radius: var(--radius); box-shadow: var(--shadow); }
.ui-kpi-lb { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ui-kpi-lb > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ui-kpi-v { font-size: 20px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.ui-kpi-v small { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.ui-kpi-v.more { font-size: 15px; font-weight: 600; line-height: 1.4; }
.ui-kpi-sub { font-size: 12px; color: var(--text-3); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-kpi-v + .ui-kpi-sub { margin-top: auto; padding-top: 4px; }
.ui-kpi.red { border-top-color: var(--red); } .ui-kpi.red > .ui-kpi-v { color: var(--red); }
.ui-kpi.amber { border-top-color: #f59e0b; } .ui-kpi.amber > .ui-kpi-v { color: #b45309; }
.ui-kpi.green { border-top-color: #22c55e; } .ui-kpi.green > .ui-kpi-v { color: var(--green); }
.ui-kpi.blue { border-top-color: #3b82f6; } .ui-kpi.blue > .ui-kpi-v { color: var(--brand); }
.ui-kpi.gray { border-top-color: #cbd5e1; }
.ui-kpi .red { color: var(--red); }
.ui-kpi.go { cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ui-kpi.go:hover { border-left-color: var(--brand); border-right-color: var(--brand); border-bottom-color: var(--brand); box-shadow: 0 4px 14px rgba(30, 64, 175, .12); }
.ui-kpi.go:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
/* —— 进度条 —— */
.ui-progw { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ui-prog { flex: 1; min-width: 40px; height: 6px; border-radius: 3px; background: #eef2f7; overflow: hidden; }
.ui-prog > i { display: block; height: 100%; border-radius: 3px; background: var(--brand); transition: width .25s; }
.ui-prog.green > i { background: #22c55e; }
.ui-prog.amber > i { background: #f59e0b; }
.ui-prog.red > i { background: #ef4444; }
.ui-prog.gray > i { background: #94a3b8; }
.ui-prog.striped > i { background-image: linear-gradient(45deg, rgba(255, 255, 255, .45) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, .45) 75%, transparent 75%); background-size: 8px 8px; }
.ui-prog-lb { font-size: 12px; color: var(--text-2); white-space: nowrap; }
/* —— 空状态 —— */
.ui-empty { padding: 30px 20px; text-align: center; color: var(--text-3); }
.ui-empty-t { font-size: 13.5px; color: var(--text-2); }
.ui-empty-s { font-size: 12.5px; margin-top: 4px; line-height: 1.6; }
.ui-empty-a { margin-top: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* —— 项目 360：头卡 + 进度卡 + 页签条 —— */
.o3-hd { padding: 14px 18px 12px; }
.o3-hd-r1 { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.o3-hd-r1 .sp { flex: 1; }
.o3-no { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.o3-client { font-size: 15px; font-weight: 600; color: var(--text); }
.o3-client .muted { font-size: 13px; font-weight: 400; }
.o3-cno { font-size: 12.5px; color: var(--text-3); }
.o3-vdiv { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.o3-hd-r2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.o3-chip em { font-style: normal; color: var(--text-3); margin-right: 5px; }
.o3-chip b { font-variant-numeric: tabular-nums; color: var(--text); }
.o3-flow { font-size: 12.5px; padding: 2px 6px; }
.o3-hd-r3 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 12.5px; }
.o3-k { color: var(--text-3); margin-right: 2px; }
.o3-scope { display: inline-block; max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); vertical-align: middle; }
.o3-svc-empty { font-size: 12.5px; }
.o3-pcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.o3-pc { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 11px 14px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.o3-pc:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(30, 64, 175, .12); }
.o3-pc:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.o3-pc.red { box-shadow: inset 0 3px 0 #ef4444, var(--shadow); }
.o3-pc.amber { box-shadow: inset 0 3px 0 #f59e0b, var(--shadow); }
.o3-pc-lb { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.o3-pc-go { color: var(--text-3); }
.o3-pc:hover .o3-pc-go { color: var(--brand); }
.o3-pc-v { font-size: 18px; font-weight: 700; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o3-pc-v small { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.o3-pc-sub { font-size: 12px; color: var(--text-3); line-height: 1.55; margin-top: auto; }
.o3-pc-sub [data-go] { color: var(--text-2); cursor: pointer; border-bottom: 1px dashed transparent; }
.o3-pc-sub [data-go]:hover { color: var(--brand); border-bottom-color: var(--brand); }
.o3-pc .red { color: var(--red); } .o3-pc .amber { color: #b45309; } .o3-pc .green { color: var(--green); }
.o3-sep { font-style: normal; color: #cbd5e1; margin: 0 6px; }
.o3-tabbar { margin: 16px 0 14px; scroll-margin-top: 66px; }
.o3 .ui-sec { scroll-margin-top: 70px; }   /* 跳到某张卡片时不被吸顶的顶栏挡住 */
.o3-tb { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #dde4ee; color: var(--text-2); font-size: 11px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.tabs .tab.active .o3-tb { background: var(--brand-light); color: var(--brand); }
.o3-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; vertical-align: 6px; }
.o3-dot.red { background: var(--red); } .o3-dot.amber { background: #f59e0b; }
.o3 .grid2 > .card { margin-top: 0; }   /* 并排卡片顶边对齐（.card + .card 的上边距不作用在并排的第二张） */
.o3 .o3-row { margin-bottom: 16px; }
.o3-row + .card { margin-top: 0; }
.o3-body > .o3-alert + .ui-kpis { margin-top: 0; }
/* —— 告警条 —— */
.o3-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius); font-size: 13px; line-height: 1.6; }
.o3-alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.o3-alert-c { flex: 1; min-width: 0; }
.o3-alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.o3-alert .red { color: var(--red); }
/* —— 通用：表格里的小件 —— */
.o3-tbl td { vertical-align: middle; }
.o3-op { width: 1%; white-space: nowrap; text-align: right; }
.o3-wrap { max-width: 320px; white-space: normal; word-break: break-word; }
.o3-amt { font-size: 12.5px; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o3-bal { color: var(--text-2); margin-left: 4px; }
.o3-due { font-size: 11.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.o3-due.red { color: var(--red); } .o3-due.amber { color: #b45309; }
/* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：项目 360 的小图标按钮（26 高）→ 小号图标按钮 32，样子同 .u-btn.icon.sm（次要边框、悬停浅底）；删除类悬停变红 */
.o3-ib { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; min-width: 32px; padding: 0 8px; box-sizing: border-box; border: 1px solid var(--u-control); border-radius: var(--u-radius-md); background: var(--u-surface); color: var(--u-ink-2); font-size: 13px; cursor: pointer; }
.o3-ib small { font-size: 12px; color: var(--u-ink-3); }
.o3-ib:hover { background: var(--u-ground); color: var(--u-ink); }
.o3-ib:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; }
.o3-ib.danger { color: var(--u-ink-2); }
.o3-ib.danger:hover { color: var(--u-danger); border-color: var(--u-danger); background: var(--u-danger-soft); }
.o3-loading { padding: 18px; text-align: center; color: var(--text-3); font-size: 12.5px; }
@keyframes o3Flash { 0%, 30% { background: #fef3c7; } 100% { background: transparent; } }
tr.o3-flash > td, .o3-grow.o3-flash { animation: o3Flash 2.6s ease-out; }
/* —— 节点排程 —— */
.o3-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.o3-pills.sm { display: inline-flex; }
.o3-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 16px; background: #fff; color: var(--text-2); font-size: 12.5px; line-height: 18px; cursor: pointer; font-family: inherit; transition: border-color .12s, background .12s; }
.o3-pills.sm .o3-pill { padding: 2px 10px; font-size: 12px; }
.o3-pill b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.o3-pill.red b { color: var(--red); } .o3-pill.amber b { color: #b45309; } .o3-pill.green b { color: var(--green); } .o3-pill.blue b { color: var(--brand); } .o3-pill.purple b { color: #7c3aed; } .o3-pill.gray b { color: var(--text-3); }
.o3-pill:hover { border-color: var(--brand); }
.o3-pill.on { border-color: var(--brand); background: var(--blue-bg); color: var(--brand); box-shadow: 0 0 0 2px var(--brand-light); }
.o3-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.o3-nprog { display: inline-block; width: 220px; }
.o3-stage > .ui-sec-bd { padding-bottom: 4px; }
.o3-grow { display: grid; grid-template-columns: 72px 236px minmax(0, 1fr) 92px 128px; gap: 0 12px; align-items: center; padding: 7px 18px; border-bottom: 1px dashed #eef2f7; cursor: pointer; }
.o3-grow:last-child { border-bottom: 0; }
.o3-grow:hover { background: #f8fafc; }
.o3-grow:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.o3-grow.virtual { background: #faf5ff; }
.o3-grow.over .o3-gc { color: var(--red); }
.o3-grow.o3-axis { padding-top: 6px; padding-bottom: 0; border-bottom: 0; cursor: default; }
.o3-grow.o3-axis:hover { background: transparent; }
.o3-axbar { position: relative; height: 16px; }
.o3-mlb { position: absolute; top: 0; padding-left: 3px; font-size: 11px; line-height: 16px; color: var(--text-3); white-space: nowrap; }
.o3-tlb { position: absolute; top: 0; transform: translateX(-50%); padding: 0 3px; font-size: 11px; line-height: 16px; color: var(--red); font-weight: 600; background: #fff; white-space: nowrap; z-index: 2; }
.o3-bar.gantt-bar-wrap { overflow: visible; }
.o3-mt { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed #d7dfea; pointer-events: none; }
.o3-td { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(220, 38, 38, .55); z-index: 1; pointer-events: none; }
.o3-gc { font-weight: 700; color: var(--brand-dark); font-size: 12.5px; white-space: nowrap; }
.o3-crit { color: var(--red); }
.o3-gn { min-width: 0; }
.o3-gnm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o3-gsub { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.o3-who { font-size: 11.5px; line-height: 17px; padding: 0 7px; border-radius: 9px; background: #f1f5f9; color: var(--text-2); white-space: nowrap; }
.o3-who.none { background: transparent; border: 1px dashed var(--border); color: var(--text-3); line-height: 15px; }
.o3-dual { font-size: 11.5px; line-height: 17px; padding: 0 7px; border-radius: 9px; white-space: nowrap; }
.o3-dual.green { background: var(--green-bg); color: var(--green); }
.o3-dual.amber { background: var(--yellow-bg); color: #b45309; }
.o3-dual.red { background: var(--red-bg); color: var(--red); }
.o3-dual.gray { background: #f8fafc; color: var(--text-3); border: 1px solid #eef2f7; line-height: 15px; }
.o3-gst { text-align: right; }
.o3-gd { white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* —— 财务：账单期次 —— */
.o3-bills .o3-pcell { width: 270px; min-width: 220px; }
.o3-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.o3-tags:empty { display: none; }
.o3-grp > td { background: #f8fafc; color: var(--text-2); font-size: 12.5px; padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.o3-grp b { color: var(--text); }
.o3-grp-sum { margin-left: 14px; font-variant-numeric: tabular-nums; }
/* 批 O O3 收口 V4：账单期次按收费计划分组，没触发的只露下一期，其余折叠 */
.o3-grp-sub { margin-left: 4px; }
.o3-bp-fold > td { padding-top: 6px; padding-bottom: 6px; background: #fcfdfe; }
.o3-bp-fold-a { cursor: pointer; font-size: 12.5px; font-weight: 600; }
.o3-bp-fold-a::before { content: '▸ '; }
.o3-bp-fold-a[aria-expanded="true"]::before { content: '▾ '; }
.o3-tbl tr.o3-grp:hover td { background: #f8fafc; }
.o3-tbl tr.o3-over > td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.o3-tbl tr.o3-xable { cursor: pointer; }
.o3-tbl tr.o3-xable.open > td { background: #f8fbff; }
.o3-tbl tr.o3-xable.open button[data-o3x] { border-color: var(--brand); color: var(--brand); }
.o3-xc { width: 44px; text-align: right; }
.o3-xrow > td { background: #fbfcfe; padding: 8px 18px 10px 30px !important; }
.o3-allocs { display: flex; flex-direction: column; gap: 6px; }
.o3-alloc { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; }
.o3-alloc-amt { font-variant-numeric: tabular-nums; }
.o3-alloc.refund .o3-alloc-amt { color: var(--red); }
/* —— 财务：审批进度 —— */
.o3-chain { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-top: 4px; font-size: 11.5px; line-height: 1.5; }
.o3-ch { color: var(--text-2); white-space: nowrap; }
.o3-ch.ok { color: var(--green); } .o3-ch.no { color: var(--red); } .o3-ch.cur { color: #b45309; font-weight: 600; } .o3-ch.skip { color: var(--text-3); }
.o3-ch-ar { color: var(--text-3); }
.o3-adj-go { margin-top: 6px; }
/* —— 动态 —— */
.o3-slog { display: flex; flex-direction: column; }
.o3-sl { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #eef2f7; font-size: 13px; }
.o3-sl:last-child { border-bottom: 0; }
.o3-sl-ar { margin: 0 5px; color: var(--text-3); }
.o3-sl-r { word-break: break-word; }
.o3-tl-day { position: relative; }
.o3-tl-day + .o3-tl-day { margin-top: 8px; }
.o3-tl-day::before { content: ''; position: absolute; left: 60px; top: 32px; bottom: 10px; width: 2px; background: #eef2f7; }
.o3-tl-dh { font-size: 12.5px; font-weight: 600; color: var(--text); padding: 6px 0 4px; }
.o3-tl-it { position: relative; display: grid; grid-template-columns: 48px 14px minmax(0, 1fr); gap: 0 8px; align-items: start; padding: 5px 0; }
.o3-tl-t { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 1px; text-align: right; }
.o3-tl-dot { position: relative; z-index: 1; width: 10px; height: 10px; margin: 5px 0 0 2px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 3px #fff; }
.o3-tl-it.node .o3-tl-dot { background: #3b82f6; }
.o3-tl-it.fin .o3-tl-dot { background: #22c55e; }
.o3-tl-it.status .o3-tl-dot { background: #f59e0b; }
.o3-tl-it.field .o3-tl-dot { background: #8b5cf6; }
.o3-tl-c { font-size: 13px; line-height: 1.6; min-width: 0; word-break: break-word; }
.o3-tl-nc { font-size: 12px; color: var(--brand-dark); }
.o3-tl-ft { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border); }
/* ===== 九项反馈第 8 条（refund 组）补充：理由 / 订单 / 进度列改用内层 div 限宽（表格单元格的 max-width 不可靠） ===== */
.fa-tbl .fa-order { max-width: 190px; white-space: normal; overflow-wrap: anywhere; }
.fa-tbl .fa-reason { max-width: 240px; min-width: 120px; white-space: normal; overflow-wrap: anywhere; }
.fa-tbl .fa-prog { max-width: 330px; min-width: 200px; white-space: normal; }

/* ======================================================================
 * ⑫ 区块组件 + 项目360（o360 组）· 复核补充（2026-10-09）：只新增，只作用于 .o3 页面与本组类名，不动其他规则
 * ====================================================================== */
.o3 .nw { white-space: nowrap; }   /* 360 表格里的日期 / 操作列不折行（全站的 .nw 只在发票 / 人事 / 绩效几张表里定义） */
.o3-body > [data-o3-adjbox] { margin-top: 16px; }   /* 退款卡外面包了一层（取回后只重画这张卡），.card + .card 的间距够不着它 */
.o3-body > [data-o3-adjbox] > .card { margin-top: 0; }
.o3-adj-acts { display: flex; flex-wrap: wrap; gap: 6px; }
/* 1366 屏：主区内容最小 1200px（#11，保留不动），但主区可见宽只有约 1118px——360 整页限宽到可见区内，右侧按钮、状态列不再落到可见区外
 * （做法同 pages-ops.js 的 OPS_VIS_W）。窗口更窄（< 1316px）时不再往下压，照 #11 出横向滚动；1468px 以上不生效 */
@media (max-width: 1467px) {
  .o3 { max-width: max(1000px, calc(100vw - 316px)); }
}

/* ======================================================================
 * ⑩ 2026-10-09 终审修正（共享前端）
 * ====================================================================== */
/* mike-2：卡片标题栏（标题 + 说明 + 右侧按钮）放不下时，后面的项整体换到下一行，不再挤出卡片右边。
 * 主区内容最小 1200px（#11）不变。 */
.card-hd { flex-wrap: wrap; row-gap: 6px; }
/* B6：订单摘要抽屉 · 收款进度——多个币种时每个币种一行「已收 / 应收」+ 各自的进度条，不跨币种相加 */
.of-pv.of-pv-m { font-size: 15px; margin: 4px 0 2px; }
.of-cur + .of-cur { margin-top: 8px; }
.of-cur-v { margin-bottom: 5px; }
/* mike-2 复核：标题栏换行后，紧跟在弹性空白（.sp）后面的那一项（通常是右侧链接 / 按钮）仍靠右；不换行时 .sp 已占满剩余宽度，这条不起作用 */
.card-hd > .sp + * { margin-left: auto; }
/* 验收返工 F12：应收余额 / 账龄桶按币种分行 */
.stat-card .vl.fin-ccy-lines, .u-stat-i .vl.fin-ccy-lines { font-size: 16px; line-height: 1.35; }   /* 批 V19 V19-13c：应收看板顶上那排换成新数字条 u-stat（pages-ops.js renderFinBoard） */
.stat-card .vl.fin-ccy-lines div, .u-stat-i .vl.fin-ccy-lines div { white-space: nowrap; }
/* 验收返工 U2：路径模板抽屉（960 档）——节点链列保底 200px，操作列两个按钮竖排，卡片内容区横向滚动兜底 */
.ds-scroll{overflow-x:auto}
.ds-scroll .ds-tbl{min-width:760px}
.ds-tbl td.ds-ops{white-space:normal}
.ds-tbl td.ds-ops .btn { display: flex; width: 100%; justify-content: center; margin: 0 0 4px; }   /* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：竖着一个个排、按钮里不折字（规则 5） */
/* 验收返工 U1：人事页表格横向滚动框；俄文表头换行、操作列按钮竖排 */
.hrm-tw { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hrm-ru .tbl th { white-space: normal; vertical-align: bottom; }
.hrm-ru .u-tbl:where([data-legacy]) th { white-space: normal; vertical-align: bottom; }   /* 批 V19 V19-13c 公共底：人事页俄文表头折行、两颗按钮一格时可换行（pages-hrm.js wideTables 挂 .hrm-ru），也认换过皮的表 */
.hrm-ru .tbl td:has(> .btn + .btn), .hrm-ru .tbl td:has(> button + button) { white-space: normal; }
.hrm-ru .tbl td:has(> .btn + .btn) > .btn, .hrm-ru .tbl td:has(> button + button) > button { margin: 0 4px 4px 0; }   /* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：不再一个按钮占一行；排不下整个按钮换行（规则 5） */
.hrm-ru .u-tbl:where([data-legacy]) td:has(> .btn + .btn), .hrm-ru .u-tbl:where([data-legacy]) td:has(> button + button) { white-space: normal; }
.hrm-ru .u-tbl:where([data-legacy]) td:has(> .btn + .btn) > .btn, .hrm-ru .u-tbl:where([data-legacy]) td:has(> button + button) > button { margin: 0 4px 4px 0; }
/* 2026-10-09 任务 5：代运营客户列表横向滚动兜底 */
.mm-tw { overflow-x: auto; }

/* A2（2026-10-10）：同一页上下多张同结构表统一列宽（Core.alignedTable）——固定布局，长内容（带标签的「已逾期 165 天」等）在列内换行，不撑破列 */
table.tbl.tbl-al { table-layout: fixed; width: 100%; }
.tbl.tbl-al th { white-space: normal; }
.tbl.tbl-al td { overflow-wrap: anywhere; word-break: break-word; }
.tbl.tbl-al td .tag { white-space: normal; max-width: 100%; }
.tbl.tbl-al td .u-tag { white-space: normal; max-width: 100%; height: auto; }   /* 批 V19 V19-13c 公共底：Core.alignedTable 画的老表（固定列宽）里老标签换成 u-tag 以后照旧能折行、不出格子 */
.tbl.tbl-al td.num, .tbl.tbl-al th.num { text-align: right; }
/* 小件 ④（#535，用例 6827）：会计客户 360 申报日历各税种表（ac-fil）在手机上不再被压到容器宽——最小宽 760、外层横着滚（pages-acct.js）；
 * 手机上改成自动列宽、格子里不在词中间断（上面 td 那条 anywhere 是给电脑上固定列宽用的），列至少有最长那个词宽：「2026Q2」「Просрочено」不再拆开。电脑上不吃这两条 */
@media (max-width: 767px) {
  table.tbl.tbl-al.ac-fil { min-width: 760px; table-layout: auto; }
  table.tbl.tbl-al.ac-fil td { overflow-wrap: normal; word-break: normal; }
}

/* ===== B 批第 2 期：我的工作台（1366 宽不横向滚动：左 168 + 中自适应 + 右 300） ===== */
.wk-tabsbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wk-tabs { display: inline-flex; gap: 2px; padding: 3px; background: #e9eef5; border-radius: 10px; }
.wk-tab { padding: 5px 16px; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.wk-tab.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.14); }
.wk-cards { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 12px; margin-bottom: 12px; }
.wk-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer; min-width: 0; }
.wk-card.on { border-color: var(--brand); background: var(--blue-bg, #eff6ff); }
.wk-card-hd { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.wk-nums { display: flex; gap: 6px 4px; align-items: baseline; margin-top: 2px; flex-wrap: wrap; }
.wk-nums b { font-size: 20px; font-variant-numeric: tabular-nums; margin-left: 10px; }
.wk-nums b:first-child { margin-left: 0; }
.wk-nums small { color: var(--text-3); font-size: 11.5px; }
.wk-bar, .wk-prog { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.wk-bar i, .wk-prog i { display: block; height: 6px; background: var(--green); border-radius: 3px; }
.wk-prog { display: inline-block; width: 46px; margin: 0; vertical-align: middle; }
.wk-prog.big { display: block; width: auto; margin: 4px 0 8px; }
.wk-perf { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 11.5px; color: var(--text-2); }
.wk-perf span { background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; }
.wk-cols { display: grid; grid-template-columns: 168px minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.wk-left, .wk-mid, .wk-right { margin: 0; min-width: 0; }
.wk-li-box { padding: 6px; }
.wk-li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text-2); cursor: pointer; font-size: 13px; }
.wk-li:hover { background: #f8fafc; }
.wk-li.on { background: var(--blue-bg, #eff6ff); color: var(--brand); font-weight: 600; }
.wk-li .ic { width: 16px; text-align: center; }
.wk-li .n { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.wk-li .n.r { color: #fff; background: var(--red); border-radius: 9px; padding: 0 6px; }
.wk-lsep { font-size: 11px; color: var(--text-3); padding: 8px 8px 2px; letter-spacing: 1px; }
.wk-add { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.wk-q { width: 100%; padding: 8px 12px; border: 1px solid var(--brand); border-radius: 8px; font-size: 13.5px; outline: none; }
.wk-chips { margin-top: 2px; }
/* 复验第八节：固定两行、固定槽位（每个芯片定宽，内容变了宽度不变）；俄文 1366 放不下时第二行允许折成两行，但不随选择变化 */
.wk-chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.wk-chip-row .wk-chip { flex: none; box-sizing: border-box; overflow: hidden; white-space: nowrap; height: 26px; }
.wk-chip-row .wk-chip > span:not(.ic) { overflow: hidden; text-overflow: ellipsis; }
.wk-chip.c-type { width: 124px; } .wk-chip.c-type select { width: 86px; }
.wk-chip.c-date { width: 108px; position: relative; } .wk-chip.c-time { width: 104px; }
.wk-chip.c-exec { width: 110px; } .wk-chip.c-exec select { width: 84px; }
.wk-chip.c-mem { width: 86px; } .wk-chip.c-link { width: 76px; } .wk-chip.c-slot { width: 102px; position: relative; } .wk-chip.c-slot select { width: 48px; }   /* 两个尾槽同宽，换内容不改宽度 */
/* 俄文更长：放宽，1366 下第二行按固定内容折成两行（三行固定），1920 一行 */
.wk-chips.ru .wk-chip.c-type { width: 156px; } .wk-chips.ru .wk-chip.c-type select { width: 118px; } .wk-chips.ru .wk-chip.c-date { width: 104px; }
.wk-chips.ru .wk-chip.c-exec { width: 150px; } .wk-chips.ru .wk-chip.c-exec select { width: 124px; }
.wk-chips.ru .wk-chip.c-mem { width: 150px; } .wk-chips.ru .wk-chip.c-link { width: 96px; } .wk-chips.ru .wk-chip.c-slot { width: 150px; } .wk-chips.ru .wk-chip.c-slot select { width: 70px; }
.wk-chip.dis { opacity: .5; cursor: not-allowed; }
.wk-date-in { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; cursor: pointer; padding: 0 !important; margin: 0 !important; }
.wk-chips-tail { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 26px; flex: none; }
.wk-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 14px; font-size: 12px; color: var(--text-2); cursor: pointer; background: #fff; }
.wk-chip.on { border-color: #93c5fd; color: var(--brand); background: var(--blue-bg, #eff6ff); }
.wk-chip select, .wk-chip input[type=date], .wk-chip input[data-dp=time], .wk-chip input[type=datetime-local] { border: 0; background: transparent; font-size: 12px; color: inherit; padding: 0; max-width: 130px; }
.wk-grp { font-size: 12px; font-weight: 700; color: var(--text-3); padding: 10px 14px 2px; letter-spacing: 1px; }
.wk-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.wk-row:hover { background: #f8fafc; }
.wk-row.done .wk-title { color: var(--text-3); text-decoration: line-through; }
.wk-row.cancel { opacity: .55; }
.wk-ck { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }
.wk-main { flex: 1; min-width: 0; }
.wk-title { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-err { color: var(--red); margin-top: 2px; }
.wk-meta { display: flex; gap: 6px; align-items: center; flex-shrink: 0; max-width: 58%; flex-wrap: wrap; justify-content: flex-end; }
.wk-link { font-size: 12px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); margin-left: -4px; border: 1.5px solid #fff; }
.wk-flag { color: #cbd5e1; font-size: 13px; }
.wk-flag.on { color: #ea580c; }
.wk-tip { padding: 8px 14px; }
.wk-sys-bd { padding: 4px 12px 10px; max-height: calc(100vh - 260px); overflow: auto; }
.wk-sg { padding: 8px 0 4px; border-bottom: 1px dashed #eef2f7; }
.wk-sg:last-child { border-bottom: 0; }
.wk-sg-hd { font-size: 12.5px; margin-bottom: 4px; }
.wk-si { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: 12.5px; }
.wk-si-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); cursor: pointer; }
.tag.sm { font-size: 11px; padding: 0 6px; line-height: 17px; }
/* 批 V18 V18-33 A（审核方 #365 ★3）：表格行内的小按钮原来高 22、字 11.5（太小太淡）→ 小 32、字 14，和 .btn.sm 一样（新按钮体系的别名，见文件开头 .btn 那一段） */
.btn.xs { min-height: 32px; padding: 4px 12px; flex-shrink: 0; }
@media (max-width: 767px) { .btn.xs { min-height: 36px; padding: 6px 14px; } }
.wk-pick { max-height: 320px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.wk-pick label { display: flex; gap: 6px; align-items: center; font-size: 13px; cursor: pointer; }
.tk-step { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }
.tk-step .small { margin-left: auto; }
.tk-cmt { padding: 6px 0; border-bottom: 1px dashed #f1f5f9; font-size: 13px; }
.tk-log { padding: 2px 0; }
.wk-cols > .card { margin: 0 !important; }
.wk-chips .wk-chip select, .wk-chips .wk-chip input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 2px !important; height: 20px !important; min-height: 0 !important; width: auto !important; font-size: 12px !important; color: inherit; }
.wk-chips .wk-chip input[type=date] { width: 118px !important; }
/* 批 R R1-5：快速添加的「时间」芯片——原生时间框压到 78px 裁掉了浏览器的钟，标签里又画了一个；现在只留组件自己的钟（放左边，和其它芯片的图标同一位置） */
.wk-chips .wk-chip input.dp-input[data-dp=time] { width: 100% !important; min-width: 0; padding: 0 0 0 19px !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E") no-repeat left 1px center / 14px 14px transparent !important; cursor: pointer; }
.wk-chips .wk-chip input[type=datetime-local] { width: 168px !important; }
/* B 批第 3 期：日报 / 周报 / 月报 */
.rp2-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.rp2-cat { padding: 6px 0 8px; border-bottom: 1px dashed #eef2f7; }
.rp2-cat:last-child { border-bottom: 0; }
.rp2-cat-hd { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.rp2-g { font-size: 12px; color: var(--brand); margin: 6px 0 2px; }
.rp2-it { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; font-size: 12.5px; }
.rp2-it .tm { color: var(--text-3); width: 82px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.rp2-it .t { flex: 1; min-width: 0; color: var(--text); cursor: pointer; }
.rp2-it.removed .t { text-decoration: line-through; color: var(--text-3); }
.rp2-it .ops { display: inline-flex; gap: 8px; flex-shrink: 0; font-size: 12px; }
.rp2-memo { margin: 0 0 4px 90px; font-size: 12px; color: var(--text-2); background: #f8fafc; border-radius: 6px; padding: 2px 8px; }
.rp2-reason { margin: 2px 0 6px 90px; }
.rp2-reason input { width: 100%; padding: 4px 8px; border: 1px solid #fecaca; border-radius: 6px; font-size: 12.5px; }
.rp2-reason input.err { border-color: var(--red); background: var(--red-bg); }
.rp2-more { position: relative; }
.rp2-menu { position: absolute; right: 0; top: 30px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(15,23,42,.12); padding: 6px; z-index: 5; white-space: nowrap; }
.rp2-menu a { display: block; padding: 6px 10px; font-size: 13px; cursor: pointer; }

/* 工作台使用说明抽屉（2026-10-10） */
.wk-help { font-size: 13px; line-height: 1.7; color: var(--text); }
.wk-help h2 { font-size: 17px; margin: 0 0 10px; }
.wk-help h3 { font-size: 14.5px; margin: 16px 0 8px; }
.wk-help p { margin: 6px 0; }
.wk-help ol, .wk-help ul { margin: 6px 0; padding-left: 22px; }
.wk-help li { margin: 3px 0; }
.wk-help hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.wk-help table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
.wk-help th, .wk-help td { border: 1px solid var(--border); padding: 5px 8px; text-align: left; vertical-align: top; }
.wk-help th { background: #f8fafc; font-weight: 600; white-space: nowrap; }
.wk-help code { background: #f1f5f9; border-radius: 4px; padding: 0 4px; }

/* ===== 2026-10-10 全面修改 · 全系统 ===== */
/* G1 顶栏语言切换（全系统只此一处） */
.top-lang { display: inline-flex; height: 32px; padding: 2px; border-radius: 16px; background: #f1f5f9; border: 1px solid var(--border); gap: 2px; flex-shrink: 0; }
.top-lang button { border: 0; background: transparent; border-radius: 14px; padding: 0 11px; font-size: 12.5px; color: var(--text-2); cursor: pointer; font-family: inherit; white-space: nowrap; }
.top-lang button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.top-lang button:not(.on):hover { color: var(--brand); }
/* G3 菜单布局编辑器 */
.nl-box { display: flex; flex-direction: column; gap: 10px; }
.nl-grp { border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.nl-gh { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.nl-gh .nl-name { width: 180px; font-weight: 600; }
.nl-items { padding: 6px; min-height: 34px; border-radius: 0 0 10px 10px; }
.nl-items.drop-on { background: #e0ecff; }
.nl-it { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 2px 0; background: #fff; border: 1px solid var(--border); border-radius: 7px; cursor: grab; font-size: 13px; }
.nl-it.dragging { opacity: .4; }
.nl-it.drop-before { box-shadow: 0 -2px 0 0 var(--brand); }
.nl-it .ico { width: 16px; text-align: center; color: var(--text-3); display: inline-flex; flex: none; align-items: center; justify-content: center; }   /* 批 R R1-11：放 svg 图标，不被名字挤压 */
.nl-grip { color: var(--text-3); cursor: grab; font-size: 12px; }
.nl-drop:empty { display: none; }
.nl-drop { padding: 6px 10px; }
/* 0.3 看板组件（public/js/charts.js）：数字卡与明细卡样式明显不同——数字卡浅底无边框阴影、大号数字；明细卡白底带边框 */
.ch-kpis { display: flex; gap: 12px; margin-bottom: 16px; }
.ch-kpis > .ch-kpi { flex: 1 1 0; }
.ch-kpis > .ch-kpi.primary { flex: 1.7 1 0; }
/* 2026-10-10（Mike）：浅蓝渐变和页面底色几乎一样、看不出卡片——改白底 + 边框 + 顶部 3px 品牌蓝 + 阴影 */
/* 批 V18 V18-33 公共件（审核方 #365 ★12）：看板组件的填充换成数据色（--u-data-*，core-v17-ui.css）；涨跌字用 --u-success / --u-danger，不再有绿红填充 */
.ch-kpi { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--u-data-1); box-shadow: var(--shadow); border-radius: 12px; padding: 12px 14px 10px; min-width: 0; position: relative; }
.ch-kpi.clickable { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.ch-kpi.clickable:hover { box-shadow: 0 4px 14px rgba(52, 81, 209, .16); transform: translateY(-1px); }
.ch-kpi.on { box-shadow: inset 0 0 0 2px var(--u-data-1); }
.ch-kpi-lb { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-kpi-vl { font-size: 26px; font-weight: 700; color: var(--text); line-height: 1.25; margin-top: 2px; letter-spacing: -.01em; }
.ch-kpi.primary .ch-kpi-vl { font-size: 48px; line-height: 1.1; }
.ch-kpi-u { font-size: 13px; font-weight: 500; color: var(--text-2); margin-left: 3px; }
.ch-kpi-ft { display: flex; align-items: center; gap: 6px; min-height: 20px; margin-top: 2px; font-size: 12px; flex-wrap: wrap; }
.ch-kpi-sub { color: var(--text-3); }
.ch-kpi .ch-spark { margin-left: auto; }
.ch-delta { font-weight: 600; font-variant-numeric: normal; }
.ch-delta.good { color: var(--u-success); } .ch-delta.bad { color: var(--u-danger); } .ch-delta.flat { color: var(--text-3); }
.ch-delta-lb { color: var(--text-3); }
.ch-st { font-size: 11.5px; font-weight: 600; }
.ch-st-ic { display: inline-flex; vertical-align: -2px; }   /* 走查 DP12（10-14）：状态图标用 icons.js（原「✕ / ! / ✓」字符） */
.ch-st-ic svg { width: 13px; height: 13px; }
.ch-stag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 10px; padding: 1px 8px; }
.ch-meter { position: relative; height: 8px; background: var(--u-data-track); border-radius: 4px; overflow: visible; }
.ch-meter-bar { height: 100%; border-radius: 4px; }
.ch-meter-mark { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--text); border-radius: 1px; }
/* D1 看板泳道（部门任务；后续计划日历等同类看板共用）：浅灰泳道 vs 白底任务卡，一眼分开 */
.kb-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
.kb-lane { background: #eef1f5; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; min-width: 0; }
.kb-lane.folded { background: #f4f6f9; }
.kb-lh { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; font-size: 13px; }
.kb-lh i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kb-lh .kb-n { background: #fff; color: var(--text-2); border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 600; }
.kb-lh .kb-fold { margin-left: auto; }
.kb-cards { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 330px); min-height: 120px; overflow-y: auto; padding: 1px 2px 2px; }
.kb-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); border-left: 3px solid var(--bar); padding: 8px 10px; cursor: pointer; transition: box-shadow .15s; }
.kb-card:hover { box-shadow: 0 3px 10px rgba(15, 23, 42, .14); }
.kb-tt { font-size: 13px; font-weight: 600; line-height: 1.35; word-break: break-word; }
.kb-ref { margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-ft { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.kb-av { width: 20px; height: 20px; border-radius: 50%; background: #dbe7f8; color: #1f5fae; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.kb-own { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.kb-od { color: #d03b3b; font-weight: 600; white-space: nowrap; }
.kb-empty, .kb-folded { padding: 10px 6px; text-align: center; }
/* G2 不准无限往下拉：首页 / 看板类卡片固定高度、卡片内部滚动、表头固定（.fx-scroll；高度用 --fx-h 调） */
.fx-scroll { max-height: var(--fx-h, 360px); overflow-y: auto; overscroll-behavior: contain; }
.fx-scroll > table.tbl thead th, .fx-scroll table.tbl thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--border); }   /* 批 R R1-9：border-collapse 下吸顶表头的底边会丢，用内阴影补 */
.fx-scroll > table.u-tbl:where([data-legacy]) thead th, .fx-scroll table.u-tbl:where([data-legacy]) thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--border); }   /* 批 V19 V19-13c 公共底：固定高度卡片里表头吸顶，也认换过皮的表 */
.fx-scroll.fx-sm { --fx-h: 260px; } .fx-scroll.fx-lg { --fx-h: 480px; }
/* 批 V11-a B20：离职 / 入职案件清单任务表——卡片里滚（高度同交接清单），操作列按钮能折行（俄文按钮长，窄屏不撑出抽屉） */
.hc-tasks { --fx-h: 420px; }
.hc-task-act { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
/* 批 V11-a B21：交接页打不开的条目——纯文字、悬停出「没有权限打开」 */
.hc-nolink { color: var(--text-2, #475569); cursor: help; border-bottom: 1px dotted var(--border, #cbd5e1); }
.fx-count { font-size: 12px; color: var(--text-3); font-weight: 400; }
/* 空模块收起：没有数据的卡片只占一行 */
.card.fx-empty .card-bd { display: none; }
.u-card:where([data-legacy]).fx-empty .card-bd { display: none; }   /* 批 V19 V19-13c 公共底：空模块收起（行为），也认换过皮的卡片 */
.card.fx-empty .card-hd { border-bottom: 0; }
.fx-ok { color: #0ca30c; font-weight: 600; font-size: 12.5px; }

/* ===== 2026-10-10 全面修改 · 人力资源 ===== */
/* H2 HR 首页：数字卡一行；两栏 / 三栏等高；卡片固定高度或最大高度 + 内部滚动（表头固定）；空卡一行 */
.hrx-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.hrx-kpis .stat-card { min-height: 84px; }
.hrx-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.hrx-row.hrx-c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hrx-row.hrx-c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hrx-row > .card { margin: 0; min-width: 0; }
.hrx-box { display: flex; flex-direction: column; min-width: 0; }
.hrx-box > .card-hd { flex: none; }
.hrx-box > .card-bd { flex: 1 1 auto; min-height: 0; overflow: auto; }
.hrx-box.hrx-fix { height: 360px; }
.hrx-box.hrx-fix5 { height: 290px; }
.hrx-box.hrx-max > .card-bd { max-height: 300px; }
.hrx-scroll thead th { position: sticky; top: 0; z-index: 1; background: #f8fafc; box-shadow: inset 0 -1px 0 var(--border); }
.hrx-cal > .card-bd { max-height: 380px; overflow: auto; }
.hrx-line { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-height: 44px; flex-wrap: wrap; }
.hrx-line b { font-size: 14px; }
.hrx-line-ok { color: var(--text-2); font-size: 13px; }
.hrx-ok { color: var(--green); font-weight: 700; }
.hrx-none { padding: 12px 14px; color: var(--text-2); font-size: 13px; }
.hrx-sec { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 4px 0 10px; padding-left: 8px; border-left: 3px solid var(--brand); }
.hrx-flash { animation: hrxFlash 1.2s ease-out; }
@keyframes hrxFlash { 0% { box-shadow: 0 0 0 3px rgba(30, 64, 175, .45); } 100% { box-shadow: var(--shadow); } }
/* H1 档案缺项：分类小标签（0 的只占一个勾） */
.hrx-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--border); flex: none; }
.hrx-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; user-select: none; }
.hrx-chip b { color: var(--red); }
.hrx-chip.on { border-color: var(--brand); background: var(--blue-bg); color: var(--brand); font-weight: 600; }
.hrx-chip.zero { cursor: default; background: #f8fafc; color: var(--text-3); }
/* H3 直属下属按部门 */
.hrx-dept { padding: 8px 14px 4px; }
.hrx-dept + .hrx-dept { border-top: 1px dashed var(--border); }
.hrx-dept-hd { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.hrx-pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 6px; }
.hrx-pc { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; background: #fff; min-width: 0; }
.hrx-pc.lead { border-color: #bfdbfe; background: #f8fbff; }
.hrx-pc.open { grid-column: 1 / -1; }
.hrx-pn { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrx-pc .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrx-lead { margin-top: 4px; font-size: 12.5px; }
.hrx-lead summary { cursor: pointer; color: var(--brand); }
.hrx-mem { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 2px 2px; }
.hrx-mem-it { white-space: nowrap; }
@media (max-width: 1280px) { .hrx-kpis { grid-template-columns: repeat(5, minmax(150px, 1fr)); } }
/* H4 人事设置 › 参数：分组卡片，每项「标题 + 说明 + 例子｜控件」 */
.hrx-setgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hrx-setgrid > .card, .hrx-setgrid > div > .card { min-width: 0; }
.hrx-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 44%); gap: 6px 14px; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; align-items: start; }
.hrx-set:last-child { border-bottom: 0; }
.hrx-set-l b { font-size: 13.5px; }
.hrx-set-l .small { margin-top: 3px; line-height: 1.5; }
.hrx-set-c select.ipt { width: 100%; }
.hrx-eg { color: #0f766e; }
.hrx-eg::before { content: ''; }
.hrx-unit { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 4px 0; }
.hrx-unit input.ipt { width: 76px; }
.hrx-unit span { font-size: 12.5px; color: var(--text-2); }
.hrx-remind { display: flex; flex-wrap: wrap; align-items: center; }
.hrx-set-ft { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); background: #fafbfc; }   /* 批 R R1-10：文字与按钮垂直居中、有间距 */
.hrx-ctbl td { vertical-align: top; }
.hrx-cks { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.hrx-cks label { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
@media (max-width: 1400px) { .hrx-setgrid { grid-template-columns: minmax(0, 1fr); } }
/* H5 档案「组织与汇报」卡 */
.hrx-oc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 16px; }
.hrx-ok-kv { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hrx-ok-kv > span.muted { font-size: 12px; }
.hrx-ok-kv > b { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.hrx-oc-chain { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 13px; line-height: 1.8; }
.hrx-oc-chain > .muted { margin-right: 8px; font-size: 12px; }
.hrx-oc-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.hrx-oc-edit-grid .field.full { grid-column: 1 / -1; }
.hrx-oc-edit-grid select, .hrx-oc-edit-grid input:not([type=checkbox]) { width: 100%; }
.hrx-oc-ck { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; cursor: pointer; padding-top: 6px; }
/* H5 员工列表：职级 / 负责人列 */
.hro-tbl .hrx-lv { white-space: nowrap; font-size: 12.5px; }
/* G2 补：绩效生成结果名单、上传文件列表、日历当天抽屉、流转记录展开后都在固定高度里滚动 */
.pf-genlist { max-height: 120px; overflow-y: auto; }
.fu-list { max-height: 260px; overflow-y: auto; }
.vc-dlist { max-height: calc(100vh - 220px); overflow-y: auto; }
.flowlog.fx-scroll { --fx-h: 320px; }
/* G2（人事）组织图：部门卡折叠 */
.hrx-fold-hd { cursor: pointer; user-select: none; }
.hrx-fold-ic { display: inline-block; width: 14px; color: var(--text-3); transition: transform .12s; }
.org-unit.hrx-fold > .org-card > .card-bd, .org-unit.hrx-fold > .org-children { display: none; }
.org-unit.hrx-fold > .org-card > .hrx-fold-hd .hrx-fold-ic { transform: rotate(-90deg); }
.hrx-tree { padding-right: 4px; }

/* ===== 2026-10-10 全面修改 · 我的工作台 ===== */
/* W2 本期工作记录：左右等高，左侧记录区内部滚动；分类标题吸顶、可折叠；顶部分类条数；底部留「确认本期工作记录」位置 */
.rp2-cols { align-items: stretch; }
.rp2-left { display: flex; flex-direction: column; min-height: 480px; min-width: 0; }
.rp2-left > .card-hd { flex: none; }
.rp2-sum { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.rp2-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border: 1px solid var(--border); border-radius: 12px; font-size: 12px; color: var(--text-2); cursor: pointer; background: #fff; }
.rp2-chip:hover { border-color: #93c5fd; color: var(--brand); }
.rp2-chip b { font-variant-numeric: tabular-nums; color: var(--text); }
.rp2-scroll { flex: 1 1 auto; height: 0; min-height: 0; overflow: auto; position: relative; padding: 0 14px 8px; }
.rp2-scroll .rp2-cat-hd { position: sticky; top: 0; z-index: 1; background: #fff; padding: 7px 0 5px; margin-bottom: 2px; cursor: pointer; user-select: none; border-bottom: 1px solid #f1f5f9; }
.rp2-fold-ic { display: inline-block; width: 14px; font-style: normal; color: var(--text-3); transition: transform .12s; }
.rp2-cat.fold .rp2-cat-bd { display: none; }
.rp2-cat.fold .rp2-fold-ic { transform: rotate(-90deg); }
.rp2-foot { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-top: 1px solid var(--border); background: #fbfcfe; border-radius: 0 0 10px 10px; }
.rp2-it .t { overflow-wrap: anywhere; }
/* W1 关联订单弹窗：宽 780、高 70% 视口，结果区内部滚动，每行完整显示不截断 */
.modal-box.wk-po-box { height: 70vh; }
.wk-po-box .drawer-bd { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.wk-po-top .ipt { width: 100%; }
.wk-po-list { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.wk-po-head, .wk-po-row { display: grid; grid-template-columns: 136px minmax(0, 1.5fr) minmax(0, 1.3fr) 76px 84px; gap: 10px; padding: 7px 12px; align-items: start; font-size: 13px; }
.wk-po-head { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: var(--text-2); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--border); }
.wk-po-row { cursor: pointer; border-bottom: 1px solid #f1f5f9; overflow-wrap: anywhere; line-height: 1.45; }
.wk-po-row.on { background: var(--blue-bg, #eff6ff); box-shadow: inset 3px 0 0 var(--brand); }
.wk-po-row .tag { white-space: nowrap; }
/* ---------- 批 V17 V17-6（审核方 #4 11-15 02:06）：关联订单选中态 ----------
   工作台「关联订单」弹窗（pages-work.js pickOrder）：选中的那行整行主色浅底 + 行首 ✓，鼠标划过只是浅灰、不改选中；列表下面固定一行「已选：…」
   可搜索选择器 Core.pickOrder 的下拉：已经选着的那张同样浅底 + ✓ */
.wk-po-row:hover:not(.on) { background: #f8fafc; }
.wk-po-row.on { background: #dbeafe; box-shadow: inset 3px 0 0 var(--brand); }
.wk-po-head, .wk-po-row { padding-left: 24px; }
.wk-po-row { position: relative; }
.wk-po-ck { display: none; position: absolute; left: 8px; top: 7px; color: var(--brand); font-weight: 700; }   /* 贴在行首左边距里，不挤订单号 */
.wk-po-row.on .wk-po-ck { display: inline; }
.wk-po-picked { flex: none; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: #f8fafc; color: var(--text-3); font-size: 13px; }
.wk-po-picked.on { background: var(--blue-bg); color: var(--brand); }
.opk-it[data-sel] { background: #dbeafe; box-shadow: inset 3px 0 0 var(--brand); }
.opk-ck { color: var(--brand); font-weight: 700; margin-right: 4px; }
/* W9 我的清单：清单多了内部滚动；「⋯」菜单改名、删除 */
.wk-mylists { max-height: 240px; overflow: auto; }
.wk-ml .wk-ml-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ml .n { margin-left: 0; }
.wk-ml-more { flex: none; padding: 0 5px; border-radius: 4px; color: var(--text-3); font-weight: 700; line-height: 18px; opacity: .45; }
.wk-ml:hover .wk-ml-more, .wk-ml.on .wk-ml-more { opacity: 1; }
.wk-ml-more:hover { background: #e2e8f0; color: var(--text); }
.wk-ml-menu { position: fixed; z-index: 400; min-width: 150px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.14); padding: 4px; }
.wk-ml-menu a { display: block; padding: 6px 10px; font-size: 13px; border-radius: 6px; cursor: pointer; color: var(--text); }
.wk-ml-menu a:hover { background: #f1f5f9; }
.wk-ml-menu a.red { color: var(--red); }

/* ===== 2026-10-10 全面修改 · 我的工作台（第 2 期：W4–W8、W10） ===== */
/* W8 截止条：顶部固定；剩 1 小时内橙色，过截止红色 */
.rp2-dl { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 10px; border-radius: 10px; font-size: 13px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.rp2-dl:empty { display: none; }
.rp2-dl.soon { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.rp2-dl.late { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.rp2-dl.done { background: #f8fafc; border-color: var(--border); color: var(--text-2); }
.rp2-dl .ic { width: 18px; text-align: center; }
/* W4 确认后左侧锁定变灰；提交按钮未确认时置灰（悬停提示） */
.rp2-left.locked .rp2-scroll, .rp2-left.locked .rp2-sum { background: #f8fafc; color: var(--text-2); }
.rp2-left.locked .rp2-scroll .rp2-cat-hd { background: #f8fafc; }
.rp2-confirmed { color: var(--green); font-size: 12.5px; font-weight: 600; margin-right: 6px; }
.btn.is-dis { background: var(--u-neutral-soft); color: var(--u-ink-3); border-color: var(--u-neutral-soft); cursor: not-allowed; }   /* 批 V18 V18-33 A：不能点和 .btn:disabled 同一个样子 */
.rp2-sbw { display: inline-block; }
/* W5 只读视图、W6 附件、补充说明 */
.rp2-ro { margin-bottom: 12px; }
.rp2-ro .lb { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.rp2-ro > div:last-child { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; }
.rp2-att { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.rp2-att-hd { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.rp2-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rp2-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 12.5px; }
.rp2-file .rp2-dlf { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.rp2-file .rp2-fdel { color: var(--text-3); cursor: pointer; }
.rp2-add { padding: 6px 10px; margin-bottom: 6px; border-left: 3px solid #93c5fd; background: #f8fafc; border-radius: 0 6px 6px 0; white-space: pre-wrap; font-size: 13px; }
.rp2-note-it { background: #fffbeb; border-radius: 6px; padding: 4px 8px; }
/* W7 审阅：页签角标、筛选行 */
.wk-badge { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 16px; text-align: center; font-weight: 600; }
.rv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.wrv-row { cursor: pointer; }
.wrv-row:hover { background: #f8fafc; }
.wrv-sum { overflow-wrap: anywhere; }
.wk-team td.num { white-space: nowrap; }
.wk-team th { white-space: normal; line-height: 1.3; vertical-align: bottom; overflow-wrap: normal; word-break: normal; }   /* 复验第四节：只在空格处换行，短词不拆；列宽按最长的俄文单词给 */
.wk-team .tbl-al td:nth-child(2) { overflow-wrap: normal; word-break: normal; hyphens: auto; }   /* 第 6 期走查 TM05：岗位列俄文单词不从中间拆 */
.tm-hd { flex-wrap: nowrap; min-height: 60px; box-sizing: border-box; }   /* 复验第七节 1：卡片头部高度固定——副标题只占一行、放不下省略，右侧控件上下不动 */
.tm-hd h3 { flex: none; white-space: nowrap; }
.tm-hd .sub { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-ctl { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.wk-seg button { width: 96px; box-sizing: border-box; text-align: center; }   /* 复验第七节 2：两个按钮定宽（按俄文加粗取），选中加粗不改宽度 */
.tm-slot { display: inline-flex; align-items: center; width: 150px; height: 32px; flex: none; }   /* 本周 / 本月 切换时旁边控件一个像素都不动：月份框和本周日期范围共用定宽占位 */
.tm-slot .ipt { width: 100%; margin: 0; }
.tm-slot [hidden] { display: none; }
.tm-week { font-size: 12.5px; color: var(--text-2); white-space: nowrap; padding: 0 4px; font-variant-numeric: tabular-nums; }
#tm-org { width: 150px; flex: none; }
.wk-team-dept { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 部门名（俄文长词）不在词中间断行，放不下省略，悬停看全称 */   /* 验收必修 2：表头允许换行、不截断（俄文长 30–40%） */
.tk-sadd { flex-wrap: wrap; }
.tk-sadd .ipt { min-width: 0 !important; }
.tk-sadd select { max-width: 150px; }
.tk-sadd input[type=date], .tk-sadd input.dp-input { width: 140px; flex: none; }   /* 验收应修 5：子步骤一行在 1366 下不被裁掉 */
.pf-rt-note { padding: 6px 14px; }
.pf-rt-note a { cursor: pointer; }
#rp2-confirm-slot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
/* D2 部门任务来源标签（专项 / 派任务 / 协作 / 外勤，分类色按 0.3 顺序） */
.dw-src { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-radius: 9px; padding: 0 7px; line-height: 18px; white-space: nowrap; }
.dw-urge { color: #d03b3b; border-color: #f3c4c4; }
/* C2 计划日历类型勾选 */
.pc2-tools { flex-wrap: wrap; }
.pc2-types { display: inline-flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-2); margin-right: 4px; }
.pc2-type { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.pc2-type input { margin: 0; }
.pc2-type i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.vc-done-dim { opacity: .55; }
#wk-body .tag, .wk-tabs .tag { white-space: nowrap; }

/* ===== 2026-10-10 全面修改 · AI 新媒体 ===== */
/* M1 / M2：自营矩阵、客户代运营两套子页签分开；范围切换是一行大按钮，子页签在下 */
.mmx-scope { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mmx-seg { display: inline-flex; padding: 3px; background: #eef2f7; border-radius: 10px; gap: 3px; }
.mmx-seg button { border: 0; background: transparent; padding: 6px 16px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; font-family: inherit; }
.mmx-seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.mmx-tabs { flex-wrap: wrap; margin-bottom: 14px; padding: 0 4px; }
.mmx-tabs .tab { padding: 9px 13px; }
/* 两栏平衡：左宽右窄，等高，卡片固定高度内部滚动（表头固定） */
.mmx-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.mmx-row.mmx-eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mmx-row > .card { margin: 0; min-width: 0; }
.mmx-fix { display: flex; flex-direction: column; height: var(--mmx-h, 440px); }
.mmx-fix.mmx-sm { --mmx-h: 300px; }
.mmx-fix > .card-hd { flex: none; }
.mmx-fix > .card-bd { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.mmx-fix thead th { position: sticky; top: 0; z-index: 2; }
.mmx-fix.fx-empty { height: auto; }
/* 表格不横向撑破：长文字换行 */
.mmx-tbl { table-layout: auto; width: 100%; }
.mmx-tbl td { word-break: break-word; }
.mmx-tbl td.nw, .mmx-tbl th.nw { white-space: nowrap; }
.mmx-tbl tr.mmx-click { cursor: pointer; }
.mmx-tbl tr.mmx-grp td { background: #f6f8fb; font-weight: 600; font-size: 13px; color: var(--text); padding-top: 7px; padding-bottom: 7px; }
.mmx-rate { display: flex; align-items: center; gap: 6px; min-width: 104px; }
.mmx-rate .ch-meter { flex: 1 1 auto; min-width: 60px; }
.mmx-rate b { font-size: 12.5px; min-width: 42px; text-align: right; }
.mmx-pay { font-size: 12.5px; min-width: 96px; }
.mmx-warn { display: inline-flex; align-items: center; gap: 3px; color: #d03b3b; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.mmx-zero { color: var(--text-3); font-size: 12.5px; }
.mmx-cust { display: inline-block; font-size: 12px; padding: 0 8px; border-radius: 10px; background: var(--blue-bg); color: var(--brand); white-space: nowrap; cursor: pointer; }
.mmx-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mmx-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 4px 11px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--text-2); cursor: pointer; user-select: none; }
.mmx-chip.on { border-color: var(--brand); background: var(--blue-bg); color: var(--brand); font-weight: 600; }
/* 批 M M2-c：总览账号表 / 分析中心合计行、创作方向两栏（手机一栏） */
.mmx-total td { background: #f8fafc; border-top: 2px solid var(--border); }
.mmx-dir-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.mmx-dir-grid > div:last-child { border-left: 1px dashed var(--border); padding-left: 14px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 767px) { .mmx-dir-grid { grid-template-columns: 1fr; } .mmx-dir-grid > div:last-child { border-left: 0; padding-left: 0; } }
.mmx-chip b { font-weight: 700; }
/* 发布标签、校验错误：固定高度内部滚动 */
.mmx-pubs { max-height: 56px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.mmx-errs { max-height: 160px; overflow-y: auto; margin-top: 6px; }
/* 客户360 */
.mmx-360-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mmx-360-hd h2 { font-size: 20px; font-weight: 700; margin: 0; }
.mmx-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mmx-nav a { font-size: 12.5px; padding: 3px 10px; border-radius: 12px; background: #f1f5f9; color: var(--text-2); cursor: pointer; }
.mmx-nav a:hover { color: var(--brand); }
.mmx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mmx-grid > .card { margin: 0; min-width: 0; }
.mmx-sub { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 8px 14px 4px; }
.mmx-kv { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 14px; font-size: 13px; }
.mmx-kv span { white-space: nowrap; }
.mmx-kv em { font-style: normal; color: var(--text-3); margin-right: 4px; }
.mmx-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 6px 14px 10px; }
.mmx-item { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.mmx-item .ch-meter { margin-top: 5px; }
@media (max-width: 1280px) { .mmx-row, .mmx-grid { grid-template-columns: minmax(0, 1fr); } }
/* 批 M M1-c 内容主线：阶段标签（颜色读 content-meta，--st）、旁支（暂缓 / 留库）虚线 + 斜纹、图例、每行一个「下一步」+「更多」菜单、登记弹窗、详情抽屉、Excel 预览 */
.mmx-st { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; line-height: 19px; white-space: nowrap; font-weight: 600; color: var(--st, #64748b); background: color-mix(in srgb, var(--st, #64748b) 13%, #fff); border: 1px solid color-mix(in srgb, var(--st, #64748b) 38%, #fff); }
.mmx-st.side { border-style: dashed; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--st, #9ca3af) 10%, #fff) 0 6px, #fff 6px 10px); font-style: italic; }
.mmx-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.mmx-legend b.small { color: var(--text-2); margin-right: 2px; }
.mmx-arr { color: var(--text-3); font-size: 12px; }
.mmx-lsep { display: inline-block; width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.mmx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; }
.mmx-pp { display: inline-block; font-size: 11.5px; padding: 0 6px; border-radius: 8px; background: #f1f5f9; color: var(--text-2); }
.mmc-tbl td { vertical-align: top; }
.mmc-t { min-width: 200px; }
.mmc-idea { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 批 M M1 收尾修 UI-1（截图 05：1366 宽俄文「人员」列一个字一个字折行、「下一步」列被挤出表格右边）：
 *  阶段列不再整列不换行（暂缓 / 留库原因可换行、最宽 200）；人员每人一行「登记 · 名字」、超长省略（全名在 title）；思路摘要最宽 280；下一步的原因最宽 180 */
.mmc-stc { min-width: 96px; }
.mmc-hold { max-width: 200px; overflow-wrap: anywhere; }
.mmc-ppl { min-width: 112px; }
.mmc-pp { max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmc-ret { color: #b42323; margin-top: 2px; }
.mmc-ops { white-space: nowrap; }
.mmc-opbar { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.mmc-why { color: #b45309; white-space: normal; max-width: 180px; margin-top: 2px; }
.mmx-more { position: relative; display: inline-block; }
.mmx-more > summary { list-style: none; cursor: pointer; }
.mmx-more > summary::-webkit-details-marker { display: none; }
.mmx-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 150px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(15, 23, 42, .14); padding: 4px; display: flex; flex-direction: column; }
.mmx-menu a { padding: 6px 10px; border-radius: 6px; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.mmx-menu a:hover { background: var(--blue-bg); color: var(--brand); }
.mmx-menu a.warn { color: #b45309; }
.mmx-menu a.danger { color: var(--red); }   /* 批 V17 V17-8：选题「删除」 */
.mmx-prods { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mmx-prod { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
.mmx-mine-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mmx-mine-hd h2 { font-size: 20px; font-weight: 700; margin: 0; }
.mmx-dh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mmx-kvs { display: flex; flex-direction: column; gap: 6px; }
.mmx-kvr { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.mmx-kvr > span { color: var(--text-3); }
.mmx-pre { white-space: pre-wrap; word-break: break-word; }
.mmx-link { word-break: break-all; font-size: 12px; background: var(--bg); padding: 8px; border-radius: 6px; }
.mmx-xlbox { max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.mmx-xl-over td { background: #fffbeb; }
.mmx-xl-bad td { background: #fef2f2; }
.ch-kpi[data-k="mm-rv"] .ch-kpi-vl { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 2026-10-10 全面修改 · 看板（charts / 工作台）===== */
/* charts.js：折线 / 柱 / 条（0.3：线 2px、柱头 4px 圆角、网格浅色实线、文字正文色、悬停提示框、图 / 表切换） */
.ch-chart { position: relative; min-width: 0; }
.ch-hd { display: flex; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 4px; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-2); flex: 1; min-width: 0; }
.ch-lg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ch-lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ch-sw { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-left: auto; flex: none; }
.ch-sw:empty { display: none; }
.ch-sw button { border: 0; background: #fff; color: var(--text-2); font-size: 12px; padding: 1px 9px; cursor: pointer; line-height: 18px; }
.ch-sw button + button { border-left: 1px solid var(--border); }
.ch-sw button.on { background: var(--blue-bg); color: var(--brand); font-weight: 600; }
.ch-body { width: 100%; min-width: 0; }
.ch-svg { display: block; overflow: visible; }
.ch-svg .ch-ax { font-size: 11px; fill: #64748b; }
.ch-svg .ch-lb { font-size: 12px; fill: #334155; }
.ch-svg .ch-mk { font-size: 11.5px; font-weight: 600; fill: #0f172a; }
.ch-svg .ch-bar { transition: opacity .12s; }
.ch-svg .ch-bar.dim { opacity: .45; }
.ch-svg.pick .ch-bar, .ch-svg.pick .ch-hit { cursor: pointer; }
.ch-empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; background: #f8fafc; border-radius: 8px; }
.ch-tip { position: absolute; z-index: 20; pointer-events: none; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(15, 23, 42, .14); padding: 7px 10px; font-size: 12px; color: var(--text); min-width: 120px; max-width: 280px; }
.ch-tip-t { font-weight: 600; margin-bottom: 3px; color: var(--text); }
.ch-tip-r { display: flex; align-items: center; gap: 6px; line-height: 19px; color: var(--text-2); }
.ch-tip-r i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ch-tip-r span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-tip-r b { color: var(--text); font-weight: 600; white-space: nowrap; }
.ch-tip-r.hl span { color: var(--text); font-weight: 600; }
.ch-tip-r.tot { border-top: 1px solid var(--border); margin-top: 3px; padding-top: 2px; }
.ch-tbl-in { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.ch-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ch-table th { position: sticky; top: 0; background: #f8fafc; color: var(--text-2); font-weight: 600; text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ch-table td { padding: 4px 8px; border-bottom: 1px solid #f1f5f9; }
.ch-table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ch-table th.num { font-family: inherit; }
.ch-table tr.pick { cursor: pointer; } .ch-table tr.pick:hover td { background: var(--blue-bg); }
.ch-est { font-size: 11.5px; color: #b45309; background: #fff7e6; border-radius: 8px; padding: 0 6px; white-space: nowrap; }

/* ===== 2026-10-10 全面修改 · 财务经营指标 ===== */
.fd-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; position: sticky; top: 0; z-index: 5; background: var(--bg, #f5f7fb); padding: 4px 0; }
.fd-subs { border-bottom: 0; margin: 0; }
.fd-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.fd-filters .fb-sel { height: 30px; }
.fd-asof { white-space: nowrap; }
.fd-body { min-width: 0; }
.fd-complete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 7px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; background: #f0f7f0; border: 1px solid #cfe8cf; }
.fd-complete.warn { background: #fff8e8; border-color: #f6dfa6; }
.fd-complete .bad b { color: #d03b3b; }
.fd-complete .fd-go, .fd-alerts .fd-go { margin-left: auto; color: var(--brand); font-weight: 600; }
.fd-fxbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; background: #fff3e6; border: 1px solid #f4cfa2; color: #7c4a03; }
.fd-est { color: #b45309 !important; }
.fd-sec { margin-bottom: 14px; }
.fd-sec-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.fd-sec-hd h3 { font-size: 15px; margin: 0; }
.fd-sec-hd .sub, .fd-card .card-hd .sub { color: var(--text-3); font-size: 12px; }
.fd-link { color: var(--brand); cursor: pointer; font-size: 12.5px; margin-left: auto; white-space: nowrap; }
.fd-kgrid { display: grid; grid-template-columns: minmax(240px, 1.1fr) 3fr; gap: 12px; }
.fd-kgrid > .ch-kpi.primary { display: flex; flex-direction: column; justify-content: center; }
.fd-kside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fd-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.fd-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fd-g2w { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.fd-card { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.fd-card .card-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fd-card .card-hd h3 { font-size: 13.5px; }
.fd-scroll { max-height: 260px; overflow: auto; }
.fd-scroll-s { max-height: 220px; overflow: auto; }
.fd-scroll-x { overflow-x: auto; }
.fd-mini th, .fd-mini.u-tbl:where([data-legacy]) th { position: sticky; top: 0; background: #f8fafc; z-index: 1; }   /* 批 V19 V19-13c：经营指标两张小表换成 u-tbl，带上 .u-tbl 压得住它的表头 / 格子 */
.fd-mini td, .fd-mini th, .fd-mini.u-tbl:where([data-legacy]) td, .fd-mini.u-tbl:where([data-legacy]) th { padding: 5px 8px; font-size: 12.5px; }
.tbl .num, .fd-mini .num { text-align: right; font-variant-numeric: tabular-nums; }
.fd-pick { cursor: pointer; } .fd-pick:hover td { background: var(--blue-bg); }
.fd-goal { padding: 6px 0 12px; cursor: pointer; }
.fd-goal + .fd-goal { border-top: 1px solid #f1f5f9; padding-top: 10px; }
.fd-goal-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.fd-goal-rt { margin-left: auto; font-weight: 600; white-space: nowrap; }
.fd-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; flex: none; }
.fd-seg button { border: 0; background: #fff; color: var(--text-2); font-size: 12px; padding: 2px 10px; cursor: pointer; line-height: 20px; }
.fd-seg button + button { border-left: 1px solid var(--border); }
.fd-seg button.on { background: var(--blue-bg); color: var(--brand); font-weight: 600; }
.fd-big { font-size: 30px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; }
.fd-big small { font-size: 13px; color: var(--text-2); font-weight: 500; }
.fd-q { margin-bottom: 14px; }
.fd-q-hd { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.fd-q-row { display: grid; grid-template-columns: 52px 1fr 56px; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.fd-q-row b { text-align: right; }
.fd-leads { display: grid; gap: 10px; margin-bottom: 8px; }
.fd-leads > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fd-leads span { width: 64px; color: var(--text-2); font-size: 12.5px; }
.fd-leads b { font-size: 22px; }
.fd-leads small { color: var(--text-3); }
.fd-alerts { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.fd-alerts li { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: 13px; }
.fd-alerts li:hover { background: var(--blue-bg); }
.fd-empty1 { padding: 8px 12px; color: var(--text-3); font-size: 13px; }
.fd-formula summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.fd-formula summary .sub { font-weight: 400; color: var(--text-3); margin-left: 8px; font-size: 12px; }
.fd-ttbl td, .fd-ttbl th { white-space: nowrap; }
.fd-tin { width: 100%; min-width: 72px; max-width: 120px; text-align: right; height: 28px; font-variant-numeric: tabular-nums; }
.fd-fillbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fd-chip { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.fd-chip.on { border-color: var(--brand); color: var(--brand); background: var(--blue-bg); }
.fd-chip.bad b { color: #d03b3b; }
.fd-svcs { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 200px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; padding: 8px; }
.fd-svc { font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.fd-wk { cursor: pointer; } .fd-wk:hover td { background: var(--blue-bg); }
.fd-wk0 td { background: #fef6f6; }
.fd-wkd > td, .u-tbl tr.fd-wkd > td { background: #fafcff; padding: 6px 12px 10px; }   /* 批 V19 V19-13c：同上 */
.fd-tot td { background: #f8fafc; }
.fd-comp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fd-cbd { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.fd-ctbl { max-height: 280px; overflow: auto; }
@media (max-width: 1440px) { .fd-cbd { grid-template-columns: 1fr; } .fd-kside { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 工作台总览（第二节）：数据总览卡（浅蓝渐变 .ch-kpi / 白底图表卡 .ck-card）与明细卡（.card 列表）样式分开 */
.ck { min-width: 0; }
.ck.ck-busy #ck-kpi, .ck.ck-busy .ck-row2, .ck.ck-busy .ck-row3, .ck.ck-busy .ck-row4 { opacity: .6; transition: opacity .15s; }
.ck-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ck-bar-lb { font-size: 12.5px; color: var(--text-2); margin-left: 6px; }
.ck-bar-lb:first-child { margin-left: 0; }
.ck-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.ck-seg button { border: 0; background: transparent; padding: 4px 11px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.ck-seg button + button { border-left: 1px solid var(--border); }
.ck-seg button.on { background: var(--brand); color: #fff; font-weight: 600; }
.ck-dept { font-size: 13px; font-weight: 600; color: var(--brand); background: var(--blue-bg); border-radius: 8px; padding: 4px 10px; }
.ck-asof { font-size: 12px; color: var(--text-3); }
.ck-fxbar { background: #fff7e6; border: 1px solid #fde3b0; color: #92400e; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.ck-kpis { margin-bottom: 12px; }
.ck-kpis .ch-kpi-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ck-od { font-size: 12px; color: #d03b3b; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ck-od:hover { text-decoration: underline; }
.ck-row2 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ck-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px 8px; min-width: 0; box-shadow: var(--shadow); }
.ck-hd { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.ck-hd h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.ck-sub { font-size: 12px; color: var(--text-3); }
.ck-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ck-row3 .card, .ck-row4 .card { margin: 0; min-width: 0; }
.ck-colbd { height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px; }
.ck-ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ck-m { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; display: flex; flex-direction: column; min-width: 0; background: #fff; }
.ck-m.go { cursor: pointer; }
.ck-m.go:hover { border-color: #93c5fd; background: #f8fbff; }
.ck-m-lb { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-m-vl { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--text); }
.ck-m-vl.red, .ck-tbl td.red, .ck-bar-v.red, .ck-sec b.red { color: #d03b3b; }
.ck-m-sub { font-size: 11.5px; color: var(--text-3); }
.ck-m-note { font-size: 11px; line-height: 1.3; color: var(--text-3); }   /* 2026-10-13 第 5 期上线前验证：本月任务完成率「含未到期的任务」 */
.ck-meter { margin: 2px 0 8px; }
.ck-sec { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 6px; font-size: 13px; border-left: 3px solid var(--brand); padding-left: 8px; }
.ck-sec a { cursor: pointer; font-weight: 600; }
.ck-tbl { font-size: 12.5px; }
.ck-tbl td, .ck-tbl th { padding: 4px 6px; }
.ck-tbl .num { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.ck-none { padding: 8px 4px; color: var(--text-3); font-size: 12.5px; }
.ck-bar-row { display: grid; grid-template-columns: 96px 1fr 76px; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; }
.ck-bar-row .ck-bar-dept { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-bar-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ck-bar-nm { cursor: pointer; }
.ck-bar-v { text-align: right; font-weight: 600; white-space: nowrap; }
.ck-row4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ck-fix { --fx-h: 320px; height: 320px; }
.ck-redlines { background: #fff; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 14px; font-size: 13px; }
.ck-redlines summary { cursor: pointer; color: var(--red); font-weight: 600; }
.ck-rl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin-top: 8px; font-size: 12.5px; }
.ck-rl b { color: var(--red); }
.ck-banner { background: var(--blue-bg); border: 1px solid #bfdbfe; color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 13px; margin-bottom: 10px; }
.ck-banner a { margin-left: 8px; cursor: pointer; }
@media (max-width: 1400px) { .ck-kpis .ch-kpi.primary .ch-kpi-vl { font-size: 48px; } .ck-kpis .ch-kpi-vl { font-size: 23px; } }
.fd-big .ch-delta, .fd-big .ch-delta-lb { font-size: 12px; font-weight: 600; }
.fd-big .ch-delta-lb { font-weight: 400; }
.ck-row4.one { grid-template-columns: 1fr; }
.ck-row4.one > .card:first-child .ck-fix { height: auto; }
.ck-row4.one > .card:first-child { display: flex; align-items: center; }
.ck-row4.one > .card:first-child .card-hd { border-bottom: 0; flex: none; }
.ck-row4.one > .card:first-child .ck-none { padding: 0 14px; }
.fd-g3 > .fd-card, .fd-g2 > .fd-card, .fd-g2w > .fd-card, .fd-comp > .fd-card { margin: 0 !important; }
.fd-ttbl td, .fd-ttbl th, .u-tbl.fd-ttbl td, .u-tbl.fd-ttbl th { padding-left: 4px; padding-right: 4px; }   /* 批 V19 V19-13c：目标录入表换成 u-tbl，同上 */
.fd-ttbl .fd-tin { min-width: 52px; max-width: 96px; padding: 0 4px; font-size: 12.5px; }
.fd-wkl td { background: #fff8ec; }
/* 第七节第 5 条：漏斗下方「历史订单（未排程）」「已暂停」两行 */
.ck-funnel-x { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.ck-fx-row { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 2px 4px; border-radius: 6px; cursor: pointer; }
.ck-fx-row:hover { background: var(--blue-bg); }
.ck-fx-row b { color: var(--text); font-size: 13px; }
a.ck-bar-v { cursor: pointer; color: var(--text); }
.ck-ck-list { margin-top: 6px; max-height: 76px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 4px; }

/* ===== 2026-10-11「我的执行」第 1 期：工作台（快速添加 / 新建任务抽屉 .tkd- / 关联节点列表 .wk-np / 右栏分组 / 改期标签 .wk-resched / 折叠组 .wk-collapsed / 本周本月 .wk-seg）
 * 规范（修改要求 11.1）：间距 4/8/12/16/20/24/32；卡片圆角 12、按钮输入 8、标签全圆角；右栏行高 ≥ 44；焦点框可见；1366 宽不出横向滚动（左 172 · 中自适应 · 右 336） ===== */
.wk-cols { grid-template-columns: 172px minmax(0, 1fr) 336px; }
/* 头像：姓名首字 + 固定 10 色（按用户 id 取色，全系统同一个人同一种颜色） */
.wk-av { background: #2a78d6; }
.wk-av.c0 { background: #2a78d6; } .wk-av.c1 { background: #eb6834; } .wk-av.c2 { background: #1baf7a; } .wk-av.c3 { background: #c98a00; } .wk-av.c4 { background: #d6669a; }
.wk-av.c5 { background: #2f8f46; } .wk-av.c6 { background: #6250d6; } .wk-av.c7 { background: #e34948; } .wk-av.c8 { background: #0e7490; } .wk-av.c9 { background: #7c5c2e; }
.wk-av.sm { width: 20px; height: 20px; font-size: 10px; margin-left: 0; }
.wk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: #2a78d6; }
.wk-dot.c0 { background: #2a78d6; } .wk-dot.c1 { background: #eb6834; } .wk-dot.c2 { background: #1baf7a; } .wk-dot.c3 { background: #c98a00; } .wk-dot.c4 { background: #d6669a; }
.wk-dot.c5 { background: #2f8f46; } .wk-dot.c6 { background: #6250d6; } .wk-dot.c7 { background: #e34948; } .wk-dot.c8 { background: #0e7490; } .wk-dot.c9 { background: #7c5c2e; }
/* 左栏智能清单：线性图标 */
.wk-li { min-height: 32px; box-sizing: border-box; }
.wk-li .ic { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); flex: none; }
.wk-li.on .ic { color: var(--brand); }
.wk-ml-more { display: inline-grid; place-items: center; width: 20px; height: 20px; }
/* 焦点框（11.5：所有能点的东西键盘可达、焦点清楚） */
#wk-body [role=button]:focus-visible, #wk-body .wk-chip:focus-within, .tkd [role=button]:focus-visible, .wk-np [role=button]:focus-visible, .wk-np-r:focus-within, .tkd-click:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 快速添加：输入框带「＋」图标；芯片 26 高、圆角 8、线性图标 */
.wk-qwrap { position: relative; }
.wk-qwrap .wk-q { padding-left: 38px !important; }   /* 给左侧加号图标留位，不压住文字（全局 input:not(...) 规则特异性更高，需 !important） */
.wk-qic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--brand); pointer-events: none; }
.wk-q { height: 40px; box-sizing: border-box; }
.wk-chips { gap: 8px; margin-top: 8px; }
.wk-chips .sp { flex: 1; }
.wk-chip { height: 26px; padding: 0 8px; border-radius: 8px; gap: 5px; box-sizing: border-box; }
.wk-chip .ic { color: var(--text-3); flex: none; }
.wk-chip.on .ic { color: var(--brand); }
.wk-chips .wk-chip select#wk-exec { max-width: 180px; }
.wk-more { font-size: 12px; color: var(--brand); cursor: pointer; white-space: nowrap; padding: 2px 4px; border-radius: 6px; font-weight: 500; }
.wk-more:hover { background: var(--blue-bg); }
/* 任务行：旗标按钮、仅自己、改期 N 次（W18：N ≥ 2 橙色） */
.wk-flag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #cbd5e1; cursor: pointer; font-size: 13px; }
.wk-flag:hover { background: #f1f5f9; color: var(--text-2); }
.wk-flag.on { color: #ea580c; }
.wk-lock { display: inline-flex; align-items: center; gap: 2px; }
.wk-resched { display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; line-height: 18px; background: #f1f5f9; color: var(--text-2); white-space: nowrap; }
.wk-resched.warn { background: #fff4e5; color: #b45309; }
/* 右栏分组列表（11.2）：组头 = 图标 + 名称 + 条数；行高 ≥ 44；行右侧操作按钮；超过 5 条组内滚动 */
.wk-right .card-hd h3 { display: inline-flex; align-items: center; gap: 8px; }
.wk-sys-ic { color: var(--brand); }
.wk-sys-bd { padding: 0 0 8px; max-height: calc(100vh - 230px); overflow: auto; }
.wk-sg { padding: 8px 0 4px; border-bottom: 1px solid #eef2f6; transition: background .2s ease-out; }
.wk-sg:last-child { border-bottom: 0; }
.wk-sg.wk-hl { background: #fffbeb; }
.wk-sg-hd { display: flex; align-items: center; gap: 6px; padding: 2px 14px 4px; margin: 0; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.wk-sg-hd .sp, .wk-collapsed .sp, .wk-np-h .sp, .tkd-pick .sp { flex: 1; }
.wk-sg-hd > .ic, .wk-sg-tg .ic { color: var(--text-3); flex: none; }
.wk-sg-c { font-size: 11px; color: var(--text-3); font-weight: 600; background: #f8fafc; border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; line-height: 16px; }
.wk-sg-sub { font-size: 11.5px; color: var(--text-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.wk-sg-hd b, .wk-sg-tg b, .wk-sg-more, .wk-sg-c { flex: none; white-space: nowrap; }   /* 验收应修 3：组标题完整显示，挤的时候压缩副文字 */
.wk-sg-more, .wk-sg-pg { font-size: 12px; color: var(--brand); cursor: pointer; white-space: nowrap; font-weight: 500; }
.wk-sg-pg { display: block; padding: 8px 14px 4px; }
.wk-sg-bd.scroll { max-height: 276px; overflow: auto; }
.wk-sg-tg { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: inherit; min-width: 0; }
.wk-sg-tg b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-collapsed { display: flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; box-sizing: border-box; font-size: 12.5px; color: var(--text-2); }
.wk-collapsed .wk-sg-tg b { font-weight: 600; }
.wk-si { display: flex; align-items: center; gap: 10px; padding: 6px 14px; min-height: 44px; box-sizing: border-box; font-size: 12.5px; }
.wk-si:hover { background: #fafcff; }
.wk-si-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 28px; background: #f1f5f9; color: var(--text-2); }
.wk-si-ic.blue { background: #eff6ff; color: #2563eb; } .wk-si-ic.org { background: #fdf0e9; color: #d0582a; } .wk-si-ic.yel { background: #fff6dc; color: #b07800; }
.wk-si-ic.teal { background: #e6f7f0; color: #14916a; } .wk-si-ic.pur { background: #efedfd; color: #5543c9; } .wk-si-ic.red { background: #fdecec; color: #b42323; } .wk-si-ic.gray { background: #f8fafc; color: var(--text-2); }
.wk-si-tx { flex: 1; min-width: 0; }
.wk-si-t { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.wk-si-s { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-si-tag { color: var(--text-2); }
.wk-od { color: var(--red); font-style: normal; font-weight: 600; }
.wk-pp { color: var(--yellow); font-style: normal; font-weight: 600; }   /* 批 O O1-b：工作台节点「已过计划日」（暂停 / 前置没完成，不算超期） */
.wk-si-act { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.wk-cv { color: var(--brand); cursor: pointer; white-space: nowrap; }
.wk-si-o { padding: 8px 14px 2px; font-size: 12px; color: var(--text-2); }
.wk-sg-empty { padding: 4px 14px; }
.wk-sys-empty { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--green); }
/* 关联节点列表（原型 S10 .np；弹窗和抽屉共用）：订单信息行 + 节点单选 + 「整单，不挂节点」+ 联动说明 + 跑腿提示 */
.wk-np { border: 1px solid #bfdbfe; border-radius: 12px; overflow: hidden; background: #fff; }
/* 批 R R1-4：关联弹窗第 2 步取节点时的加载态（同一个弹窗原地换内容，不空一下） */
.wk-np.wk-np-load { min-height: 240px; display: grid; place-items: center; }
.wk-np-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; min-height: 36px; box-sizing: border-box; background: #eff6ff; font-size: 13px; color: var(--brand); }
.wk-np-h .ic { flex: none; }
.wk-np-sw { font-size: 12px; color: var(--brand); cursor: pointer; white-space: nowrap; font-weight: 500; }
.wk-np-list { max-height: 264px; overflow: auto; }
.wk-np-r { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; min-height: 40px; box-sizing: border-box; border-top: 1px solid #eef2f6; font-size: 13px; cursor: pointer; }
.wk-np-r input[type=radio] { margin: 0; width: 16px; height: 16px; flex: none; accent-color: var(--brand); }
.wk-np-r.on { background: #f7faff; }
.wk-np-r b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-np-m { margin-left: auto; display: inline-flex; gap: 6px; flex: none; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.wk-np-m > span + span::before { content: '· '; }
.wk-np-dual { color: #14916a; }
.wk-np-n { display: flex; gap: 6px; align-items: flex-start; padding: 8px 12px; border-top: 1px solid #eef2f6; font-size: 12px; line-height: 1.5; color: var(--text-2); background: #fcfdff; }
.wk-np-n .ic { flex: none; margin-top: 2px; color: var(--brand); }
.wk-np-n.warn { background: #fffbeb; color: #8a5a00; }
.wk-np-n.warn .ic { color: #b45309; }
/* 统一「新建任务」抽屉（原型 S10，宽 580；头部 / 底栏固定，中间滚动） */
.tkd { display: grid; gap: 16px; align-content: start; }
.tkd-f { min-width: 0; }
.tkd-l { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.tkd-l em { color: var(--red); font-style: normal; }
.tkd .ipt { width: 100%; height: 36px; padding: 0 11px; box-sizing: border-box; border-radius: 8px; font-size: 13.5px; min-width: 0 !important; }   /* 日期组件给 datetime-local 的 190px 最小宽（input.dp-input[data-dp]）在三栏里会溢出抽屉，特异性更高所以用 !important */
.tkd-2 > *, .tkd-3 > *, .tkd-dt > * { min-width: 0; }
.tkd textarea.ipt { height: auto; min-height: 64px; padding: 8px 11px; resize: vertical; }
.tkd-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tkd-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }   /* 验收必修 1：开始 / 截止 单独一行（截止 = 日期 + 时间），提醒 / 类型 / 重复 一行，完整日期都放得下 */
.tkd-dt { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 4px; }   /* 批 R R1-5：时间框带钟表图标，88 → 108 */
.tkd-3 > [hidden] { display: none; }
.tkd-pick { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13.5px; }
.tkd-pick.ro { background: #f8fafc; color: var(--text-2); }
.tkd-click { cursor: pointer; }
.tkd-click:hover { border-color: var(--brand); }
.tkd-click > .ic { color: var(--brand); flex: none; }
.tkd-sel { flex: 1; min-width: 0; height: 34px; padding: 6px 0; border: 0; background: transparent; font-size: 13.5px; outline: none; }
.tkd-sel:focus-visible { outline: 2px solid var(--brand-light); border-radius: 4px; }
.tkd-avs { display: inline-flex; flex: none; }
.tkd-avs .wk-av { margin-left: -6px; border: 1.5px solid #fff; }
.tkd-avs .wk-av:first-child { margin-left: 0; }
.tkd-names { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkd-hint { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.tkd-run { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border: 1px solid #fde68a; border-radius: 8px; background: #fffbeb; color: #8a5a00; font-size: 12.5px; line-height: 1.5; }
.tkd-run .ic { flex: none; margin-top: 2px; color: #b45309; }
.tkd-linkempty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tkd-linkempty .btn { display: inline-flex; align-items: center; gap: 6px; }
.tkd-chk { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13.5px; cursor: pointer; }
.tkd-chk input { margin: 0; width: 16px; height: 16px; accent-color: var(--brand); }
.tkd-chk .ic { color: #ea580c; }
.tkd-steps { display: grid; gap: 4px; margin-bottom: 8px; }
.tkd-step { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.tkd-step-i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #f1f5f9; color: var(--text-2); font-size: 11px; }
.tkd-step-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkd-sdel { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--text-3); cursor: pointer; }
.tkd-sdel:hover { background: #fef2f2; color: var(--red); }
.tkd-sadd { display: grid; grid-template-columns: minmax(0, 1fr) 140px 132px 36px; gap: 6px; align-items: center; }
.tkd-sadd .btn { width: 36px; padding: 0; justify-content: center; }   /* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：方的图标按钮，高、圆角照通用 */
.tkd-note { margin-right: auto; line-height: 1.4; }
#tkd-ok { display: inline-flex; align-items: center; gap: 6px; }
/* 团队页：本周 / 本月切换；经营总览「逾期任务最多的 5 人」横条 */
.wk-seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; }
.wk-seg button { border: 0; background: transparent; padding: 4px 12px; border-radius: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.wk-seg button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.14); }
.wk-seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ck-od-hd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ck-od-list { display: grid; gap: 4px; margin-top: 8px; }
.ck-od-it { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 6px 10px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; }
.ck-od-it:hover { border-color: var(--brand); }
.ck-od-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 线性 SVG 图标在行内文字里的对齐（icons.js 输出 <svg class="ic">） */
svg.ic { display: inline-block; vertical-align: -3px; flex: none; }
.wk-np-sep { color: var(--text-3); }

/* 2026-10-11「我的执行」第 2 期 11.1：侧边栏菜单图标换成 icons.js 线性图标 */
.nav-item .ico { display: inline-flex; align-items: center; justify-content: center; }
.nav-item .ico svg.nav-svg { display: block; width: 18px; height: 18px; }
/* 第 2 期 11.4：顶栏标题不折行；副标题放不下省略、悬停看全文（俄文长 30–40%） */
.topbar h1 { white-space: nowrap; flex: none; }
.topbar .crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 第 3 期 Core.sortable：拖动排序中的条目 */
.sort-drag { opacity: .6; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); position: relative; z-index: 2; }
.sorting { user-select: none; }

/* ---------- 走查 Q26（10-14）：人事外框（#hrm-body）、系统设置（#st-mtpl）在 768 宽以下套用工作台同样的手机外壳——
 * 收起侧栏、顶栏换行、主区不设最小宽、抽屉 / 弹窗整宽（与 core-p2-work.css 工作台、core-p2-cal.css 团队日历 / 部门任务同一做法） ---------- */
@media (max-width: 767px) {
  body.app-shell:has(#hrm-body) .sidebar, body.app-shell:has(#st-mtpl) .sidebar { display: none; }
  body.app-shell:has(#hrm-body) .topbar, body.app-shell:has(#st-mtpl) .topbar { padding: 8px 12px; height: auto; flex-wrap: wrap; gap: 8px; }
  body.app-shell:has(#hrm-body) .topbar .crumb, body.app-shell:has(#st-mtpl) .topbar .crumb { display: none; }
  body.app-shell .main > .content:has(#hrm-body), body.app-shell .main > .content:has(#st-mtpl) { min-width: 0; padding: 12px 12px 32px; }
  body.app-shell:has(#hrm-body) .drawer, body.app-shell:has(#st-mtpl) .drawer { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto !important; min-width: 0 !important; max-width: none !important; border-radius: 14px; }
  body.app-shell:has(#hrm-body) .modal-box, body.app-shell:has(#st-mtpl) .modal-box { width: calc(100vw - 24px) !important; max-width: none; }
  body.app-shell:has(#st-mtpl) .content .card[style*="min-width:380px"] { min-width: 0 !important; flex-basis: 100% !important; }
  body.app-shell:has(#st-mtpl) .content .card { max-width: 100%; overflow-x: auto; }   /* 宽表在卡片里左右滑，不撑出主区 */
}
/* 批 M M1 收尾修 S3（截图 07）：AI 新媒体整页（#mm-body，含给所有人的「我的选题」#/mm?view=mine = .mmx-mine-hd）在 768 宽以下套用人事外框同一套手机外壳——
 * 收起侧栏、顶栏换行、主区不设最小宽、宽表在卡片里左右滑、抽屉 / 弹窗铺满 */
@media (max-width: 767px) {
  body.app-shell:has(#mm-body) .sidebar, body.app-shell:has(.mmx-mine-hd) .sidebar { display: none; }
  body.app-shell:has(#mm-body) .topbar, body.app-shell:has(.mmx-mine-hd) .topbar { padding: 8px 12px; height: auto; flex-wrap: wrap; gap: 8px; }
  body.app-shell:has(#mm-body) .topbar .crumb, body.app-shell:has(.mmx-mine-hd) .topbar .crumb { display: none; }
  body.app-shell .main > .content:has(#mm-body), body.app-shell .main > .content:has(.mmx-mine-hd) { min-width: 0; padding: 12px 12px 32px; }
  body.app-shell:has(#mm-body) .drawer, body.app-shell:has(.mmx-mine-hd) .drawer { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto !important; min-width: 0 !important; max-width: none !important; border-radius: 14px; }
  body.app-shell:has(#mm-body) .modal-box, body.app-shell:has(.mmx-mine-hd) .modal-box { width: calc(100vw - 24px) !important; max-width: none; }
  body.app-shell .content:has(#mm-body) .card, body.app-shell .content:has(.mmx-mine-hd) .card { max-width: 100%; overflow-x: auto; }   /* 宽表在卡片里左右滑，不撑出主区 */
  body.app-shell:has(#mm-body) .drawer .card, body.app-shell:has(.mmx-mine-hd) .drawer .card { max-width: 100%; overflow-x: auto; }   /* 详情抽屉里的阶段日志 / 发布与作品数据表同样在卡片里左右滑 */
  body.app-shell .content .mmx-tabs { flex-wrap: nowrap; overflow-x: auto; }
  body.app-shell .content .mmx-filter .ipt { width: 100% !important; }
  body.app-shell .content .mmc-idea { max-width: 200px; }
  body.app-shell .mmx-kvr { grid-template-columns: 96px minmax(0, 1fr); }
}
/* 手机（≤ 480）：会议模板只读摘要 +「请用电脑修改会议模板」；人资月度表改成每人一张卡片 */
.ms-phone, .pf-rt-cards { display: none; }
.ms-phone-ls { list-style: none; margin: 0; padding: 0; }
.ms-phone-ls li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; }
.ms-phone-ls li:last-child { border-bottom: 0; }
.pf-rt-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pf-rt-ch { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.pf-rt-cs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-2); }
.pf-rt-cs b { color: var(--text); }
@media (max-width: 480px) {
  .ms-card .ms-wrap { display: none; }
  .ms-card .ms-phone { display: block; }
  #rt-body > .pf-tw { display: none; }
  #rt-body > .pf-rt-cards { display: block; }
}

/* 批 R（2026-10-19）R1-14：统一人员选择器 Core.userPick（输入框 + 带 × 的标签；浮层挂 body、position: fixed，在弹窗里用不冲掉外层） */
.up { position: relative; min-width: 0; }
.up-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: text; }
.up-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 64, 175, .12); }
.up-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 4px 2px 10px; border-radius: 14px; background: var(--blue-bg); color: var(--brand); font-size: 12.5px; line-height: 20px; }
.up-tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-tag.up-fixed { padding-right: 10px; background: #f1f5f9; color: var(--text-2); }
.up-x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.up-x:hover { background: rgba(30, 64, 175, .14); }
.up-in, .up .up-box input.up-in { flex: 1 1 120px; min-width: 120px; width: auto; height: 26px; padding: 0 2px; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent; font-size: 13px; }
.up-meta { margin-top: 4px; }
.up-pop { position: fixed; z-index: 450; box-sizing: border-box; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; color: var(--text);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08); animation: dp-in .12s ease-out; }
.up-list { max-height: 264px; overflow-y: auto; padding: 4px; }
.up-it { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.up-it:hover, .up-it.hi { background: #f1f5f9; }
.up-it.dis { cursor: default; opacity: .6; }
.up-ck { flex: none; width: 14px; height: 14px; border: 1.5px solid #cbd5e1; border-radius: 4px; box-sizing: border-box; }
.up-it.on .up-ck { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.up-nm { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.up-sub { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: 12px; }
.up-empty { padding: 14px 8px; text-align: center; color: var(--text-3); }
.up-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-top: 1px solid var(--border); }
/* 批 R R1-12：删除前预检弹窗、列表「显示已停用」开关 */
.rf-dlg { font-size: 14px; line-height: 1.6; }
.rf-who { margin-bottom: 6px; }
.rf-line.ok { color: var(--green); font-weight: 500; }
.rf-line.no { color: var(--red); font-weight: 500; }
.rf-off { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text-2); cursor: pointer; user-select: none; }
.rf-off input { width: 14px; height: 14px; margin: 0; }
tr.rf-offrow td { color: var(--text-3); }

/* 批 R（2026-10-19）R2-7：铃铛抽屉——7 个页签带未读数、每条两行约 56px、✓ 悬停才出现 */
.nf-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.nf-tab { border: 1px solid transparent; background: none; border-radius: 14px; padding: 3px 10px; font-size: 12.5px; color: var(--text-2); cursor: pointer; line-height: 20px; white-space: nowrap; }
.nf-tab:hover { background: var(--bg); }
.nf-tab.on { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); font-weight: 600; }
.nf-tab .nf-n { display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: var(--red); color: #fff; font-size: 11px; line-height: 16px; text-align: center; font-weight: 600; }
.nf-list { display: flex; flex-direction: column; }
.nf-row { position: relative; box-sizing: border-box; min-height: 56px; padding: 6px 10px 6px 12px; border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 4px; }
.nf-row:hover { background: var(--bg); }
.nf-row:not(.unread) { opacity: .72; }
.nf-l1, .nf-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nf-l1 { height: 20px; }
.nf-l2 { min-height: 20px; margin-top: 3px; }
.nf-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.nf-row.unread .nf-dot { background: var(--brand); }
.nf-cat { flex: none; font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 3px; background: var(--bg); color: var(--text-2); white-space: nowrap; }
.nf-c-ap { background: var(--red-bg); color: var(--red); }
.nf-c-rv { background: var(--yellow-bg); color: #92400e; }
.nf-c-pf { background: var(--blue-bg); color: #1d4ed8; }
.nf-c-rm { background: #fff4e5; color: #b45309; }
.nf-c-mt { background: var(--green-bg); color: var(--green); }
.nf-t { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-row:not(.unread) .nf-t { font-weight: 500; }
.nf-tm { flex: none; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.nf-b { flex: 1; min-width: 0; padding-left: 13px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-l2 .btn.sm { flex: none; }
.nf-ok { flex: none; width: 22px; height: 20px; padding: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); color: var(--green); font-size: 12px; line-height: 18px; cursor: pointer; visibility: hidden; }
.nf-row:hover .nf-ok, .nf-ok:focus { visibility: visible; }
.nf-ok:hover { background: var(--green-bg); border-color: var(--green); }
@media (hover: none) { .nf-ok { visibility: visible; } }
/* 批 R（2026-10-19）R2-9：外勤单月视图当日抽屉——页签（各带数量）+ 按状态分组的紧凑行（两行，点行就地展开详情卡） */
.fdd-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -4px 0 10px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.fdd-tab { border: 1px solid transparent; background: none; border-radius: 14px; padding: 3px 10px; font-size: 12.5px; color: var(--text-2); cursor: pointer; line-height: 20px; white-space: nowrap; }
.fdd-tab:hover { background: var(--bg); }
.fdd-tab.on { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); font-weight: 600; }
.fdd-tab .fdd-n { display: inline-block; min-width: 16px; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: var(--bg); color: var(--text-2); font-size: 11px; line-height: 16px; text-align: center; font-weight: 600; }
.fdd-tab.on .fdd-n { background: var(--brand); color: #fff; }
.fdd-grp { margin-bottom: 10px; }
.fdd-gh { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 4px 2px; border-bottom: 1px solid var(--border); }
.fdd-gn { font-weight: 400; color: var(--text-3); }
.fdd-item { border-bottom: 1px solid var(--border); }
.fdd-row { box-sizing: border-box; min-height: 48px; padding: 5px 8px; cursor: pointer; border-radius: 4px; }
.fdd-row:hover, .fdd-item.open > .fdd-row { background: var(--bg); }
.fdd-l1, .fdd-l2 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fdd-l1 { height: 20px; }
.fdd-l2 { min-height: 18px; margin-top: 2px; padding-left: 18px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdd-car { flex: none; width: 12px; color: var(--text-3); font-size: 11px; }
.fdd-time { flex: none; font-weight: 600; font-size: 13px; min-width: 42px; }
.fdd-no { flex: none; font-size: 12px; color: var(--text-3); }
.fdd-cl { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdd-l1 .tag { flex: none; }
.fdd-me { flex: none; margin-left: auto; font-size: 11px; color: #92400e; background: var(--yellow-bg); border-radius: 3px; padding: 0 5px; line-height: 16px; }
.fdd-det:empty { display: none; }
.fdd-det { padding: 8px 0 4px; }
.fdd-det .fd-card { margin-bottom: 6px; }
.ftd-pre { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; font-weight: 400; }
.ftd-pre input { width: auto; margin: 0; }

/* 批 R R2-13：模拟补录（内测库）——完整度条「已补（其中模拟 N 单）」、待补清单「模拟」标签 */
.fd-complete .fd-sim { color: #a86b00; }
.fd-simtag { vertical-align: 1px; }

/* 批 O O1-c：订单看板（订单页顶部：期间 + 口径币、九张卡、下面三块） */
.ob-barline { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.ob-barline .ob-lb { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ob-barline .sp { flex: 1; }
.ob-barline .ob-custom input, .ob-sign input { width: 132px; }
.ob-note { margin-bottom: 8px; }
.ob-chd { display: flex; align-items: center; gap: 8px; margin: -2px 0 6px; }   /* 批 O 收口 U5：选了卡片时右上角「清除」 */
.ob-chd:empty { display: none; }
.ob-clear { cursor: pointer; font-size: 12.5px; font-weight: 600; }
.ob-cards .stat-card.ob-info { cursor: default; }
.ob-note:empty { display: none; }
.ob-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ob-cards .stat-card { padding: 12px 14px; }
.ob-cards .ob-recon { grid-column: 1 / -1; margin-top: 4px; }   /* 批 V12c C1：订单总览对账行在所有卡片（含周期服务）下面单独一整行 */
.ob-cards .stat-card .vl { font-size: 17px; white-space: nowrap; }
.ob-cards .stat-card .vl > .ob-sub { white-space: normal; }
.ob-cards .ob-sub { font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.ob-cards .stat-card.ob-off { cursor: default; }
/* 批 O O3 收口 V3：「周期服务」一张卡（卡片区第二排期间内结项右边），四个数 2 × 2 */
.ob-cards .ob-cyc-card { cursor: default; }
.ob-cyc { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 2px 8px; margin-top: 4px; }
.ob-cyc-it { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; }
.ob-cyc-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ob-cyc-l { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
/* 批 O N-内测修 N1：周期服务卡里三个数能点（续约率不点）；选中 = 蓝底蓝字蓝框（同选中的卡）；高亮用阴影画，不改尺寸、不挤换行 */
.ob-cyc-it.clickable { cursor: pointer; border-radius: 4px; }
.ob-cyc-it.clickable:hover { background: var(--blue-bg); box-shadow: 0 0 0 3px var(--blue-bg); }
.ob-cyc-it.clickable:hover .ob-cyc-v, .ob-cyc-it.clickable:hover .ob-cyc-l { color: var(--brand); }
.ob-cyc-it.clickable:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ob-cyc-it.clickable.on { background: var(--blue-bg); box-shadow: 0 0 0 3px var(--blue-bg), 0 0 0 4px var(--brand); }
.ob-cyc-it.clickable.on .ob-cyc-v, .ob-cyc-it.clickable.on .ob-cyc-l { color: var(--brand); font-weight: 600; }
.ob-cards .ob-cyc-card.on { border-color: var(--brand); }
.ob-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ob-blocks .card { margin: 0; }
@media (max-width: 1280px) { .ob-blocks { grid-template-columns: 1fr; } }
.ob-tbl { table-layout: fixed; width: 100%; }
.ob-tbl th, .ob-tbl td { padding: 5px 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-tbl th:nth-child(1) { width: 33%; } .ob-tbl th:nth-child(2) { width: 15%; } .ob-tbl th.num:last-child { width: 15%; }
.ob-tbl td.num { text-overflow: clip; }
.ob-tbl th { white-space: normal; text-overflow: clip; vertical-align: bottom; }
.ob-tbl.ob-nomoney th:nth-child(1) { width: 55%; } .ob-tbl.ob-nomoney th:nth-child(2) { width: 30%; }
.ob-tbl td.ob-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.ob-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.ob-bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.ob-h4 { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 2px 0 4px; }
.ob-h4 ~ .ob-h4 { margin-top: 12px; }
.ob-more-btn { display: inline-block; margin-top: 6px; cursor: pointer; }
.ob.ob-busy { opacity: .6; transition: opacity .15s ease-out; }
.ob-sign { display: inline-flex; align-items: center; gap: 4px; }
/* 批 O O1-d：预计成本行编辑器（建单弹窗 / 项目 360「调整预计成本」/ 系统设置 › 产品库模板）——单元格收紧，建单弹窗（640 宽）里一行放得下 */
.cp-ed th, .cp-ed td { padding: 4px 6px; }
.cp-ed select, .cp-ed input { font-size: 13px; padding-left: 6px; padding-right: 6px; }
/* 批 O O2-b：项目页（七张卡、健康分布、交付看板、筛选、卡片 / 列表两种视图、按人统计）+ 360 头卡统筹人 */
.pj-cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 10px; }
.pj-cards .stat-card { min-height: 78px; padding: 12px 14px; }
.pj-cards .stat-card .lb { white-space: normal; line-height: 1.3; }
.pj-dist { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; font-size: 12.5px; }
.pj-dist-lb { color: var(--text-2); white-space: nowrap; }
.pj-dist-bar { flex: 1 1 260px; display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #f1f5f9; min-width: 200px; }
.pj-dist-bar i { display: block; height: 100%; }
.pj-dist-lg { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-2); }
.pj-dist-lg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.pj-dlvc .card-hd .sub { white-space: normal; }
.pj-dlv-cmp { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.pj-dlv-c i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.pj-dlv-c.new i, .pj-dlv-plot i.n { background: var(--brand, #2563eb); }
.pj-dlv-c.done i, .pj-dlv-plot i.d { background: var(--green, #16a34a); }
.pj-dlv-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; }
.pj-dlv-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.pj-dlv-plot { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 110px; width: 100%; border-bottom: 1px solid var(--border); }
.pj-dlv-plot i { position: relative; display: block; width: 38%; max-width: 18px; min-height: 2px; border-radius: 3px 3px 0 0; }   /* 批 O N-内测修 N3：为 0 的柱也留 2px 的底，每期两根作为一组、和下面的标签同一中线居中（原来为 0 的那根看不见，剩下一根偏在标签一边） */
.pj-dlv-plot i b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--text-2); line-height: 14px; }
.pj-dlv-x { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pj-dlv-col.cur .pj-dlv-x { color: var(--brand); font-weight: 600; }
.pj-fb { gap: 6px 8px; align-items: center; }
.pj-fb .fb-sel { max-width: 210px; }
.pj-chips:empty { display: none; }
.pj-chips { margin-bottom: 8px; }
.pj-chip-x { cursor: pointer; margin-left: 4px; font-weight: 700; }
.pj-bar { align-items: center; gap: 10px; flex-wrap: wrap; }
.pj-exp { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-bottom: 14px; }
.pj-card { margin: 0; cursor: pointer; }
.pj-card:hover { border-color: var(--brand); }
.pj-card-h b { font-size: 15px; }
.pj-tags { gap: 6px; flex-wrap: wrap; }
.pj-rss { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pj-rs { cursor: pointer; text-decoration: none; }
.pj-rs:hover { filter: brightness(.95); text-decoration: underline; }
.pj-prog { display: flex; align-items: center; gap: 8px; }
.pj-prog-b { flex: 1; min-width: 60px; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.pj-prog-b i { display: block; height: 100%; background: var(--green); }
.pj-red { color: var(--red); font-weight: 600; }
.pj-yel { color: var(--yellow); font-weight: 600; }
.pj-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 10px 0 0; }
.pj-kv dt { color: var(--text-3); white-space: nowrap; }
.pj-kv dd { margin: 0; min-width: 0; }
.pj-vp { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; white-space: nowrap; }
/* 批 O 收口 U1：项目表格每单一行——固定列宽、单元格不换行、放不下省略号（完整内容在悬停里），1366 宽不出横向滚动 */
.pj-tblw { overflow: hidden; }
table.tbl.pj-tbl { table-layout: fixed; width: 100%; }
.pj-tbl th { white-space: nowrap; vertical-align: bottom; padding: 8px 5px; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; font-size: 12px; }
.pj-tbl td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 7px 6px; height: 36px; font-size: 12.5px; }
.pj-tbl td .tag { vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 1px 6px; }
.pj-tbl tr.pj-row { cursor: pointer; }
.pj-tbl .pj-prog { gap: 5px; }
.pj-tbl .pj-prog-b { min-width: 0; height: 9px; background: #e2e8f0; }
.pj-pri { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; background: var(--text-3); }
.pj-pri.red { background: var(--red); } .pj-pri.amber { background: var(--amber, #d97706); } .pj-pri.gray { background: #94a3b8; }
.pj-rsm { margin-left: 2px; font-size: 11.5px; font-weight: 600; color: var(--text-2); cursor: pointer; text-decoration: none; }
.pj-rsm:hover { text-decoration: underline; }
.pj-ics { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; cursor: default; }
.pj-vi { display: inline-flex; align-items: center; gap: 2px; }
.pj-vi .light { font-size: 0; gap: 0; }
.pj-out svg { vertical-align: -2px; margin-right: 2px; color: var(--text-2); }
.pj-cnote { margin: -4px 0 8px; }
/* 批 O 收口 U2：订单页 / 项目页筛选条——常用的一行、其余收进「更多筛选」，下拉统一宽度 */
.fb-uni .fb-row { gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.fb-uni .fb-sel { width: 150px; max-width: 150px; text-overflow: ellipsis; }
.fb-uni .fb-more { padding: 8px 10px; background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px; }
.fb-more-btn.on { border-color: var(--brand); color: var(--brand); }
.fb-more-btn b { color: var(--brand); }
/* 批 O O3 收口 V1 / V2：订单列表每单一行（同项目页 U1）——固定列宽、单元格不换行、放不下省略号（完整内容在悬停），1366 宽不出横向滚动 */
.od-tblw { overflow: hidden; }
table.tbl.od-tbl { table-layout: fixed; width: 100%; }
.od-tbl th { white-space: normal; vertical-align: bottom; padding: 8px 6px; line-height: 1.3; font-size: 12px; overflow: hidden; }
.od-tbl th:nth-child(8) { text-align: right; }
.od-tbl td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; padding: 7px 6px; height: 36px; font-size: 12.5px; }
.od-tbl td .tag { vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 1px 6px; }
.od-tbl .od-prog { display: flex; gap: 5px; align-items: center; }
.od-tbl .od-prog-b { display: block; flex: 1; min-width: 0; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.od-tbl .od-prog-b i { display: block; height: 100%; background: var(--green); }
/* 批 O N-内测修 N2（Mike 10-20 内测）：项目列表（表格视图）、订单列表每行之间 1px 浅灰虚线；卡片视图不加。只换线型不改粗细（原来就是 1px 实线 #f1f5f9），行高、列宽不变 */
.pj-tbl tbody td, .od-tbl tbody td { border-bottom: 1px dashed var(--border); }
.pj-tbl tbody tr:last-child td, .od-tbl tbody tr:last-child td { border-bottom: 0; }
.od-red { color: var(--red); font-weight: 600; }
.od-yel { color: var(--yellow); font-weight: 600; }
/* 批 O O3 收口 V5：建单弹窗「收费计划」——上面一行列名，一条计划一行（网格，1366 下不换行） */
.of-bp-head, .of-bp-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 76px 118px 44px 84px 26px; gap: 5px; align-items: center; }
.of-bp-head { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.of-bp-head[hidden] { display: none; }
.of-bp-head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-bp-row { margin: 4px 0; }
/* 批 V1-b V-21：建单弹窗「收款期次」一期一行：名称 / 比例 / 金额 / 触发 / 到期天数 / 删 */
.of-br-head, .of-br-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 104px minmax(0, 1.3fr) 60px 100px 26px; gap: 5px; align-items: center; }
.of-br-row > .br-dd { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }   /* 批 V2 V2-17：到期日（俄文「через N дн. после узла」折两行） */
.of-br-head { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.of-br-row { margin: 4px 0; }
.of-br-head[hidden] { display: none; }
.of-br-head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-br-row > select, .of-br-row > input { width: 100%; min-width: 0; padding: 6px 7px; font-size: 13px; height: 34px; }
.of-br-row > select { padding-right: 20px !important; background-position: right 6px center; background-size: 10px; }
.of-br-row > input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.of-br-row > input[type=number]::-webkit-inner-spin-button, .of-br-row > input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.of-br-sum.text-red { color: var(--red, #dc2626); }
#of-br-wrap.of-br-full .of-br-head, #of-br-wrap.of-br-full .of-br-rows, #of-br-wrap.of-br-full .of-br-btns { display: none; }   /* 批 V2 V2-18：收费计划排满合同额，收款期次不用再排 */
.of-bp-row > select, .of-bp-row > input { width: 100%; min-width: 0; padding: 6px 7px; font-size: 13px; height: 34px; }
.of-bp-row > select { padding-right: 20px !important; background-position: right 6px center; background-size: 10px; }
.of-bp-row > input.dp-input { padding-right: 24px !important; background-position: right 5px center; background-size: 14px 14px; }
.of-bp-row > input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.of-bp-row > input[type=number]::-webkit-inner-spin-button, .of-bp-row > input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.of-bp-row .bp-to { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.of-bp-row .bp-del { padding: 0; width: 26px; height: 26px; justify-content: center; }
.pj-ppl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pj-ppl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.pj-ppl-grid .card { margin: 0; }
@media (max-width: 1500px) { .pj-ppl-grid { grid-template-columns: 1fr; } }
.pj-ppl .card-bd { overflow-x: auto; }
.pj-ppl-tbl th { white-space: normal; vertical-align: bottom; }
.pj-pn { cursor: pointer; font-weight: 600; }
.o3-health { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }   /* 批 O 收口 U8 */
.o3-hr { cursor: pointer; text-decoration: none; }
.o3-hr:hover { text-decoration: underline; }
.o3-coord .o3-cur { margin-left: 2px; color: var(--brand); font-size: 10.5px; font-weight: 600; }
.o3-coord-ch { margin-left: 4px; cursor: pointer; font-size: 12px; }
.o3-coord-cf { margin: 0; padding-left: 18px; }
.o3-coord-cf li { margin: 4px 0; }

/* 批 W W2-收口（审核方 W1 第三节 UI-2）：工资表（导入方式的核算明细、系统算的宽表）——表格自己横向滚动；前两列（员工编号、姓名）固定、不折行，右边的列不被截 */
.pr-stk-wrap { overflow-x: auto; }
/* 表头两格用位置选，表体用 pr-s1 / pr-s2 类（合计行第一格跨两列） */
.tbl.pr-stk .pr-s1, .tbl.pr-stk .pr-s2, .tbl.pr-stk > thead > tr > th:nth-child(-n+2) { position: sticky; z-index: 2; background: var(--panel); white-space: nowrap; }
.tbl.pr-stk .pr-s1, .tbl.pr-stk > thead > tr > th:nth-child(1) { left: 0; min-width: 96px; width: 96px; max-width: 96px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
.tbl.pr-stk .pr-s2, .tbl.pr-stk > thead > tr > th:nth-child(2) { left: 96px; box-shadow: 1px 0 0 var(--border); }
.tbl.pr-stk td.pr-s1[colspan] { max-width: none; width: auto; box-shadow: 1px 0 0 var(--border); }
.tbl.pr-stk > thead > tr > th:nth-child(-n+2) { z-index: 3; white-space: normal; text-overflow: clip; }   /* 表头可以折行（俄文「Табельный номер」），表体的编号 / 姓名不折 */
/* 批 W W2-收口（UI-1）：提成明细——短列不折行，操作列按钮竖排不被截 */
.cm-dtbl .cm-nw { white-space: nowrap; }
.cm-dtbl .cm-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tbl.cm-dtbl th, .tbl.cm-dtbl td { padding: 8px 6px; }
.cm-dtbl .cm-ell { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.cm-dtbl .cm-note { min-width: 200px; max-width: 260px; }   /* 批 V18 V18-33 C（#373 签字 20:13 审核方记俄文一行 165 高）：按钮收成一排后，行高由这一格的阶梯说明决定——170 宽时俄文折 8 行；放到 200–260，俄文最高的行 222 → 147、常见的 166 → 110 */
/* 批 W W3-c：绩效打分抽屉「参考数据」、岗位与指标「未绑取数源」清单 */
.pf-ref > .pf-ref-hd { flex-wrap: wrap; gap: 6px 10px; }
.pf-ref-bd { padding: 10px 14px; }
.pf-ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 16px; }
.pf-ref-sec { min-width: 0; }
@media (min-width: 900px) { .pf-ref-sec.wide { grid-column: span 2; } }   /* 汇报小表占两栏（俄文表头长）；手机一栏时不占 */
.pf-ref-h { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.pf-ref-tw { overflow-x: auto; max-width: 100%; }
.pf-ref-tbl th, .pf-ref-tbl td { font-size: 12px; padding: 3px 6px; white-space: nowrap; }
.pf-ref-tbl th { white-space: normal; vertical-align: bottom; line-height: 1.25; }   /* 俄文表头长：表头可以折行，数不折；还宽就在本块里横滚，不压到旁边一块 */
.pf-ref-tbl tr.pf-ref-sum td { border-top: 1px solid var(--border); }
.pf-ref-kv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 12.5px; padding: 2px 0; }
.pf-ref-kv > b { font-variant-numeric: tabular-nums; }
.pf-ref-gt { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-unbound .pf-ub-tbl td { vertical-align: top; }
.pf-unbound .pf-ub-pos { cursor: pointer; }
/* 批 L L1-e（截图时发现）：线索列表俄文界面 1366 宽时「客户」列被挤成一两个字宽、右边几列要横向滚动才看得到——
 * 只在俄文（.ld-ru）：客户列最小 150px、单元格左右留白 14 → 8px、表头和标签允许折行；中文界面不变 */
.u-tbl.ld-ru th:first-child { min-width: 150px; }   /* 批 V19 V19-13c：线索列表换成 u-tbl（带 data-legacy），这几条跟着换；.u-tbl.ld-ru 两个类，压得住 u-tbl 自己的格子内边距和表头不折行 */
.u-tbl.ld-ru th, .u-tbl.ld-ru td { padding-left: 8px; padding-right: 8px; }
.u-tbl.ld-ru th { white-space: normal; }
.u-tbl.ld-ru td .u-tag { white-space: normal; height: auto; }
/* 批 L L2-c：删除写原因的确认框（Core.deleteReason，外框用二次确认框 .sec-ra-*）、线索 / 订单 / 合作方「删除」按钮灰掉时悬停看原因（Core.recycleDel） */
.del-rs-box { width: 440px; }
.del-rs-tip { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 7px 10px; }
.del-rs-lb { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: var(--text, #0f172a); }
.del-rs-ta { min-height: 72px; resize: vertical; font-size: 14px; font-family: inherit; line-height: 1.5; }
.rc-del { display: inline-flex; align-items: center; }
.rc-del-off { display: inline-block; cursor: not-allowed; }
.rc-del-off .btn { pointer-events: none; }

/* ---------- 批 G G1-d：审批中心 #/approvals（页签横排可横滑、筛选条、列表；手机 390 页签一行横滑、列表变卡片，外壳同人事 / 工作台手机做法）、工作台「我发起的审批 › 全部」、侧栏「审批」角标不折行（O-Q398） ---------- */
.apx { min-width: 0; max-width: 100%; }   /* 外层（#content）是网格 / 弹性布局时，页签再宽也不撑开主区（手机上页签自己横滑） */
.apx-tabs { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; margin-bottom: 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.apx-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
.apx-tab:hover { border-color: #93c5fd; color: var(--brand); }
.apx-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.apx-n { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: #e2e8f0; color: var(--text); font-size: 11.5px; line-height: 18px; text-align: center; font-weight: 600; }
.apx-n.red { background: var(--red); color: #fff; }
.apx-tab.on .apx-n { background: rgba(255, 255, 255, .25); color: #fff; }
.apx-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.apx-filter .fb-sel { max-width: 260px; }
.apx-filter input.fb-sel { width: 140px; }
.apx-filter .apx-qw .search-ipt { width: 220px; }
.apx-clear { cursor: pointer; color: var(--brand); }
.apx-card .card-hd .sub { color: var(--text-3); font-size: 12px; }
.apx-tw { overflow-x: auto; }
.apx-tbl td { vertical-align: top; }
.apx-tbl .apx-title { max-width: 360px; min-width: 200px; }
.apx-tbl .apx-title .apx-open { cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.apx-tbl td.nw { white-space: nowrap; }
.apx-tbl .apx-note { max-width: 190px; }
.apx-acts .btn { margin-right: 2px; }
.apx-late { color: var(--red); font-weight: 600; }
.apx-launch { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.apx-launch > .card { margin: 0; }
.apx-lg-bd { display: grid; grid-template-columns: 1fr; gap: 8px; }
.apx-k { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.apx-k-form { border-color: #bfdbfe; background: #f8fbff; }
.apx-k-t { font-weight: 600; font-size: 13.5px; }
.apx-k-ft { display: flex; justify-content: flex-end; }
.lvx-apm .card-hd { display: none; }
.wk-sg-all { margin-left: 6px; font-size: 12px; white-space: nowrap; cursor: pointer; color: var(--brand); }
.wk-collapsed .wk-sg-all { margin-left: auto; }
.sidebar .nav-item[data-k="approvals"] .txt { white-space: nowrap; }
/* 批 V11 B5：上面「审批」那条推到全部菜单项——文字一律单行、超长省略号（悬停看全名：core.js 菜单项 .txt 带 title），图标和角标不缩、给角标留位置 */
.sidebar .nav-item .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.sidebar .nav-item .ico, .sidebar .nav-item .badge { flex: none; }
/* 批 V11 B10：签证邀请函的字段用邀请函上的字体——人员弹窗邀请函 15 项（外框 .iv-f）、系统设置 › 签证邀请函三块的输入框 */
#modal-root .iv-f :is(input, textarea, select), #content .iv-f :is(input, textarea, select), #iv-ents :is(input, textarea, select), #iv-types :is(input, textarea, select), #iv-params :is(input, textarea, select) { font-family: 'Times New Roman', Times, serif; }   /* 带 id：要压过全站 input:not(...) 那条（特异度 0,6,1） */
@media (max-width: 767px) {
  body.app-shell:has(#apx-root) .sidebar { display: none; }
  body.app-shell:has(#apx-root) .topbar { padding: 8px 12px; height: auto; flex-wrap: wrap; gap: 8px; }
  body.app-shell:has(#apx-root) .topbar .crumb { display: none; }
  body.app-shell .main > .content:has(#apx-root) { min-width: 0; padding: 12px 12px 32px; }
  body.app-shell:has(#apx-root) .drawer { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto !important; min-width: 0 !important; max-width: none !important; border-radius: 14px; }
  body.app-shell:has(#apx-root) .modal-box { width: calc(100vw - 24px) !important; max-width: none; }
  .apx-tabs { flex-wrap: nowrap; }
  .apx-filter .fb-sel, .apx-filter input.fb-sel { max-width: none; flex: 1 1 140px; }
  .apx-filter .apx-qw, .apx-filter .apx-qw .search-ipt { width: 100%; flex: 1 1 100%; }
  .apx-filter .apx-dlb { flex: 1 1 100%; }
  .apx-launch { grid-template-columns: 1fr; }
  .apx-tbl thead { display: none; }
  .apx-tbl, .apx-tbl tbody, .apx-tbl tr, .apx-tbl td { display: block; width: auto; }
  .apx-tbl tr { border: 1px solid var(--border); border-radius: 12px; margin: 8px; padding: 6px 10px; background: #fff; }
  .apx-tbl td { border: 0 !important; padding: 3px 0 !important; }
  .apx-tbl td[data-lb]::before { content: attr(data-lb) "  "; color: var(--text-3); font-size: 12px; margin-right: 6px; }
  .apx-tbl .apx-title { max-width: none; }
  .apx-tbl .apx-title .apx-open { white-space: normal; }
}

/* ---------- 批 G G2-b：行政 #/adm（概况卡、页签横排可横滑、表格横滑；手机 390 页签一行横滑、列表变卡片、抽屉铺满，同审批中心做法） ---------- */
.adm-root { min-width: 0; max-width: 100%; }
.adm-root > .card, .adm-root #adm-tab > .card, .adm-root > .u-card[data-legacy], .adm-root #adm-tab > .u-card[data-legacy] { margin-bottom: 12px; }   /* 批 V19 V19-13c：卡片换 u-card 以后间距照旧 */
.adm-regs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.adm-home .card-bd { display: flex; flex-direction: column; gap: 10px; }
.adm-miss { margin: 0; }
.adm-stats { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; }
.adm-stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; color: inherit; text-decoration: none; }
.adm-stat:hover { border-color: #93c5fd; }
.adm-stat .lb { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-stat .vl { font-size: 20px; font-weight: 700; }
.adm-stat .vl.red { color: var(--red); }
.adm-low { color: var(--text-2); }
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; padding-bottom: 2px; margin: 4px 0 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.adm-tab { flex: 0 0 auto; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
.adm-tab:hover { border-color: #93c5fd; color: var(--brand); }
.adm-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.adm-tw { overflow-x: auto; }
.adm-tbl td, .adm-tbl.u-tbl > tbody > tr > td { vertical-align: top; }   /* 批 V19 V19-13c：表格换 u-tbl（它默认竖直居中、优先级更高）以后照旧顶对齐 */
.adm-tbl td.nw, .adm-tbl .nw { white-space: nowrap; }
.adm-tbl tr.adm-err td { background: #fff7f7; }
.adm-errmsg { color: var(--red); }
.adm-dw dl.desc { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; }
.adm-dw dl.desc dt { color: var(--text-3); font-size: 12.5px; }
.adm-dw dl.desc dd { margin: 0; }
.adm-acts { margin: 10px 0; }
.adm-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-files .fp-file { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border: 1px solid var(--border); border-radius: 8px; }
.adm-files .adm-fdl, .adm-files .adm-fdel { cursor: pointer; }
.adm-fup { cursor: pointer; }
.adm-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.adm-seg { display: inline-flex; gap: 4px; }
@media (max-width: 1100px) { .adm-stats { grid-template-columns: repeat(4, minmax(80px, 1fr)); } }
@media (max-width: 767px) {
  body.app-shell:has(#adm-root) .sidebar { display: none; }
  body.app-shell:has(#adm-root) .topbar { padding: 8px 12px; height: auto; flex-wrap: wrap; gap: 8px; }
  body.app-shell:has(#adm-root) .topbar .crumb { display: none; }
  body.app-shell .main > .content:has(#adm-root) { min-width: 0; padding: 12px 12px 32px; }
  body.app-shell:has(#adm-root) .drawer { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto !important; min-width: 0 !important; max-width: none !important; border-radius: 14px; }
  body.app-shell:has(#adm-root) .modal-box { width: calc(100vw - 24px) !important; max-width: none; }
  .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-filter .ipt { flex: 1 1 140px; width: auto !important; }
  .adm-tbl thead { display: none; }
  .adm-tbl, .adm-tbl tbody, .adm-tbl tr, .adm-tbl td { display: block; width: auto; }
  .adm-tbl tr { border: 1px solid var(--border); border-radius: 12px; margin: 8px; padding: 6px 10px; background: #fff; }
  .adm-tbl td { border: 0 !important; padding: 3px 0 !important; text-align: left !important; }
  .adm-tbl td[data-lb]::before { content: attr(data-lb) "  "; color: var(--text-3); font-size: 12px; margin-right: 6px; }
  .adm-dw dl.desc { grid-template-columns: 96px 1fr; }
}
/* 批 G G3-c：行政页 G3 五个页签（证照印章 / 借用 / 用印 / 采购 / 事务单）、请购明细表单、审批中心「不是审批」标签与借用 / 用印实际状态 */
.adm3-items td, .adm3-items.u-tbl > tbody > tr > td { padding: 4px 6px; vertical-align: middle; }   /* 批 V19 V19-13c：换 u-tbl 以后请购明细输入行照旧紧凑 */
.adm3-items .ipt { width: 100%; min-width: 60px; box-sizing: border-box; }
.adm3-items .adm3-rdel { cursor: pointer; color: var(--text-3); font-size: 16px; padding: 0 4px; }
.adm3-items .adm3-rdel:hover { color: var(--red); }
.adm-dw tr.adm3-chosen td { background: #f0fdf4; }
.adm-dw h4 { margin: 14px 0 6px; }
.adm3-ro { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 8px; }
.apx-na { margin-left: 4px; font-weight: 400; }
.apx-admst { white-space: nowrap; }
#adm3-sf-ores .fp-or, #adm3-sf-ores a { display: inline-block; margin: 4px 8px 0 0; cursor: pointer; }
@media (max-width: 767px) {
  .adm3-items thead { display: none; }
  .adm3-items, .adm3-items tbody, .adm3-items tr, .adm3-items td { display: block; width: auto; }
  .adm3-items tr { border: 1px solid var(--border); border-radius: 10px; margin: 6px 0; padding: 6px; }
}

/* 批 V1（2026-11-01）V-17：密码框「显示 / 隐藏」小眼睛（core.js pwEye 自动套上） */
.pw-eye-wrap { position: relative; display: block; width: 100%; }
.pw-eye-wrap > input { width: 100%; box-sizing: border-box; padding-right: 36px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; padding: 4px; border: 0; background: transparent; color: var(--text-3, #94a3b8); cursor: pointer; border-radius: 6px; line-height: 0; }
.pw-eye:hover { color: var(--text, #0f172a); background: rgba(15, 23, 42, .06); }
.pw-eye svg { width: 18px; height: 18px; }

/* 批 V1（2026-11-01）V-02：手机（≤767）——顶栏「☰ 菜单」，左侧滑出和电脑同一份菜单；所有页面主区不设最小宽，宽表在卡片里左右滑，抽屉 / 弹窗铺满 */
.nav-burger, .nav-mask { display: none; }
@media (max-width: 767px) {
  body.app-shell .nav-burger { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 13px; cursor: pointer; }
  body.app-shell .nav-burger svg { width: 18px; height: 18px; }
  body.app-shell .layout .sidebar { display: flex !important; position: fixed !important; left: 0; top: 0; bottom: 0; height: 100vh !important; width: 260px !important; max-width: 82vw; margin: 0 !important; border-radius: 0 16px 16px 0; z-index: 1200; transform: translateX(-105%); transition: transform .2s ease; }
  body.app-shell.nav-open .layout .sidebar { transform: none; box-shadow: 0 0 30px rgba(15, 23, 42, .35); }
  body.app-shell .sidebar .brand .zh, body.app-shell .sidebar .brand .en, body.app-shell .sidebar .nav-item .txt { display: inline !important; }
  body.app-shell .sidebar .brand .zh, body.app-shell .sidebar .brand .en { display: block !important; }
  body.app-shell .sidebar .user-box { display: flex !important; }
  body.app-shell.nav-open .nav-mask { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 1150; }
  body.app-shell .topbar { padding: 8px 12px; height: auto; flex-wrap: wrap; gap: 8px; }
  body.app-shell .topbar .crumb { display: none; }
  body.app-shell .main > .content { min-width: 0; padding: 12px 12px 32px; }
  body.app-shell .content .card { max-width: 100%; overflow-x: auto; }
  body.app-shell .content .u-card:where([data-legacy]) { max-width: 100%; overflow-x: auto; }   /* 批 V19 V19-13c 公共底：手机上宽表在卡片里左右滑，也认换过皮的卡片 */
  body.app-shell .drawer { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto !important; min-width: 0 !important; max-width: none !important; border-radius: 14px; }
  body.app-shell .modal-box { width: calc(100vw - 24px) !important; max-width: none; }
}
/* 批 V2 V2-19：期次进度条上浅色一段 = 已登记待核销；财务卡片「已收」下一行 */
.o3-regbar { position: relative; }
.o3-regbar > span { position: absolute; top: 0; height: 6px; border-radius: 3px; background: rgba(37, 99, 235, .28); z-index: 1; pointer-events: none; }
.o3-regsum { margin-top: 2px; font-size: 12px; color: var(--text-2, #475569); }
.o3-claim .o3-reg { cursor: pointer; }

/* ============================================================
 * 批 V8 V8-1：财务列表公共时间筛选（public/js/finperiod.js）
 * ============================================================ */
.fpd-row { margin: 6px 0 10px; }
.fpd { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.fpd-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: #eef2f7; border-radius: 8px; }
.fpd-seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.fpd-seg button.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.fpd .ipt { height: 30px; font-size: 13px; width: auto; }
.fpd-rng { color: #64748b; }
.fpd-sep { color: #94a3b8; }
@media (max-width: 480px) { .fpd { width: 100%; } .fpd-seg { width: 100%; } .fpd-seg button { flex: 1; padding: 4px 6px; } }
.fpd-note { color: #64748b; font-size: 12px; }

/* 批 V16-C15（审核方 #154 11-12 17:4x）：侧栏底部版本号（中俄同一串，no-i18n）
 * 批 V17 V17-5（审核方 #4 11-15 02:06）：右下角浮动「反馈」按钮去掉，挪到顶栏铃铛左边（core.js #fbk-btn，用铃铛的 .bell 样式，一样大）；浮动按钮原来那几条样式一起删 */
.bell.fbk-top { margin-right: 2px; }
.app-ver { padding: 2px 18px 10px; font-size: 11px; color: rgba(255, 255, 255, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-ver:empty { display: none; }
.fbk-shot { display: inline-block; width: 120px; height: 84px; margin: 0 8px 8px 0; border: 1px solid var(--border); border-radius: 6px; object-fit: cover; background: #f8fafc; cursor: zoom-in; }
.fbk-meta { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.fbk-ev { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.fbk-ev:last-child { border-bottom: 0; }

/* ---------- 批 V16d ②（审核方 #198 11-14 点头）：1366 宽俄文不在按钮 / 表头里面折字；只改这几处，全局 .btn 不动；排得下时（中文、1440 以上）样子不变 ---------- */
/* 工作台页头：按钮、日期不在里面折字；放不下时整个按钮掉到下一行 */
.wk-tabsbar { flex-wrap: wrap; row-gap: 8px; }
.wk-tabsbar > .btn, .wk-tabsbar > #wk-today { white-space: nowrap; flex-shrink: 0; }
/* 项目 360 页签：先收小间距，还放不下就一行横向滚动、两头渐隐（public/js/o360-tabfit.js 按需加类） */
.o3-tabbar .tabs.o3-tabs-tight .tab { padding: 7px 9px; }
.o3-tabbar .tabs.o3-tabs-scroll { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.o3-tabbar .tabs.o3-tabs-scroll .tab { flex-shrink: 0; }
.o3-tabbar .tabs.o3-fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.o3-tabbar .tabs.o3-fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px); mask-image: linear-gradient(to right, transparent, #000 40px); }
.o3-tabbar .tabs.o3-fade-l.o3-fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
/* 项目列表工具条：三个导出按钮是一组，放不下时整组掉到下一行靠右（同一行有 .sp 撑开时 auto 边距不起作用，单独一行才靠右） */
.pj-exp { flex-wrap: nowrap; margin-left: auto; }
.pj-exp .btn { white-space: nowrap; }
/* 导出按钮（K2 统一导出，全系统同一个类）不折字 */
.k-exp { white-space: nowrap; }
/* 经营总览「签约额去向」一行里的金额链接不拆开（「¥100 / тыс.」） */
.kck-pipe a { white-space: nowrap; }
/* 外勤单列表：俄文长表头不再溢出压到右边一列（固定列宽表格），表头可以折成两行 */
table.ft-tbl > thead > tr > th { white-space: normal; }   /* 批 V19 V19-13c：表换成 u-tbl（它的表头一行不折，优先级 0,1,3），这条带上 table 和层级才压得住 */
/* 批 V18 V18-33 C（★8 第 3 页 · 外勤单）：操作列一排按钮（去复核 / 回签 + 编辑 +「⋯」）——这是固定列宽的表、格子 overflow: hidden，放不下时整个按钮换到下一行，不往左被切掉；
 *   俄文长表头改用短写 + 悬停全称（pages-ops.js ftTh，审核方 #376 11-17 21:29：表头不在词中间折行） */
.ft-tbl .u-row-acts { flex-wrap: wrap; }
/* 批 V18 V18-33 E（审核方签 #376 第 1 条）：复核那一列（第 7 列）的标签放不下时在词和词之间换行，不被切成「Провере」；状态列的标签照旧一行（«К выполнению» 一行正好放得下，换行反而把长词挤出格子） */
.ft-tbl td:nth-child(7) .u-tag { white-space: normal; height: auto; }   /* 批 V19 V19-13c：标签换成 u-tag（高写死 20、一行不折），放不下时照旧在词和词之间换行 */
/* 批 V18 V18-33 E（审核方签 #376 11-17 22:05 第 2 条、#383 22:40：项目 360 资料文件清单俄文）：模板那一列的标签允许在词和词之间换行（原来一格占 437）；
 *   操作列照全站「操作列固定在右边」那条（下面 .u-x-over 一段）：最宽约两个按钮加「⋯」，放不下的行整个按钮换行 */
.pd-tbl td .tag { white-space: normal; }
/* 批 V18 V18-33 E 第 5 条（Mike 11-17 22:15 同意，审核方 22:24 / 22:40，稿 V18-33E_操作列固定在右边）：表格比容器宽、要横着拉时，最后一列「操作」钉在右边，别的列从它下面滑过——
 *   只管一行的最后一格、而且那一格里是 Core.U.actions(…, { row: true }) 那一排（.u-row-acts）；表头只钉同一张表最后那个 th。账单期次收款块那种不在最后一列的不钉。
 *   ① 钉住（sticky、right: 0、底色）一直开着：表放得下时它本来就在最右边，看不出变化；页面重画后没来得及重量，按钮照样看得到。
 *      用 :where() 把这几条的优先级降到 0：悬停、选中、斑马纹这些表格自己的底色照样盖得上；表头用表头自己的底色。
 *   ② 最宽 320（约两个小号按钮加「⋯」，用 max-width，不撑宽本来就溢出的表）；一排摆开超过的那几行由 ui-kit.js 挂 u-acts-wrap，整个按钮换行。
 *   ③ 左边细线和阴影只在 ui-kit.js 量出「真的放不下」（表上挂 u-x-over）时出。
 *   ④ 手机（≤ 640）表格改成卡片的不钉 */
@media (min-width: 641px) {
  :where(.tbl > tbody > tr > td:last-child:has(.u-row-acts)) { position: sticky; right: 0; z-index: 1; max-width: 320px; background: var(--panel); }
  /* 批 V18 V18-33 D2（造数真点时发现）：行底色写在 tr 上的（会计申报日历逾期行 style="background:#fef2f2"），钉住的那一格跟着行底色，不在操作列断开 */
  :where(.tbl > tbody > tr[style*="background"] > td:last-child:has(.u-row-acts)) { background: inherit; }
  :where(.tbl:has(> tbody > tr > td:last-child .u-row-acts) > thead > tr > th:last-child) { position: sticky; right: 0; z-index: 2; }
  .tbl.u-x-over > tbody > tr > td:last-child:has(.u-row-acts), .tbl.u-x-over > thead > tr > th:last-child { box-shadow: inset 1px 0 0 var(--border), -10px 0 10px -10px rgba(15, 23, 42, .18); }
  /* 批 V19 V19-13c 公共底：上面三条（钉住、跟行底色、表头）和这条（阴影）也认换过皮的表（u-tbl 带 data-legacy，ui-kit.js stickActs 同一个口径）；本来就是新零件的表照旧不钉 */
  :where(.u-tbl[data-legacy] > tbody > tr > td:last-child:has(.u-row-acts)) { position: sticky; right: 0; z-index: 1; max-width: 320px; background: var(--panel); }
  :where(.u-tbl[data-legacy] > tbody > tr[style*="background"] > td:last-child:has(.u-row-acts)) { background: inherit; }
  :where(.u-tbl[data-legacy]:has(> tbody > tr > td:last-child .u-row-acts) > thead > tr > th:last-child) { position: sticky; right: 0; z-index: 2; }
  .u-tbl:where([data-legacy]).u-x-over > tbody > tr > td:last-child:has(.u-row-acts), .u-tbl:where([data-legacy]).u-x-over > thead > tr > th:last-child { box-shadow: inset 1px 0 0 var(--border), -10px 0 10px -10px rgba(15, 23, 42, .18); }
  /* 批 V18 V18-33 D2（造数真点时发现，E 第 5 条的补丁）：钉住的格子各自是一层（sticky + z-index）——这一格的「⋯」打开时把它抬到别的钉住格子和表头上面，不然菜单（fixed 定位也出不了这一层）会被下一行的操作格盖住 */
  .tbl > tbody > tr > td:last-child:has(details.u-more[open]) { z-index: 4; }
  .u-tbl:where([data-legacy]) > tbody > tr > td:last-child:has(details.u-more[open]) { z-index: 4; }
}
.u-row-acts.u-acts-wrap { flex-wrap: wrap; }

/* ---------- 批 V17 V17-4（审核方 #4 11-15 02:06；V17 第三节禁止项「行内操作超过两个，收进⋯」）：行尾「⋯」菜单 ----------
   写法：<details class="row-more"><summary aria-label="更多操作">⋯</summary><div class="row-more-menu" role="menu"><a role="menuitem">…</a></div></details>；
   菜单靠右往下开；「同时只开一个、点外面 / Esc 收起」由用它的页面绑（签证抽屉邀请函表在 pages-ops.js Pages.inviteList） */
.row-more { position: relative; display: inline-block; }
/* 批 V18 V18-33 B（审核方 #365，Mike 19:08）：老「⋯」的样子并到新「⋯」（U.more）：小号图标按钮 32、菜单同 .u-more-menu */
.row-more > summary { list-style: none; cursor: pointer; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--u-radius-md); color: var(--u-ink-2); font-weight: 700; letter-spacing: 1px; user-select: none; }
.row-more > summary::-webkit-details-marker { display: none; }
.row-more > summary:hover, .row-more[open] > summary { background: var(--u-neutral-soft); color: var(--u-ink); }
.row-more > summary:focus-visible { outline: 2px solid var(--u-brand); outline-offset: 2px; }
.row-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 176px; background: var(--u-surface); border: 1px solid var(--u-line); border-radius: var(--u-radius-md); box-shadow: var(--u-shadow-pop); padding: 4px; display: flex; flex-direction: column; text-align: left; }
.row-more-menu a { padding: 7px 10px; border-radius: var(--u-radius-sm); font-size: 14px; line-height: 22px; color: var(--u-ink); cursor: pointer; white-space: nowrap; }
.row-more-menu a:hover, .row-more-menu a:focus-visible { background: var(--u-neutral-soft); outline: none; }
.row-more-menu a.danger { color: var(--u-danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 批 V17 V17-4 ②（审核方 #4 11-15 02:06）：财务 › 费用与代垫（pages-ops.js renderFinExpenses 的 .fexp-tbl）——表格里不许一个字一行 ----------
   表头只在词之间换行；项目 / 备注 / 收款方 / 客户名最多两行（长网址能断开，悬停 title 看全文）；「类型」标签和科目、期间、来源排在项目下面一行；「操作」定宽不折行 */
.fexp-tbl th, .u-tbl.fexp-tbl th { white-space: normal; overflow-wrap: normal; word-break: keep-all; }   /* 能在词之间换行、不在字中间断（原来窄列里「支付信息」叠字） */
.fexp-tbl .fexp-meta .tag, .fexp-tbl .fexp-meta .u-tag { white-space: normal; }   /* 批 V19 V19-13c：费用与代垫的标签换成 u-tag */
.fexp-tbl .fexp-meta .u-tag { height: auto; }
.fexp-tbl td { overflow-wrap: anywhere; }
.fexp-tbl .nw { white-space: nowrap; }
.fexp-tbl .fexp-clip { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.fexp-tbl td.fexp-ord { min-width: 100px; }
.fexp-tbl td.fexp-item { min-width: 160px; }
.fexp-tbl .fexp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.fexp-tbl .fexp-meta > .o3-wrap { display: contents; }
.fexp-tbl th.fexp-op, .fexp-tbl td.fexp-op { width: 1%; white-space: nowrap; }
.fexp-tbl td.num .ui-tip { margin-left: 4px; }

/* ---------- 批 V18 V18-33 公共件（审核方 #365 ★13，Mike 11-17 18:36）：系统设了「减少动态效果」的，全站动画和过渡全关 ----------
   用 0.01ms 而不是 none：等 transitionend / animationend 的老代码照样收到事件，不会卡住；JS 里的动效（数字数上去等）问 Core.U.reduced() */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
