/**
 * lite.css — BQM Lite 排队界面（手机端放大版）
 * 参考 BQM v0.3 左栏标准：卡片三栏结构 / 颜色系统 / 图例 / 筛选 / 全高度布局
 */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #1a1a2e;
  color: #e6e6e6;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  font-size: 16px;
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: #8892b0;
  text-decoration: none;
}

/* ─── 主布局：全高度 flex ─── */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* ─── Header ─── */
.lite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #16213e;
  border-bottom: 1px solid #0f3460;
  flex-shrink: 0;
}

.lite-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: #e94560;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #8892b0;
  border: 1px solid #533483;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn-add {
  font-size: 14px;
  padding: 10px 14px;
}

/* ─── 统计条 ─── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: #0f3460;
  font-size: 15px;
  color: #8892b0;
  flex-shrink: 0;
}

.stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stats-bar .stat-item strong {
  color: #e94560;
  font-size: 17px;
}

/* ─── Tab 栏 ─── */
.queue-tabs {
  display: flex;
  border-bottom: 1px solid #0f3460;
  flex-shrink: 0;
}

.queue-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: #8892b0;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.queue-tab.active {
  color: #e94560;
  border-bottom: 2px solid #e94560;
  font-weight: 600;
}

/* ─── 人数筛选栏（仅等待中 Tab 显示） ─── */
.queue-party-filter {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #0f3460;
  flex-shrink: 0;
}

.pf-btn {
  padding: 6px 16px;
  font-size: 14px;
  background: #0f3460;
  color: #8892b0;
  border: 1px solid #533483;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.pf-btn.active {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

/* ─── 排队列表（填充剩余空间，滚动） ─── */
.queue-list-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.loading-text {
  text-align: center;
  color: #8892b0;
  padding: 30px 20px;
  font-size: 15px;
}

/* ─── 排队卡片（三栏：徽章 + 信息 + 操作） ─── */
.queue-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #0f3460;
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.queue-card:active {
  background: rgba(255,255,255,0.03);
}

/* 号码徽章 — 矩形圆角，带颜色 */
.position-badge {
  width: 48px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

/* v0.3 颜色系统 */
.position-badge.badge-green  { background: #2ecc71; }
.position-badge.badge-yellow { background: #f39c12; }
.position-badge.badge-blue   { background: #3498db; }
.position-badge.badge-grey   { background: #555; }
.position-badge.badge-cancel { background: #E67E22; }
.position-badge.badge-noshow { background: #8B7355; }

/* 信息区 */
.queue-card .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.queue-card .info .name {
  font-size: 16px;
  font-weight: 600;
  color: #e6e6e6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-card .info .details {
  font-size: 13px;
  color: #8892b0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 操作按钮区 */
.queue-card .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.queue-card .actions button {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.queue-card .actions button:active {
  transform: scale(0.95);
}

.btn-call {
  background: #0f3460;
  color: #8892b0;
  border: 1px solid #533483;
}

.btn-cancel-ticket {
  background: #e94560;
  color: #fff;
}

/* ─── 颜色图例 — 固定在列表底部 ─── */
.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 16px;
  font-size: 12px;
  color: #8892b0;
  border-top: 1px solid #0f3460;
  flex-shrink: 0;
  background: #16213e;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-dot.dot-green  { background: #2ecc71; }
.legend-dot.dot-yellow { background: #f39c12; }
.legend-dot.dot-blue   { background: #3498db; }
.legend-dot.dot-grey   { background: #555; }

/* 挽回列表图例 */
.legend-dot.dot-cancel  { background: #E67E22; }
.legend-dot.dot-noshow  { background: #8B7355; }

/* ─── 取号按钮 — 固定在底部 ─── */
.btn-add {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 700;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.1s;
  white-space: nowrap;
}

.btn-add:active {
  opacity: 0.85;
}

/* ─── Modal ─── */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #0f3460;
}

.modal-header h3 {
  font-size: 19px;
  font-weight: 600;
  color: #e6e6e6;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #8892b0;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #0f3460;
}

/* ─── Form ─── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #8892b0;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  background: #0f3460;
  border: 1px solid #533483;
  border-radius: 10px;
  color: #e6e6e6;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.form-group input:focus {
  border-color: #e94560;
}

.form-group input::placeholder {
  color: #5a6a8a;
}

/* ─── 人数调节 ─── */
.party-size-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.party-size-input {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  background: #0f3460;
  border: 1px solid #533483;
  border-radius: 10px;
  color: #fff;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.party-size-input::-webkit-inner-spin-button,
.party-size-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ps-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  background: #0f3460;
  border: 1px solid #533483;
  border-radius: 24px;
  color: #8892b0;
  cursor: pointer;
  text-align: center;
  transition: all 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.ps-btn:active {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

/* ─── 备注标签 ─── */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-btn {
  padding: 9px 16px;
  font-size: 15px;
  background: #0f3460;
  border: 1px solid #533483;
  border-radius: 22px;
  cursor: pointer;
  color: #8892b0;
  transition: all 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.tag-btn:active {
  transform: scale(0.95);
}

.tag-btn.active {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

/* ─── 按钮 ─── */
.btn-block {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-block:active {
  transform: scale(0.98);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #e94560;
  color: #fff;
  cursor: pointer;
  margin-top: 12px;
}

.btn-primary:disabled {
  background: #533483;
  color: #5a6a8a;
  cursor: not-allowed;
}

/* 通用次级按钮 — 和 btn-primary 同尺寸，仅颜色不同 */
.btn-secondary,
.btn-danger {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-secondary {
  background: #0f3460;
  color: #8892b0;
  border: 1px solid #533483;
}

.btn-danger {
  background: #3a1a2e;
  color: #e94560;
  border: 1px solid #533483;
}

/* ─── Action Sheet ─── */
.action-sheet {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: flex-end;
  align-items: flex-end;
}

#action-sheet-content {
  background: #16213e;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid #0f3460;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ─── Login Page ─── */
.login-container {
  max-width: 440px;
  margin: 80px auto 0;
  padding: 0 28px;
}

.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #e94560;
  margin-bottom: 8px;
}

.login-sub {
  font-size: 15px;
  color: #5a6a8a;
}

.checkbox-group {
  margin: 20px 0;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: #8892b0;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e94560;
  cursor: pointer;
}

.error-msg {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(233,69,96,0.15);
  color: #e94560;
  border-radius: 10px;
  font-size: 15px;
}

/* ─── Setting Page ─── */
.page-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 20px 50px;
  overflow-y: auto;
  max-height: 100vh;
  -webkit-overflow-scrolling: touch;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 16px;
  color: #8892b0;
  font-weight: 500;
}

.setting-section {
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.setting-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #5a6a8a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setting-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.setting-actions-row .btn-secondary,
.setting-actions-row .btn-danger {
  flex: 1;
  width: auto;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid #0f3460;
}

.info-row:last-child {
  border-bottom: none;
}

.license-warning span:last-child {
  color: #f39c12;
  font-weight: 500;
}

.license-expired span:last-child {
  color: #e94560;
  font-weight: 600;
}

/* ─── Switch Toggle ─── */
.switch-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.switch-label input[type="checkbox"] {
  display: none;
}

.switch-track {
  position: relative;
  width: 52px;
  height: 30px;
  background: #533483;
  border-radius: 15px;
  transition: background 0.2s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #e6e6e6;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.switch-label input:checked + .switch-track {
  background: #2ecc71;
}

.switch-label input:checked + .switch-track::after {
  transform: translateX(22px);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 28px;
  background: #16213e;
  color: #e6e6e6;
  border: 1px solid #0f3460;
  border-radius: 10px;
  font-size: 16px;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.toast-success { border-color: #2ecc71; }
.toast-error   { border-color: #e94560; }
.toast-warn    { border-color: #f39c12; }

/* ══════════════════════════════════════════
   响应式适配
   ══════════════════════════════════════════ */

/* 中屏（≤900px）— 横屏 iPad mini 等 */
@media (max-width: 900px) {
  .position-badge {
    width: 42px;
    height: 28px;
    font-size: 13px;
  }
  .queue-card .info .name {
    font-size: 15px;
  }
  .queue-card .info .details {
    font-size: 12px;
  }
}

/* 小屏（≤375px）— iPhone SE / 小手机 */
@media (max-width: 375px) {
  .lite-header {
    padding: 10px 12px;
  }
  .lite-header h1 {
    font-size: 17px;
  }
  .stats-bar {
    padding: 8px 12px;
    font-size: 13px;
    gap: 8px;
  }
  .stats-bar .stat-item strong {
    font-size: 15px;
  }
  .queue-tab {
    font-size: 14px;
    padding: 10px 0;
  }
  .queue-party-filter {
    padding: 8px 12px;
  }
  .pf-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
  .position-badge {
    width: 38px;
    height: 26px;
    font-size: 12px;
  }
  .queue-card {
    padding: 10px 12px;
    gap: 10px;
  }
  .queue-card .info .name {
    font-size: 14px;
  }
  .queue-card .info .details {
    font-size: 12px;
  }
  .queue-card .actions button {
    padding: 7px 12px;
    font-size: 13px;
  }
  .btn-add {
    padding: 14px;
    font-size: 17px;
    margin: 10px 12px;
  }
  .legend-bar {
    padding: 6px 12px;
    font-size: 11px;
    gap: 4px 8px;
  }
}

/* 横屏手机 */
@media (max-height: 500px) and (orientation: landscape) {
  .lite-header {
    padding: 8px 14px;
  }
  .lite-header h1 {
    font-size: 16px;
  }
  .stats-bar {
    padding: 6px 14px;
    font-size: 13px;
    gap: 12px;
  }
  .stats-bar .stat-item strong {
    font-size: 14px;
  }
  .queue-tab {
    font-size: 14px;
    padding: 8px 0;
  }
  .queue-party-filter {
    padding: 6px 14px;
  }
  .queue-card {
    padding: 8px 14px;
    gap: 10px;
  }
  .position-badge {
    width: 34px;
    height: 24px;
    font-size: 11px;
  }
  .queue-card .info .name {
    font-size: 14px;
  }
  .queue-card .info .details {
    font-size: 11px;
  }
  .queue-card .actions button {
    padding: 6px 10px;
    font-size: 12px;
  }
  .btn-add {
    padding: 8px 14px;
    font-size: 14px;
  }
  .legend-bar {
    padding: 4px 14px;
    font-size: 10px;
    gap: 4px 8px;
  }
  .legend-dot {
    width: 10px;
    height: 10px;
  }
}

/* ══════════════════════════════════════════
   Detail Card — 详情弹窗（Action Sheet 内）
   ══════════════════════════════════════════ */

.detail-card {
  background: #16213e;
  padding: 20px 20px 24px;
  max-height: 80vh;
  overflow-y: auto;
}

/* 头部 */
.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #0f3460;
  margin-bottom: 16px;
}

.detail-badge {
  background: #e94560;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.detail-name {
  font-size: 20px;
  font-weight: bold;
  color: #e6e6e6;
}

/* 信息区 */
.detail-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 6px 0;
}

.detail-label {
  color: #8892b0;
  flex-shrink: 0;
  font-size: 15px;
}

.detail-value {
  color: #e6e6e6;
  text-align: right;
  font-weight: 500;
  font-size: 15px;
}

/* 电话操作栏 */
.detail-phone-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.detail-btn-phone,
.detail-btn-copy {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}

.detail-btn-phone {
  background: #2ecc71;
}

.detail-btn-copy {
  background: #0f3460;
  color: #ccc;
  border: 1px solid #533483;
}

/* 备注区 */
.detail-notes {
  border-top: 1px solid #0f3460;
  padding-top: 14px;
  margin-bottom: 14px;
}

.detail-note-editable {
  margin-top: 8px;
}

.detail-note-editable textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #0f3460;
  background: #0a0a23;
  color: #e6e6e6;
  font-size: 15px;
  resize: vertical;
  font-family: inherit;
}

.detail-note-editable textarea:focus {
  outline: none;
  border-color: #533483;
}

/* 快捷标签工具栏 */
.detail-note-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.quick-tag {
  padding: 6px 14px;
  font-size: 14px;
  color: #8892b0;
  background: #0f3460;
  border: 1px solid #533483;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.quick-tag:active {
  background: #1a3a6a;
  color: #e6e6e6;
  border-color: #7B52AB;
}

/* 备注底部操作栏 */
.detail-note-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.detail-btn-clear {
  padding: 8px 18px;
  background: transparent;
  color: #8892b0;
  border: 1px solid #533483;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.detail-btn-save {
  padding: 8px 18px;
  background: #533483;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.detail-btn-save:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 底部操作按钮 */
.detail-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px solid #0f3460;
}

.detail-btn-notify {
  flex: 1;
  padding: 14px;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detail-btn-seated {
  flex: 1;
  padding: 14px;
  background: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detail-btn-noshow {
  flex: 1;
  padding: 14px;
  background: #8B7355;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.detail-btn-cancel {
  flex: 1;
  padding: 14px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 时间线行 */
.detail-time-row {
  padding: 8px 0;
  font-size: 14px;
  color: #8892b0;
  border-bottom: 1px solid rgba(15, 52, 96, 0.3);
}

.detail-time-row:last-child {
  border-bottom: none;
}

.detail-time-label {
  color: #5a6a8a;
  margin-right: 10px;
}

/* 客人备注 */
.detail-guest-note {
  padding: 8px 12px;
  background: rgba(243, 156, 24, 0.1);
  border: 1px solid rgba(243, 156, 24, 0.2);
  border-radius: 8px;
  font-size: 14px;
  color: #f39c12;
  margin-bottom: 12px;
}

/* Detail Card 按钮 active */
.detail-btn-notify:active,
.detail-btn-seated:active,
.detail-btn-noshow:active,
.detail-btn-cancel:active {
  transform: scale(0.96);
}

/* ══════════════════════════════════════════
   Admin Dashboard
   ══════════════════════════════════════════ */

.admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(233,69,96,0.08);
  border-radius: 10px;
  justify-content: center;
}

.summary-item {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
}

.admin-card {
  background: #16213e;
  border: 1px solid #1f3560;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-card:last-child {
  margin-bottom: 0;
}

.admin-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-store-name {
  font-size: 18px;
  font-weight: 700;
  color: #e94560;
}

.admin-store-tag {
  font-size: 11px;
  color: #5a6a8a;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ─── 英雄指标 ─── */
.admin-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}

.hero-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.hero-value.waiting { color: #f59e0b; }

.hero-metric.seated .hero-value { color: #22c55e; }

.hero-label {
  font-size: 12px;
  color: #5a6a8a;
  margin-top: 4px;
}

/* ─── 次级行 ─── */
.admin-sub-row {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 0;
  border-top: 1px solid rgba(85,255,255,0.08);
  font-size: 13px;
  color: #8892b0;
}

.admin-sub-row .sub-item b {
  color: #ccc;
  font-weight: 600;
}

.admin-sub-row .sub-item.danger b {
  color: #ef4444;
}
