/* ============================================================
   INTAPP OFFICE CATERING — MAIN CSS
   Mobile-first, fully responsive
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0A2240;
  --blue:      #0073E6;
  --blue-light:#EBF4FF;
  --green:     #38A169;
  --green-light:#E6FFF2;
  --red:       #C53030;
  --red-light: #FFF5F5;
  --orange:    #D97706;
  --orange-light:#FFFBEB;
  --gray-50:   #F8F9FA;
  --gray-100:  #F1F3F5;
  --gray-200:  #E9ECEF;
  --gray-300:  #DEE2E6;
  --gray-400:  #ADB5BD;
  --gray-600:  #6C757D;
  --gray-700:  #495057;
  --gray-800:  #343A40;
  --white:     #FFFFFF;
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
}

/* NOTE: overflow-x:hidden must NOT go on <html> — it breaks position:fixed on
   iOS Safari (fixed elements scroll with the page / float mid-screen). Keep the
   horizontal clip on <body> only, and give <body> position:relative so it still
   contains any stray horizontal overflow. */
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--gray-800); background: var(--gray-50); line-height: 1.5; min-height: 100vh; overflow-x: hidden; position: relative; width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* --- TYPOGRAPHY --- */
h1 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; color: var(--navy); }
h2 { font-size: clamp(18px, 3vw, 22px); font-weight: 700; color: var(--navy); }
h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
p  { margin-bottom: 0; }
.text-muted  { color: var(--gray-600); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }
.text-center { text-align: center; }
.required    { color: var(--red); }

/* --- NAV --- */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-brand img { height: 24px; width: auto; }
.nav-brand-label {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 10px;
  white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.12); color: white; text-decoration: none; }
.nav-links .nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}
.nav-user {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 14px;
  flex-shrink: 0;
}
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue);
  color: white; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: 0.2s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex !important; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: var(--navy);
    padding: 4px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    z-index: 9999;
    width: 100%;
    max-width: 100vw;
  }
  .nav-links.open { display: flex !important; }
  .nav-links li { list-style: none; width: 100%; }
  .nav-links a {
    padding: 16px 24px;
    font-size: 16px;
    display: block;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9) !important;
  }
  .nav-links a.nav-cta {
    margin: 12px 20px 0;
    border-radius: 8px !important;
    text-align: center;
    width: calc(100% - 40px);
    border-bottom: none;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
  .nav-inner { position: relative; }
  .nav-user span { display: none; }
}

/* --- HERO BANNER --- */
.page-hero {
  background: var(--navy);
  color: white;
  padding: clamp(24px, 5vw, 48px) 16px;
  text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 8px; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 15px; }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.page-content { padding: 24px 16px; max-width: 1200px; margin: 0 auto; }

.admin-layout {
  display: flex; min-height: calc(100vh - 56px);
  max-width: 100%; overflow-x: hidden;
}
.admin-sidebar {
  width: 200px; flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--gray-200);
  padding: 20px 0;
  position: sticky; top: 56px; height: calc(100vh - 56px);
  overflow-y: auto;
}
.admin-main {
  flex: 1; min-width: 0; max-width: 100%;
  padding: clamp(12px, 2vw, 24px);
  background: var(--gray-50);
  overflow-x: hidden;
}

@media (max-width: 1100px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px; width: 100%; }
}

/* --- SIDEBAR --- */
.sidebar-section { margin-bottom: 8px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--gray-400);
  padding: 8px 20px 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  font-size: 13px; color: var(--gray-700);
  border-radius: 0; transition: background 0.1s;
  text-decoration: none; white-space: nowrap;
}
.sidebar-link:hover { background: var(--gray-50); color: var(--navy); text-decoration: none; }
.sidebar-link.active { background: var(--blue-light); color: var(--blue); font-weight: 600; border-left: 3px solid var(--blue); }
.sidebar-link .icon { font-size: 15px; width: 18px; text-align: center; }

/* --- CARDS --- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.card-header h3 { margin: 0; font-size: 15px; }
.card-body { padding: 20px; }
@media (max-width: 600px) {
  .card-body { padding: 16px; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap; line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn-primary  { background: var(--blue);  color: white; }
.btn-navy     { background: var(--navy);  color: white; }
.btn-success  { background: var(--green); color: white; }
.btn-outline  { background: white; color: var(--navy); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); }
.btn-ghost    { background: transparent; color: var(--gray-700); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger   { background: var(--red); color: white; }
.btn-sm  { padding: 5px 12px; font-size: 13px; }
.btn-lg  { padding: 12px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px; border-radius: var(--radius-md); }

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
}

/* --- FORMS --- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.form-control {
  display: block; width: 100%;
  padding: 10px 12px;
  font-size: 15px; color: var(--gray-800);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
  -webkit-appearance: none; appearance: none;
  min-height: 44px;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,115,230,0.12);
}
textarea.form-control { min-height: 90px; resize: vertical; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236C757D' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-hint { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- CHECKBOX GRID --- */
.checkbox-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.checkbox-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 40px;
}
.checkbox-item:hover { border-color: var(--blue); background: var(--blue-light); }
.checkbox-item.checked { border-color: var(--blue); background: var(--blue-light); color: var(--blue); font-weight: 600; }
.checkbox-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }

/* --- ALERTS --- */
.alert {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 14px; display: flex; align-items: flex-start; gap: 8px;
  max-width: 100%; box-sizing: border-box;
}
.alert-success { background: var(--green-light); color: #276749; border: 1px solid #9AE6B4; }
.alert-error   { background: var(--red-light);   color: var(--red); border: 1px solid #FEB2B2; }
.alert-warning { background: var(--orange-light); color: #92400E; border: 1px solid #FCD34D; }
.alert-info    { background: var(--blue-light);   color: #1E40AF; border: 1px solid #BFDBFE; }

/* --- TABLES --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.data-table th {
  background: var(--gray-50); color: var(--gray-700);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 16px; border-bottom: 1px solid var(--gray-200);
  text-align: left;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

/* --- BADGES & TAGS --- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.badge-blue    { background: var(--blue-light); color: var(--blue); }
.badge-green   { background: var(--green-light); color: var(--green); }
.badge-red     { background: var(--red-light); color: var(--red); }
.badge-navy    { background: var(--navy); color: white; }
.badge-gray    { background: var(--gray-100); color: var(--gray-700); }
.badge-orange  { background: var(--orange-light); color: var(--orange); }

/* --- ORDER SUMMARY CARDS --- */
.summary-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
}
.summary-card-header {
  background: var(--navy); color: white;
  padding: 14px 18px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.summary-card-header .day-name  { font-size: 16px; font-weight: 700; }
.summary-card-header .day-date  { font-size: 12px; opacity: 0.65; margin-top: 2px; }
.summary-card-header .day-count {
  background: rgba(255,255,255,0.15); color: white;
  font-size: 12px; padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.summary-body {
  background: var(--gray-50);
  padding: 16px 18px;
  border-bottom: 1px solid var(--gray-200);
}
.summary-body-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--gray-400); margin-bottom: 10px;
}
.summary-item {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0;
}
.summary-item-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
}
.summary-item-dot.diet { background: var(--red); width: 6px; height: 6px; margin-left: 14px; }
.summary-item-name {
  flex: 1; font-size: 14px; font-weight: 600; color: var(--navy);
  min-width: 0;
}
.summary-item-name.diet { font-size: 12px; font-weight: 400; color: var(--red); }
.summary-item-count {
  border-radius: 20px; padding: 3px 10px;
  font-size: 12px; font-weight: 700;
  min-width: 32px; text-align: center; flex-shrink: 0;
}
.summary-item-count.main { background: #EBF4FF; color: var(--navy); }
.summary-item-count.diet { background: var(--red-light); color: var(--red); }
.summary-item-sep { height: 6px; }

/* --- ORDER LIST ROWS --- */
.order-list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
}
.order-list-row:last-child { border-bottom: none; }
.order-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-light); color: var(--navy);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.order-info { flex: 1; min-width: 0; }
.order-name  { font-size: 14px; font-weight: 600; color: var(--navy); }
.order-meal  { font-size: 13px; color: var(--gray-600); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-diet  { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 2px; }
.order-conf  { font-size: 11px; color: var(--gray-400); flex-shrink: 0; }

/* --- GRID HELPERS --- */
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .grid-3 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- FLEX HELPERS --- */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* --- SPACING --- */
.mb-2  { margin-bottom: 4px; }
.mb-4  { margin-bottom: 8px; }
.mb-6  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 24px; }
.mt-4  { margin-top: 8px; }
.mt-6  { margin-top: 16px; }
.p-0   { padding: 0 !important; }

/* --- DAY TABS --- */
.day-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
.day-tab {
  padding: 8px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  color: var(--gray-600); background: white;
  border: 1px solid var(--gray-200);
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.day-tab:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.day-tab.active { background: var(--navy); color: white; border-color: var(--navy); }

/* --- MENU CARDS (employee menu page) --- */
.menu-day-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden; margin-bottom: 20px;
}
.menu-day-header {
  background: var(--navy); color: white;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.menu-day-header h3 { color: white; margin: 0; font-size: 16px; }
.menu-day-header .date { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 3px; }

/* --- MEAL OPTION CARDS --- */
.meal-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.meal-option:last-child { border-bottom: none; }
.meal-option:hover { background: var(--gray-50); }
.meal-option.selected { background: var(--blue-light); }
.meal-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gray-300); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s;
}
.meal-option.selected .meal-radio { border-color: var(--blue); }
.meal-option.selected .meal-radio::after {
  content: ''; width: 10px; height: 10px;
  border-radius: 50%; background: var(--blue);
}
.meal-photo { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.meal-info { flex: 1; min-width: 0; }
.meal-name  { font-size: 15px; font-weight: 600; color: var(--navy); }
.meal-desc  { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.meal-tags  { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.meal-tag   { font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-light); padding: 2px 8px; border-radius: 10px; }

/* --- STAT CARDS --- */
.stat-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  padding: 16px 20px;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--gray-600); margin-top: 2px; }

/* --- ADMIN PAGE TITLES --- */
.admin-page-title    { font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.admin-page-subtitle { font-size: 14px; color: var(--gray-600); }

/* --- DIVIDERS --- */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 20px 0; }
hr.divider { border: none; border-top: 1px solid var(--gray-200); margin: 16px 0; }

/* --- MENU BUILDER SPECIFIC --- */
.week-list-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background 0.1s;
  display: flex; align-items: center; justify-content: space-between;
}
.week-list-item:hover { background: var(--gray-50); }
.week-list-item.active { background: var(--blue-light); }
.week-detail-panel { flex: 1; padding: 24px; min-width: 0; }

@media (max-width: 900px) {
  .week-detail-panel { padding: 16px; }
}

.menu-builder-layout { display: flex; gap: 0; }
.menu-builder-list {
  width: 260px; flex-shrink: 0;
  border-right: 1px solid var(--gray-200);
  background: white;
}
@media (max-width: 900px) {
  .menu-builder-layout { flex-direction: column; }
  .menu-builder-list { width: 100%; border-right: none; border-bottom: 1px solid var(--gray-200); }
}

/* --- FOOTER --- */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.5);
  text-align: center; padding: 20px 16px; font-size: 13px; margin-top: auto;
}

/* --- MODAL OVERLAY --- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; margin: auto;
  max-height: 90vh; overflow-y: auto;
}

/* --- LABEL PRINT STYLES --- */
@media print {
  .no-print { display: none !important; }
  html, body { margin: 0 !important; padding: 0 !important; background: white !important; }
  @page { size: 3in 2in; margin: 0; }
}

/* --- MISC UTILS --- */
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rounded  { border-radius: 50%; }
.hidden   { display: none; }
.w-full   { width: 100%; }

/* Password toggle */
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 18px; padding: 4px;
}

/* Mobile bottom padding */
@media (max-width: 600px) {
  .page-content { padding-bottom: 32px; }
  .admin-main   { padding-bottom: 32px; }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ============================================================
   ADMIN MOBILE BOTTOM NAV
   ============================================================ */
.admin-mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  z-index: 500;
  padding: 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.admin-mobile-nav-items {
  display: flex; align-items: stretch;
  height: 60px;
}
.admin-mobile-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 6px 4px;
  color: var(--gray-600); font-size: 10px;
  text-decoration: none; cursor: pointer;
  border: none; background: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
  min-width: 0;
}
.admin-mobile-nav-item:hover, .admin-mobile-nav-item.active {
  color: var(--blue); text-decoration: none;
}
.admin-mobile-nav-item .icon { font-size: 22px; line-height: 1; }
.admin-mobile-nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }

/* Slide-out drawer */
.admin-mobile-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 8000;
}
.admin-mobile-drawer.open { display: block; }
.admin-mobile-drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
}
.admin-mobile-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 280px; background: white;
  overflow-y: auto; padding: 0;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.admin-mobile-drawer.open .admin-mobile-drawer-panel {
  transform: translateX(0);
}
.admin-mobile-drawer-header {
  background: var(--navy); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-mobile-drawer-header .title { color: white; font-weight: 700; font-size: 16px; }
.admin-mobile-drawer-close {
  background: none; border: none; color: white;
  font-size: 24px; cursor: pointer; padding: 4px;
  line-height: 1;
}
.drawer-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--gray-400);
  padding: 16px 20px 4px;
}
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; font-size: 15px;
  color: var(--gray-700); text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  -webkit-tap-highlight-color: transparent;
}
.drawer-link:active { background: var(--gray-50); }
.drawer-link .icon { font-size: 18px; width: 24px; text-align: center; }

@media (max-width: 1100px) {
  .admin-mobile-nav { display: block; }
  .admin-main { padding-bottom: 80px; }
}
@media (min-width: 1101px) {
  .admin-mobile-nav { display: none !important; }
  .admin-mobile-drawer { display: none !important; }
}

/* Fix header action buttons overflowing on mobile */
.page-actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
@media (max-width: 600px) {
  .page-actions { gap: 6px; }
  .page-actions .btn { font-size: 13px; padding: 8px 12px; }
  .admin-page-title { font-size: 20px; }
}

/* --- MEAL CARDS (order page) --- */
.meal-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
  -webkit-tap-highlight-color: transparent;
}
.meal-card:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(0,115,230,0.12); }
.meal-card.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,115,230,0.15); background: var(--blue-light); }
.meal-card-img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
}
.meal-card-img-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.meal-card-body { padding: 12px; }
.meal-card-name { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.meal-card-desc { font-size: 12px; color: var(--gray-600); margin-bottom: 6px; line-height: 1.4; }
.meal-card-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 8px; margin-right: 4px; margin-bottom: 2px;
}
.badge-main { background: var(--blue-light); color: var(--blue); }
.badge-tag  { background: var(--gray-100); color: var(--gray-700); }

/* Radio group */
.radio-group { display: flex; gap: 8px; }
.radio-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: 14px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 44px;
}
.radio-item:hover { border-color: var(--blue); background: var(--blue-light); }
.radio-item input[type=radio] { accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }

/* Container-md for order page */
.container-md { max-width: 800px; margin: 0 auto; padding: 0 16px; }
