/* ============================================================
   style.css — VK Prime POS visual system
   Mobile-first: clean single-column billing + bottom cart sheet
   below 768px; dual-pane tablet/desktop layout at 768px and up.
   ============================================================ */

:root {
  /* Backgrounds & surfaces */
  --bg-app: #f1f5f9;       /* slate-100 */
  --bg-app-soft: #f8fafc;  /* slate-50 */
  --surface: #ffffff;      /* white cards/panels */
  --surface-muted: #f8fafc;/* slate-50, subtle inset panels */
  --border: #e2e8f0;       /* slate-200 */
  --border-strong: #cbd5e1;/* slate-300 */

  /* Text */
  --text-hi: #0f172a;   /* slate-900 */
  --text-mid: #475569;  /* slate-600 */
  --text-low: #94a3b8;  /* slate-400 */

  /* Neutral "active" tone for pills / nav */
  --slate-900: #0f172a;
  --slate-700: #334155;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --royal-blue: #1e40af;
  --royal-blue-hover: #1d4ed8;
  --royal-blue-tint: #eff6ff;

  /* Distinct action colors */
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --emerald-600: #15803d;
  --emerald-700: #14532d;
  --indigo-600: #4338ca;
  --indigo-700: #3730a3;
  --blue-600: #2563eb;

  --amber-tint: #fffbeb;
  --emerald-tint: #ecfdf5;
  --indigo-tint: #eef2ff;
  --red-500: #dc2626;
  --red-tint: #fef2f2;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg-app);
  color: var(--text-hi);
  font-family: var(--font-body);
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden; /* the app owns scrolling per-region; no page-level double scrollbars */
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-hi);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-hi);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 15px;
}
input::placeholder, textarea::placeholder { color: var(--text-low); }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--royal-blue-hover);
  outline-offset: 1px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------------- Top bar (compact, one slim row) ---------------- */

#topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  overflow-x: auto;
}

#topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 0;
}
#topbar .brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: #ffffff;
  flex-shrink: 0;
}
#topbar .brand .name {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw;
}
#topbar .brand .sub { font-size: 11px; color: var(--text-low); display: none; }

#topbar .spacer { flex: 1; }

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  color: var(--text-mid);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill.mode-backoffice { background: var(--amber-tint); border-color: #fcd34d; color: var(--amber-700); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-600); flex-shrink: 0; }
.pill .pill-text { white-space: nowrap; }

/* On very small phones, the operator pill shrinks to just its status dot */
@media (max-width: 480px) {
  .pill.shift-pill { padding: 7px; }
  .pill.shift-pill .pill-text { display: none; }
  .pill.mode-backoffice .pill-text-long { display: none; }
}

/* ---------------- Buttons ---------------- */

.btn {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--navy-800); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-900); }

.btn-neutral { background: var(--border); color: var(--text-hi); border: 1px solid var(--border-strong); font-weight: 600; }
.btn-neutral:hover { background: var(--border-strong); }

.btn-ghost { background: var(--surface); color: var(--text-hi); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-app-soft); }

.btn-danger { background: var(--red-tint); color: var(--red-500); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; }

.btn-kot { background: var(--amber-600); color: #ffffff; font-weight: 600; box-shadow: var(--shadow-sm); }
.btn-kot:hover { background: var(--amber-700); }

.btn-cash { background: var(--emerald-600); color: #ffffff; font-weight: 700; box-shadow: var(--shadow-sm); }
.btn-cash:hover { background: var(--emerald-700); }

.btn-upi { background: var(--indigo-600); color: #ffffff; font-weight: 700; box-shadow: var(--shadow-sm); }
.btn-upi:hover { background: var(--indigo-700); }

.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: var(--radius-md); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------------- Shift banner: full bar, collapsible to a micro chip ---------------- */

#shift-banner {
  background: var(--amber-tint);
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
#shift-banner .banner-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#shift-banner .banner-dismiss { color: #92400e; font-size: 13px; padding: 2px 6px; flex-shrink: 0; }
#shift-banner.collapsed { justify-content: flex-end; background: transparent; border-bottom: none; padding: 4px 10px; }
.banner-chip {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber-tint); border: 1px solid #fde68a; color: #92400e;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
}

/* ---------------- Layout skeleton ---------------- */

#app-body { flex: 1; display: flex; min-height: 0; }
#screen { flex: 1; overflow-y: auto; padding: 12px; min-height: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------------- Billing screen (mobile-first) ---------------- */

#billing-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 10px;
}
#menu-pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}
.mode-btn {
  padding: 10px 16px; border-radius: 999px;
  background: var(--bg-app-soft); border: 1px solid var(--border-strong);
  color: var(--slate-700); font-weight: 600; font-size: 13.5px;
  flex-shrink: 0;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.mode-btn.active { background: var(--royal-blue); color: #ffffff; border-color: var(--royal-blue); box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28); }

.tier-row { display: flex; justify-content: flex-end; }
.tier-row select { font-size: 13px; padding: 8px 10px; }

.category-pills { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
.category-pill {
  padding: 9px 16px; border-radius: 999px; background: var(--bg-app-soft);
  border: 1px solid var(--border-strong); color: var(--slate-700); font-size: 13.5px; font-weight: 600;
  flex-shrink: 0;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.category-pill.active { background: var(--royal-blue); border-color: var(--royal-blue); color: #ffffff; box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28); }

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow-y: auto;
  padding: 2px 2px 90px; /* bottom padding clears the floating cart bar */
  flex: 1;
  min-height: 0;
  align-content: start;
}
.item-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  min-height: 96px;
  box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
.item-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.item-card:active { transform: scale(0.97); border-color: var(--royal-blue); }
.item-card .iname { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--text-hi); }
.item-card .istation { font-size: 10.5px; color: var(--text-low); }
.item-card .icard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.item-card .iprice {
  color: var(--text-hi);
  font-weight: 700; font-size: 13px;
  background: var(--bg-app-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
}
.item-add-btn {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--royal-blue); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; line-height: 1; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.item-qty-badge {
  position: absolute; top: -8px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 999px;
  background: var(--emerald-600); color: #ffffff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--surface);
}

/* ---------------- Cart: bottom sheet on mobile, side panel on desktop ---------------- */

#cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  z-index: 140;
}
#cart-backdrop.show { opacity: 1; pointer-events: auto; }

#cart-pane {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 88vh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 36px rgba(15, 23, 42, .22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(105%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  z-index: 150;
  padding-bottom: var(--safe-bottom);
}
#cart-pane.sheet-open { transform: translateY(0); }

.cart-drawer-handle {
  width: 40px; height: 4px;
  background: var(--border-strong);
  border-radius: 99px;
  margin: 10px auto 2px;
  flex-shrink: 0;
}

.cart-header { padding: 6px 16px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-header h3 { flex: 1; }
.cart-close-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-app-soft); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-mid);
}

.cart-lines { flex: 1; overflow-y: auto; padding: 8px 14px; min-height: 60px; }
.cart-line {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.cart-line .cname { flex: 1; min-width: 0; }
.cart-line .cname .n { font-size: 14px; font-weight: 600; color: var(--text-hi); }
.cart-line .cname .unit-price { font-size: 11.5px; color: var(--text-low); }
.cart-line .cname input.note {
  margin-top: 4px; width: 100%; font-size: 12px; padding: 5px 8px;
  background: var(--bg-app-soft);
}
.qty-stepper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qty-stepper button {
  width: 28px; height: 28px; border-radius: 8px; background: var(--bg-app-soft);
  border: 1px solid var(--border-strong);
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
  color: var(--text-hi);
}
.qty-stepper .q { min-width: 20px; text-align: center; font-weight: 600; color: var(--text-hi); }
.cart-line .lprice { width: 60px; text-align: right; font-weight: 700; font-size: 13.5px; color: var(--text-hi); flex-shrink: 0; }
.cart-line .line-delete {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--red-tint); color: var(--red-500);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.cart-empty { color: var(--text-low); text-align: center; padding: 40px 20px; font-size: 14px; }

.cart-footer { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-app-soft); flex-shrink: 0; }

.bill-details-toggle {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 600; color: var(--text-mid);
  padding: 2px 0;
}
.bill-details-toggle .chev { transition: transform .15s ease; }
.bill-details-toggle.open .chev { transform: rotate(180deg); }
.bill-details-body { display: flex; flex-direction: column; gap: 10px; }
.bill-details-body.hidden { display: none; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-mid); }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: .15s; }
.switch .track:before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--emerald-600); }
.switch input:checked + .track:before { transform: translateX(18px); }

.totals-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-mid); }
.totals-row.grand { font-size: 19px; font-weight: 700; color: var(--text-hi); padding-top: 6px; border-top: 1px dashed var(--border-strong); }
.totals-row.grand .val { color: var(--emerald-600); }

.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------------- Floating summary bar (mobile only) ---------------- */

#cart-fab {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  background: var(--royal-blue);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  z-index: 130;
  transform: translateY(140%);
  transition: transform .25s cubic-bezier(.32,.72,0,1);
}
#cart-fab.visible { transform: translateY(0); }
#cart-fab .fab-info { display: flex; flex-direction: column; line-height: 1.2; }
#cart-fab .fab-count { font-size: 11.5px; opacity: .85; font-weight: 600; }
#cart-fab .fab-total { font-size: 17px; font-weight: 700; font-family: var(--font-display); }
#cart-fab .fab-cta { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ---------------- Tables / lists ---------------- */

table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th, table.data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-hi); }
table.data-table th { color: var(--text-low); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
table.data-table tbody tr:hover { background: var(--bg-app-soft); }

.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.stat-card .label { font-size: 12px; color: var(--text-low); }
.stat-card .value { font-size: 26px; font-weight: 700; font-family: var(--font-display); margin-top: 4px; color: var(--text-hi); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin-bottom: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--text-mid); font-weight: 600; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab-btn { padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text-low); border-bottom: 2px solid transparent; flex-shrink: 0; }
.tab-btn.active { color: var(--royal-blue); border-color: var(--royal-blue); }

.side-nav { width: 210px; background: var(--surface); border-right: 1px solid var(--border); padding: 14px 10px; flex-shrink: 0; }
.side-nav .nav-item {
  display: block; width: 100%; text-align: left; padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-mid); font-size: 14px; font-weight: 600; margin-bottom: 4px;
  border: 1px solid transparent;
}
.side-nav .nav-item.active { background: var(--royal-blue-tint); color: var(--royal-blue); border-color: #bfdbfe; }
.side-nav .nav-item:hover { background: var(--bg-app-soft); }

/* Back office on mobile: horizontal scrolling tab strip instead of a side rail */
.bo-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; margin: -12px; }
.bo-mobile-tabs {
  display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap;
  padding: 12px 12px 10px;
  flex-shrink: 0;
}
.bo-mobile-tabs button {
  flex-shrink: 0; padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-app-soft); border: 1px solid var(--border-strong); color: var(--slate-700);
}
.bo-mobile-tabs button.active { background: var(--royal-blue); border-color: var(--royal-blue); color: #fff; }
.bo-body { display: flex; gap: 0; flex: 1; min-height: 0; }
.bo-content { flex: 1; overflow-y: auto; padding: 0 12px 12px; }

/* ---------------- Modal ---------------- */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; z-index: 200;
  padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; width: 100%; max-width: 420px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h2 { font-size: 19px; margin-bottom: 6px; color: var(--text-hi); }
.modal p.desc { color: var(--text-mid); font-size: 13.5px; margin: 0 0 18px; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 18px 0; }
.pin-dots .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); }
.pin-dots .dot.filled { background: var(--royal-blue); border-color: var(--royal-blue); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-pad button {
  padding: 16px 0; font-size: 20px; font-weight: 600; background: var(--bg-app-soft);
  border-radius: var(--radius-md); border: 1px solid var(--border-strong); color: var(--text-hi);
}
.pin-pad button:hover { background: var(--border); }
.pin-pad button:active { background: var(--border-strong); }

.qr-preview { display: flex; justify-content: center; padding: 16px; background: white; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* ---------------- License lockout ---------------- */

#license-lockout {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-app);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lockout-card { text-align: center; max-width: 440px; }
.lockout-mark {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px;
  background: linear-gradient(135deg, var(--red-500), #991b1b);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: white;
  box-shadow: var(--shadow-md);
}
.lockout-card h1 { font-size: 24px; margin-bottom: 12px; color: var(--text-hi); }
.lockout-card p { color: var(--text-mid); font-size: 14.5px; line-height: 1.6; }
.lockout-sub { color: var(--amber-700) !important; }
.lockout-contact { margin-top: 18px; color: var(--text-hi) !important; font-weight: 600; }
body.license-locked #app-body, body.license-locked #topbar, body.license-locked #shift-banner { display: none; }

/* ---------------- Toast ---------------- */

#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--slate-900); border: 1px solid var(--slate-900); color: #ffffff;
  padding: 12px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .2s ease; z-index: 500;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 40px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--red-500); border-color: var(--red-500); }

/* ============================================================
   TABLET / DESKTOP (≥768px) — restore the dual-pane layout
   ============================================================ */

@media (min-width: 768px) {
  #topbar { padding: 10px 16px; overflow-x: visible; }
  #topbar .brand .name { max-width: none; }
  #topbar .brand .sub { display: block; }
  .pill.shift-pill .pill-text { display: inline; }
  .pill.mode-backoffice .pill-text-long { display: inline; }

  #screen { padding: 18px; }

  #billing-screen { flex-direction: row; gap: 16px; }
  #menu-pane { flex: 1.5; }

  .mode-selector { flex-wrap: wrap; }

  .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 2px;
  }
  .item-add-btn { display: none; } /* the whole card is already the tap target on larger screens */

  #cart-backdrop { display: none !important; }

  #cart-pane {
    position: static;
    max-height: none;
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transform: none;
    transition: none;
    padding-bottom: 0;
  }
  .cart-drawer-handle, .cart-close-btn { display: none; }

  #cart-fab { display: none !important; }

  .bill-details-toggle { display: none; }
  .bill-details-body.hidden { display: flex; } /* always expanded on larger screens */

  .side-nav { display: block; }
  .bo-mobile-tabs { display: none; }
  .bo-shell { margin: -18px; }
  .bo-content { padding: 20px; }
}

@media (max-width: 767.98px) {
  .side-nav { display: none; }
}
