/*
 * Bizgix Operations UI
 * Load after app.css. Shared page, setup, card, form, table and responsive
 * patterns for customer-panel pages. Keep page-specific content in page views.
 */

/* Page frame and heading */
.bgx-page {
  width: 100%;
  max-width: 1480px;
  min-width: 0;
  margin: 0 auto;
  padding: 5px;
}

.bgx-page-header,
.bgx-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.bgx-page-header > div:first-child,
.bgx-page-header-main,
.bgx-page-content {
  min-width: 0;
}

.bgx-page-header h1,
.bgx-profile-header h1 {
  margin: 0 0 8px;
  color: var(--bgx-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.bgx-page-header p,
.bgx-profile-header p {
  max-width: 760px;
  margin: 0;
  color: var(--bgx-text);
  font-size: 14px;
  line-height: 1.65;
}

.bgx-breadcrumb,
.bgx-profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--bgx-light-text);
  font-size: 13px;
  font-weight: 500;
}

.bgx-breadcrumb i,
.bgx-profile-breadcrumb i {
  color: var(--bgx-muted);
  font-size: 16px;
}

.bgx-page-actions,
.bgx-page-hero-actions,
.bgx-profile-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bgx-page-content {
  width: 100%;
}

/* Conversation history and message workspace */
.bgx-chat-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--bgx-border, #dce6f3);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(31, 63, 115, 0.08);
}

.bgx-chat-context {
  padding: 26px 22px;
  border-right: 1px solid #e5edf7;
  background: linear-gradient(160deg, #f2f7ff 0%, #edf5ff 58%, #f7faff 100%);
}

.bgx-chat-context .bgx-section-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #d3e3ff;
  border-radius: 16px;
  background: #fff;
  color: #2865e8;
  box-shadow: 0 5px 14px rgba(38, 101, 232, 0.1);
}

.bgx-chat-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
}

.bgx-chat-header {
  min-height: 76px;
  padding: 18px 24px;
  border-bottom: 1px solid #e8eef7;
  background: linear-gradient(100deg, #fff 0%, #f7faff 100%);
}

.bgx-chat-header strong {
  color: #142547;
  font-size: 16px;
}

.bgx-chat-body {
  flex: 1 1 auto;
  min-height: 480px;
  max-height: min(72vh, 780px);
  overflow: auto;
  padding: 28px clamp(18px, 4vw, 52px);
  background:
    radial-gradient(
      ellipse at 50% 0,
      rgba(222, 236, 255, 0.42),
      transparent 55%
    ),
    #f8fafd;
}

.bgx-conversation-timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}

.bgx-conversation-message {
  display: flex;
  width: 100%;
}

.bgx-conversation-message.customer {
  justify-content: flex-start;
}

.bgx-conversation-message.employee {
  justify-content: flex-end;
}

.bgx-conversation-message-inner {
  width: fit-content;
  max-width: min(78%, 680px);
}

.bgx-conversation-message.employee .bgx-conversation-meta {
  justify-content: flex-end;
}

.bgx-conversation-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 4px 7px;
  color: #7a8ba6;
  font-size: 12px;
}

.bgx-conversation-sender {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #435673;
  font-weight: 700;
}

.bgx-conversation-sender i {
  color: #3472ec;
  font-size: 15px;
}

.bgx-conversation-bubble {
  padding: 13px 16px;
  border: 1px solid #e0e8f3;
  border-radius: 17px 17px 17px 5px;
  background: #fff;
  color: #263753;
  box-shadow: 0 5px 16px rgba(29, 56, 99, 0.055);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.bgx-conversation-message.employee .bgx-conversation-bubble {
  border-color: #c9dcff;
  border-radius: 17px 17px 5px 17px;
  background: linear-gradient(135deg, #edf5ff 0%, #e8f0ff 100%);
}

.bgx-conversation-type {
  margin-bottom: 5px;
  color: #4771b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgx-conversation-text {
  white-space: normal;
}

@media (max-width: 767.98px) {
  .bgx-chat-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .bgx-chat-context {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #e5edf7;
  }

  .bgx-chat-body {
    min-height: 420px;
    max-height: 68vh;
    padding: 20px 14px;
  }

  .bgx-conversation-message-inner {
    max-width: 92%;
  }
}

/* Shared hero and setup progress cards */
.bgx-context-hero,
.bgx-page-hero,
.bgx-page-main-header,
.bgx-setup-header,
.bgx-readiness,
.bgx-profile-readiness {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--bgx-primary-border);
  border-radius: var(--bgx-radius-lg);
  background: linear-gradient(118deg, #e4efff 0%, #eaf2ff 48%, #e2f6ff 100%);
  box-shadow: var(--bgx-shadow-xs);
}

.bgx-context-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 126px;
  padding: 24px 26px;
}

.bgx-page-hero {
  display: block;
  min-height: 0;
  padding: 0;
}

.bgx-page-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
}

.bgx-page-hero-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  border-radius: 14px;
}

.bgx-page-hero-icon i {
  font-size: 24px;
}

.bgx-page-hero-title {
  margin: 0 0 7px;
  color: var(--bgx-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bgx-page-hero-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--bgx-text);
  font-size: 13px;
  line-height: 1.55;
}

.bgx-page-main-header {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 22px;
  background: linear-gradient(118deg, #e4efff 0%, #eaf2ff 48%, #e2f6ff 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}

.bgx-context-hero::after,
.bgx-setup-header::after,
.bgx-page-main-header::after,
.bgx-page-main-header::before {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.bgx-context-hero::after,
.bgx-setup-header::after,
.bgx-page-main-header::after {
  top: -90px;
  right: -55px;
  width: 190px;
  height: 190px;
  background: rgba(24, 175, 208, 0.1);
}

.bgx-page-main-header::after {
  top: -105px;
  right: -45px;
  width: 230px;
  height: 230px;
  background: rgba(24, 175, 208, 0.12);
}

.bgx-page-main-header::before {
  right: 150px;
  bottom: -90px;
  width: 160px;
  height: 160px;
  background: rgba(37, 99, 235, 0.06);
}

.bgx-context-hero > *,
.bgx-page-hero > *,
.bgx-page-main-header > * {
  position: relative;
  z-index: 1;
}

.bgx-context-hero-icon,
.bgx-page-main-header-icon,
.bgx-setup-header-icon,
.bgx-readiness-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border: 1px solid var(--bgx-primary-border);
  border-radius: 16px;
  background: var(--bgx-surface);
  color: var(--bgx-primary);
  box-shadow: var(--bgx-shadow-xs);
}

.bgx-context-hero-icon i,
.bgx-page-main-header-icon i,
.bgx-setup-header-icon i,
.bgx-readiness-icon i {
  font-size: 25px;
}

/* Catalog context hero. This component-specific block follows the grouped
   hero/icon rules above so its values take precedence without changing them. */
.bgx-context-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 0;
  padding: 22px 24px;
  position: static;
  overflow: visible;
  box-shadow: none;
}

.bgx-context-hero::after {
  content: none;
}

.bgx-context-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 0;
  border-radius: var(--bgx-radius-md);
  background: var(--bgx-surface);
  color: var(--bgx-primary);
  box-shadow: var(--bgx-shadow-xs);
  font-size: 24px;
}

.bgx-context-hero-icon i {
  font-size: 24px;
}

.bgx-context-hero-content,
.bgx-context-hero > div:nth-child(2) {
  min-width: 0;
}

.bgx-context-hero-content > span,
.bgx-context-hero > div:nth-child(2) > span {
  display: block;
  margin: 0 0 5px;
  color: var(--bgx-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bgx-context-hero-content h2,
.bgx-context-hero > div:nth-child(2) h2 {
  margin: 0 0 5px;
  color: var(--bgx-heading);
  font-size: 18px;
  font-weight: 700;
}

.bgx-context-hero-content p,
.bgx-context-hero > div:nth-child(2) p {
  margin: 0;
  color: var(--bgx-text);
  font-size: 13px;
  line-height: 1.55;
}

.bgx-context-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--bgx-success);
  font-size: 13px;
  font-weight: 600;
}

.bgx-context-hero-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bgx-success);
}

@media (max-width: 900px) {
  .bgx-context-hero {
    grid-template-columns: auto 1fr;
  }
  .bgx-context-hero-status {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .bgx-context-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .bgx-context-hero-status {
    grid-column: auto;
  }
}

.bgx-page-main-header-main,
.bgx-setup-header-main,
.bgx-readiness-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.bgx-page-main-header-content,
.bgx-setup-header-content,
.bgx-readiness-content {
  min-width: 0;
  flex: 1;
}

.bgx-page-main-header-heading,
.bgx-readiness-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.bgx-page-main-header-content > span,
.bgx-setup-header-content > span,
.bgx-readiness-heading > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--bgx-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgx-page-main-header-content h1,
.bgx-page-main-header-content h2,
.bgx-setup-header-content h1,
.bgx-setup-header-content h2,
.bgx-readiness-heading h2 {
  margin: 0 0 7px;
  color: var(--bgx-heading);
  font-size: 20px;
  font-weight: 700;
}

.bgx-page-main-header-content p,
.bgx-setup-header-content p,
.bgx-readiness-content > p {
  max-width: 760px;
  margin: 0;
  color: var(--bgx-text);
  font-size: 13px;
  line-height: 1.6;
}

.bgx-page-main-header-progress,
.bgx-readiness-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--bgx-primary-soft-hover);
}

.bgx-page-main-header-progress span,
.bgx-readiness-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bgx-gradient-brand);
}

.bgx-page-main-header-heading > strong,
.bgx-readiness-heading > strong,
.bgx-setup-header-progress {
  color: var(--bgx-primary);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.bgx-page-main-header-status,
.bgx-readiness-status {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--bgx-primary-border);
  background: var(--bgx-card-bg);
}

.bgx-page-main-header-status > div,
.bgx-readiness-status > div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-right: 1px solid var(--bgx-border-soft);
  color: var(--bgx-light-text);
  font-size: 12px;
  font-weight: 600;
}

.bgx-page-main-header-status > div:last-child,
.bgx-readiness-status > div:last-child {
  border-right: 0;
}
.bgx-page-main-header-status i,
.bgx-readiness-status i {
  font-size: 16px;
}
.bgx-page-main-header-status .completed,
.bgx-readiness-status .completed {
  color: var(--bgx-success);
}
.bgx-page-main-header-status .current,
.bgx-readiness-status .current {
  color: var(--bgx-warning);
}

/* Shared cards, summaries and section headings */
.bgx-card,
.bgx-section-card,
.bgx-filter-card,
.bgx-side-card,
.bgx-form-card,
.bgx-profile-form-card,
.bgx-overview-card {
  min-width: 0;
  border: 1px solid var(--bgx-card-border);
  border-radius: var(--bgx-radius-lg);
  background: var(--bgx-card-bg);
  box-shadow: var(--bgx-shadow-xs);
}

.bgx-card {
  overflow: hidden;
}
.bgx-section-card,
.bgx-form-card,
.bgx-profile-form-card {
  padding: 24px;
}

.bgx-section-header,
.bgx-profile-section-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.bgx-section-header-icon,
.bgx-profile-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--bgx-primary-border);
  border-radius: 11px;
  background: var(--bgx-primary-soft);
  color: var(--bgx-primary);
}

.bgx-section-header h2,
.bgx-profile-section-header h2 {
  margin: 0 0 5px;
  color: var(--bgx-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bgx-section-header p,
.bgx-profile-section-header p {
  max-width: 680px;
  margin: 0;
  color: var(--bgx-light-text);
  font-size: 13px;
  line-height: 1.55;
}

/* Shared summary grid and card */

.bgx-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bgx-summary-card {
  display: block;
  min-width: 0;
  min-height: 88px;
  padding: 18px;
  border: 1px solid var(--bgx-card-border);
  border-radius: var(--bgx-radius-md);
  background: var(--bgx-card-bg);
  box-shadow: var(--bgx-shadow-xs);
}

.bgx-summary-card > span {
  display: block;
  margin-bottom: 2px;
  color: var(--bgx-light-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.bgx-summary-card strong {
  display: block;
  margin-bottom: 1px;
  color: var(--bgx-heading);
  font-size: 23px;
  line-height: 1.15;
}

.bgx-summary-card small {
  display: block;
  color: var(--bgx-muted);
  font-size: 11px;
}

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

@media (max-width: 640px) {
  .bgx-summary-grid {
    grid-template-columns: 1fr;
  }
}

.bgx-summary-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--bgx-card-border);
  border-radius: var(--bgx-radius-md);
  background: var(--bgx-card-bg);
  box-shadow: var(--bgx-shadow-xs);
}

.bgx-summary-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--bgx-radius);
  background: var(--bgx-primary-soft);
  color: var(--bgx-primary);
  font-size: 21px;
}

.bgx-summary-stat > div:last-child {
  min-width: 0;
}

.bgx-summary-stat span,
.bgx-summary-stat small {
  display: block;
}

.bgx-summary-stat span {
  margin-bottom: 2px;
  color: var(--bgx-light-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.bgx-summary-stat strong {
  display: block;
  margin-bottom: 1px;
  color: var(--bgx-heading);
  font-size: 23px;
  line-height: 1.15;
}

.bgx-summary-stat small {
  color: var(--bgx-muted);
  font-size: 11px;
}

/* Shared two-column business page and section navigation */
.bgx-page-layout,
.bgx-profile-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.bgx-section-nav,
.bgx-page-nav,
.bgx-profile-nav {
  position: sticky;
  top: calc(var(--bgx-navbar-height) + 24px);
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--bgx-card-border);
  border-radius: var(--bgx-radius-lg);
  background: var(--bgx-card-bg);
  box-shadow: var(--bgx-shadow-xs);
}

.bgx-section-nav-label,
.bgx-page-nav-label,
.bgx-profile-nav-label {
  display: block;
  padding: 8px 10px 10px;
  color: var(--bgx-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bgx-section-nav-item,
.bgx-page-nav-item,
.bgx-profile-nav-item {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--bgx-radius-md);
  background: transparent;
  color: var(--bgx-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: var(--bgx-transition);
}

.bgx-section-nav-item:hover,
.bgx-page-nav-item:hover,
.bgx-profile-nav-item:hover {
  background: var(--bgx-hover);
}

.bgx-section-nav-item.active,
.bgx-page-nav-item.active,
.bgx-profile-nav-item.active {
  background: var(--bgx-primary-soft);
}

.bgx-section-nav-item > span,
.bgx-page-nav-item > span,
.bgx-profile-nav-item > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--bgx-surface-secondary);
  color: var(--bgx-light-text);
}

.bgx-section-nav-item.active > span,
.bgx-page-nav-item.active > span,
.bgx-profile-nav-item.active > span {
  background: var(--bgx-surface);
  color: var(--bgx-primary);
  box-shadow: var(--bgx-shadow-xs);
}

.bgx-section-nav-item strong,
.bgx-section-nav-item small,
.bgx-page-nav-item strong,
.bgx-page-nav-item small,
.bgx-profile-nav-item strong,
.bgx-profile-nav-item small {
  display: block;
}

.bgx-section-nav-item strong,
.bgx-page-nav-item strong,
.bgx-profile-nav-item strong {
  margin-bottom: 2px;
  color: var(--bgx-heading);
  font-size: 12px;
  font-weight: 600;
}

.bgx-section-nav-item small,
.bgx-page-nav-item small,
.bgx-profile-nav-item small {
  color: var(--bgx-muted);
  font-size: 10px;
  line-height: 1.35;
}

/* Forms use the same card and spacing language on every page */
.bgx-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.bgx-form-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bgx-form-row-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bgx-form-group {
  min-width: 0;
  margin-bottom: 16px;
}
.bgx-form-label {
  display: block;
  margin-bottom: 7px;
  color: var(--bgx-heading);
  font-size: 12px;
  font-weight: 600;
}
.bgx-input,
.bgx-select,
.bgx-textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--bgx-input-border, var(--bgx-card-border));
  border-radius: var(--bgx-radius-md);
  background: var(--bgx-surface);
  color: var(--bgx-text);
  font: inherit;
  font-size: 13px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.bgx-textarea {
  min-height: 104px;
  resize: vertical;
}
.bgx-input:focus,
.bgx-select:focus,
.bgx-textarea:focus {
  border-color: var(--bgx-primary);
  outline: 0;
  box-shadow: 0 0 0 3px var(--bgx-primary-soft);
}

.form-password-toggle .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.form-password-toggle .input-group > .bgx-input {
  flex: 1 1 0%;
  width: 1%;
  min-width: 0;
}

.form-password-toggle .input-group > .toggle-password {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bgx-form-help {
  display: block;
  margin-top: 6px;
  color: var(--bgx-light-text);
  font-size: 11px;
  line-height: 1.45;
}
.bgx-required {
  color: var(--bgx-danger, #dc3545);
}
.bgx-form-divider {
  height: 1px;
  margin: 20px 0;
  background: var(--bgx-divider);
}
.bgx-page-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Toolbars and data tables */
.bgx-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.bgx-toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bgx-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.bgx-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--bgx-divider);
}
.bgx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.bgx-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bgx-divider);
  background: var(--bgx-surface-secondary);
  color: var(--bgx-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.bgx-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bgx-border-soft);
  color: var(--bgx-text);
  font-size: 13px;
  vertical-align: middle;
}
.bgx-table tbody tr:hover {
  background: var(--bgx-hover);
}
.bgx-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Shared status and empty states */
.bgx-empty-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--bgx-card-border);
  border-radius: var(--bgx-radius-md);
  color: var(--bgx-light-text);
  text-align: center;
}
.bgx-empty-state > i {
  color: var(--bgx-primary);
  font-size: 28px;
}
.bgx-empty-state strong {
  color: var(--bgx-heading);
  font-size: 14px;
}
.bgx-save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bgx-success);
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .bgx-page-layout,
  .bgx-profile-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }
  .bgx-page-main-header-status,
  .bgx-readiness-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bgx-page-main-header-status > div:nth-child(3n),
  .bgx-readiness-status > div:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 800px) {
  .bgx-page {
    padding: 24px 20px 32px;
  }
  .bgx-card-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .bgx-toolbar-filters {
    width: 100%;
  }
  .bgx-toolbar-filters > * {
    min-width: 0;
    flex: 1 1 0;
  }
  .bgx-page-layout,
  .bgx-profile-layout {
    grid-template-columns: 1fr;
  }
  .bgx-section-nav,
  .bgx-page-nav,
  .bgx-profile-nav {
    position: static;
  }
  .bgx-form-row-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bgx-page {
    padding: 20px 14px 28px;
  }
  .bgx-page-header,
  .bgx-profile-header {
    flex-direction: column;
  }
  .bgx-page-actions,
  .bgx-page-actions > *,
  .bgx-page-hero-actions {
    width: 100%;
  }
  .bgx-page-hero-content {
    gap: 14px;
    padding: 18px;
  }
  .bgx-page-hero-title {
    font-size: 17px;
  }
  .bgx-page-main-header-main,
  .bgx-setup-header-main,
  .bgx-readiness-main {
    align-items: flex-start;
    padding: 18px;
  }
  .bgx-page-main-header-heading,
  .bgx-readiness-heading {
    gap: 10px;
  }
  .bgx-page-main-header-status,
  .bgx-readiness-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bgx-page-main-header-status > div:nth-child(2n),
  .bgx-readiness-status > div:nth-child(2n) {
    border-right: 0;
  }
  .bgx-page-main-header-status > div:nth-child(-n + 4),
  .bgx-readiness-status > div:nth-child(-n + 4) {
    border-bottom: 1px solid var(--bgx-border-soft);
  }

  .bgx-profile-summary-grid,
  .bgx-form-row,
  .bgx-form-row-three,
  .bgx-form-row-four {
    grid-template-columns: 1fr;
  }
  .bgx-section-card,
  .bgx-form-card,
  .bgx-profile-form-card {
    padding: 18px;
  }
  .bgx-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .bgx-page-form-actions,
  .bgx-page-form-actions > * {
    width: 100%;
  }
}
/********************************/
.bgx-form-card {
  scroll-margin-top: calc(var(--bgx-navbar-height, 72px) + 24px);
  margin-bottom: 18px;
}

.bgx-form-card > .bgx-section-header {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--bgx-divider);
}

.bgx-form-card > .bgx-section-header > div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--bgx-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bgx-page-form-actions {
  align-items: center;
  padding: 18px 0 4px;
}

/* Shared form layout with a supporting sidebar on the right */
.bgx-page-layout.bgx-page-layout-sidebar-right {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.bgx-page-form-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
}

.bgx-page-form-sidebar > .bgx-side-card + .bgx-side-card {
  margin-top: 0;
}

/* Universal supporting sidebar cards */
.bgx-page-form-sidebar > .bgx-side-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--bgx-surface);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.bgx-page-form-sidebar .bgx-section-header {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
}

.bgx-page-form-sidebar .bgx-section-header-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--bgx-primary-border);
  border-radius: 14px;
  background: var(--bgx-primary-soft);
  color: var(--bgx-primary);
  font-size: 20px;
}

.bgx-page-form-sidebar .bgx-section-header h2,
.bgx-page-form-sidebar .bgx-section-card-title {
  margin: 0 0 7px;
  color: var(--bgx-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.bgx-page-form-sidebar .bgx-section-header p,
.bgx-page-form-sidebar .bgx-section-card-subtitle {
  margin: 0;
  color: var(--bgx-light-text);
  font-size: 11px;
  line-height: 1.5;
}

.bgx-sidebar-checklist {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding: 0;
}

.bgx-sidebar-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  color: var(--bgx-text);
  font-size: 13px;
  line-height: 1.4;
}

.bgx-sidebar-checklist li i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--bgx-success);
  font-size: 14px;
  line-height: 1.2;
}

@media (max-width: 600px) {
  .bgx-page-form-sidebar > .bgx-side-card {
    padding: 14px;
  }

  .bgx-page-form-sidebar .bgx-section-header h2,
  .bgx-page-form-sidebar .bgx-section-card-title {
    font-size: 16px;
  }

  .bgx-sidebar-checklist li {
    font-size: 12px;
  }
}

.bgx-section-header h5,
.bgx-section-header .bgx-section-card-title {
  margin: 0 0 5px;
  color: var(--bgx-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 800px) {
  .bgx-page-layout.bgx-page-layout-sidebar-right {
    grid-template-columns: 1fr;
  }
}

/* Shared setting row */
.bgx-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px;
  margin-top: 8px;
  border: 1px solid var(--bgx-border);
  border-radius: var(--bgx-radius-md);
}

.bgx-setting-row strong,
.bgx-setting-row > div > span {
  display: block;
}

.bgx-setting-row strong {
  margin-bottom: 3px;
  color: var(--bgx-heading);
  font-size: 11px;
}

.bgx-setting-row > div > span {
  color: var(--bgx-light-text);
  font-size: 9px;
}

/* Shared working-hours preview */
.bgx-working-hours-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid var(--bgx-border);
  border-radius: var(--bgx-radius-md);
  background: var(--bgx-surface-secondary);
}

.bgx-working-hours-preview > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bgx-working-hours-status {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--bgx-success);
}

.bgx-working-hours-preview strong,
.bgx-working-hours-preview div span {
  display: block;
}

.bgx-working-hours-preview strong {
  color: var(--bgx-heading);
  font-size: 10px;
}

.bgx-working-hours-preview div span,
.bgx-working-hours-preview > span {
  color: var(--bgx-light-text);
  font-size: 9px;
}

/* Shared toggle switch */
.bgx-switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
}

.bgx-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.bgx-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--bgx-border-dark);
  cursor: pointer;
  transition: var(--bgx-transition);
}

.bgx-switch-slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bgx-surface);
  content: "";
  box-shadow: var(--bgx-shadow-xs);
  transition: var(--bgx-transition);
}

.bgx-switch input:checked + .bgx-switch-slider {
  background: var(--bgx-primary);
}

.bgx-switch input:checked + .bgx-switch-slider::before {
  transform: translateX(18px);
}

@media (max-width: 760px) {
  .bgx-working-hours-preview {
    align-items: flex-start;
    flex-direction: column;
  }

  .bgx-setting-row {
    align-items: flex-start;
  }
}

/* ========================================================================
   BIZGIX CUSTOMER PANEL CHROME
   Keep the logo, navigation, top bar and page canvas on one calm blue scale.
======================================================================== */

.bgx-wrapper,
.bgx-main,
.bgx-content {
  background: #f3f7fc;
}

.bgx-sidebar {
  border-right: 1px solid #dce6f3;
  background: linear-gradient(180deg, #f2f7fe 0%, #f7f9fd 100%);
  box-shadow: 5px 0 22px rgba(20, 47, 86, 0.045);
}

.bgx-logo {
  border-bottom: 1px solid #e2eaf5;
  background: rgba(255, 255, 255, 0.72);
}

.bgx-logo-image {
  filter: drop-shadow(0 2px 5px rgba(28, 72, 135, 0.08));
}

.bgx-sidebar-menu {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bgx-sidebar-menu .bgx-menu-group + .bgx-menu-group {
  border-top: 1px solid #dfe8f3;
}

.bgx-sidebar-menu .bgx-menu-title {
  color: #7185a2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.bgx-sidebar-menu .bgx-sidebar-item {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #435773;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.bgx-sidebar-menu .bgx-sidebar-item > i {
  color: #7288a8;
}

.bgx-sidebar-menu .bgx-sidebar-item:hover {
  border-color: #dbe8f8;
  background: #edf4fd;
  color: #2059a4;
}

.bgx-sidebar-menu .bgx-sidebar-item:hover > i {
  color: #2b70ca;
}

.bgx-sidebar-menu .bgx-sidebar-item.active {
  border-color: #ccdef5;
  background: linear-gradient(100deg, #e4f0ff 0%, #f1f7ff 100%);
  box-shadow:
    inset 3px 0 0 #347be0,
    0 4px 11px rgba(37, 99, 216, 0.055);
  color: #1f559d;
  font-weight: 700;
}

.bgx-sidebar-menu .bgx-sidebar-item.active > i {
  color: #276bc6;
}

.bgx-sidebar-menu .bgx-sidebar-count {
  border: 1px solid #dbe7f6;
  background: #f1f6fd;
  color: #376bad;
}

.bgx-sidebar-menu .bgx-sidebar-item.active .bgx-sidebar-count {
  border-color: #d1e0f4;
  background: rgba(255, 255, 255, 0.88);
  color: #2868c7;
}

.bgx-sidebar-footer {
  border-top: 1px solid #dfe8f3;
  background: rgba(255, 255, 255, 0.45);
}

.bgx-workspace-status {
  border: 1px solid #dce7f5;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff 0%, #f0f6fe 100%);
}

.bgx-main {
  background: #f3f7fc;
}

.bgx-navbar {
  border-bottom: 1px solid #e0e8f2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 20px rgba(24, 51, 91, 0.045);
  backdrop-filter: blur(14px);
}

.bgx-search {
  border-color: #dce6f2;
  background: #f7faff;
}

.bgx-search:focus-within {
  border-color: #9dbce7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(44, 111, 201, 0.08);
}

.bgx-navbar-workforce {
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f9ff 0%, #eaf3ff 100%);
}

.bgx-navbar-workforce-icon {
  border: 1px solid #d1e3fa;
  border-radius: 10px;
  background: linear-gradient(145deg, #e8f2ff, #e7f6ff);
  color: #286bc8;
}

.bgx-icon-btn {
  border-color: #e0e8f2;
  background: rgba(255, 255, 255, 0.9);
  color: #526782;
  box-shadow: 0 2px 7px rgba(20, 47, 86, 0.035);
}

.bgx-icon-btn:hover {
  border-color: #c9dcf5;
  background: #f2f7fe;
  color: #286bc8;
  box-shadow: 0 5px 13px rgba(37, 99, 216, 0.09);
}

.bgx-profile:hover {
  border-color: #e1eaf5;
  background: #f6f9fd;
}

@media (prefers-reduced-motion: reduce) {
  .bgx-sidebar-menu .bgx-sidebar-item {
    transition: none;
  }
}

/* Sidebar collapse/slide behavior for the shared customer-panel shell. */
:root {
  --bgx-sidebar-collapsed-width: 78px;
  --bgx-sidebar-expanded-width: 270px;
}

.bgx-wrapper .bgx-sidebar,
.bgx-wrapper .bgx-main {
  transition:
    width 0.24s ease,
    margin-left 0.24s ease,
    transform 0.24s ease;
}

@media (min-width: 992px) {
  .bgx-wrapper:not(.bgx-sidebar-collapsed) .bgx-sidebar {
    width: var(--bgx-sidebar-expanded-width);
    transform: none;
  }

  .bgx-wrapper:not(.bgx-sidebar-collapsed) .bgx-main {
    width: calc(100% - var(--bgx-sidebar-expanded-width));
    margin-left: var(--bgx-sidebar-expanded-width);
  }
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar {
  width: var(--bgx-sidebar-collapsed-width);
  overflow: hidden;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-main {
  width: calc(100% - var(--bgx-sidebar-collapsed-width));
  margin-left: var(--bgx-sidebar-collapsed-width);
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-logo {
  justify-content: flex-start;
  overflow: hidden;
  padding-right: 0;
  padding-left: 2px;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-logo-image {
  width: 150px !important;
  max-width: none !important;
  flex: 0 0 150px;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-menu-title {
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar-item {
  position: relative;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  padding-right: 8px;
  padding-left: 8px;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar-item > i {
  flex: 0 0 auto;
  min-width: 24px;
  text-align: center;
}

.bgx-wrapper.bgx-sidebar-collapsed
  .bgx-sidebar-item
  > span:not(.bgx-sidebar-count):not(.bgx-sidebar-live):not(
    .bgx-sidebar-status-dot
  ) {
  display: none;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar-count,
.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar-live,
.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar-status-dot {
  position: absolute;
  top: 5px;
  right: 4px;
  margin: 0;
}

.bgx-sidebar-overlay {
  display: none;
}

@media (max-width: 991.98px) {
  .bgx-wrapper .bgx-sidebar {
    z-index: 1050;
    width: var(--bgx-sidebar-expanded-width);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
  }

  .bgx-wrapper .bgx-sidebar.active {
    transform: translateX(0);
  }

  .bgx-wrapper .bgx-main,
  .bgx-wrapper.bgx-sidebar-collapsed .bgx-main {
    width: 100%;
    margin-left: 0;
  }

  .bgx-sidebar-overlay.show {
    position: fixed;
    z-index: 1040;
    inset: 0;
    display: block;
    background: rgba(11, 27, 50, 0.38);
    backdrop-filter: blur(2px);
  }

  body.bgx-sidebar-open {
    overflow: hidden;
  }
}

/* Default collapsed rail with one continuous blue sidebar surface. */
@media (min-width: 992px) {
  .bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar {
    width: var(--bgx-sidebar-collapsed-width);
  }

  .bgx-wrapper.bgx-sidebar-collapsed .bgx-main {
    width: calc(100% - var(--bgx-sidebar-collapsed-width));
    margin-left: var(--bgx-sidebar-collapsed-width);
  }
}

.bgx-wrapper .bgx-sidebar {
  border-right: 1px solid #0d3470;
  background: linear-gradient(180deg, #123f7d 0%, #10356b 48%, #0b2855 100%);
  box-shadow: 8px 0 26px rgba(7, 31, 69, 0.2);
  color: #eaf3ff;
}

.bgx-wrapper .bgx-logo {
  border-bottom: 1px solid rgba(218, 234, 255, 0.15);
  background: rgba(6, 29, 66, 0.18);
}

.bgx-sidebar .bgx-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.bgx-sidebar .bgx-logo-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.bgx-sidebar .bgx-logo-expanded {
  display: block;
  width: 170px;
  max-width: 100%;
  height: 68px;
  object-fit: contain;
  object-position: center;
}

.bgx-sidebar .bgx-logo-collapsed {
  display: none;
  width: 48px;
  height: 56px;
  object-fit: contain;
  object-position: center;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar .bgx-logo-expanded {
  display: none;
}

.bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar .bgx-logo-collapsed {
  display: block;
}

.bgx-wrapper .bgx-logo-image {
  filter: drop-shadow(0 2px 8px rgba(0, 15, 43, 0.2));
}

.bgx-wrapper .bgx-sidebar-menu {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-menu-group + .bgx-menu-group {
  border-top: 1px solid rgba(210, 231, 255, 0.16);
}

.bgx-wrapper .bgx-sidebar-menu .bgx-menu-title {
  color: #9bb9e1;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item {
  border: 1px solid transparent;
  background: transparent;
  color: #e3edfc;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item > i {
  color: #9dbce8;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item:hover {
  border-color: rgba(153, 198, 255, 0.25);
  background: rgba(104, 166, 244, 0.15);
  color: #fff;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item:hover > i {
  color: #bfe0ff;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item.active {
  border-color: rgba(159, 206, 255, 0.42);
  background: linear-gradient(105deg, #2876e6 0%, #188fc9 100%);
  box-shadow:
    inset 3px 0 0 #b8dcff,
    0 7px 18px rgba(2, 19, 49, 0.18);
  color: #fff;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item.active > i {
  color: #fff;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-count {
  border: 1px solid rgba(226, 240, 255, 0.28);
  background: rgba(239, 247, 255, 0.14);
  color: #f3f8ff;
}

.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item.active .bgx-sidebar-count {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.bgx-wrapper .bgx-sidebar-footer {
  border-top: 1px solid rgba(210, 231, 255, 0.16);
  background: rgba(5, 25, 57, 0.22);
}

.bgx-wrapper .bgx-workspace-status {
  border-color: rgba(218, 234, 255, 0.2);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.11),
    rgba(255, 255, 255, 0.055)
  );
  color: #edf5ff;
}

/* Compact card directories for small, scannable record collections */
.bgx-directory-panel > .bgx-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bgx-directory-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 520px);
  margin-left: auto;
}

.bgx-directory-filters .bgx-search {
  min-width: 220px;
  flex: 1 1 280px;
}

.bgx-directory-filters > select {
  min-width: 145px;
  flex: 0 0 auto;
}

.bgx-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  padding: 0 18px 18px;
}

.bgx-record-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #d7e5f7;
  border-radius: var(--bgx-radius-md);
  background: linear-gradient(145deg, #f1f7ff 0%, #ffffff 58%);
  box-shadow: 0 8px 22px rgba(35, 79, 145, 0.075);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.bgx-record-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2864f5 0%, #15b6d2 100%);
  content: "";
  opacity: 0.8;
}

.bgx-record-card:hover,
.bgx-de-card:hover {
  border-color: #b9d3f5;
  box-shadow: 0 14px 30px rgba(35, 79, 145, 0.12);
  transform: translateY(-2px);
}

.bgx-record-card-top,
.bgx-record-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bgx-record-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid var(--bgx-primary-border);
  border-radius: 14px;
  background: var(--bgx-primary-soft);
  color: var(--bgx-primary);
  font-size: 20px;
  font-weight: 700;
}

.bgx-record-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--bgx-card-border);
  border-radius: 999px;
  background: var(--bgx-surface-secondary);
  color: var(--bgx-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.bgx-record-status > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.bgx-record-status.is-active,
.bgx-record-status.is-connected {
  border-color: rgba(22, 163, 74, 0.18);
  background: rgba(22, 163, 74, 0.07);
  color: var(--bgx-success);
}

.bgx-record-status.is-inactive,
.bgx-record-status.is-disconnected {
  color: var(--bgx-muted);
}

.bgx-record-status.is-ready {
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(217, 119, 6, 0.08);
  color: var(--bgx-warning);
}

.bgx-record-identity {
  min-width: 0;
  margin: 18px 0 14px;
}

.bgx-record-eyebrow {
  display: block;
  overflow: hidden;
  color: var(--bgx-primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.bgx-record-identity h3 {
  margin: 5px 0 6px;
  color: var(--bgx-heading);
  font-size: 18px;
  font-weight: 700;
}

.bgx-record-identity p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--bgx-muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bgx-record-details {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 13px 0;
  border-top: 1px solid var(--bgx-divider);
  border-bottom: 1px solid var(--bgx-divider);
}

.bgx-record-details > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--bgx-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.bgx-record-details strong {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--bgx-text);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bgx-record-details strong i {
  flex: 0 0 auto;
  color: var(--bgx-primary);
  font-size: 15px;
}

.bgx-record-card-footer {
  margin-top: 13px;
  color: var(--bgx-muted);
  font-size: 11px;
}

.bgx-directory-message {
  grid-column: 1 / -1;
  padding: 28px 16px;
  color: var(--bgx-muted);
  text-align: center;
}

.bgx-device-avatar {
  color: var(--bgx-success);
}

/* Digital Employee directory cards, matching the supplied employee-card reference. */
.bgx-de-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.bgx-de-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #d7e5f7;
  border-radius: 22px;
  background: linear-gradient(145deg, #f1f7ff 0%, #ffffff 58%);
  box-shadow: 0 8px 22px rgba(35, 79, 145, 0.075);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.bgx-de-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2864f5 0%, #15b6d2 100%);
  content: "";
  opacity: 0.8;
}

.bgx-de-card-top,
.bgx-de-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bgx-de-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #2864f5 0%, #12b5cf 100%);
  color: #fff;
  font-size: 27px;
  font-weight: 750;
}

.bgx-de-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #effbf3;
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bgx-de-status > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.bgx-de-status.is-inactive {
  background: #f1f5f9;
  color: #64748b;
}

.bgx-de-identity {
  min-height: 200px;
  padding-top: 28px;
}

.bgx-de-role,
.bgx-de-block-label {
  display: block;
  color: #2864f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bgx-de-identity h3 {
  margin: 7px 0 10px;
  color: #111c32;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.bgx-de-identity p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #71829d;
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bgx-de-current {
  min-height: 120px;
  padding: 17px;
  border: 1px solid #e6edf6;
  border-radius: 18px;
  background: #f7f9fc;
}

.bgx-de-block-label {
  margin-bottom: 13px;
  color: #9aa9bf;
  font-size: 10px;
}

.bgx-de-activity-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.bgx-de-activity-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 15px;
  background: #edf4ff;
  color: #2864f5;
  font-size: 22px;
}

.bgx-de-activity-row > div {
  min-width: 0;
}
.bgx-de-activity-row strong,
.bgx-de-activity-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bgx-de-activity-row strong {
  color: #152139;
  font-size: 14px;
  font-weight: 700;
}
.bgx-de-activity-row small {
  margin-top: 5px;
  color: #7788a2;
  font-size: 12px;
}

.bgx-de-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid #e6edf6;
  border-radius: 17px;
  background: #fff;
}

.bgx-de-metrics > div {
  min-width: 0;
  padding: 14px 7px 13px;
  text-align: center;
}
.bgx-de-metrics > div + div {
  border-left: 1px solid #e6edf6;
}
.bgx-de-metrics strong,
.bgx-de-metrics small {
  display: block;
}
.bgx-de-metrics strong {
  color: #18243b;
  font-size: 20px;
  font-weight: 750;
}
.bgx-de-metrics small {
  margin-top: 5px;
  color: #9aa9bf;
  font-size: 11px;
}

.bgx-de-channels {
  display: flex;
  min-height: 64px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
}
.bgx-de-channels > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #e1e9f3;
  border-radius: 999px;
  background: #f8fafc;
  color: #53637d;
  font-size: 11px;
  font-weight: 650;
}
.bgx-de-channels i {
  font-size: 13px;
}

.bgx-de-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e6edf6;
}
.bgx-de-open,
.bgx-de-more {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.bgx-de-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #2864f5;
  font-size: 14px;
  font-weight: 750;
}
.bgx-de-open:hover {
  color: #1748c5;
}
.bgx-de-open i {
  font-size: 17px;
}
.bgx-de-more {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #71829d;
  font-size: 19px;
}
.bgx-de-more:hover {
  background: #f1f5f9;
}

@media (max-width: 1200px) {
  .bgx-de-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .bgx-de-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bgx-de-card {
    padding: 18px;
  }
  .bgx-de-identity {
    min-height: 0;
    padding: 22px 0;
  }
}

@media (max-width: 700px) {
  .bgx-directory-panel > .bgx-section-header {
    align-items: flex-start;
  }

  .bgx-directory-filters {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .bgx-directory-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .bgx-directory-filters .bgx-search,
  .bgx-directory-filters > select {
    width: 100%;
  }
}

.bgx-wrapper .bgx-workspace-status-title,
.bgx-wrapper .bgx-workspace-status-meta {
  color: #d9e8fc;
}

@media (max-width: 991.98px) {
  .bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar-menu .bgx-menu-title {
    width: auto;
    height: auto;
    opacity: 1;
  }

  .bgx-wrapper.bgx-sidebar-collapsed .bgx-sidebar-menu .bgx-sidebar-item {
    justify-content: flex-start;
    gap: 12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .bgx-wrapper.bgx-sidebar-collapsed
    .bgx-sidebar-menu
    .bgx-sidebar-item
    > span:not(.bgx-sidebar-count):not(.bgx-sidebar-live):not(
      .bgx-sidebar-status-dot
    ) {
    display: inline;
  }
}

/* Sales report settings page */
.bgx-sales-report > .bgx-page-header {
  margin-bottom: 18px;
}

.bgx-sales-report > .bgx-context-hero {
  margin-bottom: 22px;
  border: 1px solid #cfe2fb;
  border-radius: 20px;
  background: linear-gradient(112deg, #edf5ff 0%, #f8fbff 58%, #eefaff 100%);
  box-shadow: 0 8px 22px rgba(38, 100, 190, 0.055);
}

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

.bgx-report-kpi {
  display: flex;
  min-width: 0;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid #dce8f7;
  border-radius: 17px;
  background: linear-gradient(145deg, #f3f8ff 0%, #ffffff 72%);
  box-shadow: 0 7px 18px rgba(35, 79, 145, 0.06);
}

.bgx-report-kpi-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid #d8e8ff;
  border-radius: 13px;
  background: #eaf3ff;
  color: #2864f5;
  font-size: 20px;
}

.bgx-report-kpi > div {
  min-width: 0;
}
.bgx-report-kpi > div > span,
.bgx-report-kpi small {
  display: block;
}
.bgx-report-kpi > div > span {
  margin-bottom: 4px;
  color: #71829d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.065em;
}
.bgx-report-kpi strong {
  display: block;
  color: #14213b;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.2;
}
.bgx-report-kpi small {
  margin-top: 3px;
  color: #8a9bb4;
  font-size: 11px;
}

.bgx-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.bgx-sales-report-form .bgx-card {
  position: relative;
  min-width: 0;
  padding: 23px;
  overflow: hidden;
  border-color: #dce8f7;
  border-radius: 18px;
  background: linear-gradient(145deg, #f9fbff 0%, #ffffff 66%);
  box-shadow: 0 8px 20px rgba(35, 79, 145, 0.055);
}

.bgx-sales-report-form .bgx-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2864f5, #18afd0);
  content: "";
}

.bgx-sales-report-form .bgx-section-header {
  margin-bottom: 20px;
}
.bgx-sales-report-form .bgx-section-header > div:last-child > span {
  display: block;
  margin-bottom: 4px;
  color: #2864f5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.bgx-report-period,
.bgx-report-content {
  grid-column: 1 / -1;
}

.bgx-report-period-fields {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bgx-report-period-fields .bgx-form-group,
.bgx-report-grouping .bgx-form-group,
.bgx-report-export .bgx-form-group {
  margin-bottom: 0;
}

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

.bgx-sales-report-form .bgx-setting-row {
  min-width: 0;
  min-height: 70px;
  margin: 0;
  padding: 13px 15px;
  border-color: #e1eaf6;
  border-radius: 13px;
  background: #fff;
}
.bgx-sales-report-form .bgx-setting-row strong {
  font-size: 12px;
}
.bgx-sales-report-form .bgx-setting-row > div > span {
  font-size: 11px;
  line-height: 1.4;
}

.bgx-sales-report-form .bgx-form-footer {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #dce8f7;
  border-radius: 16px;
  background: linear-gradient(110deg, #f5f9ff, #fff);
}

@media (max-width: 1100px) {
  .bgx-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .bgx-settings-grid,
  .bgx-setting-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .bgx-report-period,
  .bgx-report-content {
    grid-column: auto;
  }
  .bgx-report-period-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .bgx-sales-report-form .bgx-card {
    padding: 18px;
  }
}
@media (max-width: 520px) {
  .bgx-report-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Approval queue: soft Bizgix blues with clear priority and status accents */
.bgx-approval-filters {
  border-color: #cfe0ff;
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(91, 126, 255, 0.12),
      transparent 28%
    ),
    linear-gradient(120deg, #f0f6ff 0%, #f8fbff 58%, #f1fbff 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07);
}

#approvalqueue .bgx-approval-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8e5f6;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(66, 133, 244, 0.09),
      transparent 26%
    ),
    linear-gradient(115deg, #ffffff 0%, #f8fbff 72%, #f3f8ff 100%);
  box-shadow: 0 8px 22px rgba(31, 63, 115, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

#approvalqueue .bgx-approval-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, #12a9ee 0%, #315ff1 56%, #913be7 100%);
}

#approvalqueue .bgx-approval-card:hover {
  transform: translateY(-2px);
  border-color: #b7d2ff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.11);
}

#approvalqueue .bgx-approval-card > * {
  position: relative;
  z-index: 1;
}

#approvalqueue .bgx-approval-title {
  color: #14294d;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

#approvalqueue .bgx-approval-id {
  color: #7184a3 !important;
}

#approvalqueue .bgx-approval-meta {
  margin: 0;
  padding: 14px 8px;
  border: 1px solid #e3ecfa;
  border-radius: 13px;
  background: rgba(239, 246, 255, 0.76);
}

#approvalqueue .bgx-approval-meta > [class*="col-"] {
  padding: 0 16px;
}

#approvalqueue .bgx-approval-meta .small {
  margin-bottom: 4px;
  color: #8092ad !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

#approvalqueue .bgx-approval-meta .fw-medium {
  color: #344a6d;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

#approvalqueue .bgx-approval-review {
  border-color: #c6d9ff;
  background: linear-gradient(105deg, #fff 0%, #f2f7ff 100%);
  color: #245fe4;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

#approvalqueue .bgx-approval-review:hover {
  border-color: #8fb6ff;
  background: linear-gradient(105deg, #eaf3ff 0%, #e9f9ff 100%);
  color: #1248c5;
}

#approvalqueue .bgx-approval-type,
#approvalqueue .bgx-approval-priority,
#approvalqueue .bgx-approval-state {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.015em;
}

#approvalqueue .bgx-approval-type {
  border-color: #cfe0ff;
  background: #eaf2ff;
  color: #285fce;
}

#approvalqueue .bgx-approval-priority.is-normal {
  border-color: #dce6f3;
  background: #f1f5fa;
  color: #63758f;
}

#approvalqueue .bgx-approval-priority.is-high {
  border-color: #ffe1a6;
  background: #fff5dd;
  color: #a86100;
}

#approvalqueue .bgx-approval-priority.is-urgent {
  border-color: #ffc9d1;
  background: #fff0f2;
  color: #c3334b;
}

#approvalqueue .bgx-approval-state.is-pending,
#approvalqueue .bgx-approval-state.is-active {
  border-color: #bfe7d4;
  background: #eaf9f1;
  color: #14834e;
}

#approvalqueue .bgx-approval-state.is-waiting,
#approvalqueue .bgx-approval-state.is-paused {
  border-color: #ffdfaa;
  background: #fff6e5;
  color: #a66500;
}

#approvalqueue .bgx-approval-state.is-completed {
  border-color: #c9dcff;
  background: #edf4ff;
  color: #2d62c8;
}

#approvalqueue .bgx-approval-state.is-failed {
  border-color: #ffc9d1;
  background: #fff0f2;
  color: #c3334b;
}

.bgx-approval-summary .bgx-summary-stat {
  border-color: #d9e6f8;
  box-shadow: 0 8px 22px rgba(31, 63, 115, 0.055);
}

.bgx-approval-summary .bgx-summary-stat:nth-child(1) {
  background: linear-gradient(135deg, #edf5ff, #fff 82%);
}
.bgx-approval-summary .bgx-summary-stat:nth-child(2) {
  background: linear-gradient(135deg, #ecfbf4, #fff 82%);
}
.bgx-approval-summary .bgx-summary-stat:nth-child(3) {
  background: linear-gradient(135deg, #fff2f3, #fff 82%);
}
.bgx-approval-summary .bgx-summary-stat:nth-child(4) {
  background: linear-gradient(135deg, #f2efff, #fff 82%);
}

.bgx-approval-summary .bgx-summary-stat:nth-child(2) .bgx-summary-stat-icon {
  background: #def7e9;
  color: #159456;
}
.bgx-approval-summary .bgx-summary-stat:nth-child(3) .bgx-summary-stat-icon {
  background: #ffe5e8;
  color: #d6475c;
}
.bgx-approval-summary .bgx-summary-stat:nth-child(4) .bgx-summary-stat-icon {
  background: #e9e3ff;
  color: #6846cf;
}

#approvaldecisionarea,
#approvaldetailssection,
#approvalcustomermessage {
  border-color: #d4e3f8;
  background: linear-gradient(135deg, #fff 0%, #f7faff 100%);
}

.bgx-approval-intro {
  border-color: #cfe0ff;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(70, 122, 242, 0.12),
      transparent 27%
    ),
    linear-gradient(120deg, #edf5ff 0%, #fff 72%, #f4faff 100%);
}

.bgx-approval-hero .bgx-page-hero-icon {
  border: 1px solid #c9dcff;
  background: linear-gradient(140deg, #fff 0%, #e5f3ff 100%);
  color: #2b67e8;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

#approvaldecisionarea .bgx-section-card-header,
#approvaldetailssection .bgx-section-card-header {
  background: linear-gradient(
    100deg,
    rgba(232, 242, 255, 0.88),
    rgba(244, 250, 255, 0.35)
  );
}

@media (max-width: 767.98px) {
  #approvalqueue .bgx-approval-meta {
    row-gap: 12px;
  }
  #approvalqueue .bgx-approval-meta > [class*="col-"] {
    padding-inline: 12px;
  }
  #approvalqueue .bgx-approval-review {
    width: 100%;
    justify-content: center;
  }
}

/* Business financial accounts */
.bgx-financial-accounts {
  --bgx-financial-blue: #2867e8;
  --bgx-financial-cyan: #14acd2;
  --bgx-financial-ink: #14294d;
  --bgx-financial-line: #dce7f5;
}

.bgx-financial-hero {
  border-color: #c8dcff;
  background:
    radial-gradient(
      circle at 88% 0%,
      rgba(17, 172, 222, 0.18),
      transparent 25%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(119, 79, 237, 0.12),
      transparent 31%
    ),
    linear-gradient(112deg, #eaf3ff 0%, #f8fbff 54%, #e9f8ff 100%);
  box-shadow: 0 12px 30px rgba(39, 96, 184, 0.075);
}

.bgx-financial-hero::after {
  position: absolute;
  top: -78px;
  right: 5%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(52, 115, 224, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(52, 115, 224, 0.035),
    0 0 0 46px rgba(52, 115, 224, 0.025);
  content: "";
  pointer-events: none;
}

.bgx-financial-hero .bgx-page-hero-content {
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: space-between;
  min-height: 142px;
  padding: 28px 32px;
}

.bgx-financial-hero .bgx-page-hero-title {
  margin-bottom: 8px;
  color: var(--bgx-financial-ink);
  font-size: clamp(25px, 2.3vw, 34px);
}

.bgx-financial-hero .bgx-page-hero-subtitle {
  max-width: 650px;
}

.bgx-financial-add-button {
  min-height: 46px;
  padding-inline: 20px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(110deg, #168fe8 0%, #315fea 58%, #6748e4 100%);
  box-shadow: 0 9px 20px rgba(47, 97, 220, 0.2);
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.bgx-financial-add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(47, 97, 220, 0.25);
}

.bgx-financial-stat {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 20px 21px;
  border: 1px solid #dce8f8;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f7faff 100%);
  box-shadow: 0 7px 20px rgba(31, 63, 115, 0.055);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.bgx-financial-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 63, 115, 0.09);
}
.bgx-financial-stat::after {
  position: absolute;
  right: -23px;
  bottom: -46px;
  width: 110px;
  height: 110px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
  content: "";
}
.bgx-financial-stat-total {
  color: #2867e8;
  background: linear-gradient(135deg, #edf5ff, #fff 82%);
}
.bgx-financial-stat-bank {
  color: #1685bd;
  background: linear-gradient(135deg, #eafaff, #fff 82%);
}
.bgx-financial-stat-upi {
  color: #694bd2;
  background: linear-gradient(135deg, #f2efff, #fff 82%);
}
.bgx-financial-stat-active {
  color: #168a5a;
  background: linear-gradient(135deg, #eaf9f1, #fff 82%);
}
.bgx-financial-stat .bgx-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bgx-financial-stat .bgx-stat-label {
  color: #7184a3;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.bgx-financial-stat .bgx-stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, white);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font-size: 19px;
}
.bgx-financial-stat .bgx-stat-value {
  margin-top: 10px;
  color: #172b4d;
  font-size: 28px;
  font-weight: 780;
  line-height: 1.05;
}
.bgx-financial-stat .bgx-stat-meta {
  margin-top: 5px;
  color: #8292aa;
  font-size: 11px;
}

.bgx-financial-list-card {
  overflow: hidden;
  border: 1px solid #dce7f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 63, 115, 0.06);
}
.bgx-financial-list-card .bgx-operation-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8eef7;
  background: linear-gradient(105deg, #f0f6ff 0%, #f8fbff 70%, #eefaff 100%);
}
.bgx-financial-list-card .bgx-operation-card-header h5 {
  color: var(--bgx-financial-ink);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.bgx-financial-list-card .bgx-operation-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #d4e3ff;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #e8f2ff 100%);
  color: #2d68e7;
  box-shadow: 0 5px 14px rgba(45, 104, 231, 0.1);
  font-size: 21px;
}
.bgx-financial-list-card .bgx-operation-card-body {
  padding: 22px;
}

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

.bgx-account-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(42, 113, 231, 0.09),
      transparent 34%
    ),
    linear-gradient(135deg, #fff 0%, #f7faff 100%);
  box-shadow: 0 6px 18px rgba(31, 63, 115, 0.055);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.bgx-account-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, #159fe8, #3862e8);
}
.bgx-account-card--upi::before {
  background: linear-gradient(180deg, #12b8ce, #654fe0);
}
.bgx-account-card:hover {
  transform: translateY(-2px);
  border-color: #b9d2f7;
  box-shadow: 0 13px 26px rgba(37, 99, 235, 0.1);
}
.bgx-account-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.bgx-account-info {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
}
.bgx-account-type-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #e8f2ff 100%);
  color: #2867e8;
  box-shadow: 0 5px 13px rgba(37, 99, 235, 0.1);
  font-size: 23px;
}
.bgx-account-card--upi .bgx-account-type-icon {
  border-color: #d8d0ff;
  background: linear-gradient(145deg, #fff 0%, #f0edff 100%);
  color: #684bd3;
}
.bgx-account-name {
  color: #192e50;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.bgx-account-detail {
  margin-top: 5px;
  color: #637895;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.bgx-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.bgx-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid #d9e5f4;
  border-radius: 999px;
  background: #f2f6fb;
  color: #667b99;
  font-size: 10px;
  font-weight: 750;
}
.bgx-account-badge-primary {
  border-color: #f2d58e;
  background: #fff7e2;
  color: #9c6900;
}
.bgx-account-badge-active {
  border-color: #bfe8d1;
  background: #eaf9f1;
  color: #17824f;
}
.bgx-account-badge-inactive {
  border-color: #dce3ec;
  background: #f2f4f7;
  color: #78869a;
}
.bgx-account-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.bgx-account-actions .btn {
  min-height: 34px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.bgx-account-actions .btn-outline-primary {
  border-color: #c5d9ff;
  background: #fff;
  color: #2865df;
}
.bgx-account-actions .btn-outline-primary:hover {
  background: #edf4ff;
}
.bgx-account-actions .btn-outline-secondary {
  border-color: #d6e0ec;
  background: #fff;
  color: #60728b;
}
.bgx-account-actions .btn-outline-success {
  border-color: #bee7d1;
  background: #f2fbf6;
  color: #16824e;
}
#accountemptystate {
  padding: 34px 18px;
  border: 1px dashed #c7d9f2;
  border-radius: 17px;
  background: linear-gradient(135deg, #f1f7ff, #f8fcff);
}
#accountemptystate .bgx-empty-state-icon {
  border-color: #cfe0ff;
  background: #e8f2ff;
  color: #2867e8;
}

.bgx-financial-account-modal .modal-content {
  overflow: hidden;
  border: 1px solid #d9e5f4;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(20, 41, 77, 0.2);
}
.bgx-financial-account-modal .modal-header {
  padding: 22px 24px;
  border-bottom-color: #e6edf7;
  background: linear-gradient(110deg, #eff6ff 0%, #fff 65%, #f0fbff 100%);
}
.bgx-financial-account-modal .modal-title {
  color: #172b4d;
  font-weight: 760;
}
.bgx-financial-account-modal .modal-body {
  padding: 24px;
  background: #fbfdff;
}
.bgx-financial-account-modal .form-control,
.bgx-financial-account-modal .form-select {
  min-height: 44px;
  border-color: #d9e4f2;
  border-radius: 11px;
  background-color: #fff;
  color: #263b5b;
}
.bgx-financial-account-modal .form-control:focus,
.bgx-financial-account-modal .form-select:focus {
  border-color: #83b2ff;
  box-shadow: 0 0 0 4px rgba(49, 112, 232, 0.12);
}
.bgx-financial-account-modal .modal-footer {
  padding: 16px 24px;
  border-top-color: #e6edf7;
  background: #f6f9fe;
}
.bgx-financial-account-modal .form-check {
  padding: 12px 14px 12px 2.7em;
  border: 1px solid #e0eaf7;
  border-radius: 12px;
  background: #f3f8ff;
}

@media (max-width: 991.98px) {
  #businessaccountlist {
    grid-template-columns: minmax(0, 1fr);
  }
  .bgx-account-main {
    align-items: flex-start;
    flex-direction: column;
  }
  .bgx-account-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .bgx-financial-hero .bgx-page-hero-content {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 20px;
  }
  .bgx-financial-add-button {
    width: 100%;
  }
  .bgx-financial-list-card .bgx-operation-card-header,
  .bgx-financial-list-card .bgx-operation-card-body {
    padding: 17px;
  }
  .bgx-account-card {
    padding: 17px;
  }
  .bgx-financial-account-modal .modal-body {
    padding: 18px;
  }
}

/* Shared customer-panel surface polish */
.bgx-page-hero,
.bgx-context-hero,
.bgx-page-main-header,
.bgx-setup-header,
.bgx-readiness,
.bgx-profile-readiness {
  border-color: #cbdcf5;
  background:
    radial-gradient(circle at 94% 8%, rgba(113, 83, 244, 0.1), transparent 31%),
    linear-gradient(118deg, #eaf3ff 0%, #f2f7ff 54%, #e8f8ff 100%);
}
.bgx-page-hero {
  box-shadow: 0 10px 28px rgba(40, 77, 132, 0.07);
}
.bgx-page-hero-icon,
.bgx-section-icon {
  border: 1px solid #d2e2fb;
  background: linear-gradient(145deg, #ffffff 0%, #eaf3ff 100%);
  color: #2864ef;
  box-shadow: 0 5px 14px rgba(40, 100, 239, 0.08);
}
.bgx-section-card {
  border-color: #dce7f5;
  background: linear-gradient(155deg, #ffffff 0%, #fcfdff 68%, #f6f9ff 100%);
  box-shadow: 0 8px 24px rgba(28, 58, 101, 0.055);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.bgx-section-card:hover {
  border-color: #c9daf3;
  box-shadow: 0 12px 28px rgba(38, 75, 135, 0.09);
}
.bgx-section-card-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e8eef7;
  background: linear-gradient(
    115deg,
    rgba(239, 246, 255, 0.72),
    rgba(255, 255, 255, 0.88)
  );
}
.bgx-section-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bgx-section-card-body {
  padding: 22px;
}
.bgx-status {
  border-radius: 999px;
  font-weight: 650;
}
@media (max-width: 767.98px) {
  .bgx-section-card-header {
    padding: 18px;
  }
  .bgx-section-card-body {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bgx-section-card {
    transition: none;
  }
}

/* Shared muted cards: keep upcoming/secondary features visible and polished */
.bgx-section-card.opacity-75 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  opacity: 1 !important;
  border-color: #d6e0f0;
  background:
    radial-gradient(
      circle at 94% 7%,
      rgba(120, 91, 238, 0.13),
      transparent 29%
    ),
    linear-gradient(140deg, #f4f8ff 0%, #ffffff 54%, #f1f8ff 100%);
  box-shadow: 0 8px 22px rgba(48, 73, 117, 0.07);
}
.bgx-section-card.opacity-75::before {
  position: absolute;
  z-index: 0;
  top: -58px;
  right: -38px;
  width: 174px;
  height: 174px;
  border: 1px solid rgba(83, 119, 202, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 14px rgba(83, 119, 202, 0.035),
    0 0 0 30px rgba(83, 119, 202, 0.025);
  content: "";
  pointer-events: none;
}
.bgx-section-card.opacity-75 > * {
  position: relative;
  z-index: 1;
}
.bgx-section-card.opacity-75:hover {
  transform: translateY(-2px);
  border-color: #bdcff0;
  box-shadow: 0 13px 28px rgba(48, 73, 117, 0.11);
}
.bgx-section-card.opacity-75 .bgx-section-icon {
  border-color: #cfdbfb;
  background: linear-gradient(145deg, #ffffff 0%, #e8edff 100%);
  color: #5367d8;
  box-shadow: 0 6px 15px rgba(72, 91, 183, 0.12);
}
.bgx-section-card.opacity-75 .bgx-status {
  padding: 6px 11px;
  border: 1px solid #d6e1f2;
  background: rgba(255, 255, 255, 0.82);
  color: #536987;
  font-size: 11px;
  letter-spacing: 0.015em;
}
@media (prefers-reduced-motion: reduce) {
  .bgx-section-card.opacity-75:hover {
    transform: none;
  }
}

/* Structured section cards share one outer edge and one padded content area */
.bgx-section-card:has(> .bgx-section-card-header),
.bgx-section-card:has(> .bgx-section-card-body) {
  padding: 0;
  overflow: hidden;
}

/* Approved Bizgix panel shell colors: keep the logo on white and run the
   navigation rail from the logo blue into its violet accent. */
.bgx-wrapper .bgx-sidebar {
  border-right: 1px solid rgba(53, 82, 228, 0.28);
  background: linear-gradient(
    180deg,
    #079ef0 0%,
    #1268f1 43%,
    #354de9 70%,
    #a728e8 100%
  );
  box-shadow: 8px 0 26px rgba(26, 76, 180, 0.17);
  color: #f4f8ff;
}
.bgx-wrapper .bgx-logo,
.bgx-sidebar .bgx-logo {
  border-bottom: 1px solid #e8edf5;
  background: #fff;
}
.bgx-wrapper .bgx-sidebar-menu .bgx-menu-group + .bgx-menu-group {
  border-top-color: rgba(240, 247, 255, 0.22);
}
.bgx-wrapper .bgx-sidebar-menu .bgx-menu-title {
  color: rgba(236, 245, 255, 0.78);
}
.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item {
  color: #f5f8ff;
}
.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item > i {
  color: #c4ddff;
}
.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item.active {
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.24),
    rgba(99, 198, 255, 0.3)
  );
  box-shadow:
    inset 3px 0 0 #c8e8ff,
    0 7px 18px rgba(23, 48, 158, 0.2);
  color: #fff;
}
.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item.active > i {
  color: #fff;
}
.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-count,
.bgx-wrapper .bgx-sidebar-menu .bgx-sidebar-item.active .bgx-sidebar-count {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.bgx-wrapper .bgx-sidebar-footer {
  border-top-color: rgba(240, 247, 255, 0.22);
  background: rgba(42, 72, 222, 0.12);
}
.bgx-wrapper .bgx-workspace-status {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #f4f8ff;
}

/* Front-panel background palette. Background-only changes to the user panel. */
.bgx-wrapper{background:#d9e8fa}
.bgx-wrapper .bgx-main{
 background-color:#d9e8fa;
 background-image:radial-gradient(ellipse 78% 850px at 52% 1000px,transparent 76%,rgba(255,255,255,.22) 76.2%,rgba(255,255,255,.22) 82%,transparent 82.2%,transparent 88%,rgba(255,255,255,.15) 88.2%,rgba(255,255,255,.15) 94%,transparent 94.2%),linear-gradient(135deg,#e7f0fc 0%,#d6e6fa 52%,#cbdff7 100%);
 background-repeat:no-repeat;
 background-size:100% 1800px,100% 100%;
}
.bgx-wrapper .bgx-content,.bgx-wrapper .bgx-page,.bgx-wrapper .bgx-dashboard,.bgx-wrapper .bgx-dashboard-home{background:transparent}
.bgx-wrapper .bgx-navbar{background:rgba(255,255,255,.92)}
.bgx-wrapper .bgx-footer{background:transparent;border-top-color:#c5d9f1}
.bgx-wrapper .bgx-context-hero,
.bgx-wrapper .bgx-page-hero,
.bgx-wrapper .bgx-page-main-header,
.bgx-wrapper .bgx-setup-header,
.bgx-wrapper .bgx-readiness,
.bgx-wrapper .bgx-profile-readiness,
.bgx-wrapper .bgx-dashboard-bizmitr{
 background:linear-gradient(135deg,#ffffff 0%,#edf5ff 55%,#deebfc 100%);
 border-color:#c5daf3;
}
@media(max-width:768px){.bgx-wrapper .bgx-main{background-size:180% 1500px,100% 100%;background-position:center top,center top}}

/* Rounded blue gradient arch, with a white outer canvas. */
.bgx-wrapper{background:#f9fbff}
.bgx-wrapper .bgx-main{
 background-color:#f9fbff;
 background-image:radial-gradient(ellipse 85% 920px at 50% 800px,#eef5ff 0%,#e2edfc 36%,#c9def8 68%,#c4daf5 74%,rgba(211,228,250,.72) 74.2%,rgba(211,228,250,.72) 80%,rgba(230,239,252,.85) 80.2%,rgba(230,239,252,.85) 86%,transparent 86.2%);
 background-size:100% 1800px;
 background-position:center top;
 background-repeat:no-repeat;
}
@media(max-width:768px){.bgx-wrapper .bgx-main{background-image:radial-gradient(ellipse 110% 800px at 50% 680px,#eef5ff 0%,#d4e5fa 60%,#c4daf5 74%,#deebfc 74.2%,#deebfc 82%,#edf4fd 82.2%,#edf4fd 90%,transparent 90.2%);background-size:100% 1500px}}

.bgx-wrapper .bgx-navbar{background:rgba(235,244,255,.35);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.5);box-shadow:0 3px 16px #264b7910}


/* Shared standard for pre-subscription business pages.
   Heading + contextual summary + section navigation + content cards. */
.bgx-standard-page{width:100%;min-width:0;padding:0;background:transparent;--bgx-card-bg:rgba(255,255,255,.9);--bgx-card-border:#d4e2f2}
.bgx-standard-page .bgx-page-header,.bgx-standard-page .bgx-profile-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}
.bgx-standard-page .bgx-page-header h1,.bgx-standard-page .bgx-profile-header h1{font-size:28px;font-weight:700;letter-spacing:-.03em;color:#234568;margin:0 0 8px}
.bgx-standard-page .bgx-page-header p,.bgx-standard-page .bgx-profile-header p{color:#526f90;font-size:14px;line-height:1.65;margin:0;max-width:760px}
.bgx-standard-page .bgx-readiness{background:linear-gradient(125deg,#ffffffd9,#e7f2ffdb 60%,#d9eafbdb);border:1px solid #c5daf3;border-radius:20px;box-shadow:0 12px 30px #294d790c;margin-bottom:24px}
.bgx-standard-page .bgx-readiness h2{color:#254b76;font-size:22px;font-weight:650}
.bgx-standard-page .bgx-readiness p{color:#526f90}
.bgx-standard-page .bgx-profile-nav,.bgx-standard-page .bgx-page-nav{background:#ffffffcc;border:1px solid #d4e2f2;border-radius:16px;box-shadow:0 8px 22px #294d7908}
.bgx-standard-page .bgx-profile-panel,.bgx-standard-page .bgx-operation-card,.bgx-standard-page .bgx-stat-card{background:#ffffffdf;border:1px solid #d4e2f2;border-radius:18px;box-shadow:0 10px 24px #294d7909}
.bgx-standard-page .bgx-profile-section-header,.bgx-standard-page .bgx-operation-card-header{background:linear-gradient(110deg,#ffffffa6,#f0f6ffa6);border-bottom:1px solid #e0eaf5}
.bgx-standard-page .bgx-profile-section-icon,.bgx-standard-page .bgx-operation-icon{background:#e8f2ff;color:#3976b7;border:1px solid #cfdef2;border-radius:12px}
.bgx-standard-page .bgx-financial-stat{min-height:140px}
.bgx-standard-page .bgx-financial-add-button{white-space:nowrap;min-height:42px}
.bgx-standard-page #account-summary,.bgx-standard-page #account-list{scroll-margin-top:100px}
@media(max-width:767px){.bgx-standard-page .bgx-page-header,.bgx-standard-page .bgx-profile-header{flex-direction:column;gap:16px}.bgx-standard-page .bgx-readiness h2{font-size:20px}}

/* Business Profile display fixes: section spacing and empty-state hierarchy. */
.bgx-standard-page .bgx-profile-content{display:flex;flex-direction:column;gap:24px;min-width:0}
.bgx-standard-page .bgx-profile-panel{overflow:hidden;margin:0;padding:0}
.bgx-standard-page .bgx-profile-panel>.bgx-profile-section-header{padding:22px 24px;margin:0;gap:14px;border-radius:17px 17px 0 0}
.bgx-standard-page .bgx-profile-section-header>div:last-child{min-width:0}
.bgx-standard-page .bgx-profile-section-header h2{margin:4px 0 7px;line-height:1.3}
.bgx-standard-page .bgx-profile-section-header p{margin:0;line-height:1.65}
.bgx-standard-page .bgx-profile-section-icon{flex:0 0 42px}
.bgx-standard-page .bgx-profile-panel>.bgx-profile-form-card{margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;padding:24px}
.bgx-standard-page .bgx-profile-empty-state{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:14px;row-gap:7px;align-items:start;padding:20px;background:#f1f7ff;border:1px solid #d6e5f6;border-radius:14px;color:#526f90}
.bgx-standard-page .bgx-profile-empty-state>i{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e0edff;color:#3976b7;font-size:21px}
.bgx-standard-page .bgx-profile-empty-state>strong{grid-column:2;display:block;color:#2b4e76;font-size:14px;line-height:1.5}
.bgx-standard-page .bgx-profile-empty-state>span{grid-column:2;display:block;font-size:13px;line-height:1.7}
.bgx-standard-page .bgx-profile-actions{margin:0;padding:0 0 8px;display:flex;gap:12px}
@media(max-width:600px){.bgx-standard-page .bgx-profile-panel>.bgx-profile-section-header,.bgx-standard-page .bgx-profile-panel>.bgx-profile-form-card{padding:18px}.bgx-standard-page .bgx-profile-content{gap:18px}.bgx-standard-page .bgx-profile-empty-state{padding:16px;column-gap:10px}}


/* Shared account and subscription pages: same business-page surfaces. */
.bgx-standard-page .bgx-context-hero{background:linear-gradient(125deg,#ffffffd9,#e7f2ffdb 60%,#d9eafbdb);border:1px solid #c5daf3;border-radius:20px;box-shadow:0 12px 30px #294d790c;margin-bottom:24px;padding:26px;gap:18px}
.bgx-standard-page .bgx-context-hero h2{color:#254b76;font-size:22px;line-height:1.3}
.bgx-standard-page .bgx-context-hero p{color:#526f90;line-height:1.7}
.bgx-standard-page .bgx-context-hero-icon,.bgx-standard-page .bgx-section-header-icon{background:#e8f2ff;color:#3976b7;border:1px solid #cfdef2;border-radius:12px;flex-shrink:0}
.bgx-standard-page .bgx-form-card,.bgx-standard-page .bgx-side-card,.bgx-subscription-page .card{background:#ffffffdf;border:1px solid #d4e2f2!important;border-radius:18px;box-shadow:0 10px 24px #294d7909!important}
.bgx-security-page .bgx-form-card{padding:26px}
.bgx-security-page .bgx-page-form-sidebar{display:flex;flex-direction:column;gap:20px}
.bgx-security-page .bgx-side-card{padding:22px;margin:0}
.bgx-security-page .bgx-section-header h2{color:#2b4e76;font-size:20px;line-height:1.35}
.bgx-security-page .bgx-section-header p{color:#607a96;line-height:1.7}
.bgx-security-page .bgx-sidebar-checklist li{display:flex;align-items:flex-start;gap:10px;padding:8px 0;font-size:13px;color:#526f90;line-height:1.6}
.bgx-security-page .input-group{flex-wrap:nowrap}
.bgx-security-page .input-group>.bgx-input{flex:1 1 auto;width:1%;min-width:0}
.bgx-security-page .input-group-text{background:#f0f6ff;border-color:#d4e2f2;color:#527394}
.bgx-subscription-steps{margin:0 0 24px;padding:18px 22px;background:#ffffffb3;border:1px solid #d4e2f2;border-radius:16px}
.bgx-subscription-page #selectionStage>div{scroll-margin-top:100px}
.bgx-subscription-page #selectionStage>.mb-4{padding:24px;background:#ffffffa6;border:1px solid #d4e2f2;border-radius:18px}
.bgx-subscription-page h4,.bgx-subscription-page h5{color:#2b4e76}
.bgx-subscription-page .text-muted{color:#607a96!important}
.bgx-subscription-page .card-body{padding:24px!important}
.bgx-subscription-page .btn-primary{background:#2869b8;border-color:#2869b8;border-radius:10px}
.bgx-subscription-page .btn-outline-primary{color:#2869b8;border-color:#bcd4ef;border-radius:10px}
.bgx-subscription-page .btn-outline-primary:hover{background:#2869b8;color:#fff}
@media(max-width:600px){.bgx-standard-page .bgx-context-hero{padding:20px}.bgx-security-page .bgx-form-card,.bgx-subscription-page #selectionStage>.mb-4,.bgx-subscription-page .card-body{padding:18px!important}.bgx-subscription-steps{padding:16px}}

/* Shared product detail theme. Brand palettes are restricted to selection cards. */
.bgx-product-detail-page {
  --product-a:#2869b8; --product-b:#4d93cd; --product-soft:#edf5ff;
  --product-ink:#234568; --product-muted:#526f90;
}
.bgx-product-detail-page .bgx-product-visual {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:20px;min-height:210px;border:1px solid #cbdff5;border-radius:24px;
  background:radial-gradient(ellipse at 50% 30%,#d4e9ff,transparent 70%),#edf5ff;
  color:#3976b7;
}
.bgx-product-detail-page .bgx-product-visual>i {font-size:72px;color:#3976b7}
.bgx-product-detail-page .bgx-product-visual-badge {padding:7px 12px;border-radius:999px;background:#fff;color:#526f90;font-size:11px;border:1px solid #d4e2f2}
.bgx-product-detail-page .bgx-section-header-icon,
.bgx-product-detail-page .bgx-product-feature-icon {background:#e8f2ff;color:#3976b7}
.bgx-product-detail-page .bgx-product-checklist i,
.bgx-product-detail-page .bgx-product-text-link {color:#3976b7}
/* Dynamic subscription cards: the rest of the page keeps the universal theme. */
#subscriptionProductList .bgx-product-choice-card {--card-a:#2869b8;--card-b:#164d91;
  background:linear-gradient(140deg,var(--card-a),var(--card-b));color:#fff;
  border-color:#ffffff30!important;border-radius:20px;overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease;
}
#subscriptionProductList [data-product-code="BIZSHOP"] {--card-a:#0788f8;--card-b:#163da2}
#subscriptionProductList [data-product-code="BIZFOOD"] {--card-a:#e99b43;--card-b:#b96b29}
#subscriptionProductList [data-product-code="BIZAPPOINTMENT"] {--card-a:#52b875;--card-b:#20633f}
#subscriptionProductList [data-product-code="BIZCRM"] {--card-a:#5968c8;--card-b:#6546aa}
#subscriptionProductList [data-product-code="BIZSOCIAL"] {--card-a:#7d2dcd;--card-b:#5520a8}
#subscriptionProductList .bgx-product-choice-card .card-body {display:flex;flex-direction:column}
#subscriptionProductList .bgx-product-choice-card h5 {color:#fff;font-weight:650}
#subscriptionProductList .bgx-product-choice-card .text-muted {color:#ffffffde!important;line-height:1.7}
#subscriptionProductList .bgx-product-choice-card .fs-2 {display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#ffffff21;color:#fff}
#subscriptionProductList .bgx-product-choice-card .btnSelectProduct {margin-top:auto!important;position:relative;top:0;padding:10px 16px;background:#ffffff15;border-color:#ffffff70;color:#fff}
#subscriptionProductList .bgx-product-choice-card .text-muted {margin-bottom:24px}
#subscriptionProductList .bgx-product-choice-card .btnSelectProduct:hover,
#subscriptionProductList .bgx-product-choice-card .btnSelectProduct.btn-primary {background:#fff;border-color:#fff;color:var(--card-b)}
#subscriptionProductList .bgx-product-choice-card.border-primary {outline:3px solid #2869b8;outline-offset:4px;box-shadow:0 12px 28px #294d7926!important}
#subscriptionProductList .bgx-product-choice-card .product-selected-badge {background:#fff!important;color:var(--card-b)!important}
@media(prefers-reduced-motion:reduce){#subscriptionProductList .bgx-product-choice-card{transition:none}}

/* One banner layout for all product details and the product family. */
.bgx-standard-page .bgx-unified-product-banner {border:1px solid #cbdff5;border-radius:22px;background:linear-gradient(120deg,#f5f9ff,#edf7ff);min-height:0}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-hero-main {display:grid;grid-template-columns:minmax(0,1fr) 160px;align-items:center;gap:32px;padding:28px;min-height:244px}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-hero-copy {max-width:none;min-width:0}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-title-line {margin:10px 0;gap:12px}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-title-line h1 {margin:0;font-size:28px;line-height:1.2;color:#234568;font-weight:700}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-hero-copy>p {margin:0;max-width:850px;font-size:14px;line-height:1.7;color:#526f90}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-title-icon {width:44px;height:44px;flex-basis:44px;border-radius:13px;background:#fff;color:#3976b7;border:1px solid #cbdff5;box-shadow:none}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-visual {position:relative;inset:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;justify-self:end;width:160px;height:160px;min-height:0;max-height:160px;border:1px solid #cbdff5;border-radius:24px;background:radial-gradient(circle at 50% 30%,#d4e9ff,#edf5ff);box-shadow:none}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-visual>i {font-size:56px;line-height:1;color:#3976b7}
.bgx-standard-page .bgx-unified-product-banner .bgx-product-visual-badge {position:static;inset:auto;max-width:144px;white-space:normal;text-align:center;padding:5px 9px;border:1px solid #d4e2f2;border-radius:999px;background:#fff;color:#526f90;font-size:10px;line-height:1.4}
/* Shared cards in All Products and subscription. Only accent colors vary. */
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card {--choice-accent:#2869b8;--choice-soft:#edf5ff;position:relative;display:flex;flex-direction:column;gap:20px;min-width:0;padding:24px;border:1px solid #cbdff5!important;border-radius:20px;background:linear-gradient(145deg,#fff,var(--choice-soft))!important;color:#234568!important;box-shadow:0 10px 24px #294d7909!important;overflow:hidden;text-decoration:none}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card[data-product-code="BIZSHOP"] {--choice-accent:#1479e2;--choice-soft:#eff6ff}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card[data-product-code="BIZFOOD"] {--choice-accent:#c87a1d;--choice-soft:#fff8ef}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card[data-product-code="BIZAPPOINTMENT"] {--choice-accent:#29844b;--choice-soft:#f0f9f3}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card[data-product-code="BIZCRM"] {--choice-accent:#5968c8;--choice-soft:#f4f3ff}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card[data-product-code="BIZSOCIAL"] {--choice-accent:#7d2dcd;--choice-soft:#f8f2ff}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card::before {content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--choice-accent)}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card .card-body {padding:0!important;display:flex;flex-direction:column;flex:1;gap:0}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card :is(.bgx-product-card-icon,.fs-2) {display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff;color:var(--choice-accent);border:1px solid color-mix(in srgb,var(--choice-accent) 25%,white);font-size:25px}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card :is(h2,h5) {color:#234568;font-size:22px;font-weight:700;line-height:1.3;margin:14px 0 10px}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card :is(.bgx-product-card-content p,.text-muted) {color:#607a96!important;font-size:13px;line-height:1.8;margin:0 0 22px}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card :is(.bgx-product-state,.bgx-product-card-content small) {color:var(--choice-accent);font-size:10px}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card :is(.bgx-product-more,.btnSelectProduct) {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto!important;padding:11px 14px;border:1px solid color-mix(in srgb,var(--choice-accent) 25%,white);border-radius:10px;background:#fff;color:var(--choice-accent);font-size:12px;font-weight:600;text-decoration:none}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card .product-selected-badge {background:var(--choice-accent)!important;color:#fff!important}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card .btnSelectProduct.btn-primary {background:var(--choice-accent);border-color:var(--choice-accent);color:#fff}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card .btnSelectProduct:hover {background:var(--choice-soft);color:var(--choice-accent)}
:is(#subscriptionProductList,.bgx-products-catalogue) .bgx-unified-product-card.border-primary {outline:2px solid var(--choice-accent);outline-offset:3px}
@media(max-width:650px){.bgx-standard-page .bgx-unified-product-banner .bgx-product-hero-main{grid-template-columns:1fr;padding:22px;gap:20px;min-height:0}.bgx-standard-page .bgx-unified-product-banner .bgx-product-visual{justify-self:start;width:120px;height:120px;max-height:120px}.bgx-standard-page .bgx-unified-product-banner .bgx-product-title-line h1{font-size:24px}}

/* Employee editor sidebar moved from the view. */

/*
|--------------------------------------------------------------------------
| Digital Employee Right Sidebar
|--------------------------------------------------------------------------
|
| Keep the complete sidebar together while scrolling.
| Individual cards must never become sticky independently.
|
*/

.bgx-employee-sidebar {
    align-self: start;
}

.bgx-employee-sidebar > .bgx-side-card {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

@media (min-width: 992px) {
    .bgx-employee-sidebar {
        position: sticky;
        top: 90px;
        height: fit-content;
    }
}

@media (max-width: 991.98px) {
    .bgx-employee-sidebar {
        position: static;
        top: auto;
    }
}

/* Shared product workspaces: panel surfaces, spacing, forms and directories. */
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) {display:flex;flex-direction:column;gap:24px;min-width:0}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace)>.bgx-readiness {margin:0}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace)>.bgx-page-header {margin:0}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-page-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-page-content {display:flex;flex-direction:column;gap:24px;min-width:0}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-page-form-sidebar {display:flex;flex-direction:column;gap:20px;min-width:0}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) :is(.bgx-section-card,.bgx-form-card,.bgx-side-card,.bgx-filter-card,.bgx-summary-stat,.bgx-de-card,.bgx-record-card) {border:1px solid #d4e2f2;border-radius:18px;background:linear-gradient(145deg,#ffffffef,#f8fbffed);box-shadow:0 10px 24px #294d7909}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-section-card:has(>.bgx-section-card-header),
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-section-card:has(>.bgx-section-card-body) {padding:0;overflow:hidden}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-section-card-header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;background:#f4f8fe;border-bottom:1px solid #e2ebf6;padding:22px 24px}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-section-card-body {padding:24px}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) :is(.bgx-section-header h2,.bgx-section-card-title) {color:#2b4e76;font-size:18px;font-weight:650;line-height:1.4}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) :is(.bgx-section-header p,.bgx-section-card-subtitle) {color:#607a96;font-size:13px;line-height:1.7}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) :is(.bgx-section-icon,.bgx-section-header-icon,.bgx-summary-stat-icon) {background:#e8f2ff;color:#3976b7;border:1px solid #cfdef2;box-shadow:none;border-radius:12px;flex-shrink:0}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-summary-stat {padding:22px;min-height:126px}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-summary-stat strong {color:#254b76}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-summary-stat small {color:#607a96;line-height:1.6}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-filter-card {margin-bottom:0!important}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) :is(.bgx-input,.bgx-select,.bgx-textarea,.form-control,.form-select) {border-color:#d4e2f2;background:#fff;border-radius:10px}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) :is(.bgx-input,.bgx-select,.bgx-textarea,.form-control,.form-select):focus {border-color:#78a7da;box-shadow:0 0 0 3px #3976b71a;outline:none}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-form-label {color:#3e5c7d}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-table thead th {background:#f2f7ff;color:#526f90;border-color:#e2ebf6}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-table td {border-color:#edf2f8}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) :is(.bgx-de-card,.bgx-record-card):hover {border-color:#b8d2ef;box-shadow:0 12px 28px #294d7914}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-chat-shell {border-color:#d4e2f2;box-shadow:none;border-radius:14px}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-chat-context {background:linear-gradient(145deg,#f4f8ff,#eaf3ff);border-color:#dce7f5}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-chat-body {background:radial-gradient(ellipse at 50% 0,#e7f1ff88,transparent 65%),#fbfdff}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-directory-message {padding:30px;border:1px dashed #cbdff5;border-radius:14px;background:#f7fbff;color:#607a96;text-align:center}
:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-empty-state {color:#607a96}
@media(max-width:767px){:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace){gap:18px}:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-section-card-header,:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-section-card-body{padding:18px}:is(.bgx-bizmitr-workspace,.bgx-bizshop-workspace,.bgx-bizfood-workspace,.bgx-appointment-workspace) .bgx-summary-stat{padding:18px;min-height:112px}}

/* BizShop tables, catalog navigation and order summaries use the same blue theme. */
.bgx-bizshop-workspace :is(.bgx-card,.bgx-page-nav) {border:1px solid #d4e2f2;border-radius:18px;background:linear-gradient(145deg,#ffffffef,#f8fbffed);box-shadow:0 10px 24px #294d7909}
.bgx-bizshop-workspace #productpage {display:flex;flex-direction:column;gap:24px;min-width:0}
.bgx-bizshop-workspace .bgx-card-toolbar {padding:20px 24px;gap:16px;flex-wrap:wrap;border-color:#e2ebf6;background:#f7faff}
.bgx-bizshop-workspace .bgx-table-wrap {overflow-x:auto}
.bgx-bizshop-workspace .bgx-table-filter {border-color:#d4e2f2;border-radius:10px;background:#fff;color:#526f90}
.bgx-bizshop-workspace .bgx-page-nav-item {border-radius:12px}
.bgx-bizshop-workspace .bgx-page-nav-item.active {background:#e8f2ff;color:#2869b8;border-color:#cfdef2}
.bgx-bizshop-workspace .bgx-page-nav-item.active>span {background:#fff;color:#3976b7}
.bgx-bizshop-workspace :is(.bgx-product-price-preview,.bgx-product-form-info,.bgx-product-stock-note,.bgx-product-variant-info) {border-color:#cfdef2;background:#edf5ff;color:#526f90}
.bgx-bizshop-workspace .bgx-product-type-option.active {background:#edf5ff;border-color:#78a7da;color:#2869b8}
.bgx-bizshop-workspace .bgx-section-header h5 {font-size:18px;font-weight:650;color:#2b4e76}
.bgx-bizshop-workspace .bgx-page-form-actions {padding:20px 24px;border:1px solid #d4e2f2;border-radius:16px;background:#ffffffdf}
.bgx-bizshop-workspace .bgx-sales-report-period {margin:0;padding:24px}
.bgx-bizshop-workspace .bgx-sales-report-table-card {padding:24px}
.bgx-bizshop-workspace .bgx-sales-report-dates {flex-wrap:wrap;gap:12px}
.bgx-bizshop-workspace .bgx-sales-report-dates label {color:#526f90}
@media(max-width:767px){.bgx-bizshop-workspace #productpage{gap:18px}.bgx-bizshop-workspace .bgx-card-toolbar,.bgx-bizshop-workspace .bgx-sales-report-period,.bgx-bizshop-workspace .bgx-sales-report-table-card{padding:18px}}

.bgx-bizshop-workspace .bgx-readiness,.bgx-bizshop-workspace .bgx-page-header{margin:0}

/* BizFood menu component styles consolidated from bizfood-menu.css. */
/* BizFood menu additions. Shared page shell and controls inherit operation.css. */
.bgx-bizfood-page { --food-accent:#3976b7; --food-accent-dark:#2869b8; --food-soft:#edf5ff; --food-border:#cfdef2; }
.bgx-bizfood-page .bgx-page-eyebrow,.bgx-bizfood-page .bgx-section-kicker { display:block; margin:0 0 7px; color:var(--food-accent-dark); font-size:10px; font-weight:800; letter-spacing:.11em; }
.bgx-bizfood-page .bgx-food-hero { position:relative; display:flex; align-items:center; gap:18px; overflow:hidden; min-height:138px; padding:24px 28px; border-color:#d4e2f2; background:linear-gradient(112deg,#f4f8ff 0%,#fff 53%,#e8f2ff 100%); }
.bgx-bizfood-page .bgx-food-hero:after { position:absolute; right:86px; top:-112px; width:275px; height:275px; border:1px solid rgba(57,118,183,.13); border-radius:50%; box-shadow:0 0 0 26px rgba(57,118,183,.045),0 0 0 54px rgba(57,118,183,.035); content:""; }
.bgx-bizfood-page .bgx-food-hero .bgx-context-hero-icon { background:linear-gradient(145deg,#78a7da,#3976b7); color:#fff; box-shadow:0 10px 24px rgba(57,118,183,.2); }
.bgx-bizfood-page .bgx-food-hero h2 { margin:0 0 5px; color:var(--bgx-heading,#15243b); font-size:20px; }
.bgx-bizfood-page .bgx-food-hero p { max-width:730px; margin:0; color:var(--bgx-muted,#66758d); line-height:1.6; }
.bgx-food-hero-mark { position:relative; z-index:1; display:flex; align-items:center; gap:8px; margin-left:auto; padding:10px 14px; border:1px solid rgba(57,118,183,.13); border-radius:999px; background:rgba(255,255,255,.82); color:#2869b8; font-size:10px; font-weight:800; letter-spacing:.12em; }
.bgx-food-hero-mark i { font-size:17px; }
.bgx-food-summary .bgx-summary-stat { border-color:#d4e2f2; background:linear-gradient(145deg,#fff 0%,#f8fbff 100%); }
.bgx-food-summary .bgx-summary-stat-icon { color:#3976b7; background:#e8f2ff; }
.bgx-food-catalog { overflow:hidden; padding:0; }
.bgx-food-catalog-head { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; padding:22px 24px 18px; }
.bgx-food-catalog-head h2 { margin:0 0 4px; color:var(--bgx-heading,#15243b); font-size:19px; }
.bgx-food-catalog-head p { margin:0; color:var(--bgx-muted,#66758d); font-size:12px; }
.bgx-food-search { width:min(330px,42%); min-height:42px; background:#fff; }
.bgx-food-category-row { display:flex; gap:8px; overflow-x:auto; padding:0 24px 17px; scrollbar-width:thin; }
.bgx-food-category-chip { flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border:1px solid #e8edf4; border-radius:999px; background:#fff; color:#58677d; font-size:11px; font-weight:700; cursor:pointer; transition:all .18s ease; }
.bgx-food-category-chip span { display:grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:#f1f5f9; color:#708099; font-size:9px; }
.bgx-food-category-chip:hover { border-color:#b8d2ef; color:#2869b8; }
.bgx-food-category-chip.active { border-color:#78a7da; background:linear-gradient(105deg,#edf5ff,#e8f2ff); color:#2869b8; box-shadow:0 4px 12px rgba(40,105,184,.08); }
.bgx-food-category-chip.active span { background:#fff; color:#2869b8; }
.bgx-food-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; padding:0 24px 24px; }
.bgx-food-card { position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden; border:1px solid #e9edf3; border-radius:15px; background:linear-gradient(160deg,#fff 0%,#fff 70%,#f8fbff 100%); box-shadow:0 4px 14px rgba(25,40,65,.045); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.bgx-food-card:hover { transform:translateY(-2px); border-color:#b8d2ef; box-shadow:0 12px 25px rgba(25,40,65,.085); }
.bgx-food-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:17px 17px 12px; }
.bgx-food-card-icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:12px; background:linear-gradient(145deg,#e8f2ff,#dcecff); color:#3976b7; font-size:20px; }
.bgx-food-card-status { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border-radius:999px; background:#ecfdf3; color:#12834a; font-size:9px; font-weight:800; white-space:nowrap; }
.bgx-food-card-status:before { width:6px; height:6px; border-radius:50%; background:#16a34a; content:""; }
.bgx-food-card-status.off { background:#f1f5f9; color:#65748b; }
.bgx-food-card-status.off:before { background:#94a3b8; }
.bgx-food-card-body { flex:1; padding:0 17px 14px; }
.bgx-food-card-category { margin-bottom:5px; color:#bf5b19; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.bgx-food-card h3 { margin:0 0 6px; color:var(--bgx-heading,#15243b); font-size:15px; line-height:1.3; }
.bgx-food-card-description { min-height:36px; margin:0; color:var(--bgx-muted,#66758d); font-size:11px; line-height:1.55; }
.bgx-food-card-price { display:flex; align-items:baseline; gap:7px; margin-top:13px; color:#15243b; font-size:18px; font-weight:800; }
.bgx-food-card-price small { color:#8794a7; font-size:9px; font-weight:600; }
.bgx-food-card-meta { display:flex; gap:7px; flex-wrap:wrap; margin-top:11px; }
.bgx-food-card-meta span { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; border-radius:7px; background:#f6f8fb; color:#66758d; font-size:9px; font-weight:700; }
.bgx-food-card-meta i { color:#3976b7; }
.bgx-food-card-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 14px; border-top:1px solid #f0f2f6; background:rgba(244,248,255,.65); }
.bgx-food-link { display:inline-flex; align-items:center; gap:5px; padding:6px 7px; border:0; background:transparent; color:#245fe6; font-size:10px; font-weight:800; cursor:pointer; }
.bgx-food-link:hover { color:#1747b5; }
.bgx-food-card-addons { color:#3976b7; }
.bgx-food-loading,.bgx-food-empty { grid-column:1/-1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:45px 20px; color:#7b899c; text-align:center; }
.bgx-food-loading { flex-direction:row; font-size:12px; }
.bgx-food-loading i { color:#3976b7; font-size:18px; animation:bgx-food-spin .9s linear infinite; }
@keyframes bgx-food-spin { to { transform:rotate(360deg); } }
.bgx-food-empty[hidden] { display:none; }
.bgx-food-empty > span { display:grid; place-items:center; width:52px; height:52px; border-radius:16px; background:#e8f2ff; color:#3976b7; font-size:23px; }
.bgx-food-empty h3 { margin:6px 0 0; color:#24344c; font-size:16px; }
.bgx-food-empty p { margin:0 0 8px; color:#77859a; font-size:11px; }
.bgx-food-dialog { width:min(690px,calc(100vw - 30px)); max-height:min(90vh,850px); overflow:auto; padding:0; border:1px solid #e4eaf2; border-radius:18px; background:#fff; color:#192943; box-shadow:0 25px 90px rgba(16,31,58,.25); }
.bgx-food-dialog::backdrop { background:rgba(15,27,48,.42); backdrop-filter:blur(3px); }
.bgx-food-dialog form { padding:22px; }
.bgx-food-dialog-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:22px 22px 17px; border-bottom:1px solid #edf0f5; background:linear-gradient(110deg,#f4f8ff,#fff); }
.bgx-food-dialog form .bgx-food-dialog-head { margin:-22px -22px 18px; }
.bgx-food-dialog-head h2 { margin:0 0 4px; color:#182943; font-size:20px; }
.bgx-food-dialog-head p { margin:0; color:#77859a; font-size:11px; }
.bgx-food-close { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid #e7ebf1; border-radius:10px; background:#fff; color:#65748b; font-size:17px; cursor:pointer; }
.bgx-food-close:hover { border-color:#b8d2ef; color:#2869b8; }
.bgx-food-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.bgx-bizfood-workspace .bgx-field { display:flex; flex-direction:column; gap:6px; min-width:0; color:#3d4c62; font-size:10px; font-weight:700; }
.bgx-bizfood-workspace .bgx-field > span small { color:#8b98aa; font-size:9px; font-weight:500; }
.bgx-bizfood-workspace .bgx-field input,.bgx-bizfood-workspace .bgx-field select,.bgx-bizfood-workspace .bgx-field textarea,.bgx-food-inline-form input { width:100%; min-height:40px; padding:9px 11px; border:1px solid #dfe6ef; border-radius:9px; outline:0; background:#fff; color:#26364e; font:inherit; font-size:11px; }
.bgx-bizfood-workspace .bgx-field textarea { min-height:75px; resize:vertical; }
.bgx-bizfood-workspace .bgx-field input:focus,.bgx-bizfood-workspace .bgx-field select:focus,.bgx-bizfood-workspace .bgx-field textarea:focus,.bgx-food-inline-form input:focus { border-color:#78a7da; box-shadow:0 0 0 3px rgba(57,118,183,.11); }
.bgx-food-field-wide { grid-column:1/-1; }
.bgx-food-dialog-footer { display:flex; justify-content:flex-end; gap:9px; padding-top:18px; margin-top:18px; border-top:1px solid #edf0f5; }
.bgx-food-category-dialog { width:min(490px,calc(100vw - 30px)); }
.bgx-food-category-dialog form > .bgx-bizfood-workspace .bgx-field { margin:13px 0; }
.bgx-food-manage-dialog { width:min(760px,calc(100vw - 30px)); }
.bgx-food-option-section { padding:17px 22px 19px; border-bottom:1px solid #edf0f5; }
.bgx-food-subhead { display:flex; justify-content:space-between; margin-bottom:11px; }
.bgx-food-subhead h3 { margin:0 0 3px; color:#24344c; font-size:13px; }
.bgx-food-subhead p { margin:0; color:#8491a3; font-size:10px; }
.bgx-food-option-list { display:flex; flex-direction:column; gap:7px; margin-bottom:10px; }
.bgx-food-option-row { display:flex; align-items:center; gap:9px; padding:9px 11px; border:1px solid #e9edf3; border-radius:10px; background:#fbfcfe; }
.bgx-food-option-row strong { flex:1; color:#2c3d55; font-size:11px; }
.bgx-food-option-row span { color:#63738b; font-size:10px; font-weight:700; }
.bgx-food-option-row .off { color:#98a3b3; }
.bgx-food-option-row button { border:0; background:transparent; color:#718097; font-size:15px; cursor:pointer; }
.bgx-food-inline-form { display:grid; grid-template-columns:minmax(0,1fr) 120px auto; gap:8px; }
.bgx-food-inline-form .bgx-btn { min-height:38px; padding:8px 11px; font-size:10px; white-space:nowrap; }
@media(max-width:1100px) { .bgx-food-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .bgx-bizfood-page .bgx-food-hero { align-items:flex-start; padding:18px; } .bgx-food-hero-mark { display:none; } .bgx-food-catalog-head { align-items:stretch; flex-direction:column; padding:18px; } .bgx-food-search { width:100%; } .bgx-food-category-row { padding:0 18px 14px; } .bgx-food-grid { grid-template-columns:1fr; padding:0 14px 18px; } .bgx-food-form-grid { grid-template-columns:1fr; } .bgx-food-field-wide { grid-column:auto; } .bgx-food-inline-form { grid-template-columns:1fr 100px; } .bgx-food-inline-form .bgx-btn { grid-column:1/-1; justify-content:center; } }
@media(prefers-reduced-motion:reduce) { .bgx-food-card,.bgx-food-category-chip { transition:none; } .bgx-food-loading i { animation:none; } }

/* BizFood workspace uses the universal blue layout, not a product-colored shell. */
.bgx-bizfood-workspace>.bgx-readiness,.bgx-bizfood-workspace .bgx-bizfood-page>.bgx-readiness {margin:0}
.bgx-bizfood-workspace .bgx-bizfood-page {display:flex;flex-direction:column;gap:24px;--food-accent:#3976b7;--food-accent-dark:#2869b8;--food-soft:#edf5ff;--food-border:#cfdef2}
.bgx-bizfood-workspace .bgx-page-header {margin:0}
.bgx-bizfood-workspace :is(.bgx-card,.bgx-food-workspace-card,.bgx-food-card,.bgx-kitchen-card,.bgx-table-card,.bgx-restaurant-table-card) {border:1px solid #d4e2f2;border-radius:18px;background:linear-gradient(145deg,#ffffffef,#f8fbffed);box-shadow:0 10px 24px #294d7909;color:#234568}
.bgx-bizfood-workspace .bgx-food-workspace-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.bgx-bizfood-workspace .bgx-food-workspace-card {display:flex;flex-direction:column;gap:12px;min-width:0;padding:24px;text-decoration:none}
.bgx-bizfood-workspace .bgx-food-workspace-icon {display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#e8f2ff;color:#3976b7;border:1px solid #cfdef2;font-size:24px}
.bgx-bizfood-workspace .bgx-food-workspace-card h2 {margin:0;color:#2b4e76;font-size:20px;font-weight:650}
.bgx-bizfood-workspace .bgx-food-workspace-card p {margin:0;color:#607a96;font-size:13px;line-height:1.7}
.bgx-bizfood-workspace .bgx-food-workspace-link {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:16px;border-top:1px solid #e2ebf6;color:#3976b7;font-size:13px;font-weight:650}
.bgx-bizfood-workspace .bgx-section-kicker {color:#3976b7;font-size:10px;font-weight:700;letter-spacing:.08em}
.bgx-bizfood-workspace .bgx-food-card h3 {font-size:17px;color:#2b4e76}
.bgx-bizfood-workspace .bgx-food-card-description {font-size:12px;line-height:1.7;color:#607a96}
.bgx-bizfood-workspace .bgx-food-card-category {color:#3976b7}
.bgx-bizfood-workspace .bgx-food-card-actions {background:#f4f8ff;border-color:#e2ebf6}
.bgx-bizfood-workspace .bgx-food-ops-toolbar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:22px 24px;border:1px solid #d4e2f2;border-radius:18px;background:#ffffffdf}
.bgx-bizfood-workspace .bgx-food-ops-toolbar h2 {margin:5px 0 0;color:#2b4e76;font-size:20px}
.bgx-bizfood-workspace .bgx-food-ops-toolbar>.bgx-select {width:auto;min-width:190px}
.bgx-bizfood-workspace :is(.bgx-kitchen-grid,.bgx-table-card-grid) {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.bgx-bizfood-workspace :is(.bgx-kitchen-card,.bgx-table-card,.bgx-restaurant-table-card) {padding:22px;min-width:0}
.bgx-bizfood-workspace :is(.bgx-kitchen-grid,.bgx-table-card-grid)>.bgx-empty-state {grid-column:1/-1;padding:30px;border:1px dashed #cbdff5;border-radius:14px;background:#f7fbff}
.bgx-bizfood-workspace .bgx-food-dialog {border-color:#d4e2f2;background:#fff;color:#234568}
.bgx-bizfood-workspace .bgx-food-dialog-head {background:#f4f8ff;border-color:#e2ebf6}
.bgx-bizfood-workspace .bgx-food-dialog-head h2 {color:#2b4e76}
.bgx-bizfood-workspace .bgx-field :is(input,select,textarea) {font-size:13px;border-color:#d4e2f2}
@media(max-width:1100px){.bgx-bizfood-workspace :is(.bgx-food-workspace-grid,.bgx-kitchen-grid,.bgx-table-card-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.bgx-bizfood-workspace .bgx-bizfood-page{gap:18px}.bgx-bizfood-workspace :is(.bgx-food-workspace-grid,.bgx-kitchen-grid,.bgx-table-card-grid){grid-template-columns:1fr}.bgx-bizfood-workspace .bgx-food-ops-toolbar{padding:18px;align-items:stretch}.bgx-bizfood-workspace .bgx-food-ops-toolbar>.bgx-select{width:100%}}

/* Menu-only correction: defeat legacy orange component CSS regardless of load order. */
#bizfoodmenu {--food-accent:#3976b7;--food-accent-dark:#2869b8;--food-soft:#edf5ff;--food-border:#cfdef2}
#bizfoodmenu :is(.bgx-page-eyebrow,.bgx-section-kicker,.bgx-food-card-category,.bgx-food-card-addons,.bgx-food-card-meta i) {color:#3976b7}
#bizfoodmenu .bgx-food-summary .bgx-summary-stat {border-color:#d4e2f2;background:linear-gradient(145deg,#ffffffef,#f8fbffed)}
#bizfoodmenu .bgx-food-summary .bgx-summary-stat-icon,
#bizfoodmenu .bgx-food-card-icon,
#bizfoodmenu .bgx-food-empty>span {border:1px solid #cfdef2;background:#e8f2ff;color:#3976b7;box-shadow:none}
#bizfoodmenu .bgx-food-card {display:flex;flex-direction:column;min-width:0;border:1px solid #d4e2f2;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 10px 24px #294d7909}
#bizfoodmenu .bgx-food-card:hover {border-color:#b8d2ef;box-shadow:0 12px 28px #294d7914}
#bizfoodmenu .bgx-food-card-body {display:flex;flex-direction:column;flex:1;min-width:0;padding:0 20px 20px}
#bizfoodmenu .bgx-food-card-top {padding:20px 20px 14px}
#bizfoodmenu .bgx-food-card h3 {color:#2b4e76;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
#bizfoodmenu .bgx-food-card-description {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;min-height:0;max-height:5.1em;color:#607a96;font-size:12px;line-height:1.7}
#bizfoodmenu .bgx-food-card-price {margin-top:auto;padding-top:18px;color:#254b76}
#bizfoodmenu .bgx-food-card-actions {margin-top:auto;flex-wrap:wrap;gap:6px;padding:12px 16px;border-color:#e2ebf6;background:#f4f8ff}
#bizfoodmenu .bgx-food-link {color:#3976b7;font-size:11px}
#bizfoodmenu .bgx-food-link:hover {color:#234568}
#bizfoodmenu .bgx-food-category-chip:hover {border-color:#b8d2ef;color:#2869b8}
#bizfoodmenu .bgx-food-category-chip.active {border-color:#78a7da;background:#e8f2ff;color:#2869b8;box-shadow:0 4px 12px #2869b814}
#bizfoodmenu .bgx-food-category-chip.active span {background:#fff;color:#2869b8}
#bizfoodmenu .bgx-food-dialog-head {background:#f4f8ff;border-color:#e2ebf6}
#bizfoodmenu .bgx-food-close:hover {border-color:#b8d2ef;color:#2869b8}
#bizfoodmenu :is(.bgx-field input,.bgx-field select,.bgx-field textarea,.bgx-food-inline-form input):focus {border-color:#78a7da;box-shadow:0 0 0 3px #3976b71a}
#bizfoodmenu .bgx-food-loading i {color:#3976b7}

/* Appointment workspace: shared blue layout for booking, services and providers. */
.bgx-appointment-workspace>.bgx-readiness {margin:0}
.bgx-appointment-workspace .bgx-section-kicker {display:block;margin-bottom:6px;color:#3976b7;font-size:10px;font-weight:700;letter-spacing:.08em}
.bgx-appointment-workspace .bgx-appointment-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.bgx-appointment-workspace .bgx-appointment-panel {min-width:0;padding:24px}
.bgx-appointment-workspace .bgx-appointment-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}
.bgx-appointment-workspace .bgx-appointment-form>label {display:flex;flex-direction:column;gap:7px;min-width:0}
.bgx-appointment-workspace .bgx-appointment-form>label.wide {grid-column:1/-1}
.bgx-appointment-workspace .bgx-appointment-form>.bgx-btn {align-self:end;justify-self:start;min-height:42px}
.bgx-appointment-workspace .bgx-booking-form {grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}
.bgx-appointment-workspace .bgx-booking-form>label.wide {grid-column:span 2}
.bgx-appointment-workspace .bgx-availability-form {padding:20px;border:1px solid #d4e2f2;border-radius:14px;background:#f4f8ff}
.bgx-appointment-workspace .bgx-appointment-toolbar {display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 24px;border:1px solid #d4e2f2;border-radius:18px;background:#ffffffdf}
.bgx-appointment-workspace .bgx-appointment-toolbar .bgx-section-header {margin:0}
.bgx-appointment-workspace .bgx-appointment-toolbar>label {display:flex;flex-direction:column;gap:7px;min-width:200px}
.bgx-appointment-workspace .bgx-appointment-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.bgx-appointment-workspace :is(.bgx-record-list,.bgx-availability-list) {display:flex;flex-direction:column;gap:12px}
.bgx-appointment-workspace .bgx-availability-list:not(:empty) {margin-top:16px}
.bgx-appointment-workspace :is(.bgx-appointment-card,.bgx-record-list>article,.bgx-availability-list>article) {padding:20px;border:1px solid #d4e2f2;border-radius:14px;background:#f8fbff;min-width:0}
.bgx-appointment-workspace .bgx-appointment-cards>.bgx-empty-state {grid-column:1/-1;padding:30px;border:1px dashed #cbdff5;border-radius:14px;background:#f7fbff;color:#607a96}
@media(max-width:1100px){.bgx-appointment-workspace .bgx-appointment-columns{grid-template-columns:1fr}.bgx-appointment-workspace .bgx-appointment-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.bgx-appointment-workspace .bgx-appointment-panel,.bgx-appointment-workspace .bgx-appointment-toolbar{padding:18px}.bgx-appointment-workspace :is(.bgx-appointment-form,.bgx-booking-form,.bgx-appointment-cards){grid-template-columns:1fr}.bgx-appointment-workspace .bgx-booking-form>label.wide{grid-column:auto}.bgx-appointment-workspace .bgx-appointment-toolbar>label{width:100%}.bgx-appointment-workspace .bgx-availability-form{padding:16px}}
