/* =====================================================
   Admin panel
   Palette: white + light green + orange
   ===================================================== */
:root {
  --white: #ffffff;
  --green-50: #f4fbf6;
  --green-100: #e5f6ea;
  --green-200: #cbe9d4;
  --green-300: #9fd4af;
  --green-800: #245c3f;
  --green-900: #1a4a32;
  --orange-100: #fff1df;
  --orange-400: #f7a04a;
  --orange-500: #f28c28;
  --orange-700: #a85405;
  --ink: #16261d;
  --muted: #526a5c;
  --red: #b3261e;
  --red-bg: #fdecea;
  --radius: 12px;
  --font: 'Noto Sans Ethiopic', 'Nyala', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: var(--white);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; }

.layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--green-100);
  border-right: 2px solid var(--green-200);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: var(--green-900);
  background: var(--white);
  border: 2px solid var(--green-200);
  border-radius: var(--radius);
  border-left: 8px solid var(--orange-500);
}
.brand span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.brand.center { text-align: center; border: none; border-bottom: 4px solid var(--orange-500); border-radius: 0; padding: 0 0 10px; margin-bottom: 14px; background: none; }
.brand-logo, .brand-logo-lg { display: none; }

.whoami { padding: 0 4px 14px; margin-bottom: 10px; }
.whoami-name { font-size: 14px; font-weight: 700; color: var(--green-900); }
.whoami-role { font-size: 12px; color: var(--muted); margin-top: 1px; }

.role-badge { display: inline-block; padding: 2px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--green-100); color: var(--green-800); border: 2px solid var(--green-200); }

.sidebar nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* Every menu item is a real button: dark outline + solid bottom edge */
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-900);
  text-decoration: none;
  font-weight: 800;
  font-size: 14.5px;
  padding: 11px 14px;
  min-height: 48px;
  background: var(--white);
  border: 2px solid var(--green-900);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--green-900);
  cursor: pointer;
  user-select: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.sidebar nav a:hover { background: var(--green-50); transform: translateY(-2px); box-shadow: 0 5px 0 var(--green-900); }
.sidebar nav a:active { transform: translateY(3px); box-shadow: 0 0 0 var(--green-900); }
.sidebar nav a.active { background: var(--orange-500); color: var(--ink); }
.sidebar nav a.active:hover { background: var(--orange-400); }
.sidebar nav .nav-group { display: block; }
.sidebar nav .nav-group-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 14px; color: var(--green-900); background: var(--white); border: 2px solid var(--green-900); border-radius: var(--radius); box-shadow: 0 3px 0 var(--green-900); font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; list-style: none; user-select: none; transition: transform .12s, box-shadow .12s, background .12s; }
.sidebar nav .nav-group-toggle::-webkit-details-marker { display: none; }
.sidebar nav .nav-group-toggle:hover { background: var(--green-50); transform: translateY(-2px); box-shadow: 0 5px 0 var(--green-900); }
.sidebar nav .nav-group-toggle.active { background: var(--orange-500); color: var(--ink); }
.nav-chevron { width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; }
.nav-group[open] .nav-chevron { transform: rotate(225deg); }
.nav-submenu { display: grid; gap: 8px; padding: 8px 0 0 14px; }
.sidebar nav .nav-submenu a { min-height: 40px; padding: 8px 10px; font-size: 13px; border-width: 1px; border-radius: 10px; box-shadow: none; }
.sidebar nav .nav-submenu a:hover { box-shadow: 0 3px 0 var(--green-900); }
.sidebar nav a.logout { margin-top: auto; color: var(--red); border-color: var(--red); box-shadow: 0 3px 0 var(--red); }
.sidebar nav a.logout:hover { background: var(--red-bg); box-shadow: 0 5px 0 var(--red); }
.sidebar nav a.logout:active { box-shadow: 0 0 0 var(--red); }

/* ---------- Main content ---------- */
.content { flex: 1; min-width: 0; padding: 30px 36px 48px; overflow-x: auto; background: var(--white); }

h1 { font-size: 26px; line-height: 1.3; margin-bottom: 20px; color: var(--green-900); }
h2 { font-size: 18px; margin: 30px 0 12px; color: var(--green-800); }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin-bottom: 0; }

/* ---------- Stat boxes ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 10px; }
.stat-card {
  background: var(--green-50);
  border: 2px solid var(--green-200);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 4px 0 var(--green-200);
}
.stat-num { font-size: 32px; line-height: 1.2; font-weight: 800; color: var(--green-900); }
.stat-card:nth-child(3) .stat-num { color: var(--orange-700); }
.stat-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 4px; }

/* ---------- Tables ---------- */
.table-wrap { background: var(--white); border: 2px solid var(--green-200); border-radius: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--green-100); vertical-align: middle; }
th { background: var(--green-100); font-weight: 800; color: var(--green-900); white-space: nowrap; border-bottom: 2px solid var(--green-200); }
tbody tr:hover td { background: var(--green-50); }
tr:last-child td { border-bottom: none; }
tfoot td { background: var(--green-50); border-top: 2px solid var(--green-200); }

/* ---------- Buttons (box style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  background: var(--orange-500);
  border: 2px solid var(--green-900);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--green-900);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { background: var(--orange-400); transform: translateY(-2px); box-shadow: 0 5px 0 var(--green-900); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--green-900); }

.btn-secondary { background: var(--white); color: var(--green-900); }
.btn-secondary:hover { background: var(--green-100); }

.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); box-shadow: 0 3px 0 var(--red); }
.btn-danger:hover { background: var(--red-bg); box-shadow: 0 5px 0 var(--red); }
.btn-danger:active { box-shadow: 0 0 0 var(--red); }

.btn-sm { min-height: 34px; padding: 5px 14px; font-size: 13px; border-radius: 10px; box-shadow: 0 2px 0 var(--green-900); }
.btn-sm:hover { box-shadow: 0 4px 0 var(--green-900); }

/* Row action links become small box buttons */
.actions { white-space: nowrap; }
.actions a {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-900);
  background: var(--white);
  border: 2px solid var(--green-900);
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--green-900);
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.actions a:hover { background: var(--green-100); transform: translateY(-1px); box-shadow: 0 3px 0 var(--green-900); }
.actions a:active { transform: translateY(2px); box-shadow: none; }
.actions a.danger { color: var(--red); border-color: var(--red); box-shadow: 0 2px 0 var(--red); }
.actions a.danger:hover { background: var(--red-bg); box-shadow: 0 3px 0 var(--red); }

/* ---------- Forms ---------- */
.form-box, .detail-box {
  background: var(--white);
  border: 2px solid var(--green-200);
  border-radius: 18px;
  padding: 26px;
  max-width: 540px;
  box-shadow: 0 5px 0 var(--green-200);
}
.detail-box p { margin-bottom: 6px; }
.detail-box p strong { color: var(--green-800); }

.form-box label { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 6px; color: var(--green-900); }
.form-box label:first-child { margin-top: 0; }

/* Keep the existing product image preview inside the edit form. */
.product-image-current { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 100%; margin: 8px 0 12px; }
.product-image-preview { display: block; width: auto; height: auto; max-width: min(100%, 220px); max-height: 180px; object-fit: contain; border: 1px solid var(--green-200); border-radius: 10px; background: var(--green-50); }

.form-box input[type=text], .form-box input[type=tel], .form-box input[type=password], .form-box select, .form-box textarea,
.filter-bar select, .filter-bar input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 2px solid var(--green-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--green-50);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-box input:hover, .form-box select:hover, .form-box textarea:hover, .filter-bar select:hover, .filter-bar input:hover { border-color: var(--green-300); }
.form-box input:focus, .form-box select:focus, .form-box textarea:focus, .filter-bar select:focus, .filter-bar input:focus {
  outline: none;
  border-color: var(--orange-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(242, 140, 40, .22);
}
.form-box .checkbox {
  display: flex; align-items: center; gap: 10px; font-weight: 700;
  padding: 10px 12px; background: var(--green-50); border: 2px solid var(--green-200); border-radius: var(--radius); cursor: pointer;
}
.form-box .checkbox input { width: 22px; height: 22px; min-height: 0; accent-color: var(--orange-500); }
.form-box .checkbox:has(input:checked) { background: var(--orange-100); border-color: var(--orange-500); }

.form-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filter-bar select, .filter-bar input { width: auto; min-width: 150px; }
.sales-filter > label { display: grid; gap: 2px; color: var(--green-900); font-size: 12px; font-weight: 700; }
.sales-filter > label input[type=date] { width: 170px; min-width: 150px; }
.question-results-filter input[type=search] { flex: 1 1 280px; min-width: min(100%, 240px); }
.question-results-date-filter { display: grid; gap: 2px; min-width: 150px; color: var(--green-900); font-size: 12px; font-weight: 700; }
.question-results-filter .question-results-date-filter input[type=date] { width: 170px; min-width: 150px; }
.question-results-group { margin-top: 22px; }
.question-results-group h2 { margin: 0 0 10px; }
.question-results-empty { margin: 12px 0 20px; }
.question-result-cards { display: grid; gap: 14px; }
.question-result-card { min-width: 0; padding: 16px; border: 2px solid var(--green-200); border-left: 5px solid var(--orange-500); border-radius: 14px; background: var(--white); box-shadow: 0 3px 0 var(--green-100); }
.question-result-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.question-result-number { color: var(--muted); font-size: 12px; font-weight: 800; }
.question-result-text { display: grid; gap: 6px; }
.question-result-text p { overflow-wrap: anywhere; line-height: 1.55; }
.question-result-text p strong { color: var(--green-800); }
.question-result-answer-title { margin: 14px 0 7px; font-size: 14px; }
.question-result-answer-list { display: grid; gap: 5px; }
.question-result-answer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 7px 10px; border: 1px solid var(--green-200); border-radius: 8px; background: var(--green-50); }
.question-result-answer-name { min-width: 0; overflow-wrap: anywhere; }
.question-result-answer-count { flex: 0 0 auto; color: var(--green-900); font-weight: 800; white-space: nowrap; }
.question-result-answer-count small { color: var(--muted); font-weight: 600; }
.question-result-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--green-200); color: var(--muted); font-size: 13px; }
.question-result-summary strong { color: var(--green-900); }

/* ---------- Messages ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 14px; font-weight: 700; border: 2px solid; }
.alert-success { background: var(--green-100); color: var(--green-900); border-color: var(--green-300); }
.alert-error { background: var(--red-bg); color: var(--red); border-color: var(--red); }

/* ---------- Misc blocks ---------- */
.qr-card { background: var(--white); border: 2px solid var(--green-200); padding: 20px; border-radius: 18px; text-align: center; max-width: 300px; margin-bottom: 20px; box-shadow: 0 5px 0 var(--green-200); }
.qr-card img { margin: 16px 0; max-width: 100%; height: auto; }
.muted { color: var(--muted); font-size: 13px; }
.link-preview { margin-top: 16px; font-size: 12px; color: var(--muted); word-break: break-all; }

.stars { color: var(--orange-500); letter-spacing: 1px; }
.comment-block { background: var(--green-50); border: 2px solid var(--green-200); padding: 14px; border-radius: var(--radius); margin-top: 6px; white-space: pre-wrap; }

/* ---------- Language switch ---------- */
.lang-switch { text-align: right; margin-bottom: 10px; }
.lang-switch a {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--green-900);
  background: var(--white); border: 2px solid var(--green-900); padding: 4px 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--green-900); text-decoration: none;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.lang-switch a:hover { background: var(--green-100); transform: translateY(-2px); box-shadow: 0 5px 0 var(--green-900); }
.lang-switch a:active { transform: translateY(3px); box-shadow: none; }
.sidebar .lang-switch { padding: 0 0 12px; margin-bottom: 0; text-align: left; }

/* ---------- Login page ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: var(--green-50); }
.login-box { background: var(--white); padding: 32px 28px; border-radius: 22px; width: 100%; max-width: 380px; border: 2px solid var(--green-200); box-shadow: 0 6px 0 var(--green-200); }
.login-box h2 { text-align: center; margin: 4px 0 18px; color: var(--green-900); font-size: 20px; }
.login-box label { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 6px; color: var(--green-900); }
.login-box input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 2px solid var(--green-200); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; color: var(--ink); background: var(--green-50);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-box input:hover { border-color: var(--green-300); }
.login-box input:focus { outline: none; border-color: var(--orange-500); background: var(--white); box-shadow: 0 0 0 4px rgba(242, 140, 40, .22); }
.login-box button {
  width: 100%; margin-top: 24px; min-height: 52px; padding: 12px; font: inherit; font-size: 16px; font-weight: 800;
  color: var(--ink); background: var(--orange-500); border: 2px solid var(--green-900); border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--green-900); cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.login-box button:hover { background: var(--orange-400); transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-900); }
.login-box button:active { transform: translateY(4px); box-shadow: none; }

/* ---------- Print (QR page) ---------- */
@media print {
  .sidebar, .form-actions, .content h1 { display: none; }
  .content { padding: 0; }
  .qr-card { box-shadow: none; }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 2px solid var(--green-200); padding: 14px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; flex: none; }
  .sidebar nav .nav-group { grid-column: 1 / -1; }
  .nav-submenu { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; }
  .sidebar nav a.logout { margin-top: 0; }
  .content { padding: 20px 16px 40px; }
  h1 { font-size: 22px; }
  .form-box, .detail-box { padding: 20px; max-width: none; }
  .filter-bar select, .filter-bar input { width: 100%; }
  .sales-filter > label { flex: 1 1 140px; }
  .sales-filter > label input[type=date] { width: 100%; }
  .question-results-date-filter { flex: 1 1 140px; }
  .question-results-filter .question-results-date-filter input[type=date] { width: 100%; }
  .form-actions .btn { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Questions admin ---------- */
.hint { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.muted { color: var(--muted); }
.page-head > div { display: flex; gap: 10px; flex-wrap: wrap; }
td a[href*="move="] { text-decoration: none; margin-left: 4px; color: var(--green-800); }
.answer-badge { display: inline-block; padding: 2px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--orange-100); color: var(--orange-700); border: 2px solid var(--orange-400); }

/* Waiter photos */
.waiter-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; vertical-align: middle; border: 2px solid var(--green-200); background: var(--green-100); }
.waiter-thumb-lg { width: 90px; height: 90px; }
.waiter-thumb-ph { display: inline-grid; place-items: center; font-weight: 800; color: var(--green-800); }
.photo-current { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.form-box input[type=file] { display: block; width: 100%; padding: 10px; border: 2px dashed var(--green-300); border-radius: 12px; background: var(--green-50); font: inherit; }

/* ---------- QR logo / contact ---------- */
.qr-box { width: 220px; max-width: 100%; aspect-ratio: 1 / 1; margin: 16px auto; background: #fff; }
.qr-box svg { display: block; }
.qr-card .qr-logo { display: block; margin: 0 auto 6px; max-height: 160px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.qr-contact { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--green-200); font-size: 15px; line-height: 1.7; word-break: break-word; }
@media print { .qr-card { border: none; } }

/* ---------- Company logo ---------- */
.brand .app-logo { display: block; width: 66px; height: auto; margin: 0 0 6px; }
.brand.center .app-logo { width: 108px; margin: 0 auto 8px; }

/* ---------- QR card: tight spacing (logo / title / QR / text) ---------- */
.qr-card { padding: 14px 20px; }
.qr-card .qr-logo { margin: 0 auto 2px; }
.qr-card h2 { margin: 0 0 2px; line-height: 1.2; }
.qr-card p { margin: 0; line-height: 1.3; }
.qr-card .qr-box { margin: 4px auto; }
.qr-card .qr-contact { margin-top: 6px; padding-top: 6px; line-height: 1.4; }
.qr-card .qr-contact div { margin: 0; }

/* ---------- Developer credit (Organization Info) ---------- */
.dev-credit { max-width: 720px; margin-top: 18px; padding: 14px 18px; background: var(--green-50); border: 2px solid var(--green-200); border-radius: var(--radius); font-size: 14px; line-height: 1.7; color: var(--muted); }
.dev-credit-title { color: var(--green-900); margin-bottom: 2px; }
.dev-credit a { color: var(--green-800); text-decoration: none; font-weight: 700; word-break: break-all; }
.dev-credit a:hover { text-decoration: underline; }

/* ---------- Creator credit on QR card ---------- */
.qr-card .qr-credit { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--green-200); font-size: 10px; line-height: 1.4; color: var(--muted); word-break: break-word; }
.qr-card .qr-credit strong { color: var(--green-900); }
@media print { .qr-card .qr-credit { color: #444; } }

/* ---------- Print 4 QR cards on one A4 sheet (2 x 2) ---------- */
.sheet4 { display: none; }
@media print {
  body.print-4 .content > *:not(#sheet4) { display: none !important; }
  body.print-4, body.print-4 .layout, body.print-4 .content { display: block; min-height: 0; height: auto; margin: 0; padding: 0; overflow: visible; }
  body.print-4 .sheet4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 133mm 133mm; width: 100%; height: 266mm; overflow: hidden; }
  body.print-4 .sheet4 .qr-card {
    max-width: none; margin: 0; height: 100%; box-sizing: border-box; overflow: hidden;
    border: 1px dashed #888; border-radius: 0; box-shadow: none; padding: 4mm;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
  }
  body.print-4 .sheet4 .qr-logo { max-height: 26mm; }
  body.print-4 .sheet4 .qr-box { width: 54mm; margin: 2mm auto; }
  body.print-4 .sheet4 .qr-contact, body.print-4 .sheet4 .qr-credit { width: 100%; }
}

.status-badge { display:inline-block; padding:3px 9px; border-radius:999px; font-size:12px; font-weight:800; background:#e8eef0; color:#29434e; }
.status-ready { background:#fff1df; color:#a85405; }
.status-picked_up { background:#e5f6ea; color:#245c3f; }

.product-list-tools { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:14px 0; }
.product-list-tools input, .product-list-tools select { min-height:42px; padding:9px 12px; border:2px solid #cbe9d4; border-radius:10px; font:inherit; background:#fff; }
.product-list-tools input { flex:1 1 280px; min-width:220px; }
.product-list-tools select { flex:0 1 220px; }
@media (max-width:600px) { .product-list-tools input, .product-list-tools select { width:100%; flex-basis:100%; } }
.inline-form { display:inline; margin:0; }
.menu-admin-thumb, .menu-admin-thumb-placeholder { width:112px; height:112px; min-width:112px; display:inline-grid; place-items:center; object-fit:cover; border-radius:14px; background:var(--green-100); color:var(--green-800); font-size:34px; font-weight:800; }


/* Each ordered product is a small independent status card */
.order-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; min-width: 180px; }
.order-item-grid-detail { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 12px; }
.order-item-card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 10px; border: 1px solid #cbe9d4; border-radius: 12px; background: #fff; }
.order-item-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.order-item-card-head strong { min-width: 0; overflow-wrap: anywhere; }
.order-item-card .status-badge { flex: 0 0 auto; white-space: nowrap; }
.order-item-action { align-self: flex-start; }
.order-item-price { display: flex; justify-content: space-between; gap: 10px; color: #526a5c; font-size: 13px; }
@media (max-width: 700px) {
  .order-item-grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
  .order-item-grid-detail { grid-template-columns: 1fr; }
}


/* One bordered card groups the order ID, metadata and its separate item cards */
.admin-order-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 14px; }
@media (max-width: 1599px) { .admin-order-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1260px) { .admin-order-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .admin-order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .admin-order-list { grid-template-columns: 1fr; } }
.admin-order-list > .empty-state { grid-column: 1 / -1; }
.admin-order-card { padding: 16px; border: 2px solid #c62828; border-radius: 16px; background: #fde7e7; box-shadow: 0 3px 0 #edb4b4; }
.admin-order-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid #e8aaaa; }
.admin-order-label { display: block; margin-bottom: 3px; color: #64776c; font-size: 12px; }
.admin-order-code { display: inline-block; min-width: 0; padding: 6px 10px; border: 1px solid #e5a0a0; border-radius: 9px; color: #8b1717; background: #fff4f4; font-size: 16px; overflow-wrap: anywhere; }
.admin-order-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0; color: #526a5c; font-size: 13px; }
.admin-order-meta > span { min-width: 0; overflow-wrap: anywhere; }.delivery-map-link { color:#1a6a42; font-weight:800; text-decoration:underline; }
.admin-order-card .order-item-grid { grid-template-columns: 1fr; min-width: 0; }
.admin-order-card-footer { display: flex; justify-content: flex-end; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e8aaaa; }
.item-pickup-progress { display: flex; flex-wrap: wrap; gap: 8px; color: #526a5c; font-size: 13px; }
.item-pickup-progress span { font-weight: 700; color: #1a4a32; }
.admin-order-card .order-item-card { gap: 8px; padding: 10px; border: 1px solid #e8aaaa; border-radius: 12px; background: #fff5f5; }
.order-item-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.order-item-main { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px; }
.order-item-main strong { min-width: 0; overflow-wrap: anywhere; }
.order-item-special-instructions { padding: 6px 8px; border-left: 3px solid #f28c28; border-radius: 4px; background: #f2faf4; color: #1a4a32; font-size: 12px; overflow-wrap: anywhere; }
.order-item-price { white-space: nowrap; color: #223128; font-size: 13px; }
.order-item-picked { color: #526a5c; font-size: 12px; font-weight: 700; }
.pickup-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.pickup-form label { display: grid; gap: 4px; color: #526a5c; font-size: 12px; font-weight: 700; }
.pickup-quantity-control { display: inline-flex; align-items: center; gap: 5px; }
.pickup-quantity-control button { width: 32px; height: 32px; border: 1px solid #9bc9a9; border-radius: 8px; background: #f2faf4; color: #1a4a32; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; }
.pickup-quantity-control input { width: 58px; height: 32px; padding: 3px 5px; border: 1px solid #cbe9d4; border-radius: 8px; text-align: center; font: inherit; }
@media (max-width: 620px) {
  .admin-order-card { padding: 12px; }
  .admin-order-card .order-item-grid { grid-template-columns: 1fr; }
  .admin-order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
}


/* Order detail uses the same centered card width as public order tracking. */
.order-ticket { width: 100%; max-width: 620px; margin: 10px auto 36px; overflow: hidden; background: #fff; border: 1px solid #d8e5dc; border-radius: 12px; box-shadow: 0 4px 14px rgba(26,74,50,.10); }
.order-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; background: linear-gradient(90deg, #fff, #f9eef1); border-bottom: 1px solid #edf1ee; }
.order-ticket-heading { min-width: 0; }
.order-ticket-kicker { display: none; }
.order-ticket h1.order-ticket-code { margin: 0; color: #17231c; font-size: 16px; line-height: 1.2; font-weight: 900; text-align: left; overflow-wrap: anywhere; }
.order-ticket-type { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; color: #795600; background: #ffe78e; font-size: 11px; font-weight: 800; }
.order-ticket-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding: 8px 13px; color: #526a5c; font-size: 11px; border-bottom: 1px solid #edf1ee; }
.order-ticket-meta .status-badge { padding: 2px 8px; font-size: 10px; }
.order-ticket-kitchen-note { padding: 7px 13px 0; color: #526a5c; font-size: 12px; }
.order-ticket-items { display: grid; gap: 8px; padding: 10px 12px; }
.order-ticket-item { padding: 10px; border: 1px solid #cbe9d4; border-radius: 12px; background: #fff; }
.order-ticket-item:last-child { border-bottom: 1px solid #cbe9d4; }
.order-ticket-item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.order-ticket-item-name { display: flex; min-width: 0; align-items: baseline; gap: 5px; font-size: 12px; line-height: 1.35; }
.order-ticket-item-name strong { min-width: 0; overflow-wrap: anywhere; }
.order-ticket-qty { flex: 0 0 auto; white-space: nowrap; color: #4e5b52; }
.order-ticket-item-price { white-space: nowrap; color: #223128; font-size: 11px; font-weight: 500; }
.order-ticket-item-main { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px; }
.order-ticket-item-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0; }
.order-ticket-item-tools .status-badge { padding: 2px 7px; font-size: 10px; }
.order-ticket-picked { color: #526a5c; font-size: 10px; }
.order-ticket-item-instructions { margin: 7px 0 0; padding: 6px 8px; border-left: 3px solid #f28c28; border-radius: 4px; background: #f2faf4; color: #1a4a32; font-size: 11px; overflow-wrap: anywhere; }
.order-ticket-item-tools .btn-sm { min-height: 25px; padding: 3px 8px; font-size: 10px; line-height: 1.2; }
.order-ticket-pickup { align-items: center; gap: 5px; margin-top: 4px; }
.order-ticket-pickup-label { margin-right: auto; color: #526a5c; font-size: 10px; font-weight: 700; }
.order-ticket-pickup .pickup-quantity-control { gap: 3px; }
.order-ticket-pickup .pickup-quantity-control button { width: 27px; height: 27px; font-size: 16px; }
.order-ticket-pickup .pickup-quantity-control input { width: 43px; height: 27px; padding: 2px; font-size: 12px; }
.order-ticket-pickup .btn-sm { min-height: 27px; padding: 4px 8px; font-size: 10px; }
.order-ticket-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; border-top: 1px solid #dfe8e2; color: #17231c; font-size: 13px; font-weight: 900; }
.order-ticket-error { margin: 8px 12px; }
.order-ticket-actions { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(255,255,255,.98); border-top: 1px solid #e2e9e4; }
.order-ticket-back { flex: 0 0 auto; min-height: 40px; padding: 8px 11px; }
.order-ticket-bill-form { flex: 1 1 auto; margin: 0; }
.order-ticket-confirm { width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 9px; background: #168454; color: #fff; font-size: 13px; font-weight: 900; box-shadow: none; }
.order-ticket-confirm:hover { background: #106b43; }
.order-ticket-confirmed, .order-ticket-waiting { flex: 1 1 auto; font-size: 11px; text-align: right; }
@media (max-width: 480px) {
  .order-ticket { margin: 4px auto 24px; border-radius: 10px; }
  .order-ticket-head { padding: 9px 10px; }
  .order-ticket-meta { padding: 7px 10px; gap: 4px 9px; }
  .order-ticket-items { padding-right: 9px; padding-left: 9px; }
  .order-ticket-item { padding: 6px 0; }
  .order-ticket-item-name { font-size: 11px; }
  .order-ticket-item-price { font-size: 10px; }
  .order-ticket-total { padding: 8px 10px; }
}


/* Keep receipt controls compact only on small mobile screens. */
@media (max-width: 480px) {
 .order-ticket { max-width: 620px; margin: 4px auto 20px; border-radius: 9px; }
.order-ticket-head { padding: 7px 9px; gap: 6px; }
.order-ticket h1.order-ticket-code { font-size: 14px; }
.order-ticket-type { padding: 2px 7px; font-size: 10px; }
.order-ticket-meta { gap: 3px 8px; padding: 5px 9px; font-size: 10px; line-height: 1.25; }
.order-ticket-meta .status-badge { padding: 1px 6px; font-size: 9px; }
.order-ticket-items { padding: 8px 9px; }
.order-ticket-item { padding: 10px; }
.order-ticket-item-row { align-items: center; gap: 5px; }
.order-ticket-item-main { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; flex-wrap: wrap; gap: 3px 5px; }
.order-ticket-item-name { flex: 0 1 auto; gap: 3px; font-size: 11px; line-height: 1.2; }
.order-ticket-item-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin: 0; }
.order-ticket-item-tools .status-badge { padding: 1px 5px; font-size: 9px; line-height: 1.25; }
.order-ticket-item-tools .btn-sm { min-height: 20px; padding: 2px 6px; font-size: 9px; }
.order-ticket-picked { font-size: 10px; }
.order-ticket-item-price { font-size: 11px; }
.order-ticket-pickup-details { margin-top: 2px; }
.order-ticket-pickup-details summary { display: inline-block; cursor: pointer; color: #245c3f; font-size: 9px; font-weight: 800; line-height: 1.3; list-style: none; }
.order-ticket-pickup-details summary::-webkit-details-marker { display: none; }
.order-ticket-pickup-details summary::after { content: ' +'; }
.order-ticket-pickup-details[open] summary::after { content: ' −'; }
.order-ticket-pickup { display: flex; align-items: center; gap: 4px; margin-top: 3px; padding: 4px 5px; border-radius: 7px; background: #f4fbf6; }
.order-ticket-pickup .pickup-quantity-control { gap: 2px; }
.order-ticket-pickup .pickup-quantity-control button { width: 23px; height: 23px; font-size: 14px; }
.order-ticket-pickup .pickup-quantity-control input { width: 35px; height: 23px; font-size: 10px; }
.order-ticket-pickup .btn-sm { min-height: 23px; padding: 3px 6px; font-size: 9px; }
.order-ticket-extra { padding: 3px 9px; font-size: 9px; }
.order-ticket-extra summary { cursor: pointer; color: #526a5c; }
.order-ticket-extra div { padding-top: 3px; overflow-wrap: anywhere; }
.order-ticket-extra p { margin: 2px 0; }
.order-ticket-total { padding: 6px 9px; font-size: 12px; }
.order-ticket-actions { gap: 5px; padding: 6px 7px; }
.order-ticket-back { min-height: 34px; padding: 6px 9px; font-size: 11px; }
.order-ticket-confirm { min-height: 34px; padding: 6px 8px; font-size: 11px; }
.order-ticket-confirmed, .order-ticket-waiting { font-size: 9px; }
}

.stars { color: var(--orange-500); font-family: Arial, sans-serif; font-size: 16px; letter-spacing: 1px; white-space: nowrap; }


/* Responsive Delivery order creation and order actions */
.page-head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.delivery-order-form { width: 100%; max-width: none; }
.delivery-shell .layout { display: block; min-height: 100vh; }
.delivery-shell .sidebar { display: none; }
.delivery-shell .content { width: 100%; min-height: 100vh; padding: 16px 22px 40px; }
.delivery-admin-header { position: sticky; top: 0; z-index: 40; display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 7px 8px; margin: -16px 0 18px; border-bottom: 1px solid var(--green-200); background: var(--white); }
.delivery-header-identity { display: flex; align-items: center; gap: 9px; min-height: 38px; }
.delivery-header-logo { display: block; flex: 0 0 auto; width: 38px; height: 42px; object-fit: contain; }
.delivery-header-user { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.delivery-header-user strong { color: var(--green-900); font-size: 13px; overflow-wrap: anywhere; }
.delivery-header-user span { color: var(--muted); font-size: 11px; }
.delivery-top-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; width: 100%; overflow-x: auto; padding: 0; margin: 0; scrollbar-width: thin; }
.delivery-top-nav a { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 32px; padding: 5px 10px; border: 1px solid var(--green-900); border-radius: 8px; background: var(--white); color: var(--green-900); font-size: 12px; font-weight: 800; line-height: 1.15; text-decoration: none; white-space: nowrap; }
.delivery-top-nav a:hover, .delivery-top-nav a.active { background: var(--orange-500); color: var(--green-900); }
.delivery-top-nav a.delivery-nav-logout { border-color: var(--red); color: var(--red); }
.delivery-top-nav a.delivery-nav-logout:hover { background: var(--red-bg); }
.delivery-menu-section { margin: 12px 0 20px; }
.delivery-menu-section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 12px 0; }
.delivery-menu-section-head h3 { color: var(--green-900); font-size: 18px; text-align: center; overflow-wrap: anywhere; }
.delivery-menu-logo { width: 32px; height: 40px; object-fit: contain; }
.delivery-menu-rule { height: 2px; background: var(--green-200); }
.delivery-category-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: thin; }
.delivery-category-chip { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--green-200); border-radius: 999px; background: var(--white); color: var(--green-900); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.delivery-category-chip:hover, .delivery-category-chip.active { border-color: var(--green-900); background: var(--orange-500); color: var(--green-900); }
.delivery-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 340px); align-items: start; gap: 18px; }
.delivery-menu-column { min-width: 0; }
.delivery-menu-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; margin: 0 auto; gap: 7px; }
.delivery-menu-item { display: flex; flex-direction: column; align-items: stretch; gap: 5px; min-width: 0; min-height: 0; padding: 6px; background: var(--white); border: 1px solid var(--green-200); border-radius: 9px; transition: .15s ease; }
.delivery-menu-item:hover { border-color: var(--orange-500); box-shadow: 0 4px 0 rgba(242,140,40,.22); transform: translateY(-1px); }
.delivery-menu-item.selected { border-color: var(--orange-500); background: var(--orange-100); box-shadow: 0 0 0 1px var(--orange-500); }
.delivery-menu-select { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.delivery-menu-select:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 2px; border-radius: 6px; }
.delivery-menu-thumb { width: 40px; height: 40px; align-self: center; min-width: 0; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--green-100); color: var(--green-800); }
.delivery-menu-thumb img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.delivery-menu-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 18px; }
.delivery-menu-content { min-width: 0; overflow-wrap: anywhere; }
.delivery-menu-name { color: var(--green-900); font-size: 10px; line-height: 1.2; font-weight: 850; overflow-wrap: anywhere; }
.delivery-menu-desc { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 1px; color: var(--muted); font-size: 8px; line-height: 1.2; overflow-wrap: anywhere; }
.delivery-menu-price { display: block; margin-top: 7px; color: var(--orange-700); font-size: 9px; line-height: 1.2; font-weight: 900; overflow-wrap: anywhere; }
.delivery-menu-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.delivery-menu-quantity-label { color: var(--muted); font-size: 8px; font-weight: 700; }
.delivery-quantity-control { display: grid; grid-template-columns: 18px minmax(20px, 1fr) 18px; align-items: center; gap: 1px; width: 100%; }
.delivery-quantity-control button { width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 1px solid var(--green-900); border-radius: 50%; background: var(--orange-500); color: var(--green-900); font: inherit; font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; }
.delivery-quantity-control input { width: 100%; min-width: 0; max-width: 100%; height: 22px; padding: 1px; border: 1px solid var(--green-200); border-radius: 5px; background: var(--green-50); text-align: center; font: inherit; font-size: 10px; }
.delivery-selection-summary { position: sticky; top: 108px; min-width: 0; max-height: calc(100vh - 126px); overflow: auto; margin: 12px 0; padding: 14px; border: 2px solid var(--green-200); border-radius: 12px; background: var(--green-50); }
.delivery-selection-summary h3 { margin-bottom: 8px; color: var(--green-900); font-size: 16px; }
.delivery-selection-summary > p { color: var(--muted); font-size: 13px; }
.delivery-selection-list { display: grid; gap: 5px; list-style: none; }
.delivery-selection-list li { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 5px; padding: 7px 8px; border: 1px solid var(--green-200); border-radius: 8px; background: var(--white); font-size: 12px; }
.delivery-selection-item-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 24px; align-items: center; gap: 5px; min-width: 0; }
.delivery-selection-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-selection-line-total { color: var(--green-900); font-size: 11px; white-space: nowrap; }
.delivery-selection-remove { width: 24px; height: 24px; border: 1px solid var(--red); border-radius: 50%; background: var(--white); color: var(--red); font-size: 17px; line-height: 1; cursor: pointer; }
.delivery-selection-controls { display: flex; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; }
.delivery-selection-quantity-label { color: var(--muted); font-size: 9px; font-weight: 800; }
.delivery-cart-instruction-box { min-width: 0; margin-top: 1px; }
.delivery-cart-instruction { display: block; width: 100%; height: 24px; min-height: 24px; padding: 2px 6px; border: 1px solid var(--green-200); border-radius: 6px; background: var(--green-50); color: var(--green-900); font: inherit; font-size: 10px; line-height: 1.15; }
.delivery-cart-quantity-control { display: grid; grid-template-columns: 20px 40px 20px; align-items: center; gap: 2px; }
.delivery-cart-step { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 1px solid var(--green-900); border-radius: 50%; background: var(--orange-500); color: var(--green-900); font: inherit; font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; }
.delivery-cart-quantity-input { width: 40px; min-width: 0; height: 24px; padding: 1px; border: 1px solid var(--green-200); border-radius: 5px; background: var(--green-50); text-align: center; font: inherit; font-size: 11px; }
.delivery-selection-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--green-200); font-size: 15px; }
.delivery-selection-total strong { color: var(--green-900); }
.delivery-cart-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 12px; }
.delivery-cart-actions .btn { width: 100%; min-width: 0; }
.delivery-order-form button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 1080px) {
  .delivery-order-layout { grid-template-columns: minmax(0, 1fr); }
  .delivery-selection-summary { position: static; max-height: none; }
}
@media (max-width: 620px) {
  .delivery-shell .content { padding: 12px 10px 28px; }
  .delivery-admin-header { gap: 5px; padding: 5px 2px; margin-top: -12px; }
  .delivery-header-logo { width: 32px; height: 36px; }
  .delivery-header-user strong { font-size: 12px; }
  .delivery-top-nav { gap: 4px; }
  .delivery-top-nav a { min-height: 28px; padding: 4px 7px; font-size: 10px; }
  .page-head-actions { width: 100%; justify-content: flex-start; }
  .delivery-menu-section-head { gap: 7px; }
  .delivery-menu-section-head h3 { font-size: 16px; }
  .delivery-menu-logo { width: 28px; height: 34px; }
  .delivery-menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .delivery-menu-item { padding: 5px; }
  .delivery-selection-summary { padding: 10px; }
}
@media (max-width: 360px) {
  .delivery-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-cart-quantity-control { grid-template-columns: 18px 34px 18px; gap: 1px; }
  .delivery-cart-step { width: 18px; height: 18px; }
  .delivery-cart-quantity-input { width: 34px; height: 22px; }
}


/* Shared light-blue palette for staff order lists, details, and item cards. */
.order-item-card { border-color: #90caf9; background: #f3f8ff; }
.admin-order-card { border-color: #1565c0; background: #e3f2fd; box-shadow: 0 3px 0 #bbdefb; }
.admin-order-card-head, .admin-order-card-footer { border-color: #90caf9; }
.admin-order-code { border-color: #90caf9; color: #0d47a1; background: #f3f8ff; }
.admin-order-card .order-item-card { border-color: #90caf9; background: #f3f8ff; }
.order-ticket { border-color: #90caf9; background: #e3f2fd; box-shadow: 0 4px 14px rgba(21, 101, 192, .14); }
.order-ticket-head { background: linear-gradient(90deg, #f3f8ff, #e3f2fd); border-bottom-color: #90caf9; }
.order-ticket-meta { border-bottom-color: #90caf9; }
.order-ticket-item, .order-ticket-item:last-child { border-color: #90caf9; background: #f3f8ff; }
.order-ticket-item-instructions { border-left-color: #1565c0; background: #eaf4ff; color: #0d47a1; }
.order-ticket-total { border-top-color: #90caf9; }
.order-ticket-actions { background: rgba(243, 248, 255, .98); border-top-color: #90caf9; }
.delivery-selection-summary { border-color: #1565c0; background: #e3f2fd; }
.delivery-selection-summary h3, .delivery-selection-total strong, .delivery-selection-line-total { color: #0d47a1; }
.delivery-selection-list li { border-color: #90caf9; background: #f3f8ff; }
.delivery-selection-total { border-top-color: #90caf9; }
.delivery-selection-summary .delivery-cart-instruction, .delivery-selection-summary .delivery-cart-quantity-input { border-color: #90caf9; background: #f3f8ff; }

/* Strong, unmistakable yellow identifies customer orders placed on the public menu. */
.admin-order-card.admin-order-card--public { border-color: #d6a900; background: #ffeb3b; box-shadow: 0 3px 0 #c49a00; }
.admin-order-card--public .admin-order-card-head, .admin-order-card--public .admin-order-card-footer { border-color: #d6a900; }
.admin-order-card--public .admin-order-code { border-color: #c49a00; color: #332800; background: #fff176; }
.admin-order-card--public .order-item-card { border-color: #d6a900; background: #fff176; }
.order-ticket.order-ticket--public { border-color: #d6a900; background: #ffeb3b; box-shadow: 0 4px 14px rgba(121, 90, 0, .24); }
.order-ticket.order-ticket--public .order-ticket-head { background: linear-gradient(90deg, #fff176, #ffeb3b); border-bottom-color: #d6a900; }
.order-ticket.order-ticket--public .order-ticket-meta { border-bottom-color: #d6a900; }
.order-ticket.order-ticket--public .order-ticket-item { border-color: #d6a900; background: #fff176; }
.order-ticket.order-ticket--public .order-ticket-item-instructions { border-left-color: #b88700; background: #fff59d; color: #332800; }
.order-ticket.order-ticket--public .order-ticket-total, .order-ticket.order-ticket--public .order-ticket-actions { border-color: #d6a900; }
.order-ticket.order-ticket--public .order-ticket-actions { background: rgba(255, 241, 118, .98); }

/* Delivery-created staff orders retain their red card but use a blue header. */
.admin-order-card--delivery-created .admin-order-card-head { padding: 10px 12px; margin: -6px -6px 10px; border: 0; border-radius: 9px; background: #1565c0; color: #fff; }
.admin-order-card--delivery-created .admin-order-label { color: #e3f2fd; }
.admin-order-card--delivery-created .admin-order-code { border-color: #90caf9; background: #e3f2fd; color: #0d2b48; }
.order-ticket.order-ticket--delivery-created .order-ticket-head { background: linear-gradient(90deg, #1565c0, #1976d2); border-bottom-color: #0d47a1; }
.order-ticket.order-ticket--delivery-created h1.order-ticket-code { color: #fff; }
.order-ticket.order-ticket--delivery-created .order-ticket-type { background: #e3f2fd; color: #0d47a1; }

/* Unbilled orders from before today get priority pure-red headers. */
.admin-order-card--overdue .admin-order-card-head { padding: 10px 12px; margin: -6px -6px 10px; border: 0; border-radius: 9px; background: #ff0000; color: #fff; }
.admin-order-card--overdue .admin-order-label { color: #fff; }
.admin-order-card--overdue .admin-order-code { border-color: #fff; background: #fff; color: #b00000; }
.order-ticket.order-ticket--overdue .order-ticket-head { background: #ff0000; border-bottom-color: #b00000; }
.order-ticket.order-ticket--overdue h1.order-ticket-code { color: #fff; }
.order-ticket.order-ticket--overdue .order-ticket-type { background: #fff; color: #b00000; }
