:root {
  --ink: #18212f;
  --muted: #697586;
  --line: #d9e0e8;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-strong: #0b5d57;
  --blue: #2563eb;
  --rose: #be123c;
  --amber: #b45309;
  --violet: #6d28d9;
  --success: #15803d;
  --danger: #b91c1c;
  --shadow: 0 18px 45px rgba(24, 33, 47, 0.08);
}

.confirm-modal {
  margin: -24px;
}

.confirm-title {
  background: #444;
  color: #fff;
  padding: 26px 24px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 22px;
}

.confirm-body {
  padding: 28px 34px 24px;
  display: grid;
  gap: 14px;
}

.confirm-body p {
  margin: 0;
  font-size: 18px;
  text-align: center;
  color: #1f2937;
}

.confirm-body textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #fb923c;
  border-radius: 4px;
  padding: 12px;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.confirm-body textarea:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(440px, 1.08fr);
  background: #f4f7f8;
  position: relative;
}

.platform-corner-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  z-index: 20;
  opacity: .35;
}

.platform-corner-btn:hover {
  opacity: .9;
  background: rgba(15, 23, 42, 0.44);
}

.platform-card {
  width: min(820px, 92vw);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 38px;
  color: white;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.12), rgba(5, 7, 12, 0.76)),
    url("/assets/restaurant-login.png") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-copy h1 {
  max-width: 520px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.55;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 30px;
}

.auth-card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.copyright {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  font-weight: 750;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr;
  background: #edf2f7;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 22px;
}

.auth-tabs button,
.segmented button {
  min-height: 40px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.auth-tabs button.active,
.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(24, 33, 47, 0.12);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full,
.full {
  grid-column: 1 / -1;
}

.logo-settings-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.logo-preview,
.logo-placeholder {
  width: 92px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.logo-preview {
  object-fit: contain;
  padding: 8px;
}

.logo-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.logo-settings-actions {
  display: grid;
  gap: 8px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.email-domain-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.email-domain-field input {
  min-width: 0;
  border: 0;
  border-radius: 0;
}

.email-domain-field input:focus {
  outline: 0;
  box-shadow: none;
}

.email-domain-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.email-domain-field span {
  padding: 0 14px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  border-left: 1px solid var(--border);
}

.people-field {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.people-field label {
  font-size: 18px;
  font-weight: 500;
}

.people-field label strong {
  color: var(--danger);
}

.people-stepper {
  display: grid;
  grid-template-columns: 44px 82px 44px;
  align-items: center;
  gap: 14px;
}

.people-stepper button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: #888;
  font-size: 28px;
  font-weight: 900;
}

.people-stepper input {
  width: 82px;
  min-height: 50px;
  padding: 0 8px;
  border-color: #ff7900;
  border-radius: 0;
  text-align: center;
  font-size: 24px;
}

label {
  font-size: 12px;
  font-weight: 800;
  color: #344054;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.checkline input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
}

.top-actions .secondary.active {
  background: #d9f2ee;
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.check-grid,
.scope-checks {
  display: grid;
  gap: 8px;
}

.scope-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}

.scope-checks input {
  width: 16px;
  min-height: 16px;
}

.primary,
.secondary,
.danger,
.ghost {
  min-height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 850;
}

.primary {
  color: white;
  background: var(--brand);
}

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

.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: white;
}

.danger {
  color: white;
  background: var(--danger);
}

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

.errors {
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #111827;
  color: white;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-backdrop,
.sidebar-close {
  display: none;
}

.app-shell.sidebar-hidden .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  transform: translateX(-100%);
  z-index: 30;
}

.app-shell.sidebar-hidden .sidebar.open {
  transform: translateX(0);
}

.side-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand-copy {
  min-width: 0;
  flex: 1;
}

.side-head small {
  color: #aab3c2;
}

.membership-flag {
  margin: 8px 4px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.text-warn {
  color: #b45309;
  font-weight: 800;
}

.text-danger {
  color: var(--danger);
  font-weight: 800;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav button {
  min-height: 42px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
}

.nav button.active,
.nav button:hover {
  background: #223044;
  color: white;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h2 {
  margin: 0;
  font-size: 21px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: white;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  font-weight: 900;
}

.content {
  padding: 26px;
}

.grid {
  display: grid;
  gap: 16px;
}

.kpis {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.panel,
.card,
.modal-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head h3,
.card h3 {
  margin: 0;
  font-size: 16px;
}

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

.report-filters {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(92px, 0.55fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.payment-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) 110px minmax(180px, 2fr);
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.payment-bar {
  height: 8px;
  background: #eef2f6;
  overflow: hidden;
}

.payment-bar i {
  display: block;
  height: 100%;
  background: #ef4444;
}

.sales-more-panel {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.sales-more-tabs {
  border-right: 1px solid #e5e7eb;
  background: #fafafa;
  padding: 14px 0;
}

.sales-more-tabs button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  text-align: left;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.sales-more-tabs button.active {
  color: #ef4444;
  background: #fff;
  box-shadow: inset 3px 0 0 #ef4444;
}

.sales-more-content {
  padding: 22px 28px;
}

.sales-more-content h3 {
  margin: 0 0 18px;
}

.split-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.split-summary-strip span,
.split-guest-card,
.split-item-card {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.split-summary-strip span {
  padding: 12px;
  color: #475569;
  background: #ecfdf5;
  border-color: #a7f3d0;
  box-shadow: inset 4px 0 0 #10b981;
}

.split-summary-strip span:nth-child(2) {
  background: #eff6ff;
  border-color: #bfdbfe;
  box-shadow: inset 4px 0 0 #3b82f6;
}

.split-summary-strip span:nth-child(3) {
  background: #fff7ed;
  border-color: #fed7aa;
  box-shadow: inset 4px 0 0 #f97316;
}

.split-summary-strip span:nth-child(4) {
  background: #f5f3ff;
  border-color: #ddd6fe;
  box-shadow: inset 4px 0 0 #8b5cf6;
}

.split-summary-strip strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  margin-top: 4px;
}

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

.split-title-row h3 {
  margin-bottom: 4px;
}

.split-items h4,
.split-guests h4 {
  margin: 0;
  color: #0f172a;
}

.split-layout {
  display: block;
  max-height: calc(100vh - 270px);
  overflow: auto;
  padding-right: 4px;
}

.split-guests,
.split-items {
  display: grid;
  gap: 12px;
}

.split-items {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 5px 0 0 #2563eb;
}

.split-guests {
  margin-top: 20px;
  background: #fffaf0;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px;
  box-shadow: inset 5px 0 0 #f59e0b;
}

.split-guest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.split-guests .panel-head {
  align-items: center;
}

.split-guest-card,
.split-item-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.split-guest-card {
  grid-template-columns: minmax(220px, 0.9fr) minmax(240px, 1.1fr) minmax(220px, 0.8fr);
  align-items: start;
  position: relative;
  overflow: hidden;
  border-left-width: 8px;
}

.split-guest-card:nth-child(4n + 1) {
  border-left-color: #14b8a6;
  background: #f0fdfa;
}

.split-guest-card:nth-child(4n + 2) {
  border-left-color: #3b82f6;
  background: #eff6ff;
}

.split-guest-card:nth-child(4n + 3) {
  border-left-color: #f97316;
  background: #fff7ed;
}

.split-guest-card:nth-child(4n + 4) {
  border-left-color: #8b5cf6;
  background: #f5f3ff;
}

.split-guest-card.paid {
  border-color: #86efac;
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.split-guest-name {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.split-guest-name button {
  grid-column: 2;
  justify-self: start;
}

.split-guest-name input,
.split-pay-form input,
.split-pay-form select,
.split-item-card select {
  min-height: 40px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 10px;
  font: inherit;
}

.split-guest-lines,
.split-totals {
  display: grid;
  gap: 6px;
}

.split-guest-line,
.split-totals span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.split-guest-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 7px;
  padding: 7px 8px;
}

.split-remove-assignment {
  width: 32px;
  height: 32px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b91c1c;
  font-weight: 900;
  cursor: pointer;
}

.split-guest-lines small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.split-totals {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  grid-template-columns: 1fr 1fr;
}

.split-totals span {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  padding: 6px 8px;
}

.split-pay-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 120px 100px auto auto;
  gap: 8px;
  align-items: center;
}

.status-pill {
  justify-self: start;
  grid-column: 1;
  border-radius: 999px;
  padding: 4px 10px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

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

.split-item-main b {
  white-space: nowrap;
}

.split-item-card > div small,
.split-item-card form small {
  display: block;
  color: #64748b;
  margin-top: 4px;
}

.split-item-card form {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(260px, 1fr);
  gap: 8px;
  align-items: center;
}

.split-item-card {
  background: #ffffff;
  border-color: #bfdbfe;
  box-shadow: inset 4px 0 0 #60a5fa;
}

.split-qty-field {
  display: grid;
  grid-template-columns: 150px minmax(90px, 160px);
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-weight: 800;
}

.split-qty-stepper {
  display: grid;
  grid-template-columns: 44px 64px 44px;
  gap: 6px;
  align-items: center;
}

.split-qty-stepper button,
.split-qty-stepper strong {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #0f172a;
  font-weight: 900;
}

.split-qty-stepper button {
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

.split-qty-stepper strong {
  background: #fff;
}

.split-person-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.split-person-buttons button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
}

.split-person-buttons button.selected {
  border-color: #0f766e;
  background: #ccfbf1;
  color: #115e59;
  box-shadow: inset 0 -3px 0 #14b8a6;
}

.split-clear-btn {
  justify-self: start;
}

.modifier-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.modifier-pick {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  cursor: pointer;
}

.modifier-pick.selected,
.modifier-pick:has(input:checked) {
  border-color: #0f766e;
  background: #ccfbf1;
}

.modifier-pick small {
  display: block;
  color: #64748b;
}

.compact-checks {
  max-height: 190px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
}

.danger-text {
  color: #dc2626;
}

.ok-text {
  color: #047857;
}

.metric-lines {
  display: grid;
  gap: 14px;
  max-width: 280px;
}

.metric-lines div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.metric-lines strong {
  font-size: 18px;
}

.kpi {
  padding: 18px;
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.kpi b {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.tables-workspace {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) minmax(420px, 0.84fr);
  gap: 0;
  min-height: calc(100vh - 124px);
  background: #f4f4f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.tables-map-pane {
  padding: 20px;
  background: #f7f7f7;
}

.tables-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.tables-toolbar h3 {
  margin: 0;
}

.order-side-pane {
  background: white;
  border-left: 1px solid var(--line);
  min-width: 0;
}

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

.table-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, 94px);
  align-items: start;
  gap: 24px 28px;
}

.table-card {
  padding: 14px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 5px solid var(--success);
}

.zone-panel {
  margin-bottom: 26px;
}

.zone-tab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 0 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.zone-tab span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.zone-edit {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  background: #333;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.table-card.busy {
  border-left-color: var(--rose);
}

.table-card.reserved {
  border-left-color: var(--amber);
}

.table-card.cleaning {
  border-left-color: var(--blue);
}

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

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

.table-tile {
  position: relative;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 2px solid #25b68b;
  border-radius: 5px;
  background: #70d89a;
  color: white;
  box-shadow: 0 3px 4px rgba(17, 24, 39, 0.24);
  cursor: pointer;
}

.table-tile:hover {
  transform: translateY(-1px);
}

.table-tile.selected {
  outline: 7px solid #ffe566;
}

.table-tile.busy {
  background: #f05261;
  border-color: #e43f4e;
}

.table-tile.account-printed {
  background: #2563eb;
  border-color: #1d4ed8;
}

.table-tile.account-printed.selected {
  box-shadow: 0 3px 4px rgba(17, 24, 39, 0.24), 0 0 0 7px #ffe566;
  outline: 0;
}

.table-tile strong {
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(17, 24, 39, 0.25);
}

.table-tile span,
.table-tile small {
  font-size: 11px;
  font-weight: 850;
}

.table-tile em {
  max-width: 82px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile-edit {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 34px;
  min-height: 28px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.74);
  color: white;
  font-size: 11px;
  opacity: 0;
}

.table-tile:hover .tile-edit {
  opacity: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.badge.good {
  background: #dcfce7;
  color: #166534;
}

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

.badge.bad {
  background: #ffe4e6;
  color: #9f1239;
}

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

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f6;
}

.list-row:last-child {
  border-bottom: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.product-card {
  padding: 14px;
}

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

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.price {
  font-size: 20px;
  font-weight: 900;
}

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

.csv-help {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.token-reveal {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

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

.token-box code {
  overflow: auto;
  padding: 10px;
  border-radius: 6px;
  background: white;
  border: 1px solid #dcfce7;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.order-list {
  max-height: 640px;
  overflow: auto;
}

.order-card {
  padding: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.order-card.active {
  outline: 3px solid rgba(15, 118, 110, 0.15);
  border-color: var(--brand);
}

.quick-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.quick-products .full {
  grid-column: 1 / -1;
}

.quick-products button {
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  text-align: left;
}

.capture-panel {
  display: grid;
  align-content: start;
  min-height: 100%;
  background: #f1f1f1;
}

.capture-products {
  max-height: 210px;
  overflow: auto;
  padding: 10px 20px;
  background: #e3e3e3;
}

.capture-products button {
  display: grid;
  gap: 4px;
  min-height: 108px;
}

.pick-product-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(30px, auto) 16px 14px 18px;
  align-content: start;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.pick-product-card.selected {
  border-color: #f4511e;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(244, 81, 30, 0.12);
}

.product-qty-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f4511e;
  color: white;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
}

.pick-product-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.1;
  word-break: break-word;
}

.pick-product-card span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-product-card small {
  overflow: hidden;
  color: #0f766e;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-product-card b {
  align-self: end;
  font-size: 13px;
  line-height: 1.1;
}

.order-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: #f43f4f;
  color: white;
}

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

.mobile-capture-close {
  display: none;
}

.order-header h3,
.order-header p,
.order-meta h3,
.compact-head h3 {
  margin: 0;
}

.order-header p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.order-header .primary {
  background: rgba(141, 22, 31, 0.52);
}

.order-meta {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #999;
  color: white;
}

.add-strip {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 16px 20px;
  background: #dedede;
}

.add-square {
  min-height: 44px;
  border-radius: 4px;
  background: #ff7900;
  color: white;
  font-size: 26px;
  font-weight: 900;
}

.empty-order-pane {
  min-height: 100%;
  display: grid;
  place-content: center;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.pending-box,
.existing-box {
  border-top: 1px solid #d8d8d8;
  padding: 14px 20px;
}

.pending-box.has-items {
  border-left: 5px solid #ff7900;
  background: #ffdf80;
}

.pending-box {
  font-size: 13px;
}

.pending-box .compact-head h3 {
  font-size: 18px;
}

.pending-box .compact-head strong {
  font-size: 16px;
}

.compact-head,
.confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.confirm-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.pending-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
  line-height: 1.2;
}

.pending-row strong {
  font-size: 13px;
  line-height: 1.15;
}

.pending-row small {
  font-size: 11px;
  line-height: 1.15;
}

.pending-row .qty-control {
  transform: scale(0.92);
  transform-origin: center;
}

.pending-row .icon-btn {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

.pending-row::before {
  content: "";
  width: 4px;
  align-self: stretch;
  background: #ff7900;
  border-radius: 999px;
}

.order-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f6;
}

.order-item-row strong {
  white-space: nowrap;
}

.order-item-row.cancelled {
  opacity: 0.55;
  text-decoration: line-through;
}

.cancel-item-btn {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 7px;
  background: #facc15;
  color: #7c2d12;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
}

.cancel-item-btn:hover {
  background: #f59e0b;
}

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

.icon-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
}

.full-width {
  width: 100%;
}

.total-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -14px -20px 12px;
  padding: 0 20px;
  background: #666;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.close-table-row {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px 22px;
}

.close-table-row .danger {
  background: #333;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.24);
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.permission-check {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.roles-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.58fr) minmax(420px, 0.42fr);
  min-height: calc(100vh - 124px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
}

.roles-list-pane {
  border-right: 1px solid var(--line);
  background: #f8f8f8;
}

.roles-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  background: #666;
}

.roles-topbar .primary {
  background: #333;
}

.roles-table {
  width: calc(100% - 48px);
  margin: 24px;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.roles-table th,
.roles-table td {
  height: 66px;
  padding: 0 26px;
  border-bottom: 1px solid #e9e9e9;
  text-align: left;
}

.roles-table th {
  color: #7a818a;
  font-size: 18px;
  font-weight: 500;
}

.roles-table tr {
  cursor: pointer;
}

.roles-table tr.active {
  background: #ffe082;
}

.role-delete {
  color: #d6d6d6;
  font-size: 24px;
}

.roles-detail-pane {
  background: #f2f2f2;
  min-width: 0;
}

.role-detail-form {
  min-height: 100%;
  display: grid;
  align-content: start;
}

.role-detail-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #ff7900;
  color: white;
}

.role-detail-header h3 {
  margin: 0;
}

.role-detail-header small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.role-edit-btn {
  min-width: 52px;
  min-height: 46px;
  border-radius: 6px;
  background: rgba(122, 55, 0, 0.35);
  color: white;
  font-weight: 850;
}

.role-actions {
  display: flex;
  gap: 10px;
}

.role-flags {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px 22px;
  padding: 32px 24px;
  font-size: 18px;
}

.permissions-title {
  padding: 18px 24px;
  background: #999;
  color: white;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-message {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 850;
}

.profile-message.ok {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.profile-message.error {
  border: 1px solid #fecdd3;
  background: #ffe4e6;
  color: #9f1239;
}

.permission-section {
  padding: 26px 24px 8px;
  border-bottom: 1px solid #ddd;
}

.permission-section h4 {
  margin: 0 0 18px;
  font-size: 18px;
  text-transform: uppercase;
}

.permission-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  font-size: 17px;
  cursor: pointer;
}

.permission-line:hover {
  color: var(--ink);
}

.permission-line input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
  margin: 0;
}

.permission-line span {
  width: 34px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.permission-line.disabled {
  color: #b8b8b8;
}

.permission-line.disabled span {
  background: #eceff3;
  color: #98a2b3;
}

.product-picker {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.product-picker aside {
  display: grid;
  align-content: start;
  background: #f1f3f5;
  border-right: 1px solid var(--line);
}

.product-picker aside button {
  min-height: 48px;
  padding: 0 16px;
  background: transparent;
  border-bottom: 1px solid #e3e7eb;
  text-align: left;
  font-weight: 850;
  color: var(--muted);
}

.product-picker aside button.active {
  background: #ffe082;
  color: var(--ink);
}

.product-picker section {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  padding: 0;
  max-height: 520px;
  overflow: auto;
}

.picker-product-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "check name tools"
    "check price tools";
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: white;
  text-align: left;
}

.picker-product-row:hover,
.picker-product-row.selected {
  background: #fff7ed;
}

.picker-check {
  grid-area: check;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #eef0f2;
  border-radius: 999px;
  color: white;
  font-size: 14px;
  font-weight: 950;
}

.picker-product-row.selected .picker-check {
  border-color: #f4511e;
  background: #f4511e;
}

.picker-product-row strong {
  grid-area: name;
  min-width: 0;
  color: #2d2d2d;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.picker-product-row b {
  grid-area: price;
  color: #2d2d2d;
  font-size: 16px;
  white-space: nowrap;
}

.picker-qty-tools {
  grid-area: tools;
  display: grid;
  grid-template-columns: 32px 24px 32px;
  align-items: center;
  gap: 4px;
}

.picker-qty-tools.hidden {
  display: none;
}

.picker-qty-tools i {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #333;
  color: white;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.picker-qty-tools em {
  color: #333;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.product-picker-actions {
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), #fff 35%);
}

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

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
}

.inline-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 8px;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover,
.clickable-row.active {
  background: #f8fafc;
}

.detail-row > td {
  background: #f8fafc;
  padding: 16px;
}

.sale-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 1fr);
  gap: 16px;
}

.sale-detail-grid > div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.sale-detail-grid h4 {
  margin: 0 0 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: 130px 1fr 82px;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--brand);
}

.hour-report {
  display: grid;
  gap: 8px;
}

.hour-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 100px 80px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
}

.hour-row:last-child {
  border-bottom: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.48);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
}

.modal-card.wide-modal {
  width: min(880px, 100%);
}

.modal-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 16px;
}

.mobile-menu {
  display: inline-flex;
}

@media (max-width: 980px) {
  .auth-shell,
  .app-shell,
  .two-col,
  .sales-more-panel,
  .order-layout,
  .tables-workspace,
  .roles-workspace {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 360px;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 300px);
    max-width: 300px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 40;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.32);
  }

  .app-shell.sidebar-hidden .sidebar {
    width: min(82vw, 300px);
  }

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

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: none;
    background: rgba(15, 23, 42, 0.46);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .sidebar-close {
    width: 36px;
    height: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 22px;
    font-weight: 900;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar {
    padding: 0 16px;
  }

  .content {
    padding: 16px;
  }

  .tables-workspace {
    min-height: calc(100vh - 96px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .tables-map-pane {
    padding: 14px;
  }

  .tables-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -14px -14px 16px;
    padding: 12px 14px;
    background: #565656;
    color: white;
  }

  .tables-toolbar .muted {
    color: rgba(255, 255, 255, 0.78);
  }

  .zone-panel {
    margin-bottom: 22px;
  }

  .zone-tab {
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 18px;
  }

  .table-map {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 16px;
  }

  .table-tile {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-height: 68px;
  }

  .table-tile strong {
    font-size: clamp(30px, 10vw, 48px);
  }

  .table-tile.selected {
    outline: 6px solid #ffe566;
  }

  .order-side-pane {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: none;
    overflow: auto;
    border: 0;
    background: rgba(17, 24, 39, 0.48);
  }

  .order-side-pane.mobile-open {
    display: block;
  }

  .order-side-pane .capture-panel {
    min-height: 100vh;
    max-width: 720px;
    margin: 0 auto;
    background: #f1f1f1;
  }

  .mobile-capture-close {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border-color: rgba(255, 255, 255, 0.45);
  }

  .kpis,
  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roles-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-picker {
    grid-template-columns: 1fr;
  }

  .product-picker aside {
    grid-auto-flow: column;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-picker aside button {
    min-width: 150px;
  }

  .report-filters,
  .hour-row {
    grid-template-columns: 1fr;
  }

  .sales-more-tabs {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
  }

  .sales-more-tabs button {
    min-width: 150px;
    text-align: center;
  }

  .sales-more-tabs button.active {
    box-shadow: inset 0 -3px 0 #ef4444;
  }
}

@media (max-width: 640px) {
  .modal {
    padding: 10px;
  }

  .modal-card {
    padding: 16px;
  }

  .modal-card.wide-modal {
    width: min(100%, 560px);
  }

  .modal-card.wide-modal h3 {
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 1.15;
  }

  .product-picker {
    min-height: 0;
    max-height: calc(100vh - 210px);
  }

  .product-picker aside button {
    min-width: 124px;
    min-height: 52px;
    padding: 0 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .product-picker section {
    max-height: calc(100vh - 285px);
  }

  .picker-product-row {
    min-height: 78px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .picker-product-row strong {
    font-size: 16px;
  }

  .picker-product-row b {
    font-size: 14px;
  }

  .picker-qty-tools {
    grid-template-columns: 34px 22px 34px;
  }

  .picker-qty-tools i {
    width: 34px;
    height: 34px;
  }

  .product-picker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-picker-actions button {
    min-height: 48px;
    width: 100%;
  }

  .auth-panel {
    padding: 14px;
  }

  .auth-card {
    padding: 18px;
  }

  .form-grid,
  .kpis,
  .three-col {
    grid-template-columns: 1fr;
  }

  .auth-metrics {
    grid-template-columns: 1fr;
  }

  .top-actions .user-chip {
    display: none;
  }

  .pending-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .people-field {
    grid-template-columns: 1fr;
  }

  .people-stepper {
    justify-content: start;
  }

  .qty-control,
  .table-actions,
  .row-actions {
    justify-content: start;
  }

  .split-summary-strip,
  .split-totals,
  .split-pay-form,
  .split-guest-name,
  .split-guest-card,
  .split-item-card form {
    grid-template-columns: 1fr;
  }

  .split-layout {
    max-height: calc(100vh - 210px);
  }

  .split-title-row {
    display: grid;
  }

  .split-person-buttons {
    grid-template-columns: 1fr;
  }

  .split-qty-field {
    grid-template-columns: 1fr;
  }

  .split-guest-line {
    grid-template-columns: minmax(0, 1fr) auto 36px;
  }

  .split-pay-form button,
  .split-guest-name button {
    width: 100%;
  }
}
