:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --header: #111827;
  --header-soft: #1f2937;
  --text: #18212f;
  --muted: #64748b;
  --line: #dbe3ef;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #d97706;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

body.locked .app-shell {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: center;
  justify-items: center;
  grid-template-columns: minmax(320px, 520px) minmax(360px, 640px);
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.92), rgba(15,118,110,0.84)),
    radial-gradient(circle at 15% 12%, rgba(217,119,6,0.34), transparent 28%),
    #111827;
}

.login-screen[hidden] {
  display: none;
}

.login-showcase {
  width: 100%;
  color: #fff;
  display: grid;
  gap: 28px;
}

.login-showcase h1 {
  font-size: 46px;
  line-height: 1.04;
  max-width: 12ch;
}

.login-showcase p {
  max-width: 56ch;
  color: #dbeafe;
  margin-top: 16px;
  line-height: 1.65;
}

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

.login-metrics span {
  min-height: 96px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.login-metrics strong {
  font-size: 20px;
}

.login-metrics small {
  color: #cbd5e1;
}

.access-panel {
  width: min(640px, 100%);
  display: grid;
  gap: 14px;
}

.login-card {
  width: 100%;
  background: rgba(255,255,255,0.98);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.4);
}

.login-card[hidden] {
  display: none;
}

.register-card {
  align-self: start;
}

.login-brand .brand-mark {
  background: #fff;
  color: var(--header);
}

.login-brand strong {
  color: #fff;
}

.login-brand small {
  color: #cbd5e1;
}

.login-card h1 {
  color: var(--text);
}

.login-card p,
.login-card label {
  color: var(--muted);
}

.form-title {
  display: grid;
  gap: 5px;
}

.form-title h1 {
  font-size: 24px;
}

.eyebrow {
  width: max-content;
  border-radius: 8px;
  background: #ecfdf5;
  color: var(--primary-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.login-card input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fafc;
}

.login-card input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  border-color: var(--primary);
  background: #fff;
}

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

.login-help {
  font-size: 14px;
  text-align: center;
}

.access-switch {
  text-align: center;
  font-size: 14px;
}

.access-switch button {
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-weight: 900;
  padding: 0;
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: 74px minmax(0, 1fr);
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  background: var(--header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
.cashier,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand strong,
.cashier strong {
  display: block;
  line-height: 1.1;
}

.brand small,
.cashier small {
  color: #cbd5e1;
  display: block;
  margin-top: 3px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--header-soft);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  gap: 4px;
  padding: 12px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.status-pill,
.small-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
}

.logout-button {
  background: #fff;
  color: var(--header);
}

.status-pill {
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 16px 10px;
}

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

.nav-item {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.nav-item.active,
.nav-item:hover {
  background: var(--header);
  color: #fff;
}

.main-content {
  min-width: 0;
  padding: 20px;
}

.view {
  display: none;
  animation: fadeUp 180ms ease-out;
}

.view.active {
  display: block;
}

.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: start;
}

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

.menu-area {
  padding: 4px 0 0;
  min-width: 0;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 17px;
}

.section-header p,
.order-head p,
.module-title p {
  color: var(--muted);
  margin-top: 5px;
}

.search-wrap {
  flex: 0 1 330px;
}

.search-wrap input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface-soft);
  outline: none;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 16px;
  font-weight: 800;
}

.category-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.product-card {
  min-height: 230px;
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: space-between;
  text-align: left;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.food-thumb {
  height: 128px;
  width: 100%;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.food-thumb.has-image {
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.product-meta {
  display: grid;
  gap: 5px;
  padding-top: 10px;
}

.product-meta span {
  color: var(--muted);
  font-size: 14px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-foot strong {
  color: var(--primary-dark);
}

.add-dot {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--header);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.order-panel {
  padding: 16px;
  position: sticky;
  top: 94px;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.small-button {
  background: var(--surface-soft);
  color: var(--primary-dark);
  align-self: start;
}

.order-items {
  display: grid;
  gap: 12px;
  min-height: 246px;
  max-height: 330px;
  overflow: auto;
  padding: 14px 0;
}

.order-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 0 0;
}

.order-fields select,
.order-fields input,
.payment-modal select,
.payment-modal input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
}

.empty-order {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  min-height: 210px;
  background: var(--surface-soft);
  border-radius: 8px;
  padding: 20px;
}

.order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  background: var(--surface-soft);
  border-radius: 8px;
}

.order-line-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.order-line-title strong {
  overflow-wrap: anywhere;
}

.order-line-title span {
  color: var(--muted);
  font-size: 14px;
}

.qty-control {
  display: grid;
  grid-template-columns: 36px 34px 36px;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.qty-control button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--header);
  font-weight: 900;
}

.line-price {
  grid-column: 1 / -1;
  text-align: right;
  font-weight: 900;
}

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

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.totals strong {
  color: var(--text);
}

.totals .grand-total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

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

.action-button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.action-button.muted {
  background: #64748b;
}

.action-button.dark {
  background: var(--header);
}

.action-button.primary {
  background: var(--primary);
}

.action-button.danger {
  background: var(--danger);
}

.module-screen {
  padding: 4px 0 0;
}

.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.module-card {
  box-shadow: none;
  padding: 16px;
  min-height: 130px;
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.module-card .metric {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary-dark);
}

.module-card span {
  color: var(--muted);
}

.table-map {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.table-card {
  min-height: 118px;
}

.floor-shell {
  display: grid;
  gap: 14px;
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.floor-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  padding: 0 14px;
}

.floor-tabs button.active {
  background: var(--header);
  border-color: var(--header);
  color: #fff;
}

.floor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
}

.floor-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot,
.table-status {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.ready,
.table-status.ready {
  background: var(--success);
}

.legend-dot.busy,
.table-status.busy {
  background: var(--danger);
}

.legend-dot.reserved,
.table-status.reserved {
  background: var(--accent);
}

.legend-dot.cleaning,
.table-status.cleaning {
  background: #64748b;
}

.floor-summary {
  display: grid;
  text-align: right;
  color: var(--muted);
}

.floor-summary strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.floor-plan {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(219, 227, 239, 0.55) 1px, transparent 1px),
    linear-gradient(0deg, rgba(219, 227, 239, 0.55) 1px, transparent 1px),
    #f8fafc;
  background-size: 42px 42px;
  box-shadow: var(--shadow);
}

.floor-zone {
  position: absolute;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 900;
  padding: 10px;
  pointer-events: none;
}

.zone-main {
  inset: 20px 34% 170px 20px;
}

.zone-counter {
  inset: 20px 20px 58% 68%;
}

.zone-private {
  inset: 62% 20px 20px 54%;
}

.floor-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 24px;
  padding: 62px 32px 34px;
}

.floor-free {
  position: relative;
  z-index: 1;
  min-height: 500px;
}

.floor-table {
  min-height: 116px;
  border: 2px solid transparent;
  background: #fff;
  color: var(--text);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  position: relative;
  transition: box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.floor-free .floor-table {
  position: absolute;
  width: 132px;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.floor-free .floor-table.large {
  width: 190px;
}

.floor-shell.editing .floor-plan {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: -6px;
}

.floor-shell.editing .floor-table {
  cursor: grab;
}

.floor-table.dragging {
  cursor: grabbing;
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.26);
}

.floor-table:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.floor-grid .floor-table:hover {
  transform: translateY(-3px);
}

.floor-table.round {
  border-radius: 999px;
  aspect-ratio: 1;
}

.floor-table.square {
  border-radius: 8px;
}

.floor-table.large {
  border-radius: 8px;
  min-height: 128px;
  grid-column: span 2;
}

.floor-table.ready {
  border-color: rgba(22, 163, 74, 0.42);
}

.floor-table.busy {
  border-color: rgba(220, 38, 38, 0.48);
  background: #fff7f7;
}

.floor-table.reserved {
  border-color: rgba(217, 119, 6, 0.48);
  background: #fffbeb;
}

.floor-table.cleaning {
  border-color: rgba(100, 116, 139, 0.5);
  background: #f1f5f9;
}

.floor-table strong {
  font-size: 18px;
}

.floor-table small {
  color: var(--muted);
  font-weight: 800;
}

.floor-table em {
  color: var(--primary-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.floor-table .table-status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.table-detail-list {
  margin-top: 14px;
}

.badge {
  width: max-content;
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
}

.badge.busy,
.badge.low {
  background: #fee2e2;
  color: #991b1b;
}

.badge.ready,
.badge.paid {
  background: #dcfce7;
  color: #166534;
}

.badge.cooking {
  background: #fef3c7;
  color: #92400e;
}

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

.list-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.list-row span {
  color: var(--muted);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-summary {
  margin-bottom: 16px;
}

.inventory-workspace,
.inventory-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.inventory-tool {
  box-shadow: none;
  align-content: start;
}

.wide-tool {
  grid-column: 1 / -1;
}

.stack-form {
  display: grid;
  gap: 10px;
}

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

.recipe-grid {
  grid-template-columns: 1.3fr 1.3fr 0.7fr 0.7fr auto;
}

.stack-form input,
.stack-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.inventory-columns h2 {
  margin-bottom: 10px;
}

.inventory-row {
  grid-template-columns: 1fr 1.4fr auto;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.inline-form input,
.inline-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.link-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--header);
  color: #fff;
  font-weight: 900;
  padding: 0 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.modal-backdrop[hidden],
.toast[hidden] {
  display: none;
}

.payment-modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
  display: grid;
  gap: 14px;
}

.record-modal {
  width: min(920px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
  display: grid;
  gap: 14px;
}

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

.record-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.record-grid label.wide {
  grid-column: 1 / -1;
}

.record-grid input,
.record-grid select,
.record-grid textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.record-grid textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.file-field input[type="file"] {
  padding: 10px;
  height: auto;
  background: #f8fafc;
}

.image-preview {
  min-height: 180px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.image-preview.empty {
  background-image: none;
}

.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.payment-modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.modal-close {
  background: var(--header);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 360px;
  background: var(--header);
  color: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

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

@media (max-width: 1180px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 840px) {
  .login-screen {
    grid-template-columns: 1fr;
    overflow: auto;
    align-items: start;
    padding: 18px;
  }

  .login-showcase h1 {
    font-size: 34px;
  }

  .login-metrics,
  .register-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: grid;
  }

  .sidebar {
    position: fixed;
    inset: 74px auto 0 0;
    width: 240px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    z-index: 9;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .nav-item {
    text-align: left;
    padding: 0 18px;
  }

  .main-content {
    padding: 14px;
  }

  .section-header,
  .module-title {
    align-items: stretch;
    flex-direction: column;
  }

  .floor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .floor-summary {
    text-align: left;
  }

  .floor-plan {
    min-height: auto;
  }

  .floor-zone {
    display: none;
  }

  .floor-grid {
    min-height: auto;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 14px;
    padding: 16px;
  }

  .floor-table.large {
    grid-column: span 1;
  }

  .floor-free {
    min-height: 540px;
  }

  .floor-free .floor-table,
  .floor-free .floor-table.large {
    width: 112px;
  }

  .search-wrap {
    flex-basis: auto;
  }

  .topbar-actions .status-pill,
  .cashier div {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 0 12px;
  }

  .brand small,
  .icon-button[aria-label="Notifications"] {
    display: none;
  }

  h1 {
    font-size: 24px;
  }

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

  .product-card {
    min-height: 210px;
    padding: 10px;
  }

  .food-thumb {
    height: 108px;
  }

  .order-actions,
  .list-row,
  .order-fields,
  .inline-form,
  .record-grid,
  .inventory-workspace,
  .inventory-columns,
  .form-grid,
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .qty-control {
    grid-template-columns: 40px 38px 40px;
  }

  .qty-control button {
    width: 40px;
    height: 40px;
  }
}
