/* 妄想电竞报单系统 · 样式
 *
 * 一套 CSS 同时服务三种角色：老板在电脑上核账，客服在电脑上建单，
 * 打手在手机上抢单。所以布局必须窄屏可用，不能做成「先按宽屏设计、手机凑合」。
 *
 * 没有用任何框架：这个项目要一个人维护五年，多一个依赖就多一次「升级后样式错位」。
 */

:root {
  --bg: #0c0e13;
  --bg-soft: #11141b;
  --panel: #161a23;
  --panel-2: #1c2230;
  --line: #262e3d;
  --line-soft: #1e2531;
  --text: #e9ecf3;
  --muted: #8b94a8;
  --faint: #5d6678;
  --accent: #ff4655;
  --accent-soft: rgba(255, 70, 85, 0.14);
  --blue: #4d7cff;
  --blue-soft: rgba(77, 124, 255, 0.14);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #f5a623;
  --warn-soft: rgba(245, 166, 35, 0.14);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  padding: 0 18px;
  background: rgba(12, 14, 19, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.brand::before {
  content: "";
  width: 8px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #7a1f28);
  display: block;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.who-name { color: var(--text); font-weight: 600; }
.who-role {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- 布局 ---------- */

.shell {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

.sidenav {
  border-right: 1px solid var(--line-soft);
  padding: 16px 10px;
  position: sticky;
  top: 56px;
  align-self: start;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.sidenav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  margin-bottom: 2px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.sidenav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.sidenav a.active { background: var(--accent-soft); color: #ff8792; font-weight: 600; }
.sidenav .ico { width: 17px; text-align: center; opacity: 0.9; font-size: 15px; }

.nav-group {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--faint);
  padding: 14px 12px 6px;
  text-transform: uppercase;
}

.main {
  padding: 22px 24px 80px;
  max-width: 1180px;
  width: 100%;
}

/* 手机上的底部标签栏，桌面上不显示 */
.tabbar { display: none; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .main { padding: 16px 14px calc(76px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    background: rgba(17, 20, 27, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1;
    padding: 9px 2px 8px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.25;
  }
  .tabbar a.active { color: var(--accent); }
  .tabbar .ico { display: block; font-size: 18px; margin-bottom: 2px; }
}

/* ---------- 标题 ---------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }

h2 { font-size: 16px; margin: 26px 0 10px; font-weight: 650; }
h2:first-child { margin-top: 0; }
h3 { font-size: 14px; margin: 18px 0 8px; color: var(--muted); font-weight: 600; }

/* ---------- 卡片 ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
}
.card.tight { padding: 14px 16px; }
.card.flat { background: var(--bg-soft); }

.grid { display: grid; gap: 12px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); } /* 1fr 会被表格最小宽度撑开整页 */
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .k { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.stat .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .u { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 2px; }

/* ---------- 表格 ---------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, 0.018); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.no { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }

.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: 0.5; }

/* ---------- 徽章 ---------- */

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tag.open      { background: var(--blue-soft);   color: #8aa8ff; border-color: rgba(77,124,255,.3); }
.tag.taken     { background: var(--warn-soft);   color: #ffc46b; border-color: rgba(245,166,35,.3); }
.tag.reported  { background: rgba(160,120,255,.14); color: #b79bff; border-color: rgba(160,120,255,.3); }
.tag.approved  { background: var(--ok-soft);     color: #6ee7b7; border-color: rgba(52,211,153,.3); }
.tag.rejected  { background: rgba(255,71,87,.13); color: #ff8b95; border-color: rgba(255,71,87,.3); }
.tag.void      { background: #1b2029; color: var(--faint); border-color: var(--line); }
.tag.online    { background: var(--blue-soft); color: #8aa8ff; }
.tag.offline   { background: var(--warn-soft); color: #ffc46b; }
.tag.gray      { background: var(--panel-2); color: var(--muted); border-color: var(--line); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s, transform .06s;
  white-space: nowrap;
}
.btn:hover { background: #232a3a; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #ff5c69; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #05261a; font-weight: 600; }
.btn.ok:hover { background: #4ade9f; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 表单 ---------- */

.field { margin-bottom: 14px; }
.field > label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }

/* 不写 type 的 <input class="inp"> 也要套这套样式（rc13.4 修，原来显示成浏览器默认灰框） */
input:not([type]), input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 68px; }
select { appearance: none; background-image: none; }

.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline > .field { flex: 1; min-width: 130px; margin-bottom: 0; }

/* 金额输入大一点，因为客服一天要输几十次 */
input.money {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 11px 14px;
}

/* ---------- 提示条 ---------- */

.banner {
  padding: 10px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner.warn { background: rgba(245, 166, 35, .12); color: #ffc46b; border-bottom: 1px solid rgba(245,166,35,.25); }
.banner.danger { background: rgba(255, 70, 85, .13); color: #ff8b95; border-bottom: 1px solid rgba(255,70,85,.28); }

.flash {
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid;
}
.flash.ok    { background: var(--ok-soft);  border-color: rgba(52,211,153,.32);  color: #8ff0c8; }
.flash.err   { background: rgba(255,70,85,.11); border-color: rgba(255,70,85,.32); color: #ff9aa3; }
.flash.warn  { background: var(--warn-soft); border-color: rgba(245,166,35,.32); color: #ffd08d; }

/* ---------- 登录页 ---------- */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(255, 70, 85, 0.13), transparent 70%),
    var(--bg);
}
.login-box { width: 100%; max-width: 372px; }
.login-logo { text-align: center; margin-bottom: 26px; }
.login-logo .t { font-size: 26px; font-weight: 800; letter-spacing: 1px; }
.login-logo .t span { color: var(--accent); }
.login-logo .s { font-size: 13px; color: var(--faint); margin-top: 6px; letter-spacing: 2px; }
.login-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.login-head h1 { font-size: 18px; font-weight: 700; margin: 0; }
.login-head a { font-size: 13px; color: var(--faint); text-decoration: none; }
.login-head a:hover { color: var(--accent); }

/* ---------- 未登录首页：三个入口 ---------- */

.portal-box { width: 100%; max-width: 420px; }
.portal-list { display: grid; gap: 12px; }
.portal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  min-height: 76px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.portal-card:hover,
.portal-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.portal-card:active { transform: none; }
.portal-card.hot { border-color: rgba(255, 70, 85, 0.45); background: linear-gradient(135deg, var(--accent-soft), var(--panel) 70%); }
.portal-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 22px;
}
.portal-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.portal-name { font-size: 17px; font-weight: 700; }
.portal-desc { font-size: 13px; color: var(--faint); }
.portal-go { flex: none; font-size: 26px; color: var(--faint); line-height: 1; }
.portal-card:hover .portal-go { color: var(--accent); }
.portal-foot { text-align: center; font-size: 12px; color: var(--faint); margin-top: 22px; line-height: 1.8; }

/* ---------- 分账预览 ---------- */

.split {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  font-size: 14px;
}
.split-row .who2 { color: var(--muted); font-size: 13px; }
.split-row .amt {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.split-row.keep { background: var(--accent-soft); border-color: rgba(255,70,85,.24); }
.split-row.keep .amt { color: #ff8792; }

/* ---------- 金额 / 重要数字 ---------- */

.money { font-variant-numeric: tabular-nums; }
.big-money { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }

/* 群消息文本框：等宽字体，方便一眼看出空格对不对 */
.msgbox {
  width: 100%;
  min-height: 96px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  background: var(--bg);
  color: #cfd6e4;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 群消息小标题行：左边名字，右边「复制」按钮 */
.msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

hr.sep { border: none; border-top: 1px solid var(--line-soft); margin: 18px 0; }

/* 打手卡片（接单大厅，手机上主要看这个） */
.order-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 15px 16px;
  margin-bottom: 10px;
}
.order-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.order-card .amt { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.4px; }
.order-card .amt small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.order-card .item { font-size: 15px; font-weight: 550; margin-bottom: 3px; }
.order-card .meta { font-size: 12.5px; color: var(--faint); display: flex; gap: 10px; flex-wrap: wrap; }
.order-card .foot { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.seats { display: flex; gap: 5px; align-items: center; }
.seat {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line); border: 1px solid var(--faint);
}
.seat.filled { background: var(--ok); border-color: var(--ok); }

/* ---------- 后台：价目表导入与逐档编辑 ---------- */

.import-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.import-form input[type="file"] {
  font-size: 13px; padding: 8px 10px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--panel); flex: 1 1 260px; min-width: 0;
}

/* 分类那一行：名字 / 排序 / 状态 / 保存，做成一条窄表单 */
.cat-form { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.cat-form.add { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.cat-form .inp { min-width: 0; }
.cat-form .inp.num { width: 78px; flex: none; }

/* 一个商品组 = 一张海报 */
.group-card { padding: 0; overflow: hidden; }
.group-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 16px; background: var(--panel-soft, rgba(0, 0, 0, .02));
  border-bottom: 1px solid var(--line-soft);
}
.group-head b { font-size: 15px; }

/* 一个档位：默认收起，点开才显示表单 */
.tier { border-bottom: 1px solid var(--line-soft); }
.tier:last-child { border-bottom: none; }
.tier > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 16px;
}
.tier > summary::-webkit-details-marker { display: none; }
.tier > summary::before {
  content: "▸"; color: var(--faint); font-size: 11px; flex: none;
  transition: transform .12s ease;
}
.tier[open] > summary::before { transform: rotate(90deg); }
.tier > summary:hover { background: var(--panel-soft, rgba(0, 0, 0, .025)); }
.tier[open] > summary { background: var(--panel-soft, rgba(0, 0, 0, .03)); }
.tier-name { font-weight: 550; }
.tier-price { font-variant-numeric: tabular-nums; font-weight: 650; }
.tier-price .unit { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: 1px; }

.tier-body { padding: 4px 16px 16px; }

/* 档位表单：两列，长文本占满一行 */
.tier-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.tier-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11.5px; color: var(--muted); font-weight: 500;
}
.tier-form .inp {
  width: 100%; box-sizing: border-box;
  padding: 7px 9px; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--text);
  font-family: inherit;
}
.tier-form .inp:focus { outline: 2px solid var(--accent-soft, rgba(64, 128, 255, .35)); outline-offset: -1px; }
.tier-form .span2 { grid-column: 1 / -1; }
.tier-form textarea.inp { resize: vertical; line-height: 1.6; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.toggle-form { margin-top: 10px; }

.tag.warn { background: rgba(240, 170, 40, .16); color: #a86b00; }

@media (max-width: 640px) {
  .tier-form { grid-template-columns: 1fr; }
  .cat-form { flex-wrap: wrap; }
}

/* 页脚：版本号 + 当前营业日。审核方要能一眼看出跑的是哪一版。 */
.pagefoot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line-soft);
}

/* ---------- 窄屏（390px 手机）修补 ----------
   2026-10-26 自检：iPhone 宽度下顶栏「改密码 / 名字 / 退出」挤出屏幕，
   页面因此可以横向滚动，底部标签栏的第三项被推到屏幕外。
   这里把顶栏收紧、角色标签藏起来、名字截断，并禁止横向滚动。 */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 15px; gap: 6px; letter-spacing: 0; }
  .brand::before { width: 6px; height: 16px; }
  .who { gap: 6px; font-size: 12px; min-width: 0; }
  .who-role { display: none; }
  .who-name { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .btn.sm { padding: 4px 9px; font-size: 12px; white-space: nowrap; }
  .tabbar a { min-width: 0; }
  .pagefoot { flex-direction: column; gap: 4px; }
  /* 手机上次要的表格列藏起来，重要的列不用左右滑 */
  .hide-narrow { display: none; }
  .page-head h1 { font-size: 19px; }
  .big-money { font-size: 20px; }
}

/* ---------- 建单页：本店 / 外店切换、打字搜索（2026-10-28） ---------- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-item { position: relative; cursor: pointer; }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item span { display: block; padding: 8px 22px; font-weight: 600; color: var(--muted); }
.seg-item input:checked + span { background: var(--accent); color: #fff; }
.mb12 { margin-bottom: 12px; }
.picker { position: relative; }
.picker-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 300px; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.picker-item { padding: 9px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover { background: var(--accent-soft); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filter-bar .field { margin: 0; min-width: 150px; }
.filter-bar .field.grow { flex: 1; min-width: 220px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-soft); }
.tab { padding: 8px 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.inline-rename { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-rename .inp { width: 120px; padding: 5px 8px; font-size: 14px; }
/* 名字后面跟的编号（L0001 / D001）：灰色小号等宽，和名字分得开（2026-10-28） */
.code { font-family: var(--mono, ui-monospace, monospace); font-size: .82em; color: var(--faint); margin-left: 1px; }
/* 俱乐部倒贴（2026-10-28）：利润是负数时整行标红 */
.split-row.neg { background: rgba(255, 70, 85, .14); border-color: rgba(255, 70, 85, .5); }
.split-row.neg .amt, .split-row.neg .who2 { color: #ff8792; }
.rate-edit { border-top: 1px solid var(--line-soft); padding-top: 12px; }
/* ---------- 审计日志（2026-10-28 看得懂的版本） ---------- */
.audit-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.audit-row:last-child { border-bottom: 0; }
.audit-clock { color: var(--faint); font-size: 13px; flex: none; width: 46px; }
.audit-row .tag { flex: none; }
.audit-text { flex: 1; min-width: 0; line-height: 1.6; }
.tag.audit-订单 { background: rgba(80, 140, 255, .15); color: #8db4ff; }
.tag.audit-钱 { background: rgba(255, 190, 70, .15); color: #ffd08d; }
.tag.audit-人员 { background: rgba(52, 211, 153, .15); color: #8ff0c8; }
.tag.audit-设置 { background: rgba(170, 130, 255, .15); color: #c9b2ff; }
/* ---------- VIP 图标（2026-10-28 第 4 步，涛哥自己设计的一套） ----------
   图标按同一个框裁的，等级越高画面越大，这是设计本意，不要各自放大填满。 */
.vip-icon { display: inline-block; vertical-align: middle; object-fit: contain; }
.vip-icon.sm { width: 30px; height: 30px; }
.vip-icon.md { width: 48px; height: 48px; }
.vip-icon.lg { width: 112px; height: 112px; flex: none; }
.vip-card { display: flex; gap: 16px; align-items: center; }
.vip-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.vip-table .inp { max-width: 160px; }
/* ---------- 员工档案（2026-10-28 第 5 步） ---------- */
.kv { display: grid; gap: 6px; }
.staff-kind { border-top: 1px solid var(--line-soft); padding: 10px 0; }
.staff-kind h3 { margin: 0 0 6px; font-size: 15px; }
.staff-files { display: grid; gap: 4px; margin-bottom: 8px; }
.staff-file { display: flex; gap: 10px; align-items: center; }
.upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.export-pw { font-size: 22px; letter-spacing: 1px; padding: 4px 10px; display: inline-block; margin: 6px 0; user-select: all; }
/* 文件选择按钮跟深色主题走（浏览器默认是浅灰色的） */
input[type=file] { color: var(--muted); font-size: 13px; max-width: 100%; }
input[type=file]::file-selector-button {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line, #2a2f3a);
  border-radius: 8px; padding: 6px 12px; margin-right: 8px; cursor: pointer; font: inherit;
}
/* 俱乐部盈利是负数（2026-10-28 第 6 步） */
.stat.neg .v { color: #ff8792; }
.neg-text { color: #ff8792; }
.mt12 { margin-top: 12px; }
/* ---------- 打手排行 / 金银铜牌（2026-10-28 第 6 步） ---------- */
.medal-icon { width: 28px; height: 28px; vertical-align: middle; object-fit: contain; }
.medal-icon.lg { width: 96px; height: 96px; }
.medal-row { display: flex; gap: 24px; flex-wrap: wrap; }
.medal-box { text-align: center; min-width: 120px; }
.rank-table td { padding-top: 6px; padding-bottom: 6px; }
.rank-no { width: 36px; font-size: 18px; }

/* 2026-10-28 rc22：hidden 属性一律藏住（.btn-row 等 display:flex 会把它盖掉，建单页的人数单选框就露出来了） */
[hidden] { display: none !important; }
/* 手机上表格不挤成一个字一行，横着滑（打手「我的工资」、排行榜） */
@media (max-width: 640px) {
  .table-wrap table { min-width: 560px; }
  /* 排行榜只有 4 列，放得下就别横滑（2026-11-13 重拍说明书时发现单数、金额被挤到右边） */
  .table-wrap table.rank-table { min-width: 0; }
  .rank-table th, .rank-table td { padding-left: 5px; padding-right: 5px; }
}

/* 2026-10-30 客户与储值：查询老板 */
.search-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-row .inp { flex: 1 1 260px; max-width: 420px; }
