:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #13202f;
  --muted: #627084;
  --line: #dfe5ed;
  --brand: #d85a30;
  --brand-dark: #9c371d;
  --green: #11845b;
  --blue: #2563eb;
  --amber: #b7791f;
  --red: #dc2626;
  --nav: #151a22;
  --nav-soft: #202733;
  --shadow: 0 14px 30px rgba(19, 32, 47, 0.08);
}

html,
body,
#app {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

.login-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(540px, 1.15fr);
  background: #111827;
  color: #fff;
  overflow: hidden;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  background: #111827;
  min-height: 0;
  overflow-y: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #faece7;
  color: var(--brand);
  font-weight: 900;
}

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

.brand-sub {
  color: #a8b3c4;
  font-size: 12px;
  margin-top: 2px;
}

.login-panel h1 {
  font-size: 34px;
  line-height: 1.12;
  margin: 0 0 10px;
}

.login-panel p {
  color: #a8b3c4;
  margin: 0 0 28px;
  max-width: 420px;
  line-height: 1.5;
}

.login-card {
  background: #1c2330;
  border: 1px solid #2b3545;
  border-radius: 8px;
  padding: 18px;
  max-width: 430px;
}

.login-card.wide {
  max-width: 760px;
}

.login-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.login-stack {
  display: grid;
  gap: 12px;
  max-width: 430px;
}

.login-stack:has(.login-card.wide) {
  max-width: 760px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.text-btn {
  border: 0;
  background: transparent;
  color: #f6c7b8;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.login-actions,
.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  flex-wrap: wrap;
}

.muted-link {
  color: #f6c7b8;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.field-stack {
  display: grid;
  gap: 12px;
}

.field-line {
  display: grid;
  gap: 6px;
}

.label {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
}

.login-card .input {
  background: #101722;
  color: #fff;
  border-color: #334155;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 13px;
  font-weight: 900;
  font-size: 13px;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
}

.secondary-btn {
  background: var(--ink);
  color: #fff;
}

.ghost-btn {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.danger-btn {
  background: #fff5f5;
  color: var(--red);
  border-color: #fecaca;
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: 52px;
  height: 100vh;
  background:
    linear-gradient(135deg, rgba(216, 90, 48, 0.9), rgba(17, 132, 91, 0.82)),
    #193447;
}

.visual-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 126px;
  gap: 14px;
  align-content: center;
}

.flow-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  animation: floatUp 4.8s ease-in-out infinite;
}

.flow-card:nth-child(2),
.flow-card:nth-child(5),
.flow-card:nth-child(8) {
  animation-delay: 0.8s;
}

.flow-card:nth-child(3),
.flow-card:nth-child(6) {
  animation-delay: 1.4s;
}

.flow-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  max-width: 82px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  margin-bottom: 12px;
}
.flow-title {
  font-weight: 900;
  font-size: 15px;
  margin-bottom: 5px;
}

.flow-line {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.flow-line span {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scanLine {
  0% {
    width: 24%;
  }
  60% {
    width: 86%;
  }
  100% {
    width: 24%;
  }
}

.app-shell {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: 248px 1fr;
  overflow: hidden;
}

.sidebar {
  background: var(--nav);
  color: #e5edf7;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #293241;
  height: 100vh;
  min-height: 0;
}

.sidebar-head {
  padding: 18px;
  border-bottom: 1px solid #293241;
}

.tenant-pill {
  margin-top: 14px;
  background: var(--nav-soft);
  border-radius: 8px;
  padding: 12px;
  color: #cbd5e1;
  font-size: 12px;
}

.nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  padding: 10px 11px;
  border-radius: 8px;
  margin-bottom: 3px;
  font-size: 13px;
  text-decoration: none;
}

.nav-btn.active {
  background: #faece7;
  color: #7c2d12;
  border-left-color: var(--brand);
  font-weight: 900;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 15px;
  font-weight: 900;
}

.nav-btn.active .nav-icon {
  background: var(--brand);
  color: #fff;
}

.sidebar-foot {
  padding: 14px;
  border-top: 1px solid #293241;
}

.workspace {
  min-width: 0;
  min-height: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 66px;
  flex: 0 0 66px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  z-index: 5;
}

.page-title {
  font-size: 20px;
  font-weight: 950;
}

.page-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

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

.search {
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.content {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

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

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

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

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

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

.card.pad {
  padding: 15px;
}

.metric {
  display: grid;
  gap: 6px;
  min-height: 116px;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-value {
  font-size: 24px;
  font-weight: 950;
}

.metric-note {
  color: var(--muted);
  font-size: 12px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 15px;
  font-weight: 950;
}

.section-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  text-transform: uppercase;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.pager-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.logo-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.logo-preview {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  color: var(--muted);
  font-weight: 900;
}

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

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

.mode-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
  font-weight: 850;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.status.green {
  background: #ecfdf5;
  color: var(--green);
}

.status.blue {
  background: #eff6ff;
  color: var(--blue);
}

.status.amber {
  background: #fffbeb;
  color: var(--amber);
}

.status.red {
  background: #fef2f2;
  color: var(--red);
}

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

.full-page-panel {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 11px;
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
}

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

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

.form-grid.one {
  grid-template-columns: 1fr;
}

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

.textarea {
  min-height: 122px;
  resize: vertical;
}

.quick-list {
  display: grid;
  gap: 9px;
}

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

button.quick-row {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quick-row.selected,
.role-row.selected {
  border-color: var(--brand);
  background: #faece7;
}

.compact-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.mini-input {
  width: 92px;
  min-height: 34px;
  padding: 7px 8px;
}


.product-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 240px) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.compact-select {
  min-width: 180px;
}

.image-cell {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  background: var(--surface-soft);
}

.product-thumb,
.detail-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.detail-thumb {
  width: 56px;
  height: 56px;
}

.picture-preview-tile {
  display: grid;
  gap: 6px;
  align-content: start;
}

.picture-preview-tile img,
.picture-preview-tile .image-empty {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

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

.detail-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--surface-soft);
  display: grid;
  gap: 5px;
}

.detail-tile span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.detail-tile strong {
  font-size: 13px;
}
.table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.strong-row td {
  font-weight: 950;
  font-size: 14px;
}

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

.permission-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.permission-title {
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.permission-check {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.permission-check input {
  width: 16px;
  height: 16px;
}

.grid.cols-3 .quick-row,
.grid.cols-4 .quick-row {
  align-items: flex-start;
  flex-direction: column;
}

.mini {
  color: var(--muted);
  font-size: 12px;
}

.file-input {
  display: none;
}

.notice {
  margin: 0 0 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
}

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

.package-card,
.pending-card {
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
  background: #101722;
  color: #fff;
}

.package-card .section-note {
  color: #a8b3c4;
}

.module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.module-pills span {
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 5px 8px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.pending-card {
  max-width: 520px;
}

.pending-card p {
  color: #cbd5e1;
}

.pending-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #faece7;
  color: var(--brand);
  font-size: 24px;
  margin-bottom: 14px;
}

.reset-link {
  display: inline-block;
  margin-top: 6px;
  word-break: break-all;
  color: #f6c7b8;
}

.work-panel {
  margin-top: 12px;
}

.provider-content {
  scroll-behavior: smooth;
}

.provider-section {
  overflow: hidden;
}

.business-grid {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.business-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 13px;
  display: grid;
  gap: 11px;
}

.business-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.business-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

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

.module-check {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.module-check span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #faece7;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 800;
}

.big-text {
  font-size: 18px;
  font-weight: 950;
}

.loading-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(244, 246, 248, 0.72);
  z-index: 50;
}

.loading-layer.show {
  display: grid;
}

.loader-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .login-shell,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: 42vh;
  }

  .app-shell,
  .workspace {
    height: 100vh;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid,
  .business-meta,
  .module-grid,
  .package-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    flex: 0 0 auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .search {
    width: 100%;
  }

  .payment-mode-grid {
    grid-template-columns: 1fr;
  }
}


/* BACKOFFICE_RESTAURANT_PROVIDER_STYLES_START */
.restaurant-office .sidebar {
  background: linear-gradient(180deg, #17212b 0%, #10251f 100%);
}

.restaurant-office .brand-mark {
  background: linear-gradient(135deg, #0e7c66, #f4a62a);
  color: #fff;
}

.restaurant-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #17212b 0%, #0e7c66 100%);
  color: #fff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.restaurant-band h2 {
  margin: 4px 0;
  font-size: 24px;
  line-height: 1.15;
}

.restaurant-band p {
  margin: 0;
  max-width: 780px;
  color: #d7eee8;
}

.restaurant-band .kicker {
  color: #f4c15f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.provider-master-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}

.provider-list-panel .table-wrap {
  max-height: 560px;
}

.provider-detail-panel {
  position: sticky;
  top: 12px;
}

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

.business-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
  display: grid;
  gap: 4px;
}

.business-detail-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.provider-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 12px 12px;
}

.provider-module-grid {
  padding: 12px;
}

@media (max-width: 980px) {
  .provider-master-detail {
    grid-template-columns: 1fr;
  }

  .provider-detail-panel {
    position: static;
  }

  .restaurant-band {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* BACKOFFICE_RESTAURANT_PROVIDER_STYLES_END */

/* RESTAURANT_SETUP_FLOW_STYLES_START */
.setup-steps {
  display: grid;
  gap: 10px;
}

.setup-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.setup-step > span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: #0e7c66;
  color: #fff;
  font-weight: 950;
}

.setup-step strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 3px;
}

.setup-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tall-select {
  min-height: 122px;
}
/* RESTAURANT_SETUP_FLOW_STYLES_END */

/* PROVIDER_PORTAL_ORGANIZED_PAGES_START */
.provider-filter-card {
  padding: 14px;
  margin-top: 12px;
}

.provider-pagination {
  padding: 12px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.provider-income-grid .card,
.provider-support-grid .card {
  min-height: 100%;
}

.provider-income-grid .card.pad,
.provider-support-grid .card.pad {
  display: grid;
  align-content: start;
  gap: 12px;
}

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

.guardrail-list > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--surface-soft);
}

.guardrail-list strong {
  color: var(--ink);
}

.guardrail-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  padding: 26px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
/* PROVIDER_PORTAL_ORGANIZED_PAGES_END */
/* PROVIDER_COMPACT_FILTERS_START */
.compact-provider-filter {
  padding: 10px;
}

.provider-filter-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-filter-main .input {
  min-height: 36px;
  padding: 8px 10px;
}

.provider-filter-search {
  flex: 1 1 260px;
  min-width: 220px;
}

.provider-filter-select {
  flex: 0 0 142px;
}

.provider-filter-dropdown {
  position: relative;
}

.provider-filter-dropdown summary {
  list-style: none;
  white-space: nowrap;
}

.provider-filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.provider-filter-menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 6px);
  width: 280px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* PROVIDER_COMPACT_FILTERS_END */
.accounting-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.accounting-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.accounting-group-title {
  background: #bfdbfe;
  color: #0284c7;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  font-weight: 950;
  margin-bottom: 12px;
}

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

.accounting-link {
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
}

.accounting-link:hover {
  background: var(--surface-soft);
}

.accounting-link strong,
.accounting-link small {
  display: block;
}

.accounting-link small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.star {
  color: var(--muted);
  font-size: 18px;
}

.table-command-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.table-search {
  min-width: 0;
}

.icon-btn {
  min-width: 42px;
  padding: 9px 10px;
}

.action-select {
  min-width: 132px;
}

.mini-tabs {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.mini-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 8px 6px 9px;
  font-weight: 800;
}

.mini-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.amount-positive {
  color: var(--green);
  text-align: right;
  font-weight: 900;
}

.amount-negative {
  color: var(--red);
  text-align: right;
  font-weight: 900;
}

.accounting-page .table-wrap,
.inventory-page .table-wrap {
  max-height: calc(100vh - 320px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.accounting-page th,
.inventory-page th {
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 980px) {
  .accounting-home-grid {
    grid-template-columns: 1fr;
  }

  .table-command-bar {
    grid-template-columns: 1fr;
  }
}
/* BUSINESS_TABLE_PAGES_START */
.compact-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.compact-page-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.compact-select {
  min-width: 220px;
  height: 38px;
}

.page-context-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.page-context-line strong {
  color: var(--ink);
  font-size: 14px;
}

.data-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-page-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.data-page-body {
  padding: 10px 12px 12px;
}

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

.table-command-bar-dates,
.report-command-bar {
  grid-template-columns: 145px 145px minmax(260px, 1fr) auto auto 140px;
}

.compact-date {
  min-width: 0;
}

.report-page .table-wrap,
.sales-page .table-wrap,
.restaurant-orders-page .table-wrap,
.accounting-page .table-wrap,
.inventory-page .table-wrap {
  max-height: calc(100vh - 315px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-page th,
.sales-page th,
.restaurant-orders-page th,
.accounting-page th,
.inventory-page th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.sales-page td:nth-child(5),
.sales-page td:nth-child(6),
.sales-page td:nth-child(7),
.restaurant-orders-page td:nth-child(6),
.restaurant-orders-page td:nth-child(7),
.restaurant-orders-page td:nth-child(8) {
  text-align: right;
  font-weight: 850;
}

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

  .table-command-bar-dates,
  .report-command-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .compact-page-bar,
  .page-context-line {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-select,
  .report-home-grid {
    width: 100%;
  }

  .report-home-grid {
    grid-template-columns: 1fr;
  }
}
/* BUSINESS_TABLE_PAGES_END */
/* PURCHASE_WORKFLOW_START */
.erp-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 132px);
  overflow: hidden;
}

.erp-tabs {
  align-items: center;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  padding: 6px 8px;
}

.erp-tab {
  background: #ffffff;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  min-height: 30px;
  padding: 6px 12px;
}

.erp-tab.active {
  background: #e8f5ff;
  color: #0f172a;
}

.erp-tab span {
  color: var(--muted);
  margin-left: 8px;
}

.erp-subnav {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
}

.erp-subnav-btn {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
  padding: 8px 14px;
  white-space: nowrap;
}

.erp-subnav-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.erp-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(320px, 1fr) 96px 44px 120px 76px;
  padding: 10px 12px;
}

.erp-toolbar .icon-btn {
  min-width: 44px;
  padding-inline: 0;
}

.erp-table-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 12px;
}

.erp-page .table-wrap {
  border: 1px solid var(--line);
  border-radius: 0;
  height: 100%;
  max-height: calc(100vh - 270px);
  overflow: auto;
}

.erp-page table {
  border-collapse: collapse;
  min-width: 1120px;
}

.erp-page th,
.erp-page td {
  border-right: 1px solid var(--line);
  padding: 8px 8px;
  white-space: nowrap;
}

.erp-page th {
  background: #f3f5f8;
  color: #4b5563;
  font-size: 13px;
  position: sticky;
  text-transform: none;
  top: 0;
  z-index: 2;
}

.erp-page tbody tr:nth-child(even) {
  background: #fbfbfc;
}

.erp-page tbody tr:hover {
  background: #f0f7ff;
}

.erp-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.link-btn {
  background: transparent;
  border: 0;
  color: #0984ff;
  cursor: pointer;
  font-weight: 800;
  padding: 0 2px;
}

.link-btn.disabled,
.link-btn:disabled {
  color: #a8b0bc;
  cursor: not-allowed;
}

.danger-text {
  color: #dc2626;
}

.amount-cell {
  text-align: right;
}

.erp-total-row {
  background: #f8fafc !important;
  font-weight: 900;
}

.erp-footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 14px;
}

.compact-select {
  height: 30px;
  min-width: 116px;
  padding: 4px 8px;
}

.erp-pages {
  align-items: center;
  display: flex;
  gap: 6px;
}

.page-btn {
  background: #ffffff;
  border: 0;
  border-radius: 4px;
  color: #334155;
  cursor: pointer;
  min-height: 28px;
  min-width: 28px;
}

.page-btn.active {
  background: #169cf5;
  color: #ffffff;
  font-weight: 900;
}

.page-btn:disabled {
  color: #b8c1cc;
  cursor: not-allowed;
}

.erp-form-page {
  min-height: calc(100vh - 112px);
}

.erp-form-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 16px;
  justify-content: space-between;
  padding: 16px;
}

.erp-form {
  flex: 1;
  overflow: auto;
  padding: 20px 36px 72px;
}

.erp-section-title {
  border-bottom: 1px solid var(--line);
  font-weight: 950;
  margin: 8px 0 10px;
  padding: 9px 0;
}

.erp-section-title::before {
  background: #0ea5e9;
  content: "";
  display: inline-block;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  width: 4px;
}

.erp-section-title.with-action {
  align-items: center;
  display: flex;
  gap: 10px;
}

.erp-form-grid.four {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.purchase-search-line {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.erp-split-tables {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.erp-split-tables .table-wrap {
  max-height: 340px;
}

.mini-input {
  min-width: 84px;
  width: 96px;
}

.erp-form-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
}

.amount-payable {
  background: #f3f8ff;
  border: 1px solid #dbeafe;
  margin-left: auto;
  min-width: 180px;
  padding: 10px;
  text-align: center;
}

@media (max-width: 1180px) {
  .erp-toolbar,
  .erp-form-grid.four,
  .erp-split-tables {
    grid-template-columns: 1fr;
  }

  .erp-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* PURCHASE_WORKFLOW_END */


/* FLAT_BACKOFFICE_PAGES_START */
.content {
  background: #f7f9fc;
  padding: 12px;
}

.card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.card.pad {
  padding: 0;
}

.flat-section,
.flat-page,
.data-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.flat-section + .flat-section,
.flat-page + .flat-page {
  margin-top: 12px;
}

.flat-section-head,
.table-page-head {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.flat-section-body,
.flat-page-body,
.data-page-body {
  background: #ffffff;
  flex: 1;
  min-height: 0;
  padding: 10px 12px 12px;
}

.grid.cols-2 > .flat-section,
.grid.cols-3 > .flat-section,
.grid.cols-4 > .flat-section,
.grid > .flat-page,
.grid > .flat-section {
  grid-column: 1 / -1;
}

.grid:has(.flat-section),
.grid:has(.flat-page),
.grid.cols-2:has(.flat-section),
.grid.cols-3:has(.flat-section),
.grid.cols-4:has(.flat-section),
.accounting-home-grid:has(.flat-section) {
  grid-template-columns: 1fr;
}

.full-page-panel,
.inventory-page,
.accounting-page,
.sales-page,
.report-page,
.restaurant-orders-page {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 10px;
}

.flat-metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--metric-color, var(--brand));
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 12px 14px;
}

.metric {
  min-height: 96px;
}

.metric-top {
  color: var(--muted);
}

.section-head {
  border-bottom: 1px solid var(--line);
}

.work-panel {
  margin-top: 12px;
  min-height: auto;
}

.work-panel .flat-section-body {
  padding: 14px;
}

.quick-row,
.setup-step,
.accounting-group,
.provider-list-panel,
.provider-detail-panel {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.flat-section .table-wrap,
.flat-page .table-wrap,
.data-page .table-wrap {
  border: 1px solid var(--line);
  border-radius: 0;
}

.flat-section table,
.flat-page table,
.data-page table {
  border-collapse: collapse;
}

.flat-section th,
.flat-section td,
.flat-page th,
.flat-page td,
.data-page th,
.data-page td {
  border-right: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}
/* FLAT_BACKOFFICE_PAGES_END */

/* COMPACT_BACKOFFICE_DENSITY_START */
.app-shell .topbar {
  height: 54px;
  flex-basis: 54px;
  gap: 12px;
  padding: 0 14px;
}

.app-shell .page-title {
  font-size: 18px;
  line-height: 1.1;
}

.app-shell .page-subtitle,
.app-shell .section-note {
  font-size: 11px;
  line-height: 1.2;
  margin-top: 2px;
}

.app-shell .top-actions {
  gap: 8px;
}

.app-shell .search {
  height: 36px;
  padding: 7px 10px;
  width: 260px;
}

.app-shell .content {
  padding: 8px 10px;
}

.app-shell .grid,
.app-shell .full-page-panel {
  gap: 8px;
}

.app-shell .full-page-panel,
.app-shell .inventory-page,
.app-shell .accounting-page,
.app-shell .sales-page,
.app-shell .report-page,
.app-shell .restaurant-orders-page {
  margin-top: 6px;
}

.app-shell .flat-section-head,
.app-shell .table-page-head,
.app-shell .section-head {
  padding: 8px 10px;
}

.app-shell .section-title {
  font-size: 14px;
  line-height: 1.15;
}

.app-shell .flat-section-body,
.app-shell .flat-page-body,
.app-shell .data-page-body {
  padding: 8px 10px 8px;
}

.app-shell .input,
.app-shell .select,
.app-shell .textarea {
  border-radius: 6px;
  min-height: 34px;
  padding: 7px 10px;
}

.app-shell .primary-btn,
.app-shell .secondary-btn,
.app-shell .ghost-btn,
.app-shell .danger-btn {
  border-radius: 6px;
  font-size: 12px;
  min-height: 34px;
  padding: 7px 11px;
}

.app-shell .product-toolbar,
.app-shell .table-command-bar,
.app-shell .erp-toolbar {
  gap: 6px;
  margin-bottom: 6px;
}

.app-shell .product-toolbar {
  grid-template-columns: minmax(180px, 1fr) 72px minmax(150px, 230px) auto auto;
}

.app-shell .erp-toolbar {
  grid-template-columns: minmax(240px, 1fr) 82px 38px 104px 64px;
  padding: 7px 10px;
}

.app-shell .erp-toolbar .icon-btn {
  min-width: 38px;
}

.app-shell .compact-page-bar {
  gap: 8px;
  margin-bottom: 6px;
}

.app-shell .compact-select {
  height: 32px;
  min-width: 104px;
  padding: 4px 8px;
}

.app-shell table {
  font-size: 12px;
  line-height: 1.25;
}

.app-shell th,
.app-shell td,
.app-shell .erp-page th,
.app-shell .erp-page td,
.app-shell .flat-section th,
.app-shell .flat-section td,
.app-shell .flat-page th,
.app-shell .flat-page td,
.app-shell .data-page th,
.app-shell .data-page td {
  padding: 6px 8px;
  vertical-align: middle;
}

.app-shell th,
.app-shell .erp-page th {
  font-size: 10.5px;
  line-height: 1.15;
}

.app-shell tbody tr {
  height: 44px;
}

.app-shell .table-wrap,
.app-shell .inventory-page .table-wrap,
.app-shell .accounting-page .table-wrap,
.app-shell .erp-page .table-wrap,
.app-shell .flat-section .table-wrap,
.app-shell .flat-page .table-wrap,
.app-shell .data-page .table-wrap {
  border-radius: 0;
  height: auto;
  max-height: calc(100vh - 235px);
}

.app-shell .erp-table-area {
  padding: 0 10px;
}

.app-shell .image-cell {
  border-radius: 5px;
  font-size: 9px;
  height: 24px;
  width: 24px;
}

.app-shell .product-thumb,
.app-shell .detail-thumb {
  border-radius: 5px;
  height: 28px;
  width: 28px;
}

.app-shell .status {
  border-radius: 999px;
  font-size: 10px;
  padding: 4px 7px;
}

.app-shell .pagination-bar,
.app-shell .erp-footer {
  gap: 8px;
  min-height: 40px;
  padding: 6px 10px;
}

.app-shell .pagination-bar {
  padding-top: 6px;
}

.app-shell .pager-actions,
.app-shell .erp-pages {
  gap: 4px;
}

.app-shell .page-btn {
  min-height: 26px;
  min-width: 26px;
}

.app-shell .flat-metric,
.app-shell .metric {
  min-height: 74px;
  padding: 9px 10px;
}

.app-shell .metric-value {
  font-size: 20px;
}

.app-shell .erp-page {
  min-height: calc(100vh - 82px);
}

.app-shell .erp-form-page {
  min-height: calc(100vh - 82px);
}

.app-shell .erp-form-title {
  padding: 10px 12px;
}

.app-shell .erp-form {
  padding: 12px 18px 42px;
}

.app-shell .erp-section-title {
  margin: 4px 0 8px;
  padding: 7px 0;
}

@media (max-width: 900px) {
  .app-shell .topbar {
    height: auto;
    min-height: 54px;
    padding: 8px 10px;
  }

  .app-shell .top-actions {
    width: 100%;
  }

  .app-shell .search {
    width: 100%;
  }

  .app-shell .product-toolbar,
  .app-shell .erp-toolbar {
    grid-template-columns: 1fr;
  }
}
/* COMPACT_BACKOFFICE_DENSITY_END */

.unit-conversion-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.unit-conversion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.unit-conversion-head strong {
  color: var(--ink);
  font-size: 13px;
}

.unit-conversion-head span {
  color: var(--muted);
}

.unit-conversion-panel .table-wrap {
  max-height: none;
}

.unit-conversion-panel table th,
.unit-conversion-panel table td {
  padding: 7px 8px;
}

.unit-conversion-panel .input {
  min-height: 34px;
}

/* PURCHASE_FLOW_REFINEMENT_START */
.erp-page table,
.inventory-page table,
.accounting-page table,
.flat-page table,
.data-page table {
  font-size: 12px;
}

.erp-page th,
.erp-page td,
.inventory-page th,
.inventory-page td,
.accounting-page th,
.accounting-page td,
.flat-page th,
.flat-page td,
.data-page th,
.data-page td {
  line-height: 1.25;
  padding: 6px 8px;
  vertical-align: middle;
}

.erp-page .input,
.erp-page select,
.erp-page button {
  min-height: 32px;
}

.purchase-product-picker,
.purchase-cart-panel {
  border: 1px solid var(--line);
  margin-top: 8px;
}

.purchase-product-picker .table-wrap {
  max-height: 260px;
}

.purchase-cart-panel .table-wrap,
.purchase-details-page .table-wrap {
  max-height: 300px;
}

.purchase-search-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(260px, 1fr) 92px;
  margin: 8px;
}

.search-hint {
  color: var(--muted);
  margin: 0 8px 8px;
}

.document-summary-grid {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.document-summary-grid > div {
  border-right: 1px solid var(--line);
  padding: 10px 12px;
}

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

.document-summary-grid strong {
  color: var(--text);
  display: block;
  font-size: 13px;
}

#printArea {
  display: none;
}

.print-pre,
.document-print {
  color: #000;
  font: 12px Arial, sans-serif;
}

.document-print h1 {
  font-size: 18px;
  margin: 0 0 12px;
  text-align: center;
}

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

.document-print th,
.document-print td {
  border-bottom: 1px solid #ddd;
  padding: 6px;
  text-align: left;
}

@media print {
  body > *:not(#printArea) {
    display: none !important;
  }

  #printArea {
    display: block !important;
    padding: 0;
  }
}

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

  .purchase-search-line {
    grid-template-columns: 1fr;
  }
}
/* PURCHASE_FLOW_REFINEMENT_END */
/* GLOBAL_BACKOFFICE_FLAT_FULL_PAGE_UI_START */
.workspace,
.app-shell,
.erp-shell {
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.content {
  min-width: 0;
  overflow: auto;
}
.module-head,
.erp-module-head,
.page-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0;
  padding: 8px 12px;
}
.module-head h1,
.erp-module-head h1,
.page-head h1 {
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}
.module-head p,
.erp-module-head p,
.page-head p {
  font-size: 12px;
  margin: 2px 0 0;
}
.flat-section,
.flat-data-block,
.flat-page,
.flat-page-final,
.full-page-panel,
.erp-secondary-panel,
.purchase-list-page,
.purchase-details-page,
.accounting-page,
.restaurant-band,
.data-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: none !important;
}
.flat-data-title,
.section-head,
.flat-section-head,
.page-context-line,
.erp-section-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 36px;
  padding: 7px 10px;
}
.flat-data-title strong,
.section-title,
.erp-section-title,
.page-context-line strong {
  font-size: 14px;
  line-height: 1.2;
}
.flat-data-title span,
.section-note,
.page-context-line span,
.metric-note {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.25;
}
.flat-data-body,
.flat-section-body,
.flat-page-body {
  padding: 0;
}
.table-command-bar,
.toolbar,
.filters,
.inventory-actions,
.purchase-toolbar,
.compact-command-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 10px;
}
.table-command-bar .input,
.toolbar .input,
.table-search,
.action-select,
.erp-page .input,
.erp-page select,
.erp-page button,
.primary-btn,
.ghost-btn,
.danger-btn,
.link-btn {
  border-radius: 3px;
  font-size: 13px;
  min-height: 30px;
  padding: 6px 10px;
}
.table-search {
  flex: 1 1 280px;
  min-width: 220px;
}
.action-select {
  max-width: 130px;
}
.compact-summary-strip,
.grid.cols-4,
.grid.cols-3,
.grid.cols-2 {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
}
.compact-summary-strip,
.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-metric,
.flat-metric,
.metric {
  background: var(--surface-2, var(--surface));
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: none !important;
  min-height: 58px;
  padding: 8px 10px;
}
.compact-metric span,
.metric-top span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.compact-metric strong,
.metric-value {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 2px;
}
.compact-metric small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  line-height: 1.2;
}
.table-wrap {
  border: 0;
  border-radius: 0;
  max-height: calc(100vh - 230px);
  overflow: auto;
}
.full-page-panel .table-wrap,
.flat-page-final .table-wrap,
.purchase-list-page .table-wrap,
.accounting-page .table-wrap {
  max-height: calc(100vh - 245px);
}
table,
.data-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}
th,
td,
.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 1.25;
  padding: 6px 8px;
  vertical-align: middle;
  white-space: nowrap;
}
th,
.data-table th {
  background: var(--surface-2, #f7f9fc);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}
td strong {
  font-size: 12px;
}
.product-table td,
.product-table th,
.inventory-table td,
.inventory-table th {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 6px !important;
  padding-top: 6px !important;
}
.status {
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  padding: 5px 7px;
}
.module-tabs,
.slim-tabs,
.tabs {
  border-bottom: 1px solid var(--line);
  gap: 4px;
  padding: 6px 10px;
}
.tab,
.module-tabs .tab {
  border-radius: 3px;
  font-size: 12px;
  min-height: 28px;
  padding: 5px 8px;
}
.form-grid,
.compact-form-grid,
.restaurant-dish-form {
  gap: 10px;
  padding: 10px 12px;
}
.form-section-title {
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  margin: 0 0 2px;
  padding-bottom: 6px;
}
.recipe-builder {
  border: 1px solid var(--line);
  border-radius: 3px;
  margin: 10px 12px;
}
.recipe-builder .table-wrap {
  max-height: 250px;
}
.tiny-product-image,
.image-chip {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  object-fit: cover;
  width: 34px;
}
.image-chip {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}
.pagination,
.table-pagination,
.erp-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 6px 10px;
}
.login-shell {
  min-height: 100vh;
  overflow: hidden;
}
.login-panel,
.login-visual {
  max-height: 100vh;
  overflow-y: auto;
}
.flow-tag {
  color: var(--brand);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
@media (max-width: 1100px) {
  .compact-summary-strip,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .compact-summary-strip,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .module-head,
  .erp-module-head,
  .page-head,
  .flat-data-title,
  .section-head,
  .page-context-line {
    align-items: flex-start;
    flex-direction: column;
  }
  .table-search {
    min-width: 100%;
  }
}
/* GLOBAL_BACKOFFICE_FLAT_FULL_PAGE_UI_END */
