/* admin.css 冲电怪外勤管理后台 · 亮色科技主题 Quantum Light */
:root {
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --surface-2: #F1F5FC;
  --line: rgba(30, 80, 180, 0.10);
  --line-strong: rgba(30, 80, 180, 0.22);
  --txt: #0F1B33;
  --txt-2: #5A6C93;
  --txt-3: #94A3BF;
  --accent: #0EA5E9;
  --accent-2: #2563EB;
  --ok: #16A34A;
  --warn: #D97706;
  --danger: #DC2626;
  --glow: 0 0 18px rgba(14, 165, 233, 0.20);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--txt);
  background: var(--bg);
}

.hidden { display: none !important; }

.num { font-family: 'DIN Alternate', 'JetBrains Mono', 'Menlo', monospace; font-variant-numeric: tabular-nums; }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #E3EEFF 0%, #F4F7FC 60%);
}
.login-box {
  width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(23, 79, 170, 0.10);
  text-align: center;
}
.login-logo {
  width: 72px;
  height: 72px;
  line-height: 72px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--accent);
  font-size: 32px;
  font-weight: 700;
}
.login-box h1 { font-size: 22px; color: var(--txt); }
.login-sub { font-size: 12px; color: var(--txt-2); margin: 8px 0 28px; }
.login-box input {
  width: 100%;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--txt);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-box input::placeholder { color: var(--txt-3); }
.login-box input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.login-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #22C1F2 0%, #2563EB 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  transition: filter 0.15s ease;
}
.login-btn:hover { filter: brightness(1.08); }
.login-tip { font-size: 12px; color: var(--txt-3); margin-top: 16px; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }

/* ===== 侧边栏（深色设计，参照用户设计稿）===== */
.sidebar {
  width: 224px;
  background: #1f2228;
  color: #aeb4bd;
  display: flex;
  flex-direction: column;
  padding: 18px 0 14px;
  position: fixed;
  top: 0; bottom: 0; left: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.brand::after { display: none; }
.brand-logo {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #f0574a, #d63a2e);
  color: #fff; font-size: 19px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(240, 87, 74, 0.35);
}
.brand-txt b { display: block; font-size: 18px; font-weight: 700; color: #fff; letter-spacing: 0.02em; line-height: 1.25; }
.brand-txt i { display: block; font-style: normal; font-size: 11px; color: #8b92a1; margin-top: 1px; letter-spacing: 0.06em; }
.brand-sub { display: none; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 10px 0 8px; margin-top: 8px; }
.sidebar nav::-webkit-scrollbar { width: 5px; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 3px; }
.nav-group { margin: 0 10px 2px; }
.nav-group-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 10px; border-radius: 10px;
  font-size: 16px; font-weight: 500; color: #e8eaed;
  cursor: pointer; user-select: none;
  transition: background 0.15s ease;
}
.nav-group-head:hover { background: rgba(255, 255, 255, 0.06); }
.nav-group.active > .nav-group-head { background: rgba(255, 255, 255, 0.09); }
.ng-icon { flex: 0 0 auto; width: 21px; height: 21px; }
.ng-icon svg { width: 21px; height: 21px; display: block; }
.ng-title { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ng-arrow { flex: 0 0 auto; width: 14px; height: 14px; color: #8b92a1; transition: transform 0.18s ease; }
.ng-arrow svg { width: 14px; height: 14px; display: block; }
.nav-group.collapsed .ng-arrow { transform: rotate(-90deg); }
.nav-group.collapsed .nav-group-body { display: none; }
.nav-group-body { padding: 2px 0 4px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px 8px 13px; margin: 1px 0 1px 12px;
  color: #aeb4bd; text-decoration: none; font-size: 15px;
  cursor: pointer; border-left: none; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item::before {
  content: ''; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; opacity: 0.5;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: rgba(14, 165, 233, 0.16); color: #fff; font-weight: 600; }
.nav-item.active::before { opacity: 1; background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.8); }
.logout {
  margin: 14px 16px 0; padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #aeb4bd; font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.logout:hover { background: rgba(240, 87, 74, 0.12); border-color: rgba(240, 87, 74, 0.5); color: #ff8a7d; }

.content {
  flex: 1;
  margin-left: 224px;
  padding: 28px 32px;
}
.view { display: none; }
.view.active { display: block; }

.page-title { font-size: 22px; color: var(--txt); margin-bottom: 20px; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.page-head .page-title { margin-bottom: 0; }

/* ---------- 组件 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(23, 79, 170, 0.05);
  margin-bottom: 20px;
}
.panel h3 { font-size: 16px; color: var(--txt); margin-bottom: 16px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.panel-head h3 { font-size: 16px; color: var(--txt); margin-bottom: 0; }

.btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--txt);
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, #22C1F2 0%, #2563EB 100%); border-color: transparent; color: #FFFFFF; font-weight: 600; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.success { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.45); color: var(--ok); }
.btn.danger { background: transparent; border-color: rgba(220, 38, 38, 0.45); color: var(--danger); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt);
}
.table th { color: var(--txt-2); font-weight: 500; background: var(--surface-2); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.badge.pending { background: rgba(217, 119, 6, 0.10); color: var(--warn); }
.badge.approved { background: rgba(22, 163, 74, 0.10); color: var(--ok); }
.badge.rejected { background: rgba(220, 38, 38, 0.08); color: var(--danger); }
.badge.on { background: rgba(22, 163, 74, 0.10); color: var(--ok); }
.badge.off { background: rgba(30, 80, 180, 0.08); color: var(--txt-2); }

/* ---------- 看板 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-grid.small { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(23, 79, 170, 0.05);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.8;
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--txt); font-family: 'DIN Alternate', 'JetBrains Mono', 'Menlo', monospace; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--txt-2); margin-top: 6px; }

/* ---------- 图表（CSS柱状） ---------- */
.chart {
  display: flex;
  align-items: flex-end;
  height: 180px;
  gap: 14px;
  padding-top: 10px;
}
.chart .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.chart .bar {
  width: 60%;
  background: linear-gradient(180deg, #22C1F2, var(--accent-2));
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}
.chart .bar-label { font-size: 11px; color: var(--txt-2); margin-top: 8px; }
.chart .bar-num { font-size: 11px; color: var(--txt-3); margin-bottom: 4px; }

/* ---------- F2 报表图表布局 ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0; }
.chart-card { padding: 18px 20px; }
.chart-card h3 { font-size: 15px; color: var(--txt); margin-bottom: 14px; }
@media (max-width: 980px) { .chart-grid { grid-template-columns: 1fr; } }
/* 状态分布饼图 */
.pie-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pie { position: relative; width: 120px; height: 120px; border-radius: 50%; flex: 0 0 120px; background: #E2E8F0; box-shadow: inset 0 0 0 1px rgba(15,27,51,0.05); }
.pie-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(15,27,51,0.08); }
.pie-num { font-size: 22px; font-weight: 700; color: var(--txt); font-family: 'DIN Alternate','JetBrains Mono','Menlo',monospace; font-variant-numeric: tabular-nums; }
.pie-sub { font-size: 11px; color: var(--txt-3); }
.pie-legend { display: flex; flex-direction: column; gap: 8px; }
.pie-legend-item { display: flex; align-items: center; font-size: 13px; color: var(--txt-2); }
.pie-dot { width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
/* 趋势折线 */
.line-wrap { width: 100%; overflow: hidden; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 27, 51, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-box {
  width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(23, 79, 170, 0.18);
}
.modal-box h3 { font-size: 17px; margin-bottom: 20px; color: var(--txt); }
.modal-box input {
  width: 100%;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--txt);
  margin-bottom: 12px;
  outline: none;
}
.modal-box input::placeholder { color: var(--txt-3); }
.modal-box input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.form-row { display: flex; gap: 12px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }

.month-input {
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--txt);
}
.month-input:focus { outline: none; border-color: var(--accent); }

.track-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.track-filters .month-input { min-width: 160px; }
.staff-select { flex: 1; }

/* 安装列表缩略图 */
.install-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(30,80,180,0.12);
  margin: 2px;
  vertical-align: middle;
  transition: transform .15s ease;
}
.install-thumb:hover { transform: scale(1.08); }

/* 安装列表 · 备注列（长文本换行，避免撑破表格） */
.install-remark {
  max-width: 220px;
  white-space: normal;
  word-break: break-all;
  line-height: 1.5;
  color: var(--txt-2, #47536B);
}
/* 安装列表 · 机柜编码列（等宽字体，长编码省略不撑破表格） */
.install-code {
  max-width: 150px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 商铺列表 · 开单记录（开单时自动绑定，点「N 单」查看明细） */
.ci-cell { white-space: nowrap; }
.ci-btn {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--accent);
  cursor: pointer;
}
.ci-btn:hover { border-color: var(--accent); background: rgba(14, 165, 233, 0.10); }
.ci-sub2 { margin-left: 6px; font-size: 12px; color: var(--txt-3); }
.ci-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: -10px 0 14px;
  font-size: 12px;
  color: var(--txt-3);
}
.ci-sub b { color: var(--txt); }
.ci-addr { color: var(--txt-2); }
.ci-body {
  max-height: 60vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ci-body .ci-table { margin: 0; }
.ci-table th { position: sticky; top: 0; z-index: 2; }
.ci-thumb {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.ci-empty { padding: 28px; text-align: center; color: var(--txt-3); font-size: 13px; }

/* ================= 系统管理 ================= */
.panel-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--txt, #0F1B33);
}
.invite-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(37, 99, 235, 0.06));
  border: 1px dashed rgba(14, 165, 233, 0.38);
}
.invite-code {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #0EA5E9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  user-select: all;
}
.sys-meta { margin-top: 18px; }
.sys-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, rgba(30, 80, 180, 0.08));
  font-size: 14px;
}
.sys-row:last-child { border-bottom: none; }
.sys-label {
  width: 100px;
  color: var(--txt-3, #94A3BF);
  flex-shrink: 0;
}
.sys-val { color: var(--txt, #0F1B33); font-weight: 500; }

.pwd-form { max-width: 460px; }
.pwd-form .form-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pwd-form .rl { width: 100px; flex-shrink: 0; font-size: 14px; color: var(--txt-2, #47536B); }
.pwd-form .month-input { flex: 1; }
.pwd-tip {
  min-height: 20px;
  font-size: 13px;
  margin: 4px 0 14px;
  padding-left: 2px;
}
.pwd-tip.err { color: #DC2626; }
.pwd-tip.ok { color: #16A34A; }

/* 考勤规则 · 工作时长展示 */
.rule-duration {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #0EA5E9;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 8px;
  padding: 6px 14px;
  margin: 0;
}

/* 轨迹回放地图（真实底图 / SVG 兜底，F3） */
.map-replay { width: 100%; margin-top: 8px; }
.map-replay svg { display: block; width: 100%; }
.empty-map { text-align: center; color: var(--txt-3); padding: 48px 0; font-size: 14px; background: var(--surface-2); border-radius: 12px; }
.map-hint { font-size: 13px; color: var(--txt-2); margin-top: 10px; }

/* 腾讯地图 GL 容器：必须有明确高度，否则地图初始化失败 */
.map-replay.map-real { position: relative; height: 480px; border-radius: 12px; overflow: hidden; background: #EEF3FB; }
.map-replay.map-real .empty-map { height: 100%; display: flex; align-items: center; justify-content: center; padding: 0; }

/* 回放控制条 */
.replay-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.replay-bar .btn { padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.replay-range { flex: 1 1 auto; min-width: 120px; height: 4px; accent-color: #2563EB; cursor: pointer; }
.replay-clock { flex: 0 0 auto; min-width: 88px; text-align: right; font-size: 13px; color: var(--txt-2); font-variant-numeric: tabular-nums; }

/* 安装订单缩略图点选气泡（腾讯地图 InfoWindow 自定义内容） */
.ins-pop { display: flex; gap: 10px; align-items: flex-start; max-width: 268px; padding: 2px; }
.ins-pop-img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; display: block; flex: 0 0 auto; background: #EEF3FB; }
.ins-pop-body { min-width: 0; flex: 1 1 auto; }
.ins-pop-title { font-size: 14px; font-weight: 600; color: #0F1B33; margin-bottom: 3px; line-height: 1.3; }
.ins-pop-meta { font-size: 12px; color: #5A6C93; margin-bottom: 4px; }
.ins-pop-addr { font-size: 12px; color: #5A6C93; line-height: 1.45; word-break: break-all; }

/* 考勤规则表单（F1） */
.rule-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.rule-form .rl { flex: 0 0 92px; font-size: 14px; color: var(--txt-2); display: flex; align-items: center; }
.rule-form .form-row { align-items: center; }
.rule-form .month-input { flex: 1; min-width: 0; }
.week-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.week-label { font-size: 14px; color: var(--txt-2); margin-right: 4px; }
.week-row .wk { font-size: 14px; color: var(--txt); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.rule-tip { font-size: 13px; color: var(--txt-3); margin: 4px 0 12px; line-height: 1.6; }
.rule-list { margin: 0; padding-left: 20px; font-size: 13px; color: var(--txt-2); line-height: 1.9; }
.rule-list li::marker { color: var(--txt-3); }

.empty-row td { text-align: center; color: var(--txt-3); padding: 32px 0; }

/* 休息日徽标（报表） */
.badge.rest { background: rgba(217, 119, 6, 0.12); color: var(--warn); }

/* ---------- 休息日日历 ---------- */
.rest-cal { margin-top: 8px; max-width: 520px; }
.rest-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.rest-cal-title { font-size: 16px; font-weight: 600; color: var(--txt); }
.rest-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.rest-cal-week span {
  text-align: center;
  font-size: 13px;
  color: var(--txt-3);
  padding: 4px 0;
}
.rest-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
/* 日历加载失败提示（如 rest_days 集合未创建） */
.rest-cal-error {
  grid-column: 1 / -1;
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: #D97706;
  background: rgba(217, 119, 6, 0.08);
  border: 1px dashed rgba(217, 119, 6, 0.35);
  border-radius: 10px;
  word-break: break-all;
}
.rest-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  color: var(--txt);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rest-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.rest-cell:hover:not(.empty) { border-color: var(--accent); }
.rest-cell.today { box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.45); }
.rest-cell.rest {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.45);
  color: var(--warn);
  font-weight: 600;
}
.rest-cell.rest:hover { background: rgba(217, 119, 6, 0.18); }
.rest-num { line-height: 1; }
.rest-tag {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--warn);
}

/* ===== 权限管理 ===== */
.scope-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt-2);
}
.scope-chip b { color: var(--txt); font-size: 14px; }
.scope-chip.c-self { border-color: rgba(14, 165, 233, 0.35); }
.scope-chip.c-team { border-color: rgba(217, 119, 6, 0.35); }
.scope-chip.c-all { border-color: rgba(16, 185, 129, 0.35); }
.scope-select { min-width: 120px; padding: 6px 10px; }
.scope-warn {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 12px;
  border-radius: 6px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--warn);
}

/* ===== 轨迹位置（中文地址替代经纬度） ===== */
.loc-cell {
  max-width: 320px;
  color: var(--txt);
  line-height: 1.45;
}

/* ===== 任务管理 ===== */
.task-range { font-size: 12px; color: var(--txt-2); white-space: nowrap; }
.task-done { color: var(--ok, #16A34A); font-weight: 700; }
.task-bar {
  display: inline-block;
  vertical-align: middle;
  width: 72px;
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.task-bar-in {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.task-pct {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 12px;
  color: var(--txt-2);
  min-width: 34px;
}
.task-tip { font-size: 12px; color: var(--txt-2); margin: 8px 0 10px; }
.task-staff-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: var(--surface-2);
}
.task-staff-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
}
.ts-name { flex: 1; font-size: 13px; color: var(--txt); }
.ts-input { width: 110px !important; padding: 6px 10px !important; }

/* ===== 任务管理：分段标签 / 部门卡片 / 下钻面板 ===== */
.seg-tabs {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg-tab {
  border: none;
  background: transparent;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--txt-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.seg-tab:hover { color: var(--txt); }
.seg-tab.active {
  background: #fff;
  color: var(--brand, #2563EB);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.dept-task-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all .16s;
}
.dept-task-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}
.dtc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dtc-name { font-size: 15px; font-weight: 600; color: var(--txt); }
.dtc-people {
  font-size: 12px;
  color: var(--txt-2);
  background: var(--surface-2);
  border-radius: 20px;
  padding: 2px 10px;
}
.dtc-nums { display: flex; gap: 8px; margin-bottom: 12px; }
.dtc-num { flex: 1; text-align: center; }
.dtc-num b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.2;
}
.dtc-num b.ok { color: #16A34A; }
.dtc-num b.warn { color: #D97706; }
.dtc-num span { font-size: 11px; color: var(--txt-2); }
.dtc-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}
.dtc-bar-in { height: 100%; border-radius: 99px; transition: width .3s; }
.dtc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--txt-2);
}
.dtc-more { color: var(--brand, #2563EB); }

.dept-detail {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.dd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dd-title { font-size: 15px; font-weight: 600; color: var(--txt); }
.dd-body { padding: 16px 18px 6px; }

/* ===== 任务弹窗：宽版 + 目标设定二选一 + 日历 ===== */
.modal-box-wide { max-width: 720px !important; width: 92% !important; }
.task-days { font-size: 12px; color: var(--txt-2); margin-left: 8px; }
.task-remark-input { margin-top: 12px !important; }

.setmode-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  flex-wrap: wrap;
}
.setmode-label { font-size: 13px; color: var(--txt-2); }
.seg-tabs-sm { padding: 2px; }
.seg-tabs-sm .seg-tab { padding: 6px 16px; font-size: 13px; }

/* 日历填写 */
#targetCalArea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 14px;
  background: var(--surface-2);
}
.task-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.task-cal-month { display: flex; align-items: center; gap: 8px; }
.task-cal-month .cal-title { font-size: 13px; font-weight: 600; color: var(--txt); }
.cal-nav {
  cursor: pointer;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 6px;
  color: var(--brand, #2563EB);
  font-size: 16px;
  user-select: none;
}
.cal-nav:hover { background: #E6F1FB; }
.cal-nav.disabled { color: var(--color-border-secondary, #CBD5E1); cursor: default; }
.cal-nav.disabled:hover { background: transparent; }
.task-cal-tip { font-size: 11px; color: var(--txt-2); }

.task-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.task-cal-grid .tc-head {
  text-align: center;
  font-size: 11px;
  color: var(--txt-2);
  padding: 2px 0 4px;
}
.tc-cell {
  position: relative;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .12s;
}
.tc-cell.blank { background: transparent; cursor: default; border: none; }
.tc-cell.off-range { background: transparent; color: #C7D2E3; cursor: default; border: none; }
.tc-cell.in-range { border-color: var(--line); }
.tc-cell.in-range:hover { border-color: #2563EB; background: #F5F9FF; }
.tc-cell.weekend.in-range { background: #FAFBFC; }
.tc-cell.has-val { background: #E1F5EE; border-color: #0F6E56; }
.tc-cell.has-val.weekend { background: #E1F5EE; }
.tc-day { font-size: 12px; color: var(--txt); line-height: 1.2; }
.tc-cell.off-range .tc-day { color: #C7D2E3; }
.tc-val {
  font-size: 13px;
  font-weight: 500;
  color: #0F6E56;
  line-height: 1.2;
  min-height: 16px;
}
.task-cal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.task-cal-actions .month-input { width: 110px !important; }
.task-cal-empty { font-size: 12px; color: var(--txt-2); padding: 20px; text-align: center; }

/* ===== 日历日目标编辑弹层 ===== */
.cal-pop { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.cal-pop-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .35); }
.cal-pop-box {
  position: relative; background: #fff; border-radius: 14px; padding: 20px;
  width: 320px; box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
}
.cal-pop-title { font-size: 15px; font-weight: 600; color: var(--txt); margin-bottom: 12px; }
.cal-pop-box .month-input { width: 100% !important; }
.cal-pop-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* 日历单元格：周四~周日右侧不要被压，给个最小宽度 */
.tc-cell.in-range { cursor: pointer; }

/* ===== 按部门下发：每位员工独立日历按钮 ===== */
.ts-cal-btn {
  padding: 6px 10px !important;
  font-size: 12px !important;
  min-width: 68px;
  white-space: nowrap;
}
.ts-cal-btn.has-cal {
  background: #E1F5EE !important;
  border-color: #0F6E56 !important;
  color: #0F6E56 !important;
  font-weight: 600;
}
.ts-input:disabled {
  background: #F5F7FA !important;
  color: #9AA7B8 !important;
  cursor: not-allowed;
}
.cal-pop-wide { width: 560px !important; max-width: 92vw; }
.cal-pop-wide .task-cal-grid { gap: 3px; }
.cal-pop-wide .tc-cell { min-height: 40px; }
.task-staff-row { gap: 8px; }
.task-staff-row .ts-input { flex: 0 0 110px; }
/* 层级修复：日期编辑弹层必须盖过员工日历弹层 */
#staffCalPop { z-index: 9990; }
#calPop { z-index: 10001; }

/* ===== 考勤点：按地区选点 + 地图 + 范围圆 ===== */
.modal-box-point { width: 760px; max-width: 94vw; max-height: 92vh; overflow-y: auto; }
.pt-field { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pt-label { flex: 0 0 56px; font-size: 13px; color: var(--txt-2); }
.modal-box-point .pt-field input { flex: 1 1 auto; width: auto; }
.pt-region { flex: 1 1 auto; display: flex; gap: 8px; }
.pt-region select {
  flex: 1 1 0; min-width: 0; height: 42px; padding: 0 10px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 10px; color: var(--txt); font-size: 13px; outline: none;
}
.pt-region select:focus { border-color: var(--accent); box-shadow: var(--glow); }
.pt-region select:disabled { color: var(--txt-3); cursor: not-allowed; }
.pt-search { flex: 1 1 auto; display: flex; gap: 8px; }
.pt-search .btn { flex: 0 0 auto; height: 42px; }

.pt-results {
  max-height: 190px; overflow-y: auto; margin: -4px 0 12px 66px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.pt-res-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.pt-res-item:last-child { border-bottom: none; }
.pt-res-item:hover { background: rgba(14, 165, 233, 0.08); }
.pt-res-title { font-size: 13px; color: var(--txt); font-weight: 600; }
.pt-res-sub { font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.pt-res-tip { padding: 12px; font-size: 12px; color: var(--txt-3); }
.pt-res-tip.err { color: var(--danger); }

.point-map {
  width: 100%; height: 300px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 10px;
}
.pt-map-fallback { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 13px; color: var(--txt-3); text-align: center; padding: 0 24px; }
.pt-picked {
  font-size: 12px; color: var(--txt-3); line-height: 1.5;
  padding: 8px 12px; margin-bottom: 12px; border-radius: 8px; background: var(--surface-2);
}
.pt-picked.has { color: var(--txt); background: #E1F5EE; }
.pt-picked-txt { word-break: break-all; }
.pt-picked-geo { display: block; color: var(--txt-2); font-size: 11px; margin-top: 2px; }

.pt-range { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal-box-point .pt-range input { flex: 0 0 110px; width: 110px; }
.pt-unit { font-size: 13px; color: var(--txt-2); margin-right: 4px; }
.pt-chip { padding: 6px 10px !important; font-size: 12px !important; }
.pt-chip.active { background: #E1F5EE !important; border-color: #0F6E56 !important; color: #0F6E56 !important; }

.pt-td-addr { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-td-geo { font-family: 'DIN Alternate', 'Menlo', monospace; font-size: 12px; color: var(--txt-3); }

/* ===== 客户 / 安装记录：表单弹窗 ===== */
.modal-box-form { width: 620px; max-width: 94vw; max-height: 92vh; overflow-y: auto; }
.fc-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.fc-label {
  flex: 0 0 72px; font-size: 13px; color: var(--txt-2);
  line-height: 42px; text-align: right; white-space: nowrap;
}
.fc-label i { color: var(--danger); font-style: normal; margin-left: 2px; }
.modal-box-form .fc-row input,
.modal-box-form .fc-row select,
.modal-box-form .fc-row textarea { flex: 1 1 auto; width: auto; margin-bottom: 0; }
.modal-box-form .fc-row select { height: 42px; }
.fc-inline { flex: 1 1 auto; display: flex; gap: 8px; min-width: 0; }
.fc-inline .btn { flex: 0 0 auto; height: 42px; white-space: nowrap; }
.fc-two { flex: 1 1 auto; display: flex; gap: 10px; min-width: 0; }
.fc-two > * { flex: 1 1 0; min-width: 0; }
.fc-dt { display: flex; gap: 8px; flex: 1 1 0; }
.fc-dt .month-input { flex: 1 1 0; min-width: 0; height: 42px; }
.fc-textarea {
  height: 72px; resize: vertical; padding: 10px 12px; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 8px; font-size: 14px; color: var(--txt); font-family: inherit; outline: none;
}
.fc-textarea:focus { border-color: var(--accent); box-shadow: var(--glow); }
.fc-textarea::placeholder { color: var(--txt-3); }

/* 表格里的行内操作按钮 */
.row-ops { white-space: nowrap; }
.row-ops .btn { padding: 5px 10px; font-size: 12px; margin-right: 6px; }
.row-ops .btn:last-child { margin-right: 0; }
.muted { color: var(--txt-3); }
.install-filters { margin-bottom: 10px; }
.install-filters .month-input { min-width: 148px; }
.install-filters #installStaff { min-width: 170px; }
.install-filters .range-sep { align-self: center; color: var(--txt-3); font-size: 13px; }
.range-tip { font-size: 12px; color: var(--txt-3); margin: 0 0 12px; }

/* ===== 数据看板：任务目标日历 ===== */
.dash-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dash-bar .month-input { min-width: 128px; }
.dash-bar .seg-tabs { margin: 0; }
.dash-bar select.month-input { min-width: 160px; }
.dash-stats { margin: 4px 0 18px; }
.dash-cal { gap: 6px; }
.dash-cal .dc-head { text-align: center; font-size: 11px; color: var(--txt-2); padding: 2px 0 4px; }
.dc-cell {
  min-height: 64px; border-radius: 10px;
  background: var(--surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; padding: 6px 2px;
  border: 1px solid transparent;
}
.dc-cell.blank { background: transparent; }
.dc-cell.none { background: var(--surface-2); }
.dc-cell.part { background: #FFF4E5; border-color: rgba(217, 119, 6, 0.35); }
.dc-cell.ok { background: #E1F5EE; border-color: rgba(15, 110, 86, 0.35); }
.dc-cell.today { box-shadow: 0 0 0 2px var(--accent-2) inset; }
.dc-day { font-size: 12px; color: var(--txt-2); line-height: 1.1; }
.dc-cell.today .dc-day { color: var(--accent-2); font-weight: 700; }
.dc-t { font-size: 11px; color: var(--txt-2); line-height: 1.25; white-space: nowrap; }
.dc-d { font-size: 12px; font-weight: 700; color: var(--txt); line-height: 1.25; white-space: nowrap; }
.dc-cell.ok .dc-d { color: #0F6E56; }
.dc-cell.part .dc-d { color: #B45309; }
.dc-cell.none .dc-t { color: var(--txt-3); }
/* 当天没有任务目标、但有实际完成数：浅蓝底，仍然展示完成数 */
.dc-cell.done-only { background: #EAF2FE; border-color: rgba(37, 99, 235, 0.28); }
.dc-cell.done-only .dc-t { color: #2563EB; }
.dc-cell.done-only .dc-d { color: #1D4ED8; }
.dash-legend {
  display: flex; align-items: center; gap: 16px; margin-top: 14px;
  font-size: 12px; color: var(--txt-2); flex-wrap: wrap;
}
.dash-legend .lg {
  display: inline-block; width: 12px; height: 12px; border-radius: 4px;
  margin-right: 6px; vertical-align: -2px;
}
.lg-ok { background: #E1F5EE; border: 1px solid #34A78A; }
.lg-part { background: #FFF4E5; border: 1px solid #D9A25F; }
.lg-none { background: var(--surface-2); border: 1px solid var(--line-strong); }
.lg-done { background: #EAF2FE; border: 1px solid #7CA9F0; }
.dash-legend-tip { margin-left: auto; color: var(--txt-3); }

.nav-empty { padding: 6px 10px 10px 23px; font-size: 13px; color: #7a8290; }

/* ===== 菜单排序编辑器 ===== */
.mn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mn-actions .btn { padding: 7px 12px; font-size: 13px; }
.mn-editor {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); padding: 10px; display: flex;
  flex-direction: column; gap: 10px;
}
.mn-row {
  display: flex; align-items: center; gap: 8px;
  border-radius: 9px; padding: 8px 10px; background: var(--surface);
  border: 1px solid var(--line);
}
.mn-row.mn-g { background: linear-gradient(90deg, rgba(14, 165, 233, 0.07), transparent 70%); font-weight: 600; }
.mn-row.mn-i { margin-bottom: 6px; }
.mn-row.mn-i:last-child { margin-bottom: 0; }
.mn-row.mn-dragging { opacity: 0.4; }
.mn-row.mark-before { box-shadow: 0 -2px 0 0 var(--accent) inset; border-color: var(--accent); }
.mn-row.mark-after { box-shadow: 0 2px 0 0 var(--accent) inset; border-color: var(--accent); }
.mn-row.mark-into { border-style: dashed; border-color: var(--accent); background: rgba(14, 165, 233, 0.08); }
.mn-handle {
  flex: 0 0 auto; cursor: grab; color: var(--txt-3); letter-spacing: -2px;
  font-size: 15px; user-select: none; padding: 0 2px;
}
.mn-handle:active { cursor: grabbing; }
.mn-title-in {
  flex: 1 1 auto; min-width: 0; height: 32px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 7px; background: transparent;
  color: var(--txt); font-size: 13px; font-weight: 600; font-family: inherit; outline: none;
}
.mn-title-in:hover { border-color: var(--line-strong); }
.mn-title-in:focus { border-color: var(--accent); background: var(--surface-2); box-shadow: var(--glow); }
.mn-name { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--txt); }
.mn-count { flex: 0 0 auto; font-size: 11px; color: var(--txt-3); font-weight: 400; }
.mn-fixed {
  flex: 0 0 auto; font-size: 10px; color: var(--txt-3); font-weight: 400;
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 4px;
}
.mn-sel {
  flex: 0 0 auto; width: 118px; height: 30px; padding: 0 6px;
  font-size: 12px; font-weight: 400; border-radius: 7px;
}
.mn-btns { flex: 0 0 auto; display: flex; gap: 4px; }
.mn-btn {
  width: 28px; height: 28px; line-height: 1; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  color: var(--txt-2); font-size: 13px; font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mn-btn:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.mn-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.mn-items { padding-left: 18px; }
.mn-empty {
  font-size: 12px; color: var(--txt-3); padding: 8px 10px;
  border: 1px dashed var(--line-strong); border-radius: 8px;
}
.mn-tip { margin-top: 12px; font-size: 13px; }
.mn-tip.ok { color: #0F6E56; }
.mn-tip.err { color: var(--danger); }

/* 员工弹窗提示 */
.staff-tip { font-size: 12px; color: var(--txt-3); line-height: 1.6; margin: -4px 0 14px; }

/* ============ 角色管理（组织权限 · 角色 + 菜单显示权限） ============ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.role-card {
  border: 1px solid var(--line, #E4EBF5);
  border-radius: 12px;
  padding: 14px 16px 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.role-card.builtin { background: #FAFCFF; }
.role-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.role-card-head b { font-size: 15px; color: var(--txt); }
.role-card-meta { font-size: 12px; color: var(--txt-3); }
.role-card-menus { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.role-menu-chip {
  font-size: 11px; line-height: 1.6;
  padding: 1px 7px; border-radius: 6px;
  background: rgba(14, 165, 233, 0.08); color: #0C6C9C;
}
.role-menu-chip.more { background: rgba(30, 80, 180, 0.07); color: var(--txt-2); }
.role-card-btns { display: flex; gap: 8px; margin-top: 2px; }

/* 角色弹窗 */
.role-mgr-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--txt-2);
  margin: 6px 0 14px; cursor: pointer;
}
.role-mgr-row input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.role-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--txt-2); font-weight: 600;
  padding: 6px 0 8px; border-top: 1px solid var(--line, #EDF2FA); margin-top: 4px;
}
.role-menu-acts a { color: var(--accent); font-size: 12px; margin-left: 10px; text-decoration: none; font-weight: 500; }
.role-menu-box {
  max-height: 320px; overflow-y: auto;
  border: 1px solid var(--line, #EDF2FA); border-radius: 10px;
  padding: 10px 12px; background: #FBFCFE; margin-bottom: 12px;
}
.role-menu-group { margin-bottom: 10px; }
.role-menu-group:last-child { margin-bottom: 0; }
.rmg-title { font-size: 12px; color: var(--txt-3); margin-bottom: 6px; font-weight: 600; }
.rmg-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; }
.role-menu-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--txt-2);
  padding: 5px 8px; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent;
}
.role-menu-item:hover { background: #F1F6FD; }
.role-menu-item.on { background: rgba(14, 165, 233, 0.09); border-color: rgba(14, 165, 233, 0.28); color: #0C6C9C; }
.role-menu-item input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }

/* 员工弹窗里的角色勾选 */
.role-field { margin-bottom: 12px; }
.role-field-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--txt-2); font-weight: 600; margin-bottom: 8px;
}
.role-field-hint { font-size: 11px; color: var(--txt-3); font-weight: 400; }
.role-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--txt-2);
  border: 1px solid var(--line, #E1E9F4); border-radius: 8px;
  padding: 6px 10px; cursor: pointer; background: #fff;
}
.role-chip.on { background: rgba(14, 165, 233, 0.09); border-color: rgba(14, 165, 233, 0.42); color: #0C6C9C; }
.role-chip input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.rc-tag {
  font-style: normal; font-size: 10px; line-height: 1.5;
  background: rgba(22, 163, 74, 0.12); color: #15803D;
  padding: 0 5px; border-radius: 4px;
}

/* ============ 商铺列表（与小程序商铺页对齐） ============ */
.cust-tip {
  margin: -4px 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--txt-3);
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 8px;
  padding: 8px 12px;
}
.shop-thumb-td { position: relative; width: 76px; }
.shop-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(30, 80, 180, 0.12);
  display: block;
  transition: transform 0.16s ease;
}
.shop-thumb:hover { transform: scale(1.06); }
.shop-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 8px;
  border: 1px dashed var(--line, #DCE6F4);
  background: #F7FAFF;
  color: var(--txt-3, #94A3B8);
  font-size: 11px;
}
.shop-thumb-num {
  position: absolute;
  left: 42px; top: 42px;
  font-size: 10px; line-height: 1.4;
  padding: 0 4px; border-radius: 6px;
  background: rgba(15, 27, 51, 0.72);
  color: #fff;
}

/* 商铺弹窗 · 坐标行 / 门头照片 */
.fc-coord-line { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.fc-coord { font-size: 13px; color: var(--txt-3, #94A3B8); }
.fc-coord.on { color: #0C6C9C; font-family: ui-monospace, Menlo, Consolas, monospace; }
.hidden-file { display: none !important; }

.fc-photo-field { flex: 1 1 auto; min-width: 0; }
.fc-photo-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-photo-cell {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line, #E1E9F4);
  background: #F4F8FE;
}
.fc-photo-cell img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.fc-photo-del {
  position: absolute; right: 0; top: 0;
  width: 20px; height: 20px; line-height: 20px;
  text-align: center;
  font-size: 11px; color: #fff;
  background: rgba(15, 27, 51, 0.6);
  border-bottom-left-radius: 8px;
  cursor: pointer;
}
.fc-photo-del:hover { background: var(--danger, #EF4444); }
.fc-photo-empty {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #B9CBE4;
  border: 1px dashed var(--line, #DCE6F4);
  border-radius: 10px;
  background: #FBFCFE;
}
.fc-photo-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fc-photo-actions .btn { height: 34px; padding: 0 14px; }
.fc-photo-count { font-size: 12px; color: var(--txt-3, #94A3B8); }
.fc-photo-tip { margin-top: 6px; font-size: 11px; color: var(--txt-3, #94A3B8); line-height: 1.6; }

/* ============ 市场管理 · 水印相机 ============ */
.wm-head-tip {
  max-width: 620px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--txt-3, #94A3B8);
  text-align: right;
}
/* 页头右侧：按钮在上、说明文字在下（水印相机 / 报岗记录） */
.head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.wm-filters { margin-bottom: 14px; }
.wm-filters #wmKeyword { min-width: 200px; }
#wmStats { margin-bottom: 16px; }
.wm-coord { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--txt-2, #475569); }
.wm-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 600;
  color: #0C6C9C;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 6px;
  padding: 1px 6px;
}
.wm-copy { margin-left: 6px; height: 24px; padding: 0 8px; font-size: 11px; }

/* 水印照片缩略图 + 下载 */
.wm-photo { display: flex; align-items: center; gap: 8px; }
.wm-thumb {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(30, 80, 180, 0.14);
  cursor: zoom-in;
  transition: transform 0.16s ease;
  display: block;
}
.wm-thumb:hover { transform: scale(1.08); }
.wm-dl { height: 26px; padding: 0 10px; font-size: 11px; white-space: nowrap; }

/* 打卡照片弹层（考勤明细 → 照片） */
.ck-photo-body {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 80px;
  margin-bottom: 8px;
}
.ck-photo-item {
  flex: 0 0 auto;
  width: 240px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.ck-photo-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 8px;
}
.ck-photo-head .muted { font-weight: 400; font-size: 12px; }
.ck-photo-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #E2E8F4;
}
.ck-photo-open {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent-2);
  text-decoration: none;
}
.ck-photo-open:hover { text-decoration: underline; }
.ck-photo-none {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--txt-3);
  background: #E9EEF8;
  border-radius: 8px;
  text-align: center;
  padding: 0 10px;
}

/* 商铺导入：页头按钮组 + 结果弹层 */
.head-btns { display: flex; align-items: center; gap: 10px; }
.imp-body { font-size: 14px; color: var(--txt-2); }
.imp-stats {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.imp-stats b { color: var(--txt); font-size: 16px; margin-left: 2px; }
.imp-ok b { color: var(--ok); }
.imp-warn b { color: var(--warn); }
.imp-err-txt b { color: var(--danger); }
.imp-err-list {
  margin-top: 12px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.imp-sub { font-size: 12px; color: var(--txt-3); margin-bottom: 6px; }
.imp-err-item { font-size: 13px; color: var(--danger); line-height: 1.7; }
.imp-err { color: var(--danger); font-size: 14px; padding: 8px 0; }

/* 数据看板：近 6 个月完成数柱状图，当月高亮 */
.chart .bar.bar-cur { background: linear-gradient(180deg, #34D399, #16A34A); }

/* 安装记录「有效 / 无效」开关（无效只打标签 + 剔除统计，记录保留） */
.th-valid { width: 104px; }
.valid-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.valid-sw {
  position: relative; flex: 0 0 auto;
  width: 40px; height: 22px; border-radius: 999px;
  background: #94A3B8; cursor: pointer;
  transition: background .18s ease;
}
.valid-sw:hover { filter: brightness(1.06); }
.valid-sw.on { background: #16A34A; }
.valid-sw.off { background: #94A3B8; }
.valid-knob {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #FFF; border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15,27,51,.28);
  transition: left .18s ease;
}
.valid-sw.on .valid-knob { left: 20px; }
.valid-sw.off .valid-knob { left: 2px; }
.valid-state { font-size: 11px; color: var(--txt-3); line-height: 1.2; }
.valid-sw.on + .valid-state { color: var(--ok); }
.valid-sw.off + .valid-state { color: var(--danger); }
.valid-reason {
  font-size: 11px; color: var(--danger); line-height: 1.3;
  max-width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
tr.row-invalid td { background: #FFF7F7 !important; }
tr.row-invalid td:first-child { box-shadow: inset 3px 0 0 #F87171; }

/* 标记无效弹层 */
.inv-target {
  font-size: 13px; color: var(--txt-2); line-height: 1.7;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 14px;
}
.inv-quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px 82px; }
.inv-chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--txt-2); cursor: pointer; transition: all .15s ease;
}
.inv-chip:hover { border-color: var(--accent); color: var(--accent); }
.inv-tip { font-size: 12px; color: var(--txt-3); line-height: 1.7; margin-bottom: 14px; }
.inv-tip b { color: var(--txt-2); }

/* ---------- 消息通知 ---------- */
.msg-form { padding: 4px 2px 0; }
.msg-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.msg-label {
  flex: 0 0 88px; text-align: right; font-size: 13px;
  color: var(--txt-2); line-height: 34px;
}
.msg-opt { color: var(--txt-3); font-size: 12px; }
.msg-input { flex: 1; max-width: 520px; }
.msg-radios { display: flex; gap: 18px; height: 34px; align-items: center; }
.msg-radio {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--txt-2); cursor: pointer; user-select: none;
}
.msg-radio input { accent-color: var(--accent); cursor: pointer; }
.msg-textarea {
  flex: 1; max-width: 520px; min-height: 96px; padding: 9px 12px;
  font-family: inherit; font-size: 13px; line-height: 1.7; color: var(--txt);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; resize: vertical; outline: none;
}
.msg-textarea:focus { border-color: var(--accent); background: #FFF; }
.msg-picker { flex: 1; max-width: 640px; }
.msg-picker-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.msg-picker-head .month-input { flex: 1; min-width: 120px; }
.msg-picked { font-size: 12px; color: var(--txt-3); white-space: nowrap; }
.msg-user-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 150px; overflow-y: auto; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
}
.msg-chip {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: #FFF; border: 1px solid var(--line-strong);
  color: var(--txt-2); cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.msg-chip:hover { border-color: var(--accent); color: var(--accent); }
.msg-chip.on {
  background: var(--accent); border-color: var(--accent); color: #FFF;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .28);
}
.msg-chip em { font-style: normal; opacity: .72; margin-left: 4px; font-size: 11px; }
.msg-send-tip { font-size: 13px; color: var(--ok); align-self: center; }
.msg-send-tip.err { color: var(--danger); }
.msg-stats { display: flex; gap: 10px; }
.msg-stats .stat-cell {
  min-width: 92px; padding: 8px 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.msg-stats .stat-num { font-size: 18px; font-weight: 700; color: var(--txt); }
.msg-stats .stat-lbl { font-size: 11px; color: var(--txt-3); margin-top: 2px; }
.msg-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.msg-tag.t-notice { background: #E0F2FE; color: #0369A1; }
.msg-tag.t-approval { background: #FCE7F3; color: #BE185D; }
.msg-tag.t-install { background: #FEF3C7; color: #B45309; }
.msg-tag.t-attendance { background: #FEE2E2; color: #B91C1C; }
.msg-read { font-size: 12px; color: var(--ok); }
.msg-unread { font-size: 12px; color: var(--warn); font-weight: 600; }
.msg-content-cell {
  max-width: 340px; font-size: 12px; color: var(--txt-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.msg-empty { text-align: center; color: var(--txt-3); padding: 30px 0; font-size: 13px; }
.btn.mini { padding: 3px 10px; font-size: 12px; border-radius: 8px; }

/* ---------- 经营数据报表 ---------- */
.br-stats { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1500px) { .br-stats { grid-template-columns: repeat(3, 1fr); } }
.br-stats .stat-card { padding: 16px 18px; }
.br-stats .stat-num { font-size: 26px; }
.stat-delta { font-size: 12px; color: var(--txt-3); margin-top: 5px; }
.stat-delta.up { color: #16A34A; }
.stat-delta.down { color: #DC2626; }
.br-check {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--txt-2); cursor: pointer; user-select: none;
}
.br-check input { accent-color: var(--accent); cursor: pointer; }
.br-sub { font-size: 12px; font-weight: 400; color: var(--txt-3); margin-left: 10px; }
.br-chart { padding: 8px 6px 0; }
.br-legend {
  display: flex; gap: 20px; font-size: 12px; color: var(--txt-2);
  padding: 6px 10px 2px;
}
.br-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.br-table th.num, .br-table td.num { text-align: right; }
.br-rank {
  display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--txt-2);
}
.br-rank.r1 { background: #FEF3C7; color: #B45309; }
.br-rank.r2 { background: #E5E7EB; color: #4B5563; }
.br-rank.r3 { background: #FDE8D7; color: #C2410C; }
.br-name { font-weight: 600; }
.br-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.br-tag.idle { background: #FEE2E2; color: #B91C1C; }
.br-tag.gone { background: #E5E7EB; color: #6B7280; }
.br-zero { color: var(--txt-3); }
.br-mini { font-size: 11px; color: var(--txt-3); }
.br-empty { text-align: center; color: var(--txt-3); padding: 30px 0; font-size: 13px; }

/* ---------- 维护记录 ---------- */
.mt-thumb {
  width: 46px; height: 46px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line); display: block;
}
.mt-mini { font-size: 11px; color: var(--txt-3); }
.mt-none { color: var(--txt-3); }
.mt-addr {
  font-size: 12px; color: var(--txt-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mt-coord { font-size: 12px; color: var(--txt-3); font-variant-numeric: tabular-nums; }
.mt-record {
  font-size: 13px; color: var(--txt); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mt-src {
  display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px;
  margin-left: 5px; vertical-align: 1px; white-space: nowrap;
}
.mt-src.s-admin { background: #E0F2FE; color: #0369A1; }
.mt-src.s-imp { background: #FEF3C7; color: #B45309; }
.mt-pager {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 2px; font-size: 12px; color: var(--txt-3);
}
.mt-pg-btns { display: flex; gap: 8px; }
.imp-warn-item { color: var(--warn) !important; }

/* ================= 防作弊中心 ================= */
.ac-type {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.ac-t-fence { background: #FEE2E2; color: #DC2626; }
.ac-t-speed { background: #FEF3C7; color: #B45309; }
.ac-t-acc   { background: #E0F2FE; color: #0369A1; }
.ac-t-sim   { background: #EDE9FE; color: #6D28D9; }
.ac-lv { font-size: 12px; font-weight: 700; }
.ac-lv.high   { color: #DC2626; }
.ac-lv.medium { color: #B45309; }
.ac-lv.low    { color: #64748B; }
.ac-detail {
  max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ac-extra { color: var(--txt-3); font-size: 12px; margin-left: 4px; }
.ac-alerted { color: #16A34A; font-size: 12px; }
.ac-muted { color: var(--txt-3); }
.ac-on  { color: #16A34A; font-size: 12px; font-weight: 600; }
.ac-off { color: #94A3B8; font-size: 12px; font-weight: 600; }

/* ===== 电子围栏地图描绘 ===== */
.fc-map-wrap { margin: 10px 0 4px; }
.fc-map { height: 300px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line, #E2E8F0); }
.fc-map-tools {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 4px;
}
.fc-map-tip { font-size: 12px; color: var(--txt-3, #94A3B8); flex: 1; }

/* ================= 排班管理 ================= */
.sh-tip-bar {
  background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 14px;
  font-size: 13px; line-height: 1.7;
}
.sh-tip-bar b { color: #1D4ED8; }
.sh-ops { display: flex; gap: 4px; flex-wrap: wrap; }
.sh-dept-sel { min-width: 200px; }
.role-menu-item .ac-muted { margin-left: auto; font-size: 12px; }

/* ================= 轮班排班表（V20） ================= */
.sp-quick { display: inline-flex; gap: 8px; align-items: center; margin-left: 10px; font-size: 12px; }
.sp-quick a { color: #2563EB; text-decoration: none; padding: 2px 8px; border: 1px solid #BFDBFE; border-radius: 6px; background: #EFF6FF; }
.sp-quick a:hover { background: #DBEAFE; }
.sp-slots-head { font-size: 13px; font-weight: 600; color: var(--txt-2); margin: 14px 0 8px; }
.sp-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
.sp-slot { display: flex; align-items: center; gap: 8px; }
.sp-slot-day { font-size: 12px; color: var(--txt-3); white-space: nowrap; min-width: 46px; }
.sp-slot select { flex: 1; min-width: 0; }
.sp-slots-text { max-width: 380px; color: var(--txt-2); font-size: 13px; line-height: 1.6; }
.sp-hint { font-size: 12px; color: var(--txt-3); margin: -4px 0 10px; line-height: 1.6; }

/* ===== 开关（考勤规则：自动下班打卡） ===== */
.sw-wrap { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; flex: 1; min-width: 0; }
.sw-input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-box { position: relative; flex: 0 0 auto; width: 42px; height: 24px; border-radius: 12px; background: #CBD5E1; transition: background .18s; margin-top: 1px; }
.sw-box::after { content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 27, 51, .25); transition: transform .18s; }
.sw-input:checked + .sw-box { background: #2563EB; }
.sw-input:checked + .sw-box::after { transform: translateX(18px); }
.sw-text { font-size: 13px; line-height: 20px; color: var(--txt-2); }

/* ===== 市场管理 · 我的奖励 ===== */
.rw-rule h3 { margin-bottom: 12px; }
.rw-textarea { width: 100%; max-width: 640px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--txt); resize: vertical; font-family: inherit; }
.rw-gone td { color: var(--txt-3); }
.rw-tag { display: inline-block; font-size: 11px; color: #94a3b8; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.rw-pending { color: #dc2626; }
.rw-pays { display: flex; flex-direction: column; gap: 8px; }
.rw-pay-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rw-pay-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rw-pay-amt { font-weight: 700; color: #d97706; }
.rw-pay-note { font-size: 12px; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-pay-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 12px; color: var(--txt-3); }
/* 绩效奖励区间编辑器 */
.perf-editor { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.perf-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt-2); }
.perf-in { width: 78px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--txt); }
.perf-empty { font-size: 12px; color: var(--txt-3); }
.fc-hint { font-size: 12px; color: var(--txt-3); margin-top: 6px; }
/* 奖励：操作列 / 待发放标记 / 详情弹窗 */
.rw-op { white-space: nowrap; }
.rw-op .btn { margin-right: 4px; }
.rw-tag-wait { color: #d97706; border-color: #fcd34d; background: #fffbeb; }
.rw-pay-pending { background: #fffbeb; border-color: #fcd34d; }
.rwd-body { max-height: 60vh; overflow-y: auto; }
.rwd-grid { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.rwd-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 8px; border-radius: 6px; background: #f8fafc; }
.rwd-k { color: var(--txt-2); }
.rwd-v { font-weight: 600; color: var(--txt); }
.rwd-sub { font-size: 13px; font-weight: 700; color: var(--txt); margin: 10px 0 6px; }
.rwd-pays { display: flex; flex-direction: column; gap: 6px; }
.rwd-pay { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.rwd-pay-amt { font-weight: 700; color: #d97706; }
.rwd-pay-note { flex: 1; min-width: 0; color: var(--txt-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rwd-pay-side { color: var(--txt-3); flex: 0 0 auto; }
.rw-staff-name { font-weight: 600; }
.rw-modal-tip { font-size: 12px; color: var(--txt-3); line-height: 1.6; margin: 4px 0 10px; }

/* 我的积分：规则编辑器 */
.sp-proj { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.sp-proj-title { font-size: 14px; font-weight: 700; color: var(--txt); margin-bottom: 8px; }
.sp-fields { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.sp-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-2); }
.sp-in { width: 76px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--txt); }

/* 员工自定义任务建议卡片 */
.prop-card { border: 1px solid rgba(30,80,180,.12); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.prop-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.prop-card-sub { font-size: 12px; color: #47536B; }
.prop-card-remark { font-size: 12px; color: #94A3BF; margin-top: 6px; }
.prop-days { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.prop-day { font-size: 11px; background: #E1F5EE; color: #0F6E56; border-radius: 4px; padding: 2px 6px; }
.badge.pending { background: #FEF3C7; color: #B45309; }
