@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

html,
body.support-shell {
  height: 100%;
}

:root {
  --sm-primary: #f59f0a;
  --sm-primary-hover: #edb95e;
  --sm-surface: #f6f8fb;
  --sm-dark: #141c26;
  --sm-dark-2: #1c2836;
  --sm-border: #2a394a;
  --support-sidebar-width: 286px;
  --support-sidebar-collapsed-width: 68px;
}

body.support-shell {
  margin: 0;
  background: var(--sm-surface);
  font-family: "Inter", "Segoe UI", sans-serif;
  --bs-primary: var(--sm-primary);
  --bs-primary-rgb: 245, 159, 10;
  --bs-link-color: var(--sm-primary);
  --bs-link-hover-color: var(--sm-primary-hover);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.card-title,
.brand-text {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.support-layout {
  display: flex;
  min-height: 100vh;
}

.support-sidebar {
  width: var(--support-sidebar-width);
  background: linear-gradient(180deg, var(--sm-dark) 0%, var(--sm-dark-2) 100%);
  color: #dce8f3;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.support-sidebar-backdrop {
  display: none;
  border: 0;
  background: rgba(9, 14, 22, 0.48);
}

.support-brand {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.8rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sm-primary);
  border-radius: 0.55rem;
  color: var(--sm-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 64px;
  max-width: 250px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.brand-logo-dark {
  display: none;
}

[data-bs-theme="dark"] .brand-logo-light {
  display: none;
}

[data-bs-theme="dark"] .brand-logo-dark {
  display: block;
}

.brand-company-name {
  display: block;
  width: 100%;
  color: rgba(248, 250, 252, 0.68);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
}

.branding-logo-file-label {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.branding-logo-file-label:hover {
  background-color: var(--bs-secondary-bg);
}

.branding-logo-clear {
  width: 2.75rem;
  min-width: 2.75rem;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.65rem rgba(220, 53, 69, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.branding-logo-clear:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.4rem 0.85rem rgba(220, 53, 69, 0.32);
}

.branding-logo-clear:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.22), 0 0.25rem 0.65rem rgba(220, 53, 69, 0.22);
}

#brandingPreview .brand-company-name {
  color: inherit;
}

.brand-subtext {
  display: block;
  visibility: hidden;
  color: #9ca3af;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
  line-height: 1;
}

.brand-subtext-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 230px;
}

.brand-subtext-reflection {
  position: absolute;
  left: 0;
  top: calc(100% - 0.45rem);
  display: block;
  color: #bfd0e4;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transform: scaleY(-1);
  transform-origin: top;
  opacity: 0.82;
  filter: blur(0.1px);
  text-shadow: 0 0 6px rgba(191, 208, 228, 0.18);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent 88%);
}

.support-nav {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.75rem;
  gap: 0.12rem;
  flex: 1 1 auto;
  overflow-y: auto;
}

.support-nav-tenant-context {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.support-nav-tenant-label {
  color: #8ea5bb;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-nav-tenant-name {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #f2b84b;
  font-size: 0.82rem;
  line-height: 1.25;
}

.support-nav-tenant-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-sidebar-footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.7rem 1rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 232, 243, 0.48);
  font-size: 0.64rem;
  line-height: 1.35;
  text-align: center;
}

.support-sidebar-footer span {
  display: block;
}

.support-active-tenant {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.support-active-tenant > span {
  min-width: 0;
}

.support-active-tenant-switch {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #f5bf66;
  border: 1px solid rgba(245, 191, 102, 0.45);
  border-radius: 0.35rem;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.support-active-tenant-switch:hover,
.support-active-tenant-switch:focus-visible {
  color: #18222d;
  background: #f5bf66;
  border-color: #f5bf66;
}

.support-sidebar-search-wrap {
  padding: 0.55rem 0.45rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-sidebar-search {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.support-sidebar-search-input {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.support-sidebar-search-input::placeholder {
  color: #a8bfd6;
}

.support-sidebar-search-input:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(245, 159, 10, 0.8);
  box-shadow: 0 0 0 0.15rem rgba(245, 159, 10, 0.22);
}

.support-sidebar-search-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.support-sidebar-search-scopes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.18rem;
}

.support-sidebar-search-results {
  padding: 0.2rem 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-sidebar-search-results-meta {
  font-size: 0.72rem;
  color: #9bb4cd;
  margin-bottom: 0.35rem;
}

.support-sidebar-result-group {
  margin-bottom: 0.35rem;
}

.support-sidebar-result-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #c8d8e9;
  margin-bottom: 0.2rem;
}

.support-sidebar-result-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.support-sidebar-result-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #e7f1fb;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.3rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.support-sidebar-result-hint {
  margin-top: 0.15rem;
  color: #a9bed2;
  font-size: 0.68rem;
}

.support-sidebar-result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.support-sidebar-result-link:hover,
.support-sidebar-result-link:focus-visible {
  color: #fff;
  background: rgba(245, 159, 10, 0.18);
  border-color: rgba(245, 159, 10, 0.55);
}

.support-sidebar-result-meta {
  display: block;
  margin-top: 0.18rem;
  color: #a9bed2;
  font-size: 0.68rem;
}

.support-sidebar-result-chip {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.04rem 0.3rem;
  border-radius: 999px;
  background: rgba(245, 159, 10, 0.2);
  border: 1px solid rgba(245, 159, 10, 0.45);
  color: #f6cf89;
  font-size: 0.64rem;
  line-height: 1.2;
  vertical-align: middle;
}

.support-sidebar-result-empty {
  color: #90a8bf;
  font-size: 0.72rem;
  padding: 0.2rem 0;
}

.support-scope-badge {
  cursor: pointer;
  user-select: none;
  display: block;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.61rem;
  padding: 0.16rem 0.2rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #d7e7f8;
  background: rgba(148, 163, 184, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.55);
  transition: all 0.12s ease;
}

.support-sidebar-search-results .search-hit {
  background: #f7c667;
  color: #111827;
  border-radius: 0.18rem;
  padding: 0 0.18rem;
}

.btn-check:checked + .support-scope-badge {
  color: #1b1b1b;
  background: #f5bf66;
  border-color: #f5bf66;
}

.btn-check:focus-visible + .support-scope-badge {
  outline: 2px solid rgba(245, 159, 10, 0.85);
  outline-offset: 1px;
}

.support-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #dce8f3;
  text-decoration: none;
  border-radius: 0.5rem;
  padding: 0.52rem 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.support-nav-link i {
  width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}

.support-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.support-nav-link.active {
  color: #fff;
  background: rgba(245, 159, 10, 0.2);
  box-shadow: inset 0 0 0 1px rgba(245, 159, 10, 0.55);
}

.support-nav-section {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.support-nav-section-title {
  display: block;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9bb4cd;
}

.support-nav-group summary {
  list-style: none;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0.52rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #dce8f3;
}

/* Unified notification style used across pages for status, warning and error messages. */
.sm-notify,
.alert {
  border-radius: 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.sm-notify {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
}

.sm-notify i {
  margin-top: 0.08rem;
  font-size: 0.95rem;
  opacity: 0.92;
}

.sm-notify-success {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.09) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  color: #065f46;
}

.sm-notify-warning {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.42);
  color: #7c2d12;
}

.sm-notify-danger {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
  border-color: rgba(239, 68, 68, 0.42);
  color: #7f1d1d;
}

.sm-notify-info {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-color: rgba(59, 130, 246, 0.36);
  color: #1e3a8a;
}

body.dark-mode .sm-notify-success {
  color: #c8f7e6;
  border-color: rgba(16, 185, 129, 0.52);
}

body.dark-mode .sm-notify-warning {
  color: #ffe4b3;
  border-color: rgba(245, 158, 11, 0.56);
}

body.dark-mode .sm-notify-danger {
  color: #ffd0d0;
  border-color: rgba(239, 68, 68, 0.58);
}

body.dark-mode .sm-notify-info {
  color: #c9dcff;
  border-color: rgba(59, 130, 246, 0.52);
}

.support-nav-group summary::-webkit-details-marker {
  display: none;
}

.support-nav-group summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.support-nav-submenu {
  margin-top: 0.12rem;
  padding-left: 0.4rem;
}

/* An open group shows a bar down its left edge and a faint tint, so the sub-items read as part of it. */
.support-nav-group[open] {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 3px 0 0 #f59f0a;
  border-radius: 0 0.5rem 0.5rem 0;
  padding-bottom: 0.15rem;
  margin-block: 0.2rem;
}

.support-nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #cbd9e6;
  text-decoration: none;
  border-radius: 0.45rem;
  padding: 0.42rem 0.75rem;
}

.support-nav-sublink:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.support-nav-sublink.active {
  color: #fff;
  background: rgba(245, 159, 10, 0.2);
  box-shadow: inset 0 0 0 1px rgba(245, 159, 10, 0.55);
}

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

.support-header {
  height: 64px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, #18222d 0%, #273646 100%);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.support-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-header-actions > .dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.support-header-actions > .dropdown > .btn {
  min-height: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.language-flag {
  width: 1.35rem;
  height: 0.9rem;
  display: inline-block;
  overflow: hidden;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

/* Country flags: the same size as the language flags, but square-cornered so the whole flag shows. */
.country-flag {
  width: 1.33rem;
  height: 1rem;
  display: inline-block;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.country-picker-menu {
  max-height: 18rem;
  overflow-y: auto;
}

.support-language-indicator {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 0.375rem;
}

.support-language-indicator:hover,
.support-language-indicator:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.support-tenant-switcher {
  min-height: 2.5rem;
  max-width: min(24rem, 32vw);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.45rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.support-tenant-switcher:hover,
.support-tenant-switcher:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.support-tenant-switcher-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
}

/* The switcher is a button that opens the tenant menu. */
button.support-tenant-switcher {
  font: inherit;
  cursor: pointer;
}

.support-tenant-dropdown {
  min-width: 0;
}

.support-tenant-menu {
  width: 18rem;
  max-width: calc(100vw - 2rem);
}

.support-tenant-list {
  max-height: min(60vh, 24rem);
  overflow-y: auto;
}

.support-tenant-list .dropdown-item {
  font-size: 0.875rem;
}

.support-tenant-list .dropdown-item.active:disabled {
  /* The active tenant is shown as chosen, not greyed out. */
  color: var(--bs-dropdown-link-active-color);
  background-color: var(--bs-dropdown-link-active-bg);
  opacity: 1;
}

#mobileConflictBellButton {
  min-width: 2.5rem;
  overflow: visible;
}

#mobileConflictBellButton .support-conflict-count {
  top: 0.15rem;
  right: 0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: none;
  font-size: .68rem;
  line-height: 1;
}

#mobileConflictBellButton .support-conflict-count,
#mobileConflictBellButton .support-conflict-new {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

#mobileConflictBellButton .support-conflict-new {
  right: 0.15rem;
  bottom: 0.15rem;
  transform: none;
  font-size: .58rem;
  line-height: 1;
}

.support-content {
  padding: 1rem;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -20%, rgba(245, 159, 10, 0.12), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(20, 28, 38, 0.08), transparent 40%);
}

/* Access request review: one row of equally tall fields, the decision buttons at the end, the hint below. */
.access-request-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.access-request-field {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 18rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.access-request-roles-field {
  flex: 0 0 auto;
}

.access-request-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  min-height: calc(1.5em + 0.5rem + 2px);
}

.access-request-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.access-request-hint {
  flex-basis: 100%;
  margin-top: 0;
}

.technician-welcome {
  border-left: 4px solid var(--bs-primary);
}

.technician-welcome-icon {
  font-size: 1.5rem;
  color: var(--bs-primary);
}

/* Where a case or work order came from; an AI origin links to its proposal. */
.record-origin {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  text-decoration: none;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
}

.record-origin-ai {
  color: #5b3fa0;
  background: #f3effc;
  border-color: #ddd1f4;
}

.record-origin-crm {
  color: #7a5200;
  background: #fff6e0;
  border-color: #f2d48a;
}

a.record-origin:hover,
a.record-origin:focus-visible {
  text-decoration: underline;
}

.record-origin-open {
  font-size: 0.65rem;
  opacity: 0.7;
}

[data-bs-theme="dark"] .record-origin-ai {
  color: #d8cdf0;
  background: #2a2340;
  border-color: #3f3560;
}

[data-bs-theme="dark"] .record-origin-crm {
  color: #f3d58f;
  background: #3a2f12;
  border-color: #5c4a1c;
}

/* Copy button next to a reference number; quiet until hovered. */
.copy-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.25rem;
  padding: 0;
  color: var(--bs-secondary-color);
  vertical-align: middle;
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.55;
}

.copy-ref:hover,
.copy-ref:focus-visible {
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
  opacity: 1;
}

.copy-ref .fa-check {
  color: var(--bs-success);
}

.trial-onboarding-days {
  color: inherit;
}

.trial-next-steps-done {
  font-size: 1.6rem;
  color: #198754;
}

.trial-next-steps-ai {
  padding: 0.75rem 1rem;
  background: #f6f2fd;
  border: 1px solid #ddd1f4;
  border-radius: 0.5rem;
}

.trial-next-steps-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.trial-next-steps-flow li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trial-next-steps-flow li + li::before {
  content: "\2192";
  color: #8a7bb0;
}

/* The tour: every slide in the same grid cell, so the box is as tall as the tallest and nothing jumps when it turns. */
/* An inbound mail's way through the system: done steps, where it is now, and where it stopped. */
.inbound-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.inbound-stages li {
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
}

.inbound-stages li + li::before {
  content: "\2192";
  margin: 0 0.35rem 0 -0.15rem;
  color: var(--bs-secondary-color);
}

.inbound-stages li.is-done {
  color: var(--bs-success-text-emphasis);
  background: var(--bs-success-bg-subtle);
  border-color: var(--bs-success-border-subtle);
}

.inbound-stages li.is-current {
  color: var(--bs-primary-text-emphasis);
  background: var(--bs-primary-bg-subtle);
  border-color: var(--bs-primary-border-subtle);
  font-weight: 600;
}

.inbound-stages li.is-stopped {
  color: var(--bs-danger-text-emphasis);
  background: var(--bs-danger-bg-subtle);
  border-color: var(--bs-danger-border-subtle);
  font-weight: 600;
}

.trial-tour-slides {
  display: grid;
}

.trial-tour-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--tour-border, #ddd1f4);
  background: var(--tour-bg, #f6f2fd);
}

.trial-tour-slide.is-active {
  visibility: visible;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .trial-tour-slide {
    transition: none;
  }
}

.trial-tour-blue { --tour-bg: #eef5ff; --tour-border: #cfe0fb; --tour-accent: #2f6fe4; }
.trial-tour-green { --tour-bg: #ecf8f0; --tour-border: #c9ebd4; --tour-accent: #1e9e55; }
.trial-tour-orange { --tour-bg: #fff6ea; --tour-border: #f6dcb6; --tour-accent: #d97f00; }
.trial-tour-purple { --tour-bg: #f6f2fd; --tour-border: #ddd1f4; --tour-accent: #7c4dda; }

[data-bs-theme="dark"] .trial-tour-blue { --tour-bg: #14203a; --tour-border: #24395f; --tour-accent: #3f7ff0; }
[data-bs-theme="dark"] .trial-tour-green { --tour-bg: #11261b; --tour-border: #1f4430; --tour-accent: #23a35a; }
[data-bs-theme="dark"] .trial-tour-orange { --tour-bg: #2b1f10; --tour-border: #4d3818; --tour-accent: #d98a10; }
[data-bs-theme="dark"] .trial-tour-purple { --tour-bg: #1f1b29; --tour-border: #3a3150; --tour-accent: #8a5ee8; }

.trial-tour-steps {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.trial-tour-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--tour-border);
  font-size: 0.875rem;
}

.trial-tour-steps li .fw-semibold {
  font-size: 1rem;
}

/* Number and title side by side, the text under them, in the middle of the card's height. */
.trial-tour-steps li {
  justify-content: center;
}

.trial-tour-step-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trial-tour-slide > .btn {
  align-self: flex-start;
}

/* Four in a row on wide screens, with an arrow from each step to the next, as in the mail picture. */
@media (min-width: 992px) {
  .trial-tour-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .trial-tour-steps li:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: -1.15rem;
    transform: translateY(-50%);
    color: var(--tour-accent);
    font-weight: 700;
  }
}

.trial-tour-number {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tour-accent);
  font-weight: 700;
}

.trial-tour-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.trial-tour-dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bs-secondary-bg);
  outline-offset: 2px;
  transition: width 0.2s ease;
}

.trial-tour-dot.is-active {
  width: 1.4rem;
  border-radius: 0.3rem;
  background: var(--bs-primary);
}

.trial-next-steps-flow-image {
  display: none;
  margin: 0 0 0.75rem;
}

.trial-next-steps-flow-image img {
  width: 100%;
  height: auto;
}

.trial-next-steps-flow-dark,
[data-bs-theme="dark"] .trial-next-steps-flow-light {
  display: none;
}

[data-bs-theme="dark"] .trial-next-steps-flow-dark {
  display: block;
}

/* Wide enough for the picture's text to be read: the picture shows, and the list is kept for screen readers only. */
@media (min-width: 992px) {
  .trial-next-steps-flow-image {
    display: block;
  }

  .trial-next-steps-flow {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

.trial-next-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.5rem;
}

.trial-next-steps-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
}

.trial-next-steps-item:hover,
.trial-next-steps-item:focus-visible {
  background: var(--bs-tertiary-bg);
}

.trial-next-steps-item > i {
  margin-top: 0.15rem;
  color: var(--bs-primary);
}

.example-data-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  color: #4a3a6b;
  font-size: 0.8rem;
  background: #f6f2fd;
  border: 1px solid #ddd1f4;
  border-radius: 0.375rem;
}

.example-data-notice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: auto;
  color: inherit;
  border-radius: 0.375rem;
  text-decoration: none;
}

.example-data-notice-link:hover,
.example-data-notice-link:focus-visible {
  background: #e9e1f9;
}

.trial-onboarding {
  margin: -1rem -1rem 1rem;
  padding: 0.55rem max(1rem, calc((100% - 1080px) / 2));
  color: #33240a;
  background: #fffaf0;
  border-bottom: 1px solid rgba(245, 159, 10, 0.42);
}

.trial-onboarding-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  color: #72500a;
  font-size: 0.72rem;
  font-weight: 600;
}

.trial-onboarding-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trial-onboarding-steps::before,
.trial-onboarding-steps::after {
  position: absolute;
  top: 0.8rem;
  left: 12.5%;
  height: 2px;
  content: "";
}

.trial-onboarding-steps::before {
  right: 12.5%;
  background: #e5e7eb;
}

.trial-onboarding-steps::after {
  width: var(--trial-progress-width);
  max-width: 75%;
  background: #f59f0a;
  transition: width 0.3s ease;
}

.trial-onboarding-step {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.trial-onboarding-step-stack {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.trial-onboarding-step:hover,
.trial-onboarding-step:focus-visible,
.trial-onboarding-step.is-current {
  color: #33240a;
}

.trial-onboarding-dot {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: #fff;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  font-size: 0.68rem;
}

.trial-onboarding-step.is-complete .trial-onboarding-dot {
  color: #33240a;
  background: #fbbf24;
  border-color: #f59f0a;
}

.trial-onboarding-step.is-current .trial-onboarding-dot {
  border-color: #f59f0a;
  box-shadow: 0 0 0 4px rgba(245, 159, 10, 0.16);
}

.trial-onboarding-description {
  max-width: 760px;
  margin: 0.45rem auto 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  color: #72500a;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.trial-onboarding-done {
  align-items: center;
  flex-wrap: wrap;
}

.trial-onboarding-description i {
  color: #b97805;
}

.trial-onboarding-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  flex: 0 0 auto;
  padding: 0.15rem 0.35rem;
  color: #72500a;
  background: transparent;
  border: 0;
  border-radius: 0.35rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.trial-onboarding-action:hover,
.trial-onboarding-action:focus-visible {
  color: #33240a;
  background: rgba(245, 159, 10, 0.12);
  border-color: #b97805;
}

.trial-onboarding-action .fa-chevron-down {
  font-size: 0.65rem;
}

.trial-onboarding-action .fa-magic {
  font-size: 0.95rem;
}

.trial-onboarding-suggestion-arrow {
  display: block;
  height: 1rem;
  margin-top: 0.18rem;
  color: #b97805;
  font-size: 0.65rem;
  line-height: 1rem;
  animation: trial-onboarding-arrow-pulse 2.2s ease-in-out infinite;
}

.trial-onboarding-suggestion-form {
  margin: 0;
}

@keyframes trial-onboarding-arrow-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(0);
  }

  50% {
    opacity: 0.9;
    transform: translateY(2px);
  }
}

.support-content table tbody tr[onclick] {
  cursor: pointer;
}

.support-content table tbody tr[onclick]:hover td {
  background-color: rgba(245, 159, 10, 0.07);
}

.support-content .card {
  border-radius: 0.85rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(20, 28, 38, 0.06);
}

.support-content .card .card-header {
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.cross-link {
  color: #0d6efd;
  text-decoration: none;
  border-bottom: 0;
  transition: color 0.12s ease;
}

.cross-link:hover,
.cross-link:focus-visible {
  color: #0a58ca;
  border-bottom: 0;
  text-decoration: none;
}

[data-bs-theme="dark"] .cross-link {
  color: #80b4ff;
}

[data-bs-theme="dark"] .cross-link:hover,
[data-bs-theme="dark"] .cross-link:focus-visible {
  color: #a9ccff;
}

.btn-primary {
  border-color: var(--sm-primary);
  background-color: var(--sm-primary);
  color: #1f2937;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--sm-primary-hover);
  background-color: var(--sm-primary-hover);
  color: #111827;
}

.btn-outline-primary {
  border-color: var(--sm-primary);
  color: var(--sm-primary);
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--sm-primary);
  border-color: var(--sm-primary);
  color: #1f2937;
}

/* The rail of icons is the desktop's folded menu. On a phone the menu is a drawer that slides out whole, so it never
   shows the rail, not even for the moment it slides away after a page is chosen. */
@media (min-width: 992px) {
  body.support-shell.sidebar-collapsed .support-sidebar {
    width: var(--support-sidebar-collapsed-width);
  }

  body.support-shell.sidebar-collapsed .brand-subtext,
  body.support-shell.sidebar-collapsed .brand-subtext-reflection,
  body.support-shell.sidebar-collapsed .support-nav-link .link-text,
  body.support-shell.sidebar-collapsed .support-nav-section-title,
  body.support-shell.sidebar-collapsed .support-nav-tenant-context,
  body.support-shell.sidebar-collapsed .support-nav-group .link-text,
  body.support-shell.sidebar-collapsed .support-nav-sublink .link-text {
    display: none;
  }

  body.support-shell.sidebar-collapsed .support-sidebar-footer {
    padding-inline: 0.2rem;
    font-size: 0.58rem;
  }

  body.support-shell.sidebar-collapsed .support-sidebar-footer span:last-child {
    display: none;
  }

  body.support-shell.sidebar-collapsed .support-nav {
    align-items: center;
    padding: 0.75rem 0.5rem;
  }

  body.support-shell.sidebar-collapsed .support-sidebar-search-wrap {
    display: none;
  }

  body.support-shell.sidebar-collapsed .support-sidebar-search-results {
    display: none;
  }

  body.support-shell.sidebar-collapsed .support-nav-link {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  body.support-shell.sidebar-collapsed .support-nav-link i,
  body.support-shell.sidebar-collapsed .support-nav-sublink i,
  body.support-shell.sidebar-collapsed .support-nav-group summary i {
    width: auto;
    margin: 0;
  }

  body.support-shell.sidebar-collapsed .support-nav-group summary,
  body.support-shell.sidebar-collapsed .support-nav-sublink {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    gap: 0;
    position: relative;
  }

  /* Lock marks and counters would push the icon off-centre in the rail: the lock is in the title, the counter sits on the icon's corner. */
  body.support-shell.sidebar-collapsed .support-nav-link .fa-lock,
  body.support-shell.sidebar-collapsed .support-nav-group summary .fa-lock {
    display: none;
  }

  body.support-shell.sidebar-collapsed .support-nav-link,
  body.support-shell.sidebar-collapsed .support-nav-group summary {
    position: relative;
  }

  body.support-shell.sidebar-collapsed .support-nav-link .badge,
  body.support-shell.sidebar-collapsed .support-nav-group summary .badge {
    position: absolute;
    top: 2px;
    right: 0;
    margin: 0;
    padding: 0.2em 0.42em;
    font-size: 0.62rem;
  }

  /* A section stacks its items like the rest of the rail instead of laying them out in a row. */
  body.support-shell.sidebar-collapsed .support-nav-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
  }

  body.support-shell.sidebar-collapsed .support-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.support-shell.sidebar-collapsed .support-brand {
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  body.support-shell.sidebar-collapsed .brand-logo {
    max-width: 48px;
  }

  /* An open group shows its pages as icons under the group, framed so they read as its sub-items. */
  body.support-shell.sidebar-collapsed .support-nav-submenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    margin: 0.12rem 0 0.2rem;
    padding: 0.2rem 0;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
  }

  [data-bs-theme="light"] body.support-shell.sidebar-collapsed .support-nav-submenu {
    background: rgba(15, 23, 42, 0.06);
  }

  /* The rail's submenu already has its own tint; keep only the bar. */
  body.support-shell.sidebar-collapsed .support-nav-group[open] {
    background: none;
  }

  body.support-shell.sidebar-collapsed .support-nav-submenu .support-nav-sublink {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 991.98px) {
  .support-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1035;
    width: min(var(--support-sidebar-width), 85vw);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.2s ease, visibility 0.2s;
  }

  body.support-shell.sidebar-collapsed .support-sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow: none;
  }

  .support-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1030;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease;
  }

  body.support-shell.sidebar-collapsed .support-sidebar-backdrop {
    opacity: 0;
    pointer-events: none;
  }

  body.support-shell:not(.sidebar-collapsed) {
    overflow: hidden;
  }
}

[data-bs-theme="dark"] body.support-shell {
  background: #0f1720;
}

[data-bs-theme="light"] .support-sidebar {
  background: linear-gradient(180deg, #e6edf4 0%, #d9e3ec 100%);
  color: #26384a;
  border-right-color: #d9e2ec;
}

[data-bs-theme="light"] .support-brand {
  border-bottom-color: #d9e2ec;
}

[data-bs-theme="light"] .brand-company-name {
  color: #526579;
}

[data-bs-theme="light"] .support-nav-link,
[data-bs-theme="light"] .support-nav-group summary {
  color: #354b60;
}

[data-bs-theme="light"] .support-nav-link:hover,
[data-bs-theme="light"] .support-nav-group summary:hover {
  color: #172b3f;
  background: rgba(20, 52, 82, 0.08);
}

[data-bs-theme="light"] .support-nav-link.active {
  color: #17324d;
  background: rgba(245, 159, 10, 0.16);
  box-shadow: inset 0 0 0 1px rgba(200, 125, 0, 0.5);
}

[data-bs-theme="light"] .support-nav-section {
  border-top-color: #d9e2ec;
}

[data-bs-theme="light"] .support-nav-section-title {
  color: #71869a;
}

[data-bs-theme="light"] .support-nav-tenant-context {
  border-bottom-color: #c8d5e2;
}

[data-bs-theme="light"] .support-nav-tenant-label {
  color: #71869a;
}

[data-bs-theme="light"] .support-nav-tenant-name {
  color: #9a6300;
}

[data-bs-theme="light"] .support-nav-sublink {
  color: #526b82;
}

[data-bs-theme="light"] .support-nav-group[open] {
  background: rgba(20, 52, 82, 0.05);
  box-shadow: inset 3px 0 0 rgba(200, 125, 0, 0.8);
}

[data-bs-theme="light"] .support-nav-sublink:hover {
  color: #172b3f;
  background: rgba(20, 52, 82, 0.08);
}

[data-bs-theme="light"] .support-nav-sublink.active {
  color: #17324d;
  background: rgba(245, 159, 10, 0.14);
  box-shadow: inset 0 0 0 1px rgba(200, 125, 0, 0.45);
}

[data-bs-theme="light"] .support-sidebar-footer {
  border-top-color: #d9e2ec;
  color: #7890a5;
}

[data-bs-theme="light"] .support-header {
  background: linear-gradient(90deg, #e2eaf2 0%, #d5e0e9 100%);
  color: #26384a;
  border-bottom-color: #d9e2ec;
}

[data-bs-theme="dark"] .support-content {
  background:
    radial-gradient(circle at 10% -20%, rgba(245, 159, 10, 0.1), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(100, 116, 139, 0.15), transparent 40%);
}

[data-bs-theme="dark"] .trial-next-steps-ai {
  background: #1f1b29;
  border-color: #3a3150;
}

[data-bs-theme="dark"] .trial-next-steps-done {
  color: #75b798;
}

[data-bs-theme="dark"] .example-data-notice {
  color: #d8cdf0;
  background: #1f1b29;
  border-color: #3a3150;
}

[data-bs-theme="dark"] .example-data-notice-link:hover,
[data-bs-theme="dark"] .example-data-notice-link:focus-visible {
  background: #2d2640;
}

[data-bs-theme="dark"] .trial-onboarding {
  color: #f8e2b0;
  background: #211d16;
  border-bottom-color: rgba(245, 159, 10, 0.45);
}

[data-bs-theme="dark"] .trial-onboarding-heading {
  color: #e8bd65;
}

[data-bs-theme="dark"] .trial-onboarding-description {
  color: #d9c69d;
}

[data-bs-theme="dark"] .trial-onboarding-description i {
  color: #f5bf66;
}

[data-bs-theme="dark"] .trial-onboarding-action {
  color: #f5bf66;
}

[data-bs-theme="dark"] .trial-onboarding-action:hover,
[data-bs-theme="dark"] .trial-onboarding-action:focus-visible {
  color: #fff4d6;
  background: rgba(245, 191, 102, 0.12);
}

[data-bs-theme="dark"] .trial-onboarding-suggestion-arrow {
  color: #f5bf66;
}

[data-bs-theme="dark"] .trial-onboarding-steps::before {
  background: #475569;
}

[data-bs-theme="dark"] .trial-onboarding-step {
  color: #aeb9c8;
}

[data-bs-theme="dark"] .trial-onboarding-step:hover,
[data-bs-theme="dark"] .trial-onboarding-step:focus-visible,
[data-bs-theme="dark"] .trial-onboarding-step.is-current {
  color: #fff4d6;
}

[data-bs-theme="dark"] .trial-onboarding-dot {
  color: #aeb9c8;
  background: #182230;
  border-color: #64748b;
}

[data-bs-theme="dark"] .support-content .card {
  background-color: #182230;
  border-color: #334155;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.35);
}

[data-bs-theme="dark"] .support-content .card .card-header {
  border-bottom-color: #334155;
  background: linear-gradient(180deg, #182230 0%, #1d2b3d 100%);
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #f5bf66;
  border-color: #f5bf66;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus {
  color: #111827;
  background-color: #f5bf66;
  border-color: #f5bf66;
}

[data-bs-theme="dark"] .support-scope-badge {
  color: #dbe7f3;
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.6);
}

[data-bs-theme="dark"] .btn-check:checked + .support-scope-badge {
  color: #111827;
  background: #f5bf66;
  border-color: #f5bf66;
}

[data-bs-theme="dark"] .support-sidebar-search-results .search-hit {
  background: #f5bf66;
  color: #111827;
}

/* Bootstrap's display utilities use !important and would otherwise show an element marked hidden. */
[hidden].d-flex,
[hidden].d-inline-flex,
[hidden].d-block {
    display: none !important;
}

/* Billing rows that open, like the trial guide's arrow: points right when closed, down when open. */
.billing-toggle .billing-toggle-icon {
  flex-shrink: 0;
  width: 0.75rem;
  font-size: 0.7rem;
  color: var(--bs-secondary-color);
  transform: rotate(-90deg);
  transition: transform 0.15s ease;
}

.billing-toggle[aria-expanded="true"] .billing-toggle-icon {
  transform: none;
}

/* A function the plan does not include (_LicenseBadge): small and neutral, the tooltip says what and from which plan. */
.license-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
  text-transform: none;
  color: var(--bs-primary);
  background: color-mix(in srgb, var(--bs-primary) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--bs-primary) 45%, transparent);
  cursor: help;
}
/* Work role and level pills (_RoleLevelBadge): the role in its colour, the level tinted by seniority. */
.role-level-pill {
    border-radius: 0.5rem;
    padding: 0.25rem 0.55rem;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid transparent;
}

/* A list's search box beside its button. On a phone the box and the tools around it take the whole row and the box
   gives way, so the button stays inside the card. */
.support-list-search {
  width: 320px;
}

@media (max-width: 575.98px) {
  .card-header > :has(.support-list-search) {
    flex: 1 1 100%;
    min-width: 0;
  }

  .card-header form:has(> .support-list-search) {
    flex: 1 1 auto;
    min-width: 0;
  }

  .support-list-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

/* A row's details open as a full-width cell in its list. On a phone the list scrolls sideways and is wider than the
   screen, so the details keep to the visible width and stay in view while the columns scroll. */
@media (max-width: 767.98px) {
  .table-responsive {
    container-type: inline-size;
  }

  .table-responsive > .table > tbody > tr > td[colspan] > * {
    position: sticky;
    left: 0.5rem;
    width: calc(100cqi - 2rem);
    max-width: calc(100cqi - 2rem);
  }
}

/* On a phone every pixel goes to the content: narrower margins round the page, inside the cards and round a row's
   details. */
@media (max-width: 575.98px) {
  .support-header {
    padding-inline: 0.5rem;
  }

  .support-content {
    padding: 0.5rem;
  }

  .trial-onboarding {
    margin: -0.5rem -0.5rem 0.5rem;
    padding-inline: 0.5rem;
  }

  .support-content .row {
    --bs-gutter-x: 0.5rem;
  }

  .support-content .card > .card-header,
  .support-content .card > .card-body,
  .support-content .card > .card-footer {
    padding-inline: 0.625rem;
  }

  .support-content .card .card > .card-header,
  .support-content .card .card > .card-body,
  .support-content .card .card > .card-footer {
    padding-inline: 0.5rem;
  }

  /* Overrides the cells' own padding classes (p-3), which Bootstrap marks important. */
  .support-content .table-responsive > .table > tbody > tr > td[colspan] {
    padding-inline: 0.25rem !important;
  }

  .support-content .table-responsive > .table > tbody > tr > td[colspan] > *,
  .support-content .table-responsive > .table > tbody > #ao-detalj > td > .card {
    left: 0.25rem;
    width: calc(100cqi - 0.5rem);
    max-width: calc(100cqi - 0.5rem);
  }
}
