/* ===== 佳资 Web 版 · 蓝青政务风 ===== */
:root {
  --primary: #06b6d4;
  --primary-deep: #0891b2;
  --blue: #3b82f6;
  --ink: #0f172a;
  --sub: #64748b;
  --line: #e8edf3;
  --bg: #f4f7fb;
  --card: #fff;
  --danger: #ef4444;
  --ok: #16a34a;
  --shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5;
}
button, input, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---------- 登录 ---------- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}
.login-card {
  width: 400px; background: #fff; border-radius: 20px; padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
}
.login-logo {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 18px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800;
}
.login-title { text-align: center; font-size: 24px; font-weight: 800; }
.login-sub { text-align: center; color: var(--sub); font-size: 13px; margin: 6px 0 28px; }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; font-size: 13px; color: var(--sub); margin-bottom: 8px; font-weight: 600; }
.login-field input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 10px; outline: none; transition: border-color .2s;
}
.login-field input:focus { border-color: var(--primary); }
.login-err { color: var(--danger); font-size: 13px; min-height: 20px; margin-bottom: 6px; }
.login-btn { width: 100%; height: 48px; font-size: 16px; letter-spacing: 4px; }
.login-tip { text-align: center; color: #94a3b8; font-size: 12px; margin-top: 18px; }

/* ---------- 通用按钮 ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff; border-radius: 10px; font-weight: 700; padding: 10px 20px;
}
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: #f1f5f9; color: var(--sub); border-radius: 10px; padding: 10px 20px; font-weight: 600; }
.btn-text { color: var(--sub); font-size: 13px; }
.btn-text:hover { color: var(--danger); }

/* ---------- 主框架 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand {
  height: 72px; display: flex; align-items: center; gap: 12px;
  padding: 0 20px; border-bottom: 1px solid var(--line);
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.brand-text b { display: block; font-size: 16px; }
.brand-text span { font-size: 11px; color: var(--sub); }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group { font-size: 11px; color: #94a3b8; padding: 14px 12px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 10px; color: var(--sub); font-size: 14px; margin-bottom: 2px;
  width: 100%; text-align: left;
}
.nav-item:hover { background: #f1f5f9; }
.nav-item.on { background: #e6f7fa; color: var(--primary-deep); font-weight: 700; }
/* 菜单图标：Phosphor Icons 内联 SVG，颜色跟随系统蓝青色系 */
.nav-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: color .15s, transform .15s;
}
.nav-icon svg { display: block; width: 18px; height: 18px; }
.nav-item:hover .nav-icon { color: var(--primary); }
.nav-item.on .nav-icon { color: var(--primary-deep); transform: scale(1.04); }
.sidebar-foot { padding: 16px; border-top: 1px solid var(--line); }
/* 左下角只保留退出按钮（姓名和身份已在右上角顶栏显示）
   尺码约为上一版的 70%，配色走系统蓝青色系：默认浅青底、悬停才变实心 */
.logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 34px; padding: 7px 12px;
  border: 1px solid #bae6fd; border-radius: 9px; cursor: pointer;
  background: linear-gradient(135deg, #e6f7fa, #eff6ff);
  color: var(--primary-deep); font-size: 13px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 1px 2px rgba(6, 182, 212, .08);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.logout-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, .24);
}
.logout-btn:active { transform: scale(.98); }
.logout-btn .lo-ico { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.logout-btn .lo-ico svg { display: block; width: 15px; height: 15px; }
.logout-btn .lo-txt { line-height: 1; }
/* 版本号（左下角 + 登录页底部），永远显示，方便核对是不是最新版 */
.side-ver { color: #b0b6c6; font-size: 11px; margin-top: 8px; letter-spacing: .2px; }

/* ---------- 侧栏收缩 / 展开 ---------- */
.sidebar { transition: width .22s ease; }
.side-toggle {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  margin: 8px 12px 12px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--sub); font-size: 12px; cursor: pointer;
}
.side-toggle:hover { background: #f1f5f9; color: var(--primary-deep); border-color: var(--primary); }
.st-ico { font-size: 14px; line-height: 1; }
.lo-ico { display: none; }

/* 收起后：只留图标，版本号缩小但仍显示（用户要靠它确认是不是最新版） */
.sidebar.collapsed { width: 68px; }
.sidebar.collapsed .brand { padding: 0; justify-content: center; }
.sidebar.collapsed .brand-text { display: none; }
.sidebar.collapsed .nav-group { display: none; }
.sidebar.collapsed .nav-label { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 11px 0; }
.sidebar.collapsed .st-txt { display: none; }
.sidebar.collapsed .side-toggle { justify-content: center; margin: 8px 10px 12px; padding: 8px 0; }
.sidebar.collapsed .sidebar-foot { padding: 12px 6px; text-align: center; }
.sidebar.collapsed .logout-btn { padding: 7px 0; }
.sidebar.collapsed .lo-txt { display: none; }
.sidebar.collapsed .lo-ico { display: inline-flex; }
.sidebar.collapsed .logout-btn .lo-ico svg { width: 18px; height: 18px; }
.sidebar.collapsed .side-ver { font-size: 10px; word-break: break-all; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 72px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  position: sticky; top: 0; z-index: 10;
}
.page-title { font-size: 20px; font-weight: 800; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.sync-state { color: var(--ok); font-size: 13px; }
.top-user { color: var(--sub); font-size: 13px; }

/* 团队 / 个人 视角切换（仅管理员、超管可见）——选中态按交互规范用实心主色渐变 */
.scope-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  cursor: pointer; user-select: none;
}
.scope-opt {
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 12px; border-radius: 999px;
  color: var(--sub); background: #f6f8fa;
  transition: background .15s, color .15s, box-shadow .15s, transform .1s;
}
.scope-opt:hover { color: var(--ink); }
.scope-opt.on {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff; box-shadow: 0 2px 8px rgba(6, 182, 212, .28);
}
.scope-switch:active .scope-opt.on { transform: scale(.97); }
.page-body { padding: 24px 28px; flex: 1; }

/* ---------- 页面通用 ---------- */
.card { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.stat-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-box {
  flex: 1; min-width: 150px; background: #fff; border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow);
}
.stat-box .n { font-size: 28px; font-weight: 800; color: var(--primary-deep); }
.stat-box .l { font-size: 13px; color: var(--sub); margin-top: 4px; }

.toolbar { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  height: 40px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 9px; outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); }
.toolbar .search { flex: 1; min-width: 200px; max-width: 320px; }

/* 表格 */
/* 表格容器：横向可滚动（列多时不压缩文字），纵向超高时表头吸顶。
   仅作用于主内容区；弹窗内的表格沿用原样，避免双层滚动条。 */
.table-wrap { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.page-body .table-wrap { overflow: auto; max-height: 72vh; }
table { width: 100%; border-collapse: collapse; }
/* 表头在表格自身滚动区内吸顶 */
.page-body .table-wrap thead th { position: sticky; top: 0; z-index: 2; }
th { background: #f8fafc; color: var(--sub); font-size: 13px; font-weight: 700; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--sub); }
.tag.on { background: #e6f7fa; color: var(--primary-deep); }
.empty { text-align: center; color: #94a3b8; padding: 60px 20px; }
.loading { text-align: center; color: var(--sub); padding: 60px 20px; }

/* Toast */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, .9); color: #fff; padding: 12px 24px; border-radius: 10px;
  font-size: 14px; z-index: 9999; opacity: 0; transition: all .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 星级 / 操作列 / 分页 ---------- */
.star { color: #f59e0b; font-size: 12px; font-weight: 700; }
.ops { white-space: nowrap; }
.op-edit, .op-del { padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; margin-right: 6px; }
.op-edit { background: #e6f7fa; color: var(--primary-deep); }
.op-edit:hover { background: #d3eef4; }
.op-del { background: #fef2f2; color: var(--danger); }
.op-del:hover { background: #fee2e2; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; color: var(--sub); font-size: 13px; border-top: 1px solid var(--line); }
.pager button { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-deep); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 弹层 / 表单 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: #fff; border-radius: 16px; width: 560px; max-width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.modal.sheet-full { width: 620px; }
/* 大弹窗：含「数据挑选/列表」的表单（对齐 Ant Design Form 弹窗 720px 档位）。
   高度占视口 86%，列表区自动撑满剩余空间 —— 屏幕越大看得到的项目越多 */
.modal.wide { width: 820px; height: 86vh; }
.modal.wide .modal-body { display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 17px; }
.modal-x { font-size: 18px; color: var(--sub); }
.modal-x:hover { color: var(--danger); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }
.modal-foot button:disabled { opacity: .6; cursor: wait; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--sub); font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line);
  border-radius: 9px; outline: none; background: #fff;
}
.field textarea { height: auto; padding: 10px 11px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.contacts-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.contacts-head b { font-size: 14px; }
.contacts-head .btn-ghost { padding: 6px 14px; font-size: 13px; }
.contact-row { display: grid; grid-template-columns: 1fr 1.1fr 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.contact-row input { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; min-width: 0; }
.contact-row input:focus { border-color: var(--primary); }
.primary-chk { font-size: 12px; color: var(--sub); white-space: nowrap; display: flex; align-items: center; gap: 3px; }
.primary-chk input { width: auto; height: auto; }
.contact-row .op-del { margin: 0; padding: 4px 8px; }

/* ---------- 详情展示 ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.detail-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #f8fafc; border-radius: 9px; }
.detail-item span { font-size: 12px; color: var(--sub); }
.detail-item b { font-size: 14px; color: var(--ink); }
.detail-desc { margin-top: 18px; padding: 14px; background: #f8fafc; border-radius: 9px; }
.detail-desc b { font-size: 13px; }
.detail-desc p { margin-top: 6px; color: var(--sub); line-height: 1.7; white-space: pre-wrap; }

/* ---------- 日志页 ---------- */
.log-content { max-width: 360px; white-space: pre-wrap; line-height: 1.5; }
.proj-hits { border: 1px solid var(--line); border-radius: 9px; margin-top: 4px; max-height: 180px; overflow-y: auto; position: relative; z-index: 5; background: #fff; }
.proj-hits:empty { display: none; }
.proj-hit { padding: 9px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line); }
.proj-hit:last-child { border-bottom: none; }
.proj-hit:hover { background: #e6f7fa; color: var(--primary-deep); }
.proj-hit.none { color: #94a3b8; cursor: default; }
/* 列表分段单元格 */
.seg-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.seg-cell b { font-size: 13px; }
.seg-sub { font-size: 12px; color: var(--sub); }
.seg-empty { color: #94a3b8; }
.nature-tag { display: inline-block; align-self: flex-start; margin-top: 3px; padding: 1px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.nature-normal { background: #f1f5f9; color: #64748b; }
.nature-nonstandard { background: #fef3c7; color: #b45309; }
.nature-assist { background: #dbeafe; color: #1d4ed8; }
/* 表单分段块 */
.lg-block { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.lg-block-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.lg-bar { width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.lg-block-afternoon .lg-bar { background: var(--blue); }
.lg-block-head b { font-size: 14px; }
.lg-clear { margin-left: auto; color: var(--sub); font-size: 12px; }
.lg-clear:hover { color: var(--danger); }
.lg-block-body { padding: 12px 14px; }
.mini-label { display: block; font-size: 12px; color: var(--sub); font-weight: 600; margin: 6px 0; }
.lg-pick { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; }
.lg-pick:focus { border-color: var(--primary); }
.lg-ro { padding: 8px 11px; background: #f8fafc; border-radius: 8px; color: var(--sub); font-size: 13px; }
.lg-customer.hide { display: none; }
.lg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.lg-row2 .field label { font-size: 12px; color: var(--sub); font-weight: 600; }
.lg-row2 select { height: 38px; }
.nature-sel.nature-nonstandard { border-color: #f59e0b; background: #fffbeb; }
.nature-sel.nature-assist { border-color: #3b82f6; background: #eff6ff; }
.lg-same-switch { display: flex; align-items: center; gap: 9px; padding: 12px 14px; margin-bottom: 14px; background: #fffaf0; border: 1px solid #fde9b8; border-radius: 12px; cursor: pointer; font-size: 13px; color: #8a6d2f; }
.lg-same-switch input { width: 16px; height: 16px; accent-color: #e9a23b; }
.lg-same-tip { padding: 12px 14px; margin-bottom: 14px; font-size: 13px; color: #6b5a2e; background: #fffdf6; border: 1px dashed #f0d999; border-radius: 12px; }
.dup-tip { color: var(--danger); font-weight: 400; }
.dup-input { border-color: var(--danger) !important; }
.rg-hint { color: #94a3b8; font-weight: 400; font-size: 11px; }

/* 打卡地点：列宽固定、超出省略，不再挤占姓名/时间列 */
.ck-loc { max-width: 260px; width: 260px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-date-lab { font-size: 13px; color: var(--sub); font-weight: 600; white-space: nowrap; }
td.nowrap, th.nowrap { white-space: nowrap; }
table .tag { white-space: nowrap; }

/* ===== 项目管理卡片（对齐小程序 pages/project） ===== */
.pj-filter { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 14px; }
.pj-filter .search { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.pj-filter .search:focus { border-color: var(--primary); outline: none; }
.pj-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pj-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: #f1f5f9; color: var(--sub); font-size: 13px; }
.pj-tab.on { background: var(--primary); color: #fff; font-weight: 600; }
.pj-tab-n { font-size: 11px; opacity: .85; background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 8px; }
.pj-tab.on .pj-tab-n { background: rgba(255,255,255,.25); }
.pj-meta { font-size: 12px; color: #a8b0c0; margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.pj-refresh { padding: 4px 12px; font-size: 12px; }
.pj-bonus { display: flex; align-items: center; justify-content: space-between; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 14px 20px; margin-bottom: 16px; }
.pj-bonus-label { font-size: 13px; color: #9a3412; }
.pj-bonus-val { font-size: 26px; font-weight: 800; color: #ea580c; margin-top: 2px; }
.pj-bonus-ico { font-size: 32px; color: #fdba74; font-weight: 800; }

.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pj-card { position: relative; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; border: 1px solid transparent; }
.pj-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.pj-card-over { background: #FFEBEE !important; border: 1px solid #fecaca; }
.pj-empty { grid-column: 1 / -1; background: var(--card); border-radius: 14px; }
.pj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pj-head-l { flex: 1; min-width: 0; }
.pj-cust { font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.pj-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pj-pname { font-size: 13px; color: var(--sub); }
.pj-no { font-size: 11px; color: #94a3b8; background: #f1f5f9; padding: 2px 7px; border-radius: 6px; }
.pj-arrow { font-size: 26px; color: #cbd5e1; line-height: 1; margin-top: -4px; flex-shrink: 0; }
.pj-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pj-badge { font-size: 11px; font-weight: 700; color: #fff; padding: 3px 9px; border-radius: 6px; line-height: 1.4; }
.pb-green { background: #16a34a; } .pb-amber { background: #f59e0b; }
.pb-rose { background: #f43f5e; } .pb-red { background: #ef4444; }
.pb-blue { background: #3b82f6; } .pb-violet { background: #8b5cf6; }
.pb-gray { background: #94a3b8; } .pb-soft { background: #f1f5f9; color: var(--sub); }
.pj-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.pj-chip { width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 10px; font-weight: 800; color: #fff; border-radius: 5px; flex-shrink: 0; }
.chip-blue { background: #3b82f6; } .chip-violet { background: #8b5cf6; }
.chip-amber { background: #f59e0b; } .chip-gray { background: #cbd5e1; } .chip-cyan { background: #06b6d4; }
.pj-lt { font-size: 13px; color: var(--sub); }
.pj-lv { color: var(--ink); font-weight: 600; }
.pj-od { background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.pj-line-bonus { align-items: center; }
.pj-bonus-txt { font-size: 14px; font-weight: 700; color: #d97706; }
.pj-btags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.pj-line-date { gap: 16px; }
.pj-dt { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #94a3b8; }
.pj-step { color: #0284c7; font-weight: 600; }
.pj-prog { margin-top: 14px; }
.pj-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.pj-prog-t { display: flex; align-items: center; gap: 5px; }
.pj-prog-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.pj-prog-n { font-size: 11px; color: #94a3b8; }
.pj-bar { height: 7px; width: 100%; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.pj-bar-in { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #06b6d4, #3b82f6); transition: width .3s ease; }
.pj-bar-over { background: linear-gradient(90deg, #f87171, #ef4444); }
.pj-over { font-size: 11px; color: #ef4444; margin-top: 5px; }
.pj-foot { text-align: center; padding: 18px; color: var(--sub); font-size: 13px; }

/* ===== 报销：明细可点进详情 ===== */
.ex-detail-link { background: none; border: none; color: var(--primary-deep); font-weight: 600; cursor: pointer; font-size: 13px; padding: 2px 0; }
.ex-detail-link:hover { color: var(--blue); text-decoration: underline; }
.exd-modal { width: 600px; }
.exd-hero { padding: 26px 28px 22px; background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%); border-bottom: 1px solid var(--line); }
.exd-hero-top { display: flex; justify-content: space-between; align-items: center; }
.exd-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #0891b2; text-transform: uppercase; }
.exd-status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #f1f5f9; color: var(--sub); }
.exd-status.ok { background: #dcfce7; color: #15803d; }
.exd-status.warn { background: #fef3c7; color: #b45309; }
.exd-status.danger { background: #fee2e2; color: #b91c1c; }
.exd-total { font-size: 38px; font-weight: 800; color: var(--ink); margin-top: 12px; letter-spacing: -.5px; }
.exd-meta { font-size: 13px; color: var(--sub); margin-top: 6px; }
.exd-body { background: #fbfcfe; }
.exd-sec-title { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .5px; margin-bottom: 12px; }
.exd-group { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.exd-g-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.exd-g-idx { width: 22px; height: 22px; border-radius: 7px; background: #0891b2; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.exd-g-name { font-weight: 700; color: var(--ink); }
.exd-items { padding: 4px 14px; }
.exd-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eef2f7; }
.exd-item:last-child { border-bottom: none; }
.exd-cat { font-size: 12px; color: var(--sub); }
.exd-desc { font-size: 13px; color: var(--ink); }
.exd-amt { font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; }
.exd-note { background: #fff; border: 1px solid var(--line); border-left: 3px solid #06b6d4; border-radius: 8px; padding: 12px 14px; margin-top: 14px; }
.exd-note-t { font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 4px; }
.exd-note-c { font-size: 13px; color: var(--ink); line-height: 1.6; }
.exd-note-rej { border-left-color: #ef4444; }
.exd-note-rej .exd-note-t { color: var(--danger); }
.exd-foot { justify-content: space-between; }

/* 审批列表分批加载提示（2026-12-04） */
.apr-more {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 0 4px; font-size: 12.5px; color: var(--sub);
}
.apr-more .btn-ghost { height: 30px; padding: 0 14px; font-size: 12.5px; }

/* ===== 报销附件区（2026-12-03）=====
   附件是手机端上传到云存储的，网页端只做「看/下载」。
   临时链接响应头带 Content-Disposition: attachment，点链接会直接下载，
   所以图片单做缩略图 + 页内大图预览。 */
.exd-files { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.exd-file {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.exd-file:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.exd-file-thumb {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e2e8f0;
}
.exd-file-ico { font-size: 20px; opacity: .75; }
.exd-file-img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.exd-file-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.exd-file-name {
  font-size: 13px; color: var(--ink); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.exd-file-state { font-size: 11px; color: #94a3b8; }
.exd-file-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.exd-file-link, .exd-file-dl {
  font-size: 12px; padding: 5px 12px; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s;
  text-decoration: none; white-space: nowrap;
  font-family: inherit; line-height: 1.4; background: none;
}
.exd-file-thumb[data-exf-open] { cursor: zoom-in; }
.exd-file-link { color: var(--primary-deep); background: #ecfeff; border-color: #cffafe; }
.exd-file-link:hover { background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff; border-color: transparent; }
.exd-file-dl { color: var(--sub); background: #f6f8fa; border-color: var(--line); }
.exd-file-dl:hover { color: var(--ink); background: #eef2f7; }
.exd-file-local { font-size: 11px; color: #94a3b8; }

/* 页内大图预览 */
.filebox-mask {
  position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, .82);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.filebox-inner {
  width: 100%; max-width: 1080px; max-height: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
.filebox-bar {
  display: flex; align-items: center; gap: 12px;
  color: #e2e8f0; font-size: 13px; padding: 0 4px;
}
.filebox-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filebox-dl {
  color: #fff; background: rgba(255, 255, 255, .16); border-radius: 8px;
  padding: 6px 14px; font-size: 12px; text-decoration: none; transition: background .15s;
}
.filebox-dl:hover { background: rgba(255, 255, 255, .28); }
.filebox-x {
  width: 30px; height: 30px; border-radius: 8px; color: #fff; font-size: 15px;
  background: rgba(255, 255, 255, .16); transition: background .15s;
}
.filebox-x:hover { background: rgba(239, 68, 68, .85); }
.filebox-canvas {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  overflow: auto; border-radius: 12px; background: rgba(255, 255, 255, .04);
}
.filebox-img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; }

/* ===== 报销表单：shadcn 风格 ===== */
.ex-form { width: 720px; }
.exf-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.exf-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #0891b2; }
.exf-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 3px; }
.exf-body { background: #fbfcfe; padding: 22px 28px; }
.exf-section { margin-bottom: 24px; }
.exf-section:last-child { margin-bottom: 0; }
.exf-sec-label { font-size: 13px; font-weight: 800; color: var(--ink); padding-left: 10px; border-left: 3px solid #06b6d4; line-height: 1.2; }
.exf-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.exf-sec-head .exf-sec-label { margin-bottom: 0; }
.exf-section > .field { margin-top: 14px; }
.req { color: var(--danger); }
.opt { color: #94a3b8; font-weight: 400; font-size: 11px; }
.ex-add-group { background: #fff; border: 1px dashed #94a3b8; color: var(--sub); border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: all .15s; }
.ex-add-group:hover { border-color: #06b6d4; color: #0891b2; background: #f0fdfa; }
.ex-group { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.ex-g-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.ex-g-idx { width: 26px; height: 26px; border-radius: 8px; background: #ecfeff; color: #0891b2; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 2px; }
.ex-g-field { flex: 1; }
.ex-g-field label { display: block; font-size: 12px; color: var(--sub); font-weight: 600; margin-bottom: 5px; }
.ex-g-field select { width: 100%; height: 38px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 11px; font-size: 13px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.ex-g-field select:focus { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
/* 客户可搜索下拉 */
.ex-cust-picker { position: relative; }
.ex-cust-input { width: 100%; height: 38px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 11px; font-size: 13px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.ex-cust-input:focus { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.ex-cust-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.16); padding: 4px; }
.ex-cust-menu.show { display: block; }
.ex-cust-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 7px; padding: 9px 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.ex-cust-opt:hover, .ex-cust-opt:focus { background: #ecfeff; color: #0891b2; outline: none; }
.ex-cust-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-cust-opt em { font-style: normal; font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.ex-cust-empty { padding: 14px 10px; text-align: center; color: #94a3b8; font-size: 13px; }
.ex-text-btn { background: none; border: none; color: #94a3b8; font-size: 12px; cursor: pointer; padding: 8px 0; white-space: nowrap; }
.ex-text-btn:hover { color: var(--danger); }
.ex-items-head { display: grid; grid-template-columns: 120px 130px 1fr 32px; gap: 10px; padding: 0 2px 6px; font-size: 11px; color: #94a3b8; font-weight: 600; }
.ex-items-head span:nth-child(2) { text-align: left; }
.ex-item { display: grid; grid-template-columns: 120px 130px 1fr 32px; gap: 10px; align-items: center; margin-bottom: 8px; }
.ex-item-field select, .ex-item-field input { width: 100%; height: 38px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 11px; font-size: 13px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.ex-item-field select:focus, .ex-item-field input:focus { border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.ex-item-field select { appearance: auto; }
.ex-item-amt { position: relative; }
.ex-item-amt input { padding-left: 26px; text-align: right; }
.ex-currency { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; pointer-events: none; }
.ex-icon-btn { width: 32px; height: 32px; border: none; border-radius: 8px; background: #f1f5f9; color: #94a3b8; cursor: pointer; font-size: 13px; transition: all .15s; }
.ex-icon-btn:hover { background: #fee2e2; color: var(--danger); }
.ex-add-line { background: none; border: none; color: #0891b2; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 2px; margin-top: 2px; }
.ex-add-line:hover { color: #0369a1; }
.exf-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.exf-total { display: flex; flex-direction: column; }
.exf-total span { font-size: 12px; color: var(--sub); }
.exf-total b { font-size: 22px; color: #ea580c; font-weight: 800; }
.exf-actions { display: flex; gap: 10px; }

/* ===== 漏写日志提醒弹窗 ===== */
.miss-modal { width: 460px; }
.miss-head { display: flex; align-items: flex-start; gap: 14px; padding: 24px 26px 18px; }
.miss-ico { width: 40px; height: 40px; border-radius: 12px; background: #fef3c7; color: #d97706; font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.miss-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.miss-sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.miss-body { padding: 0 26px 8px; }
.miss-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.miss-date { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.miss-tip { font-size: 12px; color: #94a3b8; margin-top: 14px; line-height: 1.6; }

/* ===== 项目管理：卡片表头 → 工作量统计 ===== */
.pj-hint { font-size: 12px; color: #94a3b8; }
.pj-head { padding: 4px 6px; margin: -4px -6px 0; border-radius: 10px; transition: background .15s; }
.pj-head:hover { background: #f0f9ff; }
.pj-head-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.pj-wl-label { font-size: 11px; color: var(--primary-deep); font-weight: 700; white-space: nowrap; }
.pj-arrow { font-size: 26px; color: #cbd5e1; line-height: 1; margin-top: -4px; }

/* ---------- 工作量统计弹窗 ---------- */
.wl-modal { width: 860px; max-width: 100%; }
.wl-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #ecfeff, #eff6ff); border-radius: 16px 16px 0 0; }
.wl-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--primary-deep); font-weight: 800; }
.wl-title { font-size: 22px; font-weight: 800; margin-top: 4px; }
.wl-sub { font-size: 13px; color: var(--sub); margin-top: 3px; }
.wl-body { padding: 22px 28px; }
.wl-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.wl-cell { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.wl-cell b { font-size: 28px; font-weight: 800; color: var(--ink); }
.wl-cell span { font-size: 12px; color: var(--sub); }
.wl-over { color: var(--danger) !important; }
.wl-warn { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.wl-note { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 14px; font-size: 12px; line-height: 1.7; margin-bottom: 12px; }
.wl-table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wl-table { width: 100%; border-collapse: collapse; }
.wl-table th { background: #f8fafc; text-align: left; font-size: 12px; color: var(--sub); padding: 11px 16px; border-bottom: 1px solid var(--line); }
.wl-table td { padding: 9px 16px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.wl-table tr:last-child td { border-bottom: none; }
.wl-table .wl-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.wl-table .wl-zero { color: #cbd5e1; }
.wl-step { font-weight: 600; }
.wl-tag { margin-left: 8px; background: #f1f5f9; color: var(--sub); border-radius: 5px; padding: 1px 6px; font-size: 10px; }
.wl-other { background: #fcfdff; }

/* 辅助人员行（无步骤归属）+ 合计行：让表格和上方汇总对得上 */
.wl-table .wl-assist-row { background: #f8fafc; }
.wl-table .wl-assist-row td { color: #334155; font-weight: 600; }
.wl-table tfoot td { border-top: 2px solid var(--line); border-bottom: none; background: #f8fafc; font-weight: 800; }
.wl-table tfoot .wl-step { font-weight: 800; }

/* 实际合计构成说明 */
.wl-break {
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; line-height: 1.7;
}
.wl-break b { font-weight: 800; }
.wl-break span { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.wl-bar-cell { width: 35%; }
.wl-mini-bar { height: 6px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.wl-mini-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.wl-mini-bar i.over { background: linear-gradient(90deg, #f87171, #ef4444); }
.wl-tip { font-size: 12px; color: #94a3b8; margin-top: 10px; }
.wl-foot { flex-wrap: wrap; }
.wl-edit-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.wl-edit-tip { font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.wl-edit-row { display: grid; grid-template-columns: 1fr 200px 110px; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.wl-edit-row:last-child { border-bottom: none; }
.wl-edit-name { font-weight: 600; }
.wl-edit-actual { font-size: 12px; color: var(--sub); text-align: right; }
.wl-stepper { display: flex; align-items: center; gap: 6px; }
.wl-stepper button { width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; color: var(--sub); font-size: 16px; font-weight: 700; }
.wl-stepper button:hover { background: #e0f2fe; color: var(--primary-deep); }
.wl-input { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; text-align: center; outline: none; }
.wl-input:focus { border-color: var(--primary); }

/* ---------- 项目详情弹窗 ---------- */
.pd-modal { width: 900px; max-width: 100%; }
.pd-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #ecfeff, #eff6ff); border-radius: 16px 16px 0 0; }
.pd-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--primary-deep); font-weight: 800; }
.pd-title { font-size: 22px; font-weight: 800; margin-top: 4px; }
.pd-sub { font-size: 13px; color: var(--sub); margin-top: 3px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pd-tag { background: #f1f5f9; color: var(--sub); border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.pd-t-已完成 { background: #dcfce7; color: #15803d; }
.pd-t-进行中 { background: #dbeafe; color: #1d4ed8; }
.pd-t-未回款 { background: #fef3c7; color: #b45309; }
.pd-body { padding: 8px 28px 24px; }
.pd-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pd-sec:last-of-type { border-bottom: none; }
.pd-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pd-sec-head h3 { font-size: 15px; font-weight: 800; }
.pd-sec-badge { background: #e0f2fe; color: var(--primary-deep); border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.pd-kv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.pd-kv { background: #f8fafc; border-radius: 9px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-kv span { font-size: 11px; color: var(--sub); }
.pd-kv b { font-size: 13px; word-break: break-all; }
.pd-strong { color: var(--primary-deep); }
.pd-desc { margin-top: 12px; background: #f8fafc; border-radius: 9px; padding: 12px 14px; }
.pd-desc b { font-size: 12px; }
.pd-desc p { margin-top: 4px; color: var(--sub); line-height: 1.7; white-space: pre-wrap; }
.pd-ops { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-ops button { padding: 8px 16px; font-size: 13px; }
.pd-pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pd-pay-sum div { background: #f8fafc; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.pd-pay-sum span { font-size: 11px; color: var(--sub); }
.pd-pay-sum b { font-size: 17px; margin-top: 2px; }
.pd-green { color: #16a34a; }
.pd-orange { color: #ea580c; }
.pd-bar { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; margin-top: 12px; }
.pd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #06b6d4, #3b82f6); }
.pd-bar-txt { font-size: 11px; color: var(--sub); margin-top: 4px; }
.pd-list-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.pd-list-head b { font-size: 13px; }
.pd-link { color: var(--primary-deep); font-size: 13px; font-weight: 700; }
.pd-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 9px; margin-bottom: 6px; }
.pd-rec b { font-size: 13px; }
.pd-rec-op { font-size: 12px; color: var(--sub); }
.pd-rec-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.pd-rec-del { color: var(--danger); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pd-empty-line { font-size: 12px; color: #94a3b8; padding: 12px 2px; }
.pd-sum-note { font-size: 12px; color: var(--sub); background: #e0f2fe; border-radius: 8px; padding: 7px 12px; margin-bottom: 10px; }
.pd-more { display: block; margin: 8px auto 0; color: var(--primary-deep); font-size: 12px; font-weight: 700; }
.pd-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.pd-mini-title { font-size: 12px; font-weight: 800; color: var(--sub); margin-bottom: 6px; }

/* 项目详情 · 关联工作日志（对齐老系统：默认最近 3 天，右上角「全部」展开，全天/半天标记） */
.pd-log-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pd-log-bar b { font-size: 13px; font-weight: 800; color: var(--ink); }
.pd-log-list { margin-top: 8px; }
.pd-log-row { background: #f8fafc; border-radius: 9px; padding: 10px 12px; margin-bottom: 6px; }
.pd-log-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-log-date { font-size: 13px; font-weight: 700; color: var(--ink); }
.pd-log-who { font-size: 12px; color: var(--sub); }
.pd-log-span { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-left: auto; }
.pd-log-span-all { background: #cffafe; color: #0e7490; }
.pd-log-span-half { background: #ffedd5; color: #c2410c; }
.pd-log-content { font-size: 12px; color: #475569; margin-top: 6px; line-height: 1.5; }
.pd-log-segs { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.pd-log-seg { display: flex; align-items: center; gap: 6px; font-size: 11px; flex-wrap: wrap; }
.pd-log-seg-l { color: #94a3b8; font-weight: 700; min-width: 28px; }
.pd-log-cu { color: var(--ink); font-weight: 600; }
.pd-log-step { color: var(--sub); }
.pd-nt { font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 8px; line-height: 16px; }
.pd-nt-nm { background: #f1f5f9; color: #64748b; }
.pd-nt-ns { background: #fef3c7; color: #b45309; }
.pd-nt-as { background: #dcfce7; color: #15803d; }
@media (max-width: 600px) { .pd-log-span { margin-left: 0; } }
.pd-person { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; background: #f8fafc; border-radius: 8px; margin-bottom: 5px; font-size: 12px; }
.pd-person b { color: var(--primary-deep); }
.pd-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pd-cats span { background: #fff7ed; color: #9a3412; border-radius: 6px; padding: 2px 7px; font-size: 11px; }
.pd-file-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f8fafc; border-radius: 9px; margin-bottom: 6px; }
.pd-file-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; word-break: break-all; }
a.pd-file-name:hover { color: var(--primary-deep); text-decoration: underline; }
/* 项目附件操作区（2026-12-03）：查看/下载按钮 + 旧附件提示，和报销附件区同一套观感 */
.pd-file-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pd-file-btn { padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--primary-deep); background: #ecfeff; border: 1px solid #cffafe; border-radius: 7px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.pd-file-btn:hover { background: #cffafe; border-color: #a5f3fc; }
.pd-file-btn:active { transform: scale(.97); }
.pd-file-size { font-size: 11px; color: var(--sub); flex-shrink: 0; }
.pd-file-warn { font-size: 11px; font-weight: 700; color: #b45309; background: #fff7ed; padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.pd-file-row .pd-rec-del { background: none; border: 0; padding: 0 2px; cursor: pointer; font-family: inherit; }
.pd-inline-date { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; outline: none; }
.pd-foot-tip { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 18px; }
.pd-foot { flex-wrap: wrap; }

/* ---------- 项目详情内的二级弹层 ---------- */
.pj-sub-mask { z-index: 1200; background: rgba(15, 23, 42, .55); }
.pj-sub-wide { width: 640px; }
.pj-sub-hint { font-size: 12px; color: var(--sub); margin-top: 2px; }
.pj-dur { display: flex; gap: 8px; }
.pj-dur button { flex: 1; padding: 9px; border-radius: 9px; background: #f1f5f9; color: var(--sub); font-size: 13px; }
.pj-dur button.on { background: #e0f2fe; color: var(--primary-deep); font-weight: 800; }
.pj-as-pick { margin-top: 8px; }
.pj-as-hint { font-size: 11px; color: var(--sub); margin-bottom: 6px; }
.pj-as-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 160px; overflow-y: auto; }
.pj-as-chip { background: #f1f5f9; color: var(--sub); border-radius: 7px; padding: 5px 10px; font-size: 12px; }
.pj-as-chip.staff { background: #e0f2fe; color: var(--primary-deep); }
.pj-as-chip.on { background: var(--primary); color: #fff; font-weight: 700; }
/* 辅助人员多选（2026-12-04）：输入+添加、已选标签、日期 chip 网格 */
.pj-as-hint-inline { font-weight: 400; font-size: 11px; color: var(--sub); }
.pj-as-addrow { display: flex; gap: 8px; }
.pj-as-addrow input { flex: 1; }
.pj-as-addrow .btn-ghost { flex-shrink: 0; padding: 0 14px; }
.pj-as-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pj-as-picked:empty { display: none; }
.pj-as-count { font-size: 11px; color: var(--primary-deep); font-weight: 700; }
.pj-as-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; color: #fff;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}
.pj-as-clear { font-size: 11px; color: var(--primary); background: none; padding: 2px 4px; }
.pj-as-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pj-as-date {
  position: relative; padding: 8px 4px; border-radius: 9px; text-align: center;
  background: #f6f8fa; border: 2px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.pj-as-date:active { transform: scale(.97); }
.pj-as-date .d-l { display: block; font-size: 11px; color: var(--sub); }
.pj-as-date .d-d { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.pj-as-date.on {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-color: #06b6d4; box-shadow: 0 6px 16px rgba(6, 182, 212, .25);
}
.pj-as-date.on .d-l { color: rgba(255, 255, 255, .92); }
.pj-as-date.on .d-d { color: #fff; }
.pj-as-date .d-b {
  position: absolute; top: -6px; right: -4px; font-style: normal;
  font-size: 10px; color: #fff; background: #f59e0b; border-radius: 5px; padding: 0 4px;
}
.pj-as-datesum {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--sub); margin-top: 8px;
}

/* ---------- 项目表单弹窗 ---------- */
.pjf-modal { width: 760px; max-width: 100%; }
.pjf-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.pjf-eyebrow { font-size: 11px; letter-spacing: 1.5px; color: var(--primary-deep); font-weight: 800; }
.pjf-title { font-size: 18px; font-weight: 800; margin-top: 2px; }
.pjf-body { padding: 20px 26px; }
.pjf-members { display: flex; flex-wrap: wrap; gap: 8px; max-height: 120px; overflow-y: auto; padding: 10px; background: #f8fafc; border-radius: 10px; }
.pjf-member { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; font-size: 12px; cursor: pointer; }
.pjf-member input { accent-color: var(--primary); }
.pjf-check { display: flex; align-items: center; gap: 7px; height: 38px; font-size: 13px; color: var(--sub); }
.pjf-check input { accent-color: var(--primary); }
.pjf-number { font-size: 12px; color: var(--sub); margin-top: 16px; }
.pjf-number b { color: var(--ink); }

/* ---------- 人员管理：在职 / 离职 分区 ---------- */
.adm-tabs { margin: 0 0 14px; }
.adm-group { display: flex; align-items: center; gap: 8px; margin: 4px 2px 10px; }
.adm-group-bar { width: 4px; height: 15px; border-radius: 2px; background: var(--primary); }
.adm-group b { font-size: 14px; color: var(--ink); }
.adm-group-n { font-size: 12px; color: #94a3b8; }
.adm-group-tip { margin-left: auto; font-size: 12px; color: #94a3b8; }
.adm-group.leave .adm-group-bar { background: #cbd5e1; }
.adm-group.leave b { color: #64748b; }
.adm-group + .table-wrap { margin-bottom: 22px; }
.adm-tr-leave td { background: #fbfcfd; color: #94a3b8; }
.adm-tr-leave:hover td { background: #f4f7fb; }
.adm-tr-leave td:first-child { box-shadow: inset 3px 0 0 #e2e8f0; }
.adm-tr-leave b { color: #64748b; }
.adm-leave-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #f1f5f9; color: #94a3b8; font-size: 11px; font-weight: 700; vertical-align: middle; }
.adm-hint { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; background: #fffaf0; border: 1px solid #fde9b8; border-radius: 12px; font-size: 13px; color: #8a6d2f; }
.adm-hint button { padding: 4px 12px; font-size: 12px; }

/* 部门分组带：明细按部门成块，一眼看出每个部门有几个人 */
.adm-dept-row td {
  padding: 8px 14px !important; background: #f6fafd; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 800; color: #0e7490; letter-spacing: .3px;
}
.adm-dept-row:first-child td { border-top: none; }
.adm-dept-row:hover td { background: #f6fafd; }
.adm-dept-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 7px; vertical-align: middle; }
.adm-dept-n { margin-left: 8px; font-weight: 600; color: #94a3b8; }
.adm-dim { color: #cbd5e1; }

/* 编辑资料弹层里的部门/岗位联想 */
.pf-hint { margin-top: 6px; font-size: 12px; color: #94a3b8; line-height: 1.6; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pf-chip {
  padding: 4px 11px; border-radius: 999px; border: 1px solid #dbe6ef; background: #f8fbfd;
  font-size: 12px; color: #475569; line-height: 1.6;
}
.pf-chip:hover { border-color: var(--primary); color: var(--primary-deep); background: #effcfd; }
.pf-more { align-self: center; font-size: 12px; color: #b6c2d1; }

/* 响应式：窄屏收起侧栏 */
@media (max-width: 1200px) { .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .sidebar { width: 68px; }
  .brand-text, .nav-label, .nav-group, .st-txt, .lo-txt { display: none; }
  .lo-ico { display: inline-flex; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .side-toggle { justify-content: center; margin: 8px 10px 12px; padding: 8px 0; }
  .sidebar-foot { padding: 12px 6px; text-align: center; }
  .logout-btn { width: 100%; padding: 7px 0; }
  .logout-btn .lo-ico svg { width: 18px; height: 18px; }
  .side-ver { font-size: 10px; word-break: break-all; }
  .page-body { padding: 16px; }
  .pj-grid { grid-template-columns: 1fr; }
  .pj-hint, .pj-wl-label { display: none; }
  .modal-mask { padding: 10px; }
  .wl-summary, .pd-pay-sum { grid-template-columns: 1fr; }
  .pd-kv-grid, .pd-two-col { grid-template-columns: 1fr; }
  .wl-edit-row { grid-template-columns: 1fr; gap: 6px; }
  .wl-edit-actual { text-align: left; }
}

/* ==================== 工资统计发放（对齐老系统四页签） ==================== */
.sal-head { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px; }
.sal-head-ico { width: 48px; height: 48px; border-radius: 14px; background: #e6f7fa; color: var(--primary-deep); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
.sal-head-txt h1 { font-size: 22px; font-weight: 800; }
.sal-head-txt p { font-size: 13px; color: var(--sub); margin-top: 3px; }

.sal-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.sal-tab { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--sub); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sal-tab:hover { color: var(--ink); }
.sal-tab.on { color: var(--primary-deep); border-bottom-color: var(--primary); }
.sal-tab-ico { font-size: 15px; }

.sal-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.sal-card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sal-card-head.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sal-card-head b { font-size: 16px; font-weight: 800; }
.sal-card-head p { font-size: 12px; color: var(--sub); margin-top: 3px; }
.sal-card-body { padding: 18px 22px; }
.sal-card-body.chart { padding: 10px 8px 0; }

.sal-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.sal-form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.sal-form-grid3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 14px 16px; }
.sal-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sal-field.narrow { max-width: 160px; }
.sal-field label { font-size: 13px; color: var(--sub); font-weight: 600; }
.sal-field input, .sal-field select, .sal-field textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; color: var(--ink); width: 100%;
}
.sal-field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.sal-field input:focus, .sal-field select:focus, .sal-field textarea:focus { border-color: var(--primary); }
.sal-form .sal-field { flex: 1; max-width: 280px; }
.sal-query { height: 40px; padding: 0 22px; }
.sal-query-row { margin-top: 16px; }

/* ===== 一行式紧凑筛选栏（日志统计） =====
   参考 Ant Design Compact / shadcn filter toolbar：控件 34px 高、间距 10px、
   前缀小标签写在控件内部（input-group addon），一行放下 4 个条件 + 按钮 */
.sal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sal-bar-item {
  display: flex; align-items: center; flex: 0 0 auto;
  height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.sal-bar-item:hover { border-color: #cbd5e1; }
.sal-bar-item:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6, 182, 212, .12); }
.sal-bar-pre { font-size: 12px; font-weight: 600; color: #94a3b8; white-space: nowrap; margin-right: 7px; }
.sal-bar-suf { font-size: 11px; color: #b6c0cf; white-space: nowrap; margin-left: 5px; }
.sal-bar-item input, .sal-bar-item select {
  height: 30px !important; padding: 0 !important; margin: 0;
  border: none !important; border-radius: 0; background: transparent;
  font-size: 13px; color: var(--ink); outline: none; box-shadow: none;
}
.sal-bar-week { width: 34px; text-align: center; color: #94a3b8; font-size: 12px; }
.sal-bar-month { padding: 0 8px; }
.sal-bar-month input { width: 136px; font-weight: 700; }
.sal-bar-user { min-width: 158px; }
.sal-bar-user select { width: 118px; }
.sal-bar-num input { width: 46px; text-align: center; font-weight: 700; font-size: 14px; }
.sal-bar-go { height: 34px; padding: 0 18px; flex-shrink: 0; }

/* ===== 项目模糊搜索下拉（发放奖金） ===== */
.sal-req { font-style: normal; font-weight: 400; color: #94a3b8; font-size: 12px; margin-left: 8px; }
/* 旧的浮层下拉已废弃（曾因 max-height 224px + 被弹窗裁剪只剩 2 行，反人类） */
.sal-combo-more { padding: 10px 8px; font-size: 12px; color: #94a3b8; text-align: center; }
.sal-combo-picked { font-size: 12px; color: #0891b2; margin-top: 6px; }
.sal-combo-picked:empty { display: none; }

/* ---------- 项目挑选面板（工资·发放项目奖金） ----------
   设计规范：列表可视区 ≥ 256px（Ant Design listHeight=256 / Semi 270 / Element Plus 300），
   这里用 400px 常驻列表，一次可见约 9 行；禁止浮层被弹窗滚动区裁剪。 */
.sal-pick2 { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: stretch; flex: 1; min-height: 0; }
.sal-pick2-left { display: flex; flex-direction: column; min-height: 0; }
.sal-pick2-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-y: auto; }
.sal-pick-q { height: 40px; }
.sal-pick-count { font-size: 12px; color: var(--sub); margin: 10px 0 6px; display: flex; justify-content: space-between; align-items: center; }
/* 列表撑满弹窗剩余高度（至少 360px，约 8 行以上），只有它自己滚动 */
.sal-pick-list {
  flex: 1; min-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; padding: 6px;
}
.sal-pick-list::-webkit-scrollbar { width: 8px; }
.sal-pick-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.sal-pick-item { display: block; padding: 8px 12px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.sal-pick-item + .sal-pick-item { margin-top: 4px; }
.sal-pick-item:hover { background: #f1f8fb; }
.sal-pick-item.hl { background: #e6f6fb; border-color: var(--primary); }
.sal-pick-item.on { background: #e0f2fe; border-color: var(--primary); }
.sal-pick-item.done { opacity: .72; }
.sal-pick-item-t { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sal-pick-item-t mark { background: #fef3c7; color: #b45309; border-radius: 3px; padding: 0 2px; }
.sal-pick-item-s { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.sal-pick-badge { font-size: 11px; font-weight: 600; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.sal-pick-item.on .sal-pick-badge, .sal-pick-item.hl .sal-pick-badge { background: #fde68a; }
.sal-pick-empty { padding: 36px 12px; text-align: center; color: var(--sub); font-size: 13px; line-height: 1.8; }
.sal-pick-empty b { color: var(--ink); }
@media (max-width: 900px) {
  .modal.wide { width: 100%; height: 92vh; }
  .sal-pick2 { grid-template-columns: 1fr; }
  .sal-pick-list { min-height: 240px; }
}

.sal-tip { border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; font-size: 13px; }
.sal-tip.blue { background: #eff8ff; border: 1px solid #cfe6fb; color: #1e5e8c; }
.sal-tip.amber { background: #fffbeb; border: 1px solid #fde9b8; color: #8a6d2f; }
.sal-tip-t { font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.sal-tip ul { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.sal-tip-act { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.sal-table-wrap { overflow-x: auto; }
.sal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sal-table th { background: #f8fafc; color: var(--sub); font-size: 12px; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
.sal-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sal-table tr:last-child td { border-bottom: none; }
.sal-table tbody tr:hover td { background: #fafcfe; }
.sal-table th.c, .sal-table td.c { text-align: center; }
.sal-table th.r, .sal-table td.r { text-align: right; }
.sal-table td.p0 { padding: 0; }
.sal-empty { text-align: center; color: #94a3b8; padding: 40px 10px !important; }
.sal-sort { font-size: 12px; font-weight: 700; color: var(--sub); background: none; padding: 0; }
.sal-sort.on { color: var(--primary-deep); }
.sal-seq { color: #94a3b8; font-variant-numeric: tabular-nums; }
.sal-name { font-weight: 700; white-space: nowrap; }
.sal-dash { color: #cbd5e1; font-size: 12px; }
.sal-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; white-space: nowrap; }

.sal-clock { display: flex; align-items: baseline; gap: 5px; font-size: 12px; }
.sal-clock .t { font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.sal-clock .s { color: var(--sub); }

.sal-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 1.6; }
.sal-badge.sm { font-size: 10px; padding: 0 6px; }
.sal-badge.link { cursor: pointer; border: 1px solid transparent; }
.sal-badge.red { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.sal-badge.amber { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.sal-badge.green { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.sal-badge.blue { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.sal-badge.yellow { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.sal-badge.gray { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.sal-badge i { font-style: normal; font-size: 10px; margin-left: 3px; opacity: .85; }

.sal-row-last td { border-bottom: none; }
/* 打卡统计：按人分组，人名行可点击收起/展开 */
.att-grp { cursor: pointer; user-select: none; }
.att-grp td { background: linear-gradient(90deg, #f0f9ff, #f8fafc); border-top: 2px solid #dbeafe; padding: 11px 14px; }
.att-grp:hover td { background: #e0f2fe; }
.att-grp.off td { background: #f8fafc; border-top-color: #e2e8f0; }
.att-grp-arrow { width: 34px; color: #0284c7; font-size: 12px; font-weight: 800; }
.att-grp-name { font-weight: 800; color: #0c4a6e; white-space: nowrap; }
.att-grp-name em { font-style: normal; font-size: 11px; color: #64748b; font-weight: 600; margin-left: 8px; }
.att-grp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 12px; color: #475569; }
.att-grp-sum b { font-weight: 800; color: #0f172a; }
.att-grp-sum em { font-style: normal; color: #94a3b8; margin-left: 4px; }
.att-grp-tag { background: #dbeafe; color: #1d4ed8; border-radius: 6px; padding: 2px 8px; font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.att-grp.off .att-grp-sum { opacity: .55; }
.att-row td { padding: 10px 14px; }
.sal-sum td { background: #f8fafc; border-top: 2px solid #e2e8f0; font-weight: 700; padding: 12px 14px; }
.sal-sum-grid { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.sal-sum-item { display: flex; align-items: center; gap: 8px; }
.sal-sum-item .ico { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.sal-sum-item .ico.blue { background: #dbeafe; color: #2563eb; }
.sal-sum-item .ico.indigo { background: #e0e7ff; color: #4f46e5; }
.sal-sum-item .ico.amber { background: #ffedd5; color: #ea580c; }
.sal-sum-item .ico.green { background: #dcfce7; color: #16a34a; }
.sal-sum-item .l { font-size: 10px; color: #94a3b8; font-weight: 700; letter-spacing: .5px; }
.sal-sum-item .v { font-size: 13px; font-weight: 800; color: #334155; }
.sal-sum-item .v.indigo { color: #4f46e5; }
.sal-sum-item .v.amber { color: #ea580c; }
.sal-sum-item .v.green { color: #16a34a; }
.sal-sum-item .v em { font-style: normal; font-size: 10px; color: #94a3b8; font-weight: 400; margin-left: 4px; }

.sal-total-card { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #fffbeb, #fff7ed); border: 1px solid #fde9b8; border-radius: 16px; padding: 18px 24px; margin-bottom: 16px; }
.sal-total-card p { font-size: 13px; color: #7c5e26; margin-bottom: 4px; }
.sal-total-card b { font-size: 28px; font-weight: 800; color: #ea580c; }
.sal-total-ico { width: 54px; height: 54px; border-radius: 50%; background: #ffedd5; color: #ea580c; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.sal-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.sal-seg { padding: 10px 12px; min-height: 100%; position: relative; }
.sal-seg.special { background: #fefce8; }
.sal-seg.assist { background: #f0fdf4; }
.sal-seg-proj { font-size: 13px; font-weight: 600; color: var(--ink); }
.sal-seg-proj span { font-size: 11px; color: var(--sub); font-weight: 400; margin-left: 3px; }
.sal-seg-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sal-seg-k { font-style: normal; font-size: 10px; color: #94a3b8; letter-spacing: .5px; }
.sal-prop { height: 26px; padding: 0 4px; font-size: 11px; border: 1px dashed #cbd5e1; border-radius: 6px; background: transparent; color: #475569; width: auto !important; max-width: 130px; }
.sal-prop:hover { background: #f1f5f9; }
/* 工作性质下拉：奖金唯一依据，做成实心控件让它显眼 */
.sal-nature { height: 26px; padding: 0 6px; font-size: 12px; font-weight: 700; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #475569; width: auto !important; }
.sal-nature:hover { border-color: var(--primary); }
.sal-nature.nonstandard { border-color: #f0b429; background: #fffbeb; color: #8a6d2f; }
.sal-nature.assist { border-color: #34d399; background: #ecfdf5; color: #067a56; }
.sal-seg-empty { padding: 10px 12px; color: #cbd5e1; font-size: 12px; }
.sal-dispute { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.sal-dispute-btn { width: 20px; height: 20px; border-radius: 6px; color: #2563eb; font-size: 12px; opacity: .35; }
.sal-seg:hover .sal-dispute-btn { opacity: 1; }
.sal-content { padding: 10px 12px; font-size: 12px; color: #475569; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.sal-content:hover { background: #f8fafc; }
.sal-bonus { font-family: ui-monospace, Menlo, monospace; font-weight: 800; color: #ea580c; white-space: nowrap; }

.sal-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn-ghost.sm { padding: 6px 12px; font-size: 12px; height: 32px; }
.btn-ghost.sm.green { color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; }
.btn-ghost.sm.blue { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; }
.sal-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--sub); cursor: pointer; }
.sal-switch input { width: 15px; height: 15px; accent-color: var(--primary); }
.sal-total-pill { display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 5px 14px; }
.sal-total-pill i { font-style: normal; font-size: 10px; font-weight: 700; color: #64748b; letter-spacing: 1px; }
.sal-total-pill b { font-size: 16px; font-weight: 800; color: #1d4ed8; font-family: ui-monospace, Menlo, monospace; }

.sal-cell-2 { display: flex; flex-direction: column; line-height: 1.35; }
.sal-cell-2 span { font-size: 12px; font-weight: 600; }
.sal-cell-2 em { font-style: normal; font-size: 10px; color: #94a3b8; }
.sal-cell-2 span.blue { color: #2563eb; }
.sal-cell-stack { display: flex; flex-direction: column; gap: 4px; }
.sal-cell-stack.sm { gap: 2px; font-size: 11px; }
.sal-cell-stack .gray { color: #94a3b8; }
.sal-cell-stack .orange { color: #ea580c; font-weight: 700; }
.sal-cell-stack .blue { color: #2563eb; font-weight: 700; }
.sal-cell-stack .violet { color: #7c3aed; font-weight: 700; }
.sal-cell-stack .green { color: #16a34a; font-weight: 700; }
.sal-cell-stack .red { color: #dc2626; font-weight: 700; }
.sal-cell-stack .mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.sal-cell-stack .tip-gray { font-size: 10px; color: #94a3b8; }
.sal-cell-stack .tip-amber { font-size: 10px; color: #d97706; }
.sal-chip { border-radius: 8px; padding: 4px 7px; font-size: 10.5px; display: flex; flex-direction: column; gap: 1px; line-height: 1.45; }
.sal-chip b { font-size: 10px; }
.sal-chip.red { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.sal-chip.green { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.sal-deduct { font-size: 10.5px; color: #dc2626; white-space: nowrap; }
.sal-green { color: #16a34a; }
.sal-red { color: #dc2626; }
.sal-final { font-size: 15px; font-weight: 800; color: #2563eb; white-space: nowrap; }
.sal-ops { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.sal-link { font-size: 11px; color: #ea580c; padding: 0; }
.sal-sub-name { font-size: 12px; font-weight: 400; color: var(--sub); }

.sal-seg-btns { display: flex; gap: 6px; }
.sal-seg-btn { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--sub); }
.sal-seg-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.sal-chart { width: 100%; height: auto; display: block; }
.sal-grid-line { stroke: #eef2f7; stroke-dasharray: 3 3; }
.sal-axis { font-size: 11px; fill: #94a3b8; }
.sal-axis.val { fill: #0e7490; font-weight: 700; font-size: 10px; }
.sal-dot { fill: #fff; stroke: #06b6d4; stroke-width: 2.5; }
.sal-avg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sal-avg { margin-bottom: 0; }
.sal-avg-t { font-size: 13px; color: var(--sub); }
.sal-avg-v { font-size: 28px; font-weight: 800; margin-top: 6px; }
.sal-avg-s { font-size: 11px; color: #94a3b8; margin-top: 6px; }

.sal-modal-lg { width: 720px; }
.sal-modal-sub { font-size: 12px; color: var(--sub); margin-top: 3px; font-weight: 400; }
.sal-pick { justify-content: flex-start; height: 40px; font-weight: 600; }

.sal-kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
.sal-kv span { font-size: 12px; color: var(--sub); display: block; margin-bottom: 3px; }
.sal-kv p { font-size: 14px; font-weight: 600; }
.sal-readonly { background: #f8fafc; border-radius: 9px; padding: 10px 12px; font-size: 13px; color: #334155; line-height: 1.7; white-space: pre-wrap; }
.sal-mono-sm { font-size: 11px; color: var(--sub); font-family: ui-monospace, Menlo, monospace; line-height: 1.6; }
.sal-content-full { font-size: 13px; line-height: 1.9; color: #334155; white-space: pre-wrap; word-break: break-word; background: #f8fafc; border-radius: 10px; padding: 14px; max-height: 60vh; overflow-y: auto; }

.sal-calc-flex { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.sal-inline { display: flex; gap: 8px; }
.sal-inline select { width: 120px; flex-shrink: 0; }
.sal-hint { font-size: 10.5px; color: #94a3b8; line-height: 1.6; }
.sal-hint.blue { color: #2563eb; font-weight: 600; }
.sal-hint.r { text-align: right; }
.sal-preview { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px 18px; margin-top: 6px; }
.sal-preview-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sal-preview-row + .sal-preview-row { border-top: 1px solid #bfdbfe; margin-top: 14px; padding-top: 14px; }
.sal-preview-row .t { font-size: 13px; color: #334155; }
.sal-preview-row .s { font-size: 11px; color: #64748b; margin-top: 2px; }
.sal-preview-row b { font-size: 22px; font-weight: 800; color: #334155; font-family: ui-monospace, Menlo, monospace; }
.sal-preview-row b.blue { color: #2563eb; font-size: 26px; }
.sal-bonus-list { display: flex; flex-direction: column; gap: 6px; }
.sal-bonus-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff7ed; border-radius: 8px; padding: 6px 10px; font-size: 11.5px; color: #9a3412; }
.sal-bonus-item em { font-style: normal; font-family: ui-monospace, Menlo, monospace; color: #ea580c; font-weight: 700; }
.sal-del { color: #f87171; font-size: 12px; padding: 0 4px; }
.sal-del:hover { color: #dc2626; }

@media (max-width: 1100px) {
  .sal-form-grid2, .sal-form-grid3 { grid-template-columns: 1fr; }
  .sal-avg-grid { grid-template-columns: 1fr; }
}

/* ---------- 打卡明细弹层（含位置地图） ---------- */
tr[data-ckid] { cursor: pointer; }
tr[data-ckid]:hover { background: #f8fbff; }
.ck-pin { margin-right: 4px; }
button.tag.ck-detail-btn { cursor: pointer; border: 1px solid var(--line); }
button.tag.ck-detail-btn:hover { background: #e6f7fa; color: var(--primary-deep); }
.ck-dl { display: grid; grid-template-columns: 72px 1fr; gap: 9px 14px; font-size: 14px; margin-bottom: 16px; }
.ck-k { color: var(--sub); }
.ck-v { color: var(--ink); word-break: break-all; }
.ck-coord { color: var(--sub); font-size: 12px; font-family: Consolas, Menlo, monospace; }
.ck-map-wrap { position: relative; border-radius: 12px; overflow: hidden; background: #eef2f7; }
.ck-map { width: 100%; height: 300px; display: block; object-fit: cover; }
.ck-map-tip {
  height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: #94a3b8; font-size: 13px; text-align: center; padding: 0 24px;
}
.ck-map-act {
  display: block; margin-top: 10px; text-align: center; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--primary-deep);
  background: #eff8ff; border-radius: 10px; padding: 11px 0;
}
.ck-map-act:hover { background: #dbeafe; }
.ck-no-geo {
  text-align: center; color: #94a3b8; font-size: 13px;
  background: #f8fafc; border-radius: 12px; padding: 28px 0;
}

/* 按钮式筛选标签的选中态：实心主色 + 白字（与小程序口径一致，浅底在白背景上几乎看不出） */
button.tag.on {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 10px rgba(6, 182, 212, .25);
}
button.tag { transition: background .15s, color .15s, box-shadow .15s; }

/* 报销详情：别人创建的单据只读提示（2026-12-02） */
.exd-readonly {
  font-size: 13px; color: #b45309; line-height: 1.6;
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
}

/* 报销表单附件区（2026-12-03，直传云存储） */
.exf-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.exf-file { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f6f8fa; border-radius: 8px; }
.exf-file-empty { font-size: 12px; color: #9aa1b4; margin-bottom: 8px; }

/* 项目详情里「关联客户」可点击 */
.pd-cust-link { color: var(--primary-deep); text-decoration: none; }
.pd-cust-link:hover { text-decoration: underline; }
.pd-cust-more { color: #06b6d4; font-size: 11px; font-weight: 600; }

/* 客户详情弹层的小节标题 */
.pd-sec-title { font-size: 15px; font-weight: 800; margin-bottom: 12px; color: #16202b; }

/* ===== 项目业务类型标签（客户列表 / 客户详情）
   清查类=青、报表类=蓝紫、其他=灰；浅底深字，跟系统蓝青主色系一致 */
.pj-cell { white-space: normal; min-width: 150px; }
.pj-tag {
  display: inline-block; margin: 1px 4px 1px 0; padding: 2px 7px;
  font-size: 11px; line-height: 16px; font-weight: 600; border-radius: 5px;
  border: 1px solid transparent; white-space: nowrap;
}
.pj-clean { background: #e6f8fb; color: #0e7490; border-color: #b8e9f2; }
.pj-report { background: #eef2ff; color: #4338ca; border-color: #cdd5f8; }
.pj-other { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.pj-more { background: #f6f8fa; color: #94a3b8; border-color: #e8edf3; }
.pj-none { color: #c3cbd8; }

/* 数据导出页（2026-12-03） */
.exp-tip {
  font-size: 13px; color: #6b7280; line-height: 1.7;
  background: #f8fafc; border: 1px solid #e5e7eb;
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px;
}
.exp-tip b { color: #111827; }
.exp-lbl { font-size: 13px; color: #6b7280; padding: 0 2px; }
#pageBody table .mini-label { display: inline; margin: 0; font-weight: 500; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 打卡：一页（顶部小日历 + 下面明细）2026-12-04 ---------- */
/* 日历整块高度约为原来的 40%：格子 46px → 22px、字号 13 → 10.5、留白收紧 */
.ck-top { display: flex; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.ck-cal {
  flex: 0 0 auto; width: 40%; min-width: 330px; max-width: 460px;
  background: var(--card); border-radius: 12px; padding: 10px 12px 11px;
  box-shadow: var(--shadow);
}
.ck-cal-head { display: flex; align-items: center; gap: 6px; }
.ck-nav {
  width: 21px; height: 21px; line-height: 1; border-radius: 6px;
  background: #f1f5f9; color: var(--primary-deep); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.ck-nav:hover { background: #e2e8f0; }
.ck-cal-title { font-size: 12.5px; font-weight: 700; }

.ck-who { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.ck-who-input {
  height: 26px; border: 1px solid var(--line); border-radius: 6px;
  padding: 0 7px; font-size: 11.5px; width: 108px; background: #fff;
}
.ck-who-me {
  height: 26px; padding: 0 9px; border-radius: 6px;
  background: #f0f9ff; color: var(--primary-deep); font-size: 11px; font-weight: 600;
}

.ck-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 7px 0 3px; }
.ck-week span { text-align: center; font-size: 9.5px; color: var(--sub); font-weight: 600; }
.ck-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ck-cell {
  height: 22px; border-radius: 6px; border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.ck-cell[data-ckday] { cursor: pointer; }
.ck-cell[data-ckday]:hover { transform: translateY(-1px); }
.ck-cell-d { font-size: 10.5px; font-weight: 600; }
.ck-cell-bar { display: none; }
.ck-cell.ok { background: #cffafe; }
.ck-cell.ok .ck-cell-d { color: #0e7490; font-weight: 700; }
.ck-cell.half { background: #fef3c7; }
.ck-cell.half .ck-cell-d { color: #b45309; font-weight: 700; }
.ck-cell.none { background: #f6f8fa; }
.ck-cell.none .ck-cell-d { color: #94a3b8; }
.ck-cell.future .ck-cell-d { color: #c3cddb; }
.ck-cell.out .ck-cell-d { color: #e2e8f0; }
.ck-cell.today { border-color: #06b6d4; }
.ck-cell.sel { box-shadow: 0 0 0 2px rgba(6, 182, 212, .4); }

.ck-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.ck-lg { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--sub); }
.ck-lg-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.ck-lg-dot.ok { background: #06b6d4; }
.ck-lg-dot.half { background: #f59e0b; }
.ck-lg-dot.none { background: #f6f8fa; border: 1px solid #dde5ee; }

/* 日历右边：本月汇总 + 图例 + 点日期说明，填满空位 */
.ck-side {
  flex: 1 1 auto; min-width: 0; background: var(--card); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.ck-side-h { font-size: 12px; color: var(--sub); font-weight: 600; }
.ck-side-n { font-size: 12.5px; color: var(--sub); }
.ck-side-n b { font-size: 22px; color: var(--primary-deep); margin-right: 2px; }
.ck-side-n .ck-w { color: #b45309; }
.ck-side-n .ck-o { color: #0e7490; }
.ck-side-tip { font-size: 11.5px; color: #94a3b8; }
.ck-side-clear {
  margin-left: 6px; font-size: 11.5px; font-weight: 600;
  color: var(--primary-deep); background: #f0f9ff; border-radius: 6px; padding: 2px 8px;
}
.ck-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff;
  font-size: 11.5px; font-weight: 600; border-radius: 7px; padding: 3px 4px 3px 9px;
}
.ck-chip button { color: #fff; font-size: 13px; line-height: 1; padding: 0 3px; opacity: .85; }

@media (max-width: 720px) {
  .ck-top { flex-direction: column; }
  .ck-cal { width: 100%; max-width: none; min-width: 0; }
  .ck-cell { height: 30px; }
  .ck-cell-d { font-size: 12px; }
}
