/* These styles are generated from project.scss. */

/* Cross-module operations dashboard. */
.dashboard-page {
  max-width: 1320px;
  padding-bottom: 4rem;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 15%, rgba(13, 110, 253, 0.14), transparent 18rem),
    radial-gradient(circle at 10% 110%, rgba(32, 201, 151, 0.11), transparent 20rem),
    linear-gradient(135deg, #fff 0%, #f7faff 66%, #eef5ff 100%);
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

.dashboard-hero::after {
  position: absolute;
  top: -4.5rem;
  right: 5%;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(13, 110, 253, 0.09);
  border-radius: 50%;
  content: "";
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
}

.dashboard-hero-copy {
  max-width: 48rem;
}

.dashboard-eyebrow,
.dashboard-section-kicker {
  color: #0b5ed7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.dashboard-hero p {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: #5e6b82;
  font-size: 1rem;
  line-height: 1.55;
}

.dashboard-section {
  margin-top: 2rem;
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.dashboard-section-heading h2 {
  margin: 0.12rem 0 0;
  font-size: 1.35rem;
}

.dashboard-updated,
.dashboard-section-copy {
  color: #748096;
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-kpi-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.dashboard-kpi-card > div {
  min-width: 0;
}

.dashboard-kpi-icon,
.dashboard-module-icon,
.dashboard-chart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-kpi-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
  font-size: 1.2rem;
}

.dashboard-tone-blue {
  --dashboard-accent: #0d6efd;
  --dashboard-tint: #eaf2ff;
}

.dashboard-tone-violet {
  --dashboard-accent: #6f42c1;
  --dashboard-tint: #f0ebfb;
}

.dashboard-tone-cyan {
  --dashboard-accent: #087f8c;
  --dashboard-tint: #e5f7f8;
}

.dashboard-tone-green {
  --dashboard-accent: #198754;
  --dashboard-tint: #e9f7f0;
}

.dashboard-tone-orange {
  --dashboard-accent: #c45b08;
  --dashboard-tint: #fff0e3;
}

.dashboard-kpi-card .dashboard-kpi-icon,
.dashboard-module-icon.dashboard-tone-blue,
.dashboard-module-icon.dashboard-tone-violet,
.dashboard-module-icon.dashboard-tone-cyan,
.dashboard-module-icon.dashboard-tone-green,
.dashboard-module-icon.dashboard-tone-orange {
  color: var(--dashboard-accent);
  background: var(--dashboard-tint);
}

.dashboard-kpi-label,
.dashboard-kpi-note,
.dashboard-kpi-card strong {
  display: block;
}

.dashboard-kpi-label {
  overflow: hidden;
  margin-bottom: 0.18rem;
  color: #647188;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-kpi-card strong {
  overflow: hidden;
  color: #172033;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi-note {
  margin-top: 0.22rem;
  overflow: hidden;
  color: #7b8799;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid;
  border-radius: 12px;
}

.dashboard-action-banner.is-warning {
  border-color: rgba(255, 193, 7, 0.32);
  background: #fff9e6;
}

.dashboard-action-banner.is-clear {
  border-color: rgba(25, 135, 84, 0.17);
  background: #f1faf5;
}

.dashboard-action-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.dashboard-action-icon .bi,
.dashboard-action-icon .bi::before {
  display: block;
  line-height: 1;
  vertical-align: 0;
}

.is-warning .dashboard-action-icon {
  color: #8a5b00;
  background: #ffe9a6;
}

.is-clear .dashboard-action-icon {
  color: #157347;
  background: #dcefe4;
}

.dashboard-action-banner strong,
.dashboard-action-banner div > span {
  display: block;
}

.dashboard-action-banner strong {
  color: #273249;
  font-size: 0.88rem;
}

.dashboard-action-banner div > span {
  margin-top: 0.05rem;
  color: #6e798d;
  font-size: 0.76rem;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.dashboard-module-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23, 32, 51, 0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.dashboard-module-card:hover {
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
  transform: translateY(-1px);
}

.dashboard-module-head {
  display: flex;
  min-width: 0;
  gap: 0.75rem;
  align-items: flex-start;
}

.dashboard-module-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  font-size: 1.1rem;
}

.dashboard-module-head > div {
  min-width: 0;
}

.dashboard-module-head h3,
.dashboard-chart-heading h3 {
  margin: 0;
  color: #202b40;
  font-size: 0.98rem;
  font-weight: 800;
}

.dashboard-module-head p,
.dashboard-chart-heading p {
  margin: 0.18rem 0 0;
  color: #748096;
  font-size: 0.76rem;
  line-height: 1.4;
}

.dashboard-module-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

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

.dashboard-module-stats > div {
  min-width: 0;
  padding: 0.62rem 0.68rem;
  border-radius: 9px;
  background: #f7f9fc;
}

.dashboard-module-stats strong,
.dashboard-module-stats span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-module-stats strong {
  color: #263248;
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-module-stats span {
  margin-top: 0.08rem;
  color: #778398;
  font-size: 0.67rem;
  font-weight: 700;
}

.dashboard-module-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  color: #748096;
  font-size: 0.7rem;
  font-weight: 650;
}

.dashboard-module-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  color: #0b5ed7;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-module-link:hover,
.dashboard-module-link:focus {
  color: #084298;
}

.dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.75fr);
  gap: 0.85rem;
}

.dashboard-chart-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23, 32, 51, 0.05);
}

.dashboard-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.dashboard-chart-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  color: #0b5ed7;
  background: #eef5ff;
}

.dashboard-chart-canvas {
  height: 280px;
}

.dashboard-chart-canvas-small {
  height: 280px;
}

@media (max-width: 1199.98px) {
  .dashboard-kpi-grid,
  .dashboard-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .dashboard-chart-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-canvas-small {
    height: 260px;
  }
}

@media (max-width: 767.98px) {
  .dashboard-page {
    padding-top: 1rem !important;
  }

  .dashboard-hero {
    border-radius: 14px;
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .dashboard-kpi-grid,
  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-action-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-action-banner .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 399.98px) {
  .dashboard-module-stats-three {
    grid-template-columns: 1fr;
  }
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.app-toast-viewport {
  position: fixed;
  z-index: 1080;
  top: 5.25rem;
  right: 0;
  left: 0;
  pointer-events: none;
}

.app-toast-stack {
  display: flex;
  width: min(100%, 26rem);
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.app-message {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 3.75rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.97);
  color: #172033;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.11);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.app-message::before {
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #0d6efd;
  content: "";
}

.app-message-success::before {
  background: #198754;
}

.app-message-warning::before {
  background: #ffc107;
}

.app-message-error::before {
  background: #dc3545;
}

.app-message-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef5ff;
  color: #0b5ed7;
  font-size: 1.25rem;
}

.app-message-success .app-message-icon {
  background: #edf8f2;
  color: #157347;
}

.app-message-warning .app-message-icon {
  background: #fff7dc;
  color: #946200;
}

.app-message-error .app-message-icon {
  background: #fff0f1;
  color: #b02a37;
}

.app-message-text {
  color: #263248;
  font-weight: 650;
  line-height: 1.35;
}

.app-message-close {
  width: 1rem;
  height: 1rem;
  padding: 0.75rem;
  border-radius: 999px;
  opacity: 0.5;
}

.app-message-close:hover,
.app-message-close:focus {
  opacity: 0.75;
}

@media (max-width: 767.98px) {
  .app-toast-viewport {
    top: 4.5rem;
  }
}

/* Floating WhatsApp support widget */
.whatsapp-widget {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 1060;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  pointer-events: none;
}

.whatsapp-widget-panel {
  position: relative;
  width: min(20rem, calc(100vw - 2.5rem));
  margin-bottom: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #dfe7e4;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(23, 35, 66, 0.2);
  pointer-events: auto;
  transform-origin: bottom right;
  animation: whatsapp-panel-in 180ms ease-out;
}

.whatsapp-widget-panel[hidden] {
  display: none;
}

.whatsapp-widget-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #65718f;
  background: transparent;
}

.whatsapp-widget-close:hover,
.whatsapp-widget-close:focus-visible {
  color: #172342;
  background: #f1f5f4;
}

.whatsapp-widget-close:focus-visible,
.whatsapp-widget-toggle:focus-visible,
.whatsapp-widget-direct-link:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.38);
  outline-offset: 3px;
}

.whatsapp-widget-copy {
  padding-right: 1.75rem;
}

.whatsapp-widget-title {
  margin: 0;
  color: #172342;
  font-size: 1.1rem;
  font-weight: 700;
}

.whatsapp-widget-description {
  margin: 0.375rem 0 0;
  color: #65718f;
  font-size: 0.875rem;
  line-height: 1.5;
}

.whatsapp-widget-qr {
  display: grid;
  width: 13rem;
  height: 13rem;
  margin: 1rem auto 0;
  padding: 0.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e5ece9;
  border-radius: 0.75rem;
  background: #fff;
}

.whatsapp-widget-qr img {
  display: block;
  width: 100%;
  height: 100%;
}

.whatsapp-widget-qr img[hidden] {
  display: none;
}

.whatsapp-widget-qr-status {
  color: #65718f;
  font-size: 0.85rem;
  text-align: center;
}

.whatsapp-widget-hint {
  margin: 0.75rem 0 0;
  color: #65718f;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.whatsapp-widget-direct-link {
  display: block;
  margin-top: 0.625rem;
  color: #198754;
  font-size: 0.85rem;
  font-weight: 650;
  text-align: center;
}

.whatsapp-widget-privacy {
  margin: 0.75rem 0 0;
  color: #65718f;
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}

.whatsapp-widget-privacy a {
  color: inherit;
  text-decoration: underline;
}

.whatsapp-widget-toggle {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.38);
  pointer-events: auto;
  transition: transform 160ms ease, background-color 160ms ease;
}

.whatsapp-widget-toggle:hover {
  color: #fff;
  background: #20bd5a;
  transform: scale(1.05);
}

.whatsapp-widget-toggle:active {
  transform: scale(0.95);
}

.whatsapp-widget-logo {
  width: 2.5rem;
  height: 2.5rem;
}

.whatsapp-widget-toggle-close {
  display: none;
  font-size: 1.75rem;
}

.whatsapp-widget.is-open .whatsapp-widget-logo {
  display: none;
}

.whatsapp-widget.is-open .whatsapp-widget-toggle-close {
  display: inline-block;
}

.whatsapp-widget-pulse {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.2);
  animation: whatsapp-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes whatsapp-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes whatsapp-pulse {
  75%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@media (max-width: 767.98px) {
  .whatsapp-widget {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .whatsapp-widget-toggle {
    width: 4rem;
    height: 4rem;
  }

  .whatsapp-widget-logo {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-widget-panel,
  .whatsapp-widget-pulse {
    animation: none;
  }

  .whatsapp-widget-toggle {
    transition: none;
  }
}

/* Custom muted red button for Google Login */
.btn-muted-red {
    background-color: #ea4335;
    color: white;
    border: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-muted-red:hover {
    background-color: #d33828;
    color: white;
}

/* Application shell and shared component system (Django admin uses its own base). */
html {
  scrollbar-gutter: stable;
}

.app-shell-page,
.public-site-page {
  min-height: 100vh;
  background: #f5f7fb;
  color: #172033;
}

.app-shell-page {
  background-image:
    radial-gradient(circle at 8% 0%, rgba(13, 110, 253, 0.045), transparent 28rem),
    linear-gradient(180deg, #f8faff 0, #f5f7fb 24rem);
}

.app-navbar-wrap {
  position: sticky;
  z-index: 1030;
  top: 0;
  padding: 0.55rem 0.75rem 0;
}

.app-navbar {
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 35px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(14px);
}

.app-navbar-container {
  max-width: 1440px;
}

.app-navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 1.35rem;
  padding: 0.45rem 0;
}

.app-navbar-links {
  gap: 0.1rem;
}

.app-navbar .nav-link {
  border-radius: 9px;
  color: #526078;
  font-size: 0.88rem;
  font-weight: 650;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.app-navbar .nav-link:hover {
  background: #f2f6fc;
  color: #172033;
}

.app-navbar .nav-link.active {
  background: #eaf2ff;
  color: #0b5ed7;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.app-navbar-actions {
  gap: 0.2rem;
  align-items: center;
}

.app-nav-icon {
  display: inline-flex;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.app-nav-account {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.app-nav-account-label {
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-navbar .dropdown-menu {
  margin-top: 0.6rem;
}

.app-main {
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  .app-shell-page .app-main {
    padding-top: 1.25rem;
  }

  /* Page templates historically mix app-page and Bootstrap padding helpers.
     Keep the navbar offset on the shell so every desktop view starts alike. */
  .app-shell-page .app-main > * {
    padding-top: 0 !important;
  }

  .app-shell-page .app-main > * > :first-child {
    margin-top: 0;
  }
}

.app-shell-page h1,
.app-shell-page h2,
.app-shell-page h3,
.app-shell-page h4,
.app-shell-page h5,
.app-shell-page h6 {
  color: #172033;
  letter-spacing: -0.018em;
}

.app-shell-page h1 {
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 780;
}

.app-shell-page h2 {
  font-weight: 750;
}

.app-page {
  padding-top: 1.25rem;
}

.app-page-header {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.app-page-header-copy {
  min-width: 0;
}

.app-page-header-copy > :last-child {
  margin-bottom: 0;
}

.app-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.app-page-header-main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
}

.app-icon-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  line-height: 1;
}

.app-icon-button .bi {
  margin: 0 !important;
  font-size: 1.05rem;
  line-height: 1;
}

.app-icon-button:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.22);
  outline-offset: 2px;
}

/* Account and profile pages. */
.account-page {
  padding-bottom: 3rem;
}

.account-sidebar {
  position: sticky;
  top: 5.5rem;
}

.account-sidebar .card-body {
  padding: 1rem;
}

.account-avatar {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #0d6efd;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.2);
  color: #fff;
  flex: 0 0 auto;
  font-size: 1.4rem;
}

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

.account-nav {
  margin-right: -1rem;
  margin-bottom: -1rem;
  margin-left: -1rem;
  border-radius: 0;
  box-shadow: none !important;
}

.account-nav .list-group-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.82rem 1rem;
  border-right: 0;
  border-left: 0;
  color: #526078;
  font-weight: 700;
}

.account-nav .list-group-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.account-nav .list-group-item:last-child {
  border-bottom-right-radius: 11px;
  border-bottom-left-radius: 11px;
}

.account-nav .list-group-item.active {
  border-color: rgba(13, 110, 253, 0.14);
  background: #eaf2ff;
  color: #0b5ed7;
}

.account-content-card .card-body {
  padding: 1.5rem;
}

.account-panel-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.account-kicker {
  margin-bottom: 0.3rem;
  color: #0b5ed7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-info-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 11px;
  background: #fbfcfe;
}

.account-info-icon,
.account-action-icon,
.account-settings-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eaf2ff;
  color: #0b5ed7;
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.account-info-label {
  color: #66738a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-info-value {
  overflow-wrap: anywhere;
  color: #172033;
  font-weight: 750;
}

.account-action-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 11px;
  background: #fff;
  color: #172033;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.account-action-card:hover,
.account-action-card:focus {
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.08);
  color: #172033;
  transform: translateY(-1px);
}

.account-action-title,
.account-action-copy {
  display: block;
}

.account-action-title {
  font-weight: 800;
}

.account-action-copy {
  color: #66738a;
  font-size: 0.86rem;
}

.account-list-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.account-settings-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

.account-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-settings-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 11px;
  background: #fbfcfe;
}

.account-settings-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .account-panel-header,
  .account-settings-panel,
  .account-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .account-summary-grid {
    grid-template-columns: 1fr;
  }

  .account-settings-actions {
    justify-content: flex-start;
  }
}

.app-shell-page .card,
.app-shell-page .list-group,
.app-shell-page .accordion-item,
.public-site-page .card {
  border-color: rgba(23, 32, 51, 0.085);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(23, 32, 51, 0.05);
}

.app-shell-page .card {
  overflow: hidden;
}

.app-shell-page .card-header {
  padding: 0.72rem 0.9rem;
  border-bottom-color: rgba(23, 32, 51, 0.07);
  background: #fbfcfe;
  color: #263248;
  font-weight: 750;
}

.app-shell-page .card-body {
  padding: 0.9rem;
}

.app-shell-page .table-responsive {
  scrollbar-color: rgba(93, 107, 130, 0.35) transparent;
}

.app-shell-page .table {
  --bs-table-striped-bg: #f8fafd;
  --bs-table-hover-bg: #f2f7ff;
  margin-bottom: 0;
  color: #2c374b;
}

.app-shell-page .table > :not(caption) > * > * {
  padding: 0.62rem 0.75rem;
  border-bottom-color: rgba(23, 32, 51, 0.065);
  vertical-align: middle;
}

.app-shell-page .table thead th {
  border-bottom-width: 1px;
  background: #f7f9fc;
  color: #66738a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-shell-page tr[data-row-url] {
  cursor: pointer;
}

.app-shell-page tr[data-row-url]:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(13, 110, 253, 0.28);
  outline-offset: -3px;
}

.app-shell-page .invoice-table > :not(caption) > * > * {
  padding: 0.48rem 0.6rem;
}

.invoice-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
}

.invoice-col-created {
  width: 6.5rem;
}

.invoice-col-number {
  width: 7.5rem;
}

.invoice-col-type {
  width: 3rem;
}

.invoice-col-guest,
.invoice-col-listing {
  width: auto;
}

.invoice-col-date {
  width: 6.5rem;
}

.invoice-col-total {
  width: 7.5rem;
}

.invoice-col-actions {
  width: 6.5rem;
}

.invoice-table-nowrap {
  white-space: nowrap;
}

.invoice-detail-page {
  max-width: 1120px;
  padding-bottom: 3rem;
}

.invoice-detail-header {
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.invoice-detail-title-row,
.invoice-detail-context,
.invoice-detail-card-heading,
.invoice-detail-party-card .card-header {
  display: flex;
  align-items: center;
}

.invoice-detail-title-row {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.invoice-detail-context {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.45rem;
  color: #66738a;
  font-size: 0.82rem;
  font-weight: 650;
}

.invoice-detail-context span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.invoice-detail-actions {
  flex-wrap: nowrap;
}

.invoice-detail-header .app-icon-button .bi {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
}

.invoice-detail-header .app-icon-button .bi::before {
  line-height: 1;
  vertical-align: 0;
}

.invoice-detail-summary {
  overflow: hidden;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(13, 110, 253, 0.09), transparent 20rem),
    #fff;
  box-shadow: 0 12px 34px rgba(23, 32, 51, 0.07);
}

.invoice-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.invoice-detail-summary-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem;
  border-left: 1px solid rgba(23, 32, 51, 0.07);
}

.invoice-detail-summary-item > div {
  min-width: 0;
}

.invoice-detail-summary-item:first-child {
  border-left: 0;
}

.invoice-detail-summary-icon,
.invoice-detail-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eaf2ff;
  color: #0b5ed7;
  flex: 0 0 auto;
}

.invoice-detail-summary-icon {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.05rem;
}

.invoice-detail-summary-item.is-total .invoice-detail-summary-icon {
  background: #dfeaff;
}

.invoice-detail-label,
.invoice-detail-summary-item strong {
  display: block;
}

.invoice-detail-label {
  margin-bottom: 0.15rem;
  color: #6b778c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.invoice-detail-summary-item strong {
  overflow: hidden;
  color: #172033;
  font-size: 0.95rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invoice-detail-summary-item.is-total strong {
  color: #0b5ed7;
  font-size: 1.18rem;
}

.invoice-detail-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.invoice-detail-party-card {
  height: 100%;
}

.invoice-detail-party-card .card-header,
.invoice-detail-card-heading {
  gap: 0.55rem;
}

.invoice-detail-card-icon {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.88rem;
}

.invoice-detail-address {
  min-height: 5.2rem;
  padding: 0.85rem;
  border: 1px solid rgba(23, 32, 51, 0.075);
  border-radius: 9px;
  background: #fbfcfe;
  color: #354157;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.invoice-detail-positions-card .table-responsive {
  border-bottom: 1px solid rgba(23, 32, 51, 0.07);
}

.invoice-detail-table {
  min-width: 680px;
}

.app-shell-page .invoice-detail-table > :not(caption) > * > * {
  padding: 0.72rem 0.9rem;
}

.invoice-detail-position-name {
  color: #253047;
  font-weight: 680;
}

.invoice-detail-empty {
  padding: 2rem !important;
  color: #7b8799;
  text-align: center;
}

.invoice-detail-empty i,
.invoice-detail-empty span {
  display: block;
}

.invoice-detail-empty i {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.invoice-detail-totals {
  width: min(100%, 27rem);
  margin-left: auto;
  padding: 0.9rem 1rem 1rem;
}

.invoice-detail-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  color: #627087;
  font-size: 0.86rem;
}

.invoice-detail-totals strong {
  color: #263248;
}

.invoice-detail-totals .invoice-detail-grand-total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(23, 32, 51, 0.1);
  color: #172033;
  font-size: 1rem;
  font-weight: 800;
}

.invoice-detail-grand-total strong {
  color: #0b5ed7;
  font-size: 1.08rem;
}

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

  .invoice-detail-summary-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(23, 32, 51, 0.07);
  }

  .invoice-detail-summary-item:nth-child(4) {
    border-top: 1px solid rgba(23, 32, 51, 0.07);
  }
}

@media (max-width: 767.98px) {
  .invoice-detail-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .invoice-detail-header > .app-page-header-main {
    flex: 1 1 auto;
  }

  .invoice-detail-header > .invoice-detail-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .invoice-detail-parties {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .invoice-detail-header {
    flex-wrap: wrap;
  }

  .invoice-detail-header > .invoice-detail-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .app-page-header-actions.invoice-detail-actions > a.app-icon-button {
    flex: 0 0 2.5rem;
  }

  .invoice-detail-summary-grid {
    grid-template-columns: 1fr;
  }

  .invoice-detail-summary-item,
  .invoice-detail-summary-item:nth-child(3),
  .invoice-detail-summary-item:nth-child(4) {
    border-top: 1px solid rgba(23, 32, 51, 0.07);
    border-left: 0;
  }

  .invoice-detail-summary-item:first-child {
    border-top: 0;
  }
}

td.invoice-table-text > span,
span.invoice-table-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-page .upsell-orders-table > :not(caption) > * > * {
  padding: 0.48rem 0.6rem;
}

.upsell-orders-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.upsell-order-col-created { width: 8rem; }
.upsell-order-col-guest { width: 9rem; }
.upsell-order-col-booking { width: 12rem; }
.upsell-order-col-catalogue { width: 8rem; }
.upsell-order-col-items { width: auto; }
.upsell-order-col-status { width: 8.5rem; }
.upsell-order-col-total { width: 7rem; }
.upsell-order-col-actions { width: 4.5rem; }

.upsell-order-nowrap {
  white-space: nowrap;
}

.upsell-orders-table td.upsell-order-truncate {
  overflow: hidden;
}

.upsell-order-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-page .checkin-table > :not(caption) > * > * {
  padding: 0.48rem 0.6rem;
}

.checkin-table {
  width: 100%;
  table-layout: fixed;
}

.checkin-col-guest { width: auto; }
.checkin-col-listing { width: auto; }
.checkin-col-date { width: 6rem; }
.checkin-col-status { width: 7.5rem; }
.checkin-col-count { width: 4.5rem; }
.checkin-col-submitted { width: 8rem; }
.checkin-col-actions { width: 6.5rem; }

.checkin-open-button {
  white-space: nowrap;
}

.checkin-cell-nowrap {
  white-space: nowrap;
}

.checkin-table td.checkin-cell-truncate {
  overflow: hidden;
}

.checkin-cell-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-page .form-label {
  margin-bottom: 0.35rem;
  color: #4f5d73;
  font-size: 0.84rem;
  font-weight: 700;
}

.app-shell-page .form-control,
.app-shell-page .form-select {
  min-height: 2.35rem;
  border-color: rgba(23, 32, 51, 0.14);
  border-radius: 9px;
  background-color: #fbfcfe;
}

.app-shell-page .form-control:focus,
.app-shell-page .form-select:focus {
  border-color: rgba(13, 110, 253, 0.5);
  background-color: #fff;
  box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.1);
}

.app-shell-page .form-check-input {
  border-color: rgba(23, 32, 51, 0.22);
}

.app-shell-page .form-switch .form-check-input {
  width: 2em;
  height: 1.05em;
  margin-top: 0.18em;
}

.app-shell-page .btn,
.public-site-page .btn {
  border-radius: 9px;
  font-weight: 680;
}

.public-site-page:not(.public-flow-page) h1,
.public-site-page:not(.public-flow-page) h2,
.public-site-page:not(.public-flow-page) h3 {
  color: #172033;
  letter-spacing: -0.025em;
}

.public-site-page:not(.public-flow-page) .form-label {
  margin-bottom: 0.35rem;
  color: #4f5d73;
  font-size: 0.84rem;
  font-weight: 700;
}

.public-site-page:not(.public-flow-page) .form-control,
.public-site-page:not(.public-flow-page) .form-select {
  min-height: 2.7rem;
  border-color: rgba(23, 32, 51, 0.14);
  border-radius: 9px;
  background-color: #fbfcfe;
}

.public-site-page:not(.public-flow-page) .form-control:focus,
.public-site-page:not(.public-flow-page) .form-select:focus {
  border-color: rgba(13, 110, 253, 0.5);
  background: #fff;
  box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.1);
}

.public-site-page:not(.public-flow-page) .card-header.bg-primary {
  border: 0;
  background: linear-gradient(135deg, #0d6efd, #315fba) !important;
  font-weight: 750;
}

.app-shell-page .btn-primary {
  box-shadow: 0 7px 18px rgba(13, 110, 253, 0.17);
}

.app-shell-page .btn-sm {
  border-radius: 8px;
}

.app-shell-page .dropdown-menu {
  padding: 0.45rem;
  border-color: rgba(23, 32, 51, 0.09);
  border-radius: 11px;
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.14);
}

.app-shell-page .dropdown-item {
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
}

.app-shell-page .list-group {
  overflow: hidden;
}

.app-shell-page .list-group-item {
  padding: 0.85rem 1rem;
  border-color: rgba(23, 32, 51, 0.07);
}

.app-shell-page .list-group-item-action:hover {
  background: #f3f7fc;
}

.app-shell-page .alert {
  border-color: transparent;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.app-shell-page .badge {
  padding: 0.38em 0.62em;
  border-radius: 999px;
  font-weight: 750;
}

.app-shell-page .nav-tabs {
  gap: 0.35rem;
  padding: 0.3rem;
  border: 0;
  border-radius: 11px;
  background: #e9edf4;
}

.app-shell-page .nav-tabs .nav-link {
  border: 0;
  border-radius: 8px;
  color: #5d6b82;
  font-weight: 700;
}

.app-shell-page .nav-tabs .nav-link.active {
  background: #fff;
  color: #172033;
  box-shadow: 0 3px 12px rgba(23, 32, 51, 0.08);
}

.app-shell-page .page-link {
  margin: 0 0.15rem;
  border-color: rgba(23, 32, 51, 0.1);
  border-radius: 8px !important;
  color: #41516b;
}

.app-shell-page .page-item.active .page-link {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff;
}

.app-shell-page .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.22);
}

.app-shell-page .modal-header,
.app-shell-page .modal-footer {
  border-color: rgba(23, 32, 51, 0.08);
  background: #fbfcfe;
}

.app-shell-page .accordion-button {
  font-weight: 720;
  box-shadow: none;
}

.app-shell-page .accordion-button:not(.collapsed) {
  background: #eef5ff;
  color: #172033;
}

.app-shell-page .dataTables_wrapper .dataTables_filter input,
.app-shell-page .dataTables_wrapper .dataTables_length select {
  border-color: rgba(23, 32, 51, 0.14);
  border-radius: 9px;
  background: #fbfcfe;
}

.app-shell-page .dataTables_wrapper .dataTables_length label,
.app-shell-page .dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.app-shell-page .dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 4.25rem;
  margin: 0;
  padding-right: 1.8rem;
}

.app-shell-page .dataTables_wrapper .dataTables_filter input {
  margin-left: 0;
}

.app-shell-page .dataTables_wrapper .dataTables_info,
.app-shell-page .dataTables_wrapper .dataTables_length,
.app-shell-page .dataTables_wrapper .dataTables_filter {
  color: #66738a;
  font-size: 0.85rem;
}

.app-shell-page .dataTables_wrapper > .row:first-child,
.app-shell-page .dataTables_wrapper > .row:last-child {
  margin-right: 0;
  margin-left: 0;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

/* Organisation details and settings. */
.organisation-detail-page,
.organisation-form-page {
  padding-bottom: 2rem;
}

.organisation-identity-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(13, 110, 253, 0.075), transparent 18rem),
    #fff;
  box-shadow: 0 10px 30px rgba(23, 32, 51, 0.055);
}

.organisation-identity-main {
  display: flex;
  min-width: 0;
  gap: 1rem;
  align-items: center;
}

.organisation-identity-logo,
.organisation-logo-preview {
  display: inline-flex;
  overflow: hidden;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: #eef5ff;
  color: #0b5ed7;
}

.organisation-identity-logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 14px;
  font-size: 1.8rem;
}

.organisation-identity-logo img,
.organisation-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.organisation-identity-copy {
  min-width: 0;
}

.organisation-status-pill {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}

.organisation-status-pill.is-active {
  background: #eaf7f0;
  color: #157347;
}

.organisation-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: #66738a;
  font-size: 0.82rem;
}

.organisation-identity-meta span {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.organisation-summary-card {
  position: sticky;
  top: 5.25rem;
}

.organisation-card-heading {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.organisation-card-heading-icon,
.organisation-form-section-icon,
.feature-setting-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: #eaf2ff;
  color: #0b5ed7;
}

.organisation-card-heading-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 7px;
}

.organisation-detail-list {
  margin: 0;
}

.organisation-detail-list > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(23, 32, 51, 0.07);
}

.organisation-detail-list > div:first-child {
  padding-top: 0;
}

.organisation-detail-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.organisation-detail-list dt {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.25rem;
  color: #748097;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.organisation-detail-list dt i {
  width: 1.15rem;
  color: #0d6efd;
  font-size: 0.9rem;
  text-align: center;
}

.organisation-detail-list dd {
  margin: 0 0 0 1.7rem;
  color: #263248;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.organisation-content-section {
  margin-bottom: 1.5rem;
}

.organisation-pricing-section {
  margin-top: 1.5rem;
}

.organisation-pricing-list dd {
  margin-left: 0;
}

.organisation-section-heading {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding: 0 0.15rem;
}

.organisation-section-heading h2 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  color: #33415a;
  font-size: 1rem;
  font-weight: 750;
}

.organisation-section-heading h2 i {
  color: #0d6efd;
}

.organisation-integration-grid > div {
  display: flex;
}

.organisation-integration-card {
  width: 100%;
}

.organisation-integration-card .list-group {
  box-shadow: none;
}

.organisation-payment-card {
  width: 100%;
}

.organisation-payment-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.organisation-payment-loading {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
}

.organisation-payment-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 10px;
  background: #f7faff;
}

.organisation-payment-summary.is-complete {
  border-color: rgba(25, 135, 84, 0.14);
  background: #f4faf7;
}

.organisation-payment-status-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e5efff;
  color: #0b5ed7;
  font-size: 0.9rem;
}

.organisation-payment-summary.is-complete .organisation-payment-status-icon {
  background: #e3f3ea;
  color: #157347;
}

.organisation-payment-status-copy {
  min-width: 0;
  color: #33415a;
  font-size: 0.84rem;
  font-weight: 680;
  line-height: 1.4;
}

.organisation-payment-status-action {
  display: flex;
  justify-content: flex-end;
}

.organisation-integration-grid .organisation-payment-summary {
  grid-template-columns: auto minmax(0, 1fr);
}

.organisation-integration-grid .organisation-payment-status-action {
  grid-column: 1 / -1;
}

.organisation-integration-grid .organisation-payment-status-action .btn {
  width: 100%;
}

.organisation-payment-invoices {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(23, 32, 51, 0.07);
}

.organisation-payment-invoices-heading {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.55rem;
  color: #66738a;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.organisation-payment-invoices-heading i {
  color: #0d6efd;
  font-size: 0.85rem;
}

.organisation-payment-invoice-list {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.075);
  border-radius: 9px;
  background: #fff;
}

.organisation-payment-invoice-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid rgba(23, 32, 51, 0.065);
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.organisation-payment-invoice-row:last-child {
  border-bottom: 0;
}

.organisation-payment-invoice-row:hover,
.organisation-payment-invoice-row:focus {
  background: #f7faff;
  color: inherit;
}

.organisation-payment-invoice-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.organisation-payment-invoice-copy strong {
  overflow: hidden;
  color: #33415a;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organisation-payment-invoice-copy > span {
  color: #7a879a;
  font-size: 0.72rem;
}

.organisation-payment-invoice-amount {
  flex: 0 0 auto;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #46546b;
  font-size: 0.72rem;
  font-weight: 750;
}

.organisation-payment-invoice-link-icon {
  flex: 0 0 auto;
  color: #8b97a9;
  font-size: 0.75rem;
}

.organisation-payment-invoice-alert {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(148, 98, 0, 0.14);
  border-radius: 9px;
  background: #fffaf0;
  color: #765418;
  font-size: 0.78rem;
  line-height: 1.4;
}

.organisation-payment-invoice-alert i {
  margin-top: 0.05rem;
}

.organisation-empty-state {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  color: #7a879a;
  text-align: center;
}

.organisation-empty-state > i {
  color: #a5b0c1;
  font-size: 1.5rem;
}

.organisation-empty-state p {
  margin: 0;
  font-size: 0.85rem;
}

.organisation-feature-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  border: 1px solid rgba(23, 32, 51, 0.085);
  border-radius: 9px;
  background: #fbfcfe;
  font-size: 0.9rem;
  font-weight: 650;
}

.organisation-members-card .list-group {
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.organisation-person-row {
  display: flex;
  min-width: 0;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-color: rgba(23, 32, 51, 0.065);
}

.organisation-person-avatar {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef5ff;
  color: #0b5ed7;
  font-size: 0.85rem;
  font-weight: 800;
}

.organisation-person-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.organisation-person-copy strong,
.organisation-person-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organisation-person-copy strong {
  color: #263248;
  font-size: 0.88rem;
}

.organisation-person-copy span {
  color: #78849a;
  font-size: 0.77rem;
}

.organisation-person-badges {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.organisation-form-shell {
  width: min(100%, 62rem);
  margin: 0 auto;
}

.organisation-form-card {
  overflow: visible !important;
}

.organisation-form-body {
  padding: 0 !important;
}

.organisation-form-section {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(23, 32, 51, 0.07);
}

.organisation-form-section:last-child {
  border-bottom: 0;
}

.organisation-form-section-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.organisation-form-section-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  font-size: 1rem;
}

.organisation-form-section-header h2 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 760;
}

.organisation-form-section-header p {
  margin: 0;
  color: #748097;
  font-size: 0.8rem;
}

.organisation-logo-editor {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px dashed rgba(77, 99, 134, 0.28);
  border-radius: 10px;
  background: #fafcff;
}

.organisation-logo-preview {
  width: 4rem;
  height: 4rem;
  border-radius: 11px;
  font-size: 1.5rem;
}

.organisation-logo-field {
  min-width: 0;
  flex: 1;
}

.organisation-logo-field > div {
  margin-bottom: 0 !important;
}

.organisation-logo-field label {
  font-size: 0.82rem;
  font-weight: 700;
}

.organisation-electronic-invoice {
  margin: 0;
  padding: 0.9rem 0.95rem 0;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 10px;
  background: #f8fbff;
}

.organisation-electronic-invoice legend {
  float: none;
  width: auto;
  margin: 0 0 0.25rem;
  padding: 0;
  color: #33415a;
  font-size: 0.9rem;
  font-weight: 750;
}

.organisation-form-note {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0 0 0.8rem;
  color: #66738a;
  font-size: 0.78rem;
}

.organisation-form-note i {
  margin-top: 0.05rem;
  color: #0d6efd;
}

.organisation-form-actions {
  position: sticky;
  z-index: 4;
  bottom: 0;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 0 0 11px 11px;
  background: rgba(251, 252, 254, 0.95);
  box-shadow: 0 -8px 22px rgba(23, 32, 51, 0.045);
  backdrop-filter: blur(12px);
}

.organisation-related-settings {
  margin-top: 1.5rem;
}

.organisation-grid {
  display: block;
  overflow: hidden !important;
  border: 1px solid rgba(23, 32, 51, 0.085) !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(23, 32, 51, 0.05) !important;
}

.organisation-grid .organisation-card {
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 0 !important;
  border-bottom: 1px solid rgba(23, 32, 51, 0.07) !important;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none;
  transition: background-color 150ms ease;
}

.organisation-grid .organisation-card:last-child {
  border-bottom: 0 !important;
}

.organisation-grid .organisation-card:hover {
  background: #f7faff;
}

.organisation-avatar {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eef5ff;
  color: #0d6efd;
  font-size: 1.15rem;
}

.min-w-0 {
  min-width: 0;
}

[data-organisation-feature-settings] .feature-setting-option {
  display: flex;
  min-height: 3.65rem;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(23, 32, 51, 0.075);
  transition: background-color 150ms ease;
}

[data-organisation-feature-settings] .feature-setting-option:last-child {
  border-bottom: 0;
}

[data-organisation-feature-settings] .feature-setting-option:hover {
  background: #f8faff;
}

[data-organisation-feature-settings] .feature-setting-option:focus-within {
  background: #f4f8ff;
}

.feature-setting-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

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

[data-organisation-feature-settings] .feature-setting-control {
  min-height: 1.5rem;
  margin: 0;
  padding-left: 2.5rem;
}

[data-organisation-feature-settings] .form-check-label {
  display: inline-block;
  color: #263248;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}

[data-organisation-feature-settings] .form-text {
  margin: 0.35rem 0 0;
  color: #6c788c;
  font-size: 0.78rem;
  line-height: 1.35;
}

[data-organisation-feature-settings] .errorlist {
  margin: 0.35rem 0 0;
}

.feature-autosave-status {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: #6c788c;
  font-size: 0.78rem;
  font-weight: 650;
}

.feature-autosave-status.is-saved {
  color: #198754;
}

.feature-autosave-status.is-error {
  color: #dc3545;
}

.feature-autosave-status .spinner-border {
  width: 0.8rem;
  height: 0.8rem;
  border-width: 0.12em;
}

.notification-filter {
  flex: 1 1 52rem;
  flex-wrap: nowrap;
  min-width: 0;
  width: min(100%, 64rem);
}

.notification-filter .form-control[type="search"] {
  flex: 1 1 15rem;
  min-width: 10rem;
  width: auto;
}

.notification-filter .form-select {
  flex: 0 0 8rem;
  width: 8rem;
}

.notification-filter .form-control[name="category"] {
  flex: 0 1 11rem;
  min-width: 8rem;
  width: 11rem;
}

.notification-filter-toggles,
.notification-filter-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.notification-filter-toggles .form-check {
  margin: 0;
}

@media (max-width: 1199.98px) {
  .notification-filter {
    flex-wrap: wrap;
    width: 100%;
  }
}

.app-shell-page .decorative-blob {
  opacity: 0.55;
}

.app-shell-page .display-6 {
  color: #0f274d;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.app-error-page {
  display: flex;
  min-height: 65vh;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.app-error-card {
  width: min(100%, 34rem);
  padding: 2.5rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(23, 32, 51, 0.09);
  text-align: center;
}

.app-error-icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: #eef5ff;
  color: #0d6efd;
  font-size: 1.45rem;
}

@media (max-width: 991.98px) {
  .app-navbar-wrap {
    padding: 0;
  }

  .app-navbar {
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .app-navbar .navbar-collapse {
    padding: 0.75rem 0 0.35rem;
  }

  .app-navbar-links,
  .app-navbar-actions {
    gap: 0.2rem;
    align-items: stretch;
  }

  .app-navbar .nav-link,
  .app-nav-icon,
  .app-nav-account {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: 0.55rem 0.7rem !important;
  }

  .app-nav-icon .visually-hidden,
  .app-nav-account .visually-hidden {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-left: 0.45rem !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
  }

  .app-navbar-actions .dropdown-menu {
    box-shadow: none;
  }

  .organisation-summary-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .app-page {
    padding-top: 1.15rem;
  }

  .app-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .app-page-header-actions {
    justify-content: flex-start;
  }

  .app-page-header-actions > .btn,
  .app-page-header-actions > a.btn {
    flex: 1;
  }

  .app-page-header-actions > .app-icon-button {
    flex: 0 0 2.5rem;
  }

  .app-page-header:has(> .app-page-header-actions > .app-icon-button),
  .upsell-page-header:has(> .app-page-header-actions > .app-icon-button) {
    flex-direction: row;
    align-items: flex-start;
  }

  .app-page-header:has(> .app-page-header-actions > .app-icon-button) > .app-page-header-actions,
  .upsell-page-header:has(> .app-page-header-actions > .app-icon-button) > .app-page-header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .notification-filter {
    display: none;
  }

  .organisation-grid {
    grid-template-columns: 1fr;
  }

  .organisation-grid .organisation-card {
    align-items: flex-start !important;
  }

  .organisation-identity-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .organisation-identity-main {
    align-items: flex-start;
  }

  .organisation-identity-logo {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 12px;
    font-size: 1.45rem;
  }

  .organisation-person-row {
    flex-wrap: wrap;
  }

  .organisation-person-copy {
    flex-basis: calc(100% - 3.25rem);
  }

  .organisation-person-badges {
    width: 100%;
    justify-content: flex-end;
    padding-left: 3.1rem;
  }

  .organisation-form-section {
    padding: 1rem;
  }

  .organisation-logo-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .organisation-logo-field {
    width: 100%;
  }

  .organisation-payment-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .organisation-payment-status-action {
    grid-column: 1 / -1;
  }

  .organisation-payment-status-action .btn,
  .organisation-integration-grid .organisation-payment-status-action .btn {
    width: calc(100% - 4.5rem);
    margin-right: auto;
  }

  .organisation-form-actions {
    padding: 0.8rem 1rem;
  }

  .organisation-form-actions .btn {
    flex: 1;
  }

  body:has(.organisation-form-page) .whatsapp-widget {
    bottom: 5.75rem;
  }

  .app-shell-page .card-body {
    padding: 1rem;
  }
}

.upsell-admin-page,
.upsell-public-shell {
  color: #172033;
}

.upsell-page-header,
.upsell-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.upsell-order-actions {
  align-items: center;
  justify-content: flex-end;
}

.upsell-email-actions-menu {
  min-width: 18rem;
  padding: 0.35rem;
  border-color: rgba(23, 32, 51, 0.1);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.12);
}

.upsell-email-action {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.6rem 0.7rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 700;
}

.upsell-email-action .bi {
  margin-top: 0.1rem;
  color: #0d6efd;
}

.upsell-email-action span,
.upsell-email-action small {
  display: block;
}

.upsell-email-action small {
  max-width: 15rem;
  overflow: hidden;
  color: #718096;
  font-size: 0.72rem;
  font-weight: 500;
  text-overflow: ellipsis;
}

.upsell-panel,
.upsell-catalogue-card,
.upsell-public-panel,
.upsell-success-panel {
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.07);
}

.upsell-panel,
.upsell-public-panel,
.upsell-success-panel {
  padding: 1.25rem;
}

.upsell-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.upsell-catalogue-card {
  padding: 1rem;
}

.upsell-catalogue-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.upsell-catalogue-viewport {
  min-width: 0;
  overflow: hidden;
}

.upsell-catalogue-track {
  display: grid;
  grid-auto-columns: calc((100% - 2rem) / 3);
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.upsell-catalogue-track::-webkit-scrollbar {
  display: none;
}

.upsell-catalogue-track .upsell-catalogue-card {
  min-width: 0;
  scroll-snap-align: start;
}

.upsell-catalogue-chevron {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.upsell-status-badge {
  display: inline-flex;
  align-items: center;
}

.upsell-catalogue-listings,
.upsell-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upsell-empty-state {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  border: 1px dashed rgba(23, 32, 51, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.upsell-empty-state .bi {
  color: #0d6efd;
  font-size: 2rem;
}

.upsell-settings-accordion .accordion-item {
  overflow: hidden;
  border-color: rgba(23, 32, 51, 0.1);
  border-radius: 8px;
}

.upsell-details-panel {
  overflow: hidden;
  padding: 0;
  border-color: rgba(30, 64, 175, 0.12);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.07);
}

.upsell-catalogue-form-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  background: linear-gradient(135deg, #f7faff 0%, #fff 72%);
}

.upsell-catalogue-form-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upsell-catalogue-form-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #e8f1ff);
  color: #0d6efd;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.08);
}

.upsell-catalogue-status {
  min-width: max-content;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 9px;
  background: #fff;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.upsell-catalogue-statuses {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.upsell-catalogue-status-private {
  min-width: max-content;
}

.upsell-catalogue-private-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.upsell-catalogue-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #718096;
  line-height: 1;
  transition: color 150ms ease, box-shadow 150ms ease;
}

.upsell-catalogue-info:hover,
.upsell-catalogue-info:focus-visible {
  color: #0d6efd;
}

.upsell-catalogue-info:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}

.upsell-catalogue-info-tooltip .tooltip-inner {
  max-width: 22rem;
  text-align: left;
}

.upsell-catalogue-status:has(input:checked) {
  border-color: rgba(25, 135, 84, 0.2);
  background: #f2fbf6;
}

.upsell-catalogue-form-body {
  padding: 0.9rem 1rem 1rem;
}

.upsell-catalogue-fields {
  display: grid;
  grid-template-columns: minmax(12rem, 0.85fr) minmax(18rem, 1.15fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.upsell-catalogue-field {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 10px;
  background: #fbfcfe;
}

.upsell-catalogue-field:focus-within {
  border-color: rgba(13, 110, 253, 0.28);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.06);
}

.upsell-catalogue-field-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  color: #34435c;
  font-size: 0.8rem;
  font-weight: 700;
}

.upsell-catalogue-field-label .bi {
  color: #0d6efd;
}

.upsell-catalogue-field .form-control {
  background: #fff;
}

.upsell-catalogue-field .form-text {
  margin-top: 0.3rem;
  color: #718096;
  font-size: 0.72rem;
  line-height: 1.25;
}

.upsell-details-panel .upsell-settings-accordion {
  margin: 0;
}

.upsell-details-panel .accordion-button {
  padding: 0.6rem 0.75rem;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: none;
}

.upsell-details-panel .accordion-button:not(.collapsed) {
  background: #f7faff;
  color: #172033;
}

.upsell-catalogue-listings-icon {
  display: inline-flex;
  width: 1.65rem;
  height: 1.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #eaf2ff;
  color: #0d6efd;
}

.upsell-details-panel .accordion-button .badge {
  border: 1px solid rgba(13, 110, 253, 0.12);
  background: #eef5ff;
  color: #315783;
}

.upsell-details-panel .accordion-body {
  padding: 0.6rem;
  border-top: 1px solid rgba(23, 32, 51, 0.06);
  background: #fbfcfe;
}

.upsell-details-panel .upsell-listing-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.5rem;
}

.upsell-details-panel .upsell-listing-choice {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(23, 32, 51, 0.09);
  background: #fff;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.upsell-details-panel .upsell-listing-choice:has(input:checked) {
  border-color: rgba(13, 110, 253, 0.38);
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.upsell-catalogue-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
  background: #f8fafc;
}

.upsell-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}

.upsell-listing-choice,
.upsell-check-choice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.8rem;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  background: #fff;
}

.upsell-listing-choice.is-disabled {
  background: #f1f4f8;
  color: #7a8699;
}

.upsell-listing-choice-title {
  display: block;
  font-weight: 700;
}

.upsell-listing-choice-note {
  display: block;
  margin-top: 0.15rem;
  color: #7a8699;
  font-size: 0.85rem;
}

.upsell-editor {
  padding: 1rem;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 8px;
  background: #f8fbff;
}

.upsell-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
}

.upsell-table-wrap thead {
  background: #f8fafc;
}

.upsell-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.upsell-definition-grid {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.75rem;
}

.upsell-definition-grid dt {
  color: #5d6b82;
  font-size: 0.85rem;
  font-weight: 700;
}

.upsell-definition-grid dd {
  min-width: 0;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.upsell-definition-grid-wide {
  grid-template-columns: minmax(8rem, 0.25fr) minmax(0, 1fr);
}

.upsell-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upsell-timeline::before {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1rem;
  width: 1px;
  background: rgba(23, 32, 51, 0.14);
  content: "";
}

.upsell-timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.85rem;
}

.upsell-timeline-marker {
  z-index: 1;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 110, 253, 0.24);
  border-radius: 999px;
  background: #fff;
  color: #0d6efd;
}

.upsell-timeline-body {
  padding: 0.85rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.upsell-public-shell {
  width: min(100%, 720px);
  margin: 0 auto;
}

.public-flow-page {
  min-height: 100vh;
  background-color: #f5f8fc;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(13, 110, 253, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 15%, rgba(111, 66, 193, 0.06), transparent 24rem);
}

.public-flow-page > .container {
  min-height: 100vh;
}

.checkin-public-shell {
  width: min(100%, 760px);
}

.upsell-public-header {
  position: relative;
  padding: 0.75rem 1rem 0;
  text-align: center;
}

.upsell-public-header h1 {
  font-weight: 750;
  letter-spacing: -0.025em;
}

.checkin-public-logo {
  display: block;
  width: auto;
  max-width: min(15rem, 80%);
  height: auto;
  max-height: 5rem;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.checkin-public-message {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #49566b;
  line-height: 1.65;
}

.checkin-public-message-footer {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.88);
}

.public-flow-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #eaf3ff);
  color: #0d6efd;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.12);
  font-size: 1.3rem;
}

.public-flow-icon-muted {
  border-color: rgba(93, 107, 130, 0.14);
  background: #f3f5f8;
  color: #5d6b82;
  box-shadow: none;
}

.public-flow-badge,
.public-flow-success-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fff4d6;
  color: #856404;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-flow-success-badge {
  margin-bottom: 0.75rem;
  background: #e8f5ee;
  color: #146c43;
}

.public-flow-page .upsell-public-panel,
.public-flow-page .upsell-success-panel {
  border-color: rgba(23, 32, 51, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.public-flow-page .upsell-public-panel {
  padding: 1.35rem;
}

.public-flow-page .upsell-success-panel {
  padding: 2rem;
}

.public-panel-heading {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.public-panel-heading h2 {
  font-weight: 750;
}

.public-flow-page .form-label {
  margin-bottom: 0.35rem;
  color: #49566b;
  font-size: 0.85rem;
  font-weight: 700;
}

.public-flow-page .form-control,
.public-flow-page .form-select {
  min-height: 2.75rem;
  border-color: rgba(23, 32, 51, 0.14);
  border-radius: 10px;
  background-color: #fbfcfe;
}

.public-flow-page .form-control[type="file"]::file-selector-button {
  height: calc(2.75rem - 2px);
}

.public-flow-page .form-control:focus,
.public-flow-page .form-select:focus {
  border-color: rgba(13, 110, 253, 0.5);
  background-color: #fff;
  box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.1);
}

.public-primary-action,
.public-flow-page form > .btn-primary:last-child {
  display: flex;
  min-height: 3.25rem;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.2);
  font-weight: 700;
}

.checkin-section-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.checkin-section-header-actions {
  justify-content: space-between;
  align-items: flex-start;
}

.checkin-section-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 8px;
  background: #eef5ff;
  color: #0d6efd;
}

.public-flow-page .checkin-section-icon {
  border-radius: 10px;
  background: #f0f6ff;
}

.checkin-additional-guest {
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.public-flow-page .checkin-additional-guest {
  border-radius: 12px;
  background: #fbfcfe;
}

.checkin-public-form .errorlist {
  margin: 0.4rem 0 0;
  padding: 0;
  color: var(--bs-danger, #dc3545);
  font-size: 0.875rem;
  line-height: 1.35;
  list-style: none;
}

.checkin-public-form .errorlist li + li {
  margin-top: 0.2rem;
}

.checkin-public-form .form-control.is-invalid,
.checkin-public-form .form-select.is-invalid {
  border-color: var(--bs-danger, #dc3545);
}

.checkin-guest-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.checkin-remove-guest {
  justify-self: end;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
}

.checkin-empty-state {
  padding: 1rem;
  border: 1px dashed rgba(23, 32, 51, 0.16);
  border-radius: 8px;
  color: #5d6b82;
  text-align: center;
}

.checkin-settings-page {
  max-width: 1000px;
}

.checkin-settings-page .app-page-header {
  margin-bottom: 1.5rem;
}

.app-page-eyebrow {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: #0d6efd;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.checkin-settings-card {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
}

.checkin-settings-card-body {
  padding: 2rem;
}

.checkin-settings-divider {
  margin: 2rem 0;
  border-color: rgba(23, 32, 51, 0.1);
  opacity: 1;
}

.checkin-settings-intro {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 48rem;
}

.checkin-settings-intro-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 12px;
  background: #eef5ff;
  color: #0d6efd;
  font-size: 1.25rem;
}

.checkin-logo-setting {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 12px;
  background: #fbfcfe;
}

.checkin-logo-setting .form-check {
  display: flex;
  min-width: 0;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.checkin-logo-setting .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
}

.checkin-settings-logo-preview {
  width: auto;
  max-width: 10rem;
  height: auto;
  max-height: 3.5rem;
  object-fit: contain;
}

.checkin-settings-logo-missing {
  max-width: 20rem;
  color: #8a5b00;
  font-size: 0.85rem;
  line-height: 1.45;
}

.checkin-copy-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.checkin-copy-fields textarea {
  min-height: 8rem;
  resize: vertical;
}

.checkin-field-setting {
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 12px;
  background: #fbfcfe;
}

.checkin-field-setting-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
}

.checkin-field-required {
  display: flex;
  min-height: 2.75rem;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0 0.25rem;
}

.checkin-field-required .form-check-input {
  margin: 0;
}

.checkin-picture-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.checkin-picture-option {
  display: flex;
  min-height: 12.5rem;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.checkin-picture-option:hover {
  border-color: rgba(13, 110, 253, 0.32);
  transform: translateY(-1px);
}

.checkin-picture-option:has(input:checked) {
  border-color: rgba(13, 110, 253, 0.58);
  background: #f3f7ff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
}

.checkin-picture-option:has(input:focus-visible) {
  outline: 3px solid rgba(13, 110, 253, 0.2);
  outline-offset: 2px;
}

.checkin-picture-option-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.checkin-picture-option-icon {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f4f8;
  color: #5d6b82;
  font-size: 1.1rem;
}

.checkin-picture-option:has(input:checked) .checkin-picture-option-icon {
  background: #dfeaff;
  color: #0d6efd;
}

.checkin-picture-option .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
}

.checkin-picture-option-title {
  color: #172033;
  font-weight: 750;
  line-height: 1.25;
}

.checkin-picture-option-copy {
  margin-top: 0.5rem;
  color: #66738a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkin-settings-note {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f7f9fc;
  color: #5d6b82;
  font-size: 0.9rem;
}

.checkin-settings-note i {
  color: #0d6efd;
  font-size: 1rem;
}

.checkin-settings-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
  background: #f8fafc;
}

.checkin-settings-actions .btn {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .checkin-settings-card-body {
    padding: 1.25rem;
  }

  .checkin-picture-options {
    grid-template-columns: 1fr;
  }

  .checkin-copy-fields {
    grid-template-columns: 1fr;
  }

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

  .checkin-field-setting-grid .app-icon-button {
    justify-self: end;
  }

  .checkin-picture-option {
    min-height: 0;
  }

  .checkin-settings-actions {
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .checkin-settings-intro-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .checkin-settings-actions .btn {
    flex: 1 1 0;
  }

  .checkin-logo-setting {
    align-items: flex-start;
    flex-direction: column;
  }
}

.checkin-billing-toggle {
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.upsell-public-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 8px;
  background: #f8fafc;
}

.public-flow-page .upsell-public-item {
  border-color: rgba(23, 32, 51, 0.09);
  border-radius: 12px;
  background: #fbfcfe;
}

.upsell-public-item-selectable {
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.upsell-public-item-selectable:hover,
.upsell-public-item-selectable:focus-within {
  border-color: rgba(13, 110, 253, 0.28);
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
  transform: translateY(-1px);
}

.upsell-public-item-copy {
  min-width: 0;
}

.upsell-public-item-copy h2,
.upsell-public-item h3 {
  font-weight: 750;
}

.upsell-public-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.upsell-public-price {
  display: inline-flex;
  gap: 0.3rem;
  align-items: baseline;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #0b5ed7;
  font-size: 0.9rem;
  font-weight: 800;
}

.upsell-public-price small {
  font-size: 0.72rem;
  font-weight: 700;
}

.checkin-extras-summary-line,
.checkin-extras-summary-total {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.checkin-extras-summary-line strong,
.checkin-extras-summary-total strong:last-child {
  flex: 0 0 auto;
}

.checkin-extras-summary-total {
  border-top: 1px solid rgba(23, 32, 51, 0.1);
  font-size: 1.05rem;
}

.upsell-public-quantity .form-label {
  margin-bottom: 0.35rem;
  color: #5d6b82;
  font-size: 0.85rem;
  font-weight: 700;
}

.upsell-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.upsell-order-summary .upsell-summary-line:not(.upsell-summary-total),
.upsell-success-summary .upsell-summary-line:not(.upsell-summary-total) {
  padding: 0.15rem 0;
  color: #49566b;
}

.upsell-summary-total {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.upsell-success-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: #e8f5ee;
  color: #198754;
  font-size: 1.5rem;
}

.public-flow-page .upsell-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  box-shadow: 0 10px 30px rgba(25, 135, 84, 0.12);
}

.upsell-success-summary {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 8px;
  background: #f8fafc;
}

.public-flow-page .upsell-success-summary {
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  background: #fbfcfe;
}

.checkin-complete-copy {
  max-width: 34rem;
}

.checkin-complete-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.checkin-complete-row + .checkin-complete-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

@media (max-width: 767.98px) {
  .upsell-page-header,
  .upsell-panel-header {
    flex-direction: column;
  }

  .upsell-page-header:has(> .app-page-header-actions > .app-icon-button) {
    flex-direction: row;
  }

  .upsell-order-actions {
    justify-content: flex-start;
  }

  .upsell-catalogue-form-header {
    align-items: stretch;
    flex-direction: column;
  }

  .upsell-catalogue-status {
    align-self: flex-start;
  }

  .upsell-catalogue-statuses {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .upsell-catalogue-status-private {
    width: 100%;
    min-width: 0;
  }

  .upsell-catalogue-fields {
    grid-template-columns: 1fr;
  }

  .upsell-catalogue-form-actions .btn {
    flex: 1;
  }

  .upsell-catalogue-carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
  }

  .upsell-catalogue-track {
    grid-auto-columns: 100%;
  }

  .upsell-detail-grid,
  .upsell-definition-grid,
  .upsell-definition-grid-wide {
    grid-template-columns: 1fr;
  }

  .upsell-public-item {
    grid-template-columns: 1fr;
  }

  .checkin-guest-row {
    grid-template-columns: 1fr;
  }

  .checkin-section-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .checkin-remove-guest {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .upsell-catalogue-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

  .upsell-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Focused onboarding flow */
.onboarding-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(73, 106, 229, 0.1), transparent 30rem),
    #f7f8fc;
}

.onboarding-navbar-wrap {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.onboarding-navbar {
  min-height: 72px;
}

.onboarding-shell {
  max-width: 1240px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.onboarding-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  padding-left: 0;
  list-style: none;
}

.onboarding-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 92px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.onboarding-progress-step > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.onboarding-progress-step > a:hover {
  color: #496ae5;
}

.onboarding-progress-dot {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
}

.onboarding-progress-step.is-active {
  color: #3447a8;
}

.onboarding-progress-step.is-active .onboarding-progress-dot {
  border-color: #496ae5;
  box-shadow: 0 0 0 5px rgba(73, 106, 229, 0.1);
}

.onboarding-progress-step.is-complete .onboarding-progress-dot {
  border-color: #198754;
  background: #198754;
  color: #fff;
  box-shadow: none;
}

.onboarding-progress-line {
  width: 110px;
  height: 2px;
  margin-top: 1rem;
  background: #dbe1ea;
}

.onboarding-progress-line.is-complete {
  background: #198754;
}

.onboarding-heading {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.onboarding-heading h1 {
  margin: 0.25rem 0 0.6rem;
  color: #17203a;
  font-weight: 750;
}

.onboarding-heading p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 1.08rem;
}

.onboarding-eyebrow {
  color: #496ae5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-card,
.onboarding-existing-org,
.onboarding-integration-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
}

.onboarding-page .onboarding-existing-org {
  color: #fff;
  background: linear-gradient(145deg, #1e2a5a, #3447a8);
}

.onboarding-page .onboarding-existing-org h2 {
  color: #fff;
}

.onboarding-page .onboarding-existing-org .text-muted {
  color: rgba(255, 255, 255, 0.76) !important;
}

.onboarding-page .onboarding-existing-org .alert-light {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08);
}

.onboarding-side-icon,
.onboarding-integration-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 0.85rem;
  color: #496ae5;
  background: rgba(73, 106, 229, 0.1);
  font-size: 1.4rem;
}

.onboarding-page .onboarding-existing-org .onboarding-side-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.onboarding-integration-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.onboarding-integration-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.onboarding-integration-contact {
  background: linear-gradient(155deg, #fff, #eef2ff);
}

.onboarding-copy-org {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(73, 106, 229, 0.2);
  border-radius: 0.8rem;
  background: #f2f5ff;
}

.onboarding-help-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.75);
}

.onboarding-organisation-switcher {
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 0.75rem;
  margin: -1rem auto 2rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
}

.onboarding-organisation-switcher .form-select {
  flex: 1;
}

.onboarding-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.onboarding-sync-card,
.onboarding-narrow-alert {
  max-width: 760px;
}

.onboarding-status-icon {
  margin-right: auto;
  margin-left: auto;
}

.onboarding-status-icon.is-failed {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.onboarding-advanced {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.75rem;
  background: #f8fafc;
}

.onboarding-advanced summary {
  color: #3447a8;
  cursor: pointer;
  font-weight: 650;
}

@media (max-width: 767.98px) {
  .onboarding-navbar .onboarding-help-label {
    display: none;
  }

  .onboarding-navbar .btn-outline-primary i {
    margin-right: 0 !important;
  }

  .onboarding-navbar .onboarding-signout {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .onboarding-progress-step {
    min-width: 72px;
  }

  .onboarding-progress-line {
    width: 48px;
  }

  .onboarding-copy-org,
  .onboarding-help-card,
  .onboarding-organisation-switcher {
    align-items: stretch;
    flex-direction: column;
  }
}
