:root {
  color-scheme: light;
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-strong: #eef5ef;
  --text: #1b1f1e;
  --muted: #68736d;
  --line: #d9e2da;
  --green: #15724f;
  --green-strong: #0f5f41;
  --coral: #d64c35;
  --amber: #c17a06;
  --black: #171717;
  --shadow: 0 18px 50px rgba(27, 31, 30, 0.08);
  --restaurant-hero-image: url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1600&q=80");
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  align-items: center;
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 42px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand-mark img {
  border-radius: inherit;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.brand span:not(.brand-mark) {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.mode-switch,
.category-tabs {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

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

.staff-session span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.customer-mode .mode-switch,
body.customer-mode .staff-session,
body.platform-mode .mode-switch,
body.platform-mode .staff-session {
  display: none;
}

body.customer-mode .topbar,
body.platform-mode .topbar {
  justify-content: flex-start;
}

.mode-button,
.category-tab,
.order-filter,
.cashier-filter,
.kitchen-filter {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
}

.mode-button.active,
.category-tab.active,
.order-filter.active,
.cashier-filter.active,
.kitchen-filter.active {
  background: var(--text);
  color: #fff;
}

main {
  min-height: calc(100vh - 68px);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.customer-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  margin: 0 auto;
  max-width: 1440px;
  padding: 24px clamp(16px, 4vw, 42px) 42px;
}

.order-flow,
.receiver-layout,
.admin-layout,
.platform-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.hero-band,
.receiver-hero,
.admin-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(20, 104, 75, 0.88), rgba(17, 31, 27, 0.56)),
    var(--restaurant-hero-image) center / cover;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 250px;
  padding: clamp(22px, 4vw, 38px);
}

.hero-copy {
  max-width: 660px;
}

.restaurant-hero-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  margin-bottom: 14px;
}

.restaurant-hero-brand img {
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.restaurant-hero-brand strong {
  display: block;
  font-size: 1rem;
}

.restaurant-hero-brand span {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}

.restaurant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.restaurant-links a {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  min-height: 36px;
  padding: 8px 12px;
}

.eyebrow,
.section-kicker {
  color: inherit;
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.receiver-hero h1,
.admin-hero h1 {
  font-size: 4.4rem;
  line-height: 0.94;
  margin: 10px 0 14px;
  max-width: 760px;
}

.hero-copy p {
  font-size: 1.04rem;
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}

.table-control {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: var(--text);
  min-width: 126px;
  padding: 12px;
}

.table-control label {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.table-control input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
  min-height: 40px;
  padding: 8px;
  width: 100%;
}

.account-strip,
.account-card,
.cart-panel,
.metric,
.receiver-toolbar,
.admin-panel,
.admin-item,
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.account-strip {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
}

.account-strip .section-kicker,
.section-heading .section-kicker,
.cart-heading .section-kicker,
.receiver-hero .section-kicker,
.admin-hero .section-kicker,
.metric span {
  color: var(--muted);
}

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

.guest-name-field {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 6px;
  margin-top: 12px;
  max-width: 320px;
}

.guest-name-field input {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  padding: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.wallet-button,
.quantity-button,
.status-button {
  align-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
}

.primary-button {
  background: var(--green);
  color: #fff;
}

.primary-button:hover {
  background: var(--green-strong);
}

.secondary-button {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--text);
}

.ghost-button {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.ghost-button.notification-ready {
  background: #e4f7eb;
  border-color: #b6dfc3;
  color: var(--green-strong);
}

.section-heading,
.cart-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.section-heading h2,
.cart-heading h2 {
  font-size: 1.35rem;
  margin: 4px 0 0;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-count {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 6px 0 0;
}

.menu-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-search {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
  max-width: 620px;
}

.menu-search input {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 11px 12px;
  width: 100%;
}

.quick-menu-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-heading.compact h3 {
  font-size: 1.05rem;
  margin: 3px 0 0;
}

.quick-menu-row {
  display: grid;
  gap: 12px;
  grid-auto-columns: minmax(190px, 230px);
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.mini-product-card {
  min-width: 0;
}

.mini-product-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 0 0 10px;
  text-align: left;
  width: 100%;
}

.mini-product-button img {
  aspect-ratio: 5 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.mini-product-button span,
.mini-product-button strong {
  display: block;
  padding: 0 10px;
}

.mini-product-button span {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.mini-product-button strong {
  color: var(--green);
}

.category-tabs {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-tab {
  min-height: 58px;
  padding: 7px 10px 7px 7px;
}

.category-tab small {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0.76;
}

.category-thumb {
  background: var(--surface-strong) center / cover;
  border-radius: 6px;
  display: inline-block;
  height: 42px;
  width: 46px;
}

.category-name {
  font-weight: 900;
}

.customer-status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.ordering-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.ordering-status.open {
  background: #e4f7eb;
  border-color: #b6dfc3;
}

.ordering-status.closed {
  background: #fff4d8;
  border-color: #ead28c;
}

.ordering-status span {
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.customer-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}

.customer-order-topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.customer-order-topline span,
.customer-order-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-order-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.status-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.status-step {
  align-items: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 78px;
  padding: 10px;
  text-align: center;
}

.status-step span {
  background: #d5ded7;
  border-radius: 999px;
  display: block;
  height: 12px;
  width: 12px;
}

.status-step.done {
  background: #edf7f0;
  color: var(--text);
}

.status-step.done span {
  background: var(--green);
}

.customer-order-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-order-summary strong {
  display: block;
}

.menu-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-strong);
  border: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.product-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-placeholder {
  align-items: center;
  background: var(--green);
  color: #fff;
  display: flex;
  font-size: 3rem;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.product-category {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.product-title-row h3 {
  font-size: 1rem;
  margin: 0;
}

.product-price {
  color: var(--green);
  display: flex;
  flex-direction: column;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.product-price small {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: line-through;
}

.promo-badge {
  align-self: flex-start;
  background: #fff2d5;
  border: 1px solid #f2c879;
  border-radius: 999px;
  color: #7a4d00;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
}

.promo-badge.small {
  display: inline-block;
  font-size: 0.72rem;
  margin-top: 5px;
  padding: 3px 7px;
}

.product-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
}

.comment-input {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 68px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.product-detail-modal {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(320px, 1fr);
  max-height: min(88vh, 760px);
  max-width: min(94vw, 920px);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.modal-close {
  background: rgba(255, 255, 255, 0.94);
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
}

.product-detail-media {
  background: var(--surface-strong);
  min-height: 100%;
}

.product-detail-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-detail-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 24px;
}

.product-detail-body h2 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.02;
  margin: 0;
}

.product-detail-body p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.product-detail-note {
  background: #fff8e8;
  border: 1px solid #f2d8a0;
  border-radius: 8px;
  color: #6f4b08 !important;
  font-size: 0.9rem;
  padding: 10px;
}

.quick-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-note {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 11px;
}

.quick-note.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.detail-comment {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
}

.detail-comment textarea {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 84px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.detail-helper {
  background: #edf7f0;
  border: 1px solid #c5e4ce;
  border-radius: 8px;
  color: var(--green-strong) !important;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px;
}

.detail-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  bottom: -24px;
  box-shadow: 0 -16px 28px rgba(27, 31, 30, 0.08);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: auto -24px -24px;
  padding: 14px 24px 18px;
  position: sticky;
  z-index: 3;
}

.detail-footer .primary-button {
  flex: 1;
}

.detail-quantity {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.cart-panel {
  align-self: start;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: min(760px, calc(100vh - 116px));
  overflow: hidden;
  padding: 16px;
  position: sticky;
  top: 92px;
}

.cart-toggle {
  display: none;
}

.cart-content {
  display: grid;
  gap: 12px;
  grid-template-rows: auto minmax(72px, 1fr) auto;
  height: calc(100vh - 148px);
  min-height: 0;
  padding-right: 4px;
}

.cart-heading-actions {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.cart-close {
  display: none;
}

.cart-count {
  align-items: center;
  background: var(--coral);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.cart-scroll-area {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-checkout-area {
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  padding-top: 10px;
}

.empty-state {
  align-items: center;
  background: #fbfcfa;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  text-align: center;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.cart-item-main {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cart-item h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.cart-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  margin: 0;
}

.quantity-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 10px;
}

.quantity-controls {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.quantity-button {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--text);
  height: 32px;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.line-price {
  font-weight: 900;
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.totals > div {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  justify-content: space-between;
}

.totals strong {
  color: var(--text);
  font-size: 0.94rem;
}

.totals .discount-row,
.confirm-summary .discount-row {
  color: #0f7a52;
}

.totals .discount-row strong,
.confirm-summary .discount-row strong {
  color: #0f7a52;
}

.grand-total {
  border-top: 1px solid var(--line);
  margin-top: 3px;
  padding-top: 6px;
}

.grand-total span {
  font-size: 1rem;
}

.grand-total strong {
  font-size: 1.08rem;
}

.payment-actions {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-actions .primary-button,
.payment-actions .wallet-button {
  font-size: 0.88rem;
  line-height: 1.1;
  min-height: 42px;
  padding: 8px 9px;
  text-align: center;
  white-space: normal;
}

.payment-actions .empty-state {
  min-height: 76px;
}

.wallet-button.google {
  background: #ffffff;
  border-color: #222;
  color: #222;
}

.wallet-button.apple {
  background: #111;
  color: #fff;
}

.wallet-button.sinpe {
  background: #eef7ff;
  border-color: #b7d6f0;
  color: #184c75;
}

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

.hidden {
  display: none !important;
}

.receiver-layout,
.admin-layout {
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px clamp(16px, 4vw, 42px) 42px;
}

.staff-gateway {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 48px auto;
  max-width: 560px;
  padding: 28px;
}

.staff-gateway h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
  margin: 0;
}

.staff-gateway p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.receiver-hero,
.admin-hero {
  background:
    linear-gradient(90deg, rgba(27, 31, 30, 0.9), rgba(27, 31, 30, 0.38)),
    url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=1600&q=80")
      center / cover;
  min-height: 210px;
}

.receiver-hero .secondary-button {
  background: rgba(255, 255, 255, 0.94);
}

.metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  border-radius: 8px;
  padding: 16px;
}

.metric span,
.metric strong {
  display: block;
}

.metric strong {
  font-size: 1.6rem;
  margin-top: 6px;
}

.receiver-toolbar {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.toolbar-note,
.handoff-pill {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.handoff-pill {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
}

.handoff-pill.cancelled {
  background: #fff2ef;
  border-color: #f3c6bc;
  color: #a42b1a;
}

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

.order-card {
  padding: 16px;
}

.account-card {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.account-card.ready {
  border-color: #9ed3b1;
}

.account-topline,
.account-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.account-topline h3 {
  font-size: 1.25rem;
  margin: 2px 0 0;
}

.account-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-summary div {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.account-summary span,
.account-order .order-topline span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-summary strong {
  display: block;
  margin-top: 3px;
}

.account-orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-order {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.payment-audit {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.history-row .payment-audit {
  max-width: 260px;
  text-align: right;
  text-transform: none;
}

.order-topline,
.order-meta,
.order-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.order-topline h3 {
  font-size: 1.05rem;
  margin: 0;
}

.status-pill {
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 6px 9px;
  text-transform: uppercase;
}

.status-pill.nueva {
  background: #fff0dc;
  color: #8b5200;
}

.status-pill.preparando {
  background: #e5f1ff;
  color: #155493;
}

.status-pill.lista {
  background: #e4f7eb;
  color: #116237;
}

.status-pill.entregada {
  background: #eef0ee;
  color: #606a63;
}

.status-pill.cancelada {
  background: #fff2ef;
  color: #a42b1a;
}

.status-pill:not(.nueva):not(.preparando):not(.lista):not(.entregada):not(.cancelada) {
  background: #f1f5f2;
  color: var(--text);
}

.payment-pill {
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 9px;
}

.payment-pill.paid {
  background: var(--green);
}

.payment-pill.pending {
  background: var(--amber);
}

.order-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0 14px;
}

.order-items {
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 14px 0;
}

.order-items li {
  line-height: 1.35;
}

.order-items span {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  margin-top: 3px;
}

.order-breakdown {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 0.84rem;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0 0;
}

.order-actions {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 12px;
}

.status-button {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--text);
  min-height: 36px;
  padding: 8px 10px;
}

.status-button.primary {
  background: var(--green);
  color: #fff;
}

.status-button.danger {
  background: #fff2ef;
  border-color: #f3c6bc;
  color: #a42b1a;
}

.availability-panel {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.availability-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.availability-item {
  align-items: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 12px;
}

.availability-item.unavailable {
  background: #fff8f6;
  border-color: #f3c6bc;
}

.availability-item strong,
.availability-item span {
  display: block;
}

.availability-item strong {
  overflow-wrap: anywhere;
}

.availability-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 3px;
  text-transform: uppercase;
}

.availability-item .status-button {
  flex: 0 0 auto;
}

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

.admin-panel {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.admin-panel.wide {
  grid-column: 1 / -1;
  min-width: 0;
}

.section-heading.compact {
  align-items: start;
}

.report-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-form,
.admin-list,
.admin-menu-controls,
.history-filters,
.history-list,
.payment-settings,
.payment-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid-2 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tabs {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
}

.admin-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
  min-height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
}

.admin-tab.active {
  background: var(--text);
  color: #fff;
}

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

.admin-form label,
.admin-edit-grid label,
.admin-menu-controls label,
.date-control,
.history-filters label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-edit-grid input,
.admin-edit-grid textarea,
.admin-menu-controls input,
.admin-menu-controls select,
.date-control input,
.history-filters input,
.history-filters select,
.inline-form input {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  padding: 10px;
  width: 100%;
}

.payment-settings input,
.payment-settings textarea {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  padding: 10px;
  width: 100%;
}

.admin-form textarea,
.admin-edit-grid textarea,
.payment-settings textarea {
  min-height: 82px;
  resize: vertical;
}

.branding-admin-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.branding-preview {
  background:
    linear-gradient(90deg, rgba(20, 104, 75, 0.86), rgba(17, 31, 27, 0.42)),
    var(--restaurant-hero-image) center / cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  overflow: hidden;
  padding: 22px;
}

.branding-preview-logo {
  background: #fff;
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  font-weight: 950;
  height: 58px;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  width: 58px;
}

.branding-preview-logo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.branding-preview h3 {
  font-size: 2.2rem;
  line-height: 1;
  margin: 0 0 10px;
}

.branding-preview p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
  margin: 0;
}

.branding-swatches {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.branding-swatches span {
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  height: 24px;
  width: 24px;
}

.staff-user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.staff-user-card .order-meta {
  margin: 0;
}

.staff-user-edit {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-user-edit label,
.staff-user-edit .toggle-row {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
}

.staff-user-edit input,
.staff-user-edit select {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 40px;
  padding: 10px;
  width: 100%;
}

.sinpe-admin-settings {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.sinpe-admin-settings label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
}

.hours-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.day-toggle-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-toggle {
  cursor: pointer;
}

.day-toggle input {
  opacity: 0;
  position: absolute;
}

.day-toggle span {
  align-items: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
}

.day-toggle input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.availability-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}

.availability-preview.open {
  background: #e4f7eb;
  border-color: #b6dfc3;
}

.availability-preview.closed {
  background: #fff4d8;
  border-color: #ead28c;
}

.availability-preview span {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-menu-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(140px, 0.8fr);
}

.history-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(120px, 1fr));
}

.date-control {
  min-width: 180px;
}

.closeout-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.closeout-card {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.closeout-card.total {
  background: #e4f7eb;
  border-color: #b6dfc3;
  grid-column: span 2;
}

.closeout-card span,
.closeout-card small,
.method-row span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.closeout-card strong {
  display: block;
  font-size: 1.25rem;
  margin-top: 4px;
}

.closeout-card.total strong {
  font-size: 1.75rem;
}

.closeout-methods {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.method-row strong {
  overflow-wrap: anywhere;
}

.history-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-summary div {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.history-summary span,
.history-row span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.history-summary strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 4px;
}

.history-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1.4fr auto auto;
  padding: 12px;
}

.history-row strong {
  overflow-wrap: anywhere;
}

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

.admin-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}

.admin-item.compact {
  box-shadow: none;
}

.admin-item.unavailable {
  background: #fff8f6;
  border-color: #f3c6bc;
}

.admin-item-main {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-item-main strong,
.admin-item-main span {
  display: block;
}

.admin-item-main span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.admin-compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-row {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
  white-space: nowrap;
}

.toggle-row input {
  accent-color: var(--green);
  height: 18px;
  width: 18px;
}

.payment-option-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.payment-option-row input {
  accent-color: var(--green);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.payment-option-row strong,
.payment-option-row small {
  display: block;
}

.payment-option-row small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin-top: 3px;
}

.admin-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promotion-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promotion-days {
  align-self: end;
}

.promotion-list {
  margin-top: 14px;
}

.span-2 {
  grid-column: 1 / -1;
}

.span-3 {
  grid-column: 1 / -1;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  min-width: 0;
  width: 110px;
}

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

.table-card {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.table-card strong,
.table-card span {
  display: block;
}

.table-card code {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.available-text {
  color: var(--green);
}

.muted-text {
  color: var(--muted);
}

.confirm-overlay {
  align-items: center;
  background: rgba(17, 24, 22, 0.48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 60;
}

.confirm-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(17, 24, 22, 0.24);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
  padding: 18px;
  width: 100%;
}

.checkout-modal {
  max-height: 90vh;
  max-width: 680px;
  overflow-y: auto;
}

.success-modal {
  max-width: 560px;
}

.confirm-modal h2 {
  font-size: 1.25rem;
  margin: 4px 0 0;
}

.confirm-modal p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.confirm-summary {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
}

.confirm-summary span,
.confirm-summary strong {
  display: block;
}

.confirm-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.confirm-summary strong {
  margin-top: 3px;
}

.checkout-items {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.checkout-item {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.checkout-item + .checkout-item {
  border-top: 1px solid var(--line);
}

.checkout-item span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  line-height: 1.4;
  margin-top: 3px;
}

.sinpe-box {
  background: #eef7ff;
  border: 1px solid #b7d6f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.sinpe-box h3,
.sinpe-box p {
  margin: 0;
}

.sinpe-box p {
  color: #184c75;
  line-height: 1.45;
}

.sinpe-data {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sinpe-data > div {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #cce0f2;
  border-radius: 8px;
  padding: 10px;
}

.sinpe-data span,
.sinpe-reference-field,
.payment-reference span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sinpe-data strong {
  display: block;
  margin-top: 4px;
}

.sinpe-reference-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sinpe-reference-field input {
  background: #fff;
  border: 1px solid #b7d6f0;
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 10px;
  text-transform: none;
}

.payment-reference {
  background: #eef7ff;
  border: 1px solid #b7d6f0;
  border-radius: 8px;
  color: #184c75;
  padding: 10px;
}

.payment-reference strong {
  display: block;
  margin-top: 3px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.demo-credentials {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  gap: 4px;
  padding: 10px;
}

.verification-code-box {
  background: #eef5ef;
  border: 1px solid #b8d8c4;
  border-radius: 8px;
  color: var(--green-strong);
  font-weight: 900;
  padding: 12px;
}

.toast {
  background: var(--text);
  border-radius: 8px;
  bottom: 20px;
  box-shadow: var(--shadow);
  color: #fff;
  left: 50%;
  max-width: min(92vw, 520px);
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 50;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.platform-layout {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(16px, 4vw, 42px) 42px;
}

.platform-login,
.platform-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.platform-login {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 620px;
  padding: 22px;
}

.platform-login h2,
.platform-restaurant-card h3 {
  margin: 0;
}

.platform-login p,
.platform-restaurant-card p {
  color: var(--muted);
  margin: 6px 0 0;
}

.platform-create-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.platform-restaurant-list {
  display: grid;
  gap: 14px;
}

.platform-restaurant-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1.1fr) minmax(240px, 0.9fr) minmax(240px, 1fr) minmax(280px, auto);
  padding: 16px;
}

.platform-restaurant-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform-restaurant-main > strong {
  font-size: 1.35rem;
}

.platform-restaurant-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.platform-restaurant-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.platform-restaurant-card dd {
  font-size: 1.2rem;
  font-weight: 900;
  margin: 2px 0 0;
}

.platform-recent-orders {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
}

.platform-recent-orders div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.platform-recent-orders p,
.platform-recent-orders span:not(.section-kicker) {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0;
}

.platform-restaurant-edit {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.platform-restaurant-edit label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
}

.platform-restaurant-edit .toggle-row {
  align-items: center;
  flex-direction: row;
}

.platform-links {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-links a {
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .customer-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 104px;
  }

  .cart-panel {
    bottom: 18px;
    left: auto;
    max-height: calc(100vh - 104px);
    max-width: min(460px, calc(100vw - 28px));
    overflow: hidden;
    position: fixed;
    right: 14px;
    top: auto;
    width: 100%;
    z-index: 30;
  }

  .cart-panel.collapsed {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 0;
  }

  .cart-toggle {
    align-items: center;
    background: var(--green);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(15, 95, 65, 0.28);
    color: #fff;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 16px;
    width: 100%;
  }

  .cart-toggle span,
  .cart-toggle strong,
  .cart-toggle small {
    display: block;
    text-align: left;
  }

  .cart-toggle small {
    font-size: 0.78rem;
    opacity: 0.84;
  }

  .cart-content {
    height: calc(100vh - 136px);
    padding-right: 0;
  }

  .cart-scroll-area {
    min-height: 72px;
  }

  .cart-close {
    display: inline-flex;
  }

  .cart-panel.collapsed .cart-content {
    display: none;
  }

  .menu-grid,
  .admin-grid,
  .table-grid,
  .platform-restaurant-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel.wide {
    grid-column: 1 / -1;
  }

  .platform-restaurant-card > div:first-child,
  .platform-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar,
  .staff-session,
  .account-strip,
  .account-topline,
  .section-heading,
  .report-actions,
  .receiver-toolbar,
  .hero-band,
  .receiver-hero,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-switch,
  .category-tabs,
  .admin-tabs {
    overflow-x: auto;
    width: 100%;
  }

  .mode-button,
  .category-tab,
  .admin-tab,
  .order-filter,
  .cashier-filter,
  .kitchen-filter {
    flex: 1 0 auto;
  }

  .hero-band,
  .receiver-hero,
  .admin-hero {
    min-height: 360px;
    justify-content: end;
  }

  .hero-copy h1,
  .receiver-hero h1,
  .admin-hero h1 {
    font-size: 3rem;
  }

  .customer-shell {
    padding-top: 14px;
  }

  .hero-band {
    min-height: 280px;
  }

  .menu-tools {
    background: rgba(246, 248, 244, 0.94);
    border-bottom: 1px solid rgba(217, 226, 218, 0.86);
    margin-left: -12px;
    margin-right: -12px;
    padding: 10px 12px 12px;
    position: sticky;
    top: 66px;
    z-index: 12;
    backdrop-filter: blur(16px);
  }

  .menu-search {
    max-width: none;
  }

  .category-tabs {
    border-radius: 8px;
    padding: 5px;
  }

  .category-tab {
    flex: 0 0 auto;
  }

  .quick-menu-row {
    grid-auto-columns: minmax(164px, 74vw);
  }

  .product-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .product-media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .product-body {
    gap: 9px;
    padding: 12px;
  }

  .product-description {
    font-size: 0.86rem;
  }

  .comment-input {
    min-height: 52px;
  }

  .product-detail-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
    max-width: calc(100vw - 20px);
  }

  .product-detail-media {
    aspect-ratio: 16 / 8;
    min-height: 0;
  }

  .product-detail-body {
    max-height: calc(92vh - 160px);
    overflow-y: auto;
    padding: 18px;
  }

  .detail-footer {
    align-items: stretch;
    flex-direction: column;
    margin: auto -18px -18px;
    padding: 12px 18px 18px;
  }

  .detail-quantity {
    justify-content: space-between;
    width: 100%;
  }

  .cart-panel {
    bottom: 12px;
    left: 10px;
    max-width: none;
    right: 10px;
    width: auto;
  }

  .menu-grid,
  .metrics,
  .orders-grid,
  .admin-grid,
  .branding-admin-layout,
  .platform-restaurant-card,
  .platform-create-form,
  .admin-edit-grid,
  .staff-user-form,
  .staff-user-edit,
  .admin-menu-controls,
  .form-grid-2,
  .hours-grid,
  .availability-grid,
  .account-summary,
  .closeout-grid,
  .closeout-methods,
  .history-filters,
  .history-row,
  .table-grid,
  .order-breakdown,
  .status-steps,
  .customer-order-summary {
    grid-template-columns: 1fr;
  }

  .platform-restaurant-card > div:first-child,
  .platform-links {
    grid-column: auto;
  }

  .day-toggle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closeout-card.total {
    grid-column: auto;
  }

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

  .account-actions button,
  .report-actions button,
  .receiver-hero button {
    width: 100%;
  }

  .inline-form {
    width: 100%;
  }

  .confirm-summary,
  .confirm-actions,
  .sinpe-data {
    grid-template-columns: 1fr;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .confirm-actions button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .customer-shell,
  .receiver-layout,
  .admin-layout,
  .platform-layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-copy h1,
  .receiver-hero h1,
  .admin-hero h1 {
    font-size: 2.35rem;
  }

  .product-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .product-title-row {
    flex-direction: column;
    gap: 4px;
  }

  .category-thumb {
    height: 36px;
    width: 40px;
  }
}
