/* ═══════════════════════════════════════════════════════════════
   Enterprise Meal Access System — pages/kitchen-planning.css
═══════════════════════════════════════════════════════════════ */

/* ── KITCHEN PLANNING ─────────────────────────────────────────── */
.cn-kitchen-meal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.cn-kitchen-meal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cn-kitchen-meal-emoji { font-size: 22px; flex-shrink: 0; }
.cn-kitchen-meal-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.cn-kitchen-meal-time { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.cn-kitchen-bars { display: flex; flex-direction: column; gap: 14px; }
.cn-kitchen-bar-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.cn-kitchen-bar-name { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: capitalize; }
.cn-kitchen-bar-nums { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.cn-kitchen-track {
  height: 8px;
  background: var(--surface-hover);
  border-radius: 4px;
  overflow: hidden;
}
.cn-kitchen-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.cn-kitchen-fill.expected { background: #94a3b8; }
.cn-kitchen-fill.prepared { background: var(--accent); }
.cn-kitchen-fill.consumed { background: #10b981; }
.cn-kitchen-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.cn-kitchen-num { text-align: center; }
.cn-kitchen-num-val { font-size: 22px; font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); }
.cn-kitchen-num-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Kitchen recommended prep guide ── */
.cn-kitchen-rec {
  margin-top: 14px;
  background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.18);
  border-radius: 10px;
  padding: 12px 16px;
}
.dark .cn-kitchen-rec { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.25); }
.cn-kitchen-rec-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cn-kitchen-rec-note {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.cn-kitchen-rec-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cn-kitchen-rec-item {
  flex: 1;
  min-width: 72px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.cn-kitchen-rec-total {
  border-color: var(--text-secondary) !important;
}
.cn-kitchen-rec-val {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
}
.cn-kitchen-rec-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-top: 4px;
}
.cn-kitchen-rec-exp {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* ── Wastage badge (also used in reports) ─────────────────────── */
.cn-wastage-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.cn-wastage-badge.low  { background: rgba(16,185,129,.1); color: #047857; }
.cn-wastage-badge.med  { background: rgba(245,158,11,.1); color: #d97706; }
.cn-wastage-badge.high { background: rgba(239,68,68,.1);  color: #b91c1c; }
