/* Tabler supplies the layout; this file holds the brand color, the status board, and the status table, which Tabler has no component for. */
:root {
  --tblr-primary: #0A2D9C; --tblr-primary-rgb: 10, 45, 156;
  --tint: #E3ECFE; --tint-line: #A9C3F7; --idle-line: #B7C0D0; --skip-line: #8592A8;
}
/* Tabler uppercases these labels; the dashboard keeps its Headline Case field names. */
.page-pretitle, .subheader, .datagrid-title { text-transform: none; letter-spacing: 0; }
.navbar-expand .top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.wordmark { display: block; height: 28px; width: auto; flex-shrink: 0; }
.btn, .form-control { min-height: 44px; }
.card-title { font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.toolbar .search { flex: 1 1 100%; }
@media (min-width: 768px) { .toolbar .search { flex: 0 0 300px; } }
.search .input-icon { --tblr-input-icon-addon-height: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.board-column > .card-body { background: var(--tblr-bg-surface-secondary); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.chip { display: block; border-radius: 4px; padding: 4px 6px; }
.chip .k { display: block; font-size: 11px; font-weight: 500; }
.chip .v { display: block; font-size: 12px; font-weight: 600; }
.tone-done, .tone-current, .swatch.done { background: var(--tblr-primary); color: #FFFFFF; border: 1px solid var(--tblr-primary); }
.tone-active, .tone-past, .swatch.active { background: var(--tint); color: var(--tblr-primary); border: 1px solid var(--tint-line); }
.tone-idle, .swatch.idle { background: var(--tblr-bg-surface); color: var(--tblr-secondary); border: 1px solid var(--idle-line); }
.tone-skipped, .swatch.skipped { background: var(--tblr-body-bg); color: var(--tblr-secondary); border: 1px dashed var(--skip-line); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; }
.status-label { flex: 0 0 120px; }
.status-steps { flex: 999 1 420px; display: flex; flex-wrap: wrap; gap: 6px; }
.step { padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.step.tone-current { font-weight: 600; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.min-w-0 { min-width: 0; }
.btn-external { gap: 8px; }
.brand-mark, .new-tab-icon { width: 16px; height: 16px; flex-shrink: 0; }
.search .form-control:focus { border-color: var(--tblr-primary); outline: 0; box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), .25); }
.view-switch .btn { min-width: 88px; }
.onboarding-table, .facility-table { font-size: 13px; }
.onboarding-table > :not(caption) > * > *, .facility-table > :not(caption) > * > * { padding: 8px 10px; }
.onboarding-table tr.client-row > th[scope=col], .facility-table thead th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.onboarding-table tbody th { font-weight: 600; }
.onboarding-table .sort-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.onboarding-table .sort-link:hover { color: var(--tblr-primary); }
.sort-mark { font-size: 12px; }
.onboarding-table .chip, .facility-table .chip { display: inline-block; white-space: nowrap; }
.onboarding-table tr > :nth-child(2) { min-width: 120px; max-width: 170px; }
/* The onboarding name stays in view while a narrow screen scrolls the status columns. */
.onboarding-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--tblr-bg-surface); min-width: 140px; max-width: 200px; }
/* The group tint is see-through, so lay it over solid surface or scrolled labels show through the sticky name cell. */
.onboarding-table tr.client-row > * { background: linear-gradient(var(--tblr-bg-surface-secondary), var(--tblr-bg-surface-secondary)), var(--tblr-bg-surface); border-top-width: 1px; border-bottom-width: 1px; }
.onboarding-table tr.client-row > th[scope=col] { color: var(--tblr-secondary); }
.onboarding-table tr.client-row > th[scope=col]:nth-child(n+3) { text-align: center; }
.onboarding-table > tbody:first-child > tr.group-gap { display: none; }
/* A sideways scroll comes to rest with a whole column against the sticky name column, so no cut-off heading shows. The end padding lets the last column reach that edge. */
@media (max-width: 575.98px) {
  .onboarding-groups .table-responsive { scroll-snap-type: x mandatory; padding-right: calc(58vw - 32px); }
  .onboarding-table tr > :first-child { width: 42vw; min-width: 42vw; max-width: 42vw; }
  .onboarding-table tr.client-row > :not(:first-child) { scroll-snap-align: start; scroll-margin-left: 42vw; }
}
.run-link .new-tab-icon { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; color: var(--tblr-secondary); }
.onboarding-table tr.client-row > :first-child { font-size: 15px; }
@media (max-width: 575.98px) { .onboarding-table tr.client-row > :first-child { font-size: 14px; } }
/* Separate borders let each client group carry its own outline and rounded corners, with the page showing between groups. */
.onboarding-table { --tblr-table-bg: transparent; border-collapse: separate; border-spacing: 0; margin-bottom: 0; }
.onboarding-table > :not(caption) > * > * { border-color: var(--tblr-border-color); }
.onboarding-table tbody td, .onboarding-table tbody th { background-color: var(--tblr-bg-surface); }
.onboarding-table tr.group-gap > td { height: 16px; padding: 0; border: 0; background: transparent; position: static; }
.onboarding-table tr.client-row > :first-child { border-left-width: 1px; border-top-left-radius: 8px; }
.onboarding-table tr.client-row > :last-child { border-right-width: 1px; border-top-right-radius: 8px; }
.onboarding-table tr.no-groups > td { border-width: 1px; border-top-left-radius: 8px; border-top-right-radius: 8px; }
.onboarding-table tr.no-groups > td { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.onboarding-table tbody.collapse > tr > :first-child { border-left-width: 1px; }
.onboarding-table tbody.collapse > tr > :last-child { border-right-width: 1px; }
.onboarding-table tbody.collapse > tr:last-child > :first-child { border-bottom-left-radius: 8px; }
.onboarding-table tbody.collapse > tr:last-child > :last-child { border-bottom-right-radius: 8px; }
.onboarding-table tbody:has(+ tbody.collapse:not(.show)) tr.client-row > :first-child { border-bottom-left-radius: 8px; }
.onboarding-table tbody:has(+ tbody.collapse:not(.show)) tr.client-row > :last-child { border-bottom-right-radius: 8px; }
.onboarding-table td.stage { padding-inline: 0; }
.onboarding-table td.stage .chip { display: block; border-radius: 0; text-align: center; border-left-width: 0; border-right-width: 0; }
/* One divider color that shows against every fill, white Not Started segments included. */
.onboarding-table td.stage + td.stage .chip { border-left: 1px solid var(--idle-line); }
/* Two Complete segments side by side keep a white rule, so each stage reads as its own segment. */
.onboarding-table td.stage:has(> .tone-done) + td.stage > .chip.tone-done { border-left-color: #FFFFFF; }
.onboarding-table td.stage:nth-child(3) { padding-left: 10px; }
.onboarding-table td.stage:nth-child(3) .chip { border-radius: 4px 0 0 4px; border-left-width: 1px; }
.onboarding-table td.stage:last-child { padding-right: 10px; }
.onboarding-table td.stage:last-child .chip { border-radius: 0 4px 4px 0; border-right-width: 1px; }
.onboarding-table .client-name, .facility-table .client-name { display: inline-flex; align-items: center; gap: 8px; }
/* The facility group cell spans every column, so the name itself sticks to stay readable while a narrow screen scrolls. */
.facility-table .client-name { position: sticky; left: 10px; }
.onboarding-table .client-toggle, .facility-table .client-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -6px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--tblr-secondary); }
.onboarding-table .client-toggle:hover, .facility-table .client-toggle:hover { background: var(--tblr-bg-surface-tertiary); color: var(--tblr-body-color); }
.onboarding-table .client-toggle:focus-visible, .facility-table .client-toggle:focus-visible { outline: 2px solid var(--tblr-primary); outline-offset: 1px; }
.onboarding-table .client-toggle svg, .facility-table .client-toggle svg { transition: transform .15s; }
.onboarding-table .client-toggle[aria-expanded="false"] svg, .facility-table .client-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
/* Bootstrap animates height, which a table row group cannot take, so the rows switch at once. */
.onboarding-table tbody.collapsing, .facility-table tbody.collapsing { transition: none; }
@media (prefers-reduced-motion: reduce) { .onboarding-table .client-toggle svg, .facility-table .client-toggle svg { transition: none; } }
.client-layout { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.client-sidebar .page-header { min-height: 0; }
.client-sidebar .btn-external { padding-inline: 12px; }
.client-details { grid-template-columns: 1fr; gap: 12px; }
@media (max-width: 991.98px) { .client-layout { grid-template-columns: minmax(0, 1fr); } .client-details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.complete-toggle { display: flex; align-items: center; margin-left: auto; }
.facility-table tbody th { font-weight: 600; }
.facility-table > tbody:last-child > tr:last-child > * { border-bottom-width: 0; }
.facility-table tr.group-row > th { background: var(--tblr-bg-surface-secondary); font-size: 15px; }
/* Tabler drops the bottom border of every tbody's last row; only the table's last row should lose it. */
.facility-table > tbody:not(:last-child) > tr:last-child > td { border-bottom: var(--tblr-border-width) solid var(--tblr-table-border-color); }
.facility-table tbody:has(+ tbody.collapse:not(.show)) tr.group-row > th { border-bottom-width: 0; border-end-start-radius: var(--tblr-card-table-bottom-radius); border-end-end-radius: var(--tblr-card-table-bottom-radius); }
/* With no active facility, the headings label nothing until the Completed group opens. */
.facility-table.all-completed:has(#completed-facilities:not(.show)) > thead { display: none; }
