/* 报销管理系统 - 全局样式（手机优先） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #f5e000;
  --primary-dark: #d8c600;
  --primary-light: #3a3600;
  --primary-soft: #2a2700;
  --bg: #141416;
  --card: #1f1f24;
  --card-2: #26262c;
  --text: #f4f4f6;
  --muted: #9a9aa2;
  --line: #2d2d33;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0,0,0,.45);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.hidden { display: none !important; }

/* ---------- 顶部栏 ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px; display: flex; align-items: center; gap: 8px;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 0 12px;
}
#topbar .icon-btn {
  width: 38px; height: 38px; border: none; background: none;
  font-size: 22px; color: var(--text); cursor: pointer; border-radius: 8px;
}
#topbar .icon-btn:active { background: #f4ede3; }
#pageTitle { flex: 1; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#userBadge {
  height: 34px; min-width: 0; max-width: 170px;
  padding: 0 12px; border-radius: 17px;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
#userBadge .ub-name { overflow: hidden; text-overflow: ellipsis; }
#userBadge .ub-role { font-size: 11px; font-weight: 400; opacity: .88; flex-shrink: 0; }

/* 菜单小红点：有新审核任务时显示 */
.menu-item { position: relative; }
.menu-item .dot {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; display: none;
}
.menu-item .dot.show { display: block; }

/* ---------- 侧边栏 ---------- */
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 110;
  width: 240px; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 0;
  transform: translateX(-100%); transition: transform .25s ease;
}
#sidebar.open { transform: translateX(0); }
.side-title { font-size: 15px; font-weight: 700; padding: 0 16px 16px; border-bottom: 1px solid var(--line); line-height: 1.4; }
#sideMenu { flex: 1; padding: 12px 10px; overflow-y: auto; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; margin-bottom: 4px; border-radius: 10px;
  color: var(--text); cursor: pointer; font-size: 15px;
}
.menu-item.active { background: var(--primary); color: #fff; }
.menu-item:active { background: var(--primary-soft); }

/* 菜单大项分组（手风琴） */
.menu-item.top { font-weight: 600; min-height: 46px; }
.menu-group { margin-bottom: 4px; }
.menu-group-head {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; min-height: 46px;
}
.menu-group-head:active { background: var(--primary-soft); }
.menu-group-head .g-arrow {
  margin-left: auto; flex-shrink: 0;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.menu-group.open .g-arrow { transform: rotate(-135deg); }
.menu-group-head .gdot {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; display: none;
}
.menu-group-head .gdot.show { display: block; }
.menu-group.open .gdot { display: none; }
.menu-sub {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.menu-group.open .menu-sub { max-height: 420px; }
.menu-item.sub {
  padding-left: 30px; font-size: 14px;
  margin: 0 2px 2px; min-height: 44px;
}
.side-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

#mask {
  position: fixed; inset: 0; z-index: 105; background: rgba(0,0,0,.4);
}

/* ---------- 主内容 ---------- */
#content { padding: 64px 14px 30px; max-width: 900px; margin: 0 auto; }

/* ---------- 卡片与表单 ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.card h3 { font-size: 16px; margin-bottom: 12px; }
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 16px; background: #fff; color: var(--text);
  outline: none; transition: border-color .15s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--primary); }
.form-item textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.btn {
  display: block; width: 100%; padding: 13px; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer; text-align: center;
  background: var(--primary); color: #161616;
}
.btn:disabled { opacity: .5; }
.btn:active { background: var(--primary-dark); }
.btn.ghost { background: var(--card-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: rgba(248,113,113,.14); color: var(--red); }
.btn.ok { background: var(--green); color: #06281b; }
.btn.ok:active { background: #2ab884; }
.export-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.export-bar .btn { flex: 1; min-width: 130px; padding: 11px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn.sm { display: inline-block; width: auto; padding: 8px 18px; font-size: 14px; min-height: 0; }
.fast-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.link {
  color: var(--primary); text-decoration: none; font-size: 14px;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  line-height: inherit;
}
.link.center { display: block; text-align: center; margin-top: 12px; }

/* ---------- 统计卡片（工作台） ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
a.stat-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow);
}
a.stat-card:active { background: #f4ede3; }
.stat-card .num { font-size: 26px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-card .num.green { color: var(--green); }
.stat-card .num.red { color: var(--red); }

/* ---------- 详情页圆形报销进度 ---------- */
.ring-flow { display: flex; align-items: flex-start; }
.rf-step { flex: 0 0 auto; text-align: center; }
.rf-dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto;
  background: #e5e7eb; color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rf-step.done .rf-dot { background: var(--green); }
.rf-step.current .rf-dot { background: var(--amber); }
.rf-lb { font-size: 11px; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.rf-step.current .rf-lb { color: var(--amber); font-weight: 600; }
.rf-step.done .rf-lb { color: var(--green); }
.rf-line { flex: 1; height: 2px; background: var(--line); margin-top: 16px; border-radius: 2px; min-width: 12px; }
.rf-line.on { background: var(--green); }

/* ---------- 列表 ---------- */
.list-item {
  background: var(--card); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.list-item .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list-item .amount { font-size: 20px; font-weight: 700; }
.list-item .meta { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.list-item .reason { margin-top: 6px; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 状态标签 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.pending_manager, .badge.pending_finance, .badge.pending_admin { background: #fef3c7; color: var(--amber); }
.badge.approved, .badge.active { background: #dcfce7; color: var(--green); }
.badge.rejected, .badge.pending { background: #fee2e2; color: var(--red); }

/* 付款标识（财务是否已付款） */
.pay-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pay-badge.paid { background: #dcfce7; color: #15803d; }
.pay-badge.unpaid { background: #fef3c7; color: #b45309; }
.pay-badge.paid::before { content: "✓"; font-weight: 800; }
.pay-badge.unpaid::before { content: "¥"; font-weight: 800; }

/* ---------- 详情 ---------- */
.detail-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.detail-line .k { color: var(--muted); }
.detail-line .v { font-weight: 600; max-width: 60%; text-align: right; }
.attach-list img { width: 100%; max-width: 300px; border-radius: 8px; margin-top: 8px; display: block; }
.approve-flow { margin-top: 12px; }
.approve-step { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.approve-step .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 6px; flex-shrink: 0; }
.approve-step.done .dot { background: var(--green); }
.approve-step.done .t { color: var(--text); }
.approve-step.current .dot { background: var(--amber); }
.approve-step .t { color: var(--muted); }
.approve-step .c { color: var(--muted); font-size: 13px; }

/* ---------- 审批 ---------- */
.audit-box { margin-top: 12px; }
.audit-box textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; min-height: 60px; font-size: 15px; }

/* ---------- 表格（桌面） ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--muted); font-weight: 600; }

/* ---------- 统计页条形图 ---------- */
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.bar-row .name { width: 30%; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 18px; background: var(--primary-soft); border-radius: 9px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 9px; min-width: 2px; }
.bar-row .val { width: 90px; text-align: right; font-weight: 600; flex-shrink: 0; }

/* ---------- Modal 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.62);
  z-index: 150; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-card {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 16px; padding: 20px 18px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  max-height: 88vh; overflow-y: auto;
}
.modal-card h3 { font-size: 17px; margin-bottom: 16px; }
.modal-card .form-item { margin-bottom: 12px; }
.modal-card .form-item label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.modal-card .form-item input, .modal-card .form-item select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 15px; background: #fff;
}
.modal-card .form-item input:focus, .modal-card .form-item select:focus { border-color: var(--primary); outline: none; }
.modal-card .form-item input[readonly] { background: #f5efe6; color: var(--muted); }
.modal-card .modal-foot { display: flex; gap: 10px; margin-top: 18px; }
.modal-card .modal-foot .btn { flex: 1; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(20,25,40,.92); color: #fff; padding: 10px 18px;
  border-radius: 24px; font-size: 14px; z-index: 200; max-width: 86%;
  text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ---------- 新增：多门店勾选 / 付款徽章 / 财务统计 ---------- */
.chk-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.chk input { width: 16px; height: 16px; accent-color: var(--primary); }
.chk:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.badge.paid { background: var(--primary-light); color: var(--primary-dark); }
.stat-card .num.amber { color: var(--amber); }
.tbl input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.tbl tbody tr[data-id] { cursor: pointer; }
#fdSum b { color: var(--primary); }

/* ---------- 详情页顶部/底部返回条 ---------- */
.detail-topbar {
  position: sticky; top: 52px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 14px;
}
.dt-back { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dt-back .dt-arrow { font-size: 20px; line-height: 1; }
.dt-title { font-weight: 700; font-size: 15px; color: var(--text); }
.dt-right { margin-left: auto; display: inline-flex; align-items: center; }
.detail-bottombar { position: static; margin-top: 14px; padding-bottom: 10px; }
.detail-bottombar .btn { border-radius: 12px; padding: 13px; font-size: 15px; box-shadow: 0 4px 14px rgba(15,23,42,.08); }

/* 撤回状态徽标 */
.badge.withdrawn { background: #e0e7ff; color: #4338ca; }

/* ---------- 财务筛选栏 ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end;
  background: #faf6f0; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 12px;
}
.fb-item { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; min-width: 130px; }
.fb-item span { font-size: 12px; color: var(--muted); font-weight: 600; }
.fb-item input, .fb-item select { width: 100%; height: 46px; min-height: 46px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; }
.fb-btns { display: flex; gap: 8px; }
.fb-btns .btn { flex: 1; padding: 11px 10px; width: auto; white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .tbl { min-width: 720px; }

/* ---------- 登录/注册页 ---------- */
.auth-wrap { max-width: 400px; margin: 10vh auto 0; padding: 0 16px; }
.auth-card { background: #fff; border-radius: 16px; padding: 28px 20px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }

/* 桌面端优化 */
@media (min-width: 768px) {
  #topbar { display: none; }
  #sidebar { transform: none; width: 220px; }
  #content { padding: 24px 28px 40px; margin-left: 220px; max-width: 1100px; }
  #mask { display: none !important; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  #menuBtn { display: none; }
  .form-item input, .form-item select { font-size: 15px; }
  .detail-topbar { top: 0; }
}

/* 多选下拉（编辑员工 · 归属门店） */
.multi-wrap { position: relative; }
.multi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; min-height: 20px; box-sizing: border-box; }
.multi-head:focus-within { border-color: var(--primary); }
.multi-head .caret { color: var(--muted); font-style: normal; }
.multi-drop { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(15,23,42,.10); padding: 6px; max-height: 220px; overflow-y: auto; }
.multi-drop.open { display: block; }
.multi-drop .chk { width: 100%; margin-bottom: 2px; box-sizing: border-box; }

/* 报销流程条（工作台） */
.flow-steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.flow-step { flex: 1 1 150px; min-width: 130px; background: #faf6f0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.flow-step .fs-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.flow-step .fs-t { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.flow-step .fs-d { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* 审核口径卡（审批工作台） */
.caliber-card { background: var(--primary-soft); border: 1px solid var(--primary-light); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.caliber-card h4 { margin: 0 0 8px; font-size: 14px; color: var(--primary-dark); }
.caliber-card ul { margin: 0; padding-left: 18px; }
.caliber-card li { font-size: 13px; color: #374151; line-height: 1.7; }

/* 详情页报销进度（五步）状态色 */
.flow-step.done { border-color: #bbf7d0; background: #f0fdf4; }
.flow-step.done .fs-dot { background: var(--green); }
.flow-step.current { border-color: #fcd34d; background: #fffbeb; }
.flow-step.current .fs-dot { background: var(--amber); }

/* 新建报销批量卡片 */
.nb-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fdf8f2; }
.nb-card .nb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nb-card .nb-head .nb-title { font-size: 14px; color: var(--primary); font-weight: 600; }

/* 多选下拉：勾选框强制置于店名左侧 */
.multi-drop .chk { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; margin-bottom: 2px; box-sizing: border-box; padding: 8px 10px; }
.multi-drop .chk input { order: -1; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; }

/* ---------- 三横菜单按钮红点 ---------- */
#menuBtn { position: relative; }
#menuBtn.has-dot::after {
  content: ''; position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ef4444; border: 1.5px solid #fff; box-sizing: content-box;
}

/* ---------- 登录页品牌区 ---------- */
.brand-box { text-align: center; margin-bottom: 22px; }
.brand-logo-img {
  width: 76px; height: 76px; margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(214,111,0,.25));
}
.brand-company { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.brand-system { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- 工作台快捷操作 ---------- */
.qa-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qa-head h3 { margin: 0; }
.qa-head .link { font-size: 13px; }
.qa-head .btn-row { flex-wrap: wrap; }

/* ---------- 收款信息提示/卡片 ---------- */
.pay-warn { text-align: center; padding: 10px 6px; }
.pay-warn .pw-title { font-size: 16px; font-weight: 700; color: var(--amber); }
.pay-warn .pw-desc { font-size: 13px; color: var(--muted); margin-top: 6px; }

.pay-card { background: linear-gradient(135deg, var(--primary-soft), #fffaf4); border: 1px solid var(--primary-light); }
.pay-card .pc-title { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.pay-card .pc-line { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.pay-card .pc-k { color: var(--muted); }
.pay-card .pc-v { font-weight: 600; text-align: right; word-break: break-all; }

/* 快捷功能选择弹窗：分组换行 */
#qlGroup { display: flex; flex-wrap: wrap; gap: 8px; max-height: 280px; overflow-y: auto; }

/* ============================================================
   第三轮：手机端优化（状态筛选 / 人员管理 / 卡片化 / 安全区）
   ============================================================ */

/* 响应式显隐：默认手机端，隐藏桌面块 */
.desktop-only { display: none; }
.mobile-only { display: block; }
@media (min-width: 768px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

/* 主内容：底部安全区 + 更舒展的间距 */
#content { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }

/* 触控目标：按钮最小 44px 高 */
.btn { min-height: 46px; }
#topbar .icon-btn { min-width: 40px; min-height: 40px; }

/* ---------- 状态筛选标签（我的报销） ---------- */
.filter-tabs {
  position: sticky; top: 52px; z-index: 40;
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -14px 12px; padding: 10px 14px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.filter-tabs::-webkit-scrollbar { display: none; }
.ft-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  min-height: 36px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.ft-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.ft-n {
  font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 10px;
  background: #f2ebe0; color: var(--muted);
}
.ft-tab.on .ft-n { background: rgba(255,255,255,.28); color: #fff; }

/* ---------- 搜索框 ---------- */
.search-box { margin-bottom: 12px; }
.search-box input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #faf6f0; outline: none;
}
.search-box input:focus { border-color: var(--primary); background: #fff; }

/* ---------- 人员列表行 ---------- */
.staff-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
  min-height: 56px;
}
.staff-row:last-child { border-bottom: none; }
.staff-row:active { background: #f6f0e8; }
.sr-main { flex: 1; min-width: 0; }
.sr-name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 15px; font-weight: 600;
}
.sr-role {
  font-size: 11px; font-weight: 500;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 2px 8px; border-radius: 10px;
}
.sr-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.sr-status.ok { background: #dcfce7; color: var(--green); }
.sr-status.pending { background: #fef3c7; color: var(--amber); }
.sr-status.no { background: #fee2e2; color: var(--red); }
.sr-dept { font-size: 12px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-arrow { font-size: 24px; line-height: 1; color: #c2c9d6; flex-shrink: 0; }

/* ---------- 小卡片（组织架构/统计） ---------- */
.mini-card {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; background: #fdf8f2;
}
.mini-card:last-child { margin-bottom: 0; }
.mc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.mc-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 证件块 ---------- */
.cred-block, .cred-item {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; margin-bottom: 10px; background: #fdf8f2;
}
.cred-block:last-child, .cred-item:last-child { margin-bottom: 0; }
.cred-item .ci-head, .cred-block .ci-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14px;
}
.cred-item img {
  width: 100%; max-height: 240px; object-fit: contain;
  border-radius: 8px; margin-top: 8px; background: #f5efe6;
  cursor: zoom-in;
}
.cred-item .ci-meta { font-size: 11px; color: var(--muted); margin-top: 6px; word-break: break-all; }

/* ---------- 财务付款管理：手机卡片 ---------- */
.fd-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 10px; background: #fdf8f2;
}
.fdc-head { display: flex; align-items: center; gap: 10px; }
.fdc-chk { flex-shrink: 0; display: inline-flex; align-items: center; min-width: 28px; }
.fdc-chk input { width: 20px; height: 20px; accent-color: var(--primary); }
.fdc-amount { font-size: 18px; font-weight: 700; }
.fdc-status { font-size: 12px; }
.fdc-head .link { margin-left: auto; font-size: 13px; padding: 6px 4px; }
.fdc-body { margin-top: 8px; padding-left: 30px; }
.fdc-name { font-size: 14px; font-weight: 600; }
.fdc-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- 超窄屏（≤360px）顶栏徽章收紧 ---------- */
@media (max-width: 360px) {
  #userBadge { max-width: 128px; padding: 0 10px; font-size: 12px; }
  #userBadge .ub-role { display: none; }
  #content { padding-left: 12px; padding-right: 12px; }
  .filter-tabs { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
}

/* ---------- 桌面端微调 ---------- */
@media (min-width: 768px) {
  .filter-tabs { position: static; margin: 0 0 14px; padding: 0; border-bottom: none; background: transparent; }
  .btn { min-height: 0; }
}

/* ---------- 图片统一限制在容器内（手机端不溢出） ---------- */
.card img, .attach-list img, .cred-item img, .cred-block img,
.pick-thumb img, .qr-picker img, .cred-picker img, .pi-qr-picker img {
  max-width: 100%;
}
.attach-list img { width: 100%; max-width: 300px; object-fit: contain; }

/* ---------- 图片选择器缩略图 ---------- */
.pick-preview {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 10px;
}
.pick-thumb {
  position: relative; width: 96px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; background: #fdf8f2; overflow: hidden;
}
.pick-thumb .pick-img {
  width: 100%; height: 80px; object-fit: cover;
  border-radius: 6px; display: block; cursor: zoom-in; background: #f5efe6;
}
.pick-thumb .pick-doc {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  height: 80px; justify-content: center; cursor: pointer;
}
.pick-doc-ic { font-size: 26px; }
.pick-doc-name { font-size: 11px; color: var(--muted); width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-x {
  position: absolute; top: -6px; right: -6px;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: var(--red); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
input[type="file"] { max-width: 100%; }

/* ---------- 全屏灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 6px;
  -webkit-user-select: none; user-select: none;
}
.lightbox-x {
  position: absolute; top: 14px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.18); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-x:active { background: rgba(255,255,255,.32); }

/* ============================================================
   R14：首页改版（问候横幅 + 主卡 + 统计卡 + 快捷宫格）
   ============================================================ */

/* ---------- 问候横幅 ---------- */
.hero {
  position: relative;
  border-radius: 18px;
  padding: 18px 18px 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ff9d33 0%, #f5820d 52%, #e6700a 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(214,111,0,.28);
}
.hero::before {
  content: ''; position: absolute;
  right: -46px; top: -52px;
  width: 168px; height: 168px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.hero::after {
  content: ''; position: absolute;
  right: 24px; bottom: -70px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-row { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hero-greet { min-width: 0; }
.hg-hi { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: .5px; }
.hg-sub { margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.88); }
.hero-burger {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hero-main { position: relative; margin-top: 18px; }
.hm-label { font-size: 12.5px; color: rgba(255,255,255,.85); }
.hm-value { font-size: 34px; font-weight: 800; line-height: 1.15; margin-top: 4px; letter-spacing: .5px; }
.hm-foot { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.82); }

/* ---------- 统计卡（2列） ---------- */
.stat-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat2 {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.stat2:active { transform: scale(.985); }
.s2-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.s2-body { min-width: 0; display: flex; flex-direction: column; }
.s2-num { font-size: 20px; font-weight: 700; line-height: 1.2; }
.s2-label {
  font-size: 12px; color: var(--muted); margin-top: 2px;
  line-height: 1.3;
}
.stat2.v-orange .s2-icon { background: var(--primary-soft); color: var(--primary); }
.stat2.v-blue .s2-icon { background: #e8f1fe; color: #2f7ff0; }
.stat2.v-amber .s2-icon { background: #fef3c7; color: #b45309; }
.stat2.v-green .s2-icon { background: #dcfce7; color: #15803d; }

/* ---------- 快捷功能宫格 ---------- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.quick-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 4px 12px;
  border: none; background: none;
  border-radius: 14px;
  cursor: pointer;
}
.quick-tile:active { background: var(--primary-soft); }
.qt-icon {
  width: 48px; height: 48px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
}
.qt-label { font-size: 12px; color: var(--text); text-align: center; line-height: 1.25; }

/* ---------- 桌面端：统计卡 4 列 ---------- */
@media (min-width: 768px) {
  .stat-grid2 { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 22px 24px; }
  .hm-value { font-size: 38px; }
}

/* ---------- 超窄屏（≤360px）收紧 ---------- */
@media (max-width: 360px) {
  .hero { padding: 16px 15px; }
  .hg-hi { font-size: 19px; }
  .hm-value { font-size: 30px; }
  .stat2 { padding: 12px; gap: 10px; }
  .s2-icon { width: 38px; height: 38px; }
  .s2-num { font-size: 18px; }
  .qt-icon { width: 44px; height: 44px; }
}

/* ================================================================
   深色「Wise」主题 —— 覆盖浅色硬编码表面
   ================================================================ */
#topbar { background: #17171b; border-bottom: 1px solid var(--line); }
#topbar .icon-btn:active { background: var(--card-2); }
#userBadge { background: var(--primary); color: #161616; }
#userBadge .ub-role { color: #3a3a00; opacity: .8; }

#sidebar { background: #17171b; }
#sidebar .sb-head { border-bottom: 1px solid var(--line); }
.menu-item.active { background: var(--primary); color: #161616; }
.menu-item.active .menu-label { color: #161616; }
.menu-item .sub-item.active { color: var(--primary); }
.menu-group-head .mg-arrow { color: var(--muted); }

/* 表单控件 */
.form-item input, .form-item select, .form-item textarea,
.modal-card .form-item input, .modal-card .form-item select,
.fb-item input, .fb-item select, .chk {
  background: var(--card-2); color: var(--text); border-color: var(--line);
}
.form-item input::placeholder, .form-item textarea::placeholder { color: #6b6b74; }
.modal-card .form-item input[readonly] { background: #1a1a1f; color: var(--muted); }
.chk input { accent-color: var(--primary); }
.chk:has(input:checked) { border-color: var(--primary); color: var(--primary); }

/* 弹窗 */
.modal-card { background: #1c1c21; }

/* 卡片化表单 / 筛选栏 */
.nb-card { background: var(--card-2); border-color: var(--line); }
.filter-bar { background: var(--card-2); border-color: var(--line); }
.fd-card { background: var(--card-2); border-color: var(--line); }
.mini-card { background: var(--card-2); border-color: var(--line); }
.cred-block, .cred-item { background: var(--card-2); border-color: var(--line); }
.cred-item img { background: #141416; }
.pick-thumb { background: var(--card-2); border-color: var(--line); }
.pick-thumb .pick-img { background: #141416; }

/* 日期 / 月份选择器：统一深色、固定高度，避免手机端过长 */
input[type="date"], input[type="month"] {
  background: var(--card-2); color: var(--text);
  min-height: 0; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; box-sizing: border-box;
}
input[type="date"]:focus, input[type="month"]:focus { border-color: var(--primary); outline: none; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .8; }

/* 多选/下拉 */
.multi-head, .multi-drop { background: var(--card-2); color: var(--text); border-color: var(--line); }
.multi-drop { box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.multi-opt:hover { background: var(--card); }

/* 搜索 */
.search-box { background: var(--card-2); }
.search-box input { background: var(--card-2); color: var(--text); }
.search-box input:focus { background: var(--card-2); }

/* 流程步骤 */
.flow-step { background: var(--card-2); border-color: var(--line); }
.flow-step.current { background: var(--primary-soft); border-color: var(--primary); }
.flow-step .fs-dot { background: var(--primary); color: #161616; }

/* 徽章 */
.badge.withdrawn { background: rgba(99,102,241,.18); color: #a5b4fc; }
.badge.rejected, .badge.pending { background: rgba(248,113,113,.16); color: var(--red); }
.badge.approved { background: rgba(52,211,153,.16); color: var(--green); }

/* 财务付款页签 */
.ft-tab { background: var(--card-2); color: var(--muted); border-color: var(--line); }
.ft-tab.on { background: var(--primary); border-color: var(--primary); color: #161616; }
.ft-tab.on .ft-n { background: rgba(0,0,0,.18); color: #161616; }

/* 收款 / 付款卡 */
.pay-card { background: var(--card-2); border-color: var(--line); }

/* 附件占位 */
.att-thumb, .att-placeholder { background: var(--card-2); }

/* 登录卡 */
.auth-card { background: #1c1c21; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.login-wrap { background: radial-gradient(1200px 600px at 50% -10%, #23230a 0%, #141416 55%); }

/* 统计卡图标 */
.stat2.v-blue .s2-icon { background: rgba(47,127,240,.16); color: #60a5fa; }
.stat2.v-amber .s2-icon { background: rgba(245,158,11,.16); color: #fbbf24; }
.stat2.v-green .s2-icon { background: rgba(52,211,153,.16); color: var(--green); }
.stat2.v-orange .s2-icon { background: var(--primary-soft); color: var(--primary); }

/* ================================================================
   新版数据看板（仿 Wise）
   ================================================================ */
.db-greet { padding: 4px 2px 16px; }
.db-greet .dg-hi { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.db-greet .dg-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 黄色主卡（环形图 / 门店经营 可切换） */
.db-yellow {
  background: var(--primary); color: #161616;
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
  box-shadow: 0 8px 28px rgba(245,224,0,.18);
}
.db-yellow .dy-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.db-yellow .dy-title { font-size: 15px; font-weight: 800; flex: 0 0 auto; }
.db-yellow .dy-more { font-size: 12px; color: #5a5500; }
.db-yellow .dy-view { margin-top: 4px; }

/* 顶部切换标签 */
.db-yellow .dy-tabs { display: flex; background: rgba(0,0,0,.10); border-radius: 10px; padding: 3px; gap: 2px; flex: 0 0 auto; }
.db-yellow .dy-tab {
  border: 0; background: transparent; font-size: 12px; font-weight: 700;
  color: #6b6300; padding: 6px 12px; border-radius: 8px; min-height: 32px;
}
.db-yellow .dy-tab.active { background: #161616; color: #fff; }

/* 报销视图：环 + 金额 */
.db-yellow .dy-body { display: flex; align-items: center; gap: 16px; margin: 12px 0 4px; }
.db-yellow .dy-ring { flex: 0 0 auto; }
.db-yellow .dy-amt { flex: 1; min-width: 0; text-align: right; }
.db-yellow .dy-amt .da-num { font-size: 24px; font-weight: 800; line-height: 1.1; word-break: break-all; }
.db-yellow .dy-amt .da-lbl { font-size: 11px; color: #5a5500; margin-top: 3px; }
.db-yellow .dy-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; }
.db-yellow .dy-legend .lg { display: flex; align-items: center; gap: 6px; }
.db-yellow .dy-legend .sw { width: 10px; height: 10px; border-radius: 3px; }

/* 门店经营视图 */
.db-yellow .dy-store {
  width: 100%; height: 42px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.85); color: #161616;
  font-size: 13px; font-weight: 700; padding: 0 10px; margin: 10px 0 12px;
}
.db-yellow .dy-biz-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(0,0,0,.14); border-radius: 12px; overflow: hidden;
}
.db-yellow .dy-bm { background: var(--primary); padding: 12px; }
.db-yellow .dy-bm .bm-l { font-size: 11px; color: #5a5500; }
.db-yellow .dy-bm .bm-v { font-size: 19px; font-weight: 800; margin-top: 3px; line-height: 1.1; word-break: break-all; }
.db-yellow .dy-bm .bm-s { font-size: 11px; margin-top: 4px; line-height: 1.4; }
.db-yellow .dy-bm .bm-s .up { color: #c0392b; font-weight: 700; }
.db-yellow .dy-bm .bm-s .down { color: #0a7a3d; font-weight: 700; }
.db-yellow .dy-bm .bm-s .na { color: #6b6300; }
.db-yellow .dy-biz-loading { grid-column: 1 / -1; background: var(--primary); padding: 26px; text-align: center; font-size: 13px; color: #5a5500; }

/* 浅色卡（关键大数） */
.db-light {
  background: #ececf1; color: #161616;
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.db-light .dl-label { font-size: 13px; color: #6b6b76; }
.db-light .dl-big { font-size: 30px; font-weight: 800; line-height: 1.1; }
.db-light .dl-chg { font-size: 12px; color: #16a34a; text-align: right; }

/* 图表卡 */
.db-chart { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow); }
.db-chart .dc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.db-chart .dc-title { font-size: 14px; font-weight: 700; }
.db-chart .dc-sub { font-size: 12px; color: var(--muted); }
.db-chart svg { width: 100%; height: auto; display: block; }

/* 2 列深色小卡 */
.db-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.db-mini .dm {
  background: var(--card); border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.db-mini .dm .dm-n { font-size: 22px; font-weight: 800; }
.db-mini .dm .dm-l { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ================================================================
   门店经营（R18）
   ================================================================ */
.biz-selector { margin-bottom: 12px; }
.biz-select {
  width: 100%; height: 46px; padding: 0 12px;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; box-sizing: border-box;
}
.biz-select:focus { border-color: var(--primary); outline: none; }
.biz-select-static {
  min-height: 46px; display: flex; align-items: center; padding: 0 14px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 15px; font-weight: 600; box-sizing: border-box;
}
.biz-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.biz-metric {
  background: var(--card); border-radius: 14px; padding: 14px;
  box-shadow: var(--shadow); min-width: 0;
}
.biz-metric .bm-label { font-size: 12px; color: var(--muted); }
.biz-metric .bm-value { font-size: 22px; font-weight: 800; margin-top: 4px; line-height: 1.1; word-break: break-all; }
.biz-metric .bm-sub { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.biz-metric .bm-time { font-size: 11px; color: var(--muted); }
.bz-chip { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.bz-chip.up { background: rgba(248,113,113,.16); color: var(--red); }
.bz-chip.down { background: rgba(52,211,153,.16); color: var(--green); }
.bz-chip.na { background: var(--card-2); color: var(--muted); }
.chart-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  margin: 0 -4px; padding: 0 4px; touch-action: pan-x; }
.chart-scroll svg { display: block; }
.sc-tip { position: fixed; z-index: 1200; min-width: 118px; max-width: 200px;
  background: rgba(20,20,22,.96); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 9px; box-shadow: 0 8px 24px rgba(0,0,0,.5); pointer-events: none;
  transition: opacity .12s; }
.sc-tip-label { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 4px;
  text-align: center; }
.sc-tip-row { display: flex; align-items: center; gap: 6px; font-size: 11px;
  color: var(--text); white-space: nowrap; margin-top: 2px; }
.sc-dot-sm { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; display: inline-block; }

.biz-card { padding: 14px; margin-bottom: 12px; }
.biz-card-title {
  font-size: 14px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.biz-card-title .biz-count { font-size: 12px; color: var(--muted); font-weight: 500; }
.biz-legend { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); }
.biz-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin: 0 2px 0 6px; }
.biz-legend .lg-today { background: var(--primary); }
.biz-legend .lg-yesterday { background: #6b6b74; }

.biz-search {
  width: 100%; height: 44px; padding: 0 12px; margin-bottom: 10px;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; box-sizing: border-box;
}
.biz-search:focus { border-color: var(--primary); outline: none; }
.biz-cancel-list { display: flex; flex-direction: column; gap: 8px; }
.biz-cancel {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px;
}
.biz-cancel.late { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.55); }
.biz-cancel .bc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.biz-cancel .bc-channel { font-weight: 700; }
.biz-cancel .bc-sn, .biz-cancel .bc-customer { color: var(--muted); font-size: 12px; }
.biz-cancel .bc-late {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--red); color: #fff; padding: 2px 8px; border-radius: 999px;
}
.biz-cancel .bc-mid { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.biz-cancel .bc-reason { font-size: 12.5px; margin-top: 4px; }
.biz-cancel .bc-amt { font-size: 12px; color: var(--muted); margin-top: 4px; }
.biz-cancel .bc-dept { font-size: 11px; color: var(--muted); margin-top: 4px; }
.biz-foot { text-align: center; font-size: 11px; color: var(--muted); padding: 6px 0 18px; }
.biz-note { font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ================================================================
   逐人付款流程（R25）
   ================================================================ */
.payflow {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg); display: flex; flex-direction: column;
}
.pf-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.pf-prog { font-size: 14px; color: var(--muted); }
.pf-prog b { color: var(--primary); font-size: 16px; }
.pf-exit {
  background: var(--card-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; padding: 7px 16px;
}
.pf-scroll { flex: 1; overflow-y: auto; padding: 14px; box-sizing: border-box; }
.pf-card {
  background: var(--card); border-radius: var(--radius); padding: 16px;
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.pf-name { font-size: 18px; font-weight: 800; }
.pf-acc { font-size: 13px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.pf-qr {
  margin: 14px auto; width: 200px; height: 200px;
  background: #fff; border-radius: 14px; padding: 10px; box-sizing: border-box;
}
.pf-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pf-noqr {
  margin: 14px auto; max-width: 260px; text-align: center;
  background: var(--card-2); color: var(--amber); border: 1px dashed var(--line);
  border-radius: 12px; padding: 22px 14px; font-size: 13px; line-height: 1.7;
}
.pf-amount {
  text-align: center; font-size: 34px; font-weight: 800;
  color: var(--primary); margin: 6px 0 12px; word-break: break-all;
}
.pf-reimb-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.pf-reimb {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--card-2); border-radius: 10px; padding: 9px 11px; margin-bottom: 7px;
  flex-wrap: wrap;
}
.pf-reimb .pr-id { font-size: 13px; font-weight: 700; flex: 1 1 100%; }
.pf-reimb .pr-meta { font-size: 11px; color: var(--muted); flex: 1; }
.pf-reimb .pr-amt { font-size: 13px; font-weight: 700; white-space: nowrap; }
.pf-upload-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.pf-file { display: block; margin-bottom: 10px; }
.pf-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf-file span {
  display: block; text-align: center; padding: 12px;
  background: var(--card-2); border: 1px dashed var(--line); border-radius: 10px;
  font-size: 14px; color: var(--text);
}
.pf-preview {
  display: none; width: 100%; max-height: 320px; object-fit: contain;
  border-radius: 10px; margin-bottom: 12px; background: var(--card-2);
}
.pf-confirm { width: 100%; padding: 14px; font-size: 16px; font-weight: 800; }
.pf-confirm:disabled { opacity: .5; }

/* 完成页 */
.pf-done-hero { text-align: center; padding: 18px 0 8px; }
.pf-check {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(52,211,153,.15); color: var(--green);
  font-size: 36px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pf-done-title { font-size: 18px; font-weight: 800; }
.pf-done-total { font-size: 34px; font-weight: 800; color: var(--primary); margin-top: 6px; word-break: break-all; }
.pf-done-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pf-store-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 800; margin-bottom: 2px;
}
.pf-store-total { color: var(--primary); }
.pf-store-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.pf-person-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card-2); border-radius: 9px; padding: 8px 11px; margin-bottom: 6px;
  font-size: 13px;
}
.pf-person-amt { font-weight: 700; }
.pf-done-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* 付款记录列表 */
.pr-batch {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  margin-bottom: 10px; background: var(--card-2);
}
.prb-head { display: flex; align-items: center; justify-content: space-between; }
.prb-no { font-size: 14px; font-weight: 800; }
.prb-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.prb-total { font-size: 22px; font-weight: 800; color: var(--primary); margin-top: 4px; }
.prb-detail { margin-top: 10px; }
.prb-actions { margin-bottom: 10px; }
.prb-actions .btn { width: 100%; padding: 12px; }
.prb-store {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  margin-bottom: 8px; background: var(--card);
}
.prb-store-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; flex-wrap: wrap; gap: 6px; }
.prb-person {
  display: flex; justify-content: space-between; font-size: 12.5px;
  padding: 6px 4px; border-top: 1px solid var(--line); margin-top: 6px;
}
.prb-proof-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 8px; }
.prb-proof { margin-bottom: 12px; }
.prb-proof .prp-name { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.prb-proof img {
  width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
}


/* 审批记录（含付款凭证） */
.appr-list { display: flex; flex-direction: column; gap: 10px; }
.appr-item {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
}
.appr-line { font-size: 13px; color: var(--text); line-height: 1.5; }
.appr-proof {
  display: block; width: 100%; max-height: 360px; object-fit: contain;
  border-radius: 8px; margin-top: 8px; background: #141416; cursor: zoom-in;
}

/* 边缘右滑返回指示器 */
#edgeBack {
  position: fixed; left: 0; top: 50%; z-index: 9999;
  width: 48px; height: 48px; margin-top: -24px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s ease;
  pointer-events: none;
}
#edgeBack .eb-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(245,224,0,.92); color: #161616;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}

/* 本月合计（实收、顺丰配送费、扣除后实收） */
.biz-month { padding: 14px; margin-bottom: 12px; }
.biz-month .bzm-key { font-size: 12px; color: var(--muted); font-weight: 500; }
.biz-month .bzm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.biz-month .bzm-row:last-child { border-bottom: none; }
.biz-month .bzm-label { font-size: 13px; color: var(--text); }
.biz-month .bzm-val { font-size: 16px; font-weight: 700; white-space: nowrap; }
.biz-month .bzm-row.fee .bzm-label { color: var(--muted); }
.biz-month .bzm-row.fee .bzm-val { color: var(--amber); font-weight: 600; }
.biz-month .bzm-row.net {
  margin-top: 2px; padding: 12px 12px; border-bottom: none; border-radius: 12px;
  background: var(--primary-light);
}
.biz-month .bzm-row.net .bzm-label { color: var(--primary); font-weight: 600; }
.biz-month .bzm-row.net .bzm-val { color: var(--primary); font-size: 18px; }

/* ---------- 登录记录 ---------- */
.filter-card { padding: 14px; margin-bottom: 12px; }
.filter-card .filter-row { display: flex; gap: 10px; margin-bottom: 10px; }
.filter-card .filter-row:last-child { margin-bottom: 0; }
.filter-card .filter-row input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 14px;
}
.filter-card .filter-row input[type="date"] { flex: 1.1; }
.filter-card .btn { flex: 1; height: 44px; }

.lg-list { display: flex; flex-direction: column; gap: 12px; }
.lg-card { padding: 14px; }
.lg-card .lg-head { display: flex; align-items: center; gap: 10px; }
.lg-card .lg-name { font-size: 16px; font-weight: 700; }
.lg-card .lg-role {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.lg-card .role-employee { background: rgba(148,163,184,.18); color: #cbd5e1; }
.lg-card .role-manager { background: rgba(251,191,36,.18); color: var(--amber); }
.lg-card .role-finance { background: rgba(52,211,153,.18); color: var(--green); }
.lg-card .role-admin { background: rgba(245,224,0,.18); color: var(--primary); }
.lg-card .lg-time { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.lg-card .lg-loc {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  font-size: 14px; color: var(--text);
}
.lg-card .lg-addr { flex: 1; line-height: 1.4; }
.lg-card .lg-map {
  flex-shrink: 0; font-size: 13px; color: var(--primary); white-space: nowrap;
  min-height: 24px;
}
.lg-card .lg-loc.no-geo { color: var(--muted); font-size: 13px; }
.lg-card .lg-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.lg-card .lg-sub.dept { margin-top: 4px; }
.lg-card .lg-sub.device { color: var(--text); font-size: 13px; }

/* 登录页定位提示 */
.geo-hint {
  font-size: 12px; color: var(--muted); text-align: center;
  margin: 2px 0 12px; line-height: 1.5;
}
