:root {
  color-scheme: light;
  --ink: #16221c;
  --muted: #66736c;
  --soft: #f3f5f1;
  --canvas: #eef1ec;
  --surface: #ffffff;
  --line: #dce3dd;
  --green-950: #061b12;
  --green-900: #09271a;
  --green-800: #103a28;
  --green-700: #185239;
  --green-100: #dcece3;
  --gold: #d8a83f;
  --gold-dark: #ae7f1f;
  --danger: #a63838;
  --danger-soft: #f9e8e7;
  --success: #24764e;
  --shadow: 0 14px 36px rgba(17, 39, 27, 0.08);
}

/* Native operations modules */
.native-module-root {
  min-height: 420px;
}

.nested-stock-tabs {
  margin-bottom: 16px;
}

.input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 6px;
}

.compact-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.option-admin-copy,
.option-photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-option-thumb,
.option-photo-preview img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  vertical-align: middle;
}

.native-invoice-preview {
  display: block;
  width: 100%;
  min-height: 420px;
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}

.invoice-analysis-wait {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.invoice-analysis-wait strong {
  display: block;
  margin-bottom: 6px;
}

.invoice-comparison-table {
  min-width: 980px;
}

.invoice-comparison-table td:nth-child(6) input {
  min-width: 92px;
  font-weight: 700;
}

.invoice-review-confirmation {
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
}

.stock-mode-tabs,
.alcohol-review-filters {
  margin-bottom: 12px;
}

.bookkeeping-panels .native-list-row {
  width: 100%;
  text-align: left;
}

.option-photo-preview img {
  width: 96px;
  height: 96px;
}

.module-tabs {
  display: flex;
  gap: 7px;
  margin: 0 0 18px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  scrollbar-width: thin;
}

.module-tab {
  min-height: 39px;
  padding: 9px 13px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.module-tab:hover {
  color: var(--ink);
  background: var(--soft);
}

.module-tab.active {
  color: #fff;
  background: var(--green-800);
  box-shadow: 0 5px 16px rgba(16, 58, 40, 0.16);
}

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

.native-grid > .surface {
  min-width: 0;
}

.native-grid .span-full,
.native-form .span-full {
  grid-column: 1 / -1;
}

.native-metrics,
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.native-metrics .metric-card,
.report-metrics .metric-card {
  min-height: 112px;
}

.metric-card.accent-metric {
  border-color: rgba(216, 168, 63, 0.48);
  background: linear-gradient(140deg, #fffdf7, #fff);
}

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

.native-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.native-list-row strong,
.native-list-row span,
.native-list-row small {
  overflow-wrap: anywhere;
}

.native-list-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.data-table td .button,
.data-table td .icon-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.status-pill.pending,
.status-pill.open,
.status-pill.review {
  color: #79590e;
  background: #fff4d5;
}

.status-pill.closed,
.status-pill.paid,
.status-pill.complete,
.status-pill.resolved,
.status-pill.reviewed,
.status-pill.sent {
  color: var(--success);
  background: #e3f4e9;
}

.status-pill.failed,
.status-pill.voided,
.status-pill.error,
.status-pill.missing {
  color: var(--danger);
  background: var(--danger-soft);
}

.native-form,
.inline-form {
  display: grid;
  gap: 13px;
}

.native-form.wide-form {
  min-width: min(760px, 78vw);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.table-subtext {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.form-grid-two,
.form-grid-three {
  display: grid;
  gap: 13px;
}

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

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

.form-grid-two .span-two,
.form-grid-three .span-two {
  grid-column: span 2;
}

.inline-form {
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: end;
}

.inline-form.three-field {
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
}

.module-search {
  width: min(360px, 100%);
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.report-date-form {
  align-items: end;
}

.closing-focus {
  min-height: 180px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
}

.closing-focus strong {
  font-size: 38px;
}

.closing-focus span {
  color: var(--muted);
}

.native-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.native-detail-row {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.native-detail-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-totals {
  display: grid;
  gap: 7px;
  width: min(320px, 100%);
  margin: 14px 0 14px auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.detail-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-totals .amount-due {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

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

.session-native-card,
.alcohol-native-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.session-native-card .button-row,
.alcohol-native-card .button-row {
  margin-top: 13px;
}

.session-progress {
  height: 8px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.session-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
}

.mini-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

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

.alcohol-native-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--soft);
}

.alcohol-review-list {
  display: grid;
  gap: 12px;
}

.alcohol-review-native {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.alcohol-review-native.has-warning {
  border-color: #e5c568;
  background: #fffdf5;
}

.review-controls {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.operations-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
}

.operations-dialog > div {
  padding: 24px;
}

@media (max-width: 1180px) {
  .native-metrics,
  .report-metrics,
  .session-native-grid,
  .alcohol-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 860px) {
  .native-grid,
  .form-grid-three,
  .native-detail-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-three .span-two {
    grid-column: auto;
  }

  .report-filter-grid,
  .inline-form.three-field {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .review-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .native-metrics,
  .report-metrics,
  .session-native-grid,
  .alcohol-item-grid,
  .form-grid-two,
  .report-filter-grid,
  .inline-form,
  .inline-form.three-field {
    grid-template-columns: 1fr;
  }

  .form-grid-two .span-two,
  .form-grid-three .span-two {
    grid-column: auto;
  }

  .native-form.wide-form {
    min-width: 0;
  }

  .operations-dialog > div {
    padding: 17px;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hidden {
  display: none !important;
}

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

.eyebrow,
.nav-label {
  margin: 0 0 7px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(216, 168, 63, 0.55);
  border-radius: 12px;
  color: var(--gold);
  background: rgba(216, 168, 63, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 800;
}

.brand-mark.large {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  font-size: 45px;
}

.button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  padding: 11px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.button:hover,
.icon-button:hover {
  border-color: #bdc9bf;
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

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

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

.button.ghost {
  background: transparent;
}

.button.danger {
  border-color: #e8c1bd;
  color: var(--danger);
  background: var(--danger-soft);
}

.button.full {
  width: 100%;
}

.button.compact,
.icon-button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 13px;
}

.button-row,
.top-actions,
.hero-actions,
.upload-box,
.menu-page-toolbar,
.menu-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row.end {
  justify-content: flex-end;
}

.language-switcher {
  min-width: max-content;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(38px, 1fr));
  padding: 3px;
  border: 1px solid #cad5ce;
  border-radius: 8px;
  background: #eef3f0;
}

.language-switcher button {
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  color: #526158;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.language-switcher button.active {
  color: #fff;
  background: var(--green-800);
  box-shadow: 0 1px 3px rgba(6, 27, 18, 0.18);
}

.auth-language-switcher {
  justify-self: end;
  margin-bottom: 3px;
}

.text-link {
  color: var(--green-700);
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(420px, 0.9fr);
  background: var(--surface);
}

.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(42px, 7vw, 92px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 27, 18, 0.88), rgba(9, 39, 26, 0.72)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?q=80&w=1800&auto=format&fit=crop") center/cover;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(216, 168, 63, 0.28), transparent 34%);
}

.auth-brand-lockup {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.auth-brand-member {
  display: none;
}

body.member-auth-entry .auth-brand-staff {
  display: none;
}

body.member-auth-entry .auth-brand-member {
  display: block;
}

body.member-auth-entry .auth-visual {
  background:
    linear-gradient(135deg, rgba(4, 43, 33, 0.9), rgba(10, 73, 54, 0.68)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?q=80&w=1800&auto=format&fit=crop") center/cover;
}

.auth-brand-lockup p {
  margin: 22px 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand-lockup h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 500;
  line-height: 0.99;
}

.auth-brand-lockup > span:last-child {
  max-width: 560px;
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.65;
}

.auth-form-wrap {
  display: grid;
  place-items: center;
  padding: 34px;
}

.auth-form-wrap.access-wrap {
  grid-column: 1 / -1;
  min-height: 100vh;
  background: linear-gradient(145deg, var(--green-950), var(--green-800));
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 17px;
}

.auth-link-row { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; }
.text-button { border: 0; padding: 2px; background: transparent; color: #19634a; font: inherit; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.profile-form { max-width: 1100px; }
.profile-sensitive-status { color: #53625b; font-size: .84rem; }
.identity-directory { display: grid; gap: 18px; }
.identity-directory select { min-width: 180px; }
.surface-note { margin: -4px 20px 14px; color: #627069; font-size: .84rem; }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.schedule-matrix-wrap { overflow: auto; border-top: 1px solid #dce4df; }
.schedule-matrix { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.schedule-matrix th, .schedule-matrix td { min-width: 150px; padding: 10px; border-right: 1px solid #e0e7e3; border-bottom: 1px solid #e0e7e3; text-align: left; vertical-align: top; }
.schedule-matrix th:first-child { position: sticky; left: 0; z-index: 2; min-width: 120px; background: #f6f8f7; }
.schedule-matrix thead th { position: sticky; top: 0; z-index: 1; background: #f6f8f7; }
.schedule-matrix thead th:first-child { z-index: 3; }
.shift-chip { display: grid; gap: 2px; min-height: 44px; padding: 7px 9px; border-left: 4px solid transparent; border-radius: 4px; font-size: .78rem; }
.shift-chip + .shift-chip { margin-top: 6px; }
.shift-chip small { color: inherit; opacity: .76; }
.shift-chip.opener { color: #554500; background: #fff4ba; border-color: #d9ad00; }
.shift-chip.day { color: #083b66; background: #dceeff; border-color: #2a80bf; }
.shift-chip.closer { color: #6a2707; background: #ffe0cc; border-color: #dc6a24; }
.shift-off { color: #87918c; font-size: .8rem; }

.access-wrap .auth-card {
  padding: 32px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin-bottom: 0;
  font-size: 38px;
}

.mobile-auth-brand {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: #526158;
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ced8d0;
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  padding: 11px 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input,
select {
  min-height: 44px;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(24, 82, 57, 0.1);
}

.form-message {
  min-height: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-message:not(:empty) {
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--soft);
}

.form-message.error {
  color: var(--danger);
  background: var(--danger-soft);
}

.form-message.success {
  color: var(--success);
  background: #e7f3ec;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 276px;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(216, 168, 63, 0.14), transparent 22rem),
    var(--green-950);
  box-shadow: 8px 0 28px rgba(5, 22, 14, 0.12);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-brand div,
.sidebar-account div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sidebar-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.sidebar-brand span:not(.brand-mark),
.sidebar-account span:not(.avatar) {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.57);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-label {
  margin: 20px 11px 7px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  margin: 2px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  color: #fff;
  background: rgba(216, 168, 63, 0.16);
  box-shadow: inset 3px 0 0 var(--gold);
}

.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  font-weight: 900;
}

.sidebar-account {
  min-height: 65px;
  padding: 12px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-account strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--green-900);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.app-stage {
  min-height: 100vh;
  margin-left: 276px;
}

.topbar {
  min-height: 78px;
  padding: 14px clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

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

.topbar-title .eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.topbar-title h1 {
  overflow: hidden;
  font-size: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-button {
  display: none;
}

.main-content {
  padding: clamp(18px, 3vw, 38px);
}

.module-panel {
  display: none;
  max-width: 1540px;
  margin: 0 auto;
}

.module-panel.active {
  display: block;
}

.floor-module-panel.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 112px);
}

.floor-heading {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.floor-workspace {
  width: 100%;
  min-height: 720px;
  flex: 1 1 auto;
  border: 0;
  background: #07130e;
}

body.floor-active,
body.floor-active .app-stage,
body.floor-active .main-content {
  background: #07130e;
}

body.floor-active .main-content {
  padding: 0;
}

body.floor-active .app-stage > .topbar {
  display: none;
}

body.floor-active .floor-module-panel.active {
  max-width: none;
  min-height: 100dvh;
  margin: 0;
}

body.floor-active .floor-workspace {
  min-height: 100dvh;
}

.floor-reload-button {
  width: 40px;
  padding: 0;
  font-size: 23px;
}

.compact-codebox {
  min-height: 148px;
  font-size: 12px;
}

.schedule-import-review {
  display: grid;
  gap: 18px;
}

.schedule-import-preview {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f3f5f1;
  border: 1px solid var(--line);
}

.schedule-review-table input,
.schedule-review-table select {
  min-width: 150px;
}

.schedule-review-table td:first-child input {
  min-width: 190px;
}

.hero-card {
  min-height: 250px;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(6, 27, 18, 0.98) 10%, rgba(9, 39, 26, 0.89) 58%, rgba(9, 39, 26, 0.42)),
    url("https://images.unsplash.com/photo-1572116469696-31de0f17cc34?q=80&w=1800&auto=format&fit=crop") center 55%/cover;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 25%, rgba(216, 168, 63, 0.22), transparent 28%);
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  margin-bottom: 10px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 500;
}

.hero-card p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.hero-card .button.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero-card .button.primary {
  border-color: var(--gold);
  color: var(--green-950);
  background: var(--gold);
}

.personal-attendance-control {
  margin-top: 16px;
}

.personal-attendance-panel {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid #a97816;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.personal-attendance-panel.active {
  border-left-color: #17834e;
  background: #f7fcf8;
}

.personal-attendance-panel.on-break {
  border-left-color: #2777b7;
  background: #f6fafe;
}

.personal-attendance-panel.compact {
  margin-bottom: 16px;
  box-shadow: none;
}

.personal-attendance-state {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.personal-attendance-state > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.personal-attendance-state strong {
  color: var(--ink);
  font-size: 21px;
}

.personal-attendance-state small,
.personal-attendance-panel > p {
  color: var(--muted);
  line-height: 1.4;
}

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

.personal-attendance-panel > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.personal-closeout-review {
  min-width: min(900px, 86vw);
}

.personal-closeout-details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.personal-closeout-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.personal-closeout-details[open] summary {
  margin-bottom: 10px;
}

.metric-grid {
  margin: 18px 0 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-grid.compact-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.metric-card {
  min-height: 135px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  align-content: space-between;
  background: var(--surface);
  box-shadow: 0 7px 20px rgba(17, 39, 27, 0.04);
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.metric-card strong {
  margin: 8px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  font-weight: 500;
}

.metric-card strong.status-good {
  color: var(--success);
}

.metric-card small {
  color: #87928b;
  font-size: 11px;
}

.owner-dashboard-root {
  display: grid;
  gap: 18px;
}

.owner-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.owner-dashboard-head h2 {
  margin: 2px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}

.owner-dashboard-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.owner-scoreboard {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.owner-scoreboard article {
  min-width: 0;
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.owner-scoreboard article:last-child {
  border-right: 0;
}

.owner-scoreboard article > span,
.owner-panel-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-scoreboard article > strong {
  margin: 9px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.owner-scoreboard .owner-sales-card > strong {
  font-size: 42px;
}

.owner-scoreboard small {
  color: var(--muted);
  font-size: 11px;
}

.owner-change.up { color: var(--success); }
.owner-change.down { color: var(--danger); }
.owner-change.neutral { color: var(--muted); }

.owner-tender-line {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.owner-tender-line span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.owner-tender-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39805c;
}

.owner-tender-line i.card { background: #245d83; }
.owner-tender-line b { color: var(--ink); }

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

.owner-panel {
  min-width: 0;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.owner-panel-head {
  min-height: 42px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}

.owner-panel-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.owner-trend-chart {
  height: 178px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.owner-trend-day {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 20px 1fr 28px;
  gap: 4px;
  text-align: center;
}

.owner-trend-value {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-trend-track {
  min-height: 90px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.owner-trend-track i {
  width: min(30px, 72%);
  min-height: 3px;
  background: #287255;
}

.owner-trend-day b {
  color: var(--muted);
  font-size: 10px;
}

.owner-health {
  padding: 5px 8px;
  color: var(--success);
  background: #edf7f0;
  font-size: 10px;
}

.owner-health.attention {
  color: #8a5d00;
  background: #fff5d8;
}

.owner-attention-list,
.owner-top-items,
.owner-money-list {
  margin-top: 12px;
  display: grid;
}

.owner-attention-row {
  width: 100%;
  min-height: 47px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.owner-attention-row:last-child { border-bottom: 0; }
.owner-attention-row span:nth-child(2) { display: grid; gap: 2px; }
.owner-attention-row small { color: var(--muted); }
.owner-attention-dot { width: 7px; height: 7px; border-radius: 50%; background: #c18a16; }
.owner-attention-row.critical .owner-attention-dot { background: var(--danger); }

.owner-top-items > div,
.owner-money-list > div {
  min-height: 43px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.owner-money-list > div { grid-template-columns: minmax(0, 1fr) auto; }
.owner-top-items > div:last-child,
.owner-money-list > div:last-child { border-bottom: 0; }
.owner-top-items span:nth-child(2) { display: grid; gap: 2px; }
.owner-top-items small { color: var(--muted); }
.owner-rank { width: 24px; color: var(--muted); font-size: 11px; text-align: center; }

.owner-clear-state {
  min-height: 150px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}

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

.owner-quick-actions button {
  min-height: 66px;
  padding: 13px;
  border: 1px solid var(--line);
  display: grid;
  gap: 3px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.owner-quick-actions button:hover { border-color: #7da08b; background: var(--soft); }
.owner-quick-actions span { color: var(--muted); font-size: 10px; }

.metric-card.daily-total-sales {
  min-height: 168px;
  border-color: #a77b1f;
  grid-column: span 2;
  background: #fffdf6;
}

.metric-card.daily-total-sales > strong {
  font-size: 44px;
  font-weight: 650;
}

.daily-tender-strips {
  display: grid;
  gap: 5px;
}

.daily-tender-strip {
  min-height: 30px;
  padding: 5px 9px;
  border-left: 5px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.daily-tender-strip.cash {
  border-color: #2f7d53;
  background: #eaf6ee;
  color: #205d3d;
}

.daily-tender-strip.card {
  border-color: #2868a9;
  background: #edf5fc;
  color: #174c80;
}

.daily-tender-strip.other {
  border-color: #755a8c;
  background: #f4eff8;
  color: #563d6a;
}

.daily-tender-strip span,
.daily-tender-strip b {
  color: inherit;
}

.employee-sales-surface .surface-head p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.daily-employee-sales-table {
  min-width: 720px;
}

.daily-employee-sales-table td {
  height: 58px;
}

.employee-card-total {
  color: #174c80;
}

.employee-clover-total {
  color: #173f73;
}

.employee-cash-total {
  color: #205d3d;
}

.employee-reconciliation-difference {
  color: #a0342d;
}

.employee-reconciliation-match {
  color: #22714a;
}

.clover-only-employee {
  background: #fff9ed;
}

.clover-reconciliation-surface {
  border-left: 5px solid #27704c;
}

.clover-reconciliation-surface.has-difference {
  border-left-color: #b13d34;
  background: #fffaf8;
}

.clover-reconciliation-surface.unavailable {
  border-left-color: #ad7523;
}

.clover-priority-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clover-priority-metrics > div {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
}

.clover-priority-metrics > div:last-child {
  border-right: 0;
}

.clover-priority-metrics span,
.clover-priority-metrics strong,
.clover-priority-metrics small {
  display: block;
}

.clover-priority-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.clover-priority-metrics strong {
  margin: 5px 0 3px;
  font-size: 25px;
}

.clover-priority-metrics small {
  color: var(--muted);
}

.clover-reconciliation-surface.has-difference .clover-priority-metrics > div:nth-child(3) strong {
  color: #a0342d;
}

.clover-reconciliation-note {
  margin: 12px 16px;
  color: var(--muted);
  font-size: 11px;
}

.clover-reconciliation-details {
  margin: 0 16px 16px;
  border: 1px solid #ddc3be;
  background: #fff;
}

.clover-reconciliation-details summary {
  padding: 12px 14px;
  color: #812d27;
  font-weight: 700;
  cursor: pointer;
}

.clover-reconciliation-details h4 {
  margin: 14px 14px 6px;
  font-size: 12px;
}

.clover-reconciliation-details .data-table-wrap {
  margin: 0 14px 14px;
}

.employee-sales-detail-row > td {
  height: auto;
  padding: 0;
  border-bottom: 1px solid #aebfb3;
  background: #f5f8f6;
}

.employee-sales-detail {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.employee-sales-detail h4 {
  margin: 0 0 -8px;
  font-size: 13px;
}

.employee-clover-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 4px solid #27704c;
  background: #e9f3ed;
}

.employee-clover-comparison.has-difference {
  border-left-color: #b13d34;
  background: #fff1ed;
}

.employee-clover-comparison > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #c8d8ce;
}

.employee-clover-comparison > div:last-child {
  border-right: 0;
}

.employee-clover-comparison span,
.employee-clover-comparison strong,
.employee-clover-comparison small {
  display: block;
}

.employee-clover-comparison span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.employee-clover-comparison strong {
  margin: 4px 0;
  font-size: 19px;
}

.employee-clover-comparison small {
  color: var(--muted);
}

.employee-sales-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.employee-sales-metrics span {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.employee-sales-metrics span:last-child {
  border-right: 0;
}

.employee-sales-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  text-transform: none;
}

.employee-tender-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 4px solid #58806a;
  background: #eaf2ed;
}

.employee-tender-comparison > div {
  padding: 12px 14px;
  border-right: 1px solid #c7d8cd;
}

.employee-tender-comparison > div:last-of-type {
  border-right: 0;
}

.employee-tender-comparison span,
.employee-tender-comparison small,
.employee-tender-comparison strong {
  display: block;
}

.employee-tender-comparison span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.employee-tender-comparison strong {
  margin: 4px 0;
  font-size: 18px;
}

.employee-tender-comparison small {
  color: var(--muted);
}

.employee-tender-comparison.has-difference {
  border-color: #b67920;
  background: #fff8e8;
}

.employee-tender-comparison em {
  grid-column: 1 / -1;
  padding: 8px 14px;
  border-top: 1px solid #e5cf9e;
  color: #765315;
  font-size: 11px;
  font-style: normal;
}

.employee-check-table {
  min-width: 1040px;
}

@media (max-width: 760px) {
  .metric-card.daily-total-sales {
    grid-column: 1 / -1;
  }

  .clover-priority-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clover-priority-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .clover-priority-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .clover-reconciliation-details {
    margin-inline: 10px;
  }

  .employee-sales-detail {
    padding: 14px 10px;
  }

  .employee-clover-comparison {
    grid-template-columns: 1fr;
  }

  .employee-clover-comparison > div {
    border-right: 0;
    border-bottom: 1px solid #c8d8ce;
  }

  .employee-clover-comparison > div:last-child {
    border-bottom: 0;
  }

  .employee-sales-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-sales-metrics span:nth-child(2n) {
    border-right: 0;
  }

  .employee-tender-comparison {
    grid-template-columns: 1fr;
  }

  .employee-tender-comparison > div {
    border-right: 0;
    border-bottom: 1px solid #c7d8cd;
  }
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 7px;
  font-size: 30px;
}

.section-heading p:not(.eyebrow) {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.split-heading,
.surface-head,
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

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

.module-card {
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.module-card:hover {
  border-color: #bac9bd;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.module-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.module-symbol {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: 11px;
  font-weight: 900;
}

.module-arrow {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.surface,
.website-workspace {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(17, 39, 27, 0.04);
}

.surface {
  padding: 22px;
}

.surface-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.surface-head h3,
.dialog-head h2 {
  margin: 0;
}

.secure-pill,
.status-pill,
.permission-chip,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.secure-pill {
  padding: 7px 10px;
  color: var(--green-700);
  background: var(--green-100);
}

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

.add-employee-toggle {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 15px;
}

.unified-account-table { min-width: 1080px; }
.employee-private-editor { padding: 12px; border: 1px solid #dce4df; border-radius: 6px; }
.employee-private-editor summary { cursor: pointer; font-weight: 800; color: #18392d; }
.employee-private-editor[open] summary { margin-bottom: 14px; }

.stack {
  display: grid;
  gap: 15px;
}

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

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

.permission-fieldset {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.permission-fieldset legend {
  padding: 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.permission-fieldset > p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.permission-groups {
  display: grid;
  gap: 13px;
}

.permission-group {
  display: grid;
  gap: 8px;
}

.permission-group > strong {
  color: var(--green-700);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permission-option {
  grid-template-columns: 18px 1fr;
  align-items: flex-start;
  gap: 9px;
  padding: 8px;
  border-radius: 9px;
  background: var(--soft);
  cursor: pointer;
}

.permission-option input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--green-700);
}

.permission-option span {
  display: grid;
  gap: 2px;
}

.permission-option b {
  color: var(--ink);
  font-size: 12px;
}

.permission-option small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

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

.person-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.person-main {
  min-width: 0;
}

.person-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.person-main p {
  margin: 4px 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.person-meta small {
  color: var(--muted);
  font-size: 9px;
  text-transform: none;
}

.permission-summary {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.permission-chip {
  padding: 5px 7px;
  color: var(--green-700);
  background: var(--green-100);
}

.permission-chip.muted-chip {
  color: var(--muted);
  background: var(--soft);
}

.status-pill {
  padding: 5px 7px;
  color: #765b17;
  background: #f7edce;
}

.status-pill.active,
.status-pill.registered {
  color: var(--success);
  background: #e4f2e9;
}

.status-pill.disabled {
  color: var(--danger);
  background: var(--danger-soft);
}

.pending-surface {
  margin-top: 16px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

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

.data-table th {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.loading-state,
.empty-state {
  padding: 24px;
  border: 1px dashed #c8d4ca;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.empty-state p {
  margin: 7px 0 0;
  font-size: 12px;
}

.empty-state.error-state {
  border-color: #e8c1bd;
  color: var(--danger);
  background: var(--danger-soft);
}

.embedded-panel.active {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - 154px);
}

.admin-frame {
  width: 100%;
  min-height: calc(100vh - 236px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.website-workspace {
  min-height: 680px;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  overflow: hidden;
}

.website-tabs {
  padding: 16px 11px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #f8faf7;
}

.website-tab {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.website-tab:hover,
.website-tab.active {
  color: var(--green-800);
  background: var(--green-100);
}

.website-editor {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
}

.website-panel {
  display: none;
  gap: 15px;
}

.website-panel.active {
  display: grid;
}

.panel-head {
  margin-bottom: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin-bottom: 6px;
}

.panel-head p,
.notice,
#statusText {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.codebox {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.savebar {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.error-text {
  color: var(--danger) !important;
}

.pill {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--green-700);
  background: var(--green-100);
}

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

.menu-page-editor,
.advanced-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fbf8;
}

.menu-page-editor {
  padding: 13px;
  display: grid;
  grid-template-columns: 54px minmax(130px, 190px) 1fr;
  gap: 13px;
}

.menu-page-editor.dragging {
  opacity: 0.55;
}

.menu-page-editor.drop-target {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(24, 82, 57, 0.1);
}

.drag-handle {
  min-height: 145px;
  border: 1px dashed #bac8bd;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: grab;
}

.menu-page-thumb {
  min-height: 145px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f3eddd;
}

.menu-page-thumb img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  background: #fff;
}

.menu-page-placeholder {
  min-height: 145px;
  padding: 14px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--green-800);
  text-align: center;
}

.menu-page-placeholder span {
  color: var(--muted);
  font-size: 10px;
}

.menu-page-fields {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.menu-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-page-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.menu-page-actions input[type="file"] {
  max-width: 280px;
}

.advanced-editor {
  padding: 14px;
}

.advanced-editor summary {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.advanced-editor p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.advanced-editor label {
  margin-top: 13px;
}

.employee-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 30px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 80px rgba(6, 27, 18, 0.3);
  overflow-y: auto;
}

.employee-dialog::backdrop {
  background: rgba(6, 27, 18, 0.68);
  backdrop-filter: blur(3px);
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: min(380px, calc(100% - 40px));
  display: grid;
  gap: 9px;
}

.toast {
  padding: 13px 15px;
  border: 1px solid #b7d5c1;
  border-radius: 11px;
  color: #fff;
  background: var(--green-800);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

.toast.error {
  border-color: #d79a94;
  background: var(--danger);
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .owner-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-scoreboard article:nth-child(2) { border-right: 0; }
  .owner-scoreboard article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(6, 27, 18, 0.55);
  }

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

  .app-stage {
    margin-left: 0;
  }

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

  .website-workspace {
    grid-template-columns: 1fr;
  }

  .website-tabs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    overflow-x: auto;
  }

  .website-tab {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-form-wrap {
    min-height: 100vh;
    padding: 24px;
  }

  .mobile-auth-brand {
    display: flex;
  }

  .topbar {
    min-height: 70px;
    align-items: flex-start;
  }

  .top-actions .button:not(.danger) {
    display: none;
  }

  .main-content {
    padding: 15px;
  }

  .hero-card {
    min-height: 330px;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
  }

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

  .personal-attendance-panel {
    grid-template-columns: 1fr;
  }

  .personal-attendance-actions,
  .personal-attendance-actions .button {
    width: 100%;
  }

  .personal-attendance-actions .button {
    justify-content: center;
  }

  .personal-closeout-review {
    min-width: 0;
  }

  .metric-grid,
  .metric-grid.compact-metrics,
  .module-grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 115px;
  }

  .owner-dashboard-head { align-items: stretch; flex-direction: column; }
  .owner-dashboard-head h2 { font-size: 27px; }
  .owner-scoreboard,
  .owner-dashboard-grid,
  .owner-quick-actions { grid-template-columns: 1fr; }
  .owner-scoreboard article { min-height: 118px; border-right: 0; border-bottom: 1px solid var(--line); }
  .owner-scoreboard article:last-child { border-bottom: 0; }
  .owner-scoreboard .owner-sales-card > strong { font-size: 38px; }
  .owner-panel { padding: 16px; }
  .owner-trend-value { display: none; }
  .owner-trend-day { grid-template-rows: 1fr 28px; }

  .module-card {
    grid-template-columns: 43px 1fr;
  }

  .module-arrow {
    display: none;
  }

  .split-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .person-card {
    grid-template-columns: 39px 1fr;
  }

  .person-meta {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .admin-frame {
    min-height: 720px;
  }

  .website-editor {
    padding: 16px;
  }

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

  .menu-page-editor {
    grid-template-columns: 1fr;
  }

  .drag-handle {
    min-height: 38px;
  }

  .menu-page-actions,
  .menu-page-actions .button,
  .upload-box,
  .upload-box .button {
    width: 100%;
  }

  .menu-page-actions input[type="file"] {
    max-width: none;
  }
}

/* Device-responsive operations shell: laptop, iPad, and iPhone */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.app-stage,
.main-content,
.module-panel,
.native-module-root,
.surface,
.website-workspace,
.native-grid > *,
.form-grid-two > *,
.form-grid-three > *,
.report-filter-grid > *,
.dialog-head > *,
.surface-head > * {
  min-width: 0;
}

.native-form input,
.native-form select,
.native-form textarea,
.module-search,
.module-search input,
.data-table input,
.data-table select,
.data-table textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.optional-manager-note {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.optional-manager-note > summary {
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
}

.optional-manager-note[open] > summary {
  border-bottom: 1px solid var(--line);
}

.optional-manager-note > label,
.optional-manager-note-body {
  margin: 0;
  padding: 12px;
}

.closeout-choice-row > .button {
  flex: 1 1 150px;
  min-height: 46px;
}

.closeout-wide-action {
  width: 100%;
  min-height: 50px;
}

.closeout-row-actions {
  min-width: max-content;
  flex-wrap: nowrap;
}

.quick-closeout-action {
  box-shadow: 0 5px 14px rgba(31, 122, 77, 0.16);
}

.closeout-step-complete,
.reviewed-closeout-flag .notice {
  border-color: rgba(31, 122, 77, 0.32);
  background: rgba(31, 122, 77, 0.08);
}

.closeout-step-complete p,
.reviewed-closeout-flag .notice p {
  margin: 4px 0 0;
}

.button-row,
.top-actions,
.order-workflow-actions {
  flex-wrap: wrap;
}

.data-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.module-tabs,
.website-tabs {
  max-width: 100%;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.session-native-card {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  text-align: left;
}

progress.session-progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 12px 0 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: var(--soft);
}

progress.session-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--soft);
}

progress.session-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
}

progress.session-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
}

.session-status-row,
.review-native-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.session-status-row {
  margin-bottom: 11px;
}

.review-native-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.review-native-head small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.alcohol-review-native > a {
  display: block;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
}

.alcohol-review-native > a img {
  display: block;
  width: 100%;
  max-height: min(440px, 52vh);
  object-fit: contain;
}

.employee-dialog.operations-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.employee-dialog.operations-dialog > #operationsDialogContent {
  padding: clamp(18px, 3vw, 28px);
  padding-bottom: max(clamp(18px, 3vw, 28px), env(safe-area-inset-bottom));
}

.alcohol-session-detail .dialog-head {
  position: sticky;
  top: -28px;
  z-index: 3;
  margin: -28px -28px 18px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.alcohol-session-detail .dialog-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.native-dialog-section {
  max-width: 100%;
  margin: 18px 0;
}

.active-shifts-surface {
  margin-bottom: 18px;
  border-color: rgba(31, 122, 77, 0.3);
  box-shadow: 0 10px 28px rgba(16, 89, 55, 0.08);
}

.active-shifts-surface .surface-head p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 12px;
}

.active-shift-row {
  background: rgba(27, 126, 77, 0.035);
}

.active-shift-row:hover {
  background: rgba(27, 126, 77, 0.075);
}

.active-person {
  min-width: 175px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.live-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid #dff8e9;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(28, 142, 83, 0.14);
}

.employee-dialog.operations-dialog.wide-dialog {
  width: min(1280px, calc(100vw - 32px));
  max-width: min(1280px, calc(100vw - 32px));
}

.live-shift-detail .dialog-head {
  position: sticky;
  top: -28px;
  z-index: 4;
  margin: -28px -28px 18px;
  padding: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.live-shift-detail .dialog-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.live-shift-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.metric-card.danger-metric {
  border-color: rgba(178, 51, 51, 0.42);
  background: #fff9f8;
}

.live-reconciliation-summary {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.live-reconciliation-summary .notice {
  padding: 13px 15px;
  border-left: 4px solid var(--success);
  background: #f2faf6;
}

.live-reconciliation-summary .notice.warning {
  border-left-color: #c78918;
  background: #fff9eb;
}

.live-reconciliation-summary .notice p {
  margin: 5px 0 0;
}

.flagged-row {
  background: #fff7f5;
}

.issue-line {
  display: block;
  color: var(--danger);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.status-text-good {
  color: var(--success);
  font-size: 11px;
  font-weight: 750;
}

.live-payment-table td {
  vertical-align: top;
}

.live-shift-lists > .surface {
  margin: 0;
}

@media (max-width: 980px) {
  .sidebar {
    width: min(320px, 86vw);
  }

  .main-content {
    padding: 20px;
  }

  .topbar {
    padding-inline: 20px;
  }

  .operations-dialog .metric-grid.compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-shift-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .session-native-grid,
  .alcohol-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 10px;
    padding: 10px 14px;
  }

  .topbar-title {
    gap: 8px;
  }

  .topbar-title h1 {
    font-size: 19px;
  }

  .topbar .button,
  .topbar .icon-button {
    min-height: 40px;
    padding: 9px 11px;
  }

  .main-content {
    padding: 14px;
  }

  .surface,
  .website-editor {
    padding: 17px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .section-heading .button-row,
  .surface-head .button-row,
  .module-search {
    width: 100%;
  }

  .surface-head {
    flex-wrap: wrap;
  }

  .module-tabs {
    margin-inline: -2px;
    padding: 5px;
  }

  .module-tab {
    min-height: 42px;
  }

  .data-table {
    min-width: 680px;
  }

  .data-table.compact-table {
    min-width: 540px;
  }

  .native-list-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .native-list-row > :last-child {
    justify-self: stretch;
  }

  .review-controls {
    grid-template-columns: 1fr;
  }

  .review-controls .button {
    width: 100%;
  }

  .alcohol-review-native {
    padding: 12px;
  }

  .alcohol-session-actions .button,
  .order-workflow-actions .button,
  .order-workflow-actions a {
    flex: 1 1 180px;
  }

  .employee-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .employee-dialog.operations-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .employee-dialog.operations-dialog > #operationsDialogContent {
    min-height: 100%;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .alcohol-session-detail .dialog-head {
    top: -16px;
    margin: -16px -16px 16px;
    padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  }

  .live-shift-detail .dialog-head {
    top: -16px;
    margin: -16px -16px 16px;
    padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  }

  .live-shift-metrics {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .input-action {
    grid-template-columns: 1fr;
  }

  .auth-form-wrap {
    padding: 14px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .top-actions .danger {
    font-size: 0;
  }

  .top-actions .danger::after {
    content: attr(data-compact-label);
    font-size: 12px;
  }

  .section-heading,
  .split-heading,
  .surface-head,
  .dialog-head {
    gap: 12px;
  }

  .surface-head,
  .dialog-head {
    position: relative;
    flex-direction: column;
  }

  .dialog-head .icon-button {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }

  .dialog-head > div {
    padding-right: 62px;
  }

  .session-native-grid,
  .alcohol-item-grid {
    grid-template-columns: 1fr;
  }

  .alcohol-session-detail .metric-grid.compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .alcohol-session-detail .metric-card {
    min-height: 86px;
    padding: 11px;
  }

  .alcohol-session-detail .metric-card strong {
    font-size: 24px;
  }

  .alcohol-review-native > a img {
    max-height: 44vh;
  }

  .mini-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alcohol-session-actions,
  .order-workflow-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .alcohol-session-actions .button,
  .order-workflow-actions .button,
  .order-workflow-actions a,
  .section-heading .button-row .button,
  .section-heading .button-row a {
    width: 100%;
  }

  .toast-region {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
  }

  .floor-module-panel.active {
    min-height: calc(100dvh - 88px);
  }

  .floor-workspace {
    min-height: 680px;
  }

  body.floor-active .floor-module-panel.active,
  body.floor-active .floor-workspace {
    min-height: 100dvh;
  }
}
.table-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.table-qr-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised, #fff);
}

.table-qr-card img {
  width: 132px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.table-qr-card h4,
.table-qr-card p {
  margin: 0 0 5px;
}

.table-qr-card small {
  display: block;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.last-closed-band {
  margin-bottom: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.last-closed-heading,
.transaction-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.last-closed-heading h3,
.transaction-detail-heading h3,
.transaction-detail-heading p {
  margin: 0;
}

.last-closed-scroll {
  display: flex;
  gap: 9px;
  width: 100%;
  padding: 2px 2px 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.closed-transaction-card {
  flex: 0 0 248px;
  min-height: 116px;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}

.closed-transaction-card:hover,
.closed-transaction-card.selected {
  border-color: var(--green-700);
  box-shadow: 0 4px 14px rgba(16, 58, 40, 0.12);
}

.closed-transaction-card span,
.closed-transaction-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.closed-transaction-card small,
.report-source-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.closed-transaction-total {
  color: var(--green-800);
  font-size: 22px;
  font-weight: 900;
}

.transaction-detail-heading {
  margin: 0 0 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.related-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.related-check-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.text-link {
  padding: 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.audit-json {
  display: block;
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.inline-alert {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.report-source-note {
  margin: 14px 0 0;
}

.business-day-window {
  min-height: 66px;
  padding: 12px 15px;
  border: 1px solid #8cad9a;
  border-left: 4px solid var(--green-700);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: #f1f7f3;
}

.business-day-window-icon {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green-800);
  font-size: 11px;
  font-weight: 900;
}

.business-day-window > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.business-day-window strong {
  font-size: 12px;
}

.business-day-window > div > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.business-day-window em {
  color: #9a5712;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .last-closed-heading,
  .transaction-detail-heading {
    flex-direction: column;
  }

  .closed-transaction-card {
    flex-basis: min(82vw, 248px);
  }

  .table-qr-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .table-qr-card img {
    width: 96px;
  }
}

/* Owner dashboard */
body.owner-dashboard-active,
body.owner-dashboard-active .app-stage,
body.owner-dashboard-active .main-content {
  background: #06140f;
}

body.owner-dashboard-active .topbar {
  border-color: #173b2c;
  color: #f4f8f5;
  background: #071712;
}

body.owner-dashboard-active .topbar .eyebrow,
body.owner-dashboard-active .topbar-title h1 {
  color: #f4f8f5;
}

body.owner-dashboard-active .topbar .icon-button,
body.owner-dashboard-active .topbar .button.ghost,
body.owner-dashboard-active .topbar .language-switcher {
  border-color: #254a39;
  color: #e7f0ea;
  background: #0b2118;
}

body.owner-dashboard-active .module-panel[data-panel="dashboard"] {
  max-width: none;
}

.owner-dashboard-root {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  color: #f5f8f6;
}

.owner-dashboard-root .loading-state {
  min-height: 360px;
  color: #a8bcb0;
}

.owner-dashboard-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.owner-dashboard-head h2 {
  margin: 0 0 5px;
  color: #f7faf8;
  font-family: inherit;
  font-size: 32px;
  font-weight: 850;
}

.owner-dashboard-head p,
.owner-dashboard-head p:last-child {
  margin: 0;
  color: #91a79a;
  font-size: 13px;
}

.owner-dashboard-kicker {
  margin-bottom: 5px !important;
  color: #58d98c !important;
  font-size: 9px !important;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-dashboard-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.owner-date-control,
.owner-refresh-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #234533;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e9f1ec;
  background: #0b2118;
  font: inherit;
  font-size: 12px;
}

.owner-refresh-button {
  border-color: #1f8554;
  color: #fff;
  background: #147747;
  font-weight: 800;
  cursor: pointer;
}

.owner-refresh-button:hover {
  background: #1a8b56;
}

.owner-live-status {
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.owner-live-status::-webkit-scrollbar {
  display: none;
}

.owner-status-pill {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #274839;
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #9fb3a8;
  background: #0a1d15;
  font-size: 9px;
  font-weight: 800;
}

.owner-status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f8478;
}

.owner-status-pill.good {
  border-color: #205d3d;
  color: #9fe3b8;
  background: #0c2a1c;
}

.owner-status-pill.good i {
  background: #36d37b;
}

.owner-status-pill.warning {
  border-color: #6c501c;
  color: #f4ca7c;
  background: #2d210c;
}

.owner-status-pill.warning i {
  background: #f0a62b;
}

.owner-status-pill.critical {
  border-color: #713331;
  color: #ffb1aa;
  background: #301513;
}

.owner-status-pill.critical i {
  background: #ff6868;
}

.owner-icon {
  display: block;
  flex: 0 0 auto;
}

.owner-scoreboard {
  border: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: transparent;
}

.owner-scoreboard article,
.owner-scoreboard article:last-child {
  min-width: 0;
  min-height: 190px;
  padding: 17px;
  border: 1px solid #1b4130;
  border-radius: 8px;
  display: grid;
  grid-template-rows: 37px auto auto auto 27px;
  align-content: start;
  background: #0a2017;
}

.owner-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.owner-kpi.sales .owner-kpi-icon {
  color: #75e59c;
  background: #12653d;
}

.owner-kpi.average .owner-kpi-icon {
  color: #ffc15a;
  background: #6c470b;
}

.owner-kpi.guests .owner-kpi-icon {
  color: #7bb8ff;
  background: #153f76;
}

.owner-kpi.balance .owner-kpi-icon {
  color: #c9a4ff;
  background: #4d2d79;
}

.owner-kpi.tender .owner-kpi-icon {
  color: #80c3ff;
  background: #174a74;
}

.owner-kpi.reconciliation .owner-kpi-icon {
  color: #9fe3b8;
  background: #16593a;
}

.owner-kpi.reconciliation.warning .owner-kpi-icon {
  color: #f8c46b;
  background: #65440e;
}

.owner-kpi.reconciliation.critical .owner-kpi-icon {
  color: #ffaaa2;
  background: #672d2b;
}

.owner-scoreboard .owner-kpi-label {
  margin-top: 13px;
  color: #b5c5bc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-scoreboard article > strong,
.owner-scoreboard .owner-sales-card > strong {
  margin: 5px 0 3px;
  color: #fff;
  font-family: inherit;
  font-size: 28px;
  font-weight: 900;
}

.owner-scoreboard article > small {
  min-height: 31px;
  color: #91a79a;
  font-size: 10px;
  line-height: 1.45;
}

.owner-change.up {
  color: #54d88b;
}

.owner-change.down {
  color: #ff6868;
}

.owner-change.neutral {
  color: #91a79a;
}

.owner-mini-trend {
  height: 25px;
  margin-top: 9px;
  display: flex;
  align-items: end;
  gap: 3px;
}

.owner-mini-trend i {
  width: 100%;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: #2fbf70;
}

.owner-kpi.average .owner-mini-trend i {
  background: #d99422;
}

.owner-kpi.guests .owner-mini-trend i {
  background: #3b8be8;
}

.owner-kpi.balance .owner-mini-trend i {
  background: #8d58d7;
}

.owner-kpi-split {
  margin-top: 7px;
  display: grid;
  gap: 4px;
}

.owner-kpi-split > span {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  color: #91a79a;
  font-size: 9px;
}

.owner-kpi-split i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3589e6;
}

.owner-kpi-split i.cash {
  background: #27af69;
}

.owner-kpi-split b {
  color: #eef5f1;
  font-size: 10px;
}

.owner-kpi > button {
  width: max-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #78dca0;
  background: transparent;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

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

.owner-command-card {
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  border: 1px solid #1f4935;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  color: #f3f7f4;
  text-align: left;
  background: #0b2218;
  cursor: pointer;
}

.owner-command-card:hover {
  border-color: #34875e;
  background: #102c20;
}

.owner-command-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-command-card small {
  color: #6fdc99;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-command-card strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-command-card em {
  overflow: hidden;
  color: #8da398;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-command-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #72dfa0;
  background: #154c31;
}

.owner-command-card.workforce .owner-command-icon {
  color: #80bfff;
  background: #194a75;
}

.owner-command-card.systems .owner-command-icon {
  color: #ffc268;
  background: #67450d;
}

.owner-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  gap: 12px;
}

.owner-panel,
.owner-attention-panel,
.owner-snapshot,
.owner-quick-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid #1b4130;
  border-radius: 8px;
  color: #f4f8f5;
  background: #0a2017;
}

.owner-panel {
  min-height: 290px;
}

.owner-panel-head {
  min-height: 38px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.owner-panel-head > div {
  min-width: 0;
}

.owner-panel-head h3,
.owner-section-title h3 {
  margin: 0;
  color: #f5f8f6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-panel-head span {
  display: block;
  margin-top: 4px;
  color: #80988a;
  font-size: 10px;
  font-weight: 700;
  text-transform: none;
}

.owner-panel-link {
  padding: 3px 0;
  border: 0;
  color: #6edb96;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.owner-chart-total {
  display: block;
  margin-top: 2px;
  color: #35c873;
  font-size: 28px;
}

.owner-trend-chart {
  height: 205px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  background-image: linear-gradient(to bottom, transparent 24%, #173b2c 25%, transparent 26%, transparent 49%, #173b2c 50%, transparent 51%, transparent 74%, #173b2c 75%, transparent 76%);
}

.owner-trend-day {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: 20px 1fr 28px;
  gap: 4px;
  text-align: center;
}

.owner-trend-value {
  overflow: hidden;
  color: #93a99c;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-trend-track {
  min-height: 100px;
  border: 0;
  display: flex;
  align-items: end;
  justify-content: center;
}

.owner-trend-track i {
  width: min(34px, 68%);
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: #1ba75c;
}

.owner-trend-day b {
  color: #879d90;
  font-size: 10px;
}

.owner-trend-day b span,
.owner-trend-day b small {
  display: block;
}

.owner-trend-day b small {
  margin-top: 1px;
  color: #5f776a;
  font-size: 8px;
  font-weight: 700;
}

.owner-payment-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.owner-payment-chart {
  width: 154px;
  height: 154px;
  margin: 7px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#27af69 0 var(--owner-cash-share), #3589e6 var(--owner-cash-share) 100%);
}

.owner-payment-chart.empty {
  background: #173b2c;
}

.owner-payment-chart::before {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  content: "";
  grid-area: 1 / 1;
  background: #0a2017;
}

.owner-payment-chart > div {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  text-align: center;
}

.owner-payment-chart strong {
  color: #fff;
  font-size: 21px;
}

.owner-payment-chart span {
  color: #839a8d;
  font-size: 9px;
  text-transform: uppercase;
}

.owner-payment-legend {
  display: grid;
  gap: 8px;
}

.owner-payment-legend > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #a6b8ae;
  font-size: 10px;
}

.owner-payment-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27af69;
}

.owner-payment-legend i.cards {
  background: #3589e6;
}

.owner-payment-legend b {
  color: #f3f7f4;
}

.owner-tender-detail {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #1b4130;
  display: grid;
  gap: 5px;
}

.owner-tender-detail > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 38px;
  gap: 8px;
  align-items: center;
  color: #9db0a5;
  font-size: 9px;
}

.owner-tender-detail b {
  color: #f1f5f2;
}

.owner-tender-detail small {
  color: #657d70;
  text-align: right;
}

.owner-inline-empty {
  min-height: 54px;
  display: grid !important;
  place-items: center;
  color: #779083;
  font-size: 10px;
  text-align: center;
}

.owner-section-title {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owner-section-title > b {
  color: #ffc875;
  font-size: 10px;
}

.owner-snapshot-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-snapshot-grid > div {
  min-width: 0;
  padding: 5px 18px;
  border-right: 1px solid #1b4130;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.owner-snapshot-grid > div:first-child {
  padding-left: 0;
}

.owner-snapshot-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.owner-snapshot-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #64df91;
  background: #145f3a;
  font-size: 9px;
  font-weight: 900;
}

.owner-snapshot-icon.tax {
  color: #ffca6f;
  background: #6c460d;
}

.owner-snapshot-icon.tips {
  color: #77b8ff;
  background: #173f74;
}

.owner-snapshot-icon.adjustments {
  color: #ff9999;
  background: #662c2c;
}

.owner-snapshot-grid span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-snapshot-grid small {
  overflow: hidden;
  color: #8fa699;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.owner-snapshot-grid strong {
  color: #fff;
  font-size: 18px;
}

.owner-snapshot-grid em {
  color: #7e9488;
  font-size: 9px;
  font-style: normal;
}

.owner-followup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 12px;
}

.owner-control-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #1b4130;
  border-radius: 8px;
  color: #f4f8f5;
  background: #0a2017;
}

.owner-team-control {
  overflow: hidden;
}

.owner-team-table {
  margin-top: 12px;
  overflow-x: auto;
}

.owner-team-row {
  min-width: 850px;
  min-height: 58px;
  padding: 8px 0;
  border-bottom: 1px solid #1b4130;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(100px, .7fr));
  gap: 12px;
  align-items: center;
}

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

.owner-team-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.owner-team-row small {
  color: #769083;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-team-row b {
  color: #eef5f1;
  font-size: 11px;
}

.owner-team-name {
  grid-template-columns: 8px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: center;
}

.owner-team-name > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a5f54;
}

.owner-team-name > i.active {
  background: #35d67a;
  box-shadow: 0 0 0 4px rgba(53, 214, 122, .1);
}

.owner-team-name > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-team-name strong {
  overflow: hidden;
  color: #f7faf8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-reconcile-status.matched b {
  color: #65df94;
}

.owner-reconcile-status.mismatch b {
  color: #ff7f79;
}

.owner-reconcile-status.unmapped b {
  color: #f0bb5a;
}

.owner-attention-panel {
  min-height: 190px;
}

.owner-attention-panel.has-alerts {
  border-color: #71312f;
  background: #281411;
}

.owner-attention-list,
.owner-top-items {
  margin-top: 10px;
  display: grid;
}

.owner-attention-row {
  width: 100%;
  min-height: 58px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #4f2926;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  color: #f7f3f1;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

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

.owner-attention-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.owner-attention-row strong {
  font-size: 12px;
}

.owner-attention-row small {
  color: #c19e98;
  font-size: 10px;
}

.owner-attention-icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #ffb14f;
  background: #613116;
}

.owner-attention-row.critical .owner-attention-icon {
  color: #ff7c7c;
  background: #642829;
}

.owner-attention-row > b {
  color: #fff;
  font-size: 18px;
}

.owner-row-arrow {
  color: #b78b84;
}

.owner-audit-row {
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid #4f2926;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  color: #f5f1ef;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.owner-audit-row > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-audit-row strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.owner-audit-row small {
  overflow: hidden;
  color: #bd9994;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-audit-severity {
  min-height: 22px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #ffc078;
  background: #5c3217;
  font-size: 7px;
  font-weight: 900;
}

.owner-audit-severity.critical {
  color: #ffb0aa;
  background: #682c2b;
}

.owner-live-team {
  min-height: 190px;
}

.owner-live-staff-list {
  margin-top: 9px;
  display: grid;
}

.owner-live-staff-row {
  min-height: 51px;
  padding: 7px 0;
  border-bottom: 1px solid #1b4130;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.owner-live-staff-row:last-child {
  border-bottom: 0;
}

.owner-staff-state {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #37d77d;
}

.owner-staff-state.break {
  background: #f2ad38;
}

.owner-live-staff-row > span:not(.owner-staff-state) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-live-staff-row > span:last-child {
  text-align: right;
}

.owner-live-staff-row strong,
.owner-live-staff-row b {
  overflow: hidden;
  color: #f4f8f5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-live-staff-row small {
  color: #789184;
  font-size: 8px;
}

.owner-lower-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
}

.owner-recent-list {
  margin-top: 9px;
  display: grid;
}

.owner-transaction-row {
  width: 100%;
  min-height: 51px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #1b4130;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 10px;
  align-items: center;
  color: #edf4ef;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

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

.owner-transaction-row > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-transaction-row > span:nth-child(2) {
  text-align: right;
}

.owner-transaction-row strong,
.owner-transaction-row b {
  overflow: hidden;
  color: #f5f8f6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-transaction-row small {
  overflow: hidden;
  color: #789184;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-top-panel {
  min-height: 190px;
}

.owner-top-items > div {
  min-height: 43px;
  padding: 7px 0;
  border-bottom: 1px solid #1b4130;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.owner-top-items > div:last-child {
  border-bottom: 0;
}

.owner-top-items span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.owner-top-items strong {
  overflow: hidden;
  color: #f5f8f6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-top-items small {
  color: #82998c;
  font-size: 9px;
}

.owner-top-items > div > b {
  color: #dce7e0;
  font-size: 11px;
}

.owner-rank {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6fdf98;
  background: #153f2b;
  font-size: 10px;
}

.owner-clear-state {
  min-height: 118px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #8fa699;
  text-align: center;
}

.owner-clear-state span {
  font-size: 10px;
}

.owner-quick-actions {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.owner-quick-actions button {
  min-width: 0;
  min-height: 84px;
  padding: 10px 8px;
  border: 1px solid #204836;
  border-radius: 7px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  color: #eaf2ed;
  text-align: center;
  background: #0d271c;
  cursor: pointer;
}

.owner-quick-actions button:hover {
  border-color: #378861;
  background: #123324;
}

.owner-quick-icon {
  color: #55d889;
}

.owner-quick-actions button:nth-child(2) .owner-quick-icon {
  color: #55a2ff;
}

.owner-quick-actions button:nth-child(3) .owner-quick-icon {
  color: #ffbb51;
}

.owner-quick-actions button:nth-child(4) .owner-quick-icon {
  color: #6dabff;
}

.owner-quick-actions button:nth-child(5) .owner-quick-icon {
  color: #ba86ff;
}

.owner-quick-actions button:nth-child(6) .owner-quick-icon {
  color: #aab8b0;
}

.owner-quick-actions strong {
  overflow: hidden;
  max-width: 100%;
  color: #f4f8f5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-quick-actions small {
  overflow: hidden;
  max-width: 100%;
  color: #82998c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .owner-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-analytics-grid,
  .owner-followup-grid,
  .owner-lower-grid {
    grid-template-columns: 1fr;
  }

  .owner-command-grid {
    grid-template-columns: 1fr;
  }

  .owner-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.owner-dashboard-active .main-content {
    padding: 12px;
  }

  body.owner-dashboard-active .topbar .topbar-title > div {
    display: none;
  }

  .owner-dashboard-root {
    gap: 12px;
  }

  .owner-dashboard-head {
    min-height: 68px;
    align-items: start;
    flex-direction: row;
  }

  .owner-dashboard-head h2 {
    font-size: 27px;
  }

  .owner-dashboard-head p {
    max-width: 210px;
    font-size: 10px;
  }

  .owner-dashboard-controls {
    align-items: stretch;
  }

  .owner-date-control {
    display: none;
  }

  .owner-refresh-button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .owner-refresh-button span {
    display: none;
  }

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

  .owner-scoreboard article,
  .owner-scoreboard article:last-child {
    min-height: 184px;
    padding: 13px;
    border-bottom: 1px solid #1b4130;
  }

  .owner-scoreboard article > strong,
  .owner-scoreboard .owner-sales-card > strong {
    font-size: 23px;
  }

  .owner-panel,
  .owner-attention-panel,
  .owner-snapshot,
  .owner-quick-section {
    padding: 14px;
  }

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

  .owner-snapshot-grid > div {
    padding: 2px 10px;
  }

  .owner-snapshot-grid > div:nth-child(2) {
    border-right: 0;
  }

  .owner-snapshot-grid > div:nth-child(3) {
    padding-left: 0;
  }

  .owner-trend-value {
    display: none;
  }

  .owner-trend-day {
    grid-template-rows: 1fr 28px;
  }

  .owner-command-card {
    min-height: 72px;
  }

  .owner-control-panel {
    padding: 14px;
  }

  .owner-team-control {
    padding-right: 0;
  }

  .owner-team-control .owner-panel-head {
    padding-right: 14px;
  }

  .owner-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .owner-scoreboard article,
  .owner-scoreboard article:last-child {
    min-height: 180px;
    padding: 11px;
  }

  .owner-scoreboard article > strong,
  .owner-scoreboard .owner-sales-card > strong {
    font-size: 21px;
  }

  .owner-kpi > button {
    font-size: 8px;
  }

  .owner-status-pill {
    padding: 0 8px;
    font-size: 8px;
  }

  .owner-payment-chart {
    width: 138px;
    height: 138px;
  }

  .owner-payment-chart::before {
    width: 92px;
    height: 92px;
  }
}

/* Membership, partner programs, and customer wallet */
.member-portal-shell {
  min-height: 100dvh;
  color: #e9f1ec;
  background: #071b13;
}

.member-portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid #214333;
  background: rgba(7, 27, 19, 0.97);
  backdrop-filter: blur(12px);
}

.member-portal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.member-portal-brand > div {
  display: grid;
  gap: 1px;
}

.member-portal-brand strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.member-portal-brand span:last-child {
  color: #c6a24d;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.member-portal-main {
  width: min(1220px, 100%);
  min-height: calc(100dvh - 68px);
  margin: 0 auto;
  padding: 28px 20px max(38px, env(safe-area-inset-bottom));
}

.member-portal-main .surface {
  color: var(--ink);
  border-color: #d9e1dc;
  border-radius: 8px;
  box-shadow: none;
}

.member-portal-intro {
  min-height: 112px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #28473a;
}

.member-portal-intro h1 {
  margin: 3px 0 6px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
}

.member-portal-intro p:not(.eyebrow) {
  margin: 0;
  color: #9db1a5;
}

.member-points-balance {
  min-width: 190px;
  display: grid;
  justify-items: end;
}

.member-points-balance span {
  color: #9db1a5;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.member-points-balance strong {
  color: #e4b74c;
  font-size: 37px;
}

.member-portal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-bottom: 18px;
}

.member-digital-card {
  min-height: 330px;
  padding: 22px;
  border: 1px solid #3d674f;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  color: #fff;
  background: #0d3323;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.member-card-brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e7c66f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.member-digital-card > div:nth-child(2) {
  align-self: end;
}

.member-digital-card p {
  margin: 0 0 7px;
  color: #d7aa42;
  font-size: 10px;
  font-weight: 900;
}

.member-digital-card h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 23px;
}

.member-digital-card img {
  width: 128px;
  height: 128px;
  align-self: end;
  border: 7px solid #fff;
  border-radius: 6px;
  background: #fff;
}

.member-digital-card footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid #3e6852;
  color: #b7c9be;
  font-size: 10px;
  font-weight: 750;
}

.member-program-list,
.member-ledger,
.member-enrollment-list {
  display: grid;
  gap: 8px;
}

.member-program-list article,
.member-ledger article,
.member-enrollment-list article {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.member-program-list article:last-child,
.member-ledger article:last-child,
.member-enrollment-list article:last-child {
  border-bottom: 0;
}

.member-program-list article > div,
.member-ledger article > div,
.member-enrollment-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.member-program-list span,
.member-ledger span,
.member-enrollment-list span,
.member-enrollment-list small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.member-ledger b {
  color: var(--success);
}

.member-ledger b.negative {
  color: var(--danger);
}

.member-points-balance small {
  color: #9db1a5;
  font-size: 10px;
  font-weight: 750;
}

.member-public-benefit {
  color: #11633e !important;
  font-weight: 850;
}

.member-rewards-surface {
  margin-bottom: 18px;
}

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

.member-reward-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.member-reward-card.selected {
  border-color: #13834f;
  background: #edf9f2;
}

.member-reward-card.locked {
  background: #f6f7f6;
}

.member-reward-cost {
  width: 62px;
  min-height: 62px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 6px;
  color: #fff;
  background: #0d6b42;
}

.member-reward-cost strong {
  font-size: 19px;
  line-height: 1;
}

.member-reward-cost span {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.member-reward-card h4 {
  margin: 2px 0 4px;
  font-size: 15px;
}

.member-reward-card p,
.member-reward-card small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.member-reward-card .button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 36px;
}

.member-reward-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.wallet-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.wallet-readiness span {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--soft);
  font-size: 10px;
  font-weight: 800;
}

.wallet-readiness small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.5;
}

.member-profile-surface {
  margin-top: 18px;
}

.member-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.member-metrics .metric-card {
  min-height: 108px;
  border-radius: 8px;
}

.member-filter-row {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px auto;
  gap: 8px;
}

.member-table {
  min-width: 970px;
}

.member-table .permission-chip {
  margin: 2px 3px 2px 0;
}

.member-card-version {
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid #d8b45c;
  border-radius: 6px;
  color: #775715;
  background: #fff8e5;
  font-size: 10px;
  font-weight: 900;
}

.member-program-admin-list {
  display: grid;
  gap: 12px;
}

.member-program-admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.member-program-admin-card > header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.member-program-admin-card > header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-program-admin-card > header > div:first-child {
  display: grid;
  gap: 4px;
}

.member-program-admin-card > header span,
.member-rule-row span {
  color: var(--muted);
  font-size: 11px;
}

.member-program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.member-program-meta span {
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  background: var(--soft);
  font-size: 11px;
}

.member-rule-list {
  padding: 0 16px;
}

.member-rule-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.member-rule-row > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-rule-row > div:first-child {
  display: grid;
  gap: 3px;
}

.member-activity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.member-audit-list {
  max-height: 680px;
  display: grid;
  gap: 0;
  overflow: auto;
}

.member-audit-list > article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.member-audit-list > article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.member-audit-list span,
.member-audit-list small {
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.member-audit-list details {
  grid-column: 1 / -1;
}

.member-audit-list pre {
  max-height: 240px;
  margin: 8px 0 0;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #23342b;
  background: var(--soft);
  font-size: 10px;
  white-space: pre-wrap;
}

.membership-dialog > .dialog-head,
.membership-dialog > form > .dialog-head {
  position: sticky;
  top: -28px;
  z-index: 4;
  margin: -28px -28px 18px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.member-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  gap: 16px;
}

.member-detail-grid > .surface,
.member-detail-side > .surface {
  border-radius: 8px;
  box-shadow: none;
}

.member-detail-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.compact-native-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.member-created-dialog {
  display: grid;
  gap: 16px;
}

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

.member-day-grid label {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.member-day-grid input {
  width: auto;
}

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

.member-exclusion-grid label {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--soft);
}

.member-exclusion-grid input {
  width: auto;
  margin: 0;
}

.member-exclusion-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-rule-exclusions {
  color: #9a3412 !important;
  font-weight: 800;
}

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

.member-point-category-grid label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 92px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.member-point-category-grid input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.member-point-category-grid input[type="number"] {
  min-width: 0;
  height: 34px;
  padding: 5px 7px;
}

.member-point-rule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.member-point-rule-summary span {
  padding: 5px 7px;
  border-radius: 5px;
  color: #14532d;
  background: #dcfce7;
  font-size: 10px;
  font-weight: 800;
}

.member-reward-admin-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.member-reward-admin-row {
  border-left: 3px solid #b88716;
  padding-left: 9px;
}

@media (max-width: 1080px) {
  .member-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .member-portal-grid,
  .member-activity-grid,
  .member-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .member-point-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .member-portal-header {
    min-height: 62px;
    padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }

  .member-portal-main {
    padding: 18px 12px max(28px, env(safe-area-inset-bottom));
  }

  .member-portal-intro {
    min-height: 92px;
    align-items: start;
  }

  .member-portal-intro h1 {
    font-size: 29px;
  }

  .member-points-balance {
    min-width: 110px;
  }

  .member-points-balance strong {
    font-size: 28px;
  }

  .member-reward-grid {
    grid-template-columns: 1fr;
  }

  .member-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .member-filter-row {
    grid-template-columns: minmax(0, 1fr) 130px;
  }

  .member-filter-row .secure-pill {
    display: none;
  }

  .member-program-admin-card > header,
  .member-rule-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-program-admin-card > header > div:last-child,
  .member-rule-row > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .membership-dialog > .dialog-head,
  .membership-dialog > form > .dialog-head {
    top: -16px;
    margin: -16px -16px 16px;
    padding: max(16px, env(safe-area-inset-top)) 16px 14px;
  }

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

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

@media (max-width: 480px) {
  .member-exclusion-grid {
    grid-template-columns: 1fr;
  }

  .member-portal-brand strong {
    font-size: 15px;
  }

  .member-portal-header .button.danger {
    padding-inline: 9px;
    font-size: 11px;
  }

  .member-portal-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-digital-card {
    min-height: 300px;
    grid-template-columns: minmax(0, 1fr) 104px;
    padding: 17px;
  }

  .member-digital-card img {
    width: 104px;
    height: 104px;
  }

  .member-digital-card h2 {
    font-size: 19px;
  }

  .member-digital-card footer {
    display: grid;
  }

  .member-metrics {
    grid-template-columns: 1fr !important;
  }

  .member-metrics .metric-card {
    min-height: 88px;
  }

  .member-filter-row {
    grid-template-columns: 1fr;
  }

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