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

:root {
  /* PayPal 蓝主色调 */
  --primary: #0070e0;
  --primary-dark: #002F86;
  --primary-light: #80caff;
  --primary-bg: #e6f4ff;
  --primary-border: #b3d9ff;

  /* 中性色 */
  --bg: #f2f5f9;
  --white: #ffffff;
  --surface: #ffffff;
  --border: #dce8f5;
  --border-light: #eef4fa;
  --text: #1a2e42;
  --text-secondary: #5a6f87;
  --text-muted: #94a8bc;

  /* 状态色 */
  --success: #00b07c;
  --success-bg: #e7faf5;
  --success-border: #a3e8d4;
  --warning: #ff8c00;
  --warning-bg: #fff7e6;
  --warning-border: #ffc266;
  --danger: #e53e3e;
  --danger-bg: #fff1f0;
  --danger-border: #fdc9c9;
  --info: #0070e0;
  --info-bg: #e6f4ff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f2f5f9;
  color: var(--text);
  min-height: 100vh;
}

/* 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #002F86, var(--primary));
}
.login-card {
  background: var(--white);
  padding: 48px;
  border-radius: 16px;
  width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.login-card h1 { font-size: 24px; margin-bottom: 8px; color: var(--primary); }
.login-card p { color: var(--text-secondary); margin-bottom: 32px; font-size: 14px; }
.login-card input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.login-card button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.login-card button:hover { background: var(--primary-light); }
.login-card .hint { font-size: 12px; color: var(--text-secondary); margin-top: 12px; text-align: center; }

/* 管理后台布局 */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 220px;
  background: #002F86;
  color: white;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-logo {
  padding: 24px 20px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.nav-item:hover { background: rgba(255,255,255,0.1); }
.nav-item.active { background: rgba(255,255,255,0.2); }
.nav-item .icon { font-size: 18px; }

/* 主内容区 */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  background: var(--white);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header h2 { font-size: 18px; font-weight: 500; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-right .user { font-size: 14px; color: var(--text-secondary); }
.logout-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.stat-card.clickable { cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; }
.stat-card.clickable:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }

/* 卡片面板 */
.panel {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.panel-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-title button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

/* 表格 */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th { font-weight: 500; color: var(--text-secondary); font-size: 13px; }
tr:hover { background: #f0f5f9; }

/* 标签 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.badge-idle { background: var(--primary-bg); color: var(--primary); }
.badge-occupied { background: var(--warning-bg); color: var(--warning); }
.badge-pending { background: var(--danger-bg); color: var(--danger); }
.badge-active { background: var(--info-bg); color: var(--info); }
.badge-completed { background: var(--primary-bg); color: var(--primary); }
.badge-maintenance { background: #f5f5f5; color: var(--text-muted); border: 1px solid var(--border); }
.badge-waived { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
#productsTableEl .cost-col { display: none; }
#productsTableEl.show-cost .cost-col { display: table-cell; }
#historyTableEl .profit-col { display: none; }
#historyTableEl.show-profit .profit-col { display: table-cell; }

/* 支出类别标签 */
.cat-badge { display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:600; }
.cat-wage { background:var(--info-bg);color:var(--info); }
.cat-repair { background:var(--warning-bg);color:var(--warning); }
.cat-snack { background:var(--primary-bg);color:var(--primary); }
.cat-chess { background:#f0f4f9;color:var(--text-secondary); }
.cat-other { background:#f0f4f9;color:var(--text-secondary); }

/* 维修按钮（橙色警告） */
.btn-sm.warning { background: var(--warning); color: white; border: none; }
.btn-sm.warning:hover { background: #d97706; }

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal h3 { font-size: 18px; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }
.modal-actions button,
.btn {
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid var(--border);
  background: white;
  font-family: inherit;
  line-height: 1;
}
.btn-confirm,
button.btn-confirm {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  font-weight: 600;
}

/* 主要按钮 */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }

/* 操作按钮 */
.btn-sm {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid solid var(--border);
  background: white;
  margin-right: 6px;
}
.btn-sm.primary { background: var(--primary); color: white; border: none; }
.btn-sm.danger { color: var(--danger); }
.btn-sm.success { color: var(--primary); }

/* 房间属性标签 */
[id^="prop_lbl_"] { outline: none; }
[id^="prop_lbl_"]:hover { filter: brightness(0.95); }

/* 空状态 */
.empty { text-align: center; padding: 48px; color: var(--text-secondary); font-size: 14px; }
td.empty { padding: 48px; }

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
}

/* Tab */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 16px; gap: 4px; }
.tab { padding: 8px 16px; cursor: pointer; font-size: 14px; border-bottom: 2px solid transparent; }
.tab.active { border-color: var(--primary); color: var(--primary); }

/* 营收柱状图 */
.chart-wrap { overflow-x: auto; padding-bottom: 8px; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; min-width: 600px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar { width: 100%; max-width: 24px; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 2px; transition: opacity 0.2s; }
.bar:hover { opacity: 0.8; }
.bar-label { font-size: 10px; color: var(--text-secondary); white-space: nowrap; }
.bar-value { font-size: 10px; color: #333; font-weight: 600; }
.bar.today .bar { background: var(--warning); }

/* 分月统计 */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.month-card { background: #fafafa; border-radius: 8px; padding: 14px; border: 1px solid var(--border); }
.month-card .m-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.month-card .m-value { font-size: 20px; font-weight: 700; color: var(--primary); }
.month-card .m-sub { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* 历史订单 */
.order-filter { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.order-filter select, .order-filter input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.pagination button { padding: 4px 12px; border: 1px solid var(--border); border-radius: 4px; background: white; cursor: pointer; font-size: 13px; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 13px; color: var(--text-secondary); }

/* 收款方式标签 */
.pay-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.pay-cash { background: var(--info-bg); color: var(--info); }
.pay-wechat { background: var(--primary-bg); color: var(--primary); }
.pay-alipay { background: #f0f4f9; color: var(--text-secondary); }
.pay-credit { background: var(--warning-bg); color: var(--warning); }


/* 员工工作台 */
.staff-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.staff-left {}
.staff-right {}

/* 待配送大字警告 */
.delivery-alert {
  background: #fff1f0;
  border: 2px solid #ff4d4f;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #cf1322;
  text-align: center;
  animation: pulse-red 1.5s ease-in-out infinite;
}
@keyframes pulse-red {
  0%, 100% { background: #fff1f0; }
  50% { background: #ffe7e7; }
}

/* 桌位网格 */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.table-card {
  border-radius: 10px; padding: 14px; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.2s; min-height: 90px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.table-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.table-card.idle { background: var(--primary-bg); border-color: var(--primary-border); }
.table-card.occupied { background: var(--warning-bg); border-color: var(--warning); }
.table-card.reserved { background: #fff7e6; border-color: var(--warning); }
.table-card.pending { background: var(--danger-bg); border-color: var(--danger-border); }
.table-card.maintenance { background: #f0f4f9; border-color: var(--border); opacity: 0.7; cursor: not-allowed; }
/* 待配送房间：红色闪烁边框 */
.table-card.has-pending {
  background: #fff1f0;
  border-color: #ff4d4f;
  animation: card-pulse-red 1.8s ease-in-out infinite;
}
@keyframes card-pulse-red {
  0%, 100% { background: #fff1f0; border-color: #ff4d4f; }
  50% { background: #ffe7e7; border-color: #cf1322; }
}
.table-card.has-pending .t-status {
  background: #ff4d4f;
  color: #fff;
}
.table-card .t-name { font-size: 15px; font-weight: 700; }
.table-card .t-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.table-card.idle .t-status { background: var(--primary-border); color: var(--primary); }
.table-card.occupied .t-status { background: var(--warning-bg); color: var(--warning); }
.table-card.reserved .t-status { background: #ffe7ba; color: var(--warning); }
.table-card.pending .t-status { background: var(--danger-border); color: var(--danger); }
.table-card .t-fee { font-size: 12px; color: #666; }
.table-card .t-time { font-size: 11px; color: #94a8bc; }
.table-card .t-reserve-phone { font-size: 12px; color: var(--warning); margin-top: 4px; }
.table-card .t-reserve-countdown { font-size: 11px; color: var(--primary); font-weight: 600; }
.table-card .t-price { font-size: 11px; color: var(--primary); font-weight: 600; }

/* 商品分类标签 */
.cat-tag {
  display: inline-block; border-radius: 4px; padding: 1px 8px; font-size: 12px; font-weight: 600;
}
.cat-chess    { background: var(--warning-bg); color: var(--warning); }   /* 棋牌 - 橙色 */
.cat-drink    { background: var(--info-bg); color: var(--info); }   /* 饮料 - 蓝色 */
.cat-snack    { background: var(--primary-bg); color: var(--primary); }   /* 零食 - 绿色 */
.cat-tea      { background: #f0fff4; color: #2e8b57; }   /* 茶叶 - 绿色 */
.cat-other    { background: #f0f4f9; color: var(--text-secondary); }  /* 其他 - 中性灰蓝 */

/* 订单列表 */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card {
  background: #fafafa; border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  border-left: 4px solid var(--primary);
}
.order-card.pending_checkout { border-left-color: var(--danger); }
.order-card .oc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-card .oc-room { font-size: 15px; font-weight: 700; }
.order-card .oc-status { font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.order-card .oc-status.active { background: var(--warning-bg); color: var(--warning); }
.order-card .oc-status.pending_checkout { background: var(--danger-border); color: var(--danger); }
.order-card .oc-row { font-size: 13px; color: #666; margin-bottom: 4px; display: flex; gap: 8px; }
.order-card .oc-row span:first-child { color: #94a8bc; min-width: 60px; }
.order-card .oc-products { margin: 6px 0; }
.order-card .oc-products .prod-tag {
  display: inline-block; background: var(--info-bg); color: var(--info); border-radius: 4px;
  padding: 1px 6px; font-size: 12px; margin: 2px 4px 2px 0;
}
.order-card .oc-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* 商品快速添加 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; }
.product-btn {
  padding: 8px 6px; border: 1px solid var(--border); border-radius: 8px;
  background: white; cursor: pointer; text-align: center; font-size: 12px;
  transition: all 0.15s;
}
.product-btn:hover { background: var(--info-bg); border-color: var(--info); }
.product-btn .p-name { font-weight: 600; margin-bottom: 2px; }
.product-btn .p-price { color: var(--primary); font-weight: 700; }

/* 空闲时提示 */
.staff-hint { text-align: center; padding: 32px; color: var(--text-secondary); font-size: 14px; }

/* 商品标签区分员工/用户 */
.prod-tag-staff {
  display: inline-block; background: var(--info-bg); color: var(--info); border-radius: 4px;
  padding: 1px 6px; font-size: 12px; margin: 2px 4px 2px 0;
}
.prod-tag-customer {
  display: inline-block; background: var(--primary-bg); color: var(--primary); border-radius: 4px;
  padding: 1px 6px; font-size: 12px; margin: 2px 4px 2px 0;
}
/* 待配送批次 */
.delivery-batch {
  border: 1.5px solid #ff4d4f;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #fff1f0;
}
.delivery-batch.done {
  border-color: #d9d9d9;
  background: #fafafa;
  opacity: 0.7;
}
.delivery-batch-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.delivery-batch-time {
  font-size: 11px; color: #94a8bc;
}
.delivery-batch-done-btn {
  background: var(--success); color: #fff; border: none;
  border-radius: 4px; padding: 3px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer;
}
.delivery-batch-done-btn:hover { background: #00947a; }
.delivery-batch-done-badge {
  background: var(--success-bg); color: var(--success);
  border-radius: 4px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.delivery-batch-items { display: flex; flex-wrap: wrap; gap: 4px; }

/* 点单 Modal */
.modal-tip {
  background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #ad6800; margin-bottom: 12px;
}
.modal-products-list { max-height: 380px; overflow-y: auto; }
.modal-product-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.modal-product-row:last-child { border-bottom: none; }
.modal-prod-img-wrap {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  position: relative; background: #f0f4f8; cursor: pointer;
}
.modal-prod-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.modal-prod-img-wrap:hover .modal-prod-img { opacity: 0; }
.modal-prod-img-wrap:hover::after {
  content: '查看大图';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: rgba(0,112,224,0.85);
  border-radius: 8px;
}
.modal-product-info { flex: 1; }
.modal-product-name { font-size: 14px; font-weight: 600; }
.modal-product-price { font-size: 13px; color: var(--primary); }
.modal-product-qty { display: flex; align-items: center; gap: 6px; }
.modal-qty-val { font-size: 16px; font-weight: 700; min-width: 24px; text-align: center; }

/* 点单弹窗：分类+搜索 */
.modal-order-wrap { display: flex; gap: 12px; height: 420px; }
.modal-order-cats {
  width: 90px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--border); padding-right: 12px; overflow-y: auto;
}
.modal-order-cat-btn {
  padding: 6px 8px; border-radius: 6px; border: none; background: #f0f4f8;
  font-size: 13px; color: #666; cursor: pointer; text-align: left; transition: all .15s;
}
.modal-order-cat-btn:hover { background: #e0eaff; color: #0070e0; }
.modal-order-cat-btn.active { background: #0070e0; color: #fff; font-weight: 600; }
.modal-order-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.modal-order-search {
  display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; margin-bottom: 10px; gap: 6px;
}
.modal-order-search input {
  border: none; outline: none; flex: 1; font-size: 13px; background: transparent;
}
.modal-order-search input::placeholder { color: #bbb; }
.modal-order-search .search-icon { color: #aaa; font-size: 14px; }
.modal-order-list { flex: 1; overflow-y: auto; }
.modal-order-empty { text-align: center; color: #aaa; padding: 40px 0; font-size: 13px; }

/* 修改商品 Modal */
.modal-edit-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.modal-edit-item:last-child { border-bottom: none; }
.modal-edit-info { flex: 1; }
.modal-edit-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* 结账确认 Modal */
.checkout-section {
  background: #f8f9fa; border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px;
}
.checkout-section-title {
  font-size: 12px; color: #94a8bc; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 10px; font-weight: 600;
}
.checkout-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; font-size: 14px;
}
.checkout-row .label { color: #666; }
.checkout-row .value { font-weight: 600; color: #333; }
.checkout-row .value.highlight { color: var(--primary); font-size: 15px; }
.checkout-row .value.success { color: var(--primary); }
.checkout-row .value.muted { color: #94a8bc; font-weight: 400; }

.checkout-divider {
  height: 1px; background: var(--border); margin: 8px 0;
}

.checkout-formula {
  background: var(--primary-bg); border: 1px solid var(--primary-border); border-radius: 8px;
  padding: 12px 14px; margin: 10px 0; font-size: 13px; color: #333;
  line-height: 1.8;
}
.checkout-formula .formula-title {
  font-weight: 700; color: var(--primary); margin-bottom: 4px; font-size: 14px;
}
.checkout-formula .formula-line { display: flex; justify-content: space-between; }
.checkout-formula .formula-note { color: var(--primary); font-size: 12px; margin-top: 4px; }

.checkout-total-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary); color: white; border-radius: 10px;
  padding: 16px 18px; margin-top: 8px;
}
.checkout-total-row .label { font-size: 15px; opacity: 0.9; }
.checkout-total-row .amount { font-size: 26px; font-weight: 800; }

.checkout-room-info {
  text-align: center; font-size: 18px; font-weight: 700;
  color: var(--primary); margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* 蓝色 info 按钮 */
.btn-sm.info { background: var(--info); color: white; border: none; }
.btn-sm.info:hover { background: var(--info); }

/* 橙色 warning 按钮（撤回用） */
.btn-sm.warning { background: var(--warning); color: white; border: none; }
.btn-sm.warning:hover { background: #d56c00; }

/* 响应式 */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .staff-layout { grid-template-columns: 1fr; }
  .admin-layout { display: block; }
  .main { display: block; }
  .header { padding: 12px 16px; }
  .content { padding: 16px; }
  .mobile-menu-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 8px;
    margin-right: 12px;
  }
}

/* 手机侧边栏遮罩 */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
body.sidebar-open .sidebar-overlay {
  display: block;
}
body.sidebar-open .sidebar {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1001;
  animation: slideIn 0.2s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* 手机菜单按钮（在媒体查询中控制显示） */
}

/* 需要提醒的订单列表 */
#urgentOrdersBanner {
  margin: 10px 0;
}
.urgent-banner {
  background: #fff3e0;
  border: 2px solid #ff9800;
  border-radius: 10px;
  padding: 12px 14px;
}
.urgent-title {
  font-size: 14px;
  font-weight: 700;
  color: #e65100;
  margin-bottom: 10px;
}
.urgent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.urgent-order-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #ffcc80;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.urgent-order-item:hover {
  background: #fff8e1;
  border-color: #ff9800;
}
.urgent-order-item.critical {
  background: #ffebee;
  border-color: #f44336;
  animation: urgentPulse 1s infinite;
}
.urgent-room {
  font-weight: 700;
  color: #333;
}
.urgent-source {
  color: #666;
  font-size: 12px;
}
.urgent-time {
  color: #ff5722;
  font-weight: 600;
}
.urgent-order-item.critical .urgent-time {
  color: #d32f2f;
}
@keyframes urgentPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
/* 超时订单 */
.urgent-order-item.overtime {
  background: #fce4ec;
  border: 2px solid #c62828;
  animation: overtimeFlash 0.8s infinite;
}
.urgent-order-item.overtime .urgent-room {
  color: #c62828;
}
.urgent-order-item.overtime .urgent-time {
  color: #c62828;
  font-weight: 700;
}
@keyframes overtimeFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 锁定遮罩层 */
#lockOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: white !important;
  z-index: 99998 !important;
  display: none !important;
}
body.locked #lockOverlay {
  display: block !important;
}

/* 解锁弹窗 */
#lockDialog {
  display: none !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: white !important;
  border-radius: 16px !important;
  padding: 40px !important;
  min-width: 300px !important;
  text-align: center !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
  z-index: 99999 !important;
}
body.locked #lockDialog {
  display: block !important;
}

/* 内容区初始隐藏（锁定状态） */
.content.content-hidden {
  display: none !important;
}
