:root {
  color-scheme: light;
  --bg: #f5f6f1;
  --surface: #ffffff;
  --surface-soft: #eef3e8;
  --ink: #20231f;
  --muted: #697064;
  --line: #dfe4da;
  --brand: #24745c;
  --brand-dark: #155946;
  --accent: #d94d2b;
  --warning: #b45309;
  --shadow: 0 10px 28px rgba(33, 38, 32, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

body.sheet-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.cart-toggle-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(33, 38, 32, 0.08);
}

.cart-toggle-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-toggle-button.is-pulsing {
  animation: cartPulse 420ms ease;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 5px;
  background: #e5271d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.cart-badge.is-bumping {
  animation: badgeBump 420ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions a,
.ghost-button,
.primary-button,
.danger-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 700;
}

.header-actions a,
.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.primary-button {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.danger-button {
  background: #fff2ed;
  border-color: #ffd1c2;
  color: #a9371d;
}

.customer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.page-shell,
.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  padding: 0;
}

.menu-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.menu-side-stack {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.menu-area,
.cart-area,
.editor-panel,
.table-panel {
  min-width: 0;
}

.cart-area,
.editor-panel,
.table-panel {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.editor-panel {
  position: sticky;
  top: 92px;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.42);
}

.admin-modal {
  position: fixed;
  top: clamp(36px, 6vh, 72px);
  left: 50%;
  z-index: 90;
  width: min(960px, calc(100% - 24px));
  max-height: min(88vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 20, 18, 0.24);
  transform: translateX(-50%);
}

.admin-modal[hidden],
.admin-modal-backdrop[hidden] {
  display: none !important;
}

.admin-modal.editor-panel {
  position: fixed;
  top: clamp(36px, 6vh, 72px);
}

.admin-modal .section-bar.compact {
  background: var(--surface);
}

.admin-modal .menu-form,
.admin-modal .category-form {
  max-height: calc(min(88vh, 760px) - 88px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-bar.compact {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.section-bar h1,
.section-bar h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.section-bar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.menu-list {
  display: grid;
  gap: 18px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--category-color, var(--brand));
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(33, 38, 32, 0.06);
}

.category-tab-chip span {
  font-size: 17px;
}

.category-tab-chip strong {
  font-size: 13px;
  white-space: nowrap;
}

.menu-category {
  display: grid;
  gap: 10px;
  scroll-margin-top: 88px;
}

.menu-category-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.menu-category-title.is-system {
  font-size: 24px;
  font-weight: 900;
}

.menu-category-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--category-color, var(--brand));
  background: #fff;
}

.menu-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}

.menu-category-grid.is-horizontal {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menu-category-grid.is-horizontal::-webkit-scrollbar {
  display: none;
}

.menu-category-grid.is-horizontal .menu-card {
  flex: 0 0 min(520px, 82vw);
  scroll-snap-align: start;
}

.menu-category-grid.is-recommendation {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

.recommendation-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.recommendation-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 0.94;
  border-radius: 18px;
  background: var(--surface-soft);
  box-shadow: 0 8px 18px rgba(33, 38, 32, 0.06);
}

.recommendation-visual .food-image,
.recommendation-visual .food-fallback {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.recommendation-visual .food-fallback {
  font-size: 28px;
}

.recommendation-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recommendation-content h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.recommendation-content .menu-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommendation-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 12px;
  background: #08a84f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.recommendation-visual .quantity-row {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  justify-content: center;
  min-height: 40px;
}

.recommendation-visual .quantity-row.is-zero {
  gap: 0;
}

.recommendation-visual .quantity-row.is-zero .minus-button,
.recommendation-visual .quantity-row.is-zero .qty-value {
  display: none;
}

.recommendation-visual .quantity-row .plus-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 10px 22px rgba(36, 116, 92, 0.24);
}

.recommendation-visual .quantity-row:not(.is-zero) {
  min-width: 112px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(36, 116, 92, 0.16);
}

.recommendation-visual .quantity-row:not(.is-zero) .plus-button,
.recommendation-visual .quantity-row .minus-button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 23px;
  line-height: 1;
  padding: 0;
}

.recommendation-visual .qty-value {
  color: var(--ink);
}

.menu-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 146px;
  padding: 16px 86px 16px 16px;
  background: var(--surface);
  border: 1px solid rgba(223, 228, 218, 0.28);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(33, 38, 32, 0.045);
}

.food-image,
.food-fallback {
  width: 120px;
  height: 112px;
  border-radius: 16px;
}

.food-image {
  object-fit: cover;
  background: var(--surface-soft);
}

.food-fallback {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 800;
}

.menu-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.menu-content h3,
.cart-item strong,
.order-card h2 {
  margin: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.menu-content h3 {
  font-size: 22px;
  font-weight: 800;
}

.price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.menu-description {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 1;
  border-radius: 8px;
  padding: 3px 8px;
  background: #fff6d8;
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
}

.menu-card.is-featured {
  padding-top: 22px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
}

.menu-card > .quantity-row {
  position: absolute;
  right: 16px;
  bottom: 16px;
  justify-content: center;
  width: auto;
  min-height: 40px;
}

.menu-card > .quantity-row.is-zero {
  gap: 0;
}

.menu-card > .quantity-row.is-zero .minus-button,
.menu-card > .quantity-row.is-zero .qty-value {
  display: none;
}

.menu-card > .quantity-row .plus-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  padding: 0;
  text-align: center;
  box-shadow: 0 10px 22px rgba(36, 116, 92, 0.24);
}

.menu-card > .quantity-row:not(.is-zero) {
  min-width: 142px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  padding: 6px 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(36, 116, 92, 0.12);
}

.menu-card > .quantity-row:not(.is-zero) .plus-button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 25px;
}

.menu-card > .quantity-row .minus-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  padding: 0;
  text-align: center;
}

.menu-card > .quantity-row .qty-value {
  min-width: 28px;
  font-size: 18px;
  color: var(--ink);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 220ms ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.cart-sheet {
  position: fixed;
  top: clamp(58px, 9vh, 92px);
  left: 50%;
  z-index: 70;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(560px, calc(100% - 24px));
  max-height: min(84vh, 680px);
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-50%) translateY(calc(-10px + var(--sheet-drag, 0px))) scaleY(0.96);
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.72, 0.22, 1);
}

.cart-sheet.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(var(--sheet-drag, 0px)) scaleY(1);
}

.cart-sheet-handle {
  justify-self: center;
  width: 42px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--line);
}

.cart-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.cart-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  margin: 0 auto;
  padding: 18px 52px 0 16px;
  border-bottom: 1px solid var(--line);
}

.cart-tab-button {
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.cart-tab-button.is-active {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.cart-tab-panel {
  width: 100%;
  margin: 0 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.cart-count-line {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-list {
  display: grid;
  gap: 10px;
  padding: 14px 0;
}

.empty-state {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.cart-item small {
  display: block;
  color: var(--muted);
}

.cart-flyer {
  position: fixed;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 10px 22px rgba(33, 38, 32, 0.18);
  will-change: transform, opacity;
}

.cart-flyer img,
.cart-flyer .food-fallback {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.cart-flyer img {
  object-fit: cover;
}

.cart-footer {
  display: grid;
  gap: 12px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.message {
  min-height: 22px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.ordered-list {
  display: grid;
  gap: 10px;
}

.ordered-order-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.ordered-order-card.has-delete {
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 10px;
}

.ordered-order-content {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.ordered-order-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ordered-order-head span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.ordered-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: end;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid #ffd1c2;
  border-radius: 8px;
  background: #fff2ed;
  color: #a9371d;
}

.ordered-delete-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ordered-items {
  display: grid;
  gap: 8px;
}

.ordered-item-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.ordered-item-row b {
  color: var(--accent);
}

.ordered-item-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ordered-item-info span {
  overflow-wrap: anywhere;
}

.ordered-item-info small {
  color: var(--muted);
}

.compact-empty {
  padding: 12px;
  font-size: 14px;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.order-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.order-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-items li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  font-size: 18px;
}

.order-items b {
  color: var(--accent);
}

.menu-form {
  display: grid;
  gap: 18px;
  padding: 18px 24px 12px;
}

.form-block-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  font-weight: 800;
}

.menu-form label,
.form-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.form-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.form-label-row b {
  color: var(--accent);
}

.field-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #5f6b66;
  font-size: 15px;
  line-height: 1;
}

.menu-form small,
.form-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.form-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.menu-form input[type='text'],
.menu-form input[type='number'],
.menu-form input[type='url'],
.menu-form input[type='file'],
.menu-form select,
.menu-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
}

.menu-form textarea {
  min-height: 86px;
  resize: vertical;
}

.counter-field {
  position: relative;
  display: block;
}

.counter-field input,
.counter-field textarea {
  padding-right: 72px;
}

.counter-field small {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.textarea-counter-field small {
  bottom: 10px;
}

.price-input-field {
  position: relative;
  display: block;
}

.price-input-field input {
  padding-right: 74px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.price-input-field input::-webkit-outer-spin-button,
.price-input-field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.price-input-field > span {
  position: absolute;
  right: 14px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 124px;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop > span:not(.upload-icon) {
  padding: 0 10px;
  font-size: 13px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
}

.upload-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.display-options-field {
  position: relative;
}

.check-select {
  position: relative;
}

.check-select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-align: left;
}

.check-select-toggle.has-value {
  color: var(--brand-dark);
  font-weight: 700;
}

.check-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(33, 38, 32, 0.14);
}

.check-select-row {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px !important;
  min-height: 36px;
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.check-select-row:hover {
  background: var(--surface-soft);
}

.check-select-row input {
  width: 18px;
  height: 18px;
}

.menu-form-divider {
  height: 1px;
  margin: 6px 0 0;
  background: var(--line);
}

.status-grid {
  align-items: start;
}

.form-section-group {
  display: grid;
  gap: 12px;
}

.form-section-group h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 16px;
  line-height: 1.2;
}

.status-toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.toggle-switch {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c7d1cc;
  transition: background 160ms ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(33, 38, 32, 0.18);
  transition: transform 160ms ease;
}

.status-toggle-control.is-on {
  color: var(--brand-dark);
}

.status-toggle-control.is-on .toggle-switch {
  background: var(--brand);
}

.status-toggle-control.is-on .toggle-switch::after {
  transform: translateX(18px);
}

.menu-modal-actions {
  grid-template-columns: minmax(220px, 360px);
  justify-content: center;
  margin: 0 -24px;
  border-top: 1px solid var(--line);
  padding: 14px 24px 0;
}

.switch-field {
  align-content: start;
}

.switch-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-weight: 400;
}

.switch-row + .switch-row {
  margin-top: 8px;
}

.switch-row input,
.inline-check input {
  width: 18px;
  height: 18px;
}

.checkbox-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  color: var(--ink);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

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

.category-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 86px 92px 96px auto auto auto;
  align-items: end;
  gap: 14px;
  margin: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.category-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-form input[type='text'],
.category-form input[type='number'],
.category-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.category-form input[type='color'] {
  width: 78px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.category-visible-check {
  align-self: end;
  min-height: 42px;
}

.category-save-button,
.category-reset-button {
  align-self: end;
  min-height: 42px;
  padding-inline: 14px;
}

.category-modal .category-form {
  grid-template-columns: minmax(0, 1fr) 110px minmax(120px, 0.5fr);
}

.category-modal .category-name-field,
.category-modal .category-visible-check,
.category-modal .category-modal-actions,
.category-modal .category-message {
  grid-column: 1 / -1;
}

.category-modal-actions {
  margin-top: 4px;
}

.category-panel .table-wrap {
  margin: 0 18px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.category-table th,
.category-table td {
  padding: 14px 16px;
}

.category-table th {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.category-table th:first-child,
.category-table td:first-child {
  width: 58px;
  text-align: center;
}

.category-table th:nth-child(3),
.category-table td:nth-child(3) {
  width: 132px;
  text-align: center;
}

.category-table th:last-child,
.category-table td:last-child {
  width: 126px;
  min-width: 126px;
  text-align: center;
}

.category-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.category-icon-tile {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
}

.category-color-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.category-message {
  padding: 0 18px;
}

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}


.order-category-list {
  display: grid;
  gap: 8px;
  padding: 14px 18px 18px;
}

.order-category-card {
  display: grid;
  grid-template-columns: 32px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.order-category-icon {
  display: grid;
  place-items: center;
  font-size: 18px;
}

.order-category-card em {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.muted-line {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 400;
}

.admin-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.tab-button.is-active {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.is-active {
  display: block;
}

.toolbar-actions,
.order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-button {
  width: auto;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.order-actions {
  justify-content: stretch;
}

.order-actions button {
  flex: 1 1 120px;
}

.status-step-button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.status-step-button.is-active:disabled {
  opacity: 1;
}

.table-panel {
  overflow: hidden;
}

.table-panel .section-bar {
  padding: 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 4px 9px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.off {
  background: #fff6d8;
  color: var(--warning);
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.category-actions {
  justify-content: center;
  gap: 10px;
}

.icon-action-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.icon-action-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action-button:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.danger-icon-button {
  border-color: #ffd3c7;
  color: var(--danger);
}

.icon-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.table-actions {
  flex-wrap: wrap;
  min-width: 220px;
}

.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.qr-link-cell {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 360px;
}

.qr-link-cell a {
  color: var(--brand-dark);
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.qr-preview-set {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qr-preview-tile {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.qr-preview-label,
.order-url-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.qr-preview-label {
  white-space: nowrap;
}

.qr-preview {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.qr-preview img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.wifi-qr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.wifi-qr-text {
  display: grid;
  gap: 4px;
}

.wifi-qr-text strong {
  font-size: 18px;
}

.wifi-qr-text span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.wifi-main-qr {
  width: 88px;
  height: 88px;
}

.wifi-main-qr img {
  width: 82px;
  height: 82px;
}

.order-url-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.table-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.table-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.table-status-card {
  display: grid;
  gap: 8px;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.table-status-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(36, 116, 92, 0.12);
}

.table-status-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.table-status-title strong {
  overflow-wrap: anywhere;
}

.table-status-card small {
  color: var(--muted);
}

.status-pill.table-status-empty {
  background: #f1f3ee;
  color: var(--muted);
}

.status-pill.table-status-occupied {
  background: #e7f3ed;
  color: var(--brand-dark);
}

.status-pill.table-status-payment_requested {
  background: #fff6d8;
  color: var(--warning);
}

.status-pill.table-status-paid {
  background: #eef4ff;
  color: #1f4f80;
}

.bill-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  padding: 18px;
}

.bill-title-block h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bill-orders {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.bill-order-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.bill-order-card.has-delete {
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  column-gap: 10px;
}

.bill-order-content {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.bill-order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bill-order-head span {
  color: var(--muted);
  white-space: nowrap;
}

.bill-order-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.bill-remove-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: end;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid #ffd1c2;
  border-radius: 8px;
  background: #fff2ed;
  color: #a9371d;
}

.bill-remove-order-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bill-item-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bill-item-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.bill-item-list b {
  color: var(--accent);
}

.bill-item-list small {
  color: var(--muted);
  padding-right: 10px;
  white-space: nowrap;
}

.bill-summary {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg);
}

.bill-summary h3 {
  margin: 0;
  font-size: 18px;
}

.bill-print-info {
  display: grid;
  justify-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  text-align: left;
}

.bill-print-info strong {
  font-size: 18px;
  text-align: center;
}

.bill-print-info span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.bill-summary-list {
  display: grid;
  gap: 8px;
}

.bill-summary-row,
.bill-total-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.bill-summary-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bill-summary-row strong,
.bill-total-row strong {
  white-space: nowrap;
  text-align: right;
}

.bill-total-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 18px;
}

.bill-pay-button {
  width: 100%;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.bill-pay-button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.restaurant-preview {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.restaurant-preview strong {
  font-size: 24px;
  line-height: 1.2;
}

.restaurant-preview span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.print-area {
  display: none;
}

.print-qr-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  break-inside: avoid;
  min-height: 125mm;
  padding: 8mm;
  border: 1px dashed #111;
  background: #fff;
  color: #111;
  text-align: center;
}

.print-qr-card strong {
  font-size: 18px;
}

.print-qr-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.print-qr-card p {
  margin: 0;
  font-size: 12px;
}

.print-qr-card img {
  width: 34mm;
  height: 34mm;
  object-fit: contain;
}

.print-qr-footer {
  font-weight: 800;
}

.print-qr-card small {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.print-receipt-card {
  display: grid;
  gap: 6px;
  width: 80mm;
  padding: 8mm;
  background: #fff;
  color: #111;
  font-size: 12px;
}

.print-receipt-card h2 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 20px;
}

.print-receipt-card h3 {
  margin: 4px 0;
  font-size: 16px;
}

.print-receipt-card p {
  margin: 0;
}

.print-receipt-card hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #111;
}

.print-receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.print-receipt-row strong {
  white-space: nowrap;
}

.print-receipt-total {
  margin-top: 6px;
  border-top: 1px solid #111;
  padding-top: 6px;
  font-size: 16px;
}

@keyframes cartPulse {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.08);
  }
}

@keyframes badgeBump {
  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.24);
  }
}

@media (max-width: 860px) {
  .customer-shell,
  .admin-shell,
  .menu-admin-layout,
  .live-table-layout,
  .bill-content {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-page .app-header {
    align-items: center;
    flex-direction: row;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions a {
    flex: 1;
    text-align: center;
  }

  .customer-shell,
  .page-shell,
  .admin-shell {
    padding: 14px;
  }

  .menu-list,
  .menu-category-grid,
  .orders-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 124px;
    padding: 12px 52px 12px 12px;
    border-radius: 12px;
  }

  .menu-category-grid.is-horizontal .menu-card {
    flex-basis: 80vw;
  }

  .food-image,
  .food-fallback {
    width: 92px;
    height: 92px;
    border-radius: 10px;
  }

  .menu-content h3 {
    font-size: 19px;
  }

  .menu-description {
    font-size: 13px;
  }

  .price {
    font-size: 17px;
  }

  .menu-card > .quantity-row .plus-button {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .menu-card > .quantity-row {
    right: 12px;
    bottom: 12px;
    min-height: 32px;
  }

  .menu-card > .quantity-row:not(.is-zero) {
    min-width: 104px;
    padding: 4px 7px;
  }

  .menu-card > .quantity-row .minus-button {
    width: 28px;
    height: 28px;
    font-size: 23px;
  }

  .menu-card > .quantity-row:not(.is-zero) .plus-button {
    width: 28px;
    height: 28px;
    font-size: 23px;
  }

  .menu-card > .quantity-row .qty-value {
    min-width: 18px;
    font-size: 16px;
  }

  .recommendation-visual .quantity-row {
    right: 8px;
    bottom: 8px;
    min-height: 32px;
  }

  .recommendation-visual .quantity-row .plus-button {
    width: 32px;
    height: 32px;
    font-size: 23px;
  }

  .recommendation-visual .quantity-row:not(.is-zero) {
    min-width: 96px;
    padding: 4px 7px;
  }

  .recommendation-visual .quantity-row:not(.is-zero) .plus-button,
  .recommendation-visual .quantity-row .minus-button {
    width: 26px;
    height: 26px;
    font-size: 21px;
  }

  .section-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-bar .ghost-button {
    width: 100%;
  }

  .category-add-button {
    width: 100%;
  }

  .cart-area:not(.cart-sheet) {
    margin-bottom: 14px;
  }

  .cart-sheet {
    width: calc(100% - 20px);
    max-height: 86vh;
    margin-bottom: 0;
    border-radius: 12px;
  }

  .cart-tabs {
    padding-right: 48px;
  }

  .cart-tab-button {
    font-size: 13px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .row-actions {
    flex-direction: column;
  }

  .category-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .toolbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .compact-button,
  .toolbar-actions button {
    width: 100%;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .category-form {
    grid-template-columns: 1fr 86px;
    margin: 14px;
    padding: 14px;
  }

  .category-name-field,
  .category-form input[type='number'] {
    grid-column: 1 / -1;
  }

  .category-form .inline-check,
  .category-form button {
    grid-column: 1 / -1;
  }

  .category-panel .table-wrap {
    margin-left: 14px;
    margin-right: 14px;
  }

  .order-category-card {
    grid-template-columns: 28px 30px minmax(0, 1fr) auto;
  }

  .qr-link-cell {
    grid-template-columns: 1fr;
    min-width: 220px;
  }

  .wifi-qr-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .table-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
  }

  .bill-order-head {
    align-items: flex-start;
  }

  .bill-order-actions {
    justify-content: flex-end;
  }

  .bill-order-card.has-delete {
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
  }

  .ordered-order-head {
    gap: 8px;
  }

  .ordered-order-card.has-delete {
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
  }

  .ordered-order-head span {
    white-space: normal;
  }

  .ordered-item-row {
    grid-template-columns: 22px minmax(0, 1fr);
  }
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body.print-mode {
    background: #fff;
  }

  body.receipt-print-mode {
    background: #fff;
  }

  body.print-mode .app-header,
  body.receipt-print-mode .app-header,
  body.print-mode .admin-page > :not(.print-area) {
    display: none !important;
  }

  body.receipt-print-mode .admin-page > :not(.print-area) {
    display: none !important;
  }

  body.print-mode .admin-page {
    width: 100%;
    padding: 0;
  }

  body.receipt-print-mode .admin-page {
    width: 100%;
    padding: 0;
  }

  body.print-mode .print-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8mm;
  }

  body.receipt-print-mode .print-area {
    display: grid;
    justify-items: start;
  }
}
