.recipe-table {
  min-width: 880px;
}

.recipe-table th,
.recipe-table td {
  vertical-align: middle;
}

.recipe-table .recipe-actions {
  min-width: 180px;
  white-space: nowrap;
}

.recipe-table-wrap {
  scrollbar-gutter: stable;
}
.inventory-list-accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.inventory-list-accordion > summary {
  align-items: center;
  background: var(--surface-subtle);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 11px 13px;
  user-select: none;
}
.inventory-list-accordion > summary::-webkit-details-marker {
  display: none;
}
.inventory-list-accordion > summary::after {
  border-bottom: 2px solid var(--brand-primary);
  border-right: 2px solid var(--brand-primary);
  content: '';
  height: 8px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  width: 8px;
}
.inventory-list-accordion[open] > summary {
  border-bottom: 1px solid var(--border);
}
.inventory-list-accordion[open] > summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}
.inventory-list-accordion > summary:focus-visible {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, transparent);
  outline: 0;
}
.inventory-list-accordion > summary small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  margin-left: auto;
  margin-right: 15px;
}
.inventory-list-body {
  padding: 13px;
}
.food-ai-badge {
  background: color-mix(in srgb, var(--brand-primary) 12%, white);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--border));
  border-radius: 999px;
  color: var(--brand-primary-dark);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 10px;
}
.food-ai-chat,
.admin-ai-chat {
  background: var(--surface-subtle, #f1f5fa);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  max-height: 230px;
  overflow-y: auto;
  padding: 12px;
}
.food-ai-message,
.admin-ai-message {
  align-items: flex-start;
  display: flex;
  font-size: .82rem;
  gap: 8px;
  line-height: 1.45;
  max-width: 92%;
  padding: 9px 11px;
}
.food-ai-message--assistant,
.admin-ai-message--assistant {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px 12px;
}
.food-ai-message--user,
.admin-ai-message--user {
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface));
  border-radius: 12px 4px 12px 12px;
  justify-self: end;
}
.food-ai-message i,
.admin-ai-avatar {
  color: var(--brand-primary);
  flex: 0 0 auto;
}
.food-ai-form,
.admin-ai-form {
  margin-top: 12px;
}
.food-ai-suggestions,
.admin-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.food-ai-cards {
  margin-top: 12px;
}
.mike-guide-fab {
  align-items: center;
  animation: mike-guide-enter .55s ease both;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(var(--brand-primary-rgb), .28);
  color: var(--brand-on-primary);
  display: inline-flex;
  gap: 7px;
  min-height: 46px;
  padding: 5px 13px 5px 6px;
  position: fixed !important;
  right: 18px;
  top: max(16px, env(safe-area-inset-top));
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  z-index: 1200;
}
.mike-guide-fab:hover,
.mike-guide-fab:focus-visible {
  box-shadow: 0 14px 32px rgba(var(--brand-primary-rgb), .38);
  transform: translateY(-2px) scale(1.03);
}
.mike-guide-avatar {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.45rem;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}
.mike-guide-name {
  font-size: .82rem;
  font-weight: 800;
}
.mike-guide-pulse {
  background: #a7f36b;
  border: 2px solid var(--brand-primary);
  border-radius: 50%;
  height: 9px;
  position: absolute;
  right: 5px;
  top: 3px;
  width: 9px;
}
@keyframes mike-guide-enter {
  from { opacity: 0; transform: translateY(-12px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 650px) {
  .mike-guide-fab {
    right: 12px;
    top: max(10px, env(safe-area-inset-top));
  }
  .mike-guide-name {
    display: none;
  }
  .mike-guide-fab {
    padding-right: 6px;
  }
}
/* Canonical food stylesheet — include this file from all food PHP views.
   This file is the single source-of-truth for the food project styles. */

:root {
.app-dashboard #btnSystemGuide.mike-guide-fab {
  bottom: auto !important;
  left: auto !important;
  position: fixed !important;
  right: 18px !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  transform: none;
  visibility: visible !important;
  z-index: 2140 !important;
}
@media (max-width: 650px) {
  .app-dashboard #btnSystemGuide.mike-guide-fab {
    right: 12px !important;
    top: max(10px, env(safe-area-inset-top)) !important;
  }
}
	--brand-primary: #f24e1e;
	--brand-primary-dark: #c63814;
	--brand-accent: #ff8800;
	--brand-on-primary: #ffffff;
	--brand-deep: #11223f;
	--brand-deep-rgb: 17, 34, 63;
	--brand-primary-rgb: 242, 78, 30;
	--brand-accent-rgb: 255, 136, 0;
	--bg: #f9fafc;
	--surface: #ffffff;
	--surface-subtle: #f1f5fa;
	--text: #11223f;
	--muted: #5c6b73;
	--border: #dce3ec;
	--card-bg: #ffffff;
	--font-family: 'Manrope', sans-serif;
	--font-display: 'Sora', 'Manrope', sans-serif;
	--app-font-size: clamp(13px, 0.78vw, 15px);
}

html, body { max-width: 100%; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--font-family); font-size: var(--app-font-size); min-height: 100vh; }
.app-dashboard {
	background:
		radial-gradient(circle at 7% 8%, rgba(var(--brand-primary-rgb), .1), transparent 24%),
		radial-gradient(circle at 93% 2%, rgba(var(--brand-accent-rgb), .14), transparent 24%),
		linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, #fff) 0%, var(--bg) 100%);
}
body.papyllon-theme {
  --bg: #090d12;
  --surface: #111921;
  --surface-subtle: #17222d;
  --card-bg: #111921;
  --text: #fff5e8;
  --muted: #c9b9a8;
  --border: #34414c;
  --brand-primary: #e85d24;
  --brand-primary-dark: #bd3f12;
  --brand-accent: #f5a623;
  --brand-deep: #8a1834;
  --brand-primary-rgb: 232, 93, 36;
  --brand-accent-rgb: 245, 166, 35;
  --brand-on-primary: #fffaf3;
  --font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  --font-display: 'Playfair Display', 'Sora', serif;
  color-scheme: dark;
  background:
    radial-gradient(circle at 5% 4%, rgba(232, 93, 36, .17), transparent 25%),
    radial-gradient(circle at 97% 9%, rgba(138, 24, 52, .25), transparent 28%),
    linear-gradient(150deg, #090d12 0%, #101820 52%, #0d141c 100%);
}
body.papyllon-theme .dashboard-topbar {
  background: rgba(9, 13, 18, .93) !important;
  border-bottom-color: rgba(245, 166, 35, .26);
  box-shadow: 0 7px 26px rgba(0, 0, 0, .28) !important;
}
body.papyllon-theme .brand-logo {
  background: transparent;
  height: 64px;
  max-width: min(230px, 42vw);
  object-position: left center;
  width: 210px;
}
body.papyllon-theme .brand-mark { filter: drop-shadow(0 5px 9px rgba(232, 93, 36, .32)); }
body.papyllon-theme .papyllon-theme-badge {
  align-items: center;
  background: rgba(245, 166, 35, .11);
  border: 1px solid rgba(245, 166, 35, .42);
  border-radius: 999px;
  color: #ffd278;
  display: inline-flex;
  font-size: .68rem;
  font-weight: 800;
  gap: .35rem;
  letter-spacing: .08em;
  padding: .36rem .6rem;
  text-transform: uppercase;
}
body.papyllon-theme .stat-card,
body.papyllon-theme .card,
body.papyllon-theme .sidebar-shell,
body.papyllon-theme #mainContent > .bg-white,
body.papyllon-theme .products-table-shell {
  background: linear-gradient(145deg, rgba(23, 34, 45, .98), rgba(13, 20, 28, .98)) !important;
  border-color: rgba(255, 210, 120, .18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}
body.papyllon-theme .sidebar-nav .nav-link.active,
body.papyllon-theme .sidebar-nav .nav-link:hover {
  background: linear-gradient(100deg, #e85d24, #bd3f12);
  box-shadow: 0 7px 16px rgba(232, 93, 36, .22);
}
body.papyllon-theme .sidebar-accordion-toggle:hover,
body.papyllon-theme .sidebar-accordion.is-open .sidebar-accordion-toggle {
  background: rgba(245, 166, 35, .1);
  color: #ffd278;
}
body.papyllon-theme .btn-primary {
  background: linear-gradient(100deg, #e85d24, #bd3f12);
  border-color: #e85d24;
  box-shadow: 0 6px 15px rgba(232, 93, 36, .2);
}
body.papyllon-theme .btn-primary:hover,
body.papyllon-theme .btn-primary:focus {
  background: linear-gradient(100deg, #f16d35, #c74618);
  border-color: #f16d35;
}
body.papyllon-theme .btn-outline-primary { border-color: #f5a623; color: #ffd278; }
body.papyllon-theme .btn-outline-primary:hover { background: #f5a623; border-color: #f5a623; color: #17100a; }
body.papyllon-theme .form-control,
body.papyllon-theme .form-select,
body.papyllon-theme .input-group-text { background-color: #0d141c; border-color: #34414c; color: #fff5e8; }
body.papyllon-theme .bg-white,
body.papyllon-theme .bg-light,
body.papyllon-theme .modal-content,
body.papyllon-theme .dropdown-menu,
body.papyllon-theme .list-group-item {
  background-color: #111921 !important;
  border-color: #34414c;
  color: #fff5e8;
}
body.papyllon-theme .dropdown-item { color: #fff5e8; }
body.papyllon-theme .dropdown-item:hover,
body.papyllon-theme .dropdown-item:focus { background: rgba(245, 166, 35, .13); color: #ffd278; }
body.papyllon-theme .form-control:focus,
body.papyllon-theme .form-select:focus { border-color: #f5a623; box-shadow: 0 0 0 .2rem rgba(245, 166, 35, .18); }
body.papyllon-theme .table { --bs-table-striped-bg: rgba(255, 255, 255, .025); }
body.papyllon-theme .table thead th,
body.papyllon-theme .products-table-toolbar { background: rgba(245, 166, 35, .08); color: #ffd278; }
body.papyllon-theme .table-responsive,
body.papyllon-theme .inventory-list-accordion,
body.papyllon-theme .app-action-dialog-card { border-color: rgba(255, 210, 120, .2); }
body.papyllon-theme .app-action-dialog::backdrop { background: rgba(4, 6, 9, .76); }
body.papyllon-theme .app-splash { background: radial-gradient(circle at top, rgba(245, 166, 35, .22), transparent 32%), linear-gradient(145deg, #090d12 0%, #8a1834 100%); }
body.papyllon-theme .text-primary,
body.papyllon-theme .navbar-brand,
body.papyllon-theme .sidebar-nav .nav-link > i { color: #ffd278 !important; }
body.papyllon-theme .text-dark { color: #fff5e8 !important; }
body.papyllon-theme:not(.dark-mode) {
  --bg: #f7f1e8;
  --surface: #fffaf3;
  --surface-subtle: #f4e7d6;
  --card-bg: #fffaf3;
  --text: #241815;
  --muted: #75665d;
  --border: #ead8c5;
  --brand-primary: #c94d1f;
  --brand-primary-dark: #963516;
  --brand-accent: #d58b13;
  --brand-primary-rgb: 201, 77, 31;
  --brand-accent-rgb: 213, 139, 19;
  --brand-on-primary: #fffaf3;
  color-scheme: light;
  background:
    radial-gradient(circle at 4% 3%, rgba(232, 93, 36, .12), transparent 25%),
    radial-gradient(circle at 96% 8%, rgba(138, 24, 52, .08), transparent 26%),
    linear-gradient(150deg, #fffaf3 0%, #f4e7d6 100%);
}
body.papyllon-theme:not(.dark-mode) .dashboard-topbar {
  background: rgba(255, 250, 243, .94) !important;
  border-bottom-color: rgba(138, 24, 52, .16);
  box-shadow: 0 7px 26px rgba(92, 50, 29, .12) !important;
}
body.papyllon-theme:not(.dark-mode) .brand-logo {
  background: rgba(255, 250, 243, .72);
  border-radius: 8px;
  padding: 4px;
}
body.papyllon-theme:not(.dark-mode) .stat-card,
body.papyllon-theme:not(.dark-mode) .card,
body.papyllon-theme:not(.dark-mode) .sidebar-shell,
body.papyllon-theme:not(.dark-mode) #mainContent > .bg-white,
body.papyllon-theme:not(.dark-mode) .products-table-shell {
  background: linear-gradient(145deg, rgba(255, 250, 243, .98), rgba(250, 239, 224, .98)) !important;
  border-color: rgba(138, 24, 52, .16);
  box-shadow: 0 14px 32px rgba(92, 50, 29, .1);
}
body.papyllon-theme:not(.dark-mode) .sidebar-nav .nav-link.active,
body.papyllon-theme:not(.dark-mode) .sidebar-nav .nav-link:hover {
  background: linear-gradient(100deg, #c94d1f, #963516);
  color: #fffaf3;
  box-shadow: 0 7px 16px rgba(201, 77, 31, .2);
}
body.papyllon-theme:not(.dark-mode) .sidebar-nav .nav-link.active > i,
body.papyllon-theme:not(.dark-mode) .sidebar-nav .nav-link:hover > i { color: #fffaf3 !important; }
body.papyllon-theme:not(.dark-mode) .sidebar-accordion-toggle:hover,
body.papyllon-theme:not(.dark-mode) .sidebar-accordion.is-open .sidebar-accordion-toggle { background: rgba(213, 139, 19, .12); color: #963516; }
body.papyllon-theme:not(.dark-mode) .btn-primary {
  background: linear-gradient(100deg, #c94d1f, #963516);
  border-color: #c94d1f;
  box-shadow: 0 6px 15px rgba(201, 77, 31, .18);
}
body.papyllon-theme:not(.dark-mode) .btn-primary:hover,
body.papyllon-theme:not(.dark-mode) .btn-primary:focus { background: linear-gradient(100deg, #df6430, #a83b19); border-color: #df6430; }
body.papyllon-theme:not(.dark-mode) .btn-outline-primary { border-color: #bd7510; color: #963516; }
body.papyllon-theme:not(.dark-mode) .btn-outline-primary:hover { background: #d58b13; border-color: #d58b13; color: #241815; }
body.papyllon-theme:not(.dark-mode) .form-control,
body.papyllon-theme:not(.dark-mode) .form-select,
body.papyllon-theme:not(.dark-mode) .input-group-text { background-color: #fffdf9; border-color: #ddc9b2; color: #241815; }
body.papyllon-theme:not(.dark-mode) .bg-white,
body.papyllon-theme:not(.dark-mode) .bg-light,
body.papyllon-theme:not(.dark-mode) .modal-content,
body.papyllon-theme:not(.dark-mode) .dropdown-menu,
body.papyllon-theme:not(.dark-mode) .list-group-item { background-color: #fffaf3 !important; border-color: #ead8c5; color: #241815; }
body.papyllon-theme:not(.dark-mode) .dropdown-item { color: #241815; }
body.papyllon-theme:not(.dark-mode) .dropdown-item:hover,
body.papyllon-theme:not(.dark-mode) .dropdown-item:focus { background: rgba(213, 139, 19, .13); color: #963516; }
body.papyllon-theme:not(.dark-mode) .table { --bs-table-striped-bg: rgba(138, 24, 52, .035); }
body.papyllon-theme:not(.dark-mode) .table thead th,
body.papyllon-theme:not(.dark-mode) .products-table-toolbar { background: rgba(213, 139, 19, .1); color: #963516; }
body.papyllon-theme:not(.dark-mode) .app-splash { background: radial-gradient(circle at top, rgba(213, 139, 19, .2), transparent 32%), linear-gradient(145deg, #fffaf3 0%, #8a1834 100%); }
body.papyllon-theme:not(.dark-mode) .text-primary,
body.papyllon-theme:not(.dark-mode) .navbar-brand,
body.papyllon-theme:not(.dark-mode) .sidebar-nav .nav-link > i { color: #963516 !important; }
body.papyllon-theme:not(.dark-mode) .text-dark { color: #241815 !important; }
@media (max-width: 575px) {
  body.papyllon-theme .brand-logo { display: none; }
  body.papyllon-theme .brand-mark-mobile { display: block; height: 44px; width: 44px; }
}
.app-dashboard h1, .app-dashboard h2, .app-dashboard h3, .app-dashboard h4, .app-dashboard h5, .app-dashboard h6,
.landing-page h1, .landing-page h2, .landing-page h3, .landing-page .navbar-brand {
	font-family: var(--font-display);
}
.navbar { min-height: 72px; background: var(--surface) !important; border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(28, 43, 45, .05) !important; }
.dashboard-topbar {
	backdrop-filter: blur(8px);
	background: rgba(249, 250, 252, .94) !important;
	position: sticky;
	top: 0;
	z-index: 1025;
}
.navbar-brand { color: var(--brand-primary) !important; font-size: 1rem; letter-spacing: 0; }
.brand-lockup { align-items: center; display: inline-flex; gap: .7rem; }
.brand-logo { background: #f9fafc; border-radius: 6px; display: block; height: 58px; object-fit: contain; width: 148px; }
.brand-mark { display: block; height: 36px; width: 36px; }
.brand-mark-mobile { display: none; }
.mono-mark-frame { background: var(--brand-deep); border-radius: 12px; padding: 2px; }
.app-splash { align-items: center; background: radial-gradient(circle at top, rgba(var(--brand-accent-rgb), .16), transparent 30%), linear-gradient(180deg, var(--brand-deep) 0%, #1e3c72 100%); display: flex; inset: 0; justify-content: center; opacity: 1; position: fixed; transition: opacity .32s ease, visibility .32s ease; visibility: visible; z-index: 2000; }
.app-splash.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.app-splash-inner { align-items: center; color: #f3fbfa; display: flex; flex-direction: column; gap: .65rem; text-align: center; }
.app-splash-inner strong { font-size: 1.1rem; font-weight: 800; letter-spacing: .14em; }
.app-splash-inner span { color: rgba(243, 251, 250, .74); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.app-splash-mark { animation: splashPulse 1.4s ease-in-out infinite; height: 64px; width: 64px; }
.navbar .text-primary { color: var(--brand-primary) !important; }
.container-fluid.py-4 { padding: 1.5rem !important; }
.stat-card, .card, .sidebar-shell, #mainContent > .bg-white { background: var(--card-bg) !important; border: 1px solid var(--border); border-radius: 8px !important; box-shadow: 0 8px 24px rgba(28, 43, 45, .06); }
.module-panel-surface {
	background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5));
	border: 1px solid rgba(219, 229, 227, .85);
	border-radius: 16px;
	padding: 1rem;
	position: relative;
}
.module-panel-surface::before {
	background: linear-gradient(120deg, rgba(232, 93, 74, .08), rgba(242, 184, 75, .1));
	border-radius: inherit;
	content: '';
	inset: 0;
	opacity: .6;
	pointer-events: none;
	position: absolute;
}
.module-panel-surface > :not(.modal) {
	position: relative;
	z-index: 1;
}
.stat-card { padding: 1.25rem; min-height: 112px; }
.stat-number { color: var(--brand-primary); font-size: 2rem; font-weight: 800; letter-spacing: 0; }
.stat-label { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.dashboard-panel-intro { margin-bottom: .8rem; }
.dashboard-panel-intro .h5 { margin-bottom: .35rem; }
.chart-card-head {
	color: var(--muted);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .08em;
	margin-bottom: .65rem;
	text-transform: uppercase;
}
.charts-row { margin-top: 16px; }

/* Sidebar and accordion */
.sidebar-shell { padding: .65rem; }
.sidebar-nav { position: sticky; top: 20px; }
.sidebar-nav .nav-link, .sidebar-accordion-toggle { align-items: center; border: 0; border-radius: 6px; color: var(--text); display: flex; font: inherit; font-size: .84rem; font-weight: 700; gap: .7rem; margin: .16rem 0; padding: .68rem .75rem; text-align: left; text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .18s ease; width: 100%; }
.sidebar-nav .nav-link > i { color: var(--brand-primary); font-size: 1rem; width: 1.1rem; }
.sidebar-nav .nav-link > i,.sidebar-accordion-toggle > span > i { align-items:center;display:inline-flex;flex:0 0 1.35rem;height:1.35rem;justify-content:center; }
.sidebar-nav .nav-link.active, .sidebar-nav .nav-link:hover { background: var(--brand-primary); color: var(--brand-on-primary); transform: translateX(2px); }
.sidebar-nav .nav-link.active > i, .sidebar-nav .nav-link:hover > i { color: var(--brand-on-primary); }
.sidebar-accordion-toggle { background: transparent; justify-content: space-between; }
.sidebar-accordion-toggle:hover, .sidebar-accordion.is-open .sidebar-accordion-toggle { background: var(--surface-subtle); color: var(--brand-primary-dark); }
.sidebar-accordion-toggle span { align-items: center; display: flex; gap: .75rem; }
.accordion-chevron { font-size: .75rem; transition: transform .18s ease; }
.sidebar-accordion.is-open .accordion-chevron { transform: rotate(180deg); }
.sidebar-submenu { border-left: 1px solid var(--border); margin: .2rem 0 .45rem 1.3rem; padding-left: .55rem; }
.sidebar-submenu .nav-link { color: var(--muted); font-size: .78rem; font-weight: 600; padding: .55rem .65rem; }

.sidebar-shell.sidebar-shell-compact .sidebar-nav .nav-link,
.sidebar-shell.sidebar-shell-compact .sidebar-accordion-toggle {
	justify-content: center;
	padding-left: .55rem;
	padding-right: .55rem;
	gap: 0;
}
.sidebar-shell.sidebar-shell-compact .sidebar-nav .nav-link span,

.sidebar-shell.sidebar-shell-compact .sidebar-accordion-toggle > span {
	display: none;
}
.sidebar-shell.sidebar-shell-compact .sidebar-accordion-toggle .accordion-chevron,
.sidebar-shell.sidebar-shell-compact .sidebar-submenu,
.sidebar-shell.sidebar-shell-compact .sidebar-submenu .nav-link span {
	display: none;
}
.sidebar-shell.sidebar-shell-compact .sidebar-nav .nav-link > i,
.sidebar-shell.sidebar-shell-compact .sidebar-accordion-toggle span > i {
	font-size: 1.05rem;
	margin: 0;
}

/* Layout and collapse behavior */
.menu-wrapper { display:flex; align-items:flex-start; }
#menuIzquierdo { flex: 0 0 260px; transition: transform .35s ease, flex-basis .35s ease, opacity .25s ease, width .35s ease; z-index:5; }
.menu-wrapper > .col-12.col-md-3 { transition: transform .35s ease, flex-basis .35s ease, width .35s ease, opacity .25s ease; }
#contenidoPrincipal { flex: 1 1 auto; transition: margin-left .35s ease; position:relative; }

/* Collapsed state applied to body */
body.sidebar-collapsed #menuIzquierdo, .menu-wrapper.sidebar-collapsed > .col-12.col-md-3 {
	transform: none;
	opacity:1;
	flex-basis:72px;
	width:72px !important;
	padding:0 !important;
	margin:0 !important;
	overflow: hidden;
}
.menu-wrapper.sidebar-collapsed > .col-12.col-md-9 { margin-left:0; flex: 1 1 calc(100% - 72px); max-width: calc(100% - 72px); }
body.sidebar-collapsed #contenidoPrincipal { margin-left:0; }

/* Toggle button visuals */
#btnToggleMenu { align-items: center; background: transparent; border: 1px solid var(--border); display: inline-flex; flex: 0 0 auto; gap: .4rem; justify-content: center; min-height: 38px; transition: transform .2s ease, opacity .2s ease; }
#btnToggleMenu:hover { transform: scale(1.05); }
#btnToggleMenu.collapsed i { transform: rotate(180deg); transition: transform .25s ease; color:var(--brand-primary); }

/* Overlay for mobile when sidebar open */
.sidebar-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.45); z-index:1040; transition: opacity .25s ease; }
.sidebar-overlay.d-none { display:none; }
.sidebar-overlay.show { display:block; opacity:1; }
.sidebar-overlay.hide { opacity:0; display:none; }

/* Controls, forms, tables, and feedback */
.btn { border-radius: 6px; font-size: .86rem; font-weight: 700; letter-spacing: 0; padding: .55rem .85rem; }
.btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-primary-dark); border-color: var(--brand-primary-dark); }
.btn-outline-primary { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-outline-primary:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.form-control, .form-select { background: var(--surface); border-color: var(--border); border-radius: 6px; color: var(--text); min-height: 42px; }
.form-control:focus, .form-select:focus { background: var(--surface); border-color: var(--brand-primary); box-shadow: 0 0 0 .2rem rgba(var(--brand-primary-rgb), .14); color: var(--text); }
.form-label { color: var(--text); font-size: .82rem; font-weight: 700; }
.form-text, .text-muted { color: var(--muted) !important; }
.cashdesk-audit-filter { min-width: 230px; }
.product-image-preview { max-height: 130px; }
.sales-inventory-period { max-width: 220px; }
.tenant-switch-select { min-width: 220px; }
.password-strength-progress { height: 6px; }
#pwdStrengthBar { width: 0; }
.app-action-dialog { background: transparent; border: 0; max-width: min(440px, calc(100vw - 32px)); padding: 0; width: 100%; }
.app-action-dialog::backdrop { backdrop-filter: blur(3px); background: rgba(17, 34, 63, .56); }
.app-action-dialog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 22px 54px rgba(17, 34, 63, .24); color: var(--text); overflow: hidden; }
.app-action-dialog-header, .app-action-dialog-body, .app-action-dialog-footer { padding: 1rem; }
.app-action-dialog-header { border-bottom: 1px solid var(--border); }
.app-action-dialog-header h2 { font-size: 1rem; margin: 0; }
.app-action-dialog-body { display: grid; gap: .85rem; }
.app-action-dialog-body p { color: var(--muted); margin: 0; }
.app-action-dialog-body label { display: grid; font-size: .82rem; font-weight: 700; gap: .4rem; }
.app-action-dialog-footer { border-top: 1px solid var(--border); display: flex; gap: .65rem; justify-content: flex-end; }
.order-service-prompt-content { width: min(420px, calc(100vw - 32px)); }
.inventory-recipe-unit { min-width: 54px; }
.ticket-print-page { background: #fff; color: #111; font-family: monospace; padding: 16px; }
.ticket-print-page h1 { font-size: 18px; margin: 0 0 6px; }
.ticket-print-page h2 { font-size: 14px; margin: 8px 0 4px; }
.ticket-print-page small { color: #555; }
.ticket-print-page .box, .ticket-print-page .ticket { border: 1px dashed #333; max-width: 360px; padding: 10px; }
.ticket-print-page .brand-logo { display: block; margin: 0 auto 8px; max-height: 64px; max-width: 220px; object-fit: contain; }
.ticket-print-page .line { display: flex; gap: 8px; justify-content: space-between; }
.ticket-print-page .block { word-break: break-word; }
.ticket-print-page .notice { border: 1px solid #111; font-weight: 700; margin: 8px 0; padding: 6px; text-align: center; }
.ticket-print-page hr { border: 0; border-top: 1px dashed #777; margin: 8px 0; }
.ticket-location-qr { margin: 8px 0; text-align: center; }
.ticket-location-qr img { height: 120px; width: 120px; }
.print-test-page { padding: 1rem; }
.print-test-page label { display: block; font-weight: 700; margin-top: .75rem; }
.print-test-ticket { font-family: Arial, sans-serif; width: 300px; }
.print-test-ticket img { display: block; margin: 8px 0; max-width: 100%; }
.print-test-qr-input { max-width: 100%; width: 360px; }
.print-test-modal { align-items: center; background: rgba(0, 0, 0, .5); display: flex; inset: 0; justify-content: center; position: fixed; z-index: 1090; }
.print-test-modal[hidden] { display: none; }
.print-test-modal__box { background: #fff; border-radius: 8px; color: #111; max-width: 420px; padding: 16px; }
.sales-inventory-print-page { background: #fff; color: #111; font: 14px Arial, sans-serif; padding: 20px; }
.sales-inventory-print-page table { border-collapse: collapse; margin-bottom: 20px; width: 100%; }
.sales-inventory-print-page th, .sales-inventory-print-page td { border: 1px solid #bbb; padding: 6px; text-align: left; }
.sales-inventory-print-page h2 { margin-bottom: 4px; }
.financial-module { min-width: 0; }
.financial-kpi-grid { display: grid; gap: .85rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.financial-kpi-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.financial-kpi { align-items: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; display: flex; gap: .8rem; min-width: 0; padding: 1rem; }
.financial-kpi__icon { align-items: center; background: rgba(var(--brand-primary-rgb), .1); border-radius: 8px; color: var(--brand-primary); display: inline-flex; flex: 0 0 42px; font-size: 1.1rem; height: 42px; justify-content: center; }
.financial-kpi span { color: var(--muted); display: block; font-size: .75rem; font-weight: 700; }
.financial-kpi strong { color: var(--text); display: block; font-size: 1.08rem; overflow-wrap: anywhere; }
.financial-kpi.is-positive { border-left: 4px solid #198754; }
.financial-kpi.is-negative { border-left: 4px solid #dc3545; }
.financial-layout { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.financial-panel { border-top: 1px solid var(--border); min-width: 0; padding-top: 1rem; }
.financial-panel h3 { color: var(--text); }
.financial-filter-row, .financial-report-controls, .financial-target-form { align-items: end; display: flex; flex-wrap: wrap; gap: .75rem; }
.financial-filter-row > div, .financial-report-controls > div { min-width: 160px; }
.financial-report-controls > div { flex: 1 1 180px; }
.financial-target-form > div { min-width: min(100%, 210px); }
.financial-bar-row { margin-bottom: .8rem; }
.financial-bar-label { align-items: center; display: flex; font-size: .78rem; gap: .5rem; justify-content: space-between; margin-bottom: .3rem; }
.financial-bar-track { background: var(--surface-subtle); border-radius: 999px; height: 9px; overflow: hidden; }
.financial-bar-fill { background: var(--brand-primary); border-radius: inherit; display: block; height: 100%; min-width: 2%; }
.financial-bar-fill.is-warning { background: #dc8b18; }
.financial-trend { align-items: end; display: flex; gap: .45rem; min-height: 190px; overflow-x: auto; padding-top: 2rem; }
.financial-trend-item { align-items: center; display: grid; flex: 1 0 48px; gap: .35rem; height: 175px; justify-items: center; min-width: 48px; }
.financial-trend-item > strong { font-size: .67rem; text-align: center; white-space: nowrap; }
.financial-trend-column { align-items: end; background: var(--surface-subtle); border-radius: 5px 5px 0 0; display: flex; height: 115px; overflow: hidden; width: 24px; }
.financial-trend-column span { background: var(--brand-primary); border-radius: 5px 5px 0 0; display: block; width: 100%; }
.financial-trend-item small { color: var(--muted); font-size: .68rem; }
.financial-guidance { align-items: flex-start; background: var(--surface-subtle); border-left: 4px solid var(--brand-primary); display: flex; gap: .75rem; padding: .85rem 1rem; }
.financial-guidance > i { font-size: 1.15rem; }
.financial-guidance strong, .financial-guidance span { display: block; }
.financial-guidance span { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.financial-guidance.is-success { border-left-color: #198754; }
.financial-guidance.is-danger { border-left-color: #dc3545; }
.financial-guidance.is-warning { border-left-color: #dc8b18; }
.financial-statement-row, .financial-comparison-item { align-items: center; border-bottom: 1px solid var(--border); display: flex; gap: .75rem; justify-content: space-between; padding: .55rem 0; }
.financial-statement-row.is-total { border-top: 2px solid var(--border); font-weight: 800; }
.financial-statement-row.is-grand-total { border-bottom: 3px double var(--border); font-size: 1.02rem; font-weight: 900; }
.financial-accounting-note { color: var(--muted); font-size: .75rem; margin: .8rem 0 0; }
.financial-projection-grid { display: grid; gap: .7rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.financial-projection-grid article { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 8px; min-width: 0; padding: .8rem; }
.financial-projection-grid span { color: var(--muted); display: block; font-size: .72rem; }
.financial-projection-grid strong { color: var(--text); display: block; font-size: .95rem; overflow-wrap: anywhere; }
.financial-calculation-note { background: var(--surface-subtle); border-left: 3px solid var(--brand-primary); color: var(--text); font-weight: 700; padding: .75rem; }
@media (max-width: 991px) {
  .financial-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .financial-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .financial-kpi-grid, .financial-kpi-grid--compact, .financial-projection-grid { grid-template-columns: 1fr; }
  .financial-filter-row > div, .financial-filter-row .btn, .financial-target-form > div, .financial-target-form .btn { width: 100%; }
}
@media print {
  .print-test-page > * { visibility: hidden; }
  .print-test-page .print-test-ticket,
  .print-test-page .print-test-ticket * { visibility: visible; }
  .print-test-page .print-test-ticket { left: 0; position: absolute; top: 0; }
}
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); margin-bottom: 0; }
.table thead th { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.table > :not(caption) > * > * { padding: .8rem .7rem; }
.table-responsive { border: 1px solid var(--border); border-radius: 8px; }
.table-responsive .table { min-width: 620px; }
.products-admin-panel { display: grid; gap: 1rem; }
.products-table-shell { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 24px rgba(28, 43, 45, .06); overflow: hidden; }
.products-table-toolbar { align-items: center; background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), .08), rgba(255,255,255,.2)); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 1rem 1.1rem; }
.products-table-toolbar strong { color: var(--text); display: block; font-size: .95rem; }
.products-table-toolbar small { color: var(--muted); display: block; font-size: .76rem; }
.products-toolbar-badge { background: rgba(var(--brand-primary-rgb), .08); border: 1px solid rgba(var(--brand-primary-rgb), .12); border-radius: 999px; color: var(--brand-primary-dark); display: inline-flex; font-size: .76rem; font-weight: 800; padding: .4rem .72rem; white-space: nowrap; }
.products-filters-grid { align-items: end; border-bottom: 1px solid var(--border); display: grid; gap: .9rem; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 1rem 1.1rem; }
.products-filters-actions { align-items: end; display: flex; }
.exchange-rate-row { align-items: center; display: flex; gap: .35rem; }
.exchange-rate-refresh { min-height: 28px; padding: .2rem .42rem; }
.exchange-rate-refresh.is-loading i { animation: spinRateRefresh .8s linear infinite; }
.products-table-wrap { border: 0; border-radius: 0; }
.products-table { margin-bottom: 0; }
.products-table thead th { background: rgba(var(--brand-primary-rgb), .04); }
.product-id-pill { background: rgba(var(--brand-primary-rgb), .08); border: 1px solid rgba(var(--brand-primary-rgb), .1); border-radius: 999px; color: var(--brand-primary-dark); display: inline-flex; font-size: .76rem; font-weight: 800; padding: .32rem .58rem; }
.product-name-cell { align-items: center; display: grid; gap: .18rem .55rem; grid-template-columns: 38px minmax(0, 1fr); }
.product-name-cell strong { color: var(--text); font-size: .92rem; }
.product-name-cell span:not(.product-thumb) { color: var(--muted); font-size: .78rem; grid-column: 2; }
.product-thumb { border: 1px solid var(--border); border-radius: 6px; grid-row: 1 / span 2; height: 38px; object-fit: cover; width: 38px; }
.product-thumb-placeholder { align-items: center; background: rgba(var(--brand-primary-rgb), .08); color: var(--brand-primary); display: inline-flex; justify-content: center; }
.product-select-cell { text-align: center; width: 44px; }
.product-price-cell { color: var(--text); font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; font-weight: 800; }
.stock-badge { border-radius: 999px; display: inline-flex; font-size: .74rem; font-weight: 800; padding: .38rem .6rem; }
.stock-success { background: rgba(25, 135, 84, .12); color: #13653f; }
.stock-warning { background: rgba(var(--brand-accent-rgb), .18); color: #8e5a00; }
.stock-danger { background: rgba(220, 53, 69, .12); color: #a22633; }
.product-actions-cell { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 180px; }
.product-actions-cell .btn { align-items: center; display: inline-flex; justify-content: center; min-width: 82px; }
.products-empty-state { padding: 2.2rem 1rem !important; text-align: center; }
.empty-state-copy { display: grid; gap: .35rem; }
.empty-state-copy strong { color: var(--text); }
.empty-state-copy span { color: var(--muted); }
.orders-admin-panel { display: grid; gap: 1rem; }
.orders-stat-card { min-height: 104px; }
.orders-filters-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.orders-table td strong { color: var(--text); }
.order-status-badge { border-radius: 999px; display: inline-flex; font-size: .74rem; font-weight: 800; padding: .38rem .6rem; }
.order-status-warning { background: rgba(var(--brand-accent-rgb), .18); color: #8e5a00; }
.order-status-success { background: rgba(25, 135, 84, .12); color: #13653f; }
.order-status-danger { background: rgba(220, 53, 69, .12); color: #a22633; }
.order-status-neutral { background: rgba(108, 117, 125, .14); color: #43515d; }
.orders-table .product-actions-cell { min-width: 210px; }
.payment-summary { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 10px; display: grid; gap: .75rem; padding: .85rem; }
.payment-summary small { color: var(--muted); display: block; font-size: .72rem; font-weight: 700; margin-bottom: .18rem; text-transform: uppercase; }
.payment-summary strong { color: var(--text); display: block; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { margin: 1rem 1rem .75rem; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: var(--text); min-height: 38px; padding: .35rem .55rem; }
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate { margin: .85rem 1rem 1rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button { border-radius: 6px !important; margin-left: .2rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--brand-primary) !important; border: 1px solid var(--brand-primary) !important; color: #fff !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--surface-subtle) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.users-admin-panel { display: grid; gap: 1rem; }
.users-card-head { align-items: start; display: flex; justify-content: space-between; gap: 1rem; }
.user-form-card, .users-list-card { border-radius: 14px !important; }
.users-form-grid { display: grid; gap: .15rem; }
.users-form-actions .btn { min-width: 132px; }
.users-list-head { border-bottom: 1px solid rgba(var(--brand-primary-rgb), .1); margin-bottom: .6rem; padding-bottom: .6rem; }
.users-empty-state { display: grid; gap: .35rem; padding: 1.4rem 0 .25rem; text-align: center; }
.users-empty-state strong { color: var(--text); }
.users-empty-state span { color: var(--muted); }
.user-identity-cell { display: grid; gap: .14rem; }
.user-identity-cell strong { color: var(--text); font-size: .92rem; }
.user-identity-cell span { color: var(--muted); font-size: .75rem; }
.users-list-wrap { border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; overflow-y: hidden; }
.users-table { margin-bottom: 0; min-width: 760px; }
.user-role-badge { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 999px; color: var(--brand-primary-dark); display: inline-block; font-size: .72rem; font-weight: 800; line-height: 1; padding: .38rem .55rem; text-transform: capitalize; }
.user-actions { display: flex; flex-wrap: nowrap; gap: .4rem; min-width: 210px; }
.user-actions .btn { align-items: center; display: inline-flex; gap: .35rem; justify-content: center; min-width: 96px; }

@media (min-width: 1600px) {
	.users-table { min-width: 840px; }
}
.card-body { padding: 1.1rem; }
.card-title, h2.h5, h4, h5 { color: var(--text); font-weight: 800; }
canvas { max-width: 100%; }
.modal-content { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.alert { border: 0; border-radius: 6px; font-weight: 600; }
.fw-600 { font-weight:600; }
.exchange-rate-chip { background: rgba(var(--brand-primary-rgb), .08); border: 1px solid rgba(var(--brand-primary-rgb), .12); border-radius: 999px; color: var(--brand-primary-dark) !important; display: inline-flex; font-size: .68rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .2rem; max-width: 100%; padding: .18rem .52rem; white-space: nowrap; }
.refresh-settings-field { max-width: 320px; }

@media (max-width: 1400px) {
	:root { --app-font-size: 13px; }
	.sidebar-nav .nav-link, .sidebar-accordion-toggle { font-size: .8rem; padding: .62rem .68rem; }
	.btn { font-size: .82rem; }
	.form-control, .form-select { min-height: 40px; }
}

@media (max-width: 1200px) {
	.menu-wrapper > .col-12.col-md-3 { flex: 0 0 74px; max-width: 74px; }
	.menu-wrapper > .col-12.col-md-9 { flex: 1 1 calc(100% - 74px); max-width: calc(100% - 74px); }
	.sidebar-shell.sidebar-shell-compact .sidebar-nav .nav-link,
	.sidebar-shell.sidebar-shell-compact .sidebar-accordion-toggle { min-height: 42px; }
}

.business-admin-panel .card,
.inventory-admin-panel .card,
.users-admin-panel .card,
.products-admin-panel .products-table-shell,
.orders-admin-panel .products-table-shell {
	border-radius: 14px !important;
	box-shadow: 0 12px 28px rgba(28, 43, 45, .08);
}

.inventory-admin-panel .border.rounded.p-3 {
	background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), .06), rgba(255, 255, 255, .95));
	border-color: rgba(var(--brand-primary-rgb), .13) !important;
	border-radius: 12px !important;
}

.kitchen-card-body {
	padding: 1rem;
}

.kitchen-toolbar {
	border-bottom: 1px solid rgba(var(--brand-primary-rgb), .14);
	padding-bottom: .65rem;
}

.kitchen-toolbar-actions .form-select,
.kitchen-toolbar-actions .btn {
	min-height: 40px;
}

.kitchen-kpis {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.kitchen-kpis .kpi-card {
  align-items: center;
  display: flex;
  gap: .65rem;
  justify-content: space-between;
  min-width: 120px;
  padding: .55rem .7rem;
}

.kitchen-kpis .kpi-label {
  line-height: 1.15;
}

.kitchen-kpis .kpi-card strong {
  flex: 0 0 auto;
}

.kitchen-layout-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: .85rem;
}

.kitchen-board {
	border: 1px dashed rgba(var(--brand-primary-rgb), .25);
	border-radius: 14px;
	display: grid;
	gap: .75rem;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	align-content: start;
	min-height: 560px;
	padding: .8rem;
	background:
		radial-gradient(circle at 25% 15%, #ffffff 0%, #f8fbff 40%, #eef3fb 100%);
}

.kitchen-orders-grid {
	display: grid;
	gap: .75rem;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.kitchen-order-card {
	border-radius: 14px;
	padding: .7rem;
	border: 1px solid rgba(var(--brand-primary-rgb), .18);
	background: rgba(255, 255, 255, .88);
	box-shadow: 0 8px 20px rgba(15, 45, 55, .08);
	display: grid;
	gap: .45rem;
	min-width: 0;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
}

.kitchen-order-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .6rem;
}

.kitchen-order-head strong {
	font-size: .98rem;
}

.kitchen-order-tag {
	font-size: .74rem;
	border-radius: 999px;
	padding: .18rem .5rem;
	background: rgba(var(--brand-primary-rgb), .12);
	color: var(--brand-primary-dark);
	font-weight: 700;
}

.kitchen-order-body {
	display: grid;
	gap: .25rem;
	font-size: .84rem;
}

.kitchen-order-row {
	display: flex;
	justify-content: space-between;
	gap: .45rem;
}

.kitchen-order-actions .btn {
	width: 100%;
	min-height: 38px;
}

.kitchen-state-pending { border-color: rgba(240, 173, 0, .45); background: linear-gradient(165deg, #fffce8, #fff4d2); }
.kitchen-state-progress { border-color: rgba(13, 110, 253, .4); background: linear-gradient(165deg, #f2f8ff, #dce8ff); }
.kitchen-state-ready { border-color: rgba(25, 135, 84, .4); background: linear-gradient(165deg, #f1fff6, #d9f4e4); }
.kitchen-state-warning { border-color: rgba(240, 173, 0, .5); background: linear-gradient(165deg, #fff8e1, #ffe9b0); }
.kitchen-state-critical { border-color: rgba(220, 53, 69, .5); background: linear-gradient(165deg, #ffecef, #ffd2da); }
.kitchen-state-served,
.kitchen-state-paid,
.kitchen-state-cancelled { opacity: .76; }

.kitchen-sidepanel {
	border: 1px solid rgba(var(--brand-primary-rgb), .15);
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
	padding: .75rem;
}

.kitchen-print-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	flex-wrap: wrap;
	padding: .42rem .45rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: rgba(255,255,255,.85);
	margin-bottom: .35rem;
}
.kitchen-print-item > div:last-child {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}
.kitchen-print-cancel {
	white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1280px) {
	#mainContent[data-fragment="kitchen"] .kitchen-layout-grid {
		grid-template-columns: 1fr;
	}

	#mainContent[data-fragment="kitchen"] .kitchen-board {
		display: grid;
		gap: .75rem;
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
		align-content: start;
		min-height: 620px;
	}

	#mainContent[data-fragment="kitchen"] .kitchen-order-card {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		width: auto;
	}

	#mainContent[data-fragment="kitchen"] .kitchen-toolbar-actions {
		width: 100%;
	}

	#mainContent[data-fragment="kitchen"] .kitchen-toolbar-actions .form-select,
	#mainContent[data-fragment="kitchen"] .kitchen-toolbar-actions .btn,
	#mainContent[data-fragment="kitchen"] .kitchen-toolbar-actions .badge {
		flex: 1 1 180px;
	}
}

.context-active-banner {
	background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), .16), rgba(var(--brand-accent-rgb), .18));
	border: 1px solid rgba(var(--brand-primary-rgb), .28);
	border-radius: 12px;
	color: #0f3540;
	box-shadow: 0 8px 22px rgba(15, 53, 64, .1);
}

#mainContent > section,
#mainContent > .card,
#mainContent > .bg-white {
	animation: fadeUp .25s ease-out;
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.cashdesk-stage { position: relative; isolation: isolate; }
.cashdesk-stage-backdrop {
	background:
		radial-gradient(circle at 8% 10%, rgba(13, 110, 253, .14), transparent 28%),
		radial-gradient(circle at 92% 20%, rgba(25, 135, 84, .12), transparent 26%),
		linear-gradient(165deg, rgba(255,255,255,.78), rgba(255,255,255,.35));
	border: 1px solid rgba(var(--brand-primary-rgb), .12);
	border-radius: 20px;
	inset: 0;
	position: absolute;
	z-index: -1;
}
.cashdesk-panel { display: grid; gap: 1rem; padding: 1rem; }
.cashdesk-headline .h5 { font-size: 1.1rem; letter-spacing: .01em; }

.cashdesk-kpis { display: grid; gap: .7rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cashdesk-kpi-card {
	background: rgba(255,255,255,.82);
	border: 1px solid rgba(var(--brand-primary-rgb), .12);
	border-radius: 12px;
	display: grid;
	gap: .25rem;
	padding: .75rem .9rem;
}
.cashdesk-kpi-card span { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cashdesk-kpi-card strong { color: var(--text); font-size: 1.4rem; font-weight: 800; line-height: 1; }
.cashdesk-kpi-alert { border-color: rgba(220, 53, 69, .26); }

.cashdesk-legend { display: flex; flex-wrap: wrap; gap: .7rem 1rem; font-size: .79rem; color: var(--muted); }
.cashdesk-legend span { align-items: center; display: inline-flex; font-weight: 700; gap: .35rem; }
.badge-dot { border-radius: 50%; display: inline-block; height: .7rem; width: .7rem; }
.mesa-libre-dot { background: #8c959f; }
.mesa-ocupada-dot { background: #198754; }
.mesa-cuenta-dot { background: #0d6efd; }
.mesa-alerta-dot { background: #f0ad00; }
.mesa-critica-dot { background: #dc3545; }

.cashdesk-arrange-hint {
	background: rgba(13, 110, 253, .09);
	border: 1px dashed rgba(13, 110, 253, .45);
	border-radius: 8px;
	color: #1b4e9a;
	font-size: .8rem;
	font-weight: 700;
	padding: .45rem .7rem;
}

.cashdesk-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cashdesk-table-card {
	backdrop-filter: blur(2px);
	background: rgba(255,255,255,.84);
	border: 1px solid rgba(var(--brand-primary-rgb), .14);
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(28, 43, 45, .08);
	min-height: 250px;
	overflow: hidden;
	padding: .85rem;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cashdesk-table-card:hover { box-shadow: 0 14px 28px rgba(28, 43, 45, .12); transform: translateY(-1px); }
.cashdesk-card-glow {
	background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.7), transparent 55%);
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.cashdesk-table-head { align-items: start; display: flex; justify-content: space-between; gap: .45rem; margin-bottom: .7rem; position: relative; z-index: 1; }
.cashdesk-mesa-mark {
	align-content: center;
	background: rgba(var(--brand-primary-rgb), .12);
	border: 1px solid rgba(var(--brand-primary-rgb), .18);
	color: var(--brand-primary-dark);
	display: grid;
	gap: .1rem;
	height: 64px;
	justify-items: center;
	padding: .45rem;
	width: 64px;
}
.cashdesk-mesa-mark span { font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cashdesk-mesa-mark strong { font-size: 1.15rem; line-height: 1; }
.mesa-shape-round { border-radius: 50%; }
.mesa-shape-square { border-radius: 12px; }

.cashdesk-head-badges { display: flex; flex-direction: column; gap: .35rem; align-items: flex-end; }
.cashdesk-state-pill {
	background: rgba(0,0,0,.08);
	border-radius: 999px;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .03em;
	padding: .26rem .52rem;
	text-transform: uppercase;
}
.cashdesk-drag-handle {
	background: rgba(255,255,255,.8);
	border: 1px solid rgba(0,0,0,.1);
	border-radius: 8px;
	color: var(--muted);
	cursor: grab;
	padding: .12rem .35rem;
}

.cashdesk-table-body { display: grid; gap: .38rem; position: relative; z-index: 1; }
.cashdesk-data-row { align-items: baseline; display: flex; justify-content: space-between; gap: .5rem; }
.cashdesk-data-row small { color: var(--muted); font-size: .71rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.cashdesk-data-row strong { color: var(--text); font-size: .9rem; font-weight: 800; }

.cashdesk-timer-wrap {
	background: rgba(255,255,255,.52);
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 10px;
	margin-top: .2rem;
	padding: .42rem .48rem;
}
.cashdesk-timer-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: .25rem; }
.cashdesk-timer-head small { color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.cashdesk-timer-label { font-size: .76rem; font-weight: 800; }
.cashdesk-timer-label.ok { color: #13653f; }
.cashdesk-timer-label.warning { color: #8e5a00; }
.cashdesk-timer-label.danger { color: #a22633; }

.cashdesk-progress-track { background: rgba(0,0,0,.08); border-radius: 999px; height: 6px; overflow: hidden; }
.cashdesk-progress-fill { border-radius: inherit; display: block; height: 100%; }
.cashdesk-progress-fill.ok { background: linear-gradient(90deg, var(--brand-accent), #198754); }
.cashdesk-progress-fill.warning { background: linear-gradient(90deg, #ffd95e, #f0ad00); }
.cashdesk-progress-fill.danger { background: linear-gradient(90deg, #ff8080, #dc3545); }

.cashdesk-table-actions { display: grid; gap: .45rem; margin-top: .75rem; position: relative; z-index: 1; }
.cashdesk-table-actions .btn { width: 100%; }

.cashdesk-grid.arrange-mode .cashdesk-table-card { cursor: grab; }
.cashdesk-table-card.is-dragging { opacity: .52; transform: scale(.985); }
.cashdesk-table-card.is-drop-target { box-shadow: 0 0 0 2px rgba(13, 110, 253, .35), 0 12px 26px rgba(13, 110, 253, .2); }
.table-admin-board {
	background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), .045), rgba(var(--brand-accent-rgb), .08));
	border: 1px dashed var(--border);
	border-radius: 8px;
	min-height: 420px;
	overflow: auto;
	position: relative;
}
.table-admin-card {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: 0 5px 14px rgba(28, 43, 45, .1);
	cursor: grab;
	display: flex;
	gap: .45rem;
	min-height: 68px;
	padding: .65rem .75rem;
	position: absolute;
	user-select: none;
	width: 150px;
}
.table-admin-card:active { cursor: grabbing; }
.table-admin-card span { color: var(--muted); font-size: .76rem; margin-right: auto; text-transform: capitalize; }
.table-admin-card .table-admin-remove { padding: .2rem .4rem; }
@media (max-width: 576px) {
	.table-admin-board { min-height: 360px; }
	.table-admin-card { width: 132px; }
}

.cashdesk-table-card.mesa-libre {
	background: linear-gradient(165deg, #f4f6f8, #e6ecef);
	border-color: rgba(140, 149, 159, .42);
}
.cashdesk-table-card.mesa-ocupada {
	background: linear-gradient(165deg, #f1fff6, #d9f4e4);
	border-color: rgba(25, 135, 84, .35);
}
.cashdesk-table-card.mesa-cuenta {
	background: linear-gradient(165deg, #f2f8ff, #dce8ff);
	border-color: rgba(13, 110, 253, .35);
}
.cashdesk-table-card.mesa-alerta {
	background: linear-gradient(165deg, #fffce8, #fff1bf);
	border-color: rgba(240, 173, 0, .45);
}
.cashdesk-table-card.mesa-critica {
	animation: cashdeskBlink 1.1s linear infinite;
	background: linear-gradient(165deg, #ffecef, #ffd2da);
	border-color: rgba(220, 53, 69, .5);
}

@keyframes cashdeskBlink {
	0%, 49% { filter: saturate(1); }
	50%, 100% { filter: saturate(1.25); }
}

@media (max-width: 991px) {
	.cashdesk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cashdesk-headline { align-items: stretch !important; flex-direction: column; }
}

@media (max-width: 575px) {
	.cashdesk-grid { grid-template-columns: 1fr; }
	.cashdesk-kpis { grid-template-columns: 1fr; }
	.cashdesk-mesa-mark { height: 56px; width: 56px; }
}

@keyframes spinRateRefresh {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Landing page */
.landing-page { background:
	radial-gradient(circle at top left, rgba(232, 93, 74, .14), transparent 28%),
	radial-gradient(circle at top right, rgba(242, 184, 75, .18), transparent 24%),
	linear-gradient(180deg, #fffaf3 0%, #f5eee4 100%);
}
.landing-shell { margin: 0 auto; max-width: 1180px; padding: 0 20px; }
.landing-navbar { backdrop-filter: blur(14px); background: rgba(255, 255, 255, .82) !important; position: sticky; top: 0; z-index: 1030; }
.landing-hero { overflow: hidden; padding: 72px 0 48px; position: relative; }
.landing-hero::before { background: linear-gradient(135deg, rgba(232, 93, 74, .13), rgba(242, 184, 75, .13)); border-radius: 32px; content: ''; inset: 24px auto auto 50%; height: 440px; position: absolute; transform: translateX(-8%); width: min(44vw, 520px); }
.hero-grid { align-items: center; display: grid; gap: 32px; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); position: relative; }
.hero-copy { padding: 36px 0; }
.landing-kicker, .section-eyebrow { color: var(--brand-primary); display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h1 { color: #0f1720; font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 800; letter-spacing: -.04em; line-height: .96; margin: 14px 0 20px; max-width: 11ch; }
.hero-copy p { color: #52605a; font-size: 1.08rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-ghost-light { background: rgba(255,255,255,.86); border: 1px solid rgba(var(--brand-primary-rgb), .14); color: var(--brand-primary-dark); }
.btn-ghost-light:hover, .btn-ghost-light:focus { background: #fff; border-color: rgba(var(--brand-primary-rgb), .28); color: var(--brand-primary-dark); }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 28px 0 0; padding: 0; }
.hero-metrics li { background: rgba(255,255,255,.72); border: 1px solid rgba(var(--brand-primary-rgb), .1); border-radius: 999px; color: var(--text); font-size: .84rem; font-weight: 700; padding: .65rem .95rem; }
.hero-panel { display: flex; justify-content: center; }
.hero-panel-card { background: linear-gradient(180deg, #2a5298 0%, #11223f 100%); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; box-shadow: 0 22px 50px rgba(17, 34, 63, .2); color: #f9fafc; max-width: 460px; padding: 24px; position: relative; width: 100%; }
.hero-panel-card::after { background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)); border-radius: inherit; content: ''; inset: 1px; pointer-events: none; position: absolute; }
.hero-panel-header { align-items: center; color: #b5d9d6; display: flex; font-size: .82rem; font-weight: 700; gap: 10px; margin-bottom: 18px; position: relative; z-index: 1; }
.status-dot { background: #31d0af; border-radius: 50%; box-shadow: 0 0 0 6px rgba(49, 208, 175, .12); display: inline-block; height: 10px; width: 10px; }
.hero-panel-body { display: grid; gap: 16px; position: relative; z-index: 1; }
.metric-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 18px; }
.metric-card small, .metric-card span { color: #b5d9d6; display: block; }
.metric-card strong { display: block; font-size: 2rem; font-weight: 800; margin: 8px 0; }
.metric-card.accent { background: linear-gradient(135deg, rgba(232, 93, 74, .34), rgba(242, 184, 75, .27)); }
.mini-bars { align-items: end; display: grid; gap: 10px; grid-template-columns: repeat(6, 1fr); height: 122px; }
.mini-bars span { background: linear-gradient(180deg, #ff8800 0%, #f24e1e 100%); border-radius: 999px 999px 12px 12px; display: block; }
.mini-bar--42 { height: 42%; }
.mini-bar--54 { height: 54%; }
.mini-bar--68 { height: 68%; }
.mini-bar--74 { height: 74%; }
.mini-bar--82 { height: 82%; }
.mini-bar--93 { height: 93%; }
.landing-section { padding: 36px 0 84px; }
.landing-alt-section { background: rgba(255,255,255,.58); border-top: 1px solid rgba(var(--brand-primary-rgb), .08); border-bottom: 1px solid rgba(var(--brand-primary-rgb), .08); }
.section-heading.centered { margin: 0 auto 36px; max-width: 760px; text-align: center; }
.section-heading.centered h2 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.05; margin: 12px 0 0; }
.landing-features-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why-grid { gap: 22px; }
.landing-card { border-radius: 18px !important; min-height: 190px; padding: 22px !important; }
.landing-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.landing-card p { color: var(--muted); margin-bottom: 0; }
.feature-icon { align-items: center; background: rgba(var(--brand-primary-rgb), .1); border-radius: 14px; color: var(--brand-primary); display: inline-flex; font-size: 1.2rem; height: 46px; justify-content: center; width: 46px; }
.soft-card { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,250,249,.96)) !important; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-testimonial { border-left-width: 6px; border-radius: 18px; margin-top: 12px; }
.landing-testimonial p { font-size: 1.08rem; margin-bottom: 12px; }
.landing-cta-band { padding-top: 8px; }
.cta-band-inner { align-items: center; background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), .12), rgba(var(--brand-accent-rgb), .16)); border: 1px solid rgba(var(--brand-primary-rgb), .12); border-radius: 24px; display: flex; gap: 24px; justify-content: space-between; padding: 32px; }
.cta-band-inner h2 { margin: 8px 0 0; max-width: 16ch; }
.landing-footer { background: var(--brand-deep); color: #f8f2e9; padding: 34px 0 46px; text-align: center; }
.footer-brand-mark { margin-bottom: 18px; }
.footer-logo { border-radius: 6px; height: 58px; margin: 0 auto; opacity: .96; width: 148px; }
.landing-footer .footer-links a { color: #a5cbc6; }
.landing-footer .footer-links a:hover { color: #fff; }
#loginModal .modal-content { box-shadow: 0 22px 50px rgba(16, 40, 42, .18); }
#loginModal .modal-header { border-bottom-color: var(--border); }
#loginModal .modal-footer { border-top-color: var(--border); }
.modal-brand-lockup { align-items: center; display: flex; margin-right: .85rem; }
.modal-brand-copy { flex: 1 1 auto; min-width: 0; }
.modal-brand-mark { height: 42px; width: 42px; }

@media (max-width: 1100px) {
	.landing-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.landing-shell { padding-left: 16px; padding-right: 16px; }
	.landing-features-grid { grid-template-columns: 1fr; }
	.landing-card { min-height: 0; }
	.hero-actions .btn { width: 100%; }
}

@keyframes splashPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

/* Dark mode variables */
body.dark-mode {
	--bg: #142426;
	--surface: #1a3032;
	--surface-subtle: #20393b;
	--card-bg: #1a3032;
	--brand-primary: #ff7043;
	--brand-primary-dark: #ffad8f;
	--brand-primary-rgb: 255, 112, 67;
	--brand-accent: #ffad3d;
	--brand-accent-rgb: 255, 173, 61;
	--brand-deep: #11223f;
	--text: #edf8f6;
	--muted: #adc4c2;
	--border: #315254;
	color-scheme: dark;
}

/* Smooth transitions for theme change */
body, .stat-card, .navbar, .sidebar-nav .nav-link, #mainContent { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }

@media (prefers-reduced-motion: reduce) {
	.app-splash, .app-splash-mark { animation: none !important; transition: none !important; }
}

/* Theme-aware navbar */
.navbar { background: var(--card-bg); }
.navbar .navbar-brand { color: var(--brand-primary); }
.navbar .text-muted { color: var(--muted); }

/* Dark mode adjustments */
body.dark-mode { background: var(--bg); }
body.dark-mode .sidebar-nav .nav-link.active, body.dark-mode .sidebar-nav .nav-link:hover { color: #0f2223; }
body.dark-mode .sidebar-nav .nav-link.active > i, body.dark-mode .sidebar-nav .nav-link:hover > i { color: #0f2223; }
body.dark-mode .btn-outline-secondary { border-color: var(--border); color: var(--text); }
body.dark-mode .module-panel-surface { background: linear-gradient(180deg, rgba(26, 48, 50, .94), rgba(26, 48, 50, .8)); border-color: rgba(49, 82, 84, .85); }
body.dark-mode .module-panel-surface::before { opacity: .2; }
body.dark-mode .context-active-banner { color: #e8f8f6; }

/* Papyllon keeps its luxury palette even when the user toggles dark mode. */
body.papyllon-theme.dark-mode {
  --bg: #090d12;
  --surface: #111921;
  --surface-subtle: #17222d;
  --card-bg: #111921;
  --brand-primary: #e85d24;
  --brand-primary-dark: #bd3f12;
  --brand-primary-rgb: 232, 93, 36;
  --brand-accent: #f5a623;
  --brand-accent-rgb: 245, 166, 35;
  --brand-deep: #8a1834;
  --text: #fff5e8;
  --muted: #c9b9a8;
  --border: #34414c;
}
body.papyllon-theme.dark-mode .sidebar-nav .nav-link.active,
body.papyllon-theme.dark-mode .sidebar-nav .nav-link:hover { color: #fffaf3; }
body.papyllon-theme.dark-mode .sidebar-nav .nav-link.active > i,
body.papyllon-theme.dark-mode .sidebar-nav .nav-link:hover > i { color: #fffaf3 !important; }
body.papyllon-theme.dark-mode .module-panel-surface {
  background: linear-gradient(180deg, rgba(23, 34, 45, .96), rgba(13, 20, 28, .92));
  border-color: rgba(255, 210, 120, .2);
}

/* Theme toggle button */
#btnThemeToggle { display:inline-flex; align-items:center; justify-content:center; }

@media (min-width: 768px) and (max-width: 1280px) {
	.btn { min-height: 42px; }
	.form-control, .form-select { min-height: 44px; }

	#mainContent[data-fragment="users"] .users-form-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: .6rem;
	}
	#mainContent[data-fragment="users"] .users-form-actions .btn {
		min-width: 0;
		width: 100%;
	}

	#mainContent[data-fragment="products"] .products-filters-grid,
	#mainContent[data-fragment="orders"] .products-filters-grid,
	#mainContent[data-fragment="inventory"] .products-filters-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	#mainContent[data-fragment="products"] .products-filters-actions,
	#mainContent[data-fragment="orders"] .products-filters-actions,
	#mainContent[data-fragment="inventory"] .products-filters-actions {
		grid-column: 1 / -1;
	}

	#mainContent[data-fragment="orders"] .orders-table .btn,
	#mainContent[data-fragment="orders"] .orders-table .order-status-badge {
		font-size: .8rem;
	}

	#mainContent[data-fragment="mesero"] .card-body,
	#mainContent[data-fragment="cajero"] .card-body {
		padding: 1.15rem;
	}
}


@media (max-width: 767px) {
	/* Prevent flex/grid children and Bootstrap gutters from expanding the viewport. */
	*, *::before, *::after { box-sizing: border-box; }
	.container-fluid, .menu-wrapper, #contenidoPrincipal, #mainContent, #mainContent > *, .card, .card-body, .row, [class*="col-"] { max-width: 100%; min-width: 0; }
	.menu-wrapper { --bs-gutter-x: 0; margin-left: 0; margin-right: 0; width: 100%; }
	.menu-wrapper > [class*="col-"] { padding-left: 0; padding-right: 0; }
	#mainContent > .row { --bs-gutter-x: 1rem; margin-left: 0; margin-right: 0; }
	#mainContent > .row > [class*="col-"] { padding-left: .5rem; padding-right: .5rem; }
	input, select, textarea, button { max-width: 100%; }
	img, svg, canvas { height: auto; max-width: 100%; }

	.navbar { min-height: 64px; }
	.navbar .container-fluid { align-items: center; flex-wrap: nowrap; gap: .5rem; min-width: 0; }
	.navbar-brand { font-size: .98rem; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.brand-logo { height: 34px; }
	.brand-logo-full { display: none; }
	.brand-mark-mobile { display: block; }
	.app-splash-mark { height: 56px; width: 56px; }
	.sidebar-brand-card { padding: .72rem; }
	.sidebar-brand-mark, .modal-brand-mark { height: 36px; width: 36px; }
	.dashboard-user-actions { flex: 1 1 auto; gap: .45rem !important; justify-content: flex-end; min-width: 0; }
  .dashboard-menu-toggle { height: 38px; min-width: 38px; padding: .45rem !important; }
  .dashboard-menu-toggle span { display: none; }
	.dashboard-user-info { min-width: 0; }
	.dashboard-user-info > i { display: none; }
	.dashboard-user-copy { max-width: 20vw; }
	.dashboard-user-copy span, .dashboard-user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.dashboard-user-copy small { display: none; }
	#btnThemeToggle, .navbar .btn-outline-danger { min-width: 36px; padding: .48rem .6rem; }
	.navbar .btn-outline-danger { font-size: 0; }
	.navbar .btn-outline-danger::before { content: '\F5C9'; font-family: 'bootstrap-icons'; font-size: 1rem; }

	.container-fluid.py-4 { padding: 1rem !important; }
	.menu-wrapper { position: relative; }
	.menu-wrapper > .col-12.col-md-3 { background: var(--bg); left: 0; padding-bottom: 1rem; position: fixed; top: 64px; width: min(88vw, 320px) !important; z-index: 1045; }
	.menu-wrapper > .col-12.col-md-9 { flex: 0 0 100%; padding-top: .5rem; width: 100%; }
	.menu-wrapper.sidebar-collapsed > .col-12.col-md-3 {
		display: block;
		transform: none;
		width: 72px !important;
		max-width: 72px;
	}
	.sidebar-shell { border-radius: 0 8px 8px 0 !important; max-height: calc(100vh - 80px); overflow-y: auto; }
	#contenidoPrincipal { min-height: calc(100vh - 145px); }
  #mainContent { margin-top: 0 !important; padding: 0 !important; }

	.stat-card { min-height: 96px; padding: 1rem; }
	.stat-number { font-size: 1.7rem; }
	.card-body { padding: 1rem; }
	.section-heading { align-items: stretch !important; flex-direction: column; }
	.section-heading .btn { width: 100%; }
	.form-control, .form-select { font-size: 16px; }
	.modal-dialog { margin: .65rem; }
	.modal-footer { align-items: stretch; flex-direction: column-reverse; }
	.modal-footer .btn { width: 100%; }
	.products-filters-grid, .orders-filters-grid { grid-template-columns: 1fr; }
	.products-filters-actions .btn, .users-form-actions .btn { width: 100%; }
	.users-card-head { flex-direction: column; }
	.users-form-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
	.users-form-actions .btn { min-width: 0; }
	#btnTogglePwd { min-width: 44px; }
	.d-flex.gap-2 > .btn { flex: 1 1 auto; }
	.progress { min-width: 0; }
	#loginForm .btn { width: 100%; }
	.products-table-wrap { border: 0; overflow: visible; }
	.products-table, .products-table tbody, .products-table tr, .products-table td { display: block; width: 100%; }
	.products-table thead { display: none; }
	.products-table tr { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: .5rem 0; }
	.products-table tbody tr:last-child { border-bottom: 0; }
	.products-table td { align-items: flex-start; border: 0 !important; display: grid; gap: .7rem; grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr); padding: .5rem .9rem; }
	.products-table td::before { color: var(--muted); content: attr(data-label); font-size: .7rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
	.products-table .product-actions-cell { display: grid; gap: .5rem; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; }
	.products-table .product-actions-cell::before { display: none; }
	.products-table .product-actions-cell .btn { width: 100%; }
	.products-table .product-name-cell { gap: .3rem .55rem; }
	.products-table .product-select-cell { display: none; }
	.dataTables_wrapper .dataTables_length,
	.dataTables_wrapper .dataTables_filter,
	.dataTables_wrapper .dataTables_info,
	.dataTables_wrapper .dataTables_paginate { margin-left: .75rem; margin-right: .75rem; }
	.dataTables_wrapper .dataTables_filter input { margin-left: 0 !important; width: 100%; }
	.dataTables_wrapper .dataTables_filter label,
	.dataTables_wrapper .dataTables_length label { display: grid; gap: .45rem; }
	/* Users table becomes stacked records instead of an overflowing grid. */
	.users-list-wrap { border: 0; overflow: visible; }
	.users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; }
	.users-table thead { display: none; }
	.users-table tr { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 14px rgba(28, 43, 45, .05); margin-bottom: .75rem; overflow: hidden; padding: .45rem 0; }
	.users-table td { align-items: flex-start; border: 0 !important; display: grid; gap: .75rem; grid-template-columns: minmax(82px, .7fr) minmax(0, 1.3fr); padding: .45rem .8rem; }
	.users-table td::before { color: var(--muted); content: attr(data-label); font-size: .7rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
	.users-table td[data-label="Email"] { overflow-wrap: anywhere; }
	.users-table .user-actions { display: grid; gap: .5rem; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; min-width: 0; padding-top: .65rem; }
	.users-table .user-actions::before { display: none; }
	.users-table .user-actions .btn { min-height: 38px; width: 100%; }
	.users-table td { min-width: 0; }
	.hero-grid, .why-grid, .cta-band-inner { grid-template-columns: 1fr; }
	.hero-panel { order: -1; }
	.landing-hero { padding-top: 44px; }
	.landing-hero::before { height: 320px; left: 50%; top: 10px; transform: translateX(-50%); width: calc(100% - 32px); }
	.hero-copy { padding-top: 8px; text-align: center; }
	.hero-copy h1, .hero-copy p { margin-left: auto; margin-right: auto; }
	.hero-actions, .hero-metrics { justify-content: center; }
	.cta-band-inner { display: grid; padding: 24px; }
	.cta-band-inner h2 { max-width: none; }
	.landing-navbar .landing-shell { gap: .75rem; }
	.landing-navbar .d-flex { flex: 1 1 auto; justify-content: flex-end; }
	#loginModal .modal-footer .btn { width: 100%; }
}

@media (min-width: 768px) and (max-width: 991px) {
	.menu-wrapper > .col-12.col-md-3 { flex: 0 0 31%; max-width: 31%; }
	.menu-wrapper > .col-12.col-md-9 { flex: 0 0 69%; max-width: 69%; }
	.sidebar-nav .nav-link, .sidebar-accordion-toggle { font-size: .82rem; padding: .68rem; }
	.stat-number { font-size: 1.7rem; }
}

/* Public menu presentation layer */
.public-menu-page {
	--public-surface: rgba(255, 255, 255, .92);
	--public-border: rgba(var(--brand-rgb), .16);
	--public-shadow: 0 18px 42px rgba(15, 32, 44, .11);
	background: radial-gradient(circle at 8% 7%, rgba(var(--accent-rgb), .22), transparent 24%), radial-gradient(circle at 95% 3%, rgba(var(--brand-rgb), .2), transparent 26%), linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, #fff) 0%, var(--bg) 100%) !important;
	color: var(--ink);
	font-family: 'Manrope', sans-serif;
	margin: 0;
}
.public-menu-error-page { background: #f5f7fb; color: #1f2a37; margin: 0; }
.public-menu-error-box { background: #fff; border: 1px solid #dbe4f1; border-radius: 8px; margin: 48px auto; max-width: 780px; padding: 22px; }
.public-menu-error-box h1 { font-size: 1.4rem; margin: 0 0 10px; }
.public-menu-error-box code { background: #eef3fb; border-radius: 6px; padding: 2px 6px; }
.public-menu-error-box .hint { color: #52627a; }
.public-menu-error-box ul { margin: 8px 0 0 18px; }
.public-menu-page .shell {
	margin: 0 auto;
	max-width: 1320px;
	padding: clamp(14px, 3vw, 30px);
}
.public-menu-page .hero {
	background-color: var(--brand);
	background-position: center;
	background-size: cover;
	border: 1px solid var(--public-border);
	background-position: center;
	border-radius: 26px;
	box-shadow: 0 24px 58px rgba(15, 32, 44, .18);
	min-height: clamp(330px, 42vw, 500px);
	margin-bottom: 18px;
	overflow: hidden;
	padding: clamp(22px, 5vw, 48px);
	position: relative;
}
.public-menu-page .hero::before {
	background: rgba(0, 0, 0, .2);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}
.public-menu-page .hero.hero-tone-light::before {
	background: rgba(255, 255, 255, .46);
}
.public-menu-page .hero.hero-tone-light .hero-copy h1,
.public-menu-page .hero.hero-tone-light .hero-copy p {
	color: #13252b;
	text-shadow: 0 1px 3px rgba(255,255,255,.7);
}
.public-menu-page .hero.hero-tone-light .hero-stats span {
	background: rgba(255,255,255,.78);
	border-color: rgba(19,37,43,.16);
	color: #13252b;
}
.public-menu-page .hero.hero-tone-dark .hero-copy h1,
.public-menu-page .hero.hero-tone-dark .hero-copy p {
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,.58);
}
.public-menu-page .hero.hero-tone-dark .hero-stats span {
	color: #fff;
}
.public-menu-page .hero-copy {
	max-width: 720px;
	position: relative;
	z-index: 1;
}
.public-menu-page .hero-copy h1 {
	font-size: clamp(2.35rem, 7vw, 5.4rem);
	letter-spacing: -.035em;
	line-height: .98;
	margin: clamp(18px, 5vw, 54px) 0 0;
	max-width: 10ch;
}
.public-menu-page .hero-copy p {
	font-size: clamp(.98rem, 2.4vw, 1.16rem);
	line-height: 1.55;
	margin: 12px 0 0;
	max-width: 620px;
}
.public-menu-page h1,
.public-menu-page h2,
.public-menu-page h3 { font-family: 'Sora', sans-serif; }
.public-menu-page .hero-top { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 12px; position: relative; z-index: 1; }
.public-menu-page .public-brand-lockup { align-items: center; display: flex; gap: 14px; min-width: 0; }
.public-menu-page .public-brand-logo { background: rgba(255,255,255,.92); border-radius: 8px; display: block; height: 64px; max-width: min(260px,55vw); object-fit: contain; padding: 7px; width: auto; }
.public-menu-page .promo-chip { align-items: center; background: rgba(255,255,255,.9); border: 1px solid rgba(var(--brand-rgb),.25); border-radius: 999px; color: var(--brand); cursor: pointer; display: inline-flex; font-size: .86rem; font-weight: 800; gap: 8px; min-height: 40px; padding: 8px 12px; }
.public-menu-page .hero-stats span {
	align-items: center;
	backdrop-filter: blur(12px);
	background: rgba(8, 25, 32, .28);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
	display: inline-flex;
	font-weight: 800;
	gap: 7px;
	padding: 8px 12px;
}
.public-menu-page .hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.public-menu-page .menu-toolbar {
	align-items: center;
	backdrop-filter: blur(16px);
	background: color-mix(in srgb, var(--public-surface) 92%, transparent);
	border: 1px solid var(--public-border);
	border-radius: 18px;
	border-color: var(--public-border);
	box-shadow: var(--public-shadow);
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(260px, .9fr) minmax(0, 1.4fr);
	margin: 0 0 22px;
	padding: 14px;
	position: sticky;
	top: 12px;
	z-index: 50;
}
.public-menu-page .menu-search {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--public-border);
	border-radius: 12px;
	border-color: var(--public-border);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
	display: flex;
	gap: 9px;
	min-height: 52px;
	padding: 0 13px;
}
.public-menu-page .menu-search i { color: var(--brand); }
.public-menu-page .menu-search input { background: transparent; border: 0; color: var(--ink); font: 800 .95rem 'Manrope', sans-serif; min-width: 0; outline: 0; width: 100%; }
.public-menu-page .menu-search:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .13);
}
.public-menu-page .category-strip {
	display: flex;
	gap: 8px;
	max-width: none;
	overflow-x: auto;
	padding: 2px 2px 4px;
	scrollbar-width: thin;
}
.public-menu-page .category-chip {
	background: var(--surface);
	border: 1px solid var(--public-border);
	border-radius: 999px;
	border-color: var(--public-border);
	box-shadow: 0 3px 10px rgba(15, 32, 44, .05);
	color: var(--ink);
	cursor: pointer;
	flex: 0 0 auto;
	font-weight: 800;
	padding: 9px 12px;
	transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
	white-space: nowrap;
}
.public-menu-page .category-chip:hover,
.public-menu-page .category-chip:focus-visible {
	border-color: var(--brand);
	color: var(--brand);
	outline: 0;
	transform: translateY(-1px);
}
.public-menu-page .category-chip.is-active {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--on-brand);
	box-shadow: 0 8px 16px rgba(var(--brand-rgb), .22);
}
.public-menu-page .menu-category {
	margin-bottom: 34px;
	scroll-margin-top: 94px;
}
.public-menu-page .menu-category-head {
	align-items: end;
	border-bottom: 1px solid var(--public-border);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin: 0 0 12px;
	padding-bottom: 10px;
}
.public-menu-page .menu-category-head h2 {
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	letter-spacing: -.02em;
}
.public-menu-page .menu-category-head h2::before {
	background: var(--brand);
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: .8em;
	margin-right: 9px;
	vertical-align: -.04em;
	width: 5px;
}
.public-menu-page .menu-category-head span { color: var(--muted); font-size: .8rem; font-weight: 800; }
.public-menu-page .menu-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.public-menu-page .menu-card {
	background: var(--surface);
	border: 1px solid var(--public-border);
	border-radius: 18px;
	box-shadow: var(--public-shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	overflow: hidden;
	position: relative;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.public-menu-page .menu-card:hover {
	border-color: rgba(var(--brand-rgb), .38);
	box-shadow: 0 24px 52px rgba(15, 32, 44, .17);
}
.public-menu-page .menu-card img {
	aspect-ratio: 4 / 3;
	background: #dde8ea;
	display: block;
	object-fit: cover;
	transition: transform .35s ease, filter .35s ease;
	width: 100%;
}
.public-menu-page .menu-card:hover img {
	filter: saturate(1.08);
	transform: scale(1.035);
}
.public-menu-page .menu-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 9px;
	min-width: 0;
	padding: 17px;
}
.public-menu-page .menu-body p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}
.public-menu-page .menu-card h3 { font-size: 1.05rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.public-menu-page .menu-card-top { position: relative; }
.public-menu-page .menu-card-badge { background: rgba(255,255,255,.92); border: 1px solid var(--public-border); border-radius: 999px; color: var(--brand); font-size: .72rem; font-weight: 900; left: 10px; max-width: calc(100% - 20px); overflow: hidden; padding: 6px 9px; position: absolute; text-overflow: ellipsis; top: 10px; white-space: nowrap; }
.public-menu-page .menu-card-actions { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto; margin-top: auto; min-width: 0; width: 100%; }
.public-menu-page .menu-price {
	background: color-mix(in srgb, var(--brand) 10%, #fff);
	border: 1px solid rgba(var(--brand-rgb), .14);
	border-radius: 10px;
	color: var(--brand);
	font-size: .86rem;
	font-weight: 900;
	line-height: 1.25;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 9px 10px;
	text-align: center;
	white-space: normal;
}
.public-menu-page .menu-order-btn {
	align-items: center;
	background: var(--brand);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 16px rgba(var(--brand-rgb), .2);
	color: var(--on-brand);
	cursor: pointer;
	display: inline-flex;
	font-weight: 900;
	gap: 7px;
	justify-content: center;
	max-width: 100%;
	min-height: 42px;
	min-width: 0;
	padding: 10px 12px;
	white-space: nowrap;
	transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}
.public-menu-page .menu-order-btn:hover,
.public-menu-page .menu-order-btn:focus-visible {
	box-shadow: 0 12px 22px rgba(var(--brand-rgb), .28);
	outline: 0;
	transform: translateY(-1px);
}
.public-menu-page .menu-card details {
	background: color-mix(in srgb, var(--surface) 78%, var(--bg));
	border-color: var(--public-border);
	color: var(--ink);
}
.public-menu-page details { background: rgba(255,255,255,.75); border: 1px solid rgba(var(--brand-rgb),.12); border-radius: 12px; padding: 8px 10px; }
.public-menu-page summary { cursor: pointer; font-weight: 700; }
.public-menu-page .menu-card details summary:focus-visible,
.public-menu-page button:focus-visible,
.public-menu-page input:focus-visible,
.public-menu-page select:focus-visible,
.public-menu-page textarea:focus-visible {
	box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .18);
	outline: 0;
}
.public-menu-page .menu-cart-launcher {
	box-shadow: 0 16px 36px rgba(15, 32, 44, .3);
	min-height: 56px;
}
.public-menu-page .delivery-card,
.public-menu-page .feedback-card,
.public-menu-page .welcome-card,
.public-menu-page .promo-modal-card {
	box-shadow: 0 28px 72px rgba(0, 0, 0, .3);
}
.public-menu-page .welcome-modal { align-items: center; backdrop-filter: blur(7px); background: rgba(10,25,40,.72); display: none; inset: 0; justify-content: center; padding: 18px; position: fixed; z-index: 1600; }
.public-menu-page .welcome-modal.is-open { display: flex; }
.public-menu-page .welcome-card { background: #fff; border: 1px solid rgba(var(--brand-rgb), .2); border-radius: 22px; max-height: min(92vh, 760px); max-width: 520px; overflow: auto; position: relative; width: min(100%, 520px); }
.public-menu-page .welcome-card.has-promo { max-width: 880px; }
.public-menu-page .welcome-dismiss { align-items: center; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.58); border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.18); color: var(--brand); cursor: pointer; display: inline-flex; font-size: 1.3rem; font-weight: 900; height: 42px; justify-content: center; position: absolute; right: 12px; top: 12px; width: 42px; z-index: 3; }
.public-menu-page .welcome-card header { align-items: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, var(--accent))); color: var(--on-brand); display: grid; gap: 14px; grid-template-columns: 72px minmax(0, 1fr); padding: 24px; }
.public-menu-page .welcome-business-logo { align-items: center; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.45); border-radius: 16px; box-shadow: 0 12px 28px rgba(0,0,0,.16); color: var(--brand); display: inline-flex; font: 900 1.65rem 'Sora', sans-serif; height: 72px; justify-content: center; object-fit: contain; padding: 8px; width: 72px; }
.public-menu-page .welcome-card h2 { font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.08; margin: 0; }
.public-menu-page .welcome-card-body { display: grid; gap: 14px; padding: 20px; }
.public-menu-page .welcome-card-body > p { color: var(--muted); line-height: 1.55; margin: 0; }
.public-menu-page .welcome-promo { background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--brand-rgb), .08)); border: 1px solid rgba(var(--accent-rgb), .24); border-radius: 16px; display: grid; gap: 12px; grid-template-columns: minmax(160px, .85fr) minmax(0, 1fr); overflow: hidden; padding: 10px; }
.public-menu-page .welcome-promo img { aspect-ratio: 4 / 3; border-radius: 12px; display: block; height: 100%; object-fit: cover; width: 100%; }
.public-menu-page .welcome-promo-copy { align-content: center; display: grid; gap: 8px; padding: 6px; }
.public-menu-page .welcome-promo-copy small { color: var(--brand); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.public-menu-page .welcome-promo-copy h3 { color: var(--ink); font-size: clamp(1.15rem, 3vw, 1.55rem); margin: 0; }
.public-menu-page .welcome-promo-copy p { color: var(--muted); font-size: .92rem; margin: 0; }
.public-menu-page .welcome-promo-prices { align-items: end; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.public-menu-page .welcome-promo-old-price { color: var(--muted); font-size: .92rem; font-weight: 900; }
.public-menu-page .welcome-promo-old-price s { text-decoration-color: #d7352a; text-decoration-thickness: 3px; }
.public-menu-page .welcome-promo-new-price { background: linear-gradient(135deg, var(--accent), #ffd36b); border: 2px solid rgba(255,255,255,.82); border-radius: 14px; box-shadow: 0 12px 28px rgba(var(--accent-rgb), .26); color: #17232a; display: inline-grid; gap: 1px; min-width: 150px; padding: 10px 13px; }
.public-menu-page .welcome-promo-new-price span { font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.public-menu-page .welcome-promo-new-price strong { font: 900 clamp(1.35rem, 4vw, 2.2rem) 'Sora', sans-serif; line-height: 1; }
.public-menu-page #deliveryAmount[readonly] {
	background: color-mix(in srgb, var(--brand) 7%, #fff);
	border-color: rgba(var(--brand-rgb), .28);
	color: var(--brand);
	cursor: not-allowed;
	font-weight: 900;
	opacity: 1;
}
.public-menu-page .delivery-location-step { border: 2px solid rgba(var(--brand-rgb), .42); box-shadow: 0 12px 28px rgba(var(--brand-rgb), .1); }
.public-menu-page .delivery-step-heading { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.public-menu-page .delivery-step-heading .delivery-section-title { margin-bottom: 0; }
.public-menu-page .delivery-step-number { align-items: center; background: var(--brand); border-radius: 50%; color: var(--on-brand); display: inline-flex; flex: 0 0 28px; font-size: .82rem; height: 28px; justify-content: center; width: 28px; }
.public-menu-page .delivery-step-help { color: var(--muted); line-height: 1.45; margin: 10px 0 12px; }
.public-menu-page .delivery-step-flag { align-items: center; border: 1px solid currentColor; border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-size: .76rem; font-weight: 900; gap: 6px; padding: 6px 9px; }
.public-menu-page .delivery-step-flag.is-pending { background: #fff7db; color: #8a5b00; }
.public-menu-page .delivery-step-flag.is-loading,
.public-menu-page .delivery-step-flag.is-quoting { background: #eaf3ff; color: #0759a6; }
.public-menu-page .delivery-step-flag.is-confirmed { background: #e5f8ec; color: #08783d; }
.public-menu-page .delivery-step-flag.is-denied,
.public-menu-page .delivery-step-flag.is-error,
.public-menu-page .delivery-step-flag.is-outside { background: #ffebeb; color: #b42318; }
.public-menu-page .delivery-step-flag.is-loading i,
.public-menu-page .delivery-step-flag.is-quoting i { animation: delivery-location-spin 1s linear infinite; }
.public-menu-page .delivery-location-action { min-height: 48px; width: 100%; }
.public-menu-page .delivery-location-status { background: color-mix(in srgb, var(--brand) 6%, #fff); border-left: 4px solid var(--brand); border-radius: 6px; color: var(--ink); font-size: .86rem; font-weight: 700; line-height: 1.45; margin-top: 10px; padding: 9px 11px; }
.public-menu-page .delivery-lock-notice { align-items: center; background: #fff7db; border: 1px solid #e4bd55; border-radius: 8px; color: #6c4900; display: flex; font-weight: 800; gap: 9px; margin-bottom: 12px; padding: 10px 12px; }
.public-menu-page .delivery-locked-steps.is-locked > .delivery-section,
.public-menu-page .delivery-locked-steps.is-locked > .delivery-actions { filter: grayscale(.8); opacity: .42; pointer-events: none; user-select: none; }
@keyframes delivery-location-spin { to { transform: rotate(360deg); } }
.public-menu-page .empty {
	background: var(--surface);
	border: 1px solid var(--public-border);
	border-radius: 20px;
	color: var(--muted);
	box-shadow: var(--public-shadow);
	padding: 24px;
	text-align: center;
}
@media (max-width: 900px) {
	.public-menu-page .menu-toolbar {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.public-menu-page .delivery-step-heading { align-items: flex-start; flex-direction: column; }
	.public-menu-page .hero {
		border-radius: 20px;
		min-height: 390px;
	}
	.public-menu-page .hero-top {
		align-items: flex-start;
		flex-direction: column;
	}
	.public-menu-page .public-brand-logo {
		height: 52px;
	}
	.public-menu-page .menu-toolbar {
		border-radius: 14px;
		padding: 10px;
	}
	.public-menu-page .menu-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.public-menu-page .menu-body {
		padding: 12px;
	}
	.public-menu-page .menu-card h3 {
		font-size: .95rem;
	}
	.public-menu-page .menu-card p {
		font-size: .8rem;
	}
	.public-menu-page .menu-card-actions {
		grid-template-columns: 1fr;
	}
	.public-menu-page .menu-order-btn { width: 100%; }
	.public-menu-page .menu-order-btn,
	.public-menu-page .menu-price {
		font-size: .82rem;
		min-height: 38px;
		padding: 8px;
	}
	.public-menu-page .welcome-card header { grid-template-columns: 58px minmax(0, 1fr); padding: 18px; }
	.public-menu-page .welcome-business-logo { border-radius: 13px; height: 58px; width: 58px; }
	.public-menu-page .welcome-promo { grid-template-columns: 1fr; }
}

/* Business identity and public contact */
.branding-preview {
	background: #f4f7fa;
	border: 1px solid #dce3ec;
	border-radius: 8px;
	display: block;
	height: 110px;
	object-fit: contain;
	padding: 8px;
	width: 100%;
}
.branding-preview-square { margin-inline: auto; max-width: 150px; }
.branding-preview-icon { height: 80px; max-width: 100px; }
.branding-palette-preview {
	border: 1px solid #dce3ec;
	border-radius: 8px;
	display: grid;
	gap: 6px;
	padding: 14px;
}
.branding-palette-preview span {
	border-radius: 6px;
	display: inline-block;
	font-weight: 700;
	padding: 8px 12px;
	width: max-content;
}
.promo-banner-preview { aspect-ratio: 1600 / 360; background: #edf3fb; border: 1px solid #d9e2f0; border-radius: 8px; max-width: 520px; object-fit: cover; width: 100%; }
.promo-list-thumbnail { border: 1px solid #d9e2f0; border-radius: 8px; height: 63px; object-fit: cover; width: 120px; }
.command-print-page {
	color: #000;
	font-family: Arial, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	page: command-ticket;
}
.command-print-page .command { max-width: 380px; width: 100%; }
.command-print-page .command-title { font-size: 28px; font-weight: 900; margin: 0 0 12px; text-align: center; }
.command-print-page .command-order { border: 4px solid #000; font-size: 30px; font-weight: 900; margin-bottom: 12px; padding: 7px; text-align: center; }
.command-print-page .command-service { border: 3px solid #000; font-size: 27px; font-weight: 900; margin-bottom: 12px; padding: 6px; text-align: center; }
.command-print-page .command-list { list-style: none; margin: 0; padding: 0; }
.command-print-page .command-item { border-bottom: 2px solid #000; padding: 10px 0; }
.command-print-page .command-product { font-size: 24px; font-weight: 900; }
.command-print-page .command-detail { font-size: 21px; font-weight: 700; margin-top: 5px; overflow-wrap: anywhere; }
@page command-ticket { margin: 5mm; }
@media print {
	.command-print-page { padding: 0; }
	.command-print-page .command { max-width: none; }
}
.business-contact {
	align-items: center;
	background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
	border: 1px solid var(--public-border, rgba(15, 138, 123, .18));
	border-radius: 8px;
	display: flex;
	gap: 22px;
	justify-content: space-between;
	margin: 28px 0 96px;
	padding: 20px;
}
.business-contact h2 { font: 700 1.15rem 'Sora', sans-serif; margin: 0 0 5px; }
.business-contact p { color: var(--muted, #5f7080); margin: 0; }
.business-contact-links { display: flex; flex-wrap: wrap; gap: 9px; }
.business-contact-links a {
	align-items: center;
	background: var(--brand);
	border: 1px solid var(--brand);
	border-radius: 7px;
	color: var(--on-brand, #fff);
	display: inline-flex;
	font-weight: 800;
	gap: 7px;
	min-height: 42px;
	padding: 9px 13px;
	text-decoration: none;
}
.business-contact-links a:hover,
.business-contact-links a:focus-visible { filter: brightness(.92); outline: 3px solid rgba(var(--brand-rgb), .2); outline-offset: 2px; }
.public-floating-social { display: flex; flex-direction: column; gap: 8px; position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 1200; }
.public-floating-social a { align-items: center; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: 0 8px 22px rgba(15,32,44,.24); color: #fff; display: inline-flex; font-size: 1.25rem; height: 46px; justify-content: center; text-decoration: none; transition: transform .18s ease, filter .18s ease; width: 46px; }
.public-floating-social a:hover, .public-floating-social a:focus-visible { filter: brightness(1.08); outline: 3px solid rgba(255,255,255,.92); outline-offset: 2px; transform: translateX(-4px); }
.public-floating-social .social-whatsapp { background: #25d366; }
.public-floating-social .social-instagram { background: #d62976; }
.public-floating-social .social-facebook { background: #1877f2; }
.public-floating-social .social-tiktok { background: #111; }
.delivery-order-number { background: color-mix(in srgb, var(--brand) 9%, #fff); border: 2px solid var(--brand); border-radius: 8px; display: grid; gap: 3px; margin-top: 16px; padding: 14px; }
.delivery-order-number span, .delivery-order-number small { color: var(--muted); font-weight: 700; }
.delivery-order-number strong { color: var(--brand); font: 900 2.35rem 'Sora', sans-serif; }
.delivery-whatsapp-link { align-items: center; background: #25d366; border-radius: 8px; color: #fff; display: flex; gap: 10px; justify-content: center; margin-top: 10px; padding: 11px 14px; text-align: left; text-decoration: none; }
.delivery-whatsapp-link i { font-size: 1.5rem; }
.delivery-whatsapp-link span { font-weight: 900; }
.delivery-whatsapp-link small { color: inherit; font-weight: 700; }
@media (max-width: 600px) {
	.public-floating-social { bottom: 82px; flex-direction: row; left: 12px; right: auto; top: auto; transform: none; }
	.public-floating-social a:hover, .public-floating-social a:focus-visible { transform: translateY(-3px); }
}

/* QR table menu */
.table-menu-page {
	--brand: #0f8a7b;
	--accent: #ef8354;
	--bg: #f3eee6;
	--ink: #1f2a30;
	--on-brand: #fff;
	--brand-rgb: 15, 138, 123;
	--accent-rgb: 239, 131, 84;
	--surface: rgba(255, 255, 255, .94);
	--muted: #60717a;
	--line: rgba(var(--brand-rgb), .17);
	background: var(--bg);
	color: var(--ink);
	font-family: 'Manrope', sans-serif;
	margin: 0;
}
.public-menu-page.table-menu-page .table-menu-shell { padding-bottom: 132px; }
.table-menu-hero {
	background-color: var(--brand);
	background-image: linear-gradient(120deg, rgba(0,0,0,.28), transparent 62%), repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 16px);
	border-radius: 8px;
	box-shadow: 0 20px 48px rgba(15, 32, 44, .18);
	color: var(--on-brand);
	margin-bottom: 18px;
	min-height: 290px;
	overflow: hidden;
	padding: 30px;
}
.table-menu-hero-top { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.table-menu-brand { align-items: center; display: flex; gap: 12px; }
.table-menu-logo { background: rgba(255,255,255,.95); border-radius: 7px; display: none; height: 58px; max-width: 210px; object-fit: contain; padding: 6px; width: auto; }
.table-menu-business { font: 700 1rem 'Sora', sans-serif; }
.table-menu-table-badge { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 800; padding: 9px 14px; }
.table-menu-hero-copy { margin-top: 58px; max-width: 700px; }
.table-menu-hero-copy h1 { font: 800 2.8rem 'Sora', sans-serif; letter-spacing: 0; margin: 0 0 10px; }
.table-menu-hero-copy p { font-size: 1.05rem; margin: 0; max-width: 620px; }
.table-menu-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.table-menu-stats span { background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-weight: 700; padding: 8px 11px; }
.table-menu-toolbar {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(15, 32, 44, .1);
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
	margin-bottom: 26px;
	padding: 12px;
	position: sticky;
	top: 10px;
	z-index: 5;
}
.table-menu-search { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 2px 10px; grid-template-columns: auto 1fr; min-height: 48px; padding: 6px 13px; }
.table-menu-search-label { align-items: center; color: var(--muted); display: inline-flex; font-size: .78rem; font-weight: 800; gap: 5px; grid-row: 1 / 3; }
.table-menu-search input { background: transparent; border: 0; color: var(--ink); font: inherit; min-width: 0; outline: 0; width: 100%; }
.table-menu-categories { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.table-menu-category-button { background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); cursor: pointer; font: 700 .9rem 'Manrope', sans-serif; padding: 9px 13px; white-space: nowrap; }
.table-menu-category-button.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.table-menu-category { margin-bottom: 34px; }
.table-menu-category-head { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; }
.table-menu-category-head h2 { font: 700 1.45rem 'Sora', sans-serif; margin: 0; }
.table-menu-category-head span { color: var(--muted); font-weight: 700; }
.table-menu-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.table-menu-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 38px rgba(15,32,44,.1); display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; }
.table-menu-card-media { background: color-mix(in srgb, var(--brand) 9%, #fff); height: 190px; position: relative; }
.table-menu-card-media img { height: 100%; object-fit: cover; width: 100%; }
.table-menu-card-media img.is-placeholder { object-fit: contain; padding: 42px; }
.table-menu-card-media span { background: rgba(255,255,255,.94); border-radius: 999px; color: var(--ink); font-size: .78rem; font-weight: 800; left: 10px; padding: 6px 9px; position: absolute; top: 10px; }
.table-menu-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; padding: 15px; }
.table-menu-card-body h3 { font: 700 1.05rem 'Sora', sans-serif; margin: 0; overflow-wrap: anywhere; }
.table-menu-card-body p { color: var(--muted); margin: 0; min-height: 2.8em; }
.table-menu-price { color: var(--brand); font-size: .88rem; font-weight: 900; line-height: 1.25; margin-top: auto; min-width: 0; overflow-wrap: anywhere; text-align: center; }
.table-menu-quantity { align-items: center; display: grid; gap: 8px; grid-template-columns: 42px minmax(0, 1fr) 42px; min-width: 0; width: 100%; }
.table-menu-quantity button { align-items: center; background: var(--brand); border: 0; border-radius: 7px; color: var(--on-brand); cursor: pointer; display: inline-flex; height: 42px; justify-content: center; }
.table-menu-quantity input { background: #fff; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font: 800 1rem 'Manrope', sans-serif; height: 42px; min-width: 0; text-align: center; width: 100%; }
.table-menu-extras { background: color-mix(in srgb, var(--brand) 5%, #fff); border: 1px solid var(--line); border-radius: 7px; padding: 9px; }
.table-menu-extras summary { cursor: pointer; font-weight: 800; }
.table-menu-extras-list { display: grid; gap: 8px; margin-top: 10px; }
.table-menu-extras-list label { align-items: flex-start; display: flex; gap: 8px; }
.table-menu-notice { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); padding: 16px; }
.table-order-dock { align-items: center; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 8px; bottom: 12px; box-shadow: 0 18px 46px rgba(15,32,44,.24); display: flex; gap: 14px; justify-content: space-between; left: 50%; max-width: 760px; padding: 11px 12px 11px 18px; position: fixed; transform: translateX(-50%); width: calc(100% - 28px); z-index: 20; }
.table-order-total small { color: var(--muted); display: block; }
.table-order-total strong { color: var(--ink); font-size: 1.15rem; }
.table-order-submit { align-items: center; background: var(--brand, #0f8a7b); border: 0; border-radius: 7px; color: var(--on-brand, #fff); cursor: pointer; display: inline-flex; font: 800 .95rem 'Manrope', sans-serif; gap: 8px; min-height: 46px; padding: 10px 16px; }
.table-order-submit:disabled { cursor: not-allowed; opacity: .58; }
.table-result-dialog { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); max-width: 430px; padding: 24px; width: calc(100% - 32px); }
.table-result-dialog::backdrop { background: rgba(10,25,40,.7); }
.table-result-dialog h2 { font: 700 1.3rem 'Sora', sans-serif; margin-top: 0; }
.table-result-dialog button { background: var(--brand); border: 0; border-radius: 7px; color: var(--on-brand); font-weight: 800; min-height: 44px; width: 100%; }
.table-menu-page [hidden] { display: none !important; }
.table-menu-page button:focus-visible,
.table-menu-page input:focus-visible,
.table-menu-page summary:focus-visible,
.table-menu-page a:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .25); outline-offset: 2px; }
@media (max-width: 720px) {
	.business-contact { align-items: flex-start; flex-direction: column; margin-bottom: 104px; }
	.public-menu-page.table-menu-page .table-menu-shell { padding-bottom: 126px; }
	.table-menu-hero { min-height: 330px; padding: 20px; }
	.table-menu-hero-top { flex-direction: column; }
	.table-menu-hero-copy { margin-top: 44px; }
	.table-menu-hero-copy h1 { font-size: 2.15rem; }
	.table-menu-toolbar { grid-template-columns: 1fr; top: 6px; }
	.table-menu-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.table-menu-card-media { height: 135px; }
	.table-menu-card-body { padding: 11px; }
	.table-menu-card-body p { font-size: .8rem; min-height: 0; }
	.table-menu-quantity { grid-template-columns: 38px 1fr 38px; }
	.table-menu-quantity button,
	.table-menu-quantity input { height: 38px; }
	.table-order-dock { gap: 8px; padding-left: 12px; }
	.table-order-submit span { display: none; }
}
@media (max-width: 420px) {
	.public-menu-page .menu-grid,
	.public-menu-page.table-menu-page .table-menu-grid { grid-template-columns: 1fr; }
	.table-menu-card-media { height: 180px; }
}

/* Printable operational manuals */
.manual-document { background: #e8efed; color: #17252a; font-family: Georgia, 'Times New Roman', serif; line-height: 1.55; margin: 0; }
.manual-document main { background: #fff; box-shadow: 0 12px 36px rgba(23,37,42,.15); margin: 28px auto; max-width: 900px; padding: 48px 56px; }
.manual-document h1,
.manual-document h2,
.manual-document h3 { color: #0f766e; font-family: 'Segoe UI', sans-serif; letter-spacing: 0; }
.manual-document h1 { font-size: 2.35rem; margin: 0 0 12px; }
.manual-document h2 { border-bottom: 1px solid #b8d5d0; font-size: 1.35rem; margin-top: 30px; padding-bottom: 6px; }
.manual-document h3 { font-size: 1rem; margin-bottom: 4px; }
.manual-cover { border-bottom: 4px solid #ef8354; margin-bottom: 30px; padding-bottom: 28px; }
.manual-kicker { color: #b44e24; font-family: 'Segoe UI', sans-serif; font-weight: 700; text-transform: uppercase; }
.manual-formula { background: #edf7f5; border-left: 4px solid #0f766e; margin: 14px 0; padding: 12px 16px; }
.manual-document table { border-collapse: collapse; margin: 14px 0; width: 100%; }
.manual-document th,
.manual-document td { border: 1px solid #b8c9c6; padding: 8px; text-align: left; }
.manual-document th { background: #dcefeb; font-family: 'Segoe UI', sans-serif; }
.manual-document code { background: #edf2f1; border-radius: 3px; padding: 2px 4px; }
.manual-checklist { list-style: none; padding-left: 0; }
.manual-checklist li::before { content: '□'; margin-right: 8px; }
@media print {
	.manual-document { background: #fff; font-size: 10.5pt; }
	.manual-document main { box-shadow: none; margin: 0; max-width: none; padding: 0; }
	.manual-document h1 { font-size: 24pt; }
	.manual-document h2 { break-after: avoid; font-size: 15pt; }
	.manual-document h3,
	.manual-document table,
	.manual-formula { break-inside: avoid; }
}
@media (max-width: 640px) {
	.manual-document main { margin: 0; padding: 24px 18px; }
	.manual-document h1 { font-size: 1.8rem; }
}



/* Cashdesk module */
.cashdesk-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 42%, #ebf3ff 100%);
}

.cashdesk-order-dialog {
  max-width: 980px;
}

.cashdesk-order-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .6rem;
  max-height: 52vh;
  overflow-y: auto;
}

.cashdesk-order-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 72px minmax(150px, 1fr);
  align-items: center;
  gap: .6rem;
  padding: .65rem;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  background: #fff;
}

.cashdesk-order-product small {
  display: block;
  color: #6c757d;
  font-size: .72rem;
  margin-top: .15rem;
}

@media (max-width: 720px) {
  .cashdesk-order-product {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .cashdesk-order-product .cashdesk-product-special {
    grid-column: 1 / -1;
  }
}

.cashdesk-product-special,
.mesero-product-special {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.cashdesk-product-special summary,
.mesero-product-special summary {
  color: #0f5e68;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  list-style: none;
}

.cashdesk-product-special summary::-webkit-details-marker,
.mesero-product-special summary::-webkit-details-marker {
  display: none;
}

.cashdesk-product-special summary::before,
.mesero-product-special summary::before {
  content: '+';
  display: inline-block;
  font-size: 1rem;
  margin-right: .35rem;
}

.cashdesk-product-special[open] summary::before,
.mesero-product-special[open] summary::before {
  content: '-';
}

.cashdesk-toolbar {
  border-bottom: 1px solid #dbe4f2;
  padding-bottom: 10px;
}

.cashdesk-controls {
  justify-content: flex-end;
}

.cashdesk-layout-select {
  min-width: 185px;
}

.cashdesk-table-requests { background:#fff;border:1px solid #d9e1ef;border-radius:10px;padding:12px; }
.cashdesk-table-request { border-top:1px solid #e4eaf3;padding:10px 0; }.cashdesk-table-request:first-child { border-top:0; }

#cashdeskLastUpdated {
  background: linear-gradient(135deg, #39537d 0%, #2c4164 100%) !important;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cashdesk-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}

.kpi-card {
  border: 1px solid #d8e2f2;
  background: linear-gradient(150deg, #ffffff 0%, #f3f7ff 100%);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px -12px rgba(18, 54, 112, 0.55);
}

.kpi-label {
  display: block;
  color: #5b6883;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kpi-card strong {
  color: #1b2e53;
  font-size: 1.2rem;
  line-height: 1.2;
}

.cashdesk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #4f5d75;
  font-size: 0.85rem;
}

.cashdesk-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.dot-libre { background: #6c757d; }
.dot-comiendo { background: #198754; }
.dot-cuenta { background: #0d6efd; }
.dot-alerta { background: #ffc107; }
.dot-critica { background: #dc3545; }

.cashdesk-layout-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
}

.cashdesk-board {
  position: relative;
  width: 100%;
  min-height: 520px;
  border: 1px dashed #d5dbe6;
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 15%, #ffffff 0%, #f8fbff 40%, #eef3fb 100%);
  overflow: auto;
}

.cashdesk-board::before {
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  background-image: linear-gradient(rgba(255,255,255,0) 23px, rgba(76, 103, 148, 0.08) 24px), linear-gradient(90deg, rgba(255,255,255,0) 23px, rgba(76, 103, 148, 0.08) 24px);
  background-size: 24px 24px;
  opacity: 0.35;
}

.cashdesk-sidepanel {
  border: 1px solid #d9e1ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cashdesk-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 40, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1080;
  padding: 12px;
}

.cashdesk-modal.is-open {
  display: flex;
}

.cashdesk-modal-dialog {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid #d8e2f1;
  border-radius: 14px;
  box-shadow: 0 24px 48px -18px rgba(3, 17, 45, 0.55);
  overflow: hidden;
}

.cashdesk-payment-dialog {
  max-height: calc(100vh - 24px);
  width: min(720px, 100%);
}

.cashdesk-payment-dialog .cashdesk-modal-body {
  max-height: calc(100vh - 142px);
  overflow-y: auto;
}

.cashdesk-modal-header,
.cashdesk-modal-footer {
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cashdesk-modal-footer {
  border-bottom: 0;
  border-top: 1px solid #e8edf7;
  justify-content: flex-end;
  gap: 8px;
}

.cashdesk-modal-body {
  padding: 12px;
}

.cashdesk-delivery-access {
  bottom: clamp(14px, 3vw, 26px);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  z-index: 1070;
}

.cashdesk-delivery-open-btn {
  align-items: center;
  border-radius: 999px;
  box-shadow: 0 18px 42px -20px rgba(18, 35, 63, .72);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 42px;
  pointer-events: auto;
}

.badge.badge-danger.cashdesk-delivery-badge {
  align-items: center;
  background: #dc3545;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .75rem;
  justify-content: center;
  min-width: 24px;
  padding: 4px 8px;
}

.cashdesk-delivery-access.has-pending .cashdesk-delivery-badge {
  animation: cashdeskDeliveryPulse 1s ease-in-out infinite;
}

@keyframes cashdeskDeliveryPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, .48);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(220, 53, 69, 0);
    transform: scale(1.08);
  }
}

.cashdesk-delivery-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  width: min(720px, 100%);
}

.cashdesk-delivery-dialog .cashdesk-modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#cashdeskDeliveryList {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 540px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: #9fb1cb #edf3fb;
  scrollbar-width: thin;
}

#cashdeskDeliveryList::-webkit-scrollbar {
  width: 8px;
}

#cashdeskDeliveryList::-webkit-scrollbar-track {
  background: #edf3fb;
  border-radius: 999px;
}

#cashdeskDeliveryList::-webkit-scrollbar-thumb {
  background: #9fb1cb;
  border-radius: 999px;
}

.cashdesk-delivery-item {
  border: 1px solid #dce6f5 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px -22px rgba(18, 35, 63, .55);
  margin-bottom: 0 !important;
}

.cashdesk-delivery-products {
  border: 1px solid #dfe9f6;
  border-radius: 10px;
  display: grid;
  gap: 7px;
  padding: 8px;
  background: #fff;
}

.cashdesk-delivery-products > div {
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 7px;
  border-bottom: 1px dashed #d9e2ef;
}

.cashdesk-delivery-products > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cashdesk-delivery-products span {
  color: #0f766e;
  font-weight: 800;
}

.cashdesk-delivery-products small {
  color: #52627a;
  grid-column: 1 / -1;
}

.cashdesk-order-detail-dialog {
  max-height: calc(100vh - 32px);
  width: min(760px, 100%);
}

#cashdeskOrderDetailModal .cashdesk-modal-header h4 {
  font-size: 1.5rem;
}

#cashdeskOrderDetailContent {
  font-size: 1.3125rem;
  line-height: 1.5;
}

.cashdesk-order-detail-list {
  display: grid;
  gap: 9px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
  padding-right: 6px;
}

.cashdesk-order-detail-item {
  background: #fff;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.cashdesk-order-detail-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.cashdesk-order-detail-line strong:last-child {
  color: #0f766e;
  white-space: nowrap;
}

.cashdesk-order-detail-item small {
  color: #52627a;
  line-height: 1.4;
}

@media (max-width: 576px) {
  #cashdeskOrderDetailContent {
    overflow-wrap: anywhere;
  }

  .cashdesk-order-detail-line strong:last-child {
    width: 100%;
  }
}

.cashdesk-table {
  position: absolute;
  width: 150px;
  min-height: 104px;
  border-radius: 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 20px -10px rgba(20, 37, 63, 0.45);
  padding: 10px 10px 8px;
  cursor: default;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cashdesk-table:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -12px rgba(20, 37, 63, 0.65);
}

.cashdesk-table.selected {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 26px -10px rgba(5, 24, 57, 0.8);
}

.cashdesk-table.draggable {
  cursor: grab;
}

.cashdesk-table.dragging {
  opacity: 0.7;
  transform: scale(1.03);
}

.cashdesk-table .mesa-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cashdesk-table .mesa-num {
  font-size: 1.05rem;
  font-weight: 700;
}

.cashdesk-table .mesa-state,
.cashdesk-table .mesa-time {
  display: block;
  font-size: 0.78rem;
  opacity: 0.95;
}

.cashdesk-table .mesa-alert-btn {
  margin-top: 6px;
  width: 100%;
  font-size: 0.75rem;
  border: 0;
  border-radius: 8px;
  padding: 5px 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
}

.mesa-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px dashed #dce3f0;
  padding: 6px 0;
}

.mesa-detail-row span:first-child {
  color: #54617b;
}

.mesa-detail-row span:last-child {
  color: #162746;
  font-weight: 600;
}

.cashdesk-payment-history {
  border-top: 1px dashed #d7deeb;
  padding-top: 10px;
}

.cashdesk-payment-consumption {
  background: #f8fbff;
  border: 1px solid #cbd8ec;
  border-radius: 8px;
  padding: 10px;
}

.cashdesk-payment-consumption-head {
  border-bottom: 1px solid #dbe4f2;
  margin-bottom: 6px;
  padding-bottom: 7px;
}

.cashdesk-payment-items {
  max-height: 220px;
  overflow-y: auto;
}

.cashdesk-payment-item {
  align-items: center;
  border-bottom: 1px dashed #d7deeb;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 2px;
}

.cashdesk-payment-item small {
  color: #5f6f8a;
  display: block;
}

.cashdesk-payment-item > div:last-child {
  text-align: right;
}

.cashdesk-payment-consumption-total {
  align-items: center;
  display: flex;
  font-size: .95rem;
  justify-content: space-between;
  padding: 9px 2px 2px;
}

.cashdesk-audit-panel {
  border: 1px solid #d9e1ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px;
}

.cashdesk-audit-table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6985;
}

.cashdesk-audit-table tbody td {
  font-size: 0.82rem;
  color: #1f3155;
  vertical-align: top;
}

.audit-cell-title {
  display: block;
  font-weight: 700;
  color: #182a4d;
}

.audit-cell-sub {
  display: block;
  color: #5f6f8a;
  font-size: 0.74rem;
}

.audit-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.audit-pill.mesa-libre { background: #edf0f5; color: #4e5a70; }
.audit-pill.mesa-servicio { background: #d8f0e2; color: #13613c; }
.audit-pill.kitchen-pending { background: #fff3cd; color: #73510a; }
.audit-pill.kitchen-progress { background: #dbeafe; color: #1e3f87; }
.audit-pill.kitchen-ready { background: #d1fae5; color: #0f5d45; }
.audit-pill.kitchen-served { background: #ede9fe; color: #4c1d95; }
.audit-pill.kitchen-paid { background: #d1fae5; color: #0b5345; }
.audit-pill.kitchen-cancelled { background: #fee2e2; color: #991b1b; }

.payment-history-row {
  border: 1px solid #dde6f5;
  border-radius: 8px;
  padding: 6px 8px;
  background: #f7faff;
  margin-bottom: 6px;
}

.payment-history-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  color: #203256;
}

.payment-history-meta {
  color: #5c6a84;
  font-size: 0.76rem;
}

.mesa-libre { background: #6c757d; }
.mesa-ocupada { background: linear-gradient(145deg, #087e8b, #034f58); }
.mesa-comiendo { background: #198754; }
.mesa-cuenta { background: #0d6efd; }
.mesa-alerta { background: #f0ad00; color: #212529; }
.mesa-alerta .mesa-alert-btn { color: #212529; background: rgba(255,255,255,0.45); }
.mesa-critica { background: #dc3545; animation: mesaBlink 1s infinite; }

.cashdesk-table.mesa-con-pedido {
  border: 3px solid #ffe066;
  box-shadow: 0 0 0 3px rgba(255, 224, 102, .28), 0 16px 28px -10px rgba(20, 37, 63, .8);
  min-height: 128px;
}

.cashdesk-table .mesa-order-badge {
  align-items: center;
  background: #fff3bf;
  border-radius: 6px;
  color: #533f03;
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  gap: .35rem;
  justify-content: center;
  margin-top: 7px;
  padding: 4px 6px;
  text-transform: uppercase;
}

@keyframes mesaBlink {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

@media (max-width: 992px) {
  .cashdesk-toolbar {
    align-items: stretch !important;
  }

  .cashdesk-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .cashdesk-layout-select {
    min-width: 0;
    width: 100%;
  }

  .cashdesk-controls .btn,
  .cashdesk-controls .badge,
  .cashdesk-controls .form-select {
    flex: 1 1 170px;
  }

  .cashdesk-kpis {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .cashdesk-layout-grid {
    grid-template-columns: 1fr;
  }

  .cashdesk-sidepanel {
    order: -1;
  }
}

@media (min-width: 768px) and (max-width: 1280px) {
  .cashdesk-controls .btn,
  .cashdesk-controls .form-select {
    min-height: 44px;
  }

  .cashdesk-board {
    min-height: 620px;
  }

  .cashdesk-table {
    min-height: 114px;
    width: 164px;
  }

  .cashdesk-table .mesa-num {
    font-size: 1.14rem;
  }

  .cashdesk-table .mesa-state,
  .cashdesk-table .mesa-time {
    font-size: 0.82rem;
  }

  .cashdesk-modal-dialog {
    width: min(560px, 96vw);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cashdesk-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cashdesk-layout-grid {
    grid-template-columns: 1fr;
  }

  .cashdesk-sidepanel {
    order: -1;
  }
}

@media (max-width: 768px) {
  .cashdesk-controls {
    display: grid !important;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }

  .cashdesk-controls #cashdeskLastUpdated,
  .cashdesk-controls .cashdesk-layout-select {
    grid-column: 1 / -1;
  }

  .cashdesk-controls .btn {
    width: 100%;
  }

  .cashdesk-board {
    min-height: 460px;
  }

  .cashdesk-table {
    width: 136px;
  }

  .cashdesk-modal-footer {
    flex-direction: column-reverse;
  }

  .cashdesk-modal-footer .btn {
    width: 100%;
  }
}


/* Mesero module */
.mesero-stage-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 42%, #ebf3ff 100%);
}

.mesero-toolbar {
  border-bottom: 1px solid #dbe4f2;
  padding-bottom: .7rem;
}

.mesero-board-mirror {
  position: relative;
  min-height: 580px;
  border: 1px dashed #d0d7de;
  border-radius: 16px;
  background:
    radial-gradient(circle at 25% 15%, #ffffff 0%, #f8fbff 40%, #eef3fb 100%);
  overflow: auto;
}

.mesero-board-mirror::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0) 23px, rgba(76,103,148,0.08) 24px), linear-gradient(90deg, rgba(255,255,255,0) 23px, rgba(76,103,148,0.08) 24px);
  background-size: 24px 24px;
  opacity: .35;
}

.mesero-table-card {
  position: absolute;
  width: 172px;
  min-height: 134px;
  border-radius: 16px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: 0 14px 28px -12px rgba(20,37,63,.55);
  padding: .8rem;
  display: grid;
  gap: .35rem;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mesero-table-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px rgba(20,37,63,.7);
}

.mesero-table-card small {
  opacity: .92;
}

.mesero-table-card .mesa-title {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  align-items: center;
}

.mesero-table-card .mesa-title strong {
  font-size: 1.05rem;
}

.mesero-table-card .mesa-sub {
  font-size: .78rem;
  opacity: .94;
}

.mesero-state-libre { background: linear-gradient(165deg, #6c757d, #4d5964); }
.mesero-state-ocupada { background: linear-gradient(165deg, #087e8b, #05636d); }
.mesero-state-esperando_comida { background: linear-gradient(165deg, #f0ad00, #d58b00); color: #1c252d; }
.mesero-state-comiendo { background: linear-gradient(165deg, #198754, #13653f); }
.mesero-state-pidiendo_cuenta { background: linear-gradient(165deg, #0d6efd, #0b57c5); }

.mesero-order-modal .modal-content,
.mesero-order-modal {
  border-radius: 18px;
}

.mesero-menu-grid {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .85rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 62vh;
  padding: .15rem 2px 2px;
}

.mesero-menu-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
}

.mesero-category-card {
  display: grid;
  grid-template-rows: minmax(0, 7fr) minmax(0, 3fr);
  height: clamp(190px, 24vw, 270px);
  padding: 5px;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(8,126,139,.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15,45,55,.08);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}

.mesero-category-card:hover,
.mesero-category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15,45,55,.15);
}

.mesero-category-media-frame {
  align-items: center;
  background: #eef4f7;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.mesero-category-media {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center center;
}

.mesero-category-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: 5px;
}

.mesero-category-copy strong {
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.mesero-product-card {
  align-self: start;
  border: 1px solid rgba(8,126,139,.16);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15,45,55,.07);
  display: grid;
  grid-template-rows: minmax(100px, min(25vh, 190px)) repeat(3, minmax(48px, auto));
  height: auto;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mesero-product-card:hover {
  border-color: rgba(8,126,139,.42);
  box-shadow: 0 10px 22px rgba(15,45,55,.13);
  transform: translateY(-2px);
}

.mesero-product-media-row {
  align-items: center;
  background: #eef4f7;
  display: flex;
  justify-content: center;
  max-height: 25vh;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.mesero-product-media {
  display: block;
  height: 100%;
  max-height: 25vh;
  max-width: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.mesero-product-info-row {
  align-items: center;
  border-top: 1px solid rgba(8,126,139,.1);
  display: flex;
  gap: .5rem;
  justify-content: space-between;
  margin: 0;
  min-width: 0;
  padding: 5px;
  width: 100%;
}

.mesero-product-summary-count {
  background: #f8fafc;
  font-weight: 700;
  pointer-events: none;
  text-align: center;
}

.mesero-product-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(8,126,139,.2), 0 6px 16px rgba(15,45,55,.07);
  outline: 2px solid #087e8b;
  outline-offset: 2px;
}

.mesero-product-dialog-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
}

.mesero-product-dialog-image {
  aspect-ratio: 4 / 3;
  background: #eef4f7;
  border-radius: 8px;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.mesero-product-dialog-stepper {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
}

.mesero-product-dialog-options summary {
  cursor: pointer;
  font-weight: 700;
}

.mesero-product-header {
  justify-content: center;
}

.mesero-product-header h6 {
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: .86rem;
  line-height: 1.2;
  max-height: 2.4em;
  text-align: center;
  width: 100%;
}

.mesero-product-selected-row label,
.mesero-product-stock-row span {
  color: #5b6a75;
  font-size: .74rem;
  font-weight: 700;
  margin: 0;
}

.mesero-product-selected-row .mesero-product-summary-count {
  flex: 0 0 54px;
  width: 54px;
}

.mesero-product-stock-row strong {
  font-size: .8rem;
  text-align: right;
}

.mesero-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.mesero-product-stepper {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
}

.mesero-product-stepper .btn {
  padding: .28rem;
}

.mesero-product-stepper input {
  text-align: center;
}

@media (min-width: 768px) and (max-width: 1280px) {
  .mesero-board-mirror {
    min-height: 680px;
  }

  .mesero-table-card {
    width: 184px;
    min-height: 144px;
  }

  #meseroOrderModal .modal-dialog {
    max-width: 960px;
  }

  .mesero-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-height: none;
    overflow: visible;
  }

  .mesero-product-card {
    grid-template-rows: minmax(100px, min(25vh, 175px)) repeat(3, minmax(50px, auto));
  }
}

@media (max-width: 767px) {
  .mesero-board-mirror {
    min-height: 500px;
  }

  .mesero-table-card {
    width: 148px;
    min-height: 122px;
    padding: .7rem;
  }

  .mesero-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    max-height: none;
    overflow: visible;
  }

  .mesero-product-card {
    grid-template-rows: minmax(90px, min(25vh, 160px)) repeat(3, minmax(48px, auto));
  }

  .mesero-category-card {
    height: clamp(170px, 38vw, 230px);
  }

  .mesero-product-dialog-layout {
    grid-template-columns: 1fr;
  }

  .mesero-order-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .mesero-order-footer .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .mesero-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mesero-menu-toolbar {
    align-items: flex-start;
  }

  .mesero-category-card {
    height: clamp(155px, 52vw, 210px);
  }

  .mesero-product-card {
    grid-template-rows: minmax(80px, min(25vh, 140px)) repeat(3, minmax(52px, auto));
  }
}


/* Public menu module */
@scope (.public-menu-page) {
    :scope {
      --surface: rgba(255,255,255,.9);
      --muted: #5f7080;
      --border: rgba(var(--brand-rgb), .16);
      --shadow: 0 18px 45px rgba(15, 32, 44, .12);
    }
    * { box-sizing: border-box; }
    :scope {
      margin: 0;
      font-family: 'Manrope', sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 8% 7%, rgba(var(--accent-rgb),.22), transparent 24%),
        radial-gradient(circle at 95% 3%, rgba(var(--brand-rgb),.2), transparent 26%),
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, #fff) 0%, var(--bg) 100%);
    }
    .shell { max-width: 1240px; margin: 0 auto; padding: 20px; }
    .hero {
      border: 1px solid var(--border);
      border-radius: 26px;
      box-shadow: var(--shadow);
      min-height: 250px;
      overflow: hidden;
      padding: clamp(18px, 4vw, 34px);
      position: relative;
      margin-bottom: 18px;
      background-image: linear-gradient(145deg, rgba(11, 41, 48, .62), rgba(24, 34, 62, .45)), var(--public-menu-hero-image);
      background-size: cover;
      background-position: center;
    }
    .hero::after { content: ""; position: absolute; inset: auto -10% -38% 32%; height: 160px; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 68%); pointer-events: none; }
    h1, h2, h3 { font-family: 'Sora', sans-serif; margin: 0; }
    .hero h1,
    .hero p { color: #ffffff; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
    .hero-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }
    .hero-top p { margin: 0; color: var(--muted); }
    .hero-copy { max-width: 680px; position: relative; z-index: 1; }
    .hero-copy h1 { font-size: clamp(2rem, 7vw, 4.4rem); line-height: .98; letter-spacing: 0; margin-top: clamp(18px, 5vw, 54px); }
    .hero-copy p { font-size: clamp(.98rem, 2.4vw, 1.16rem); line-height: 1.55; margin: 12px 0 0; max-width: 560px; }
    .hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
    .hero-stats span { backdrop-filter: blur(10px); background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; display: inline-flex; gap: 7px; align-items: center; font-weight: 800; padding: 8px 12px; }
    .public-brand-lockup { align-items: center; display: flex; gap: 14px; min-width: 0; }
    .public-brand-logo { background: rgba(255,255,255,.92); border-radius: 8px; display: block; height: 64px; max-width: min(260px,55vw); object-fit: contain; padding: 7px; width: auto; }
    .promo-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(var(--brand-rgb),.25);
      color: var(--brand);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 0.86rem;
      font-weight: 700;
      background: rgba(255,255,255,.8);
      cursor: pointer;
    }

    .menu-toolbar {
      align-items: center;
      background: rgba(255,255,255,.78);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 14px 34px rgba(15, 32, 44, .09);
      display: grid;
      gap: 12px;
      grid-template-columns: minmax(220px, 1fr) auto;
      margin: 0 0 22px;
      padding: 12px;
      position: sticky;
      top: 10px;
      z-index: 50;
      backdrop-filter: blur(16px);
    }
    .menu-search { align-items: center; background: #fff; border: 1px solid rgba(var(--brand-rgb), .2); border-radius: 12px; display: flex; gap: 9px; min-height: 48px; padding: 0 13px; }
    .menu-search i { color: var(--brand); }
    .menu-search input { border: 0; color: var(--ink); font: 800 .95rem 'Manrope', sans-serif; min-width: 0; outline: 0; width: 100%; }
    .category-strip { display: flex; gap: 8px; max-width: min(620px, 48vw); overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
    .category-chip { border: 1px solid rgba(var(--brand-rgb), .18); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; flex: 0 0 auto; font-weight: 800; padding: 9px 12px; }
    .category-chip.is-active { background: var(--brand); color: var(--on-brand); }

    .promo-modal {
      position: fixed;
      inset: 0;
      background: rgba(10, 25, 40, .68);
      z-index: 1200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .promo-modal.is-open { display: flex; }
    .promo-modal-card {
      width: min(1020px, 96vw);
      max-height: 94vh;
      overflow: auto;
      border-radius: 18px;
      background: #ffffff;
      border: 1px solid rgba(var(--brand-rgb), .24);
      box-shadow: 0 24px 52px rgba(7, 21, 35, .45);
    }
    .promo-modal-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px 0;
    }
    .promo-modal-head p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: .9rem;
    }
    .promo-close {
      border: 0;
      background: #eff4fb;
      color: #16345b;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      font-size: 1.05rem;
      cursor: pointer;
    }
    .promo-modal-media {
      width: 100%;
      aspect-ratio: 1200 / 628;
      object-fit: cover;
      display: block;
      background: #dee8ed;
    }
    .promo-modal-copy {
      padding: 10px 14px 14px;
      display: grid;
      gap: 5px;
    }
    .promo-modal-copy small { color: var(--muted); }

    .menu-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 16px;
    }
    .menu-category { margin-bottom: 28px; scroll-margin-top: 94px; }
    .menu-category-head { align-items: end; display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
    .menu-category-head h2 { font-size: 1.2rem; }
    .menu-category-head span { color: var(--muted); font-size: .8rem; font-weight: 800; }
    .menu-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .menu-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(15, 32, 44, .16); }
    .menu-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #dde8ea; }
    .menu-body { padding: 14px; display: grid; gap: 9px; }
    .menu-card-top { position: relative; }
    .menu-card-badge { background: rgba(255,255,255,.92); border: 1px solid rgba(var(--brand-rgb), .18); border-radius: 999px; color: var(--brand); font-size: .72rem; font-weight: 900; left: 10px; max-width: calc(100% - 20px); overflow: hidden; padding: 6px 9px; position: absolute; text-overflow: ellipsis; top: 10px; white-space: nowrap; }
    .menu-body p { margin: 0; color: var(--muted); font-size: .92rem; }
    .menu-card h3 { font-size: 1.05rem; line-height: 1.2; }
    .menu-card-actions { align-items: center; display: grid; gap: 10px; grid-template-columns: 1fr auto; }
    .menu-price { background: color-mix(in srgb, var(--brand) 10%, #fff); border: 1px solid rgba(var(--brand-rgb), .14); border-radius: 10px; color: var(--brand); font-weight: 900; padding: 9px 10px; }
    .menu-order-btn { align-items: center; border: 0; border-radius: 10px; display: inline-flex; gap: 7px; justify-content: center; min-height: 42px; padding: 10px 12px; background: var(--brand); color: var(--on-brand); font-weight: 900; cursor: pointer; }
    .menu-cart-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 1100; display: inline-flex; align-items: center; gap: 9px; border: 2px solid rgba(255,255,255,.82); border-radius: 999px; padding: 14px 19px; background: linear-gradient(135deg, var(--accent), #ffd36b); color: #17232a; font-weight: 800; box-shadow: 0 14px 34px rgba(15,32,44,.28); cursor: pointer; }
    .menu-cart-launcher.has-items { animation: cartAttention 1.8s ease-in-out infinite; }
    .menu-cart-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: #17232a; color: #fff; font-size: .82rem; line-height: 1; }
    .menu-cart-total { white-space: nowrap; }
    @keyframes cartAttention { 0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 14px 34px rgba(15,32,44,.28); } 45% { transform: translateY(-3px) scale(1.045); box-shadow: 0 18px 40px rgba(var(--accent-rgb),.42); } 60% { transform: translateY(0) scale(1); } }
    @media (prefers-reduced-motion: reduce) { .menu-cart-launcher.has-items { animation: none; } }
    .delivery-modal { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 14px; background: rgba(10,25,40,.72); }
    .delivery-modal.is-open { display: flex; }
    .delivery-card { width: min(760px, 96vw); max-height: 94vh; overflow: auto; border: 1px solid rgba(var(--brand-rgb), .16); border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
    .delivery-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; color: var(--on-brand); background: linear-gradient(135deg, var(--brand), #145d68); }
    .delivery-head h2 { margin: 0; font-size: 1.25rem; }
    .delivery-head p { margin: 5px 0 0; opacity: .82; font-size: .88rem; }
    .delivery-close { border: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); color: inherit; font-size: 1.25rem; cursor: pointer; }
    .delivery-body { padding: 20px 22px; }
    .delivery-section { margin-bottom: 18px; padding: 15px; border: 1px solid #e4ecee; border-radius: 16px; background: linear-gradient(145deg, #fff, #f7fbfa); }
    .delivery-section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 11px; color: var(--brand); font-size: .98rem; }
    .delivery-items { display: grid; gap: 10px; margin: 0; }
    .delivery-item { border: 1px solid #e5ecef; border-radius: 12px; display: grid; gap: 9px; padding: 11px; background: #fff; }
    .delivery-item-main { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto auto; }
    .delivery-item-name { min-width: 0; }
    .delivery-item-name strong { display: block; font-size: .94rem; line-height: 1.2; }
    .delivery-item-name small { color: var(--muted); display: block; margin-top: 2px; }
    .delivery-item-price { color: var(--brand); font-weight: 900; white-space: nowrap; }
    .delivery-item-options { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .delivery-item details { background: #f8fbfc; border: 1px solid #e1e9ed; border-radius: 10px; padding: 8px 10px; }
    .delivery-item summary { cursor: pointer; font-size: .82rem; font-weight: 900; }
    .delivery-item input, .delivery-item select { margin-top: 7px; border: 1px solid #d7e1e4; border-radius: 8px; padding: 7px 8px; font: inherit; width: 100%; }
    .delivery-item select[multiple] { min-height: 92px; }
    .delivery-choice-list { display: grid; gap: 7px; margin-top: 8px; }
    .delivery-choice-list label { align-items: flex-start; display: flex; gap: 7px; font-size: .82rem; font-weight: 700; line-height: 1.35; }
    .delivery-choice-list input { flex: 0 0 auto; margin-top: 2px; width: auto; }
    .delivery-item button { border: 0; background: #eef2f4; border-radius: 999px; padding: 6px 10px; cursor: pointer; font-weight: 800; }
    .delivery-selected-summary { color: var(--muted); display: block; font-size: .8rem; line-height: 1.45; }
    .delivery-selected-summary.has-items { color: var(--brand); font-weight: 800; }
    .delivery-item-summaries { display: grid; gap: 5px; }
    .delivery-total-reference { background: linear-gradient(135deg, rgba(var(--brand-rgb), .08), rgba(var(--accent-rgb), .08)); border: 1px solid rgba(var(--brand-rgb), .16); border-radius: 12px; display: grid; gap: 6px; margin-top: 12px; padding: 12px; }
    .delivery-total-reference .line { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
    .delivery-total-reference span { color: var(--muted); font-size: .82rem; font-weight: 800; }
    .delivery-total-reference strong { color: var(--brand); font-size: 1.05rem; }
    .delivery-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
    .delivery-actions button { border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: 700; }
    .delivery-primary { background: var(--brand); color: var(--on-brand); }
    .delivery-secondary { background: #e7edf0; color: #26343a; }
    .delivery-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .delivery-form-grid .full { grid-column: 1 / -1; }
    .delivery-form-grid label { display: grid; gap: 4px; font-weight: 700; font-size: .86rem; }
    .delivery-form-grid input, .delivery-form-grid textarea, .delivery-form-grid select { width: 100%; border: 1px solid #cbd5dc; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fbfdff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
    .delivery-form-grid input:focus, .delivery-form-grid textarea:focus, .delivery-form-grid select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); transform: translateY(-1px); }
    .delivery-secondary, .delivery-primary, .menu-order-btn, .menu-cart-launcher { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
    .delivery-secondary:hover, .delivery-primary:hover, .menu-order-btn:hover, .menu-cart-launcher:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 10px 24px rgba(15,32,44,.16); }
    #deliveryLocationBtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 2px solid var(--brand); background: linear-gradient(135deg, var(--brand), #0f6d68); color: #fff; font-weight: 800; min-height: 48px; box-shadow: 0 8px 20px rgba(var(--brand-rgb), .24); }
    #deliveryLocationBtn:hover { color: #fff; filter: brightness(1.08); }
    #deliveryLocationBtn.is-confirmed { background: #1e7a45; border-color: #1e7a45; }
    #deliveryLocationStatus { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 6px; color: var(--muted); background: #f5f7f7; }
    #deliveryLocationStatus.is-confirmed { color: #155d35; background: #e6f5eb; font-weight: 700; }
    #deliveryBankInfo { border: 1px solid rgba(var(--brand-rgb), .22); border-radius: 12px; padding: 12px 14px; background: linear-gradient(135deg, #f4fbfa, #fff8ed); color: var(--ink); box-shadow: 0 8px 20px rgba(15,32,44,.08); }
    #deliveryBankInfoList { display: grid; gap: 7px; margin-top: 8px; }
    #deliveryBankInfoList div { align-items: center; background: #fff; border: 1px solid rgba(var(--brand-rgb), .16); border-radius: 10px; display: grid; gap: 6px; grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr); padding: 8px 10px; }
    #deliveryBankInfoList .payment-bank-detail-card { align-items: stretch; display: grid; gap: 7px; grid-template-columns: 1fr; }
    #deliveryBankInfoList .payment-bank-detail-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
    #deliveryBankInfoList .payment-bank-detail-card h4 { color: var(--brand); font: 900 .92rem 'Sora', sans-serif; margin: 0; }
    #deliveryBankInfoList .payment-bank-detail-card dl { display: grid; gap: 5px; margin: 0; }
    #deliveryBankInfoList .payment-bank-detail-card dl div { border: 0; border-radius: 0; display: grid; grid-template-columns: minmax(95px, .4fr) minmax(0, 1fr); padding: 0; }
    #deliveryBankInfoList span { color: var(--muted); font-size: .78rem; font-weight: 900; }
    #deliveryBankInfoList strong { color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
    .feedback-modal { position: fixed; inset: 0; z-index: 1500; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10,25,40,.72); }
    .feedback-modal.is-open { display: flex; }
    .feedback-card { width: min(440px, 94vw); border-radius: 20px; padding: 24px; text-align: center; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.32); }
    .feedback-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; font-size: 1.6rem; }
    .feedback-success .feedback-icon { background: #dcf7e9; color: #16834b; }
    .feedback-error .feedback-icon { background: #ffebeb; color: #c0392b; }
    .feedback-card h2 { margin: 0 0 8px; font-size: 1.18rem; }
    .feedback-card p { margin: 0; color: var(--muted); line-height: 1.55; }
    .feedback-close { margin-top: 18px; border: 0; border-radius: 9px; padding: 10px 18px; background: var(--brand); color: var(--on-brand); font-weight: 800; cursor: pointer; }
    .welcome-modal { position: fixed; inset: 0; z-index: 1600; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(10,25,40,.72); backdrop-filter: blur(7px); }
    .welcome-modal.is-open { display: flex; }
    .welcome-card { background: #fff; border: 1px solid rgba(var(--brand-rgb), .2); border-radius: 22px; box-shadow: 0 26px 70px rgba(0,0,0,.34); max-height: min(92vh, 760px); max-width: 520px; overflow: auto; position: relative; width: min(100%, 520px); }
    .welcome-card.has-promo { max-width: 880px; }
    .welcome-dismiss { align-items: center; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.58); border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.18); color: var(--brand); cursor: pointer; display: inline-flex; font-size: 1.3rem; font-weight: 900; height: 42px; justify-content: center; position: absolute; right: 12px; top: 12px; width: 42px; z-index: 3; }
    .welcome-dismiss:focus-visible { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .22), 0 10px 24px rgba(0,0,0,.18); outline: 0; }
    .welcome-card header { align-items: center; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, var(--accent))); color: var(--on-brand); display: grid; gap: 14px; grid-template-columns: 72px minmax(0, 1fr); padding: 24px; }
    .welcome-business-logo { align-items: center; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.45); border-radius: 16px; box-shadow: 0 12px 28px rgba(0,0,0,.16); color: var(--brand); display: inline-flex; font: 900 1.65rem 'Sora', sans-serif; height: 72px; justify-content: center; object-fit: contain; padding: 8px; width: 72px; }
    .welcome-business-logo--text { text-transform: uppercase; }
    .welcome-card h2 { font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.08; }
    .welcome-card p { color: var(--muted); line-height: 1.55; margin: 0; }
    .welcome-card-body { display: grid; gap: 14px; padding: 20px; }
    .welcome-promo { background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--brand-rgb), .08)); border: 1px solid rgba(var(--accent-rgb), .24); border-radius: 16px; display: grid; gap: 12px; grid-template-columns: minmax(160px, .85fr) minmax(0, 1fr); overflow: hidden; padding: 10px; }
    .welcome-promo img { aspect-ratio: 4 / 3; border-radius: 12px; display: block; height: 100%; object-fit: cover; width: 100%; }
    .welcome-promo-copy { align-content: center; display: grid; gap: 8px; padding: 6px; }
    .welcome-promo-copy small { color: var(--brand); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
    .welcome-promo-copy h3 { color: var(--ink); font-size: clamp(1.15rem, 3vw, 1.55rem); }
    .welcome-promo-copy p { font-size: .92rem; }
    .welcome-promo-prices { align-items: end; display: flex; flex-wrap: wrap; gap: 8px 12px; }
    .welcome-promo-old-price { color: var(--muted); font-size: .92rem; font-weight: 900; position: relative; }
    .welcome-promo-old-price s { text-decoration-thickness: 3px; text-decoration-color: #d7352a; }
    .welcome-promo-new-price { background: linear-gradient(135deg, var(--accent), #ffd36b); border: 2px solid rgba(255,255,255,.82); border-radius: 14px; box-shadow: 0 12px 28px rgba(var(--accent-rgb), .26); color: #17232a; display: inline-grid; gap: 1px; min-width: 150px; padding: 10px 13px; }
    .welcome-promo-new-price span { font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
    .welcome-promo-new-price strong { font: 900 clamp(1.35rem, 4vw, 2.2rem) 'Sora', sans-serif; line-height: 1; }
    .welcome-steps { display: grid; gap: 10px; margin: 0; padding: 0; }
    .welcome-steps li { align-items: center; background: #f7fbfa; border: 1px solid #e3ecef; border-radius: 12px; display: grid; gap: 10px; grid-template-columns: 34px 1fr; list-style: none; padding: 10px; }
    .welcome-steps i { align-items: center; background: rgba(var(--brand-rgb), .12); border-radius: 10px; color: var(--brand); display: inline-flex; height: 34px; justify-content: center; width: 34px; }
    .welcome-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
    .welcome-primary { border: 0; border-radius: 999px; background: var(--brand); color: var(--on-brand); cursor: pointer; font-weight: 900; padding: 12px 18px; }
    .menu-empty-filter { display: none; }
    .menu-empty-filter.is-visible { display: block; margin-bottom: 80px; }
    @media (max-width: 700px) { .menu-toolbar { grid-template-columns: 1fr; top: 6px; } .category-strip { max-width: 100%; } .hero-copy h1 { margin-top: 24px; } .welcome-card header { grid-template-columns: 58px minmax(0, 1fr); padding: 18px; } .welcome-business-logo { border-radius: 13px; height: 58px; width: 58px; } .welcome-promo { grid-template-columns: 1fr; } }
    @media (max-width: 600px) { .delivery-form-grid { grid-template-columns: 1fr; } .delivery-form-grid .full { grid-column: auto; } .delivery-item-main { grid-template-columns: 1fr auto; } .delivery-item-main button { grid-column: 1 / -1; } .delivery-item-options { grid-template-columns: 1fr; } .menu-cart-launcher { left: 12px; right: 12px; bottom: 12px; justify-content: center; } .menu-card-actions { grid-template-columns: 1fr; } }
    details { background: rgba(255,255,255,.75); border-radius: 12px; padding: 8px 10px; border: 1px solid rgba(var(--brand-rgb),.12); }
    summary { cursor: pointer; font-weight: 700; }
    .empty {
      background: var(--surface);
      border-radius: 20px;
      border: 1px solid var(--border);
      padding: 24px;
      text-align: center;
      color: var(--muted);
    }
    @media (max-width: 768px) {
      .shell { padding: 14px; }
      .menu-grid { grid-template-columns: 1fr; }
    }
}
