/* ============================================================
   绥安洗车 PC 管理后台（设计稿）— 拷贝自绥安食品 PC 后台 app.css，
   末尾「洗车后台补充」一节为洗车专用样式。以下为食品原文：
   绥安食品 商户端 PC 网页版 — 设计基线
   token 来源：apps/wechat-miniprogram/app.wxss 的 page {}
   - 颜色 / 字体族 / 阴影色值 1:1 照抄
   - 尺寸类按 1rpx = 0.5px 换算（750rpx = 375pt 设计稿）
   - 正文 14px、表格行高 44px：后台观看距离比手机远，不照搬手机字号
   ============================================================ */
:root {
  --blue: #0b2f63;
  --blue-700: #123f7e;
  --blue-500: #2a5fa6;
  --blue-bg: #e9f0f8;
  --hero: #0b2f63;
  --hero-2: #082651;
  --hero-3: #103a78;

  --green: #3d6b2f;
  --green-600: #467a32;
  --green-500: #5b8f3f;
  --green-bg: #eaf1e0;

  --gold: #b79a55;
  --gold-2: #a4873f;
  --gold-bg: #f4edd9;

  --red: #d2483a;

  --bg: #f4f3ec;
  --bg2: #eef2e1;
  --card: #ffffff;
  --card-2: #fbfaf4;

  --ink: #22271d;
  --ink-2: #5e6354;
  --ink-3: #8f9384;
  --ink-on-dark: #eef2e6;
  --ink-on-dark-2: #aebbcf;

  --line: rgba(24, 36, 16, .09);
  --line-2: rgba(24, 36, 16, .05);

  /* 1rpx = 0.5px */
  --r-card: 18px;   /* 36rpx */
  --r-lg: 22px;     /* 44rpx */
  --r-sm: 12px;     /* 24rpx */
  --r-pill: 999px;

  --sh-card: 0 6px 22px rgba(20, 40, 20, .06), 0 1px 2px rgba(20, 40, 20, .04);
  --sh-pop: 0 14px 44px rgba(8, 20, 44, .20);
  --sh-soft: 0 2px 10px rgba(20, 40, 20, .05);

  --font-serif: 'Songti SC', 'STSong', serif;
  --font-sans: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-head: var(--font-serif);

  /* PC 专属骨架尺寸 */
  --sidebar-w: 232px;
  --topbar-h: 56px;
  --row-h: 44px;
  --gutter: 24px;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { min-width: 1280px; }

button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.serif { font-family: var(--font-head); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }

/* ============================================================
   1. 骨架：左侧导航 + 顶栏 + 内容区
   ============================================================ */
.shell { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(165deg, var(--hero-3) 0%, var(--hero) 45%, var(--hero-2) 100%);
  color: var(--ink-on-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.sidebar .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .08); pointer-events: none; }
.sidebar .ring.r1 { width: 230px; height: 230px; right: -110px; top: -80px; }
.sidebar .ring.r2 { width: 150px; height: 150px; right: -50px; top: -30px; border-color: rgba(183, 154, 85, .28); }
.sidebar .ring.r3 { width: 300px; height: 300px; left: -160px; bottom: -180px; border-color: rgba(255, 255, 255, .05); }

.side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 18px;
  position: relative; z-index: 2;
}
/* 品牌 Logo 使用完整 JPEG 原图；容器裁切圆角，不裁切图像内容。 */
.side-logo {
  width: 38px; height: 38px; border-radius: 12px; background: #fff; flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.side-brand img { width: 30px; height: 30px; object-fit: contain; }
.side-brand .bt { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.side-brand .bs { font-size: 11px; color: var(--ink-on-dark-2); margin-top: 2px; letter-spacing: .5px; }

.side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 16px; position: relative; z-index: 2; }
.side-scroll::-webkit-scrollbar { width: 0; }

.side-group { margin-top: 14px; }
.side-group:first-child { margin-top: 2px; }
.side-gt {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 8px;
  font-size: 11px; letter-spacing: 2px; color: rgba(174, 187, 207, .72);
}
.side-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px; margin-bottom: 2px;
  border-radius: 10px; cursor: pointer;
  font-size: 13.5px; color: rgba(238, 242, 230, .82);
  transition: background .14s, color .14s;
}
.side-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-item.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.side-item.on svg { opacity: 1; }
.side-item svg { opacity: .72; flex: 0 0 auto; }

.side-foot {
  padding: 12px 18px 16px; position: relative; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11px; color: rgba(174, 187, 207, .6); line-height: 1.6;
}

/* --- 主区 --- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.topbar .tb-title { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.topbar .tb-sub { font-size: 12px; color: var(--ink-3); }

.content { flex: 1; min-height: 0; overflow-y: auto; padding: var(--gutter); }
.content::-webkit-scrollbar { width: 8px; height: 8px; }
.content::-webkit-scrollbar-thumb { background: rgba(24, 36, 16, .14); border-radius: 4px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content.flush { padding: 0; display: flex; min-height: 0; overflow: hidden; }
/* 每次渲染的独立容器（见 app.js go()）：分栏页需要把 flex 传递下去 */
.page-root { min-width: 0; }
.content.flush > .page-root { display: flex; flex: 1; min-height: 0; width: 100%; }

/* --- 顶栏账号下拉（原小程序 admin-profile 商户中心）--- */
.acct { position: relative; }
.acct-btn {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 10px 0 8px; border-radius: var(--r-pill);
  background: transparent; border: none; cursor: pointer;
  transition: background .14s;
}
.acct-btn:hover { background: var(--bg2); }
.acct-av {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
}
.acct-nm { font-size: 13px; font-weight: 600; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acct-pop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 268px; z-index: 300;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-pop);
  overflow: hidden; display: none;
}
.acct-pop.open { display: block; animation: popIn .16s ease both; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.acct-card {
  background: linear-gradient(160deg, var(--hero-3) 0%, var(--hero) 45%, var(--hero-2) 100%);
  color: var(--ink-on-dark); padding: 16px; position: relative; overflow: hidden;
}
.acct-card .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .1); }
.acct-card .ring.r1 { width: 150px; height: 150px; right: -60px; top: -60px; }
.acct-card .ring.r2 { width: 90px; height: 90px; right: -20px; top: -20px; border-color: rgba(183, 154, 85, .3); }
.acct-card .ac-in { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
/* 对应 admin-profile.wxss 的 .id-emblem { background:#fff; border-radius:30rpx; padding:8rpx } */
.ac-logo {
  width: 40px; height: 40px; border-radius: 13px; background: #fff; flex: 0 0 40px; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}
.acct-card img { width: 100%; height: 100%; object-fit: contain; }
.acct-card .ac-nm { font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.acct-card .ac-sub { font-size: 11.5px; color: var(--ink-on-dark-2); margin-top: 2px; }

.acct-sec { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.acct-sec:last-child { border-bottom: none; }
.acct-lb { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 8px; }
.acct-row {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 6px;
  border-radius: 9px; cursor: pointer; font-size: 13px;
}
.acct-row:hover { background: var(--bg2); }
.acct-row.danger { color: var(--red); }

/* ============================================================
   2. 卡片 / 章节
   ============================================================ */
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); }
.card-pad { padding: 18px 20px; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 2px 12px; }
.sec-h .t { font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.sec-h .more { font-size: 12px; color: var(--ink-3); cursor: pointer; }

/* 页内操作条：标题在顶栏，这里只放该页的动作按钮与说明 */
.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.page-head .ph-s { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ============================================================
   3. 状态胶囊 Pill
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.pill--ok { background: var(--green-bg); color: var(--green-600); }
.pill--info { background: var(--blue-bg); color: var(--blue-500); }
.pill--mute { background: #eceadf; color: #8a8f7c; }
.pill--warn { background: var(--gold-bg); color: var(--gold-2); }
.pill--ondark { background: rgba(255, 255, 255, .16); color: #fff; }
.pill .pd { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ============================================================
   4. 按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 18px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; border: none; cursor: pointer;
  font-family: var(--font-sans); line-height: 1; white-space: nowrap;
  transition: transform .08s, filter .15s, box-shadow .15s;
  background: transparent;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(61, 107, 47, .26); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11, 47, 99, .26); }
.btn--ghost { color: var(--green-600); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn--ghost-blue { color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--mute { background: #e7e6db; color: #9a9e8c; }
.btn--line { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.btn--line:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(24, 36, 16, .2); }
.btn--danger { color: var(--red); box-shadow: inset 0 0 0 1.5px rgba(210, 72, 58, .5); }
.btn--sm { height: 28px; padding: 0 12px; font-size: 12.5px; gap: 5px; }
.btn--block { width: 100%; }

/* 图标按钮 */
.ibtn {
  width: 30px; height: 30px; border-radius: 9px; border: none; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink-2); transition: background .14s, color .14s;
}
.ibtn:hover { background: var(--bg2); color: var(--ink); }
.ibtn.danger:hover { background: rgba(210, 72, 58, .1); color: var(--red); }

/* ============================================================
   5. chip / 分段泳道
   ============================================================ */
.segs { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .14s, color .14s, box-shadow .14s;
}
.seg:hover { box-shadow: inset 0 0 0 1px rgba(24, 36, 16, .2); }
.seg.on { background: var(--ink); color: #fff; box-shadow: none; }
.seg .cnt { font-size: 11.5px; opacity: .68; }
.seg.on .cnt { opacity: .85; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; cursor: pointer;
  background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: all .14s;
}
.chip.on { background: var(--green-bg); color: var(--green-600); box-shadow: inset 0 0 0 1.5px var(--green); }
.chip.on.blue { background: var(--blue-bg); color: var(--blue-500); box-shadow: inset 0 0 0 1.5px var(--blue-500); }

/* ============================================================
   6. 表格
   ============================================================ */
.tbl-wrap { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow-x: auto; }
.tbl-wrap::-webkit-scrollbar { height: 8px; }
.tbl-wrap::-webkit-scrollbar-thumb { background: rgba(24, 36, 16, .14); border-radius: 4px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  height: 40px; padding: 0 14px; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .5px;
  background: var(--card-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  height: var(--row-h); padding: 8px 14px;
  border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle;
}
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--card-2); }
.tbl tbody tr.sel { background: var(--blue-bg); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td .tnum { white-space: nowrap; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .act .btn { margin-left: 6px; }
.tbl-empty { padding: 48px 0; text-align: center; color: var(--ink-3); font-size: 13px; }

.thumb {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
  background: var(--bg2);
}

.price { font-weight: 800; color: var(--green-600); letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.price .cur { font-size: .68em; font-weight: 700; margin-right: 1px; }
.price-blue { color: var(--blue); }

/* ============================================================
   7. 右侧抽屉
   ============================================================ */
.mask {
  position: fixed; inset: 0; background: rgba(15, 20, 12, .38); z-index: 400;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; z-index: 410;
  background: var(--card); box-shadow: var(--sh-pop);
  display: flex; flex-direction: column;
  animation: slideIn .24s cubic-bezier(.2, .8, .2, 1);
}
.drawer.wide { width: 720px; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.dr-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.dr-head .dr-t { font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; }
.dr-body::-webkit-scrollbar { width: 6px; }
.dr-body::-webkit-scrollbar-thumb { background: rgba(24, 36, 16, .14); border-radius: 3px; }
.dr-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--line); flex: 0 0 auto;
}

/* ============================================================
   8. 模态弹层
   ============================================================ */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 410;
  width: 420px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-pop);
  animation: modalIn .2s cubic-bezier(.2, .8, .2, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal .md-head { padding: 20px 22px 4px; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.modal .md-body { padding: 12px 22px 4px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.modal .md-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }

/* ============================================================
   9. Toast
   ============================================================ */
.toast-host { position: fixed; left: 50%; top: 22px; transform: translateX(-50%); z-index: 600; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: var(--r-pill);
  background: rgba(34, 39, 29, .94); color: #fff; font-size: 13.5px;
  box-shadow: var(--sh-pop); margin-bottom: 8px;
  animation: toastIn .22s cubic-bezier(.2, .8, .2, 1);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
.toast .tundo {
  margin-left: 4px; padding: 3px 10px; border-radius: var(--r-pill); cursor: pointer;
  background: rgba(255, 255, 255, .16); font-weight: 600; font-size: 12.5px;
}
.toast .tundo:hover { background: rgba(255, 255, 255, .26); }
.toast .ti--check { color: #8fd07a; } .toast .ti--warn { color: #e6b25c; }

/* ============================================================
   10. 表单
   ============================================================ */
.fld { margin-bottom: 16px; }
.fld-lb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.fld-lb .req { color: var(--red); }
.fld-hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.55; }

.inp, .sel, .txa {
  width: 100%; height: 38px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; outline: none; transition: border-color .14s, box-shadow .14s;
}
.txa { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.sel { appearance: none; cursor: pointer; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f9384' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.inp:focus, .sel:focus, .txa:focus { border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(42, 95, 166, .5); }
.inp:disabled { background: var(--bg2); color: var(--ink-3); cursor: not-allowed; }
.inp::placeholder, .txa::placeholder { color: var(--ink-3); }

.fld-row { display: flex; gap: 12px; }
.fld-row .fld { flex: 1; }

/* 开关 */
.sw {
  width: 40px; height: 22px; border-radius: var(--r-pill); background: #d8d7c9;
  position: relative; cursor: pointer; flex: 0 0 auto; transition: background .18s; border: none;
}
.sw::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s;
}
.sw.on { background: var(--green); }
.sw.on::after { transform: translateX(18px); }

/* 搜索框 */
.search { position: relative; width: 240px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .inp { padding-left: 33px; }

/* 工具条 */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .sp { flex: 1; }

.tag-p2 {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: var(--r-pill); background: var(--gold-bg); color: var(--gold-2);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* 详情键值行 */
.kv { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { width: 84px; flex: 0 0 84px; color: var(--ink-3); font-size: 12.5px; padding-top: 1px; }
.kv .v { flex: 1; min-width: 0; }

.fade-up { animation: fadeUp .26s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 表单页底部操作条 */
.form-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 2px 8px; }

/* ============================================================
   11. 工作台
   ============================================================ */
.kpi { position: relative; }
.kpi-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 10px;
}
.kpi-v { font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.kpi-k { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

.dash-cols { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: 20px; align-items: start; }

.todo-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 4px;
  border-bottom: 1px solid var(--line-2); font-size: 13.5px; cursor: default;
}
.todo-row:last-child { border-bottom: none; }
.todo-row[data-lane] { cursor: pointer; }
.todo-row[data-lane]:hover { color: var(--blue-500); }
.todo-row .tdot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.todo-row b { font-size: 17px; font-family: var(--font-head); }

.rank-row { display: flex; align-items: center; gap: 11px; padding: 8px 2px; cursor: pointer; }
.rank-row:hover .rk-nm { color: var(--blue-500); }
.rk-no {
  width: 20px; height: 20px; border-radius: 6px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; background: #eceadf; color: #8a8f7c;
}
.rk-no.top { background: var(--gold-bg); color: var(--gold-2); }
.rk-nm { font-size: 13px; margin-bottom: 5px; }
.rk-track { height: 5px; border-radius: 3px; background: var(--bg2); overflow: hidden; }
.rk-track i { display: block; height: 100%; background: var(--green-500); border-radius: 3px; }
.rk-sold { width: 40px; text-align: right; font-size: 12.5px; color: var(--ink-3); flex: 0 0 auto; }

/* ============================================================
   12. 订单页：左表格 + 右详情
   ============================================================ */
.split-l { flex: 1; min-width: 0; padding: var(--gutter); overflow-y: auto; }
.split-l::-webkit-scrollbar { width: 8px; }
.split-l::-webkit-scrollbar-thumb { background: rgba(24, 36, 16, .14); border-radius: 4px; }
.split-r {
  width: 372px; flex: 0 0 372px; border-left: 1px solid var(--line);
  background: var(--card-2); display: flex; flex-direction: column; overflow: hidden;
}
.dt-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--ink-3); font-size: 13px;
}
.dt-hero {
  background: linear-gradient(160deg, var(--hero-3) 0%, var(--hero) 45%, var(--hero-2) 100%);
  color: var(--ink-on-dark); padding: 20px; position: relative; overflow: hidden; flex: 0 0 auto;
}
.dt-hero .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(183, 154, 85, .28);
  width: 150px; height: 150px; right: -56px; top: -56px; }
.dt-code { font-family: var(--font-head); font-size: 30px; font-weight: 700; letter-spacing: 2px; line-height: 1.1; }
.dt-no { font-size: 12px; color: var(--ink-on-dark-2); margin: 4px 0 10px; }
.dt-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px 12px; }
.dt-body::-webkit-scrollbar { width: 6px; }
.dt-body::-webkit-scrollbar-thumb { background: rgba(24, 36, 16, .14); border-radius: 3px; }
.dt-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px;
  border-bottom: 1px solid var(--line-2); }
.dt-total { display: flex; align-items: center; padding-top: 10px; font-size: 14px; font-weight: 600; }
.dt-foot { display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-top: 1px solid var(--line); background: var(--card); flex: 0 0 auto; }
.ord-band { font-size: 12px; color: var(--gold-2); margin-top: 2px; }
.dt-item .ord-band { display: inline; margin: 0 0 0 8px; }

/* ============================================================
   14. 菜品页
   ============================================================ */
.pd-nm { font-weight: 600; margin-bottom: 2px; }
.low-stock { color: var(--gold-2); font-weight: 700; }

.batch-bar {
  display: flex; align-items: center; gap: 9px; margin-bottom: 12px;
  padding: 9px 14px; border-radius: var(--r-pill);
  background: var(--blue-bg); color: var(--blue); font-size: 13px;
}
.batch-bar b { font-size: 16px; font-family: var(--font-head); }

.img-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.img-cell {
  width: 92px; height: 92px; border-radius: var(--r-sm); overflow: hidden; position: relative;
  background: var(--bg2); flex: 0 0 auto;
}
.img-cell img { width: 100%; height: 100%; object-fit: cover; }
.img-cell.add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed rgba(24, 36, 16, .22); background: var(--card-2);
  color: var(--ink-3); font-size: 12px; cursor: pointer; transition: border-color .14s, color .14s;
}
.img-cell.add:hover { border-color: var(--blue-500); color: var(--blue-500); }
.img-cover {
  position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: var(--r-pill);
  background: rgba(11, 47, 99, .85); color: #fff; font-size: 10.5px; font-weight: 600;
}
.img-del {
  position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(15, 20, 12, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.img-del:hover { background: var(--red); }

/* ============================================================
   15. 分类 / 等级：可拖拽列表
   ============================================================ */
.cat-head {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px;
  background: var(--card-2); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .5px;
}
.cat-row {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px;
  border-bottom: 1px solid var(--line-2); background: var(--card); transition: background .12s;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: var(--card-2); }
.cat-row.dragging { opacity: .4; background: var(--blue-bg); }
.cat-grip { width: 34px; cursor: grab; display: flex; align-items: center; }
.cat-grip:active { cursor: grabbing; }
.cat-nm { font-size: 13.5px; font-weight: 600; }

/* ============================================================
   16. 营业设置
   ============================================================ */
.set-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.biz-switch { display: flex; gap: 8px; padding: 4px; background: var(--bg2); border-radius: var(--r-pill); }
.biz-seg {
  flex: 1; height: 36px; border-radius: var(--r-pill); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all .16s;
}
.biz-seg:not(.on):hover { background: rgba(255, 255, 255, .7); }
.set-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px;
  font-size: 12.5px; color: var(--ink-2); line-height: 1.6;
}
.set-note svg { flex: 0 0 auto; margin-top: 1px; }

/* ============================================================
   17. 开屏图层
   ============================================================ */
/* 预览是定宽的（真机 1:1），控制栏定宽读起来最舒服，
   因此整组居中而不是靠左顶死 —— 否则宽屏上右侧会空出一大片。 */
.layer-cols {
  display: grid; grid-template-columns: auto minmax(360px, 460px);
  gap: 32px; align-items: start; justify-content: center;
  max-width: 940px; margin: 0 auto;
}
.lay-stage { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: var(--sh-pop); border: 5px solid #1b1f18; background: var(--bg);
}
.lay-img { position: absolute; cursor: grab; user-select: none; -webkit-user-drag: none; }
.lay-img.moving { cursor: grabbing; outline: 2px dashed rgba(255, 255, 255, .6); }

/* ---- 开屏页仿真稿：逐条移植自 apps/wechat-miniprogram/pages/admin-layer.wxss（rpx × 0.5）----
   预览是真机 1:1，因此这里的 px 与小程序里的 rpx/2 完全对应。 */
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; color: #fff; }
.mock-dark { background: linear-gradient(160deg, #103a78 0%, #0b2f63 45%, #082651 100%); }
.mk-brand { padding: 20px 26px 34px; }
.mk-launch { padding: 20px 22px 30px; }
.mock .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .10); pointer-events: none; }
.mock .ring.r1 { width: 230px; height: 230px; right: -70px; top: -80px; }
.mock .ring.r2 { width: 150px; height: 150px; right: -30px; top: -30px; border-color: rgba(183, 154, 85, .30); }
.mock .ring.r3 { width: 300px; height: 300px; left: -120px; bottom: -160px; border-color: rgba(255, 255, 255, .06); }

/* 业务选择页 mock（样式取自 brand.wxss）*/
.m-logo-mid { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
/* 徽标是透明 PNG，与手机端一致垫白色圆角卡 —— 不做无底裸贴 */
.m-logo-card {
  width: 160px; height: 160px; border-radius: 44px; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
}
.m-logo-emblem { width: 125px; height: 125px; object-fit: contain; }
.m-opts { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.m-opt { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; }
.m-opt.ready { background: linear-gradient(135deg, #5b8f3f, #3d6b2f); box-shadow: 0 14px 32px rgba(61, 107, 47, .34); }
.m-opt.off { background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); opacity: .66; }
.m-opt-ico {
  width: 50px; height: 50px; border-radius: 15px; flex: 0 0 50px;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18);
}
.m-opt.off .m-opt-ico { background: rgba(255, 255, 255, .06); }
.m-opt-body { flex: 1; min-width: 0; }
.m-opt-name { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.m-opt.off .m-opt-name { color: rgba(255, 255, 255, .6); }
.m-opt-desc { font-size: 12px; color: rgba(255, 255, 255, .72); margin-top: 5px; }
.m-opt.off .m-opt-desc { color: rgba(255, 255, 255, .4); }
.m-opt-go {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center; background: #fff;
}
.m-ver { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .4); margin-top: 8px; }

/* 身份选择页 mock（样式取自 launch.wxss）*/
.m-brand { display: flex; align-items: center; gap: 11px; margin-top: 42px; position: relative; z-index: 2; }
.m-brand-logo {
  width: 46px; height: 46px; border-radius: 14px; background: #fff; flex: 0 0 46px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.m-brand-emblem { width: 36px; height: 36px; object-fit: contain; }
.m-brand-name { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.m-brand-sub { font-size: 9.5px; letter-spacing: 4px; color: rgba(255, 255, 255, .5); margin-top: 3px; }
.m-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.m-welcome { font-size: 12px; letter-spacing: 6px; color: var(--gold); font-weight: 600; }
.m-big { font-size: 42px; font-weight: 700; line-height: 1.18; margin-top: 14px; letter-spacing: 1px; }
.m-lead { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 16px; line-height: 1.7; max-width: 260px; }
.m-cards { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.m-id {
  border-radius: 22px; padding: 20px; display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
}
.m-id.primary { background: linear-gradient(135deg, #5b8f3f, #3d6b2f); box-shadow: 0 14px 34px rgba(61, 107, 47, .40); }
.m-id-ico {
  width: 54px; height: 54px; border-radius: 16px; flex: 0 0 54px;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18);
}
.m-id-ico.ghost { background: rgba(255, 255, 255, .08); }
.m-id-body { flex: 1; min-width: 0; }
.m-id-name { font-size: 21px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.m-id-desc { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 5px; line-height: 1.5; }
.m-id-go {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12);
}
.m-id-go.primary { background: #fff; }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px 16px; border-radius: var(--r-sm); cursor: pointer;
  border: 1px dashed rgba(24, 36, 16, .22); background: var(--card-2);
  transition: border-color .14s, background .14s;
}
.drop.big { padding: 52px 20px; background: var(--card); box-shadow: var(--sh-card); border-radius: var(--r-card); }
.drop:hover, .drop.over { border-color: var(--blue-500); background: var(--blue-bg); }
.drop-t { font-size: 13.5px; font-weight: 600; }

.rng { width: 100%; height: 4px; border-radius: 2px; background: var(--bg2); appearance: none; outline: none; }
.rng::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); cursor: pointer; box-shadow: 0 2px 6px rgba(11, 47, 99, .35);
}

/* ============================================================
   18. 批量导入
   ============================================================ */
.imp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.imp-file {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  border-radius: var(--r-pill); background: var(--blue-bg); color: var(--blue); font-size: 13.5px;
}

.err-box { border-radius: var(--r-card); background: rgba(210, 72, 58, .06); overflow: hidden; }
.err-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; cursor: pointer; font-size: 13.5px; }
.err-list { padding: 0 16px 12px; }
.err-row {
  display: flex; align-items: center; gap: 12px; padding: 7px 0;
  border-top: 1px solid rgba(210, 72, 58, .12); font-size: 12.5px;
}
.err-line { width: 64px; flex: 0 0 64px; color: var(--ink-3); }
.err-why { width: 210px; flex: 0 0 210px; color: var(--red); font-weight: 600; }
.err-raw { flex: 1; min-width: 0; font-size: 12px; }

.imp-box { border-radius: var(--r-sm); background: var(--bg2); padding: 12px 14px; }
.imp-row { padding: 5px 0; font-size: 13.5px; }
.imp-row b { font-size: 17px; font-family: var(--font-head); color: var(--blue); }

/* ---------- 员工折扣白名单 ---------- */
.rate-card { margin-bottom: 16px; }
.rate-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rate-pre, .rate-suf { font-size: 13px; color: var(--ink-2); }
.rate-in { width: 92px; text-align: right; }
.rate-hint { font-size: 12.5px; margin-left: 4px; }
.staff-search { width: 200px; margin-right: 10px; }
.staff-ro { margin-top: 4px; background: var(--card-2); }
.ro-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.ro-row:last-child { border-bottom: none; }
.ro-row > span:first-child { color: var(--ink-3); }
.btn--line.danger { color: #d2483a; }

/* ---------- 批量导入 ---------- */
.imp-card { margin-bottom: 14px; }
.imp-cols { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.imp-col { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.imp-col.req { background: var(--green-bg); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-600); font-weight: 600; }
.imp-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin-top: 4px; }
.imp-note.warn { color: #a4873f; }
.imp-pick { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; }
.imp-counts { display: flex; gap: 18px; margin: 10px 0; font-size: 13.5px; }
.imp-cnt b { font-size: 17px; margin: 0 3px; }
.imp-cnt.add b { color: var(--green); }
.imp-cnt.upd b { color: var(--green-600); }
.imp-cnt.err b { color: var(--ink-3); }
.imp-cnt.err.on b { color: #d2483a; }
.imp-errs { margin-top: 8px; border-top: 1px solid var(--line-2); padding-top: 8px; }
.imp-errs summary { font-size: 13px; color: #d2483a; cursor: pointer; }
.imp-err { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-2); padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.imp-err > span { color: var(--ink-3); flex: 0 0 62px; }
.imp-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

/* Settings feedback stays next to its explicit save action. */
.settings-foot { position: sticky; bottom: 0; background: var(--bg, #f5f5ec); padding: 14px 18px; gap: 12px; flex-wrap: wrap; z-index: 2; }
.settings-foot [role="status"] { flex: 1; min-width: 220px; font-size: 13px; }
.settings-foot [hidden] { display: none; }
.biz-seg[aria-disabled="true"] { opacity: .55; cursor: wait; }

/* 用户指定品牌 Logo：侧栏、账号卡片和开屏布局参考统一使用。 */
.side-logo, .ac-logo, .m-brand-logo { overflow: hidden; padding: 0; background: transparent; }
.side-brand .side-logo img, .ac-logo img, .m-brand-logo .m-brand-emblem { width: 100%; height: 100%; object-fit: contain; }

/* PC 与平板：外壳收缩，数据表保留列宽并在内容区横向滚动。 */
:root { --row-h:56px; }
body { min-width:0; }
.shell { height:100dvh; }
.side-brand { flex-shrink:0; }
.side-scroll { scrollbar-width:thin; }
.side-scroll::-webkit-scrollbar { width:6px; }
.side-scroll::-webkit-scrollbar-thumb { background:#ffffff30; border-radius:4px; }
.nav-collapsed .sidebar { display:none; }
#nav-toggle { flex-shrink:0; font-size: 20px; }
.content, .page-root, .split-l, .split-r, .set-cols > *, .dash-cols > *, .imp-cols > * { min-width:0; }
.toolbar, .page-head, .rate-row, .form-foot { flex-wrap:wrap; }
.toolbar .segs { flex-wrap:wrap; }
.segs { gap:8px; }
.btn { white-space:nowrap; }
button:disabled, .btn:disabled, .ibtn:disabled { opacity:.45; cursor:not-allowed; pointer-events:auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
.btn--blue { background:var(--green); color:white; }
.btn--blue:hover { background:var(--green-600); }
.btn--ghost-blue { color:var(--green); background:var(--green-bg); }
.seg.on, .tbl tbody tr.sel { background:var(--green-bg); color:var(--green); }
input[type=checkbox] { accent-color:var(--green); min-width:18px; min-height:18px; cursor:pointer; }
.tbl { min-width:720px; }
#tbl-host .tbl:has(.thumb-frame), #staff-host .tbl, #acc-host .tbl { min-width:1040px; }
#fin-host .tbl, #pd-host .tbl { min-width:1180px; }
.cat-head, .cat-row { min-width:640px; }
.tbl td { overflow-wrap:anywhere; }
.tbl td .tnum { white-space:normal; overflow-wrap:anywhere; }
.tbl .act .btn { margin-left:4px; }
.ibtn { min-width:36px; min-height:36px; }
.pd-nm { overflow-wrap:anywhere; }
.thumb-frame { width:40px; height:40px; flex:0 0 40px; position:relative; border-radius:8px; overflow:hidden; }
.thumb-frame .thumb { position:absolute; inset:0; }
.image-placeholder { display:flex; align-items:center; justify-content:center; width:100%; height:100%; background:var(--bg2); color:var(--ink-2); font-size: 12px; text-align:center; }
.check-label { display:inline-flex; gap:6px; align-items:center; }
.selection-count { display:block; font-size: 12px; color:var(--green); }
.sw.sold { background:var(--red); }
.text-danger { color:var(--red); }.text-green { color:var(--green); }
.sold-note { margin:0 0 14px; }
.modal-mask { z-index:420; }.modal { z-index:425; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); display:flex; flex-direction:column; }
.modal .md-body { overflow:auto; min-height:0; overflow-wrap:anywhere; }
.md-foot, .dr-foot { flex-wrap:wrap; flex-shrink:0; }
.drawer, .drawer.wide { max-width:100vw; }
.kv .v, .full-text { overflow-wrap:anywhere; white-space:pre-wrap; }
.refund-reason { max-width:220px; overflow:hidden; text-overflow:ellipsis; }
.toast-host { max-width:calc(100vw - 32px); }
.card.card-pad:has(#f-from) { flex-wrap:wrap; }
.topbar .tb-title { white-space:nowrap; }
.kpi-v { overflow-wrap:anywhere; }
.login-card { max-width:560px; margin:40px auto; text-align:center; }
.login-qr { position:relative; min-height:244px; margin:18px auto 0; display:flex; align-items:center; justify-content:center; }
.qr-expired { position:absolute; inset:0; background:#fffffff2; display:flex; align-items:center; justify-content:center; font-size: 16px; }
.crop-canvas { width:min(100%,360px); aspect-ratio:1; height:auto; touch-action:none; display:block; margin:auto; }
.layer-error { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:#ffffffdf; color:var(--red); z-index:4; padding:24px; }
@media(max-width:1400px) {
  .dash-kpis { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  .dash-cols { grid-template-columns:minmax(0,1fr); }
  .split-r { width:320px; flex-basis:320px; }
}
@media(max-width:1100px) {
  :root { --gutter:16px; }
  .topbar .tb-sub { display:none; }
  .set-cols, .imp-cols, .layer-cols { grid-template-columns:minmax(0,1fr); }
  .layer-cols { max-width:650px; }
  .lay-stage { margin:auto; max-width:100%; }
  .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
  .content.flush { overflow:auto; }
  .content.flush .page-root { flex-direction:column; overflow:visible; }
  .split-l { flex:none; overflow:visible; }
  .split-r { width:100%; flex-basis:auto; overflow:visible; border-left:0; border-top:1px solid var(--line); }
  .dt-body { overflow:visible; }
  .dt-foot { flex-wrap:wrap; }
  .dash-kpis { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .topbar { gap:8px; }
  .acct-nm { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

[hidden] { display:none !important; }
.thumb-frame { display:inline-block; vertical-align:middle; }
.select-all { display:inline-flex; gap:6px; align-items:center; }
.tbl-wrap > .tbl-wrap { border-radius:0; box-shadow:none; }
.btn--sm { min-height:36px; }
.img-del { width:32px; height:32px; }
.sw::before { content:''; position:absolute; inset:-7px -2px; }
.ibtn:disabled:hover { background:transparent; }
.imp-acts, .imp-counts { display:flex; gap:16px; flex-wrap:wrap; margin-top:16px; }
.imp-acts { justify-content:flex-end; }
.imp-card { margin-bottom:18px; }
.imp-pick { overflow-wrap:anywhere; }
.crop-controls { display:flex; align-items:center; gap:12px; margin-top:12px; }
.crop-controls input { flex:1; min-width:0; }
.confirm-items { padding-left:24px; }

.btn--blue { box-shadow:0 6px 16px rgba(61,107,47,.18); }
.tbl-wrap { border:1px solid var(--line); box-shadow:var(--sh-soft); }
.tbl-wrap > .tbl-wrap { border:0; }
.cat-delete-note { display:block; white-space:normal; font-size:12px; color:var(--ink-3); }
/* 固定短字段的实际列宽，避免窄窗口把价格或餐段逐字挤成竖排。 */
#tbl-host .tbl:has(.thumb-frame) { min-width:1072px; table-layout:fixed; }
.price { white-space:nowrap; }
.batch-bar { background:var(--green-bg); color:var(--green); flex-wrap:wrap; }
.tbl-scroll-hint { font-size:12px; color:var(--ink-3); margin:8px 0; }

/* 导入预览保留字段列宽，窄窗口沿用表格横向滚动。 */
[data-product-preview] .tbl { min-width:1120px; }

/* 菜品名称列保持紧凑，剩余宽度交给末尾操作列。 */
#tbl-host .product-info .grow { min-width:0; }

/* 分类排序：仅手柄启动拖动，上下边线标记插入位置。 */
#cat-host .cat-drag-slot { flex:0 0 24px; width:24px; }
#cat-host .cat-drag-handle { cursor:grab; font-size:20px; color:var(--ink-3); }
#cat-host .cat-drag-handle:active { cursor:grabbing; }
#cat-host .cat-drag-handle:disabled { cursor:default; }
#cat-host .cat-row.drop-before { box-shadow:inset 0 2px var(--green); }
#cat-host .cat-row.drop-after { box-shadow:inset 0 -2px var(--green); }

/* 备餐管理：汇总与批量动作独立，窄窗口保留表格横向滚动。 */
.prep-toolbar, .prep-actions { flex-wrap:wrap; gap:12px; }
.prep-toolbar label { display:flex; align-items:center; gap:8px; }
.prep-note { margin:12px 0; line-height:1.7; }
.prep-summary h3 { font-size:15px; margin-bottom:8px; }
.prep-summary h3 span { font-size:12px; font-weight:400; margin-left:8px; }
.prep-summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; margin-top:16px; }
.prep-summary-item { display:flex; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); padding:10px 0; overflow-wrap:anywhere; }
.prep-summary-item > b { white-space:nowrap; }
.prep-actions { margin-top:20px; }
.prep-table { min-width:700px; }
.prep-table th:first-child { width:64px; }
.prep-table th:nth-child(2) { width:90px; }
.prep-table th:nth-child(4), .prep-table th:nth-child(5) { width:110px; }
.prep-result { margin-bottom:16px; }

.order-pages { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:16px 0; }
.prep-remark { color:#996015; }
.prep-time-group th { background:var(--green-bg); color:var(--green); }
.prep-result p { margin-top:8px; }
.prep-result ul { padding-left:20px; margin-top:12px; }
.prep-result li { margin-top:8px; overflow-wrap:anywhere; }
.prep-table .prep-located { background:var(--gold-bg); outline:2px solid var(--gold-2); outline-offset:-2px; }


/* ============================================================
   洗车后台补充
   ============================================================ */
.pill--danger { background: rgba(210, 72, 58, .1); color: var(--red); }
.lnk { color: var(--blue-500); cursor: pointer; }
.lnk:hover { text-decoration: underline; }
small { font-size: .55em; font-weight: 600; margin-left: 2px; color: var(--ink-3); letter-spacing: 0; }

/* 预览条：设计稿标识 + 模拟时间 */
.pv-strip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px var(--gutter);
  background: var(--gold-bg); color: var(--gold-2); font-size: 12.5px; border-bottom: 1px solid rgba(164, 135, 63, .22);
  flex-wrap: wrap;
}
.pv-tag { background: var(--gold); color: #fff; font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); font-size: 11.5px; letter-spacing: 1px; }
.pv-clock { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.pv-clock b { color: var(--ink); }
.pv-warn { color: var(--red); font-weight: 600; }
.pv-btn {
  height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: none; cursor: pointer;
  background: #fff; color: var(--gold-2); font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
  box-shadow: inset 0 0 0 1px rgba(164, 135, 63, .35);
}
.pv-btn:hover { background: #fffaf0; }
.pv-now { font-size: 14px; color: var(--ink); }
.pv-jumps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pv-jump { height: auto; min-height: 50px; flex-direction: column; gap: 1px; padding: 6px 4px; }
.pv-jump b { font-size: 13.5px; color: var(--ink); }
.pv-jump span { font-size: 11px; color: var(--ink-3); font-weight: 400; white-space: normal; }
.pv-opt { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--ink); }
.acct-row .sw { pointer-events: none; }

/* 侧栏角标 */
.side-badge { margin-left: auto; display: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-style: normal;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }
.side-badge.on { display: inline-flex; }
.side-badge.danger { background: var(--red); }

/* 工作台待办卡 */
.todo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.todo-card { padding: 14px 14px 12px; cursor: pointer; transition: transform .14s, box-shadow .14s; border-top: 3px solid transparent; }
.todo-card:hover { transform: translateY(-2px); box-shadow: var(--sh-pop); }
.todo-card .tc-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.todo-card .tc-t { font-size: 13px; font-weight: 600; }
.todo-card .tc-n { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1.1; margin-top: 10px; }
.todo-card .tc-h { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.45; }
.tc-warn { border-top-color: var(--gold); } .tc-warn .tc-ic { background: var(--gold-bg); color: var(--gold-2); } .tc-warn .tc-n { color: var(--gold-2); }
.tc-info { border-top-color: var(--blue-500); } .tc-info .tc-ic { background: var(--blue-bg); color: var(--blue-500); } .tc-info .tc-n { color: var(--blue); }
.tc-danger { border-top-color: var(--red); } .tc-danger .tc-ic { background: rgba(210, 72, 58, .1); color: var(--red); } .tc-danger .tc-n { color: var(--red); }
.tc-gold { border-top-color: var(--gold-2); } .tc-gold .tc-ic { background: var(--gold-bg); color: var(--gold-2); } .tc-gold .tc-n { color: var(--gold-2); }
.todo-card.zero { border-top-color: var(--line); }
.todo-card.zero .tc-n { color: var(--ink-3); }
.todo-card.zero .tc-ic { background: var(--bg2); color: var(--ink-3); }

.kpi-mini .kpi-v { font-size: 22px; }
.kpi-mini .kpi-ic { width: 30px; height: 30px; margin-bottom: 8px; }
.kpi-s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.chart-t { font-size: 13px; }
.seg-sm .seg { height: 28px; padding: 0 12px; font-size: 12.5px; }

/* 每日柱状图（单序列，悬停显示当日明细） */
.bars { display: flex; align-items: stretch; gap: 10px; height: 210px; padding: 8px 0 0; border-bottom: 1px solid var(--line); position: relative; }
.bars.dense { gap: 3px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar-area { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-area i { display: block; width: min(100%, 34px); background: var(--green-500); border-radius: 4px 4px 0 0; transition: background .12s; }
.bar-col.today .bar-area i { background: var(--green); }
.bar-col.future .bar-area i { background: var(--bg2); }
.bar-col:hover .bar-area i { background: var(--blue-500); }
.bar-v { font-size: 11.5px; color: var(--ink-2); margin-bottom: 3px; }
.bar-x { text-align: center; font-size: 11px; color: var(--ink-2); padding-top: 6px; line-height: 1.35; position: absolute; transform: translateY(100%); }
.bar-col { position: relative; }
.bar-x { left: 0; right: 0; bottom: 0; }
.bars { margin-bottom: 40px; }
.bars.dense { margin-bottom: 24px; }
.bar-x.rest { color: var(--ink-3); }
.bar-col.today .bar-x { color: var(--green); font-weight: 700; }
.bar-tip {
  display: none; position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translateX(-50%); z-index: 5;
  background: var(--ink); color: #fff; font-size: 11.5px; line-height: 1.5; padding: 6px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none;
}
.bar-col:hover .bar-tip { display: block; }
.bar-col:first-child .bar-tip { left: 0; transform: none; }
.bar-col:last-child .bar-tip { left: auto; right: 0; transform: none; }

.today-d { font-family: var(--font-head); font-size: 16px; }
.today-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.today-sum b { font-size: 16px; color: var(--ink); font-family: var(--font-head); margin-left: 2px; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.slot-chip b { font-size: 11.5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--green-bg); color: var(--green); display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.slot-chip.ended { background: var(--bg2); color: var(--ink-3); box-shadow: none; }
.slot-chip.ended b { background: #e3e2d6; color: var(--ink-3); }
.slot-chip.cur { background: var(--blue-bg); color: var(--blue-500); box-shadow: inset 0 0 0 1px rgba(42, 95, 166, .3); }

/* 订单筛选与表格 */
.ord-filter { display: flex; flex-direction: column; gap: 10px; }
.of-row { flex-wrap: wrap; }
.of-lb { font-size: 12.5px; color: var(--ink-3); }
.of-date { width: 150px; }
.of-sel { width: auto; min-width: 128px; }
.st-cell { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.flag-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap;
  background: var(--red); color: #fff; }
.flag-tag.gold { background: var(--gold); }
.flag-tag.ondark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.tbl tbody tr.row-alert { background: rgba(210, 72, 58, .045); }
.tbl tbody tr.row-alert:hover { background: rgba(210, 72, 58, .08); }
#ord-host .tbl { min-width: 1040px; }
#led-host .tbl { min-width: 1120px; }
#staff-host .tbl { min-width: 1080px; }
.led-total { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 12px 16px; margin-top: 10px; border-radius: var(--r-sm);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.led-total > span:first-child { font-weight: 700; }

/* 提示条 */
.od-alert { display: flex; align-items: flex-start; gap: 9px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.od-alert svg { flex: 0 0 auto; margin-top: 2px; }
.od-alert.danger { background: rgba(210, 72, 58, .08); color: #a93a2e; }
.od-alert.warn { background: var(--gold-bg); color: #7d6630; }
.od-alert.mute { background: var(--bg2); color: var(--ink-2); }
.od-alert .btn { flex: 0 0 auto; }

/* 订单详情抽屉 */
.drawer.od-drawer { width: 880px; }
.od-drawer .dr-body { background: var(--card-2); }
.od-hero { margin: -18px -20px 14px; padding: 20px 22px 16px; }
.od-hero .ring { position: absolute; }
.od-amt { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.od-amt .cur { font-size: .6em; margin-right: 2px; }
.od-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.od-drawer .sec-h { padding-top: 12px; }
.od-key { color: var(--blue); font-size: 15px; }
.od-steps { padding-top: 10px; padding-bottom: 10px; }
.od-step { display: flex; gap: 10px; padding: 8px 0; position: relative; font-size: 13px; color: var(--ink-3); }
.od-step:not(:last-child)::before { content: ''; position: absolute; left: 8px; top: 28px; bottom: -8px; width: 2px; background: var(--line); }
.od-step.done:not(:last-child)::before { background: var(--green-500); }
.od-dot { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--line); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.od-step.done { color: var(--ink); }
.od-step.done .od-dot { background: var(--green-500); box-shadow: none; }
.od-step.cur { color: var(--ink); }
.od-step.cur .od-dot { background: #fff; box-shadow: inset 0 0 0 5px var(--blue-500); }
.od-sub { font-size: 12px; margin-top: 2px; }
.media-grp + .media-grp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.media-gt { display: flex; align-items: baseline; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.media-gt .faint { font-size: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.media-ph { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: repeating-linear-gradient(135deg, #eceadf 0 8px, #e5e3d6 8px 16px); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.media-ph.video { background: #2b3326; color: #eef2e6; }
.media-ph img { width: 100%; height: 100%; object-fit: cover; }
.media-ph em { position: absolute; right: 6px; bottom: 5px; font-style: normal; font-size: 11px; }
.media-cap { font-size: 11px; color: var(--ink-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-refund-bad { box-shadow: inset 0 0 0 1.5px rgba(210, 72, 58, .45), var(--sh-card); }
.od-hist { display: flex; flex-direction: column; }
.od-hrow { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.od-hrow:last-child { border-bottom: none; }
.od-hrow > .tnum { flex: 0 0 auto; }
.od-foot-note { font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.od-foot-hint { font-size: 12px; color: var(--ink-3); }

/* 价格 / 车型 */
.price-mx { min-width: 0 !important; }
.price-mx td { padding: 8px 10px; }
.px-in { display: flex; align-items: center; gap: 6px; }
.px-in .inp { width: 110px; text-align: right; }
.diff-tbl { min-width: 0 !important; }
.ct-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.ct-row .inp { flex: 1; }
.ct-no { width: 20px; color: var(--ink-3); font-size: 12px; text-align: center; }

/* 营业设置 */
.wd-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.wd-check { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.wd-check:has(input:checked) { background: var(--gold-bg); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-2); font-weight: 600; }
.sw-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.sw-row:last-child { border-bottom: none; }

@media (max-width: 1400px) {
  .todo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .od-grid { grid-template-columns: minmax(0, 1fr); }
  .pv-jumps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nowrap { white-space: nowrap; }
.tbl td .nowrap { white-space: nowrap; overflow-wrap: normal; }
#ord-host .tbl { min-width: 1120px; }
