/* ============ SPA收银系统 全局样式 ============ */
:root {
  --primary: #0f9d7b;
  --primary-dark: #0b7a5f;
  --primary-light: #e6f6f1;
  --danger: #e5484d;
  --danger-light: #fdecec;
  --warning: #e8890c;
  --warning-light: #fdf3e3;
  --ink: #1c2b26;
  --ink-2: #5b6b64;
  --ink-3: #8ba098;
  --line: #e3ece8;
  --bg: #f2f6f4;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 60, 45, .08), 0 4px 16px rgba(16, 60, 45, .06);
  --shadow-lg: 0 8px 40px rgba(16, 60, 45, .18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c8d8d1; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.app-shell { display: grid; grid-template-columns: 208px 1fr; height: 100vh; overflow: hidden; }
.sidebar {
  background: linear-gradient(180deg, #0d4a3c 0%, #0a3a30 100%);
  color: #cfe8df; display: flex; flex-direction: column; padding: 18px 12px;
}
.side-logo { display: flex; align-items: center; gap: 10px; padding: 6px 10px 20px; }
.side-logo .logo-ic {
  width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #22c99b, #0f9d7b);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex: none;
}
.side-logo .logo-tx { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.side-logo .logo-sub { font-size: 11px; color: #7fb3a3; margin-top: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; margin: 2px 0;
  border-radius: 9px; color: #b9d6cc; cursor: pointer; font-size: 14px; transition: all .15s;
  user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: linear-gradient(135deg, #18b78d, #0f9d7b); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(18, 150, 116, .4); }
.nav-item svg { flex: none; }
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; }
.sidebar nav::-webkit-scrollbar { width: 4px; }
.sidebar nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.nav-foot { margin-top: auto; padding: 10px 14px; font-size: 11px; color: #6fa394; line-height: 1.6; }

.main { display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px; flex: none;
}
.topbar h1 { font-size: 17px; font-weight: 700; }
.topbar .sub { color: var(--ink-3); font-size: 12px; margin-left: 10px; }
.page { padding: 18px 22px; overflow: auto; flex: 1; }

/* ---------- 通用组件 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-h h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 13px; cursor: pointer; transition: all .15s; font-family: inherit;
  white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-danger { background: #fff; border-color: #f0c4c5; color: var(--danger); }
.btn-danger:hover { background: var(--danger-light); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #c93a3f; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #eef5f2; color: var(--ink); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 12px 26px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

.input, .select, .textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); outline: none; transition: border .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,157,123,.12); }
.textarea { resize: vertical; min-height: 60px; }
.field { margin-bottom: 12px; }
.field .label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline-fields .full { grid-column: 1 / -1; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 9px 10px; color: var(--ink-3); font-weight: 600; font-size: 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 9px 10px; border-bottom: 1px solid #f0f5f3; vertical-align: middle; }
.table tbody tr:hover { background: #f8fcfa; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--primary-light); color: var(--primary-dark); }
.badge-blue { background: #e8f1fb; color: #2d6fb0; }
.badge-orange { background: var(--warning-light); color: var(--warning); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-gray { background: #eef2f0; color: var(--ink-3); }
.badge-purple { background: #f1ecfb; color: #7a5bd0; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(12, 40, 32, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .15s;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); width: 520px; max-width: 100%;
  max-height: 88vh; display: flex; flex-direction: column; animation: popIn .18s;
}
@keyframes popIn { from { transform: scale(.96); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.modal.wide { width: 720px; }
.modal.xwide { width: 940px; }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-h h3 { font-size: 15px; font-weight: 700; }
.modal-b { padding: 16px 20px 18px; overflow: auto; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.icon-x { cursor: pointer; color: var(--ink-3); padding: 4px; border-radius: 6px; display: flex; }
.icon-x:hover { background: #f0f5f3; color: var(--ink); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 20px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: toastIn .2s; display: flex; align-items: center; gap: 8px;
}
.toast.ok { background: var(--primary); }
.toast.err { background: var(--danger); }
.toast.warn { background: var(--warning); }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; position: relative; overflow: hidden; }
.stat-card .st-label { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.stat-card .st-value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-card .st-unit { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.stat-card .st-ic { position: absolute; right: 12px; top: 12px; opacity: .9; }
.stat-card .st-sub { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 9px 16px; cursor: pointer; color: var(--ink-2); font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- 收银台 ---------- */
.pos-layout { display: grid; grid-template-columns: 1fr 360px; gap: 14px; height: 100%; min-height: 0; }
.pos-left { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.svc-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip {
  padding: 7px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  cursor: pointer; font-size: 13px; color: var(--ink-2); transition: all .15s;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; overflow: auto; align-content: start; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer;
  transition: all .15s; position: relative;
}
.svc-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(15,157,123,.15); transform: translateY(-1px); }
.svc-card .svc-name { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.svc-card .svc-meta { font-size: 11px; color: var(--ink-3); }
.svc-card .svc-price { color: var(--danger); font-weight: 800; font-size: 15px; margin-top: 6px; }
.svc-card .svc-price .yuan { font-size: 11px; font-weight: 400; }
.svc-card.disabled { opacity: .45; cursor: not-allowed; }

.cart-card { display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { font-size: 14px; font-weight: 700; }
.cart-list { flex: 1; overflow: auto; padding: 8px 12px; }
.cart-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px dashed var(--line);
}
.cart-item:last-child { border-bottom: none; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; font-size: 13px; }
.ci-tech { font-size: 11px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 14px; line-height: 1; color: var(--ink-2); display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.ci-price { font-weight: 700; font-size: 13px; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.ci-del { color: var(--ink-3); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; }
.ci-del:hover { color: var(--danger); background: var(--danger-light); }

.tech-select {
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; font-size: 11px; color: var(--ink-2);
  background: #fff; cursor: pointer; outline: none; font-family: inherit; max-width: 90px;
}
.cart-foot { border-top: 1px solid var(--line); padding: 12px 16px; }
.cf-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.cf-total { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 12px; }
.cf-total .lb { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cf-total .val { font-size: 26px; font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }
.cart-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }

/* ---------- 支付 ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; text-align: center; cursor: pointer;
  transition: all .15s; background: #fff;
}
.pay-card .pay-ic { font-size: 26px; margin-bottom: 6px; }
.pay-card .pay-name { font-size: 13px; font-weight: 700; }
.pay-card:hover { border-color: var(--primary); }
.pay-card.active { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(15,157,123,.15); }
.pay-summary { background: #f8fcfa; border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.ps-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--ink-2); }
.ps-row.total { font-size: 15px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.ps-row.total .v { color: var(--danger); font-size: 20px; }

/* ---------- 抽屉/详情 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(12,40,32,.4); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 96vw; background: #fff;
  box-shadow: -8px 0 40px rgba(16,60,45,.15); z-index: 91; display: flex; flex-direction: column;
  animation: drawerIn .2s;
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0 } to { transform: none; opacity: 1 } }
.drawer-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-b { flex: 1; overflow: auto; padding: 16px 20px; }
.mini-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ms { background: #f5faf8; border-radius: 10px; padding: 10px 12px; text-align: center; }
.ms .v { font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.ms .l { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 图表(纯CSS) ---------- */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bar-label { width: 110px; font-size: 12px; color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; background: #eef4f1; border-radius: 5px; height: 18px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #22c99b, #0f9d7b); border-radius: 5px; min-width: 2px; transition: width .5s; }
.bar-val { width: 90px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 搜索/筛选条 ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 140px; }

/* ---------- 日期选择 ---------- */
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav .input { width: 130px; text-align: center; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 40px 0; color: var(--ink-3); }
.empty .e-ic { font-size: 40px; margin-bottom: 8px; }

/* ---------- 小票打印 ---------- */
@media print {
  body * { visibility: hidden !important; }
  #receipt-root, #receipt-root * { visibility: visible !important; }
  #receipt-root { display: block !important; position: absolute; left: 0; top: 0; width: 100%; }
}
.receipt { font-family: "Courier New", monospace; font-size: 12px; color: #000; line-height: 1.6; padding: 8px; }
.receipt .r-h { text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.receipt .r-center { text-align: center; }
.receipt .r-line { border-top: 1px dashed #000; margin: 6px 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 2px 0; vertical-align: top; }
.receipt .r-items td { border-bottom: 1px dotted #ccc; }

/* ---------- 其他 ---------- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #22c99b, #0f9d7b);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none;
}
.avatar.w { background: linear-gradient(135deg, #f0a8c0, #d66a8e); }
.avatar.u { background: linear-gradient(135deg, #8fb8e8, #5b8fd0); }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hint { font-size: 12px; color: var(--ink-3); }
.pay-tag { font-size: 11px; padding: 1px 8px; border-radius: 4px; background: #f0f5f3; color: var(--ink-2); }
.pay-tag.cash { background: #e8f1fb; color: #2d6fb0; }
.pay-tag.wechat { background: #e4f6e9; color: #1d9e4e; }
.pay-tag.alipay { background: #e8f0fd; color: #2f6fd0; }
.pay-tag.douyin { background: #ffe8ec; color: #d6336c; }
.pay-tag.meituan { background: #fff3e0; color: #f08c00; }
.pay-tag.balance { background: #fdf3e3; color: var(--warning); }
.pay-tag.card { background: #f1ecfb; color: #7a5bd0; }
.pay-tag.combine { background: #e6f6f1; color: var(--primary-dark); }
@media (max-width: 1100px) {
  .pos-layout { grid-template-columns: 1fr 320px; }
}

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0d4a3c 0%, #0f9d7b 60%, #22c99b 100%);
  padding: 20px;
}
.login-card {
  width: 380px; max-width: 100%; background: #fff; border-radius: 16px; padding: 34px 32px;
  box-shadow: 0 20px 60px rgba(8, 50, 40, .35); text-align: center;
}
.login-logo {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; font-size: 32px;
  background: linear-gradient(135deg, #22c99b, #0f9d7b); display: flex; align-items: center; justify-content: center;
}
.login-card h1 { font-size: 19px; font-weight: 800; }
.login-sub { color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.login-card .field { text-align: left; }
.login-err { background: var(--danger-light); color: var(--danger); border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; }
.login-demo { font-size: 12px; }
.login-demo a { color: var(--primary); cursor: pointer; margin: 0 4px; text-decoration: underline; }

/* ---------- 房间看板 ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.room-card {
  background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 14px;
  cursor: pointer; transition: all .15s; border-left: 5px solid #ccc;
}
.room-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.room-card.r-free { border-left-color: #1d9e4e; }
.room-card.r-busy { border-left-color: var(--danger); background: #fffafa; }
.room-card.r-rest { border-left-color: #98a8a0; }
.room-card.r-cleaning { border-left-color: #5b8fd0; background: #fbfdff; }
.room-card.r-waiting { border-left-color: var(--warning); }
.room-card .rc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.room-card .rc-name { font-weight: 800; font-size: 15px; }
.room-card .rc-type { font-size: 11px; color: var(--ink-3); margin-bottom: 8px; }
.room-card .rc-order { font-size: 12px; color: var(--ink-2); background: #f5f8f6; border-radius: 6px; padding: 5px 8px; margin-bottom: 4px; }
.room-card .rc-order.over { color: var(--danger); background: var(--danger-light); }
.room-card .rc-empty { font-size: 11px; color: var(--ink-3); min-height: 16px; }
/* 底部操作栏：工整一排小字 */
.room-card .rc-actions {
  margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.room-card .rc-actions .ck-btn { width: 100%; height: 30px; font-size: 12px; }
.room-card .act-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.room-card .act {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--ink-3); cursor: pointer; padding: 3px 0;
  border-radius: 6px; user-select: none; line-height: 1; min-width: 0; overflow: hidden;
}
.room-card .act:hover { color: var(--primary); background: var(--primary-light); }
.room-card .act-danger:hover { color: var(--danger); background: var(--danger-light); }
.room-card .act svg { flex: none; }
.room-card.pick { cursor: pointer; }

/* ---------- 技师排班表 ---------- */
.sched-table th, .sched-table td { text-align: center; padding: 8px 4px; }
.sched-table .sched-th { min-width: 78px; }
.sched-table th.today, .sched-table td.today { background: var(--primary-light); }
.sched-table td.today { border-left: 1px solid #bfe8dc; border-right: 1px solid #bfe8dc; }

/* ---------- 差异颜色 ---------- */
.success { color: var(--primary); }
.danger { color: var(--danger); }

/* ---------- 技师排钟板 ---------- */
.queue-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
  min-height: 120px;
}
.queue-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  text-align: center; cursor: grab; position: relative; transition: all .15s; user-select: none;
}
.queue-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.queue-card:active { cursor: grabbing; }
.queue-card.hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,157,123,.2); transform: scale(1.02); }
.queue-card.dragging { opacity: .45; }
.queue-card.qc-busy { background: #fffafa; border-color: #f3c8c9; }
.queue-card.qc-rest { opacity: .75; background: #f7f9f8; }
.queue-card .qc-order {
  position: absolute; top: 6px; left: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.queue-card.qc-busy .qc-order { background: var(--danger-light); color: var(--danger); }
.queue-card.qc-rest .qc-order { background: #eef2f0; color: var(--ink-3); }
.queue-card .qc-name { font-weight: 800; font-size: 14px; margin: 8px 0 4px; }
.queue-card .qc-status { margin-top: 6px; }
.queue-card .qc-current {
  margin-top: 8px; font-size: 12px; color: var(--danger); background: var(--danger-light);
  border-radius: 8px; padding: 6px 8px; line-height: 1.5; text-align: left;
}
.queue-card .qc-tip { margin-top: 8px; font-size: 11px; color: var(--ink-3); }
.queue-card .qc-no { font-size: 17px; font-weight: 800; color: var(--primary-dark); margin-bottom: 2px; }
.queue-card .qc-count { margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.queue-card .qc-next {
  margin-top: 8px; font-size: 11px; font-weight: 800; color: var(--warning);
  background: var(--warning-light); border-radius: 20px; padding: 4px 8px;
}
.queue-card.qc-next { border-color: var(--warning); box-shadow: 0 0 0 3px rgba(232,137,12,.18); background: #fffdf7; }

/* 上钟中区 */
.q-busy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.q-busy-card {
  background: #fffafa; border: 1px solid #f3c8c9; border-radius: 12px; padding: 14px;
}
.q-busy-card .qb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.q-busy-card .qb-no {
  width: 52px; height: 52px; border-radius: 12px; background: var(--danger); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; flex: none;
}
.q-busy-card .qb-no span { font-size: 11px; margin-left: 1px; }
.q-busy-card .qb-name { font-weight: 800; font-size: 15px; }
.q-busy-card .qb-line { font-size: 12px; color: var(--ink-2); margin-top: 3px; }

/* 休息区 */
.q-rest-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #f7f9f8; border: 1px solid var(--line);
  border-radius: 20px; padding: 7px 14px; cursor: pointer; font-size: 13px; color: var(--ink-2);
}
.q-rest-chip:hover { border-color: var(--primary); color: var(--primary); }
.q-rest-chip.assigned { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); font-weight: 700; }

/* 上钟登记区 */
.assign-box { background: #f8fcfa; border: 1px dashed var(--primary); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.assign-box .label { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }

/* 下钟结算明细表 */
.ck-table th, .ck-table td { padding: 8px 8px; }
