/* 大美丽食堂 — 主题扩展 */
:root {
  --teal: #e85d04;
  --teal-d: #c44d00;
  --gold: #f48c06;
  --gold-l: #fff3e0;
  --green: #2a9d6e;
}

.hub-body.meal-theme {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(232, 93, 4, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(244, 140, 6, 0.18), transparent),
    linear-gradient(180deg, #fff8f3 0%, #fef0e6 100%);
}

.hub-logo.meal-logo {
  background: linear-gradient(145deg, #e85d04, #f48c06);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);
}

.portal-card.user .icon { background: #ffe8d6; }
.portal-card.admin-meal .icon { background: #fff0db; }

.meal-hero {
  background: linear-gradient(145deg, #e85d04, #f48c06);
  color: #fff;
  padding: 20px 16px 24px;
  border-radius: 0 0 20px 20px;
  margin: -1px -1px 0;
}

.meal-hero .date-line {
  font-size: 12px;
  opacity: 0.85;
}

.meal-hero h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}

.deadline-pill.closed {
  background: rgba(0, 0, 0, 0.2);
}

.dish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dish-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  text-align: center;
  transition: 0.15s ease;
  cursor: pointer;
  position: relative;
}

.dish-card:hover { border-color: #f4b942; }

.dish-card.selected {
  border-color: var(--teal);
  background: #fff8f3;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.dish-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.dish-card .emoji {
  font-size: 28px;
  line-height: 1.2;
}

.dish-card .name {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.dish-card .desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.dish-card .check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  color: transparent;
}

.dish-card.selected .check {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.meal-slot-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
  overflow-x: auto;
}

.meal-slot-tabs button {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #f0f2f5;
}

.meal-slot-tabs button.active {
  background: var(--teal);
  color: #fff;
}

.meal-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.selected-preview {
  padding: 8px 16px 12px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fffaf5;
  border-bottom: 1px solid var(--line);
}

.selected-preview strong { color: var(--teal); }

.submit-bar {
  position: sticky;
  bottom: 56px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.user-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #fff5eb;
  border-bottom: 1px solid #ffe0c2;
  font-size: 11px;
}

.user-switch button {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
}

.user-switch button.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.report-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-end;
}

.report-bar .form-field {
  margin: 0;
  min-width: 140px;
}

.report-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .report-kpi-row { grid-template-columns: 1fr; }
}

.menu-editor-meal {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafcfd;
}

.menu-editor-meal h4 {
  margin: 0 0 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dish-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dish-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.dish-pick.on {
  background: #fff3e0;
  border-color: var(--teal);
  color: var(--teal-d);
  font-weight: 600;
}

.sidebar.meal-sidebar .brand-mark {
  background: linear-gradient(135deg, #e85d04, #f48c06);
}

.clickable-row { cursor: pointer; }
.clickable-row:hover td { background: #fff8f3 !important; }

.plan-block .plan-kpi.accent {
  border-color: var(--teal);
  background: #fff8f3;
}

.badge.orange { background: #ffe8d6; color: #c44d00; }

.chart-mini {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-top: 8px;
}

.chart-mini .bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.chart-mini .bar {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, #f48c06, #e85d04);
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
}

.chart-mini .lbl {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chart-mini .cnt {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-d);
}

/* 与百宝箱值班表相同的密码门样式 */
.duty-gate { text-align: center; padding: 20px 16px 18px; max-width: 360px; margin: 48px auto 24px; }
.duty-gate .label { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.duty-gate .cur { margin-bottom: 10px; text-align: center; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; }
.duty-unlock-btn {
  width: 100%; border: none; border-radius: 10px; padding: 11px 14px;
  background: var(--teal); color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer;
}
.duty-unlock-btn:active { opacity: .88; }
.duty-gate-err { color: var(--rose); font-size: 12px; margin-top: 10px; }
