/* ============================================================
   员工管理系统 - 内置样式（无外部依赖）
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f2f4f7;
  color: #333;
  font-size: 14px;
}
a { color: #1f6feb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- 顶栏 ---- */
.topbar {
  background: #1f2d3d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 52px;
}
.brand { font-size: 18px; font-weight: 600; }
.userbox { display: flex; align-items: center; gap: 12px; }
.uname { font-size: 14px; color: #cfd6df; }

/* ---- 导航 ---- */
.nav {
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 16px;
}
.nav a {
  padding: 12px 11px;
  font-size: 14px;
  color: #555;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #1f6feb; text-decoration: none; }
.nav a.on { color: #1f6feb; border-bottom-color: #1f6feb; font-weight: 600; }

/* ---- 主体容器 ---- */
.container { max-width: 1080px; margin: 18px auto; padding: 0 16px; }
.welcome { margin-bottom: 14px; }
.welcome h2 { font-size: 18px; color: #1f2d3d; }

/* ---- 统计卡片 ---- */
.cards { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.card {
  flex: 1;
  min-width: 150px;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.card .num { font-size: 28px; font-weight: 700; color: #1f6feb; }
.card .num.green { color: #12805c; }
.card .num.red { color: #b3261e; }
.card .num.purple { color: #7b4bb7; }
.card .num.teal { color: #0f7b8a; }
.card .lbl { margin-top: 4px; color: #888; font-size: 13px; }

/* ---- 面板 ---- */
.panel {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.panel-h h3 { font-size: 15px; color: #1f2d3d; }

/* ---- 表格 ---- */
.tb { width: 100%; border-collapse: collapse; }
.tb th {
  background: #f7f9fc;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #e3e8ef;
  font-weight: 600;
  white-space: nowrap;
}
.tb td { padding: 10px 12px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.tb tr:hover td { background: #fafcff; }
.tb .center { text-align: center; }
.tb .nowrap { white-space: nowrap; }
.cell-content { min-width: 150px; max-width: 420px; overflow-wrap: anywhere; }

/* ---- 按钮 ---- */
.btn {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
}
.btn:hover { border-color: #1f6feb; color: #1f6feb; text-decoration: none; }
.btn-primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.btn-primary:hover { background: #185fd0; border-color: #185fd0; color: #fff; }
.btn-danger { background: #fff; border-color: #e35d5d; color: #d64545; }
.btn-danger:hover { background: #d64545; border-color: #d64545; color: #fff; }
.btn-outline { background: #fff; border-color: #d0d7e2; color: #3a4658; }
.btn-outline:hover { border-color: #1f6feb; color: #1f6feb; }
.btn-soft { background: #eef4ff; border-color: #b9d2ff; color: #1f6feb; font-weight: 600; }
.btn-soft:hover { background: #e2edff; border-color: #1f6feb; color: #1f6feb; }
/* 深色顶栏上的幽灵按钮（退出） */
.btn-ghost { background: transparent; border-color: #5b6b7f; color: #cfd6df; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---- 表单 ---- */
.field { margin-bottom: 12px; }
.field label { display: block; margin-bottom: 5px; color: #555; font-size: 13px; }
.field input[type=text],
.field input[type=password],
.field input[type=number],
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.field textarea { resize: vertical; }
.form-inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form-inline .field { margin-bottom: 0; }
.form-inline .field input[type=text],
.form-inline .field input[type=number] { width: 180px; }
.form-inline .field select { width: 130px; }
/* 筛选工具条控件统一高度（v7.27.49） */
.form-inline .field input[type=text],
.form-inline .field input[type=password],
.form-inline .field input[type=number],
.form-inline .field select { height: 36px; }
/* 日期/月份筛选：输入框与按钮统一高度、底部对齐（v7.27.49） */
.form-inline .field:has(input[type=date]),
.form-inline .field:has(input[type=month]),
.form-inline .field:has(.pay-date),
.form-inline .field:has(.pay-month) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 4px;
}
.form-inline .field:has(input[type=date]) > label,
.form-inline .field:has(input[type=month]) > label,
.form-inline .field:has(.pay-date) > label,
.form-inline .field:has(.pay-month) > label { flex: 0 0 100%; width: 100%; }
.form-inline > .btn,
.form-inline .field > .btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
}
.form-col { max-width: 520px; }
.toolbar { margin-top: 14px; display: flex; gap: 10px; align-items: center; }
form.inline { display: inline; }

/* ---- 提示 ---- */
.alert {
  background: #eaf3ff;
  border: 1px solid #bcd9ff;
  color: #1f6feb;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.alert-err { background: #fdecec; border-color: #f5b8b8; color: #d64545; }
.tip { color: #888; font-size: 13px; margin-bottom: 12px; line-height: 1.7; }
.muted { color: #999; font-size: 12px; }
.empty { color: #999; padding: 20px 0; text-align: center; }

/* ---- 徽章 ---- */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 12px;
  margin-right: 4px;
}
.badge-view   { background: #eaf3ff; color: #1f6feb; }
.badge-write  { background: #e6f7ef; color: #188a55; }
.badge-admin  { background: #f3f0ff; color: #6b4fd8; }
.badge-leader { background: #fff4e5; color: #b26a00; }
.st-todo  { background: #f1f2f4; color: #666; }
.st-doing { background: #fff4e5; color: #c57a10; }
.st-done  { background: #e6f7ef; color: #188a55; }
.st-pause { background: #fdecec; color: #d64545; }

/* ---- 客户续费到期 ---- */
.exp-ok     { color: #4a7c59; }
.exp-warn   { color: #b26a00; font-weight: 600; }
.exp-danger { color: #d64545; font-weight: 600; }

/* ---- 客户分类标签（续费/尾款） ---- */
.kv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border: 1px solid #e2e8f2; border-radius: 999px;
  background: #fff; color: #4a5568; font-size: 13px; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.chip b { font-weight: 600; color: #1f2d3d; }
.chip:hover { border-color: #c9d6ea; color: #1f6feb; }
.chip.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.chip.on b { color: #fff; }

/* ---- 客户列表（卡片式，不横向滚动） ---- */
.cust-list { display: flex; flex-direction: column; gap: 10px; }
.cust-item {
  border: 1px solid #e6eaf2; border-radius: 10px; padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.cust-item:hover { border-color: #cfdaea; box-shadow: 0 2px 8px rgba(31,111,235,.06); }
.cust-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cust-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cust-name { font-size: 15px; font-weight: 600; color: #1f2d3d; text-decoration: none; }
a.cust-name:hover { color: #1f6feb; }
.cust-no { font-size: 12px; color: #a8b0bd; }
.cust-sub { font-size: 12px; color: #8a93a3; }
.cust-money { font-size: 14px; font-weight: 600; white-space: nowrap; }
.cust-owed { color: #d64545; }
.cust-clear { color: #188a55; }
.cust-none { color: #a8b0bd; font-weight: 400; font-size: 12px; }
.cust-pay { color: #1f6feb; font-size: 16px; font-weight: 700; }
.cust-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eef1f6;
}
.cf { display: flex; gap: 6px; align-items: baseline; font-size: 13px; color: #1f2d3d; min-width: 0; }
.cf i { font-style: normal; font-size: 12px; color: #8a93a3; flex: 0 0 auto; }
.cf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-wide { grid-column: span 2; }
.cf-wide span { white-space: normal; word-break: break-all; overflow: visible; }
.cust-ops {
  display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed #eef1f6;
}
.cust-remark {
  display: flex; gap: 6px; align-items: baseline; margin-top: 8px;
  padding: 6px 10px; border-radius: 6px; background: #fafbfd; font-size: 13px; color: #4a5568;
}
.cust-remark i { font-style: normal; font-size: 12px; color: #8a93a3; flex: 0 0 auto; }
.pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 900px) {
  .cf-wide { grid-column: span 1; }
  .cust-ops { flex-wrap: wrap; }
}

/* ---- 进度条目 ---- */
.prog-item {
  border: 1px solid #eef1f6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #fbfcfe;
}
.prog-meta { margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.prog-content { line-height: 1.7; white-space: pre-wrap; word-break: break-all; }

/* ---- 操作列 ---- */
.tb .ops { white-space: nowrap; float: none; }
.tb .ops .btn { white-space: nowrap; }
.ops { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ops-nowrap { flex-wrap: nowrap; }

/* ---- 登录页 ---- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 全站 body 有 zoom:1.2，这里按缩放补偿，避免登录页比视口高出 20% 出现滚动条 */
  min-height: calc(100vh / 1.2);
  background: linear-gradient(160deg, #1f2d3d 0%, #2c3e50 100%);
}
.login-box {
  background: #fff;
  border-radius: 10px;
  padding: 34px 38px;
  width: 360px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 22px; color: #1f2d3d; }
.login-box .tip { text-align: center; margin-top: 14px; margin-bottom: 0; }

/* ---- 日报填写 ---- */
.field-date input[type=date] { width: 180px; display: inline-block; margin-right: 8px; }
.rep-block {
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #fbfcfe;
}
.rep-title { font-weight: 600; margin-bottom: 10px; color: #1f2d3d; }
.rep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 12px;
}
.rep-cell label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.rep-cell input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  font-size: 14px;
}
.rep-note { grid-column: 1 / -1; }
.rep-count input { width: 140px; }
.rep-notes { margin-top: 10px; border-top: 1px dashed #dfe5ee; padding-top: 10px; }
.rep-note-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rep-note-row label { flex: none; width: 86px; font-size: 13px; color: #555; text-align: right; }
.rep-note-row input {
  flex: 1;
  padding: 7px 9px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  font-size: 14px;
}
.rep-notes-empty { font-size: 12px; color: #aab3bf; }
.note-line { line-height: 1.55; }
.note-line .muted { margin-right: 4px; }

/* ---- 页脚 ---- */
.foot {
  text-align: center;
  color: #aab3bf;
  font-size: 12px;
  padding: 18px 0 30px;
}

/* ---- v2 薪酬/团队/客户 模块补充 ---- */
.tb-wrap { overflow-x: auto; }
.tb-wrap .tb { min-width: 720px; }
/* 组长分红表：10 列，桌面宽度下压紧不横向滚动 */
.tb-wrap .tb.tb-bonus { min-width: 0; }
.tb-bonus th, .tb-bonus td { padding: 8px 6px; font-size: 12.5px; }
.tb-bonus th { white-space: nowrap; }
.tb-bonus th small { display: block; font-weight: 400; font-size: 10.5px; line-height: 1.2; color: #8a97a8; }
.tb-bonus td:first-child, .tb-bonus td:nth-child(2) { white-space: nowrap; }
@media (max-width: 900px) {
  .tb .hide-sm { display: none; }
  .tb-wrap .tb { min-width: 0; }
  .tb th, .tb td { padding: 9px 7px; }
  .tb th { font-size: 13px; }
}
.form-inline .field select.wide { width: 240px; }
.form-inline .field input.wide { width: 240px; }
.tb input[type=number] { width: 90px; }

/* ---- v7.4 请假 / 打卡 ---- */
/* 「开始 / 结束」= 日期 + 上午下午，同一行 */
.lv-when { display: block; }
.lv-when > label { display: block; margin-bottom: 4px; }
.lv-when input[type=date], .lv-when select { display: inline-block; vertical-align: middle; margin-right: 4px; }
/* 表单里实时显示「本次合计 N 天」 */
.lv-sum { margin: 10px 0 6px; font-size: 14px; color: #374151; }
.lv-sum b { color: #1f6feb; font-size: 17px; margin: 0 2px; }
.lv-when input[type=date] { width: 148px; }
.lv-when select { width: 74px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input.mini { width: 96px; }
.punch-ok { font-size: 16px; font-weight: 600; color: #16a34a; margin: 4px 0 8px; }
/* 待审批：每条一块，窄屏也不横向撑开 */
.lp-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.lp-item:last-child { margin-bottom: 0; }
.lp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-name { font-weight: 600; }
.lp-when { font-size: 13px; }
.lp-sub { font-size: 12px; }
.lp-reason { font-size: 13px; color: #4b5563; margin: 6px 0 8px; word-break: break-all; }
.lp-item .inline-form { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-item .inline-form input.mini { flex: 1 1 170px; width: auto; min-width: 130px; }
/* 表单里的复选框行（如请假的「半天」） */
label.chk { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 32px; }
label.chk input[type=checkbox] { margin: 0; }

/* ---- v7.3 绩效评分卡 ---- */
.perf-tb { min-width: 0; }
.perf-tb td, .perf-tb th { vertical-align: middle; padding-left: 5px; padding-right: 5px; }
.perf-tb input[type=number] { width: 52px; }
.perf-tb input[type=checkbox] { width: 15px; height: 15px; }
.perf-tb .perf-out { white-space: nowrap; }

/* v7.27.87 绩效评分：本月例外调整 */
.perf-tb { min-width: 0; width: 100%; }
.perf-tb th { white-space: nowrap; }
.perf-tb td, .perf-tb th { padding: 9px 7px; }
.perf-row td:first-child { font-weight: 600; }
.perf-hint {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  margin: 0 0 10px; padding: 8px 12px; font-size: 12.5px; color: #5b6b82;
  background: #f7f9fc; border: 1px solid #e7ecf3; border-radius: 9px;
}
.perf-hint strong { color: #1f2d3d; }
.perf-help { margin: 0 0 12px; }
.perf-help summary { width: max-content; cursor: pointer; font-size: 12.5px; color: #1f6feb; }
.perf-help .tip { margin: 8px 0 0; }
.perf-attend-line { display: flex; align-items: center; gap: 6px; }
.perf-metrics { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: #8a94a6; line-height: 1.5; }
.perf-metrics-att { display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 14px; }
.perf-metrics-rep { display: grid; grid-template-columns: max-content; gap: 1px 0; }
.perf-metrics span { white-space: nowrap; }
.perf-metrics b { color: #1f2d3d; font-weight: 600; font-variant-numeric: tabular-nums; }
.perf-metrics .is-bad b { color: #d64545; }
.perf-metrics em { font-style: normal; font-size: 11px; color: #a3adbb; margin-left: 2px; }
.perf-attend-amt { font-weight: 700; color: #1f2d3d; font-variant-numeric: tabular-nums; }
.perf-attend-std { margin-top: 2px; font-size: 11.5px; color: #8a94a6; white-space: nowrap; }
.perf-attend-amt.muted { font-weight: 400; color: #8a97a8; }
.perf-check { display: inline-flex; align-items: center; gap: 6px; }
.perf-score-line { display: inline-flex; align-items: baseline; gap: 2px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.perf-score-line strong { font-size: 15px; color: #1f2d3d; }
.perf-slash { color: #b6c0cd; margin: 0 1px; }
.perf-tb .perf-out { line-height: 1.35; }
.perf-tb .perf-out a { display: inline-block; margin-left: 7px; font-size: 11.5px; color: #1f6feb; text-decoration: none; vertical-align: middle; }
.perf-tb .perf-out a:hover { text-decoration: underline; }
.perf-tb .perf-adjust-row[hidden], .perf-tb .perf-detail-row[hidden] { display: none; }
.perf-tb .perf-adjust-row > td { background: #f7f9fc; border-top: 0; padding: 12px 14px; }
.perf-tb .perf-detail-row > td { background: #fbfcfe; border-top: 0; padding: 9px 14px; }
.perf-adjust-box { display: flex; flex-direction: column; gap: 10px; }
.perf-adjust-grid { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.perf-adjust-grid label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 13px; color: #45536b; white-space: nowrap; }
.perf-serious-label, .perf-serious-label .muted { color: #b42318; }
.perf-tb .perf-adjust-grid input[type=number] { width: 78px; height: 32px; padding: 0 7px; border: 1px solid #d0d7e2; border-radius: 7px; font-size: 13px; }
.perf-adjust-grid select { height: 32px; padding: 0 6px; border: 1px solid #d0d7e2; border-radius: 7px; font-size: 13px; background: #fff; }
.perf-adjust-reason { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #45536b; margin: 0; }
.perf-tb .perf-adjust-reason input[type=text] { flex: 1; min-width: 240px; height: 32px; padding: 0 9px; border: 1px solid #d0d7e2; border-radius: 7px; font-size: 13px; }
.perf-adjust-reason input:focus, .perf-adjust-grid input:focus, .perf-adjust-grid select:focus { outline: none; border-color: #1f6feb; box-shadow: 0 0 0 3px rgba(31,111,235,.10); }
.perf-adjust-reason .perf-adjust-error { color: #b42318; font-size: 12px; white-space: nowrap; }
.perf-adjust-reason input.is-bad { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.12); }
.perf-adjust-hint { font-size: 12px; line-height: 1.5; }
.perf-adjust-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-top: 2px; }
.perf-adjust-actions .muted { font-size: 12px; }
.perf-detail-box { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #45536b; line-height: 1.6; }
.perf-detail-box strong { color: #1f2d3d; }
.perf-detail-box a { color: #1f6feb; text-decoration: none; }
.perf-detail-box a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .perf-tb { min-width: 0; }
  .perf-adjust-reason { align-items: flex-start; flex-direction: column; }
  .perf-tb .perf-adjust-reason input[type=text] { width: 100%; min-width: 0; }
  .perf-hint { flex-direction: column; }
}
@media (max-width: 900px) {
  .perf-tb input[type=number] { width: 52px; }
}

/* ---- v3 工单 / 项目 ---- */
.kbars { display: flex; gap: 8px; flex-wrap: wrap; }
.kbar {
  padding: 7px 14px; border: 1px solid #e3e8ef; border-radius: 6px;
  font-size: 14px; color: #555; background: #fff;
}
.kbar:hover { text-decoration: none; border-color: #1f6feb; color: #1f6feb; }
.kbar.on { border-color: #1f6feb; color: #1f6feb; background: #f5f9ff; font-weight: 600; }
.kbar strong { margin-left: 4px; }

/* ---- 工单总览：所有角色共用同一套样式 ---- */
.tk-overview .panel-h { margin-bottom: 10px; }
.tk-overview .panel-h h3 { font-size: 15px; font-weight: 600; color: #1f2d3d; }
.tk-overview .kbars { margin-bottom: 0; }
.form-inline .field textarea { width: 100%; }

/* ---- 富文本编辑器（工单问题描述） ---- */
.rt {
  border: 1px solid #dfe4ec; border-radius: 8px; background: #fff; overflow: hidden;
}
.rt-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 6px 8px; background: #f7f9fc; border-bottom: 1px solid #e9eef6;
}
.rt-bar button {
  border: 1px solid transparent; background: transparent; border-radius: 5px;
  padding: 4px 8px; font-size: 13px; color: #445; cursor: pointer; line-height: 1.4;
}
.rt-bar button:hover { background: #eaf1fd; border-color: #cfe0fb; color: #1f6feb; }
@media (max-width: 900px) {
  .rt-bar { gap: 2px; padding: 5px 6px; }
  .rt-bar button { padding: 4px 6px; font-size: 12px; }
  .rt-bar .rt-sep { margin: 0 2px; }
}
.rt-bar .rt-sep { width: 1px; height: 18px; background: #e0e6ef; margin: 0 4px; }
.rt-bar .rt-hl { background: #fff3bf; }
.rt-bar .rt-red { color: #d93025; }
.rt-edit {
  min-height: 168px; max-height: 460px; overflow: auto; padding: 12px 14px;
  font-size: 14px; line-height: 1.75; color: #1f2d3d; outline: none;
  word-break: break-word;
}
.rt-edit:empty:before {
  content: attr(data-placeholder); color: #a9b2c0; pointer-events: none;
}
.rt-edit p { margin: 0 0 8px; }
.rt-edit ul, .rt-edit ol { margin: 0 0 8px; padding-left: 24px; }
.rt-edit blockquote {
  margin: 0 0 8px; padding: 6px 12px; border-left: 3px solid #cfe0fb;
  background: #f8fbff; color: #4a5567;
}
.rt-edit pre {
  margin: 0 0 8px; padding: 10px 12px; background: #f5f7fa; border-radius: 6px;
  font-family: Consolas, Monaco, monospace; font-size: 13px; white-space: pre-wrap;
}
.rt-edit img {
  max-width: 100%; border-radius: 6px; border: 1px solid #e5eaf2; cursor: pointer;
  display: block; margin: 6px 0;
}
.rt-edit video, .rt-body video {
  max-width: 100%; max-height: 420px; width: auto; border-radius: 6px; border: 1px solid #e5eaf2;
  background: #000; display: block; margin: 8px 0;
}
/* 编辑器里的视频：媒体控件不接收指针，避免点了视频后键盘输入跑到播放器里 */
.rt-edit .rt-media {
  display: inline-block; max-width: 100%; position: relative; margin: 8px 0;
  border-radius: 8px; outline: 2px solid transparent;
}
.rt-edit .rt-media video { pointer-events: none; margin: 0; }
.rt-edit .rt-media:hover { outline-color: #bcd4fb; }
.rt-edit .rt-media::after {
  content: "▶ 点一下可播放/删除"; position: absolute; left: 8px; bottom: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1.6;
  padding: 2px 8px; border-radius: 10px; pointer-events: none;
}
.rt-vplay { text-align: center; }
.rt-vplay video {
  max-width: min(880px, 86vw); max-height: 70vh; border-radius: 8px; background: #000;
}
.rt-foot {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 10px; border-top: 1px solid #eef2f8; font-size: 12px; color: #98a2b3;
}
.rt-imgbar {
  position: absolute; z-index: 60; display: flex; gap: 6px;
  background: #1f2d3d; border-radius: 6px; padding: 5px 6px; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.rt-imgbar button {
  border: 0; background: transparent; color: #fff; font-size: 12px; cursor: pointer; padding: 2px 6px;
}
.rt-imgbar button:hover { color: #7fb2ff; }

/* 标注弹层 */
.rt-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 35, .55);
  display: flex; align-items: center; justify-content: center; z-index: 999; padding: 16px;
}
.rt-modal {
  background: #fff; border-radius: 10px; padding: 14px 16px; max-width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.rt-modal-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.rt-modal-h strong { font-size: 15px; color: #1f2d3d; }
.rt-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rt-tool {
  border: 1px solid #dfe4ec; background: #fff; border-radius: 5px; padding: 4px 10px;
  font-size: 13px; color: #445; cursor: pointer;
}
.rt-tool.on { border-color: #1f6feb; color: #1f6feb; background: #f0f6ff; }
.rt-sp { flex: 1 1 auto; }
.rt-canvas-wrap { max-width: 100%; overflow: auto; text-align: center; position: relative; }
.rt-canvas-wrap canvas {
  touch-action: none; cursor: crosshair; border-radius: 6px; border: 1px solid #e5eaf2;
}
.rt-textbox {
  position: absolute; z-index: 3; min-width: 140px; max-width: 70%;
  padding: 1px 4px; margin: 0; border: 1px dashed #1f6feb; border-radius: 4px;
  background: rgba(255,255,255,.85); line-height: 1.25; resize: none; overflow: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; font-weight: 600;
  box-shadow: 0 2px 10px rgba(31,111,235,.15);
}
.rt-textbox:focus { outline: none; border-style: solid; background: #fff; }

/* 详情页富文本正文 */
.rt-body { line-height: 1.8; color: #1f2d3d; word-break: break-word; }
.rt-body p { margin: 0 0 10px; }
.rt-body ul, .rt-body ol { margin: 0 0 10px; padding-left: 24px; }
.rt-body blockquote {
  margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #cfe0fb; background: #f8fbff;
}
.rt-body pre {
  margin: 0 0 10px; padding: 10px 12px; background: #f5f7fa; border-radius: 6px;
  font-family: Consolas, Monaco, monospace; font-size: 13px; white-space: pre-wrap;
}
.rt-body img { max-width: 100%; border-radius: 6px; border: 1px solid #e5eaf2; margin: 6px 0; display: block; }

/* ===== v7.6 工作日历（节假日设置） ===== */
.hol-sum{margin:0 0 10px;font-size:13px;color:#555}
.hol-sum b{color:#1668dc}
.hol-sum .hs-key{display:inline-block;padding:0 6px;border-radius:6px;background:#eaf3ff;font-size:15px;line-height:1.5;font-weight:700}
.hol-sum-note{margin:-4px 0 10px;font-size:12px}
.cal{border:1px solid #e6e8ec;border-radius:8px;overflow:hidden;background:#fff;max-width:760px}
.cal-head,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}
.cal-head span{padding:8px 0;text-align:center;font-size:12px;color:#666;background:#f7f8fa;border-bottom:1px solid #e6e8ec}
.cal-grid{gap:1px;background:#eef0f3;padding:1px}
.cal-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:64px;background:#fff;border:0;font-size:14px;color:#333;cursor:pointer;padding:4px 2px}
.cal-cell i{font-style:normal;font-size:11px;line-height:1.2;height:13px}
.cal-day{font-size:15px;font-weight:600;line-height:1.1}
.cal-name{font-style:normal;font-size:10px;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.9;margin-top:1px}
.cal-cell:hover{background:#f2f6ff}
.cal-empty{background:#fafbfc;cursor:default}
.cal-sun{background:#f5f6f8;color:#8a8f99}
.cal-sun i{color:#8a8f99}
.cal-off{background:#e8f7ee;color:#1a7f45}
.cal-off i{color:#1a7f45}
.cal-work{background:#fff4e5;color:#b25e00}
.cal-work i{color:#b25e00}

/* ===== v7.6 请假超休提示 ===== */
.lv-over{margin-left:8px;font-size:12px;color:#8a8f99}
.lv-over b{color:#b25e00}
/* ===== v7.8 打卡日历 ===== */
.ck-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;background:#fff;padding:4px 2px;font-size:14px;color:#333}
.ck-cell i{font-style:normal;font-size:11px;line-height:1.2;height:13px}
.ck-cell .cal-name{font-style:normal}
button.ck-cell{border:0;font:inherit;color:inherit;cursor:pointer}
button.ck-cell:hover{outline:2px solid #1f6feb;outline-offset:-2px}
.ck-ok{background:#e8f1ff;color:#1668dc}
.ck-ok i{color:#1668dc}
.ck-off{background:#e8f7ee;color:#1a7f45}
.ck-off i{color:#1a7f45}
.ck-work{background:#fff4e5;color:#b25e00}
.ck-work i{color:#b25e00}
.ck-sun{background:#f5f6f8;color:#8a8f99}
.ck-sun i{color:#8a8f99}
.ck-leave{background:#f4ecff;color:#6b3fb5}
.ck-leave i{color:#6b3fb5}
.ck-miss{background:#fff;color:#c0392b}
.ck-miss i{color:#c0392b}
/* ===== v7.10 补卡弹层 ===== */
.mk-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;z-index:999;padding:20px}
.mk-mask[hidden]{display:none}
.mk-box{background:#fff;border-radius:12px;box-shadow:0 18px 48px rgba(15,23,42,.22);width:100%;max-width:330px;padding:18px 18px 14px}
.mk-head{display:flex;align-items:baseline;gap:8px;margin-bottom:2px}
.mk-head strong{font-size:15px;color:#1f2d3d}
.mk-who{font-size:12px;color:#8a8f99}
.mk-date{margin:0 0 12px;font-size:13px;color:#4a5666}
.mk-box .field{margin-bottom:10px}
/* 补卡弹层只控制宽度，外观交给全站日期/时间控件统一规则 */
.mk-box input[type=time],
.mk-box input[type=date]{width:100%}
.mk-quick{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 14px}
.mk-quick button{border:1px solid #e2e6ee;background:#f7f9fc;color:#4a5666;border-radius:999px;padding:4px 10px;font-size:12px;cursor:pointer}
.mk-quick button:hover{border-color:#1f6feb;color:#1f6feb;background:#f2f6ff}
.mk-actions{display:flex;justify-content:flex-end;gap:8px}
/* ===== v7.12 打卡分上午/下午 ===== */
.ck-today{display:flex;flex-direction:column;gap:8px;margin:4px 0 10px}
.ck-line{display:flex;align-items:center;gap:10px}
.ck-lb{width:44px;color:#4a5666;font-size:13px}
.ck-cell .cal-name{line-height:1.25}
.mk-seg{display:flex;gap:0;border:1px solid #d0d7e2;border-radius:8px;overflow:hidden;margin-bottom:10px}
.mk-seg button{flex:1;border:0;background:#fff;padding:8px 0;font-size:13px;color:#4a5666;cursor:pointer}
.mk-seg button+button{border-left:1px solid #d0d7e2}
.mk-seg button.on{background:#1f6feb;color:#fff}
.mk-seg button.off-dis{color:#b9c0ca;background:#f6f7f9;cursor:not-allowed}
/* 客户卡片头部：标题行不换行，右侧金额始终贴右 */
.cust-top { flex-wrap: nowrap; align-items: flex-start; }
.cust-id { flex: 1 1 auto; min-width: 0; }
.cust-money { flex: 0 0 auto; }
.cust-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-proof{width:40px;height:40px;object-fit:cover;border-radius:6px;border:1px solid #e2e6ee;display:block}
.pay-proof:hover{border-color:#1f6feb}
.mk-box input[type=file]{width:100%;font-size:13px;color:#4a5666}
.pay-sum{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.pay-sum>div{background:#f7f9fc;border:1px solid #e6ebf3;border-radius:10px;padding:7px 12px;font-size:12px;color:#5a6472}
.pay-sum b{font-size:15px;color:#1f2d3d;margin-left:6px}
.pay-sum .muted{font-size:11px}
.pay-sum>.sum-exp{background:#fff5f2;border-color:#ffd6c9}
.pay-sum>.sum-exp b{color:#d1452f}
.pay-sum>.sum-total{background:#eef4ff;border-color:#cdddff}
.pay-sum>.sum-total b{color:#1f6feb}

/* v7.24 合并页签（员工与团队 / 薪酬与结算） */
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.tabs a{padding:7px 14px;border:1px solid #dfe3e8;border-radius:8px;background:#fff;color:#40505f;text-decoration:none;font-size:14px;line-height:1.2}
.tabs a:hover{border-color:#1f6feb;color:#1f6feb}
.tabs a.on{background:#1f6feb;border-color:#1f6feb;color:#fff}
.tabs a .cnt{margin-left:4px;font-size:12px;opacity:.8}
.tabs-sub{margin-top:-6px}
.tabs-sub a{font-size:13px;padding:5px 12px;background:#f7f9fb}
.tabs-sub a.on{background:#e8f0fe;border-color:#1f6feb;color:#1f6feb;font-weight:600}
.tb input.num{width:96px;padding:5px 7px;border:1px solid #dfe3e8;border-radius:6px;font-size:13px;text-align:right;color:#1f2d3d}
.tb input.num:focus{outline:none;border-color:#1f6feb;box-shadow:0 0 0 3px rgba(31,111,235,.12)}
.tb tr.focus-row td{background:#f4f8ff}
.tb .muted-sm{font-size:11px}

/* v7.25 绩效表窄屏：团队列收起，数字框放宽 */
@media (max-width: 900px) {
  .perf-tb input[type=number] { width: 58px; }
}

/* v7.26 薪酬表：工资 + 绩效奖标准 合并一张表（v7.26.2 美化） */
.tb-wrap .tb.tb-salary { min-width: 0; }
.tb-salary { border-collapse: separate; border-spacing: 0; }
.tb.tb-salary input.num { width: 62px; padding: 5px 6px; font-size: 13px; }
.tb.tb-salary input.num::placeholder { color: #b6c0cd; }
.tb.tb-salary input.num:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47,111,237,.12); }
.tb-salary th { font-size: 12px; line-height: 1.35; color: #6b7a90; font-weight: 600; background: #f7f9fc; }
.tb-salary th, .tb-salary td { padding: 8px 5px; }
.tb-salary .grp-row th { padding: 6px 5px 4px; font-size: 12px; letter-spacing: .4px; }
.tb-salary .grp-pay { background: #edf3fe; color: #30558f; border-radius: 8px 0 0 0; }
.tb-salary .grp-perf { background: #f1eeff; color: #53409c; border-radius: 0 8px 0 0; }
.tb-salary .th-row th { border-bottom: 1px solid #e7ecf3; border-top: 1px solid #e7ecf3; }
.tb-salary td { border-bottom: 1px solid #f1f4f9; }
.tb-salary tr:last-child td { border-bottom: 0; }
.tb-salary tbody tr:hover td, .tb-salary tr:hover td { background: #fbfcff; }
.tb-salary .col-name { min-width: 92px; text-align: left; font-size: 13px; color: #1f2d3d; }
.tb-salary td.col-name { font-weight: 600; line-height: 1.25; }
.tb-salary td.col-name .muted { display: block; font-weight: 400; font-size: 11px; color: #8a97a8; margin-top: 2px; }
.tb-salary tr.focus-row td { background: #fffbe9; }
/* v7.27.79 阶梯提成：每人一行折叠设置 */
.tb-salary tr.tier-row > td { background: #fafbfe; border-bottom: 1px solid #eef2f8; padding: 6px 10px 8px; }
.tb-salary tr.tier-row:hover > td { background: #fafbfe; }
.tier-details summary { cursor: pointer; font-size: 12px; color: #5b6b82; line-height: 1.5; list-style: none; }
.tier-details summary::-webkit-details-marker { display: none; }
.tier-details summary::before { content: '▸'; display: inline-block; width: 14px; color: #8a97a8; transition: transform .15s; }
.tier-details[open] summary::before { transform: rotate(90deg); }
.tier-details summary:hover { color: #1f6feb; }
.tier-fields { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 10px 0 6px; }
.tier-fields .field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.tier-fields .field label { font-size: 11px; color: #7b8798; white-space: nowrap; }
.tb.tb-salary .tier-fields input.num { width: 100px; padding: 5px 7px; }
.panel-rate .form-inline { gap: 14px; }
.panel-rate .field input { width: 96px; }.tb.tb-salary input.num::-webkit-outer-spin-button,
.tb.tb-salary input.num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tb-salary .th-row th:nth-child(5), .tb-salary td:nth-child(5) { padding-left: 12px; }

/* v7.27 人事档案 */
.hr-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 6px 0 10px; }
.hr-file { border: 1px solid #e7ecf3; border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.hr-file-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.hr-file-a { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 12px; }
.hr-file input[type=file] { width: 100%; font-size: 12px; }
.hr-del { color: #a4443a; }
.hr-chip { display: inline-block; margin: 2px 3px 2px 0; padding: 1px 7px; border-radius: 999px; font-size: 12px;
  background: #f0f2f5; color: #8a97a8; text-decoration: none; border: 1px solid transparent; }
.hr-chip.on { background: #e9f7ef; color: #188a55; }
.hr-chip.part { background: #fff6e6; color: #b26a00; }
.hr-chip.warn { background: #fff1e6; color: #b25300; }
.hr-chip.bad { background: #fdecea; color: #b3261e; }
.badge-danger { background: #fdecea; color: #b3261e; }
.muted.sub { font-size: 11px; line-height: 1.35; margin-top: 1px; }
/* ===== v7.27.2 员工管理页美化（头像 + 角色胶囊 + 干净操作列） ===== */
.emp-count { font-size: 12px; font-weight: 400; color: #8a97a8; margin-left: 8px; }
.emp-filter { display: flex; align-items: center; gap: 8px; }
.emp-filter select { padding: 6px 10px; font-size: 12.5px; border: 1px solid #dfe3e8; border-radius: 6px; background: #fff; }
.emp-tb thead th { background: #f6f8fb; color: #6b7a8d; font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.emp-tb td { vertical-align: middle; }
.emp-tb tbody tr:hover td { background: #f7faff; }
.emp-tb tbody tr:last-child td { border-bottom: 0; }
.emp-who { display: flex; align-items: center; gap: 10px; }
.emp-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(31, 111, 235, .18);
}
.emp-name { font-size: 13.5px; font-weight: 600; color: #1f2d3d; line-height: 1.3; }
.emp-no { font-size: 11px; font-weight: 400; color: #b3bfcc; margin-left: 5px; }
.emp-sub { font-size: 11.5px; color: #8a97a8; line-height: 1.4; margin-top: 1px; }
.chip-role {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; background: #f0f2f5; color: #5b6b7f;
}
.chip-role.is-admin { background: #eef1ff; color: #3b5bdb; }
.chip-role.is-lead { background: #fff4e2; color: #b26a00; }
.chip-role.is-fin { background: #e8f7ee; color: #1f7a45; }
.chip-team {
  display: inline-block; padding: 2px 9px; border-radius: 6px;
  font-size: 11.5px; background: #eef6ff; color: #1f6feb;
}
.emp-cnt { color: #5b6b7f; font-size: 12.5px; }
/* 权限一句话列：老板一眼核对，不需要再点进权限页 */
.emp-perm { color: #334155; font-size: 12px; line-height: 1.45; min-width: 200px; max-width: 240px; white-space: normal; }
.emp-tb .emp-perm-h { min-width: 200px; }
.emp-ops { gap: 6px; }
.emp-ops .btn-ghost {
  background: #fff; border: 1px solid #e3e8ef; color: #3b4a5a; padding: 4px 10px; font-size: 12px;
}
.emp-ops .btn-ghost:hover { border-color: #c9d6ea; color: #1f6feb; background: #f7faff; }
.emp-ops .btn-ghost-danger { color: #b3261e; }
.emp-ops .btn-ghost-danger:hover { border-color: #f3c2bd; color: #b3261e; background: #fdf3f2; }
/* 员工页：添加员工折叠成一行按钮，别占半屏 */
.emp-add-panel { padding: 12px 16px; }
.emp-add-panel details > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 8px; background: #1f6feb; color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 2px 8px rgba(31, 111, 235, .22); user-select: none;
}
.emp-add-panel details > summary::-webkit-details-marker { display: none; }
.emp-add-panel details > summary:hover { background: #1a5fd0; }
.emp-add-panel details[open] > summary { background: #eef4ff; color: #1f6feb; box-shadow: none; }
.emp-add-form { margin-top: 12px; }
/* v7.27.3 跟进编辑器：比新建工单那块矮一点，够写两句就行 */
.rt-sm .rt-edit { min-height: 110px; max-height: 340px; }
.rt-sm .rt-foot { font-size: 12px; }
/* v7.27.4 各页面「新建 / 添加」统一折叠成一行按钮（点开才是表单） */
.add-panel { padding: 12px 16px; }
.add-panel details > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 8px; background: #1f6feb; color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 2px 8px rgba(31, 111, 235, .22); user-select: none;
}
.add-panel details > summary::-webkit-details-marker { display: none; }
.add-panel details > summary:hover { background: #1a5fd0; }
.add-panel details[open] > summary { background: #eef4ff; color: #1f6feb; box-shadow: none; }
.add-panel details > .tip { margin: 12px 0 0; }
.add-panel details > form { margin-top: 12px; }
/* v7.27.5 工单优先级胶囊 + 高优先行强调 + 筛选 */
.prio {
  display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; line-height: 20px;
  border: 1px solid transparent; white-space: nowrap;
}
.prio-hi  { background: #fdecea; color: #c5221f; border-color: #f9c9c5; font-weight: 600; }
.prio-mid { background: #fff8e6; color: #a86a00; border-color: #ffe2ab; }
.prio-low { background: #f2f4f7; color: #5a6472; border-color: #e3e8ef; }
.prio-opt { background: #eef4ff; color: #1f6feb; border-color: #cfe0fb; }
.tb tr.tk-hi > td { background: #fffafa; }
.tb tr.tk-hi > td:first-child { box-shadow: inset 3px 0 0 #d93025; }
.tb tr.tk-hi:hover > td { background: #fff3f2; }
.tb tr.tk-hi .cell-content a { color: #c5221f; font-weight: 600; }
.kbar-hi { border-color: #f9c9c5 !important; }
.kbar-hi strong { color: #c5221f; }
.kbar-hi.on { background: #fdecea !important; border-color: #f0a9a3 !important; color: #c5221f !important; }
/* v7.27.6 建工单「关联客户」改成可搜索选择器（客户多了也能找） */
.cp { position: relative; display: flex; align-items: center; min-width: 230px; }
.cp-input { width: 100%; padding-right: 28px; }
.cp-toggle {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #8a94a6; cursor: pointer; padding: 2px 7px; font-size: 12px;
}
.cp-toggle:hover { color: #1f6feb; }
.cp-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid #dfe5ee; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .12); max-height: 260px; overflow: auto; padding: 4px;
}
.cp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 7px 10px; border-radius: 6px; font-size: 13px; color: #1f2d3d; cursor: pointer;
}
.cp-item:hover { background: #eef4ff; color: #1f6feb; }
.cp-item[hidden] { display: none; }
.cp-none { color: #5a6472; }
.cp-proj { font-size: 12px; color: #8a94a6; white-space: nowrap; }
.cp-empty { padding: 10px; font-size: 13px; color: #8a94a6; text-align: center; }
/* 财务页收支表单里的客户选择器：宽度固定，和后面的金额/类型对齐 */
.form-inline .field .cp-fin { width: 260px; min-width: 260px; }
.form-inline .field .cp-fin .cp-input { width: 100%; }
.cp-public { color: #5a6472; }

/* ---- 工资结算页（v7.27.20 重排） ---- */
.pay-ops{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between;margin-bottom:12px;padding-bottom:12px;border-bottom:1px dashed #e8edf5}
.pay-ops-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pay-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:12px}
.pay-kpi .k{background:#f7f9fc;border:1px solid #eaeff7;border-radius:8px;padding:10px 12px}
.pay-kpi .k i{display:block;font-style:normal;color:#8a94a6;font-size:12px;margin-bottom:4px}
.pay-kpi .k b{font-size:18px;color:#1f2d3d}
.pay-kpi .k span{display:block;color:#9aa4b2;font-size:12px;margin-top:2px}
.finance-kpi{grid-template-columns:repeat(7,minmax(0,1fr))}
@media (max-width:1200px){.finance-kpi{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:760px){.finance-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.pay-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pay-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.chip-soft{background:#f0f6ff;color:#1f6feb;border:1px solid #dbe8ff;border-radius:999px;padding:4px 10px;font-size:12px}
.tip-more summary{cursor:pointer;color:#8a94a6;font-size:12px;list-style:none}
.tip-more summary::-webkit-details-marker{display:none}
.tip-more summary::before{content:"▸ "}
.tip-more[open] summary::before{content:"▾ "}
.tip-more .tip{margin-top:8px}
.pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:960px){.pay-grid{grid-template-columns:1fr}}
.pay-item{border:1px solid #f3e2b8;border-radius:10px;padding:12px 14px;background:#fffdf6}
.pay-item-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.pay-who{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pay-who b{font-size:15px;color:#1f2d3d}
.pay-who .muted{font-size:12px}
.pay-amt i{font-style:normal;color:#8a94a6;font-size:12px;margin-right:6px}
.pay-amt b{font-size:20px;color:#1f6feb}
.pay-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px;margin-top:10px;padding-top:10px;border-top:1px dashed #eef1f6}
.pay-fields .pf{min-width:0}
.pay-fields .pf i{display:block;font-style:normal;color:#9aa4b2;font-size:12px;margin-bottom:2px}
.pay-fields .pf span{font-weight:600;color:#1f2d3d;font-size:13px}
.pay-fields .pf em{display:block;font-style:normal;font-weight:400;color:#a3adbb;font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pay-fields .pf-commission em{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
.pay-fields .pf-att em{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
.pay-fields .pf-bonus span{color:#c2761b}
.pay-more{margin-top:8px}
.pay-more summary{cursor:pointer;color:#8a94a6;font-size:12px;list-style:none}
.pay-more summary::-webkit-details-marker{display:none}
.pay-more summary::before{content:"▸ "}
.pay-more[open] summary::before{content:"▾ "}
.pay-more > div{margin-top:6px;color:#66707e;font-size:12px;line-height:1.7;background:#fafbfd;border-radius:6px;padding:8px 10px}
.pay-calc-list{display:flex;flex-direction:column;gap:0}
.pay-calc-row{display:grid;grid-template-columns:74px 76px minmax(0,1fr);gap:4px 10px;align-items:baseline;padding:6px 0;border-bottom:1px dashed #eef1f6}
.pay-calc-row:last-child{border-bottom:0}
.pay-calc-k{color:#8a94a6;font-size:12px;white-space:nowrap}
.pay-calc-v{color:#1f2d3d;font-size:13px;font-variant-numeric:tabular-nums;text-align:left}
.pay-calc-note{color:#8a94a6;font-size:11.5px;line-height:1.6;min-width:0}
.pay-calc-row-comm{display:block;padding:8px 0}
.pay-comm-top{display:flex;align-items:baseline;gap:10px}
.pay-comm-top .pay-calc-k{flex:0 0 74px;width:74px}
.pay-comm-top .pay-calc-v{flex:0 0 76px;width:76px;text-align:left}
.pay-comm-top .pay-comm-head{flex:1;min-width:0}
.pay-comm-head{color:#66707e;line-height:1.7;font-size:11px}
.pay-comm-head b{color:#1f2d3d;font-weight:600;font-variant-numeric:tabular-nums}
.pay-comm-stages{display:flex;flex-direction:column;gap:2px;margin-top:5px;padding:5px 8px;background:#fbf8ef;border-radius:6px}
.pay-comm-stage{display:flex;align-items:baseline;gap:8px}
.pay-comm-stage i{flex:0 0 38px;font-style:normal;color:#9aa4b2;font-size:10.5px;white-space:nowrap}
.pay-comm-stage b{flex:0 0 58px;color:#5b6b82;font-size:11px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.pay-comm-stage span{flex:1;min-width:0;color:#7b8798;font-size:11px;line-height:1.5}
.pay-calc-total{display:flex;align-items:baseline;gap:6px;margin-top:4px;padding-top:8px;border-top:1px solid #e2e8f1}
.pay-calc-total span{color:#5b6b82;font-size:12px}
.pay-calc-total b{margin-left:auto;color:#1f6feb;font-size:16px;font-variant-numeric:tabular-nums}
.pay-calc-total em{font-style:normal;color:#8a94a6;font-size:11px}
.pay-calc-raw{color:#66707e;font-size:12px;line-height:1.7}
.tb .neg{color:#d93025;font-weight:600}
.tb tr.tb-sum td{background:#f7f9fc;font-weight:700;border-top:2px solid #e3e8ef;border-bottom:none}
.tb-wrap{overflow-x:auto}


/* ---- 月份选择器（v7.27.22） ---- */
.pay-ops{align-items:center}
.pay-month-form{display:flex;align-items:center;gap:10px}
.pay-month{
  height:36px;padding:0 12px;border:1px solid #d0d7e2;border-radius:8px;
  font-size:14px;color:#1f2d3d;background:#fff;line-height:34px;
  font-family:inherit;min-width:168px;
}
.pay-month:hover{border-color:#9db8e8}
.pay-month:focus{outline:none;border-color:#1f6feb;box-shadow:0 0 0 3px rgba(31,111,235,.12)}
.pay-month::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.6}
.pay-month::-webkit-calendar-picker-indicator:hover{opacity:1}
.pay-month-form .btn{height:36px;display:inline-flex;align-items:center;padding:0 18px;border-radius:8px}

/* 团队筛选下拉（v7.27.23） */
.pay-select{
  height:36px;padding:0 34px 0 12px;border:1px solid #d0d7e2;border-radius:8px;
  font-size:14px;color:#1f2d3d;background:#fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23808a99' d='M6 8.5 2 4.5h8z'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance:none;-webkit-appearance:none;cursor:pointer;min-width:150px;font-family:inherit;
}
.pay-select:hover{border-color:#9db8e8}
.pay-select:focus{outline:none;border-color:#1f6feb;box-shadow:0 0 0 3px rgba(31,111,235,.12)}

/* 打卡日历工具条（v7.27.28） */
.cal-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}
.cal-bar .pay-select{min-width:130px}
.cal-bar .pay-month{min-width:150px}
.cal-bar .btn{height:36px;display:inline-flex;align-items:center;padding:0 16px;border-radius:8px;font-size:14px}

/* 日期 / 时间选择框统一（v7.27.29） */
.pay-date,.pay-time{
  height:36px;padding:0 12px;border:1px solid #d0d7e2;border-radius:8px;font-size:14px;
  color:#1f2d3d;background:#fff;line-height:34px;font-family:inherit;
}
.pay-date{min-width:150px}
.pay-time{min-width:108px}
.pay-date:hover,.pay-time:hover{border-color:#9db8e8}
.pay-date:focus,.pay-time:focus{outline:none;border-color:#1f6feb;box-shadow:0 0 0 3px rgba(31,111,235,.12)}
.pay-date::-webkit-calendar-picker-indicator,.pay-time::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.6}
.pay-date::-webkit-calendar-picker-indicator:hover,.pay-time::-webkit-calendar-picker-indicator:hover{opacity:1}
.field-date input.pay-date{width:auto;min-width:160px;display:inline-block;vertical-align:middle}
.form-inline .field input.pay-date{width:auto}
.lv-when{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px}
.lv-when > label{flex-basis:100%}
.lv-when input.pay-date{width:auto;min-width:150px;margin-right:0}
.lv-when select{height:36px;padding:0 6px;border-radius:8px;border:1px solid #d0d7e2;background:#fff;font-size:14px;color:#1f2d3d}
.field input.pay-date{width:100%}
.form-inline .field input.pay-date{width:auto;min-width:150px}
.field-date input.pay-date{width:auto;min-width:160px}
.lv-when input.pay-date{width:auto;min-width:150px}

/* ===== 日报逐天记录 + 审核（v7.27.31） ===== */
.rep-days td{vertical-align:top}
.rep-days tr.rep-day-miss td:first-child{color:#b3261e;font-weight:600}
.rep-notes-dt{margin-top:4px}
.rep-notes-dt summary{cursor:pointer;color:#1f6feb;font-size:12px}
.rep-notes-dt .note-line{font-size:12px;color:#5a6472}
.rep-rev-form{display:flex;gap:6px;flex-wrap:wrap}
.rep-rev-form .btn{height:30px;padding:0 10px;line-height:30px}

/* ===== 汇报明细（v7.27.32） ===== */
.rep-ops{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.rep-ops .btn{height:30px;padding:0 10px;line-height:30px}
.rep-dlg-tb{margin-top:8px;font-size:13px;table-layout:fixed;width:100%}
.rep-dlg-tb .rep-col-p{width:120px}
.rep-dlg-tb .rep-col-n{width:56px}
.rep-dlg-tb th{background:#f7f9fc;color:#5a6472;font-weight:600;text-align:left;padding:8px 10px;white-space:nowrap}
.rep-dlg-tb td{padding:8px 10px;border-bottom:1px solid #f0f3f7;vertical-align:top;line-height:1.6}
.rep-dlg-tb tr:last-child td{border-bottom:0}
.rep-dlg-tb td:nth-child(1){white-space:nowrap;color:#33415c}
.rep-dlg-tb td:nth-child(2){white-space:nowrap;color:#8a94a6}
.rep-link{display:inline-block;color:#1f6feb;text-decoration:none}
.rep-link:hover{text-decoration:underline}
.rep-link-url{margin-top:2px;color:#8a94a6;font-size:12px;word-break:break-all}

/* ===== 明细按平台合并 + 未汇报平台（v7.27.33） ===== */
.rep-miss-note{margin-top:3px;color:#b3261e;font-size:12px}
.rep-ok-note{color:#12805c;font-weight:600}
.rep-dlg-tb td.rep-dlg-p{background:#fbfcfe;font-weight:600;color:#33415c;border-right:1px solid #f0f3f7}
.rep-dlg-tb tr:first-child td{border-top:0}

/* ===== 明细行内展开（v7.27.55） ===== */
.rep-detail-row[hidden]{display:none}
.rep-detail-row > td{background:#f8fafc;padding:10px 12px 14px}
.rep-inline-detail{background:#fff;border:1px solid #e5eaf1;border-radius:8px;padding:8px 12px 4px}
.rep-inline-h{font-size:12px;color:#5a6472;font-weight:600;margin:2px 0 4px}
.rep-inline-detail .rep-dlg-tb{margin-top:0}

/* ===== 汇报记录里的请假标记（v7.27.34） ===== */
.badge-leave{background:#f3f0ff;color:#6b4fd8}
.rep-leave-note{margin-top:3px;color:#6b4fd8;font-size:12px}

/* ===== 统一确认 / 输入弹框（v7.27.36） ===== */
.ui-mask{position:fixed;inset:0;z-index:2147483000;background:rgba(15,23,42,.45);display:none}
.ui-dlg{position:fixed;inset:0;margin:auto;z-index:2147483001;width:min(448px,92vw);max-height:86vh;border:0;border-radius:14px;padding:0;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28);overflow:hidden;opacity:1}
.ui-dlg::backdrop{background:transparent}
@keyframes ui-dlg-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.ui-dlg-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 2px}
.ui-dlg-h h3{font-size:16px;color:#1f2d3d;font-weight:600}
.ui-dlg-x{border:0;background:transparent;color:#98a2b3;font-size:22px;line-height:1;cursor:pointer;padding:0 2px;border-radius:6px}
.ui-dlg-x:hover{color:#475467}
.ui-dlg-b{padding:10px 20px 18px;color:#475467;font-size:14px;line-height:1.7}
.ui-dlg-b #ui-dlg-msg{white-space:pre-wrap}
.ui-dlg-b textarea{display:block;width:100%;min-height:88px;margin-top:10px;padding:10px 12px;border:1px solid #d0d7e2;border-radius:8px;font:inherit;line-height:1.6;color:#333;resize:vertical;outline:none}
.ui-dlg-b textarea:focus{border-color:#1f6feb;box-shadow:0 0 0 3px rgba(31,111,235,.12)}
.ui-dlg-err{display:none;margin-top:6px;color:#b3261e;font-size:12px}
.ui-dlg-f{display:flex;justify-content:flex-end;gap:10px;padding:0 20px 18px}
.ui-dlg-f .btn{min-width:84px;justify-content:center}
.ui-dlg-ok-danger{background:#d64545;border-color:#d64545;color:#fff}
.ui-dlg-ok-danger:hover{background:#b93b3b;border-color:#b93b3b;color:#fff}
@media (max-width:480px){.ui-dlg-f{flex-direction:column-reverse}.ui-dlg-f .btn{width:100%}}

/* v7.27.62 整体界面放大（等同浏览器约 120% 缩放） */
body { zoom: 1.2; }


/* ===== 全站日期 / 月份 / 时间选择控件统一（v7.27.77） =====
   直接按 input 类型命中，后续新增的日期/月份/时间字段即使忘了加 class 也会自动统一。 */
.field input[type="date"],
.field input[type="month"],
.field input[type="time"],
.field input[type="datetime-local"],
.field input[type="week"] { width: 100%; }

.form-inline .field input[type="date"],
.form-inline .field input[type="month"],
.form-inline .field input[type="time"],
.form-inline .field input[type="datetime-local"],
.form-inline .field input[type="week"] { width: auto; min-width: 150px; }

input[type="date"],
input[type="month"],
input[type="time"],
input[type="datetime-local"],
input[type="week"] {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2d3d;
  background-color: #fff;
  line-height: 34px;
  font-family: inherit;
  box-sizing: border-box;
  color-scheme: light;
  cursor: pointer;
}
input[type="date"]:hover,
input[type="month"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="week"]:hover { border-color: #9db8e8; }

input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="week"]:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31,111,235,.12);
}

input[type="date"]::-webkit-datetime-edit,
input[type="month"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="week"]::-webkit-datetime-edit { padding: 0; }

/* Chrome / Edge：把原生黑色日历图标换成与站点一致的蓝色线性图标
   v7.27.85 修复：原生日历按钮原来被 padding 挤偏且 height:100% 在 Chrome 147 下塌成 0；
   现改为隐藏原生按钮、显示站点蓝色图标，由 assets/date_picker.js 接管右侧点击。 */
@supports selector(input::-webkit-calendar-picker-indicator) {
  input[type="date"],
  input[type="month"],
  input[type="week"] {
    padding-right: 0;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f6feb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
  }
  input[type="time"] {
    padding-right: 0;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231f6feb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
  }
  input[type="date"]::-webkit-calendar-picker-indicator,
  input[type="month"]::-webkit-calendar-picker-indicator,
  input[type="time"]::-webkit-calendar-picker-indicator,
  input[type="datetime-local"]::-webkit-calendar-picker-indicator,
  input[type="week"]::-webkit-calendar-picker-indicator {
    /* 彻底移除原生黑色图标；右侧点击由 assets/date_picker.js 调 showPicker() 接管 */
    display: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
  }
}

/* 绩效评分页：汇总条、合计行、待重算提醒、实时考勤 */
.perf-kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
.perf-kpi > div {
  flex: 1 1 150px;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
}
.perf-kpi span { color: #6b7280; font-size: 12px; }
.perf-kpi b { font-size: 20px; line-height: 1.2; color: #111827; font-variant-numeric: tabular-nums; }
.perf-kpi em { font-style: normal; color: #6b7280; font-size: 12px; }
.perf-kpi .is-warn { background: #fff7ed; border-color: #fbd9ae; }
.perf-kpi .is-warn b { color: #b45309; }
.perf-total-row td {
  background: #f8fafc;
  font-weight: 600;
  border-top: 2px solid #e6ebf2;
  font-variant-numeric: tabular-nums;
}
.perf-stale { margin: 0 0 12px; }
.perf-stale a { margin-left: 4px; font-weight: 600; }
.perf-metrics .pm-exempt { margin-left: 4px; }
.perf-metrics .pm-sub { margin-left: 4px; font-style: normal; font-size: 11px; color: #8a94a6; }
.perf-adjust-row input:disabled,
.perf-row input:disabled { opacity: .8; cursor: not-allowed; }
.perf-total-row td { font-size: 12px; }
.perf-total-row td:nth-child(n+4) { white-space: nowrap; }
.badge-idle { background: #f1f3f5; color: #6b7280; }
.badge-ok { background: #e6f7ef; color: #188a55; }
.badge-warn { background: #fff4e5; color: #b25e00; }
.pay-ackline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; font-size: 12px; }
.link-btn { background: none; border: 0; padding: 0 0 0 6px; color: #1f6feb; font-size: 12px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: #b9c0cc; cursor: not-allowed; text-decoration: none; }
.link-btn-warn { color: #b26a00; }
.pay-ackchip { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.pay-ops { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.pay-team-tb { font-size: 12px; }
.pay-team-tb th, .pay-team-tb td { padding: 8px 6px; }
.pay-team-tb th:first-child, .pay-team-tb td:first-child,
.pay-team-tb th:last-child, .pay-team-tb td:last-child { white-space: nowrap; }
.pay-team-tb th:first-child, .pay-team-tb td:first-child { padding-left: 12px; }
.pay-team-tb th:last-child, .pay-team-tb td:last-child { padding-right: 12px; }
.cal-save { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.cal-dirty { font-size: 12px; color: #b25e00; background: #fff4e5; border-radius: 999px; padding: 4px 10px; }

/* v7.27.104 组长分红页：口径说明折叠 */
.tip-fold{margin-top:6px}
.tip-fold>summary{cursor:pointer;font-size:13px;color:#5b6b7c;padding:6px 0;list-style:none}
.tip-fold>summary::-webkit-details-marker{display:none}
.tip-fold>summary::before{content:'▸ ';color:#8a99a8}
.tip-fold[open]>summary::before{content:'▾ '}
.tip-fold>summary:hover{color:#1f6feb}
.tip-fold .tip{margin:4px 0 0}


/* v7.27.105 组长分红页：五张 KPI 一行铺开 */
.cards.cards-5{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.cards.cards-5 .card{min-width:0;padding:14px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.cards.cards-5 .card .num{font-size:22px;white-space:nowrap;line-height:1.25;font-variant-numeric:tabular-nums}
.cards.cards-5 .card .lbl{margin-top:8px;line-height:1.3;white-space:nowrap;font-size:13px;color:#8a94a6}
@media (max-width:900px){.cards.cards-5{grid-template-columns:repeat(2,1fr)}}


/* v7.27.106 组长分红：各月分红表精修 */
.lb-hist th { font-size: 12px; font-weight: 600; color: #6b7a8c; text-align: right; padding: 10px 12px; background: #f8fafd; border-bottom: 1px solid #e6ebf2; }
.lb-hist th:first-child { text-align: left; }
.lb-hist th.col-c { text-align: center; }
.lb-hist th small { display: block; font-weight: 400; font-size: 10.5px; line-height: 1.2; color: #97a4b4; }
.lb-hist td { text-align: right; padding: 11px 12px; border-bottom: 1px solid #f2f5f9; font-variant-numeric: tabular-nums; }
.lb-hist td:first-child { text-align: left; }
.lb-hist td.col-c { text-align: center; }
.lb-hist td.col-b { color: #12805c; font-weight: 700; }
.lb-hist tbody tr:hover td { background: #fafcff; }
.lb-hist tr.cur td { background: #eef5ff; }
.lb-hist tr.cur td:first-child { box-shadow: inset 3px 0 0 #1f6feb; }
.lb-hist tr.cur:hover td { background: #e8f1ff; }
.lb-hist td.col-m a { color: #1f2d3d; font-weight: 600; text-decoration: none; }
.lb-hist td.col-m a:hover { color: #1f6feb; }
.lb-hist .chip-cur { margin-left: 6px; padding: 1px 6px; border-radius: 9px; background: #1f6feb; color: #fff; font-size: 10.5px; font-weight: 600; }
.lb-hist td.miss { text-align: left; color: #8a97a8; font-size: 12.5px; }
.lb-hist tfoot td { background: #f8fafd; border-top: 1px solid #e6ebf2; border-bottom: none; font-weight: 600; padding: 12px; }
.lb-hist tfoot td.col-b { color: #12805c; font-size: 15px; }
.lb-hist th.col-c, .lb-hist td.col-c { white-space: nowrap; }
.lb-hist th.col-m, .lb-hist td.col-m { white-space: nowrap; }

.lb-hist th, .lb-hist td { padding-left: 8px; padding-right: 8px; }
.lb-hist th { font-size: 11.5px; }

.lb-hist tr.cur td.col-m a::after { content: '正在查看'; margin-left: 6px; padding: 1px 6px; border-radius: 9px; background: #e8f0fe; color: #1f6feb; font-size: 10.5px; font-weight: 600; }


/* v7.27.110 组长分红：人工「已发」记账标记 */
.lb-hist th.col-mk, .lb-hist td.col-mk { white-space: nowrap; }
.lb-hist form.mk-form { margin: 0; display: inline; }
.mk-btn { border: 1px dashed #c9d3e0; background: #fff; color: #7a899a; font-size: 11.5px; padding: 3px 9px; border-radius: 12px; cursor: pointer; line-height: 1.4; }
.mk-btn:hover { border-color: #1f6feb; color: #1f6feb; background: #f4f8ff; }
.mk-chip { border: 1px solid #b7e0cd; background: #eaf7f1; color: #12805c; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 12px; cursor: pointer; line-height: 1.4; }
.mk-chip:hover { border-color: #f0c0ba; background: #fdeeec; color: #b3261e; }
.mk-chip-static { display: inline-block; border: 1px solid #b7e0cd; background: #eaf7f1; color: #12805c; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 12px; }
.lb-hist tr.cur td.col-m a::after { content: '当前'; }


/* v7.27.113 工资结算：发放改记账标记（标记已发/已发 · 撤销） */
.pay-ops .mk-btn,.pay-ops .mk-chip{font-size:12.5px;padding:4px 12px}


/* v7.27.116 我的工资条：确认/已发也用同一枚小标签或小按钮 */
.pay-ackline .mk-btn,.pay-ackline .mk-chip-static{font-size:12px;padding:3px 10px}


/* v7.27.117 工资结算卡片：确认按钮与提示靠在一起 */
.pay-ackwrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap}


/* v7.27.118 工资结算卡片：状态控件挪到姓名行，去掉团队名 */
.pay-who .pay-ops{margin:0;padding:0;border:0;gap:6px}
.pay-who .pay-ops .mk-btn,.pay-who .pay-ops .mk-chip{font-size:11.5px;padding:2px 9px}


/* v7.27.119 我的工资条：状态控件挪到月份行，去掉团队名 */
.pay-who .mk-btn,.pay-who .mk-chip-static{font-size:11.5px;padding:2px 9px}


/* v7.28 线索列表：状态徽标不换行 */
.tb .badge{white-space:nowrap}
.tb td .badge{display:inline-block}


/* v7.29 线索列表：客户名不竖排换行 */
.tb td.lead-cust{white-space:nowrap;min-width:118px}
.tb td.lead-cust a,.tb td.lead-cust .muted{white-space:nowrap}

/* v7.30 便签：圆形打勾、正文换行、做完划掉 */
.note-tb td{vertical-align:top}
.note-check{width:24px;height:24px;border-radius:50%;border:1.5px solid #c9ced8;background:#fff;color:#fff;font-size:13px;line-height:1;cursor:pointer;padding:0;margin-top:2px}
.note-check:hover{border-color:#3b82f6}
.note-check.on{background:#22a06b;border-color:#22a06b}
.note-text{line-height:1.65;word-break:break-word}
.note-text.is-clamp{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
.note-text.is-clamp:hover{color:#2563c9}
.note-text.is-done,
.nrow.is-done .note-text{color:#98a1b0;text-decoration:line-through}
.note-tb td .badge{white-space:nowrap}

/* v7.31 便签小窗口（Win 便笺风格） */
.nw{position:fixed;z-index:9000;right:18px;bottom:18px;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
.nw-bubble{position:relative;width:54px;height:54px;border-radius:12px;border:1px solid #e2cf63;background:linear-gradient(180deg,#fff9b8,#ffef8f);color:#6b5a00;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 6px 18px rgba(120,100,0,.22);letter-spacing:1px}
.nw-bubble:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(120,100,0,.28)}
.nw-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;line-height:18px;padding:0 4px;border-radius:9px;background:#e04f4f;color:#fff;font-size:11px;font-weight:600;text-align:center}
.nw-count[hidden]{display:none}
.nw-panel{position:fixed;display:flex;flex-direction:column;background:#ffe89a;border:1px solid #e6d572;border-radius:8px;box-shadow:0 14px 38px rgba(90,75,0,.28);overflow:hidden}
.nw-panel[hidden]{display:none}
.nw-panel.is-min .nw-editor,.nw-panel.is-min .nw-bar,.nw-panel.is-min .nw-list,.nw-panel.is-min .nw-grip{display:none}
.nw-head{display:flex;align-items:center;justify-content:space-between;padding:6px 8px 6px 12px;background:#f7ea8e;border-bottom:1px solid #e6d572;cursor:move;user-select:none}
.nw-head>span{font-size:13px;font-weight:600;color:#6b5a00;letter-spacing:.5px}
.nw-tools{display:flex;align-items:center;gap:2px}
.nw-tools a,.nw-tools button{border:0;background:transparent;color:#7a6a10;font-size:12px;cursor:pointer;padding:2px 5px;border-radius:4px;text-decoration:none}
.nw-tools a:hover,.nw-tools button:hover{background:rgba(0,0,0,.06)}
.nw-editor{flex:0 0 auto;margin:8px 8px 0;border:1px solid #e6d572;border-radius:6px;background:#fffdf0;overflow:hidden}
.nw-editor:focus-within{border-color:#c9b53f;background:#fffef7}
.nw-input{display:block;padding:6px 9px;min-height:58px;max-height:150px;overflow:auto;color:#3b3505;font-size:13px;line-height:1.6;font-family:inherit;outline:none}
.nw-bar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:6px 8px 8px}
.nw-tip{font-size:11px;color:#9a8a3a}
.nw-save{border:1px solid #d9c75a;background:#fff3a6;color:#5c4d00;border-radius:6px;padding:4px 12px;font-size:12px;cursor:pointer}
.nw-save:hover{background:#ffec84}
.nw-save:disabled{opacity:.6;cursor:default}
.nw-list{flex:1 1 auto;overflow:auto;padding:0 6px 8px}
.nw-empty{padding:18px 8px;text-align:center;color:#a3975a;font-size:12px}
.nw-item{display:flex;gap:8px;align-items:flex-start;padding:7px 6px;border-bottom:1px dashed rgba(180,160,60,.45);font-size:13px;color:#3b3505}
.nw-item:last-child{border-bottom:0}
.nw-dot{flex:0 0 auto;width:16px;height:16px;margin-top:2px;border-radius:50%;border:1.4px solid #b8a63f;background:#fffdf0;cursor:pointer;padding:0}
.nw-dot:hover{border-color:#22a06b}
.nw-text{flex:1 1 auto;line-height:1.55;word-break:break-word}
.nw-pin{font-size:11px;color:#a26500;background:#ffe9a8;border-radius:4px;padding:0 4px;margin-right:4px;font-weight:600}
.nw-due{flex:0 0 auto;font-size:11px;color:#8a7a2a;margin-top:2px}
.nw-del{flex:0 0 auto;border:0;background:transparent;color:#b9a94a;font-size:15px;line-height:1;cursor:pointer;padding:0 2px;visibility:hidden}
.nw-item:hover .nw-del{visibility:visible}
.nw-del:hover{color:#d33}
.nw-grip{position:absolute;right:0;bottom:0;width:14px;height:14px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 50%,rgba(150,130,30,.5) 50%)}

/* 拖动时别选中页面文字 */
body.nw-dragging{user-select:none}
.nw-panel{user-select:none}
.nw-text,.nw-input{user-select:text}

/* v7.32 便签富文本：加粗 / 斜体 / 下划线 / 删除线 / 字号 / 颜色 */
.ne{--ne-border:#dfe4ec;--ne-ink:#4a5260}
.ne-bar{display:flex;align-items:center;gap:1px;flex-wrap:wrap;padding:3px 4px;background:#f7f8fa;border-bottom:1px solid var(--ne-border)}
.ne-b{min-width:24px;height:24px;padding:0 4px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--ne-ink);font-size:12px;line-height:1;cursor:pointer;font-family:inherit}
.ne-b:hover{background:#e9edf4;border-color:#dbe1ea}
.ne-b:active{background:#dfe6f1}
.ne-sz{font-size:11px;color:#5b6472}
.ne-sep{width:1px;height:14px;margin:0 3px;background:#dfe4ec}
.ne-colors{display:inline-flex;align-items:center;gap:3px;margin-left:2px}
.ne-c{width:15px;height:15px;padding:0;border:1px solid rgba(0,0,0,.15);border-radius:50%;cursor:pointer}
.ne-c:hover{transform:scale(1.15);box-shadow:0 0 0 2px rgba(37,99,201,.25)}
.ne-body{outline:none;word-break:break-word}
.ne-body:empty:before{content:attr(data-placeholder);color:#a8b0bd;pointer-events:none}
.ne-body div,.ne-body p{margin:0}
.ne-body ul,.ne-body ol{margin:2px 0;padding-left:20px}
.ne-page .ne-body{min-height:110px;padding:9px 11px;line-height:1.7}
.ne-page .ne-bar{background:#fbfcfe}
.ne-page .ne-b{height:26px;min-width:26px}
.note-text div,.note-text p,.nw-text div,.nw-text p{margin:0}
.note-text ul,.note-text ol,.nw-text ul,.nw-text ol{margin:2px 0;padding-left:18px}

/* 小窗里的工具条压黄底，跟便笺配色一致 */
.nw-nebar{background:transparent;border-bottom:0;padding:3px 5px;gap:0}
.nw-nebar .ne-b{min-width:21px;height:22px;padding:0 3px;font-size:11px;color:#6b5a00}
.nw-nebar .ne-b:hover{background:rgba(0,0,0,.06);border-color:#e0d07a}
.nw-nebar .ne-sep{height:12px;margin:0 2px;background:#e0d07a}
.nw-nebar .ne-colors{gap:2px;margin-left:1px}
.nw-nebar .ne-c{width:13px;height:13px;border-color:rgba(120,100,0,.25)}
/* 字号三档 + 插图：窗口窄时工具条自动换行，不挤掉色板 */
.nw-nebar{flex-wrap:wrap;row-gap:2px}
.ne-sizes{display:inline-flex;align-items:center;gap:0}
.nw-nebar .ne-sz{font-size:10px;padding:0 2px;min-width:16px}
.nw-nebar .ne-sz[data-size="12"]{font-size:9px}
.nw-nebar .ne-sz[data-size="17"]{font-size:12px}
.nw-nebar .ne-sz[data-size="21"]{font-size:13px;padding:0 1px}
.nw-win .nw-body img{max-width:100%;height:auto;display:block;margin:4px 0;border-radius:3px;border:1px solid rgba(0,0,0,.06)}
.nw-lcard img{max-width:100%;height:auto;border-radius:3px}

/* v7.33 便签列表：按置顶/逾期/今天/以后/没排期分组，行内显示日期人话 + 操作 */
.nlist{display:flex;flex-direction:column;gap:14px}
.nlist-gh{display:flex;align-items:center;gap:6px;margin:0 0 6px 2px;font-size:12px;color:#6b7280}
.nlist-gt{font-weight:600;letter-spacing:.3px}
.nlist-gc{min-width:16px;height:16px;line-height:16px;padding:0 5px;border-radius:8px;background:#eef1f6;color:#5b6472;font-size:11px;text-align:center}
.nlist-g.is-late .nlist-gt{color:#c0392b}
.nlist-g.is-today .nlist-gt{color:#b45309}
.nlist-g.is-pin .nlist-gt{color:#a26500}
.nrow{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;margin-bottom:8px;background:#fff;border:1px solid #e8ebf1;border-radius:10px;transition:border-color .15s,box-shadow .15s}
.nrow:last-child{margin-bottom:0}
.nrow:hover{border-color:#d7ddea;box-shadow:0 2px 10px rgba(35,45,70,.06)}
.nrow.is-late{border-left:3px solid #e05a4f;padding-left:11px}
.nrow.is-done{background:#fafbfc}
.nrow-check{flex:0 0 auto;margin-top:1px}
.nrow-main{flex:1 1 auto;min-width:0}
.nrow-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:12px;color:#8b93a3}
.ndue{display:inline-block;padding:1px 7px;border-radius:9px;font-size:11px;line-height:17px;background:#f3f5f9;color:#6b7484;white-space:nowrap}
.ndue.late{background:#fdecea;color:#c0392b}
.ndue.today{background:#fff4e0;color:#b45309}
.ndue.soon{background:#eef4ff;color:#2563c9}
.ndue.none{background:#f3f5f9;color:#98a1b0}
.ndue.pin{background:#fff3cf;color:#a26500}
.ndue.done{background:#eef7f1;color:#5f8a6d}
.ntime{color:#a6adb9}
.nrow-acts{flex:0 0 auto;display:flex;align-items:center;gap:2px;opacity:.5;transition:opacity .15s}
.nrow:hover .nrow-acts,.nrow:focus-within .nrow-acts{opacity:1}
.nact{border:0;background:transparent;color:#6b7484;font-size:12px;padding:3px 6px;border-radius:5px;cursor:pointer;text-decoration:none;white-space:nowrap;font-family:inherit}
.nact:hover{background:#eef2f8;color:#2563c9}
.nact.is-del:hover{background:#fdecea;color:#c0392b}
@media (hover:none){.nrow-acts{opacity:1}}
.nw-due.neg{color:#c0392b;font-weight:600}
.nw-due.today{color:#b45309;font-weight:600}

/* v7.34 便签就当小纸条：不做待办，只留写、看、改、撕 */
.ne-note .ne-bar{background:#fbf8e2;border-bottom-color:#eee2a8}
.ne-note .ne-body{min-height:92px;padding:10px 12px;line-height:1.7;background:#fffdf0}
.note-actions{display:flex;gap:8px;margin-top:10px}
.ncards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;align-items:start}
.ncard{background:#fffbe2;border:1px solid #efe29b;border-radius:8px;padding:12px 14px 8px;box-shadow:0 1px 2px rgba(120,100,0,.06);transition:box-shadow .15s,border-color .15s}
.ncard:hover{border-color:#e6d572;box-shadow:0 3px 12px rgba(120,100,0,.13)}
.ncard .note-text{font-size:14px;color:#3b3505}
.ncard .note-text.is-clamp{-webkit-line-clamp:6}
.ncard-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font-size:11px;color:#a3975a}
.ncard-acts{display:flex;align-items:center;gap:2px;opacity:.35;transition:opacity .15s}
.ncard:hover .ncard-acts,.ncard:focus-within .ncard-acts{opacity:1}
.ncard .nact{color:#8a7a2a}
.ncard .nact:hover{background:rgba(120,100,0,.08);color:#5c4d00}
.ncard .nact.is-del:hover{background:#fdecea;color:#c0392b}

/* 小窗列表：一张一条，只有内容和时间 */
.nw-item{display:block;padding:8px 6px}
.nw-meta{display:flex;align-items:center;justify-content:space-between;margin-top:3px;font-size:11px;color:#a3975a}
.nw-del{border:0;background:transparent;color:#b9a94a;font-size:11px;cursor:pointer;padding:0 2px;visibility:hidden;font-family:inherit}
.nw-item:hover .nw-del{visibility:visible}
.nw-del:hover{color:#d33}
/* 划掉：做完的事直接在纸条上画一道线 */
.nw-act{border:0;background:transparent;color:#b9a94a;font-size:11px;cursor:pointer;padding:0 2px;visibility:hidden;font-family:inherit;margin-left:4px}
.nw-item:hover .nw-act{visibility:visible}
.nw-act:hover{color:#5c4d00}
.nw-item.is-done .nw-text{color:#a3975a;text-decoration:line-through}
.ncard .note-text.is-done{color:#98a1b0;text-decoration:line-through}
.ncard.is-done{background:#f8f6ec;border-color:#e6e1cd}
@media (hover:none){.ncard-acts{opacity:1}.nw-del{visibility:visible}.nw-act{visibility:visible}}

/* v7.37 便笺式便签：一张便签一个窗口，直接打字、停手自动保存 */
.nw-wins{position:fixed;inset:0;z-index:8990;pointer-events:none}
.nw-wins[hidden]{display:none}
.nw-win{position:absolute;display:flex;flex-direction:column;pointer-events:auto;background:var(--nw-bg,#fff7d1);border:1px solid rgba(0,0,0,.10);border-radius:8px;box-shadow:0 12px 32px rgba(90,75,0,.24);overflow:hidden;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
.nw-win:focus-within{box-shadow:0 14px 38px rgba(90,75,0,.32)}
.nw-win .nw-head{display:flex;align-items:center;gap:2px;justify-content:flex-start;padding:3px 5px;background:var(--nw-head,#fff2ab);border-bottom:1px solid rgba(0,0,0,.07);cursor:move;user-select:none}
.nw-win .nw-head>span{font-size:11px;font-weight:400;color:#8f8f8f;letter-spacing:0}
.nw-win .nw-time{flex:0 0 auto}
.nw-win .nw-saved{flex:1 1 auto;text-align:right;white-space:nowrap;overflow:hidden;padding-right:2px}
.nw-ib{border:0;background:transparent;color:#6b5a00;font-size:15px;line-height:1;cursor:pointer;padding:2px 5px;border-radius:4px;font-family:inherit;text-decoration:none}
.nw-ib:hover{background:rgba(0,0,0,.07)}
.nw-win .nw-body{flex:1 1 auto;overflow:auto;padding:10px 12px;outline:none;color:#333;font-size:14px;line-height:1.7;word-break:break-word;min-height:40px;user-select:text}
.nw-win .nw-body:empty:before{content:attr(data-placeholder);color:#a9a9a9;pointer-events:none}
.nw-win .nw-body div,.nw-win .nw-body p{margin:0}
.nw-win .nw-body ul,.nw-win .nw-body ol{margin:2px 0;padding-left:20px}
.nw-win .ne-bar{flex:0 0 auto;border-bottom:0;border-top:0;background:transparent;gap:0}
.nw-win .ne-b{color:#5a5a5a}
.nw-win .ne-b:hover{background:rgba(0,0,0,.07);border-color:transparent}
.nw-win .ne-sep{background:rgba(0,0,0,.14)}
/* 深灰纸：字反白，跟截图里的暗色便签一致 */
.nw-win.is-dark .nw-body{color:#fff}
.nw-win.is-dark .nw-body:empty:before{color:rgba(255,255,255,.55)}
.nw-win.is-dark .nw-head>span{color:rgba(255,255,255,.72)}
.nw-win.is-dark .nw-ib{color:rgba(255,255,255,.85)}
.nw-win.is-dark .nw-ib:hover{background:rgba(255,255,255,.16)}
.nw-win.is-dark .ne-b{color:rgba(255,255,255,.9)}
.nw-win.is-dark .ne-b:hover{background:rgba(255,255,255,.16);border-color:transparent}
.nw-win.is-dark .ne-sep{background:rgba(255,255,255,.28)}
.nw-win.is-dark.is-done .nw-body{color:rgba(255,255,255,.66)}
.nw-win .nw-grip{position:absolute;right:0;bottom:0;width:14px;height:14px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 50%,rgba(150,130,30,.45) 50%)}
.nw-win.is-done .nw-body{color:#a3975a;text-decoration:line-through}
.nw-bubble.is-on{background:linear-gradient(180deg,#fff3a0,#ffe86a);border-color:#d8c44f}

/* ===== v7.38 便笺右上角「≡」菜单 + 便签列表（照 Windows 便笺） ===== */
.nw-menu{position:fixed;z-index:9600;opacity:1 !important;min-width:196px;padding:0;background:#fff;border-radius:8px;box-shadow:0 14px 38px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.05);font-family:"Segoe UI","Microsoft YaHei",sans-serif;overflow:hidden}
.nw-menu .nw-colors{display:flex;padding:0;gap:0;background:#fff;border-bottom:1px solid #eceff3}
.nw-menu .nw-swatch{flex:1 1 0;min-width:0;width:auto;height:34px;border:0;padding:0;cursor:pointer;display:block;border-radius:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.nw-menu .nw-swatch:first-child{border-radius:7px 0 0 0}
.nw-menu .nw-swatch:last-child{border-radius:0 7px 0 0}
.nw-menu .nw-swatch:hover{transform:scale(1.12);position:relative;z-index:1;border-radius:4px}
.nw-menu .nw-swatch.is-on{box-shadow:inset 0 0 0 1px rgba(0,0,0,.10)}
.nw-menu .nw-swatch.is-on::after{content:"✓";display:flex;align-items:center;justify-content:center;height:100%;font-size:13px;line-height:1;color:#3d3506;font-weight:700}
.nw-menu .nw-mi{display:flex;align-items:center;gap:11px;width:100%;padding:11px 14px;border:0;background:transparent;color:#26313d;font-size:13px;font-family:inherit;text-align:left;cursor:pointer;line-height:1}
.nw-menu .nw-mi svg{flex:0 0 auto;color:#5b6673}
.nw-menu .nw-mi:hover{background:#f3f5f8}
.nw-menu .nw-mi.is-del{color:#d93025;border-top:1px solid #eceff3}
.nw-menu .nw-mi.is-del svg{color:#d93025}
/* 菜单落在便签纸里：贴着头部下沿、右边留 8px，宽度跟着窗口走 */
.nw-win .nw-menu{position:absolute;left:auto;right:8px;top:32px;bottom:auto;width:min(235px,calc(100% - 16px));min-width:0;max-height:calc(100% - 40px);overflow:auto;z-index:60}
.nw-menu .nw-mi.is-del:hover{background:#fdeeec}

.nw-lister{position:fixed;z-index:9550;right:22px;top:76px;bottom:66px;width:352px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;background:#fff;border-radius:10px;box-shadow:0 20px 54px rgba(0,0,0,.24),0 0 0 1px rgba(0,0,0,.05);font-family:"Segoe UI","Microsoft YaHei",sans-serif;overflow:hidden}
.nw-ls-h{display:flex;align-items:center;justify-content:space-between;padding:11px 10px 7px 16px;font-size:17px;font-weight:700;color:#1f2d3d}
.nw-ls-h .nw-ib{width:28px;height:28px;font-size:15px;color:#5b6673}
.nw-ls-h .nw-ib:hover{background:#f1f3f6}
.nw-ls-s{padding:0 14px 10px}
.nw-ls-s input{width:100%;box-sizing:border-box;border:0;background:#eef0f3;border-radius:6px;padding:9px 12px;font-size:13px;color:#26313d;outline:none;font-family:inherit}
.nw-ls-s input:focus{background:#e8ebef}
.nw-ls-body{flex:1 1 auto;overflow-y:auto;padding:2px 14px 16px;display:flex;flex-direction:column;gap:10px}
.nw-ls-body .nw-empty{color:#9aa3ae;font-size:13px;text-align:center;padding:28px 0}
.nw-lcard{position:relative;display:block;width:100%;box-sizing:border-box;text-align:left;border:0;background:var(--nw-bg,#fff7d1);border-radius:4px;padding:24px 13px 14px;min-height:92px;max-height:176px;overflow:hidden;cursor:pointer;font-family:inherit;box-shadow:0 1px 2px rgba(120,100,0,.10);transition:box-shadow .12s,transform .12s}
.nw-lcard:hover{box-shadow:0 3px 10px rgba(120,100,0,.18);transform:translateY(-1px)}
.nw-lcard::after{content:"";position:absolute;left:0;right:0;bottom:0;height:26px;background:linear-gradient(rgba(255,255,255,0),var(--nw-bg,#fff7d1) 70%);pointer-events:none}
.nw-lcard .nw-ltime{position:absolute;right:11px;top:7px;font-size:11px;color:#8f8f8f;transition:opacity .12s}
.nw-lcard .nw-lmore{position:absolute;right:74px;top:3px;z-index:2;border:0;background:transparent;color:#7d7346;font-size:15px;line-height:1;padding:1px 5px;border-radius:4px;cursor:pointer;opacity:.55;font-family:inherit}
.nw-lcard:hover .nw-lmore{opacity:1}
.nw-lcard .nw-lmore:hover{background:rgba(0,0,0,.08)}
.nw-lcard .nw-ltext{font-size:13px;line-height:1.62;color:#333;word-break:break-word}
.nw-lcard .nw-ltext ul,.nw-lcard .nw-ltext ol{margin:2px 0;padding-left:18px}
.nw-lcard .nw-ltext p,.nw-lcard .nw-ltext div{margin:0}
.nw-lcard.is-done .nw-ltext{color:#a3975a;text-decoration:line-through}
.nw-lcard.is-done .nw-ltime{color:#bdb49b}
.nw-lcard.is-dark .nw-ltext{color:#fff}
.nw-lcard.is-dark .nw-ltime{color:rgba(255,255,255,.7)}
.nw-lcard.is-dark .nw-lmore{color:rgba(255,255,255,.85)}
.nw-lcard.is-dark .nw-lmore:hover{background:rgba(255,255,255,.18)}
.nw-lcard.is-dark.is-done .nw-ltext{color:rgba(255,255,255,.62)}

/* v7.35 任务：管理员 / 组长 点对点发一条，员工在「任务」里看到并点完成 */
.tcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px;align-items:start}
.tcard{background:#fff;border:1px solid #e6e9ef;border-radius:8px;padding:12px 14px 10px;display:flex;flex-direction:column;min-height:96px}
.tcard.done{background:#fafbfc;border-color:#e9edf2}
.tcard-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#8a919d;margin-bottom:8px}
.tcard-h .badge{margin-right:0}
.tcard-h .t-time{margin-left:auto;color:#a6adb9}
.tcard-body{font-size:14px;color:#1f2d3d;line-height:1.7;flex:1 1 auto;word-break:break-word}
.tcard-body p:last-child{margin-bottom:0}
.tcard.done .tcard-body{color:#8a919d}
.tcard-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;font-size:12px;color:#a6adb9}
.tact{border:0;background:#f1f6ff;color:#2563c9;font-size:12px;padding:4px 10px;border-radius:6px;cursor:pointer;font-family:inherit;white-space:nowrap}
.tact:hover{background:#e5efff}
.tact.is-off{background:#f3f5f8;color:#6b7480}
.tact.is-off:hover{background:#eceff4}
.tact.is-del{background:transparent;color:#b6bdc8}
.tact.is-del:hover{background:#fdecea;color:#c0392b}
@media (max-width:640px){.tcards{grid-template-columns:1fr}}

/* 首页待处理 */
.todo-list{margin:0;padding:0;list-style:none}
.todo-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px dashed #efe6d2}
.todo-row:first-child{border-top:0}
.todo-row .t-name{flex:1;min-width:0}
.todo-row .t-name a{font-weight:600;color:#243040;text-decoration:none}
.todo-row .t-name a:hover{color:#2563c9}
.todo-row .t-num{font-size:20px;color:#4a5560;min-width:28px;text-align:right}
.todo-row .t-num.t-hot{color:#b3261e}
.todo-empty{margin:2px 0 0;color:#8a8f99}

/* 首页提示音按钮（铃铛图标） */
.todo-bell{display:inline-flex;align-items:center;gap:6px}
.todo-bell>svg{width:15px;height:15px;fill:currentColor;flex:0 0 auto}
.todo-bell .bell-slash{display:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.todo-bell.is-off{color:#98a1ac}
.todo-bell.is-off .bell-slash{display:inline}

/* 首页新待办小条 */
.todo-toast{position:fixed;right:18px;bottom:84px;z-index:9500;max-width:290px;padding:12px 16px;border-radius:10px;background:#fff;color:#243040;font-size:14px;line-height:1.5;box-shadow:0 10px 26px rgba(20,30,50,.18);border-left:4px solid #b3261e;opacity:0;transform:translateY(10px);transition:opacity .2s,transform .2s;pointer-events:none}
.todo-toast.on{opacity:1;transform:none}

/* 任务页时间筛选条 */
.tk-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.tk-bar .muted{margin-left:auto;font-size:12.5px}

/* 客户列表筛选：一行放下，别让「重置」单独掉行 */
.cust-filter{gap:10px 12px}
.cust-filter .field select.wide{width:200px}
.cust-filter .field select{width:118px}
.cust-filter .field input[type=text]{width:150px}

/* 日报：没有备注行时不要留空虚线框 */
.rep-notes:empty{display:none}
/* 客户筛选再收紧，按钮回到同一行 */
.cust-filter .field select.wide{width:176px}
.cust-filter .field input[type=text]{width:132px}

/* 员工表：操作列不再竖排成三条 */
.emp-tb{min-width:1000px}
.emp-tb .emp-ops-h{min-width:176px}
.emp-tb .emp-ops{flex-wrap:nowrap;min-width:176px}

/* 说明文字折叠成一行小三角，点开才看 */
.rule-note{margin:0 0 12px}
.rule-note>summary{cursor:pointer;font-size:13px;color:#1f6feb;list-style:none;user-select:none}
.rule-note>summary::-webkit-details-marker{display:none}
.rule-note>summary::before{content:"▸";display:inline-block;width:12px}
.rule-note[open]>summary::before{content:"▾"}
.rule-note p.tip{margin:6px 0 0}

/* 团队表：「移出 N 人」勾选框别把删除按钮挤出可视区 */
.tb .ops .force-del{font-size:12px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px;flex-basis:100%;margin:0}

/* 折叠新增面板收起时别占一整条高白卡 */
.add-panel{padding:8px 12px}
.add-panel details > summary{padding:5px 13px}

/* 任务卡正文超 4 行折叠 */
.tcard-body.is-clamp{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.tc-more{display:inline-block;margin:-2px 0 8px;padding:0;border:0;background:none;color:#1f6feb;font-size:13px;cursor:pointer}
.tc-more:hover{text-decoration:underline}

/* 任务页：我收到的 / 我发出的 切换 */
.tk-tabs{display:flex;gap:8px;margin:14px 0 10px}
/* 固定任务（岗位职责）：任务页顶部常驻，只读，不参与考核 */
.ft-card{background:#f6f9ff;border:1px solid #e2ebfa;border-left:3px solid #3b7ddd;border-radius:8px;padding:12px 14px;margin:4px 0 12px}
.ft-head{font-weight:600;color:#1f2d3d;font-size:14px;margin-bottom:6px}
.ft-list{margin:0;padding-left:20px;color:#3a4658;font-size:14px;line-height:1.8}
.ft-list li{margin:0}
.tk-tab{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 16px;border-radius:999px;
  border:1px solid #e3e8ef;background:#fff;color:#3b4a5a;
  font-size:13.5px;cursor:pointer;line-height:1.2;
}
.tk-tab b{font-size:13px;font-weight:600;color:#8a94a3}
.tk-tab i{font-style:normal;font-size:12px;color:#a86a00;background:#fff8e6;border-radius:999px;padding:1px 7px}
.tk-tab:hover{border-color:#c9d6ea;color:#1f6feb}
.tk-tab.is-on{background:#1f6feb;border-color:#1f6feb;color:#fff;box-shadow:0 2px 8px rgba(31,111,235,.22)}
.tk-tab.is-on b{color:#fff}
.tk-tab.is-on i{background:rgba(255,255,255,.22);color:#fff}
.tk-tab.is-on:hover{color:#fff}

/* 线索列表：需求摘要一行 */
.lead-need{font-size:12.5px;color:#7a8698;margin-top:3px;line-height:1.45;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lead-need:hover{color:#3b4a5a}


/* 线索表单：来源/意向产品——外观与下拉一致，也能直接打字 */
.form-inline .field .pick2{position:relative;display:inline-block}
.form-inline .field .pick2 input[type=text]{width:200px;padding-right:28px;background:#fff}
.pick2-btn{position:absolute;right:1px;top:1px;bottom:1px;width:26px;border:0;background:transparent;color:#8a94a6;font-size:11px;line-height:1;cursor:pointer;padding:0}
.pick2-btn:hover{color:#2563eb}
.pick2-list{position:absolute;left:0;top:100%;margin:4px 0 0;min-width:100%;max-height:220px;overflow:auto;background:#fff;border:1px solid #dfe5ee;border-radius:8px;box-shadow:0 8px 22px rgba(16,32,64,.14);padding:4px;z-index:40}
.pick2-item{padding:7px 10px;border-radius:6px;font-size:13.5px;color:#1f2d3d;cursor:pointer;white-space:nowrap}
.pick2-item:hover{background:#eef4ff;color:#2563eb}

/* 线索表单：手机/微信重复提示 */
.dup-tip{margin-top:4px;font-size:12.5px;color:#c2410c;background:#fff4e6;border:1px solid #ffd8a8;border-radius:6px;padding:3px 8px;display:inline-block}
.dup-tip[hidden]{display:none}
/* 重复录入提醒条：别人碰过我名下的线索 */
.alert-warn{background:#fff7e8;border-color:#ffd8a8;color:#b45309}
.alert-warn .dup-item{display:inline-block;margin:2px 12px 2px 0}
.alert-warn .dup-item a{color:#b45309;font-weight:600;text-decoration:underline}
.alert-warn .dup-item .muted{color:#c08a4a}
.dup-ack{background:none;border:1px solid #e0b072;color:#b45309;border-radius:5px;padding:1px 9px;font-size:12.5px;cursor:pointer;margin-left:4px}
.dup-ack:hover{background:#fdefd9}

/* ===== 切换账号（管理员） ===== */
.su-bar{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap;background:#fff4e0;border-bottom:1px solid #f0d9a8;color:#8a5a00;font-size:13px;padding:7px 14px}
.su-bar b{color:#6b4400}
.su-back{display:inline;margin:0}
.su-back button{border:1px solid #d9b46a;background:#fff;color:#8a5a00;font:inherit;font-size:12px;padding:2px 10px;border-radius:999px;cursor:pointer}
.su-back button:hover{background:#ffefd2}
.su-modal{position:fixed;inset:0;z-index:9000;display:flex;align-items:flex-start;justify-content:center;padding:9vh 16px 16px}
.su-modal[hidden]{display:none}
.su-mask{position:absolute;inset:0;background:rgba(20,18,10,.38)}
.su-box{position:relative;width:100%;max-width:430px;background:#fff;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.22);overflow:hidden;display:flex;flex-direction:column;max-height:74vh}
.su-h{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px}
.su-h b{font-size:15px}
.su-x{border:0;background:transparent;font-size:20px;line-height:1;color:#8b8b8b;cursor:pointer;padding:0 4px}
.su-x:hover{color:#333}
.su-s{padding:0 16px 10px}
.su-s input{width:100%;box-sizing:border-box;border:1px solid #e3e3e3;border-radius:8px;padding:8px 11px;font:inherit;font-size:13px;background:#f7f7f5}
.su-s input:focus{outline:none;border-color:#c9b98a;background:#fff}
.su-list{overflow:auto;padding:0 8px 8px}
.su-item{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;text-align:left;border:0;background:transparent;padding:9px 8px;border-radius:8px;cursor:pointer;font-family:inherit}
.su-item:hover{background:#f6f4ec}
.su-item.is-cur{background:#fbf6e6}
.su-item[hidden]{display:none}
.su-av{flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#efe7cf;color:#6b5a20;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600}
.su-t{display:flex;flex-direction:column;line-height:1.35;min-width:0}
.su-t b{font-size:13.5px;font-weight:600;color:#2c2c2c}
.su-t i{font-style:normal;font-size:11.5px;color:#8c8c8c}
.su-tip{padding:8px 16px 13px;font-size:11.5px;color:#9a9a9a;border-top:1px solid #f3f1ea}

/* v20261205 汇总页 6 张 KPI 卡片等分 */
.cards.cards-6{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.cards.cards-6 .card{min-width:0;padding:14px}
.cards.cards-6 .card .num{font-size:22px;white-space:nowrap}
@media (max-width:900px){.cards.cards-6{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.cards.cards-6{grid-template-columns:repeat(2,1fr)}}

/* v20261205 直播型与多列表单 */
.rep-lives{margin-top:10px;border-top:1px dashed #dfe5ee;padding-top:10px}
.rep-live-row{display:grid;grid-template-columns:52px 1.2fr .7fr .8fr .9fr 1.6fr;gap:8px;align-items:center;margin-bottom:8px}
.rep-live-row label{font-size:13px;color:#555;text-align:right}
.rep-live-row input{width:100%;min-width:0;padding:7px 9px;border:1px solid #d0d7e2;border-radius:6px;font-size:13px}
.rep-cell.rep-desc{grid-column:span 2}
.rep-desc input{width:100%}
/* v20261205t6 数量型/说明型两列铺满 */
.rep-block[data-type="count"] .rep-grid{grid-template-columns:180px 1fr}
.rep-block[data-type="count"] .rep-cell.rep-desc{grid-column:auto}
.rep-block[data-type="text"] .rep-grid{grid-template-columns:1fr 1fr}
.rep-block[data-type="text"] .rep-cell.rep-desc{grid-column:auto}

/* v20261205t7 说明型富文本（可粘截图） */
.rep-cell.rep-rich{grid-column:1 / -1;display:block}
.rep-cell.rep-rich .rt-edit{min-height:150px}
.rep-rich-view{margin:0}
.rep-rich-view p{margin:0 0 4px}
.rep-rich-view p:last-child{margin-bottom:0}
.rep-rich-view img{max-width:100%;height:auto;display:block;margin:6px 0;border-radius:6px;border:1px solid #e3e8ef}
.rep-rich-view ul,.rep-rich-view ol{margin:0 0 4px;padding-left:22px}
/* v7.31 财务页收入明细：9 列 + 删除按钮，压紧不横向滚动 */
.tb-wrap .tb.tb-fin-income{min-width:0}
.tb-fin-income th,.tb-fin-income td{padding:8px 8px;font-size:12.5px}
.tb-fin-income th{white-space:nowrap}
.tb-fin-income td:nth-child(2){max-width:150px}
.tb-fin-income td:nth-child(4),.tb-fin-income td:nth-child(5){max-width:96px}
.tb-fin-income td:last-child{white-space:nowrap}

/* v7.32 绩效表：横向滚动时首列（姓名）固定，不出现半个字 */
.tb-wrap .perf-tb th:first-child{position:sticky;left:0;z-index:3;background:#f7f9fc;box-shadow:1px 0 0 #e3e8ef}
.tb-wrap .perf-tb td:first-child{position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 0 #eef1f6}
.tb-wrap .perf-tb tr:hover td:first-child{background:#fafcff}
