/* Fail closed before initialization and outrank Bootstrap display utilities. */
[data-requires-permission]:not([data-permission-authorized]),
[data-requires-admin-tools]:not([data-permission-authorized]),
.sb-permission-denied {
    display: none !important;
}

:root {
    --sb-pink: #ff1f6d;
    --sb-pink-2: #ff3c64;
    --sb-primary: #ff1f6d;
    --sb-accent: #217b80;
    --sb-control-accent: #00b0c5;
    --sb-control-accent-rgb: 0, 176, 197;
    --sb-menu-bg: #fefefe;
    --sb-bg: #f5f5f8;
    --sb-surface: #ffffff;
    --sb-surface-2: #fceef5;
    --sb-nav: #ffffff;
    --sb-subnav: #ffffff;
    --sb-text: #666174;
    --sb-heading: #5a566a;
    --sb-muted: #8b879a;
    --sb-border: #dbd9e2;
    --sb-table-head: #7b7588;
    --sb-shadow: 0 12px 24px rgba(28, 24, 42, .08);
}

/* Administrative Data Export */
.sb-export-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 20px;
    align-items: start;
}

.sb-export-builder,
.sb-export-history {
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    border-radius: 6px;
}

.sb-export-section {
    padding: 20px;
    border-bottom: 1px solid var(--bs-border-color);
}

.sb-export-section__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sb-export-section__head > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: var(--sb-accent, #ff1f68);
    font-weight: 700;
}

.sb-export-section__head h2,
.sb-export-history__head h2 {
    margin: 0;
    font-size: 1rem;
}

.sb-export-section__head p,
.sb-export-description {
    margin: 3px 0 0;
    color: var(--bs-secondary-color);
    font-size: .84rem;
}

.sb-export-description {
    min-height: 20px;
    margin-top: 12px;
}

.sb-export-field-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sb-export-field-actions > span {
    margin-left: auto;
    color: var(--bs-secondary-color);
    font-size: .8rem;
}

.sb-export-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
}

.sb-export-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 0;
    font-size: .86rem;
}

.sb-export-field span {
    overflow-wrap: anywhere;
}

.sb-export-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

.sb-export-actions > span {
    color: var(--bs-secondary-color);
    font-size: .8rem;
}

.sb-export-history {
    position: sticky;
    top: 86px;
    overflow: hidden;
}

.sb-export-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--bs-border-color);
}

.sb-export-history__head > span {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    border-radius: 13px;
    color: #0f5132;
    background: #d1e7dd;
    font-size: .75rem;
    font-weight: 700;
}

.sb-export-history__list {
    max-height: 620px;
    overflow: auto;
}

.sb-export-history-item {
    padding: 13px 16px;
    border-bottom: 1px solid var(--bs-border-color);
}

.sb-export-history-item:last-child {
    border-bottom: 0;
}

.sb-export-history-item > div,
.sb-export-history-item p {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sb-export-history-item strong {
    font-size: .85rem;
}

.sb-export-history-item span,
.sb-export-history-item p,
.sb-export-history-item time {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: .74rem;
}

@media (max-width: 1100px) {
    .sb-export-layout { grid-template-columns: 1fr; }
    .sb-export-history { position: static; }
}

@media (max-width: 760px) {
    .sb-export-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-export-actions { align-items: stretch; flex-direction: column; }
    .sb-export-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .sb-export-section { padding: 16px; }
    .sb-export-fields { grid-template-columns: 1fr; }
    .sb-export-field-actions { align-items: stretch; flex-wrap: wrap; }
    .sb-export-field-actions > span { flex-basis: 100%; margin-left: 0; }
}

/* Administrative Data Import */
.sb-import-policy {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.sb-import-policy > i { margin-top: 3px; color: var(--sb-accent); }
.sb-import-policy > div { display: grid; gap: 3px; }
.sb-import-policy span { color: var(--bs-secondary-color); font-size: .82rem; }

.sb-import-result {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    background: var(--bs-body-bg);
}

.sb-import-result > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bs-border-color);
}

.sb-import-result h2 { margin: 0; font-size: 1rem; }
.sb-import-result > header > span,
.sb-import-history-item > div > span {
    padding: 3px 8px;
    border-radius: 12px;
    background: #d1e7dd;
    color: #0f5132;
    font-size: .7rem;
    font-weight: 700;
    text-transform: capitalize;
}

.sb-import-result > header > span.is-completed_with_errors,
.sb-import-history-item > div > span.is-completed_with_errors { background: #fff3cd; color: #664d03; }
.sb-import-history-item > div > span.is-failed { background: #f8d7da; color: #842029; }

.sb-import-result__counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--bs-border-color);
}

.sb-import-result__counts > div { display: grid; gap: 3px; padding: 18px 20px; border-right: 1px solid var(--bs-border-color); }
.sb-import-result__counts > div:last-child { border-right: 0; }
.sb-import-result__counts strong { color: var(--bs-emphasis-color); font-size: 1.35rem; }
.sb-import-result__counts span,
.sb-import-result__note,
.sb-import-history-item small { color: var(--bs-secondary-color); font-size: .75rem; }
.sb-import-error-table { margin: 0; vertical-align: top; }
.sb-import-error-table th { white-space: nowrap; }
.sb-import-error-table td:last-child { min-width: 260px; white-space: normal; }
.sb-import-result__note { margin: 0; padding: 10px 16px; border-top: 1px solid var(--bs-border-color); }
.sb-import-history-item p { min-width: 0; }
.sb-import-history-item p:not(time) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-import-history-item small { display: block; margin-top: 6px; }

@media (max-width: 640px) {
    .sb-import-result__counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-import-result__counts > div:nth-child(2) { border-right: 0; }
    .sb-import-result__counts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--bs-border-color); }
}

/* Perfect Match launchpad */
.sb-launchpad { padding: 22px; }

.sb-launchpad__header,
.sb-launchpad__work-heading,
.sb-launchpad-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.sb-launchpad__header h1,
.sb-launchpad__work-heading h2,
.sb-launchpad-form h3 {
    margin: 0;
    color: var(--sb-heading);
    letter-spacing: 0;
}

.sb-launchpad__header h1 {
    font-size: 26px;
}

.sb-launchpad__header p,
.sb-launchpad__work-heading p,
.sb-launchpad-form__section-heading p {
    margin: 5px 0 0;
    color: var(--sb-muted);
}

.sb-eyebrow {
    margin: 0 0 4px !important;
    color: var(--sb-primary) !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sb-icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
}

.sb-launchpad__tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 2px 2px 4px;
}

.sb-launchpad__group:not(:has([data-dashboard-permission]:not([hidden]))) {
    display: none;
}

.sb-launchpad__group-title {
    margin: 0 0 12px;
    color: var(--sb-heading);
    font-size: 15px;
    font-weight: 700;
}

.sb-launch-tile:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .sb-launch-tile { transition: none; }
    .sb-launch-tile:hover,
    .sb-launch-tile:focus-visible { transform: none; }
}

.sb-launch-tile {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 7px 10px;
    min-width: 0;
    min-height: 116px;
    padding: 16px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    color: var(--sb-text);
    background: var(--sb-surface);
    box-shadow: none;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.sb-launch-tile:hover,
.sb-launch-tile:focus-visible {
    border-color: rgba(255, 31, 109, .45);
    box-shadow: 0 9px 20px rgba(28, 24, 42, .1);
    transform: translateY(-2px);
}

.sb-launch-tile.is-primary {
    border-color: var(--sb-primary);
}

.sb-launch-tile__icon {
    display: grid;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--sb-primary);
    background: var(--sb-surface-2);
    place-items: center;
}

.sb-launch-tile__label {
    align-self: start;
    color: var(--sb-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.sb-launch-tile strong {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    color: var(--sb-heading);
    font-size: 24px;
    line-height: 1.1;
}

.sb-launch-tile small {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: end;
    color: var(--sb-text);
    font-size: 12px;
    line-height: 1.4;
}

.sb-launchpad__work-heading {
    padding-top: 6px;
    border-top: 1px solid var(--sb-border);
}

.sb-launchpad__work-heading h2 {
    font-size: 19px;
}

.sb-status-pill {
    padding: 6px 10px;
    border: 1px solid rgba(255, 31, 109, .3);
    border-radius: 999px;
    color: var(--sb-primary);
    background: var(--sb-surface-2);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sb-launchpad-form {
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.sb-launchpad-form__section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-launchpad-form__section--content,
.sb-launchpad-form__content-grid {
    grid-template-columns: minmax(0, 1fr);
}

.sb-launchpad-form__section--content > *,
.sb-launchpad-form__content-grid > * {
    min-width: 0;
}

.sb-launchpad-form__section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sb-launchpad [data-dashboard-generation-progress][hidden] { display: none !important; }
.sb-launchpad-generation {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface-2);
    color: var(--sb-text);
    font-size: 13px;
}
.sb-launchpad-generation > .spinner-border { flex-shrink: 0; color: var(--bs-primary); }
.sb-launchpad .sb-launchpad-generation-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--sb-muted);
}
.sb-launchpad-generation-field .spinner-border { width: .8rem; height: .8rem; }

.sb-launchpad-form__section-heading h3 {
    font-size: 16px;
}

.sb-launchpad-form__section-heading p {
    font-size: 12px;
}

.sb-launchpad-form .sb-field > span { font-size: 13px; }
.sb-launchpad-form [data-dashboard-draft-candidate-message] { display: block; margin-top: 6px; color: var(--sb-muted); }
.sb-launchpad-form input[readonly] { background: var(--sb-bg); color: var(--sb-muted); }
.sb-launchpad-form textarea[name="search_expression"] { min-height: 88px; }
.sb-launchpad-form .ck-editor { min-width: 0; max-width: 100%; }
.sb-launchpad-form .ck-editor__editable { min-height: 150px; max-height: 360px; }
.sb-launchpad-form [data-dashboard-job-description-field] .ck-editor__editable { min-height: 180px; }
.sb-launchpad-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.sb-launchpad-filter-grid > .sb-check-field {
    padding: 10px 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-bg);
    cursor: pointer;
}
.sb-launchpad-filter-grid > .sb-check-field:focus-within { outline: 2px solid var(--sb-primary); outline-offset: 2px; }
.sb-launchpad-filter-grid > .sb-check-field:has(input:checked) { background: var(--sb-surface-2); border-color: var(--sb-primary); }
.sb-launchpad-form .sb-search-remote { align-self: center; }
.sb-launchpad-filter-grid [data-dashboard-recent-contact-field] { grid-column: 1 / -1; }

.sb-launchpad-form__step {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: var(--sb-primary);
    font-size: 12px;
    font-weight: 800;
    place-items: center;
}

.sb-form-grid {
    display: grid;
    gap: 16px;
}

.sb-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sb-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sb-field {
    min-width: 0;
    margin: 0;
}

.sb-field--span-2 {
    grid-column: span 2;
}

.sb-field > span,
.sb-field legend {
    display: block;
    width: auto;
    margin: 0 0 6px;
    color: var(--sb-heading);
    font-size: 12px;
    font-weight: 700;
}

.sb-field > span b {
    color: var(--sb-primary);
}

.sb-field textarea {
    min-height: 150px;
    resize: vertical;
}

.sb-segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
}

.sb-segmented-control label {
    margin: 0;
}

.sb-segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sb-segmented-control span {
    display: grid;
    min-height: 37px;
    padding: 8px 10px;
    color: var(--sb-text);
    background: var(--sb-surface);
    font-size: 12px;
    text-align: center;
    place-items: center;
}

.sb-segmented-control label + label span {
    border-left: 1px solid var(--sb-border);
}

.sb-segmented-control input:checked + span {
    color: #fff;
    background: var(--sb-primary);
    font-weight: 700;
}

[data-bs-theme="dark"] .sb-launchpad {
    color-scheme: dark;
}

[data-bs-theme="dark"] .sb-launch-tile,
[data-bs-theme="dark"] .sb-launchpad-form,
[data-bs-theme="dark"] .sb-launchpad-form__section {
    box-shadow: 0 8px 20px rgba(5, 7, 16, .28);
}

[data-bs-theme="dark"] .sb-launchpad-form__step,
[data-bs-theme="dark"] .sb-segmented-control input:checked + span {
    color: #fff;
    background: #ff1f6d;
}

[data-bs-theme="dark"] .sb-launch-tile__icon {
    color: #ff6f9f;
    background: #252a3e;
}

[data-bs-theme="dark"] .sb-launch-tile strong,
[data-bs-theme="dark"] .sb-launch-tile__label,
[data-bs-theme="dark"] .sb-launchpad-form__section-heading h3 {
    color: #f1f2ff;
}

.sb-check-field {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: var(--sb-text);
    font-size: 12px;
}

.sb-check-field input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.sb-check-field strong,
.sb-check-field small {
    display: block;
}

.sb-check-field small {
    margin-top: 2px;
    color: var(--sb-muted);
}

.sb-launchpad-form__footer {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px 24px;
}

.sb-launchpad-form__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.sb-launchpad-form > .alert {
    margin: 0 24px 20px;
}

@media (max-width: 1400px) {
    .sb-launchpad__tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .sb-launchpad-form__section {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 720px) {
    .sb-launchpad-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-launchpad {
        gap: 16px;
        padding: 14px;
    }

    .sb-form-grid--three,
    .sb-form-grid--two {
        grid-template-columns: 1fr;
    }

    .sb-launchpad__tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-field--span-2 {
        grid-column: auto;
    }

    .sb-launchpad-form__section,
    .sb-launchpad-form__footer {
        padding: 18px;
    }

    .sb-launchpad-form__footer,
    .sb-launchpad__work-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-launchpad-form__actions .btn {
        flex: 1 1 0;
    }
}

.sb-admin-page {
    display: grid;
    gap: 18px;
}

.sb-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sb-admin-stats > div,
.sb-admin-panel,
.sb-admin-sidebar {
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.sb-admin-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.sb-admin-stats span {
    color: var(--sb-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.sb-admin-stats strong {
    color: var(--sb-heading);
    font-size: 22px;
    line-height: 1;
}

.sb-admin-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.sb-admin-sidebar {
    position: sticky;
    top: 16px;
    overflow: hidden;
}

.sb-admin-sidebar-head {
    padding: 14px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-admin-list {
    display: grid;
    max-height: 680px;
    overflow: auto;
}

.sb-admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--sb-border);
    color: var(--sb-text);
    background: transparent;
    text-align: left;
}

.sb-admin-list-item:hover,
.sb-admin-list-item.active {
    background: var(--sb-surface-2);
}

.sb-admin-list-item strong,
.sb-admin-list-item em {
    display: block;
}

.sb-admin-list-item strong {
    color: var(--sb-heading);
    font-size: 13px;
}

.sb-admin-list-item em {
    margin-top: 2px;
    color: var(--sb-muted);
    font-size: 11px;
    font-style: normal;
}

.sb-admin-list-item b,
.sb-status-active,
.sb-status-inactive,
.sb-status-archived {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.sb-status-active {
    color: #12633d;
    background: #dcfce7;
}

.sb-status-inactive {
    color: #704d09;
    background: #fef3c7;
}

.sb-status-archived {
    color: #5f6472;
    background: #eef0f4;
}

.sb-admin-main {
    display: grid;
    gap: 16px;
}

.sb-admin-panel {
    padding: 16px;
}

.sb-admin-panel:not(.active)[data-profile-panel] {
    display: none;
}

.sb-module-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.sb-module-check {
    display: grid;
    grid-template-columns: min-content minmax(0, 1fr) min-content;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-bg);
}

.sb-module-check span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sb-heading);
    font-weight: 600;
}

.sb-module-check em {
    color: var(--sb-muted);
    font-size: 11px;
    font-style: normal;
    text-transform: capitalize;
}

.sb-profile-split {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 16px;
}

.sb-profile-form {
    border-right: 1px solid var(--sb-border);
    padding-right: 16px;
}

.sb-company-users-workspace {
    display: grid;
    gap: 18px;
}

.sb-company-users-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-company-users-head h2,
.sb-company-user-section__head h3 {
    margin: 0;
    color: var(--sb-heading);
}

.sb-company-users-head h2 {
    font-size: 1.05rem;
}

.sb-company-users-head p,
.sb-company-user-section__head p {
    margin: 4px 0 0;
    color: var(--sb-muted);
    font-size: .78rem;
}

.sb-company-user-form {
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-bg);
}

.sb-company-user-section {
    padding: 18px 20px 20px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-company-user-section__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.sb-company-user-section__head > span {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--sb-primary);
    font-size: .75rem;
    font-weight: 700;
}

.sb-company-user-section__head h3 {
    font-size: .94rem;
}

.sb-company-user-form .form-label > span {
    color: var(--sb-primary);
}

.sb-company-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: var(--sb-surface-2);
}

.sb-company-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.sb-company-action {
    display: inline-flex;
}

.sb-company-action > .btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 14px;
}

.sb-company-communication-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sb-company-communication-head h2 {
    margin-bottom: .25rem;
}

.sb-company-communication-head p {
    max-width: 74rem;
    margin: 0;
    color: var(--sb-muted);
}

.sb-company-communication-grid {
    display: grid;
    grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.sb-company-communication-list,
.sb-company-communication-form {
    min-width: 0;
    border-color: var(--sb-border);
    background: var(--sb-surface);
    color: var(--sb-text);
}

.sb-company-communication-list > .list-group,
.sb-company-communication-list .card-body > .list-group {
    max-height: 42rem;
    overflow: auto;
}

.sb-company-communication-list .list-group-item {
    display: block;
    width: 100%;
    border-color: var(--sb-border);
    background: transparent;
    color: var(--sb-text);
    text-align: left;
}

.sb-company-communication-list .list-group-item:hover,
.sb-company-communication-list .list-group-item:focus-visible {
    background: var(--sb-surface-2);
}

.sb-company-communication-list .list-group-item.active {
    border-color: var(--sb-primary);
    background: color-mix(in srgb, var(--sb-primary) 14%, var(--sb-surface));
    color: var(--sb-text);
    box-shadow: inset .22rem 0 0 var(--sb-primary);
}

.sb-company-communication-form .card-header,
.sb-company-communication-form .card-footer,
.sb-company-communication-list .card-header {
    border-color: var(--sb-border);
}

.sb-company-communication-form textarea {
    min-height: 9rem;
}

.sb-company-communication-form [data-company-template-email-field][hidden] {
    display: none !important;
}

.sb-company-template-preview {
    padding: 1rem;
    border: 1px solid var(--sb-border);
    border-radius: .5rem;
    background: var(--sb-surface-2);
}

.sb-company-template-preview-subject,
.sb-company-template-preview-body,
.sb-company-template-preview-text {
    padding: .75rem;
    border: 1px solid var(--sb-border);
    border-radius: .375rem;
    background: var(--sb-surface);
    color: var(--sb-text);
    overflow-wrap: anywhere;
}

.sb-company-template-preview-body > :last-child {
    margin-bottom: 0;
}

.sb-company-template-preview-text {
    min-height: auto !important;
    max-height: 18rem;
    overflow: auto;
    white-space: pre-wrap;
    font: inherit;
}

@media (max-width: 991.98px) {
    .sb-company-communication-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-company-communication-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-company-communication-list > .list-group,
    .sb-company-communication-list .card-body > .list-group {
        max-height: 20rem;
    }
}

.sb-company-users-list {
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-bg);
}

.sb-company-users-list tbody tr {
    cursor: pointer;
}

.sb-company-users-list tbody tr:hover,
.sb-company-users-list tbody tr.is-selected {
    background: var(--sb-surface-2);
}

.sb-company-users-list tbody tr:focus-visible,
.sb-company-users-list tbody tr.is-selected {
    outline: 2px solid var(--sb-primary);
    outline-offset: -2px;
}

.sb-company-users-list th,
.sb-company-users-list td {
    min-width: 125px;
    padding: 12px 14px;
}

.sb-company-users-list th:first-child,
.sb-company-users-list td:first-child {
    min-width: 220px;
}

.sb-profile-split tbody tr {
    cursor: pointer;
}

.sb-profile-split tbody tr:hover {
    background: var(--sb-surface-2);
}

.sb-profile-split tbody tr[role="button"]:focus-visible,
.sb-profile-split tbody tr.is-selected {
    outline: 2px solid var(--sb-primary);
    outline-offset: -2px;
    background: var(--sb-surface-2);
}

.sb-preferences-grid {
    display: grid;
    gap: 16px;
}

.sb-preferences-page .sb-admin-panel {
    min-width: 0;
}

.sb-preferences-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sb-global-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sb-vendor-profile-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sb-access-control-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sb-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 18px;
}

.sb-inline-form {
    min-width: 0;
}

.sb-profile-photo-form {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-bg);
}

.sb-profile-photo-preview {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #5168db, #1abf82);
    font-size: 22px;
    font-weight: 800;
}

.sb-profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-profile-photo-controls {
    min-width: 0;
}

.sb-ringcentral-grid {
    display: grid;
    grid-template-columns: minmax(150px, 180px) repeat(3, minmax(160px, 1fr)) minmax(170px, 220px);
    align-items: end;
    gap: 12px;
}

.sb-switch-row,
.sb-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
}

.sb-switch-row {
    align-self: center;
}

.sb-password-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sb-password-head i {
    color: var(--sb-primary);
    font-size: 20px;
}

.sb-muted {
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-alt-email-list {
    display: grid;
    gap: 8px;
}

.sb-alt-email-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-bg);
}

.sb-alt-email-row strong,
.sb-alt-email-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-alt-email-row strong {
    color: var(--sb-heading);
    font-size: 13px;
}

.sb-alt-email-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.sb-alt-email-row span {
    color: var(--sb-muted);
    font-size: 11px;
}

.sb-alt-email-badge {
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.sb-alt-email-badge.is-verified {
    color: #12633d;
    background: #dcfce7;
}

.sb-alt-email-badge.is-unverified {
    color: #704d09;
    background: #fef3c7;
}

.sb-alt-email-actions {
    display: flex;
    gap: 6px;
}

.sb-agency-preference-head,
.sb-agency-preference-row {
    display: grid;
    grid-template-columns: 86px minmax(220px, 1fr) minmax(160px, 220px);
    align-items: center;
    gap: 10px;
}

.sb-agency-preference-head {
    padding: 0 10px 8px;
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sb-agency-preference-list {
    display: grid;
    gap: 8px;
}

.sb-agency-preference-row {
    min-height: 56px;
    padding: 10px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-bg);
}

.sb-agency-label strong,
.sb-agency-label span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-agency-label strong {
    color: var(--sb-heading);
    font-size: 13px;
}

.sb-agency-label span {
    color: var(--sb-muted);
    font-size: 11px;
}

.sb-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sb-choice-grid-wide {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.sb-choice-grid label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-bg);
    color: var(--sb-heading);
    font-weight: 700;
}

.sb-choice-grid label:has(.form-check-input:checked) {
    border-color: var(--sb-primary);
    background: var(--sb-surface-2);
}

.sb-choice-grid span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sb-preference-menu-head,
.sb-preference-menu-row {
    display: grid;
    grid-template-columns: 76px minmax(220px, 1fr) minmax(180px, 260px) 96px;
    align-items: center;
    gap: 10px;
}

.sb-preference-menu-head {
    margin-top: 18px;
    padding: 0 10px 8px;
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sb-preference-menu-list {
    display: grid;
    gap: 8px;
}

.sb-preference-menu-row {
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-bg);
}

.sb-preference-menu-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sb-preference-menu-label i {
    color: var(--sb-primary);
}

.sb-preference-menu-label strong,
.sb-preference-menu-label em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-preference-menu-label strong {
    color: var(--sb-heading);
    font-size: 13px;
}

.sb-preference-menu-label em {
    color: var(--sb-muted);
    font-size: 11px;
    font-style: normal;
}


@media (max-width: 1199.98px) {
    .sb-admin-grid,
    .sb-profile-split,
    .sb-account-grid {
        grid-template-columns: 1fr;
    }

    .sb-admin-sidebar {
        position: static;
    }

    .sb-profile-form {
        border-right: 0;
        border-bottom: 1px solid var(--sb-border);
        padding-right: 0;
        padding-bottom: 16px;
    }
}

@media (max-width: 767.98px) {
    .sb-company-users-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-company-users-head .btn,
    .sb-company-user-actions .btn {
        width: 100%;
    }

    .sb-company-user-section {
        padding: 16px;
    }

    .sb-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-module-head {
        align-items: stretch;
    }

    .sb-module-head > .d-flex {
        justify-content: stretch;
    }

    .sb-preferences-actions {
        display: grid !important;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-preferences-actions [data-preferences-save-state] {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .sb-preferences-actions .btn {
        width: 100%;
    }

    .sb-global-actions {
        display: grid !important;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-global-actions [data-global-load-state] {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .sb-global-actions .btn {
        width: 100%;
    }

    .sb-vendor-profile-actions {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sb-vendor-profile-actions [data-profile-load-state] {
        justify-self: start;
    }

    .sb-access-control-actions {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sb-access-control-actions [data-access-load-state] {
        justify-self: start;
    }

    .sb-choice-grid,
    .sb-choice-grid-wide,
    .sb-ringcentral-grid,
    .sb-agency-preference-head,
    .sb-agency-preference-row,
    .sb-preference-menu-head,
    .sb-preference-menu-row {
        grid-template-columns: 1fr;
    }

    .sb-agency-preference-head,
    .sb-preference-menu-head {
        display: none;
    }

    .sb-agency-preference-row,
    .sb-preference-menu-row {
        align-items: stretch;
    }


    .sb-alt-email-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sb-profile-photo-form {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .sb-alt-email-actions {
        justify-content: flex-end;
    }

}

/* Administrative Billing & Credits */
.sb-billing-loading,
.sb-billing-meta,
.sb-billing-panel,
.sb-billing-summary article {
    border: 1px solid #dfe5e8;
    border-radius: 14px;
    background: #fff;
}
.sb-billing-loading { display: flex; align-items: center; gap: 9px; padding: 18px; color: #66737b; }
.sb-billing-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.sb-billing-summary article { display: grid; gap: 5px; padding: 18px; box-shadow: 0 8px 20px rgb(38 54 62 / 5%); }
.sb-billing-summary span { color: #69777f; font-size: .78rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.sb-billing-summary strong { color: #17262d; font-size: 1.65rem; line-height: 1.15; }
.sb-billing-summary small { color: #7b888f; }
.sb-billing-meta { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 16px; padding: 13px 16px; color: #617078; font-size: .88rem; }
.sb-billing-meta i { margin-right: 5px; color: #347d68; }
.sb-billing-panel { margin-bottom: 16px; overflow: hidden; }
.sb-billing-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px 12px; }
.sb-billing-panel h2 { margin: 0; color: #17262d; font-size: 1.05rem; }
.sb-billing-panel > header > span { min-width: 30px; padding: 4px 9px; border-radius: 999px; background: #edf5f2; color: #347d68; font-size: .78rem; font-weight: 800; text-align: center; }
.sb-billing-panel .table { margin: 0; font-size: .87rem; }
.sb-billing-panel th { padding: 11px 14px; border-color: #e4eaed; background: #f7f9fa; color: #68767e; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.sb-billing-panel td { padding: 13px 14px; border-color: #edf0f2; color: #3b4b53; vertical-align: middle; }
.sb-billing-panel code { color: #51656f; font-size: .78rem; }
.sb-billing-status { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #edf1f3; color: #56656d; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.sb-billing-status.is-paid,
.sb-billing-status.is-succeeded { background: #e6f5ed; color: #23704e; }
.sb-billing-status.is-open,
.sb-billing-status.is-partially_paid,
.sb-billing-status.is-pending { background: #fff3d7; color: #8a6412; }
.sb-billing-status.is-overdue,
.sb-billing-status.is-failed { background: #fde8e8; color: #a33d3d; }
.sb-billing-panel .is-positive { color: #23704e; font-weight: 800; }
.sb-billing-panel .is-negative { color: #a33d3d; font-weight: 800; }
.sb-billing-panel .sb-empty-state { margin: 0 20px 20px; }
.sb-billing-limit-note { margin: 0; color: #77858c; font-size: .82rem; text-align: right; }
[data-bs-theme="dark"] .sb-billing-loading,
[data-bs-theme="dark"] .sb-billing-meta,
[data-bs-theme="dark"] .sb-billing-panel,
[data-bs-theme="dark"] .sb-billing-summary article { border-color: #39444b; background: #222a2f; }
[data-bs-theme="dark"] .sb-billing-summary strong,
[data-bs-theme="dark"] .sb-billing-panel h2 { color: #f1f4f5; }
[data-bs-theme="dark"] .sb-billing-summary span,
[data-bs-theme="dark"] .sb-billing-summary small,
[data-bs-theme="dark"] .sb-billing-meta,
[data-bs-theme="dark"] .sb-billing-panel code,
[data-bs-theme="dark"] .sb-billing-limit-note,
[data-bs-theme="dark"] .sb-billing-panel td { color: #c3cbd0; }
[data-bs-theme="dark"] .sb-billing-panel th { border-color: #39444b; background: #293238; color: #b8c1c6; }
[data-bs-theme="dark"] .sb-billing-panel td { border-color: #39444b; }
@media (max-width: 991.98px) { .sb-billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .sb-billing-summary { grid-template-columns: minmax(0, 1fr); }
    .sb-billing-meta { flex-direction: column; }
    .sb-billing-panel > header { padding-right: 14px; padding-left: 14px; }
}

[data-bs-theme="dark"] {
    --sb-accent: #65b9bd;
    --sb-menu-bg: #252a3e;
    --sb-bg: #202539;
    --sb-surface: #30364f;
    --sb-surface-2: #252a3e;
    --sb-nav: #2d334d;
    --sb-subnav: #202539;
    --sb-text: #c7c9e4;
    --sb-heading: #d7d8f1;
    --sb-muted: #a4a7c8;
    --sb-border: #444b67;
    --sb-table-head: #b8c3ee;
    --sb-shadow: 0 12px 24px rgba(8, 10, 20, .2);
}

/* Replace Bootstrap's default blue controls and links in both themes. */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
    --bs-body-color: var(--sb-text);
    --bs-body-bg: var(--sb-surface);
    --bs-secondary-color: var(--sb-muted);
    --bs-border-color: var(--sb-border);
    --bs-border-radius: 5px;
    --bs-primary: var(--sb-control-accent);
    --bs-primary-rgb: var(--sb-control-accent-rgb);
    --bs-link-color: var(--sb-control-accent);
    --bs-link-color-rgb: var(--sb-control-accent-rgb);
    --bs-link-hover-color: #0095a7;
    --bs-link-hover-color-rgb: 0, 149, 167;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--sb-bg);
    color: var(--sb-text);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
}

a {
    color: var(--sb-pink);
    text-decoration: none;
}

.btn-primary {
    --bs-btn-bg: var(--sb-pink);
    --bs-btn-border-color: var(--sb-pink);
    --bs-btn-hover-bg: #e9125b;
    --bs-btn-hover-border-color: #e9125b;
    --bs-btn-active-bg: #d40e52;
    --bs-btn-active-border-color: #d40e52;
    --bs-btn-disabled-bg: var(--sb-pink);
    --bs-btn-disabled-border-color: var(--sb-pink);
    box-shadow: 0 8px 16px rgba(255, 31, 109, .2);
}

.btn-outline-primary {
    --bs-btn-color: var(--sb-control-accent);
    --bs-btn-border-color: var(--sb-control-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--sb-control-accent);
    --bs-btn-hover-border-color: var(--sb-control-accent);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0095a7;
    --bs-btn-active-border-color: #0095a7;
    --bs-btn-disabled-color: var(--sb-control-accent);
    --bs-btn-disabled-border-color: var(--sb-control-accent);
    --bs-btn-focus-shadow-rgb: var(--sb-control-accent-rgb);
}

.link-primary:hover,
.link-primary:focus {
    color: rgba(var(--bs-link-hover-color-rgb), var(--bs-link-opacity, 1)) !important;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--sb-control-accent);
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--sb-control-accent);
    border-color: var(--sb-control-accent);
}

.form-check-input:focus {
    border-color: var(--sb-control-accent);
    box-shadow: 0 0 0 .25rem rgba(var(--sb-control-accent-rgb), .25);
}

/* Shared action buttons. Toolbar layout must not override these variants. */
.sb-app .btn {
    --bs-btn-font-size: 14px;
    --bs-btn-line-height: 1.4;
    --bs-btn-border-radius: 5px;
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    vertical-align: middle;
}
.sb-app .btn-sm {
    --bs-btn-font-size: 13px;
    --bs-btn-padding-x: 9px;
    --bs-btn-padding-y: 5px;
    min-height: 32px;
}
.sb-app .btn-lg {
    --bs-btn-font-size: 16px;
    --bs-btn-padding-x: 16px;
    --bs-btn-padding-y: 10px;
    min-height: 44px;
}
.sb-app .btn-outline-secondary {
    --bs-btn-color: var(--sb-text);
    --bs-btn-border-color: var(--sb-muted);
    --bs-btn-hover-color: var(--sb-heading);
    --bs-btn-hover-bg: var(--sb-surface-2);
    --bs-btn-hover-border-color: var(--sb-text);
    --bs-btn-active-color: var(--sb-heading);
    --bs-btn-active-bg: var(--sb-surface-2);
    --bs-btn-active-border-color: var(--sb-text);
    --bs-btn-disabled-color: var(--sb-muted);
    --bs-btn-disabled-border-color: var(--sb-border);
}
.sb-app .btn:focus-visible {
    outline: 2px solid var(--sb-pink);
    outline-offset: 2px;
}
.sb-app .btn:disabled,
.sb-app .btn.disabled {
    box-shadow: none;
    opacity: .55;
}
.sb-app .btn > i { flex-shrink: 0; }
.sb-app .btn.sb-icon-button { width: 38px; height: 38px; padding: 0; }
.sb-app .btn-sm.sb-icon-button { width: 32px; height: 32px; padding: 0; }
.sb-app .btn[hidden] { display: none !important; }

.form-control,
.form-select {
    color: var(--sb-text);
    background-color: var(--sb-surface);
    border-color: var(--sb-border);
    border-radius: 5px;
    min-height: 32px;
    font-size: 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sb-pink);
    box-shadow: 0 0 0 .15rem rgba(255, 31, 109, .16);
}

.flatpickr-calendar {
    z-index: 2060;
    border: 1px solid var(--sb-border);
    color: var(--sb-text);
    background: var(--sb-surface);
    box-shadow: 0 10px 28px rgba(31, 35, 51, .14);
    font-family: inherit;
}

.sb-datepicker-actions {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid var(--sb-border);
}

.sb-datepicker-actions button {
    padding: 4px 8px;
    border: 0;
    border-radius: 4px;
    color: var(--sb-text);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.sb-datepicker-actions button:hover,
.sb-datepicker-actions button:focus-visible {
    background: var(--sb-border);
}

.flatpickr-clear {
    margin: 0 0 10px 10px;
    padding: 4px 14px;
    border: 1px solid #111827;
    border-radius: 2px;
    color: #111827;
    background: #fff;
    font-size: 13px;
}

[data-bs-theme="dark"] .flatpickr-calendar,
[data-bs-theme="dark"] .flatpickr-months,
[data-bs-theme="dark"] .flatpickr-weekdays {
    color: var(--sb-text);
    background: var(--sb-surface);
    border-color: var(--sb-border);
}

[data-bs-theme="dark"] .flatpickr-day,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
[data-bs-theme="dark"] .flatpickr-current-month input.cur-year {
    color: var(--sb-text);
}

[data-bs-theme="dark"] .flatpickr-time input,
[data-bs-theme="dark"] .flatpickr-time .flatpickr-time-separator,
[data-bs-theme="dark"] .flatpickr-time .flatpickr-am-pm,
[data-bs-theme="dark"] span.flatpickr-weekday {
    color: var(--sb-text);
}

[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month {
    fill: var(--sb-text);
    color: var(--sb-text);
}

[data-bs-theme="dark"] .flatpickr-day:hover,
[data-bs-theme="dark"] .flatpickr-time input:hover,
[data-bs-theme="dark"] .flatpickr-time input:focus,
[data-bs-theme="dark"] .flatpickr-monthDropdown-months option {
    background: var(--sb-surface);
}

[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay,
[data-bs-theme="dark"] .flatpickr-day.nextMonthDay {
    color: var(--sb-muted);
    opacity: .5;
}

.sb-topbar {
    position: relative;
    z-index: 1030;
    background: var(--sb-nav);
    border-bottom: 1px solid var(--sb-border);
}

.sb-impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 20px;
    color: #fff;
    background: #8a4b00;
    border-bottom: 1px solid rgb(255 255 255 / 28%);
}

.sb-impersonation-banner form {
    margin: 0;
}

.sb-top-row {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
}

.sb-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sb-heading);
    font-size: 20px;
    white-space: nowrap;
}

.sb-brand img {
    display: block;
    width: 150px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.sb-company-brand { display: flex; justify-content: center; margin-left: auto; min-width: 0; }
.sb-company-brand[hidden] { display: none; }
.sb-company-brand img { display: block; max-width: 180px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.sb-company-logo-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--sb-border); }
.sb-company-logo-preview { display: flex; align-items: center; justify-content: center; flex: 0 1 200px; min-height: 100px; padding: 12px; border: 1px dashed var(--sb-border); border-radius: 8px; background: var(--sb-surface); color: var(--sb-muted); }
.sb-company-logo-preview img { max-width: 100%; max-height: 90px; object-fit: contain; }
.sb-company-logo-settings__controls { flex: 1 1 280px; min-width: 0; }
.sb-company-logo-settings__controls h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.sb-company-logo-settings__controls .sb-field { max-width: 560px; }
@media (max-width: 991.98px) {
    .sb-company-brand { order: 3; flex: 1 1 100%; margin-left: 0; }
    .sb-company-brand img { max-height: 36px; }
}

.sb-logo-mark,
.sb-login-logo {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 28px;
}

.sb-login-logo {
    width: 58px;
    height: 48px;
}

.sb-logo-mark i,
.sb-login-logo i {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: var(--sb-pink);
}

.sb-logo-mark i:nth-child(1),
.sb-login-logo i:nth-child(1) { width: 8px; height: 8px; left: 2px; top: 10px; }
.sb-logo-mark i:nth-child(2),
.sb-login-logo i:nth-child(2) { width: 12px; height: 12px; left: 11px; top: 3px; }
.sb-logo-mark i:nth-child(3),
.sb-login-logo i:nth-child(3) { width: 13px; height: 13px; right: 0; top: 10px; }
.sb-logo-mark i:nth-child(4),
.sb-login-logo i:nth-child(4) { width: 10px; height: 10px; left: 12px; bottom: 3px; }
.sb-logo-mark i:nth-child(5),
.sb-login-logo i:nth-child(5) { width: 8px; height: 8px; left: 0; bottom: 8px; }

.sb-logo-mark::before,
.sb-login-logo::before {
    content: "";
    position: absolute;
    inset: 9px 5px 8px;
    border-top: 4px solid var(--sb-pink);
    border-bottom: 4px solid var(--sb-pink);
    transform: skewY(-18deg);
}

.sb-login-logo-img {
    display: block;
    width: 64px;
    height: 52px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.sb-theme-icon { display: block; flex-shrink: 0; }
.sb-theme-icon--sun { display: none; }
[data-bs-theme="dark"] .sb-theme-icon--moon { display: none; }
[data-bs-theme="dark"] .sb-theme-icon--sun { display: block; }

.sb-primary-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 46px;
    padding: 6px 24px;
    overflow: visible;
    background: var(--sb-subnav);
    border-top: 1px solid color-mix(in srgb, var(--sb-border), transparent 45%);
    scrollbar-width: none;
}

.sb-primary-nav::-webkit-scrollbar {
    display: none;
}

.sb-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border-radius: 5px;
    color: var(--sb-text);
    white-space: nowrap;
    font-size: 13px;
}

.sb-nav-pill.active {
    color: #fff;
    background: var(--sb-pink);
}

.sb-nav-pill:hover {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), transparent 60%);
}

.sb-nav-group {
    position: relative;
    flex: 0 0 auto;
}

.sb-nav-group > summary {
    cursor: pointer;
    list-style: none;
}

.sb-nav-group > summary::-webkit-details-marker {
    display: none;
}

.sb-nav-group.active > summary,
.sb-nav-group[open] > summary {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), transparent 58%);
}

.sb-nav-group.active > summary {
    box-shadow: inset 0 -2px 0 var(--sb-pink);
}

.sb-nav-group[open] > summary .sb-caret {
    transform: rotate(180deg);
}

.sb-nav-group-menu {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 6px);
    left: 0;
    display: grid;
    min-width: 224px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: 0 16px 36px rgb(15 23 42 / 18%);
}

.sb-nav-group .sb-nav-group .sb-nav-group-menu {
    top: 0;
    left: calc(100% + 6px);
}

.sb-nav-group-link {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 4px;
    color: var(--sb-text);
    font-size: 13px;
}

.sb-nav-group-link:hover,
.sb-nav-group-link.active {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-pink), transparent 90%);
}

.sb-nav-group-link.active {
    color: var(--sb-pink);
    font-weight: 600;
}

.sb-caret {
    font-size: 10px;
}

.sb-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    max-width: 100%;
}

.sb-vendor-switcher {
    width: min(220px, 28vw);
    min-width: 150px;
    height: 32px;
    border-color: var(--sb-border);
    color: var(--sb-text);
    font-size: 12px;
}

.sb-vendor-chip {
    display: inline-flex;
    align-items: center;
    max-width: min(220px, 28vw);
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    color: var(--sb-text);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-bookmark-toggle].active i {
    color: var(--sb-primary);
}

.sb-saved-view-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.sb-saved-view-row .btn:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.sb-saved-view-row .btn:first-child span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-icon-btn,
.sb-mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--sb-text);
    border: 0;
}

.sb-notification {
    position: relative;
}

.sb-notification span {
    position: absolute;
    right: -3px;
    top: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    color: #fff;
    background: #ff465c;
    font-size: 9px;
    line-height: 15px;
}

.sb-notification-center {
    display: grid;
    gap: 10px;
}

.sb-notification-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--sb-border);
    border-radius: 7px;
    color: var(--sb-text);
    background: var(--sb-surface);
    text-align: left;
}

.sb-notification-card:hover,
.sb-notification-card:focus-visible {
    border-color: var(--sb-primary);
    box-shadow: var(--sb-shadow);
}

.sb-notification-card__icon {
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--sb-primary);
    background: var(--sb-surface-2);
    place-items: center;
}

.sb-notification-card__content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.sb-notification-card__content strong {
    color: var(--sb-heading);
}

.sb-notification-card__content span,
.sb-notification-card__content small {
    overflow: hidden;
    color: var(--sb-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-preferences-bottom-actions {
    position: sticky;
    z-index: 5;
    bottom: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--sb-border);
    border-radius: 7px;
    background: color-mix(in srgb, var(--sb-surface) 94%, transparent);
    box-shadow: var(--sb-shadow);
    backdrop-filter: blur(8px);
}

@media (max-width: 575.98px) {
    .sb-preferences-bottom-actions {
        bottom: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-preferences-bottom-actions .btn {
        width: 100%;
    }
}

.sb-profile-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #5168db, #1abf82);
    font-weight: 700;
    border: 0;
    overflow: hidden;
    padding: 0;
}

.sb-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-profile-avatar span {
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.sb-content {
    min-height: calc(100vh - 150px);
}

.sb-workspace {
    min-height: calc(100vh - 168px);
}

.sb-workspace-tabs {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 42px;
    padding: 6px 12px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    background: var(--sb-subnav);
    border-bottom: 1px solid var(--sb-border);
}

.sb-workspace-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    max-width: 220px;
    min-width: 132px;
    height: 36px;
    padding: 0 8px 0 10px;
    border: 1px solid var(--sb-border);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    color: var(--sb-muted);
    background: color-mix(in srgb, var(--sb-subnav) 72%, var(--sb-surface));
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.sb-workspace-tab__activate {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
}

.sb-workspace-tab__activate:focus-visible {
    border-radius: 3px;
    outline: 2px solid color-mix(in srgb, var(--sb-pink), transparent 35%);
    outline-offset: 1px;
}

.sb-workspace-tab span {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-workspace-tab.active,
.sb-workspace-tab:has(.sb-workspace-tab__activate[aria-selected="true"]) {
    z-index: 1;
    color: var(--sb-heading);
    background: var(--sb-surface);
    border-color: color-mix(in srgb, var(--sb-pink) 62%, var(--sb-border));
    border-bottom-color: var(--sb-surface);
    box-shadow: inset 0 3px 0 var(--sb-pink), 0 -3px 9px rgba(31, 24, 48, .08);
    font-weight: 700;
}

.sb-workspace-tab.active .sb-workspace-tab__activate > i,
.sb-workspace-tab:has(.sb-workspace-tab__activate[aria-selected="true"]) .sb-workspace-tab__activate > i {
    color: var(--sb-pink);
}

.sb-workspace-tab [data-tab-refresh],
.sb-workspace-tab [data-tab-close] {
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    opacity: .45;
    font-size: 11px;
}

.sb-workspace-tab [data-tab-refresh] {
    opacity: 0;
}

.sb-workspace-tab:hover [data-tab-refresh],
.sb-workspace-tab:has(.sb-workspace-tab__activate:focus-visible) [data-tab-refresh],
.sb-workspace-tab.active [data-tab-refresh] {
    opacity: .5;
}

.sb-workspace-tab [data-tab-refresh]:hover,
.sb-workspace-tab [data-tab-refresh]:focus-visible,
.sb-workspace-tab [data-tab-close]:hover,
.sb-workspace-tab [data-tab-close]:focus-visible {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), transparent 45%);
    opacity: 1;
    outline: 0;
}

.sb-workspace-tab [data-tab-close]:hover {
    color: var(--sb-pink);
    opacity: 1;
}

.sb-workspace-panel {
    display: none;
}

.sb-workspace-panel.active {
    display: block;
}

.sb-tab-loading {
    display: grid;
    place-items: center;
    min-height: 260px;
    color: var(--sb-muted);
}

.sb-page {
    padding: 18px 28px 26px;
}

.sb-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sb-page-header h1 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 26px;
}

.sb-page-subtitle {
    margin: 4px 0 0;
    color: var(--sb-muted);
}

.sb-launchpad__header,
.sb-kb-header,
.sb-candidate-create__header {
    margin-bottom: 0;
}

.sb-launchpad__header {
    align-items: center;
}

.sb-launchpad__header {
    align-items: center;
}

.sb-dashboard-placeholder {
    min-height: 520px;
}

.sb-placeholder-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 24px;
    align-items: stretch;
    min-height: 420px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
    overflow: hidden;
}

.sb-placeholder-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.sb-placeholder-copy h1 {
    max-width: 660px;
    margin: 0 0 14px;
    color: var(--sb-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.sb-placeholder-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--sb-muted);
    font-size: 15px;
    line-height: 1.7;
}

.sb-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--sb-primary), var(--sb-border) 62%);
    border-radius: 999px;
    color: var(--sb-primary);
    background: color-mix(in srgb, var(--sb-primary), transparent 92%);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-placeholder-status {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 34px;
    border-left: 1px solid var(--sb-border);
    background: color-mix(in srgb, var(--sb-primary), var(--sb-surface) 94%);
}

.sb-placeholder-status div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    color: var(--sb-heading);
    background: var(--sb-surface);
    font-weight: 600;
}

.sb-placeholder-status i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    background: var(--sb-primary);
    font-size: 11px;
}

.sb-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.sb-form-header p {
    margin: 0;
    color: var(--sb-muted);
}

.sb-form-tabs {
    gap: 8px;
    margin-bottom: 14px;
}

.sb-form-tabs .nav-link {
    color: var(--sb-text);
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
}

.sb-form-tabs .nav-link.active {
    color: #fff;
    background: var(--sb-pink);
    border-color: var(--sb-pink);
}

.sb-form-card {
    padding: 22px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.sb-legacy-commandbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    min-height: 64px;
    margin: -18px -28px 30px;
    padding: 0 38px;
    border-top: 1px solid var(--sb-border);
    background: color-mix(in srgb, var(--sb-pink), var(--sb-surface) 92%);
    overflow: visible;
}

.sb-legacy-commandbar button:not(.btn),
.sb-legacy-commandbar label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    border: 0;
    color: var(--sb-text);
    background: transparent;
    white-space: nowrap;
    font-size: 15px;
}

.sb-legacy-commandbar .sb-command-dropdown {
    display: inline-flex;
    flex: 0 0 auto;
}

.sb-active-list-card {
    padding: 34px 14px 28px;
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.sb-active-list-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 26px;
}

.sb-active-list-card h1 {
    margin: 0;
    color: color-mix(in srgb, var(--sb-heading), var(--sb-muted) 35%);
    font-size: 22px;
    font-weight: 700;
}

.sb-active-list-card h1 i {
    margin-right: 4px;
    color: var(--sb-pink);
    font-size: 16px;
}

.sb-table-search {
    position: relative;
    display: block;
}

.sb-table-search i {
    position: absolute;
    right: 14px;
    top: 50%;
    color: #15151d;
    transform: translateY(-50%);
}
[data-bs-theme="dark"] .sb-table-search i {
    color: var(--sb-text);
}

.sb-table-search .form-control {
    padding-right: 42px;
}

.sb-active-list-length {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--sb-text);
}

.sb-active-list-length .form-select {
    width: 100px;
    min-height: 38px;
}

.sb-active-search-table {
    min-width: 1120px;
    border: 1px solid var(--sb-border);
}

.sb-active-search-table th {
    height: 62px;
    border-color: var(--sb-border);
    color: var(--sb-heading);
    background: var(--sb-surface);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sb-active-search-table th .sb-link-button,
.sb-active-search-table th .sb-active-search-column-label {
    color: #00609a;
    font: inherit;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.sb-active-search-table th i {
    float: right;
    color: var(--sb-muted);
}

.sb-active-search-table td {
    height: 58px;
    border-color: var(--sb-border);
    color: var(--sb-text);
    font-weight: 700;
}

.sb-active-search-table td:not(:nth-child(2)) {
    text-align: center;
}


.sb-active-total-row td {
    color: var(--sb-pink);
    background: color-mix(in srgb, var(--sb-border), transparent 74%);
    font-weight: 800;
}

.sb-active-row-pink td {
    background: #fff7f8;
}

.sb-active-row-green td {
    background: #f4fffa;
}

.sb-active-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.sb-active-outreach-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    gap: 5px;
    min-height: 28px;
    padding: 2px 6px;
    font-size: 12px;
}

.sb-active-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.sb-active-status.success {
    background: #22c86b;
}

.sb-active-status.warning {
    background: #ff9a24;
}

.sb-active-status.danger {
    background: #e60000;
}

.sb-form-card + .sb-form-card {
    margin-top: 16px;
}

.sb-form-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-match-groups {
    display: grid;
    gap: 16px;
}

.sb-match-group {
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--sb-surface), var(--sb-bg) 22%);
    overflow: hidden;
}

.sb-match-group header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sb-border);
    background: var(--sb-surface);
}

.sb-match-group h3 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 15px;
}

.sb-match-group p {
    margin: 3px 0 0;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-match-group header span {
    display: inline-grid;
    place-items: center;
    align-self: flex-start;
    min-width: 32px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    background: var(--sb-pink);
    font-weight: 700;
}

.sb-match-list {
    display: grid;
}

.sb-match-list button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    align-items: center;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--sb-border);
    color: var(--sb-text);
    background: transparent;
    text-align: left;
}

.sb-match-list button:last-child {
    border-bottom: 0;
}

.sb-match-list button:hover {
    background: color-mix(in srgb, var(--sb-pink), transparent 93%);
}

.sb-match-list strong {
    color: var(--sb-heading);
}

.sb-match-list em {
    color: var(--sb-muted);
    font-style: normal;
    font-size: 12px;
}

.sb-match-list i {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--sb-pink);
}

.sb-active-search-detail {
    display: grid;
    gap: 14px;
}

.sb-active-search-record {
    padding-top: 12px;
}

.sb-active-record-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sb-active-record-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--sb-border); border-radius: 10px; background: var(--sb-surface); }
.sb-active-record-identity { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.sb-active-record-summary h1 { font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--sb-heading); }
.sb-active-record-meta { display: flex; flex: 1 0 100%; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: .8rem; }
.sb-active-record-summary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-active-record-summary-actions .btn { min-height: 40px; }

.sb-active-search-record [data-active-search-title],
.sb-active-search-record [data-active-results-heading] {
    scroll-margin-top: 100px;
}

.sb-active-record-sidebar {
    padding: 16px;
    border: 1px solid var(--sb-border);
    border-radius: 10px;
    background: var(--sb-surface);
    min-width: 0;
    overflow-wrap: anywhere;
}

.sb-active-record-sidebar section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sb-border);
}
.sb-active-record-sidebar section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sb-active-sidebar-disclosure { margin-top: 12px; border-top: 1px solid var(--sb-border); }
.sb-active-sidebar-disclosure > summary { padding: 12px 0; min-height: 44px; color: var(--sb-heading); font-size: .875rem; font-weight: 600; cursor: pointer; }
.sb-active-sidebar-disclosure > summary:focus-visible { outline: 2px solid var(--sb-pink); outline-offset: 2px; }
.sb-active-sidebar-disclosure > div { padding-bottom: 4px; }
.sb-active-record-sidebar strong { color: var(--sb-heading); font-weight: 600; }
.sb-active-record-sidebar .sb-active-location-edit { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--sb-text); }

.sb-active-record-sidebar h3 {
    margin: 0 0 12px;
    color: var(--sb-heading);
    font-size: .9rem;
    font-weight: 600;
}

.sb-active-record-sidebar p {
    margin-bottom: 8px;
    font-size: .8125rem;
    line-height: 1.6;
}

.sb-active-record-main {
    display: grid;
    gap: 6px;
    min-width: 0;
    align-content: start;
}

.sb-active-record-section {
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-surface);
    min-width: 0;
    position: relative;
}

.sb-active-record-section:has(> [data-public-job-copy]) > [data-detail-accordion] > span:first-child {
    padding-right: 132px;
}
.sb-active-record-section > .sb-public-job-copy {
    position: absolute;
    top: 2px;
    right: 90px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--sb-text);
    font-size: 13px;
}
.sb-active-record-section > .sb-public-job-copy:hover {
    background: var(--sb-surface-2);
    color: var(--sb-pink);
}
.sb-active-record-section:not(:has(> .sb-active-section-edit)) > .sb-public-job-copy {
    right: 46px;
}

.sb-active-industries-section { position: relative; }
.sb-active-record-section > .sb-active-industries-edit,
.sb-active-record-section > .sb-active-section-edit {
    position: absolute;
    top: 2px;
    right: 46px;
    width: 40px;
    min-height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--sb-text);
}
.sb-active-section-edit:hover, .sb-active-industries-edit:hover, .sb-active-location-edit:hover { background: var(--sb-surface-2); color: var(--sb-pink); }

.sb-active-record-section > [data-detail-accordion] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: 8px;
    color: var(--sb-heading);
    background: transparent;
    text-align: left;
    font-size: .9rem;
    font-weight: 600;
}
.sb-active-record-section > [data-detail-accordion] > span:first-child { padding-right: 46px; min-width: 0; overflow-wrap: anywhere; }
.sb-active-record-section.open > [data-detail-accordion] { background: var(--sb-bg); border-radius: 8px 8px 0 0; border-bottom: 1px solid var(--sb-border); }
.sb-active-record-section > button:focus-visible { outline: 2px solid var(--sb-pink); outline-offset: -3px; }

.sb-active-record-section > [data-detail-accordion] span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--sb-text);
}

.sb-active-record-section > div {
    display: none;
    padding: 12px 16px;
    font-size: .875rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    min-width: 0;
}
.sb-active-record-section > div > :last-child { margin-bottom: 0; }
.sb-active-record-section > div img { max-width: 100%; height: auto; }
.sb-active-record-section > div { overflow-x: auto; }

.sb-active-record-section.open > div {
    display: block;
}

.sb-active-record-section:not(.open) > button .fa-chevron-down {
    transform: rotate(-90deg);
}

@media (max-width: 767px) {
    .sb-active-record-summary { padding: 12px; gap: 8px; }
    .sb-active-record-summary-actions { width: 100%; }
    .sb-active-record-summary-actions .btn { flex: 1 1 auto; }
    .sb-active-record-sidebar { padding: 16px; }
    .sb-active-record-section > [data-detail-accordion] { padding-inline: 16px; }
    .sb-active-record-section > div { padding: 16px; }
}

.sb-active-record-results {
    margin-top: 16px;
    background: var(--sb-surface);
}

.sb-active-record-results > header {
    background: var(--sb-surface);
}

.sb-active-record-results .sb-active-results-toolbar {
    color: var(--sb-text);
    background: var(--sb-surface);
    border-block: 1px solid var(--sb-border);
    gap: 6px 10px;
    position: relative;
    z-index: 4;
    overflow: visible;
    flex-wrap: wrap;
}

.sb-active-record-results .sb-active-results-toolbar button:not(.btn),
.sb-active-record-results .sb-active-results-toolbar label {
    color: var(--sb-text);
}

.sb-active-record-results .sb-active-results-toolbar .dropdown-menu {
    z-index: 1080;
}

[data-active-search-activity-modal] .ck-editor__editable {
    min-height: 10rem;
}

[data-active-search-criteria-modal] .modal-body,
[data-active-search-criteria-modal] .sb-form-grid,
[data-active-search-criteria-modal] .sb-field,
[data-active-search-criteria-modal] .ck.ck-editor,
[data-active-search-criteria-modal] .ck.ck-toolbar,
[data-active-search-criteria-modal] .ck.ck-toolbar__items {
    min-width: 0;
    max-width: 100%;
}

[data-active-search-criteria-modal] .ck.ck-toolbar__items {
    flex-wrap: wrap;
}

[data-active-search-move-modal] .modal-dialog {
    width: calc(100% - 2rem);
}

[data-active-search-move-modal] .modal-content,
[data-active-search-move-modal] .modal-body,
[data-active-search-move-modal] [data-active-search-interview-fields],
[data-active-search-move-modal] .row,
[data-active-search-move-modal] [class*="col-"],
[data-active-search-move-modal] .ck.ck-editor,
[data-active-search-move-modal] .ck.ck-toolbar,
[data-active-search-move-modal] .ck.ck-toolbar__items {
    min-width: 0;
    max-width: 100%;
}

[data-active-search-move-modal] .ck.ck-toolbar__items {
    flex-wrap: wrap;
}

.sb-active-intake-results {
    max-height: 22rem;
    overflow-y: auto;
    background: var(--sb-surface);
}

.sb-active-intake-results > label:last-child {
    border-bottom: 0 !important;
}

.sb-active-record-results .sb-active-results-toolbar > button:not(.btn),
.sb-active-record-results .sb-active-results-toolbar > label,
.sb-active-record-results .sb-active-results-toolbar > .dropdown > button:not(.btn) {
    min-height: 34px;
    padding: 6px 8px;
    margin-block: 0;
    border-radius: 4px;
    line-height: 1.4;
}
.sb-active-record-results .sb-active-results-toolbar > button:not(.btn):not(:disabled):hover,
.sb-active-record-results .sb-active-results-toolbar > .dropdown > button:not(.btn):hover {
    background: var(--sb-surface-2);
}
.sb-active-record-results .sb-active-results-toolbar button:not(.btn):focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 2px;
}
.sb-active-record-results .sb-active-results-toolbar > button:not(.btn):disabled { opacity: .5; cursor: not-allowed; }
.sb-active-record-results .sb-active-results-toolbar > .sb-results-activity-link {
    margin-inline-start: auto;
}
.sb-active-record-results .sb-active-results-toolbar .dropdown-menu {
    width: 26rem;
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    padding: 6px;
    border-color: var(--sb-border);
    border-radius: 6px;
}
.sb-active-record-results .sb-active-results-toolbar .dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    text-align: start;
}
.sb-active-record-results .sb-active-results-toolbar .dropdown-item > i {
    flex: 0 0 18px;
    width: 18px;
    margin: 2px 0 0 !important;
    text-align: center;
}
.sb-active-record-results .sb-active-results-toolbar .dropdown-item:not(:has(> i)) {
    padding-inline-start: 38px;
}

.sb-email-composer-dialog { --bs-modal-width: 1000px; }
.sb-sms-composer-dialog { --bs-modal-width: 800px; }
:is(.sb-email-composer, .sb-sms-composer) .modal-header,
:is(.sb-email-composer, .sb-sms-composer) .modal-footer { padding: 16px 24px; flex-shrink: 0; }
:is(.sb-email-composer-heading, .sb-sms-composer-heading) { display: flex; align-items: center; gap: 12px; min-width: 0; }
:is(.sb-email-composer-heading, .sb-sms-composer-heading) > div { min-width: 0; overflow-wrap: anywhere; }
:is(.sb-email-composer-heading, .sb-sms-composer-heading) .modal-title { font-weight: 600; margin-bottom: 4px; }
:is(.sb-email-composer-icon, .sb-sms-composer-icon) {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--sb-primary, #ff1478);
    background: var(--sb-bg);
}
:is(.sb-email-composer-body, .sb-sms-composer-body) { display: grid; gap: 18px; padding: 20px 24px; }
:is(.sb-email-composer-body, .sb-sms-composer-body) > * { min-width: 0; }
:is(.sb-email-composer, .sb-sms-composer) .form-label { font-size: 14px; font-weight: 600; }
:is(.sb-email-composer-recipient-section, .sb-sms-composer-recipient-section) {
    padding: 14px;
    background: var(--sb-bg);
    border: 1px solid var(--sb-border);
    border-radius: 8px;
}
:is(.sb-email-composer, .sb-sms-composer) .sb-active-outreach-recipients { max-height: 112px; }
:is(.sb-email-composer-variables, .sb-sms-composer-variables) { border-block: 1px solid var(--sb-border); padding-block: 14px; }
.sb-email-composer-variables .form-check { margin-bottom: 10px; }
.sb-sms-variable-chips, .sb-email-variable-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 120px; overflow-y: auto; padding: 3px; }
:is(.sb-email-variable-chips, .sb-sms-variable-chips) .btn { font-size: 12px; border-radius: 6px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.sb-email-composer .ck-editor { min-width: 0; max-width: 100%; }
.sb-email-composer .ck.ck-editor__main > .ck-editor__editable { min-height: 240px; max-height: 400px; overflow-wrap: anywhere; }
.sb-email-composer .select2-container { max-width: 100%; }
.sb-email-composer-attachments { padding-top: 14px; border-top: 1px solid var(--sb-border); }
.sb-sms-composer .form-label { display: block; margin-bottom: 8px; }
.sb-sms-composer .form-label :is(select, textarea, input) { margin-top: 8px; }
.sb-sms-composer-message textarea { min-height: 200px; resize: vertical; }
.sb-sms-message-help { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.sb-sms-message-help [data-sms-character-count] { margin-inline-start: auto; white-space: nowrap; }
.sb-sms-composer-schedule { min-width: 0; border: 1px solid var(--sb-border); border-radius: 8px; padding: 14px; }
.sb-sms-composer-schedule legend { float: none; width: auto; padding-inline: 4px; }
.sb-sms-composer-consent { padding-top: 12px; border-top: 1px solid var(--sb-border); }
@media (max-width: 575.98px) {
    :is(.sb-email-composer, .sb-sms-composer) .modal-header, :is(.sb-email-composer, .sb-sms-composer) .modal-footer { padding: 12px 16px; }
    :is(.sb-email-composer-body, .sb-sms-composer-body) { padding: 16px; gap: 16px; }
    :is(.sb-email-composer-icon, .sb-sms-composer-icon) { flex-basis: 32px; height: 32px; }
    .sb-email-composer .ck.ck-editor__main > .ck-editor__editable { min-height: 200px; }
    :is(.sb-email-composer-delivery-note, .sb-sms-composer-delivery-note) { flex: 0 0 100%; }
}

.sb-active-outreach-recipients {
    max-height: 13rem;
    overflow-y: auto;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
}

.sb-active-outreach-recipients > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--sb-border);
}

.sb-active-outreach-recipients > div:last-child {
    border-bottom: 0;
}

.sb-active-outreach-recipients span:first-child {
    min-width: 0;
}

.sb-active-outreach-recipients strong,
.sb-active-outreach-recipients small {
    display: block;
    overflow-wrap: anywhere;
}

.sb-active-outreach-recipients small {
    margin-top: 0.15rem;
    color: var(--sb-muted);
}

.sb-active-outreach-recipients.is-invalid {
    border-color: var(--bs-form-invalid-border-color);
}

.sb-active-outreach-recipients.is-invalid + .invalid-feedback {
    display: block;
}

.sb-active-outreach-header .sb-eyebrow {
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-active-campaign-band,
.sb-active-email-history {
    border: 1px solid var(--sb-border);
    background: var(--sb-surface);
}

.sb-active-outreach-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-active-outreach-section-title h3,
.sb-active-campaign-modal h3,
.sb-active-campaign-step h4 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 14px;
    font-weight: 700;
}

.sb-active-outreach-section-title p,
.sb-active-campaign-modal section header p,
.sb-active-campaign-stop-rules p,
.sb-active-campaign-step header p {
    margin: 3px 0 0;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-active-campaign-table td:first-child strong,
.sb-active-campaign-table td:first-child small {
    display: block;
    min-width: 12rem;
}

.sb-active-campaign-table td:first-child small,
.sb-active-campaign-table td small {
    margin-top: 3px;
    color: var(--sb-muted);
    font-size: 11px;
}

.sb-active-campaign-progress {
    width: 110px;
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: color-mix(in srgb, var(--sb-border), transparent 25%);
}

.sb-active-campaign-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--sb-accent);
}

.sb-active-campaign-modal .modal-body {
    display: grid;
    gap: 20px;
    padding: 20px;
}

.sb-active-campaign-recipients,
.sb-active-campaign-builder,
.sb-active-campaign-stop-rules {
    border-top: 1px solid var(--sb-border);
    padding-top: 18px;
}

.sb-active-campaign-recipients > header,
.sb-active-campaign-builder > header,
.sb-active-campaign-stop-rules {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.sb-active-campaign-recipients > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.sb-active-campaign-recipients > div > label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--sb-border);
    border-radius: 4px;
    background: color-mix(in srgb, var(--sb-surface), var(--sb-bg) 30%);
}

.sb-active-campaign-recipients > div > label > .form-check-input {
    margin-top: 0.2rem;
}

.sb-active-campaign-recipients strong,
.sb-active-campaign-recipients small {
    display: block;
    overflow-wrap: anywhere;
}

.sb-active-campaign-recipients small {
    margin-top: 2px;
    color: var(--sb-muted);
}

.sb-active-campaign-builder > [data-active-campaign-steps] {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.sb-active-campaign-step {
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
}

.sb-active-campaign-step > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--sb-border);
    background: color-mix(in srgb, var(--sb-bg), var(--sb-surface) 35%);
}

.sb-active-campaign-step > header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-active-campaign-step > header > div > span {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--sb-accent);
    font-size: 12px;
    font-weight: 700;
}

.sb-active-campaign-step > .sb-form-grid {
    padding: 14px;
}

.sb-active-campaign-stop-rules > div:last-child {
    display: grid;
    gap: 8px;
    min-width: min(100%, 360px);
}

@media (max-width: 767.98px) {
    .sb-active-outreach-header,
    .sb-active-outreach-section-title,
    .sb-active-campaign-recipients > header,
    .sb-active-campaign-builder > header,
    .sb-active-campaign-stop-rules {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-active-outreach-header > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr auto;
        gap: 8px !important;
    }

    .sb-active-campaign-stop-rules > div:last-child {
        min-width: 0;
    }
}

.sb-active-shortlist-table tr.active td {
    background: color-mix(in srgb, var(--sb-pink), transparent 88%);
}

.sb-active-candidate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.sb-active-candidate-card {
    border: 1px solid var(--sb-border);
    background: var(--sb-surface);
}

.sb-active-candidate-card header {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 26px;
    padding: 18px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-active-candidate-card h2 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 20px;
    font-weight: 700;
}

.sb-active-candidate-card article {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-active-candidate-card article:last-child {
    border-bottom: 0;
}

.sb-active-candidate-card h3 {
    margin: 0 0 8px;
    color: var(--sb-heading);
    font-size: 14px;
    font-weight: 800;
}

.sb-active-candidate-card p {
    margin: 0 0 8px;
}

.sb-active-screening {
    background: color-mix(in srgb, var(--sb-surface), var(--sb-border) 18%);
    border-left: 3px solid #0f8b8d;
    padding: 18px 20px;
}

.sb-active-screening > header,
.sb-active-screening-footer,
.sb-active-screening-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.sb-active-screening > header h3,
.sb-active-screening > header p {
    margin: 0;
}

.sb-active-screening-score {
    align-items: center;
    display: flex;
    gap: 10px;
}

.sb-active-screening-score > strong {
    color: var(--sb-heading);
    font-size: 20px;
}

.sb-active-screening-recommendation {
    color: var(--sb-heading);
}

.sb-active-screening-evidence-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0;
}

.sb-active-screening-evidence {
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    padding: 12px 14px;
}

.sb-active-screening-evidence.is-strength {
    border-top: 3px solid #238636;
}

.sb-active-screening-evidence.is-gap {
    border-top: 3px solid #d97706;
}

.sb-active-screening-evidence ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

@media (max-width: 767.98px) {
    .sb-active-screening-evidence-grid {
        grid-template-columns: 1fr;
    }

    .sb-active-screening > header,
    .sb-active-screening-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

.sb-active-activity {
    margin-top: 20px;
    border: 1px solid var(--sb-border);
}

.sb-active-activity header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 46px;
    padding: 0 18px;
    background: color-mix(in srgb, var(--sb-pink), var(--sb-surface) 88%);
}

.sb-active-activity h2 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 16px;
    font-weight: 800;
}

.sb-active-activity-controls {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
}

.sb-active-activity-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sb-active-activity-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--sb-border);
    background: var(--sb-surface);
}

.sb-active-activity-toolbar > label {
    display: grid;
    gap: 4px;
    min-width: min(280px, 100%);
    color: var(--sb-muted);
    font-size: 12px;
    font-weight: 700;
}

.sb-active-activity-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sb-active-activity-table {
    min-width: 760px;
    margin-bottom: 0;
}

.sb-active-activity-table th {
    color: #fff;
    background: #282941;
    font-size: 12px;
}

.sb-active-activity-table th button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
}

.sb-active-activity-table th button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.sb-active-activity-table td {
    border-color: var(--sb-border);
    font-size: 12px;
}

.sb-section-editor .modal-dialog { --bs-modal-width: 960px; }
.sb-edit-section-modal { padding: 0; }
.sb-edit-section-modal .modal-title { margin: 0; }
.sb-edit-section-modal .form-label { color: var(--sb-heading); font-weight: 600; }
.sb-edit-section-modal textarea { min-height: 126px; line-height: 1.6; }
.sb-edit-section-modal .sb-section-expression {
    padding: 16px;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-bg);
}
.sb-edit-section-modal .sb-section-expression textarea { background: var(--bs-body-bg, #fff); }
.sb-edit-section-modal .sb-section-expression .form-check-label { font-weight: 400; }
.sb-edit-section-modal .sb-section-title-options summary { color: var(--sb-muted); cursor: pointer; }
.sb-edit-section-modal .sb-section-provider { color: var(--sb-muted); }
.sb-edit-section-modal .sb-section-provider legend { font-weight: 600; }
.sb-edit-section-modal [data-active-section-generation-status]:empty { display: none; }
.sb-edit-section-modal .modal-body .btn { max-width: 100%; white-space: normal; }

.sb-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.sb-active-criteria-modal .modal-body {
    padding: 0;
}

.sb-active-criteria-modal .modal-header,
.sb-active-criteria-modal .modal-footer {
    padding: 16px 20px;
}

.sb-active-criteria-modal [data-active-search-refine-error] {
    margin: 18px 20px 0;
}

.sb-active-criteria-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-active-criteria-section > header {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.sb-active-criteria-section > header > span {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #fff;
    background: var(--sb-heading);
    font-size: 11px;
    font-weight: 800;
    place-items: center;
}

.sb-active-criteria-section h3,
.sb-active-criteria-publishing h3 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 14px;
    letter-spacing: 0;
}

.sb-active-criteria-section header p {
    margin: 4px 0 0;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-active-criteria-section textarea {
    min-height: 132px;
}

.sb-active-criteria-checks {
    display: grid;
    align-content: center;
    gap: 10px;
    padding-top: 20px;
}

.sb-active-criteria-publishing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
}

.sb-active-criteria-publishing > div {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 900px) {
    .sb-active-criteria-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sb-active-criteria-section .sb-form-grid,
    .sb-active-criteria-publishing {
        grid-template-columns: 1fr;
    }

    .sb-active-criteria-publishing {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Refine Search: keep related controls together without reserving an empty label rail. */
.sb-active-criteria-section > header {
    align-items: flex-start;
}

.sb-active-criteria-section > header h3 {
    font-size: 15px;
    font-weight: 700;
}

.sb-active-criteria-section header p {
    max-width: 76ch;
    line-height: 1.6;
}

.sb-active-criteria-modal .sb-field > span {
    font-size: 13px;
}

.sb-active-criteria-modal .sb-field small {
    display: block;
    margin-top: 6px;
    color: var(--sb-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sb-refine-location,
.sb-refine-geography {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.sb-search-remote {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
}

.sb-search-remote small {
    max-width: 72ch;
    font-size: 12px;
    line-height: 1.5;
}

.sb-refine-location-columns,
.sb-refine-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    min-width: 0;
}

.sb-refine-dates {
    gap: 12px;
}

.sb-refine-client-dates {
    padding-top: 16px;
    border-top: 1px solid var(--sb-border);
}

.sb-active-criteria-modal .select2-container--default .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
}

.sb-active-criteria-modal .select2-selection--multiple .select2-selection__rendered {
    margin: 0;
    max-width: 100%;
}

.sb-active-criteria-modal .select2-container--default .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    flex: 1 1 80px;
    width: auto;
}

.sb-active-criteria-modal .select2-search--inline .select2-search__field {
    min-height: 24px;
    margin: 0;
}

.sb-active-criteria-modal .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: var(--sb-heading);
    border-color: var(--sb-border);
    background: var(--sb-surface-2);
}

.sb-active-criteria-modal .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--sb-heading);
}

.sb-refine-draft-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-bg);
}

.sb-refine-draft-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sb-refine-draft-heading > div {
    min-width: 0;
}

.sb-refine-draft-heading h4 {
    margin: 0 0 5px;
    color: var(--sb-heading);
    font-size: 14px;
    font-weight: 700;
}

.sb-refine-draft-heading p {
    margin: 0;
    color: var(--sb-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sb-refine-draft-heading .btn {
    flex: 0 0 auto;
}

.sb-active-criteria-modal textarea[name="search_expression"] {
    min-height: 96px;
    line-height: 1.6;
}

.sb-active-criteria-modal .modal-footer {
    gap: 8px;
    background: var(--sb-surface);
}

@media (max-width: 900px) {
    .sb-refine-location-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 540px) {
    .sb-active-criteria-section {
        padding: 20px 16px;
    }

    .sb-refine-dates {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-refine-draft-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-refine-draft-panel {
        padding: 14px;
    }
}

.sb-agency-modal {
    position: relative;
    border: 0;
    border-radius: 6px;
    padding: 52px 64px 46px;
}

.sb-agency-modal .btn-close {
    position: absolute;
    right: -14px;
    top: -14px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #fff;
    opacity: 1;
}

.sb-agency-modal h2 {
    margin: 0 0 28px;
    color: var(--sb-heading);
    text-align: center;
    font-size: 24px;
    font-weight: 800;
}

.sb-agency-modal label {
    display: grid;
    gap: 8px;
    color: var(--sb-text);
}

.sb-agency-toggle {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.sb-agency-toggle .form-check-input {
    width: 38px;
    height: 20px;
    margin: 0;
    background-color: var(--sb-pink);
    border-color: var(--sb-pink);
}

.sb-record-tabs {
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-record-tabs .nav-link {
    min-height: 36px;
    border-radius: 4px;
    color: var(--sb-text);
    font-weight: 700;
    font-size: 12px;
}

.sb-record-tabs .nav-link.active {
    color: #fff;
    background: #ff5366;
}

.sb-active-search-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr) minmax(280px, .8fr);
    gap: 20px;
    align-items: start;
}

.sb-active-search-hero h1 {
    margin: 0 0 8px;
    color: var(--sb-heading);
    font-size: 20px;
}

.sb-active-search-hero h1 span {
    color: #176b66;
}

.sb-active-search-hero p {
    margin: 0;
}

.sb-danger-line {
    color: #ff0000;
    font-weight: 800;
}

.sb-active-search-hero dl,
.sb-info-panel dl {
    display: grid;
    gap: 2px;
    margin: 0;
}

.sb-active-search-hero dl div,
.sb-info-panel dl div {
    display: flex;
    gap: 4px;
}

.sb-active-search-hero dt,
.sb-info-panel dt {
    color: var(--sb-heading);
    font-weight: 800;
}

.sb-active-search-hero dd,
.sb-info-panel dd {
    margin: 0;
}

.sb-active-search-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.sb-active-search-actions strong {
    flex-basis: 100%;
    color: #00b000;
    text-align: right;
}

.sb-detail-accordion {
    display: grid;
    gap: 8px;
}

.sb-detail-accordion article,
.sb-info-panel {
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    background: var(--sb-surface);
    overflow: hidden;
}

.sb-detail-accordion article > button,
.sb-info-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), transparent 62%);
    font-weight: 800;
    text-align: left;
}

.sb-detail-accordion article > div {
    display: none;
    padding: 12px;
}

.sb-detail-accordion article.open > div {
    display: block;
}

.sb-detail-accordion article.open > button i {
    transform: rotate(90deg);
}

.sb-info-panel {
    min-height: 100px;
}

.sb-info-panel header h2 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 16px;
}

.sb-info-panel header h2 span {
    margin-left: 10px;
    color: var(--sb-text);
    font-size: 13px;
    font-weight: 500;
}

.sb-info-panel header button {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #ff5366;
}

.sb-info-panel > p,
.sb-info-panel > dl,
.sb-expression-block,
.sb-work-entry {
    margin: 0;
    padding: 12px;
}

.sb-expression-block {
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    margin: 10px;
}

.sb-expression-block h3 {
    margin: -12px -12px 10px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--sb-border), transparent 70%);
    color: var(--sb-heading);
    font-size: 15px;
}

.sb-expression-block h3 em {
    color: var(--sb-text);
    font-style: italic;
    font-weight: 500;
}

.sb-info-panel mark,
.sb-active-candidate-preview mark {
    padding: 0 2px;
    background: #fff200;
}

.sb-active-search-summary-grid {
    display: grid;
    grid-template-columns: minmax(260px, .95fr) minmax(0, 1.9fr);
    gap: 14px;
}

.sb-active-search-summary-grid > div {
    display: grid;
    align-content: start;
    gap: 14px;
}

.sb-active-results {
    display: grid;
    gap: 8px;
}

.sb-active-results > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    background: color-mix(in srgb, var(--sb-border), transparent 35%);
}

.sb-active-results > header h2 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 16px;
}

.sb-active-outreach-disclosure { margin-bottom: 16px; }
.sb-active-outreach-disclosure > header { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
.sb-active-outreach-disclosure [data-active-outreach-panel] { padding: 16px; }
.sb-active-outreach-disclosure [data-active-outreach-toggle] { min-width: 32px; min-height: 32px; }
.sb-active-outreach-disclosure button:focus-visible { outline: 2px solid var(--sb-pink); outline-offset: 3px; }

.sb-active-results > header button {
    border: 0;
    color: var(--sb-muted);
    background: transparent;
}

.sb-active-results > header button .fa-chevron-down {
    transition: transform .2s ease;
}

.sb-active-record-results.is-collapsed > :not(header) {
    display: none;
}

.sb-active-record-results.is-collapsed > header button .fa-chevron-down {
    transform: rotate(-90deg);
}

.sb-active-results-toolbar {
    display: flex;
    align-items: center;
    gap: 8px 22px;
    min-height: 54px;
    padding: 8px 14px;
    color: #fff;
    background: #315f59;
    overflow-x: auto;
}

.sb-active-results-toolbar > * {
    flex: 0 0 auto;
}

.sb-active-results-toolbar button:not(.btn),
.sb-active-results-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    color: #fff;
    background: transparent;
    white-space: nowrap;
}

.sb-active-results-toolbar [data-active-result-selection-count] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d92323;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    color: #fff;
}

.sb-active-results-toolbar [data-active-result-selection-count][hidden] {
    display: none;
}

.sb-active-results-grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.9fr);
    gap: 14px;
    min-width: 0;
}

.sb-active-result-groups {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}

.sb-active-result-groups > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    border: 0;
    border-bottom: 1px solid var(--sb-border);
    color: var(--sb-text);
    background: transparent;
}

.sb-active-result-groups > button::before {
    content: "\f105";
    margin-right: 6px;
    color: var(--sb-heading);
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
}

.sb-active-result-groups > button.active::before {
    content: "\f107";
}

.sb-active-result-list {
    display: block;
    min-width: 0;
    max-width: 100%;
}

.sb-active-shortlist-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.sb-active-shortlist-scroll:focus-visible {
    outline: 2px solid var(--sb-pink);
    outline-offset: 2px;
}

.sb-active-result-list:empty,
.sb-active-result-groups > [data-partner-status]:empty {
    display: none;
}

.sb-active-result-groups > button span {
    flex: 1;
    text-align: left;
}

.sb-active-shortlist-table {
    width: 100%;
    min-width: 360px;
    margin-top: 8px;
    border: 1px solid var(--sb-border);
    font-size: 13px;
}

.sb-active-shortlist-table th,
.sb-active-shortlist-table td {
    vertical-align: middle;
}

.sb-active-shortlist-table th:nth-child(3),
.sb-active-shortlist-table td:nth-child(3),
.sb-active-shortlist-table th:nth-child(4),
.sb-active-shortlist-table td:nth-child(4),
.sb-active-shortlist-table th:nth-child(5),
.sb-active-shortlist-table td:nth-child(5) {
    white-space: nowrap;
}

/* Older open tabs may still render the former numeric diamond count. */
.sb-active-shortlist-table tbody td:nth-child(3) > span.me-1 { display: none; }

.sb-active-shortlist-table th:first-child,
.sb-active-shortlist-table td:first-child {
    width: 36px;
}

.sb-active-shortlist-table th:nth-child(2),
.sb-active-shortlist-table td:nth-child(2) {
    min-width: 140px;
    overflow-wrap: anywhere;
}

.sb-active-shortlist-table thead .sb-link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font: inherit;
    white-space: nowrap;
}

.sb-active-shortlist-table thead .sb-link-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.sb-active-shortlist-table thead th {
    color: #fff;
    background: #ff5366;
    border-color: #ff5366;
}

[data-bs-theme="dark"] .sb-active-search-page .form-control,
[data-bs-theme="dark"] .sb-active-search-page .form-select,
[data-bs-theme="dark"] .sb-active-search-detail .form-control,
[data-bs-theme="dark"] .sb-active-search-detail .form-select,
[data-bs-theme="dark"] .sb-active-search-detail .input-group-text {
    color: var(--sb-text);
    border-color: var(--sb-border);
    background: var(--sb-surface-2);
}

[data-bs-theme="dark"] .sb-active-search-table,
[data-bs-theme="dark"] .sb-active-search-table th,
[data-bs-theme="dark"] .sb-active-search-table td,
[data-bs-theme="dark"] .sb-active-shortlist-table,
[data-bs-theme="dark"] .sb-active-shortlist-table th,
[data-bs-theme="dark"] .sb-active-shortlist-table td,
[data-bs-theme="dark"] .sb-active-activity-table th,
[data-bs-theme="dark"] .sb-active-activity-table td,
[data-bs-theme="dark"] .sb-active-campaign-table th,
[data-bs-theme="dark"] .sb-active-campaign-table td {
    color: var(--sb-text);
    border-color: var(--sb-border);
    background: var(--sb-surface);
}

[data-bs-theme="dark"] .sb-active-search-table th,
[data-bs-theme="dark"] .sb-active-shortlist-table thead th,
[data-bs-theme="dark"] .sb-active-activity-table th,
[data-bs-theme="dark"] .sb-active-campaign-table th {
    color: var(--sb-heading);
    background: var(--sb-surface-2);
}

[data-bs-theme="dark"] .sb-active-row-pink td,
[data-bs-theme="dark"] .sb-active-row-green td,
[data-bs-theme="dark"] .sb-active-total-row td {
    background: color-mix(in srgb, var(--sb-surface), var(--sb-pink) 8%);
}

[data-bs-theme="dark"] .sb-active-search-page .select2-selection,
[data-bs-theme="dark"] .sb-active-search-detail .select2-selection,
[data-bs-theme="dark"] .sb-active-search-detail .modal-content,
[data-bs-theme="dark"] .sb-active-search-detail .ck.ck-editor__main > .ck-editor__editable,
[data-bs-theme="dark"] .sb-active-search-detail .ck.ck-toolbar,
[data-bs-theme="dark"] .sb-active-search-detail .bg-light,
[data-bs-theme="dark"] .sb-active-search-detail .bg-body,
[data-bs-theme="dark"] .sb-active-search-detail .bg-body-tertiary {
    color: var(--sb-text) !important;
    border-color: var(--sb-border) !important;
    background: var(--sb-surface-2) !important;
}

[data-bs-theme="dark"] .sb-active-search-detail .dropdown-menu,
[data-bs-theme="dark"] .sb-active-search-detail .dropdown-item {
    color: var(--sb-text);
    border-color: var(--sb-border);
    background: var(--sb-surface);
}

[data-bs-theme="dark"] .sb-active-search-detail .dropdown-item:hover,
[data-bs-theme="dark"] .sb-active-search-detail .dropdown-item:focus {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-surface), var(--sb-pink) 10%);
}

.sb-active-shortlist-table td {
    background: var(--sb-surface);
    border-color: var(--sb-border);
}

.sb-table-note {
    margin: 4px 0 12px;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-active-candidate-preview {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.sb-active-candidate-preview .sb-active-candidate-card,
.sb-active-candidate-preview .sb-active-candidate-card header > div {
    min-width: 0;
}

.sb-active-candidate-preview a,
.sb-active-candidate-preview p {
    overflow-wrap: anywhere;
}

/* Keep long resumes inside the results workspace, not the whole page. */
.sb-active-record-results .sb-active-results-grid {
    align-items: start;
}

.sb-active-record-results .sb-active-result-groups,
.sb-active-record-results .sb-active-candidate-preview {
    max-height: clamp(28rem, 72vh, 56rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.sb-active-record-results .sb-active-candidate-preview {
    display: block;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-surface);
}

.sb-active-record-results .sb-active-candidate-preview:focus-visible,
.sb-active-record-results .sb-active-result-groups:focus-visible {
    outline: 2px solid var(--sb-pink);
    outline-offset: 2px;
}

.sb-active-record-results .sb-active-candidate-actions {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--sb-border);
    background: var(--sb-surface);
}

.sb-active-record-results .sb-active-candidate-actions .btn {
    min-height: 36px;
}

.sb-active-record-results .sb-active-candidate-card {
    border: 0;
}

.sb-active-record-results .sb-active-candidate-card:not(.sb-partner-preview) > article:not(.sb-active-screening) > h3 {
    margin: -14px -18px 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--sb-border);
    background: color-mix(in srgb, var(--sb-surface), var(--sb-border) 18%);
    font-weight: 600;
}

.sb-active-candidate-card h3.sb-active-work-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.sb-active-candidate-card h3.sb-active-work-heading > span {
    min-width: 0;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.sb-active-record-results .sb-active-candidate-card .sb-rich-text-content {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.sb-active-record-results .sb-partner-preview-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--sb-surface);
}

@media (max-width: 1199.98px) {
    .sb-active-record-results .sb-active-result-groups {
        max-height: 22rem;
    }

    .sb-active-record-results .sb-active-candidate-preview {
        padding-top: 0;
    }
}

.sb-active-candidate-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.sb-active-candidate-nav strong {
    color: #00119a;
    text-align: center;
    font-size: 18px;
}

.sb-work-entry {
    border-bottom: 1px solid var(--sb-border);
}

.sb-work-entry:last-child {
    border-bottom: 0;
}

.sb-work-entry h3 {
    margin: 0 0 6px;
    color: #00119a;
    font-size: 15px;
}

.sb-work-entry h3 span {
    color: #00119a;
    font-weight: 500;
}

.sb-form-card-head h2 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 18px;
    font-weight: 700;
}

.sb-form-card-head span {
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-inline-options,
.sb-check-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sb-check-stack {
    flex-direction: column;
    gap: 8px;
}

.sb-help,
.sb-warning {
    margin-top: 8px;
    font-size: 12px;
}

.sb-help {
    color: var(--sb-muted);
}

.sb-help i {
    color: #0d8bd7;
}

.sb-warning {
    color: #ff5366;
}

.sb-criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 8px 18px;
}

.sb-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--sb-border);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: var(--sb-bg);
}

.sb-editor-toolbar button {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--sb-text);
    background: transparent;
}

.sb-editor-toolbar button:hover {
    border-color: var(--sb-border);
    background: var(--sb-surface);
}

.sb-rich-editor {
    min-height: 240px;
    border-radius: 0 0 5px 5px;
    overflow-y: auto;
}

.sb-rich-editor.is-invalid {
    border-color: #dc3545;
}

.sb-rich-preview {
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    background: var(--sb-bg);
}

.sb-enhanced-select {
    cursor: text;
}

.sb-folder-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    margin: -18px -28px 10px;
    padding: 0 24px;
    background: color-mix(in srgb, var(--sb-border), transparent 55%);
}

.sb-folder-titlebar h1 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 18px;
    font-weight: 700;
}

.sb-folder-titlebar button {
    border: 0;
    color: var(--sb-muted);
    background: transparent;
}

.sb-folder-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
}

.sb-folder-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.sb-folder-list {
    display: grid;
    gap: 6px;
    max-height: 640px;
    overflow-y: auto;
}

.sb-folder-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px 0 calc(14px + (var(--folder-depth, 0) * 18px));
    border: 0;
    border-radius: 3px;
    color: var(--sb-text);
    background: transparent;
    text-align: left;
}

.sb-folder-list button.active,
.sb-folder-list button:hover {
    color: #fff;
    background: #ff5366;
}

.sb-folder-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.sb-folder-list em {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #fff;
    background: #7d7d82;
    font-style: normal;
    font-size: 12px;
    text-align: center;
}

.sb-folder-main {
    position: relative;
    min-width: 0;
}

.sb-folder-main.is-loading .sb-folder-table,
.sb-folder-main.is-loading .sb-folder-table-tools {
    opacity: .62;
}

.sb-folder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.sb-folder-head h2 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.sb-folder-owner-filter {
    max-width: 360px;
}

.sb-folder-head > div { min-width: 0; }

.sb-folder-share {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.sb-folder-toolbar {
    display: flex;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    min-height: 52px;
    padding: 0 16px;
    color: #fff;
    background: #535353;
    overflow: visible;
    z-index: 2;
}

.sb-folder-toolbar button:not(.btn),
.sb-folder-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    color: #fff;
    background: transparent;
    white-space: nowrap;
}

.sb-folder-toolbar .sb-folder-tools-menu {
    min-width: 230px;
    max-height: min(65vh, 620px);
    overflow-y: auto;
    padding-block: 6px;
    z-index: 1030;
}

.sb-folder-toolbar .sb-folder-tools-menu .dropdown-item {
    display: flex;
    width: 100%;
    padding: 7px 14px;
    color: var(--sb-text);
    background: var(--sb-surface);
}

.sb-folder-toolbar .sb-folder-tools-menu .dropdown-item:hover,
.sb-folder-toolbar .sb-folder-tools-menu .dropdown-item:focus {
    color: #fff;
    background: var(--sb-primary);
}

.sb-folder-toolbar.sb-action-bar {
    gap: 4px;
    margin: 0 0 14px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--sb-text);
    background: var(--sb-menu-bg);
}

.sb-folder-toolbar.sb-action-bar > .sb-folder-refresh { margin-left: auto; }

.sb-folder-toolbar.sb-action-bar .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

.sb-folder-toolbar.sb-action-bar .dropdown-item:hover,
.sb-folder-toolbar.sb-action-bar .dropdown-item:focus-visible {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-primary), transparent 90%);
}

.sb-folder-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 10px;
    color: var(--sb-muted);
    font-size: 13px;
}

.sb-folder-table {
    color: var(--sb-text);
    border: 1px solid var(--sb-border);
}

.sb-folder-table thead th {
    color: #fff;
    background: #ff5366;
    border-color: #ff5366;
    cursor: pointer;
}

.sb-folder-table td {
    height: 48px;
    background: var(--sb-surface);
    border-color: var(--sb-border);
}

.sb-folder-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sb-folder-detail a {
    color: #00609a;
}

.sb-table-skeleton {
    height: 14px;
    margin: 8px 0;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--sb-border), transparent 20%), color-mix(in srgb, var(--sb-surface), #fff 12%), color-mix(in srgb, var(--sb-border), transparent 20%));
    background-size: 180% 100%;
    animation: sb-skeleton 1.1s ease-in-out infinite;
}

@keyframes sb-skeleton {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.sb-candidate-view-page {
    padding-top: 0;
}

.sb-candidate-view-page.sb-candidate-self-service {
    max-width: 1480px;
    margin: 0 auto;
    padding-top: 18px;
}

.sb-candidate-self-service .sb-candidate-layout {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.sb-candidate-self-service .sb-candidate-summary-card {
    border: 1px solid var(--sb-border);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--sb-heading), transparent 92%);
}

.sb-candidate-self-service .sb-candidate-summary-card p,
.sb-candidate-self-service .sb-candidate-summary-card span {
    overflow-wrap: anywhere;
}

.sb-candidate-commandbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 52px;
    margin: 0 -28px 18px;
    padding: 6px 20px;
    border-top: 1px solid var(--sb-border);
    border-bottom: 1px solid color-mix(in srgb, var(--sb-border), transparent 35%);
    background: color-mix(in srgb, var(--sb-pink), var(--sb-surface) 92%);
}

.sb-candidate-commandbar button:not(.btn),
.sb-candidate-commandbar label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin: 0;
    padding: 6px 9px;
    border: 0;
    border-radius: 4px;
    color: var(--sb-text);
    background: transparent;
    white-space: nowrap;
    font-size: 13px;
}

.sb-candidate-commandbar button:not(.btn):not(.sb-candidate-filter):not(.sb-candidate-new-search):hover,
.sb-candidate-commandbar button:not(.btn):not(.sb-candidate-filter):not(.sb-candidate-new-search):focus-visible,
.sb-candidate-commandbar label:has(input:focus-visible) {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), transparent 58%);
    outline: 0;
}

.sb-candidate-commandbar i {
    font-size: 14px;
}

.sb-candidate-command-spacer {
    flex: 1 0 20px;
}

.sb-candidate-commandbar .sb-candidate-filter,
.sb-candidate-commandbar .sb-candidate-new-search {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 5px;
    color: #fff;
    background: var(--sb-pink);
    font-weight: 600;
}

.sb-candidate-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 12px;
    padding: 16px;
    text-align: center;
    background: var(--sb-surface);
    overflow-wrap: anywhere;
}

.sb-candidate-identity-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.sb-candidate-identity h1 {
    margin: 0;
    min-width: 0;
    color: var(--sb-heading);
    font-size: 22px;
}

.sb-candidate-identity p { margin: 4px 0; }
.sb-candidate-member-since { color: var(--sb-primary); font-style: italic; }

.sb-candidate-view-page .sb-candidate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 8px;
    align-items: start;
}

.sb-candidate-view-page .sb-candidate-detail-panel {
    overflow: visible;
    border: 0;
    background: transparent;
}

.sb-candidate-view-page .sb-candidate-detail-stack { gap: 8px; }

.sb-candidate-view-page .sb-candidate-highlights,
.sb-candidate-view-page .sb-candidate-detail-row {
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
}

.sb-candidate-view-page .sb-candidate-highlights { margin-bottom: 8px; padding: 0; }
.sb-candidate-view-page .sb-candidate-highlights h2 { margin: 0; padding: 14px 56px 14px 18px; background: color-mix(in srgb, var(--sb-heading), var(--sb-surface) 95%); border-bottom: 1px solid var(--sb-border); }
.sb-candidate-view-page [data-candidate-highlights-text] { max-height: 24rem; padding: 14px 18px; overflow: auto; overflow-wrap: anywhere; }

.sb-candidate-view-page .sb-candidate-detail-heading,
.sb-candidate-view-page .sb-candidate-detail-row > button {
    background: color-mix(in srgb, var(--sb-heading), var(--sb-surface) 95%);
}

.sb-candidate-view-page .sb-candidate-detail-heading > [data-candidate-accordion-toggle] { background: transparent; }
.sb-candidate-view-page .sb-candidate-detail-body { padding-top: 12px; }
.sb-candidate-view-page .sb-candidate-detail-heading > .sb-candidate-icon-action { flex: 0 0 auto; }

.sb-candidate-supporting-details { min-width: 0; }
.sb-candidate-supporting-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sb-candidate-supporting-grid .sb-candidate-side-section { min-width: 0; padding: 16px; border: 1px solid var(--sb-border); border-radius: 6px; background: var(--sb-surface); overflow-wrap: anywhere; }
.sb-candidate-profile-meta { text-align: left; font-size: 12px; }
.sb-candidate-lower-sections { display: grid; gap: 8px; margin-top: 8px; min-width: 0; }
.sb-candidate-view-page .sb-candidate-activities { margin-top: 12px; box-shadow: none; min-width: 0; }
.sb-candidate-lower-sections > .sb-candidate-activities { margin-top: 0; }
.sb-candidate-view-page .sb-candidate-activities__toolbar { flex-wrap: wrap; gap: 8px; }
.sb-candidate-view-page .sb-candidate-activities__filter { flex: 1 1 240px; grid-template-columns: auto minmax(0, 1fr); min-width: 0; max-width: 360px; }
.sb-candidate-view-page .sb-candidate-activities__actions { min-width: 0; }
.sb-candidate-view-page .sb-candidate-detail-body { padding: 12px 16px; }
.sb-candidate-view-page .sb-candidate-detail-body > :last-child { margin-bottom: 0; }
.sb-candidate-view-page .sb-candidate-side-section p { margin: 0 0 6px; }
.sb-candidate-view-page .sb-candidate-side-section p:last-child { margin-bottom: 0; }
.sb-candidate-view-page .sb-candidate-side-section h3 { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; color: var(--sb-heading); font-size: 14px; font-weight: 800; text-transform: none; }
.sb-candidate-view-page .sb-candidate-indent { padding-left: 0; }
.sb-candidate-highlight-activity-list { border-top: 1px solid var(--sb-border); padding: 8px 16px 12px; }
.sb-candidate-administrative-grid > .sb-candidate-side-section { padding: 0; border-top: 0; }
.sb-candidate-administrative-grid > .sb-candidate-side-section > header { margin-bottom: 8px; }
.sb-candidate-administrative-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sb-candidate-administrative-grid > section { min-width: 0; overflow-wrap: anywhere; }
.sb-candidate-resume-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 36rem; overflow: auto; }
.sb-candidate-supporting-grid .sb-candidate-side-section { padding: 0; }
.sb-candidate-supporting-grid .sb-candidate-side-section > header { min-height: 44px; margin-bottom: 0; padding: 8px 12px; background: color-mix(in srgb, var(--sb-heading), var(--sb-surface) 95%); border-bottom: 1px solid var(--sb-border); flex-wrap: wrap; gap: 6px; }
.sb-candidate-supporting-grid .sb-candidate-side-section > div { padding: 12px; }
@media (max-width: 767.98px) {
    .sb-candidate-view-page .sb-candidate-layout, .sb-candidate-identity, .sb-candidate-administrative-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-candidate-identity-main { grid-row: 1; }
    .sb-candidate-profile-meta { text-align: center; }
}

.sb-candidate-sidebar {
    min-width: 0;
    padding-right: 20px;
    border-right: 1px solid var(--sb-border);
}

.sb-candidate-summary-card {
    position: relative;
    min-height: 0;
    padding: 24px 20px;
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.sb-candidate-summary-card > .sb-candidate-icon-action {
    position: absolute;
    right: 16px;
    top: 22px;
}

.sb-candidate-summary-card h1 {
    margin: 0 0 4px;
    color: var(--sb-heading);
    font-size: 22px;
    font-weight: 700;
}

.sb-candidate-summary-card p,
.sb-candidate-highlights p,
.sb-candidate-detail-body p {
    margin: 0;
    line-height: 1.55;
}

.sb-candidate-side-section {
    padding: 25px 0 22px;
    border-top: 1px solid var(--sb-border);
}

.sb-candidate-side-section header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
    margin-bottom: 14px;
}

.sb-candidate-side-section h3 {
    margin: 0;
    color: var(--sb-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.sb-candidate-side-section strong {
    color: var(--sb-heading);
}

.sb-candidate-indent {
    padding-left: 76px;
}

.sb-candidate-icon-action {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    color: var(--sb-pink);
    background: transparent;
}

.sb-candidate-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 16px;
}

.sb-candidate-file__details {
    min-width: 0;
}

.sb-candidate-file__details > a,
.sb-candidate-file__details > .sb-candidate-file__unavailable {
    display: block;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.sb-candidate-file small,
.sb-candidate-list-lines small {
    display: block;
    margin-top: 3px;
    color: var(--sb-muted);
    font-size: 11px;
}

.sb-candidate-file__actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.sb-candidate-side-actions,
.sb-candidate-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.sb-candidate-side-actions {
    justify-content: flex-start;
}

.sb-candidate-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 96px;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: var(--sb-pink);
    box-shadow: 0 5px 9px rgba(28, 24, 42, .14);
    font-weight: 700;
}

.sb-candidate-action.muted {
    background: #b4b3bd;
}

.sb-candidate-detail-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
}

.sb-candidate-highlights {
    position: relative;
    padding: 14px 56px 14px 18px;
    border-bottom: 1px solid var(--sb-border);
}

.sb-candidate-highlights .sb-candidate-icon-action {
    position: absolute;
    right: 18px;
    top: 14px;
}

.sb-candidate-highlights h2 {
    margin: 0 0 10px;
    color: var(--sb-heading);
    font-size: 16px;
    font-weight: 800;
}

.sb-candidate-detail-stack {
    display: grid;
}

.sb-candidate-detail-row {
    border-bottom: 1px solid var(--sb-border);
}

.sb-candidate-detail-row:last-child {
    border-bottom: 0;
}

.sb-candidate-detail-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-right: 18px;
}

.sb-candidate-detail-heading > [data-candidate-accordion-toggle] {
    flex: 1 1 240px;
    min-width: 0;
}

.sb-candidate-detail-heading > .sb-candidate-action {
    flex: 0 0 auto;
    margin: 8px 0 8px 18px;
}

.sb-candidate-detail-row > button,
.sb-candidate-detail-heading > [data-candidate-accordion-toggle] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    color: var(--sb-heading);
    background: var(--sb-surface);
    text-align: left;
    font-weight: 800;
}

.sb-candidate-detail-row > button:hover,
.sb-candidate-detail-row > button:focus-visible,
.sb-candidate-detail-heading > [data-candidate-accordion-toggle]:hover,
.sb-candidate-detail-heading > [data-candidate-accordion-toggle]:focus-visible {
    background: color-mix(in srgb, var(--sb-primary), transparent 95%);
    outline: 0;
}

.sb-candidate-detail-row > button small,
.sb-candidate-detail-heading > button small {
    color: var(--sb-text);
    font-size: 14px;
    font-weight: 500;
}

.sb-candidate-detail-body {
    display: none;
    padding: 0 18px 22px;
}

.sb-candidate-detail-row.open .sb-candidate-detail-body {
    display: block;
}

.sb-candidate-detail-row:not(.open) > button i,
.sb-candidate-detail-row:not(.open) > .sb-candidate-detail-heading > [data-candidate-accordion-toggle] i {
    transform: rotate(-90deg);
}

.sb-candidate-activities {
    margin-top: 22px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.sb-candidate-activities__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    border: 0;
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), var(--sb-surface) 62%);
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.sb-candidate-activities__heading::-webkit-details-marker {
    display: none;
}

.sb-candidate-activities__heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sb-candidate-activities__heading > i {
    transition: transform 0.18s ease;
}

.sb-candidate-activities:not([open]) .sb-candidate-activities__heading > i {
    transform: rotate(-90deg);
}

.sb-candidate-activities:not([open]) .sb-candidate-activities__content {
    display: none;
}

.sb-candidate-activities__content {
    padding: 16px;
}

.sb-candidate-activities__toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.sb-candidate-activities__filter {
    display: grid;
    grid-template-columns: auto minmax(200px, 300px);
    align-items: center;
    gap: 0;
    margin: 0;
}

.sb-candidate-activities__filter > span:not(.select2-container) {
    display: block;
    padding: 0;
    border: 0;
    color: var(--sb-muted);
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}

.sb-candidate-activities__filter .form-select {
    border-radius: 5px;
}

.sb-candidate-activities__filter > .select2-container {
    min-width: 0;
}

.sb-candidate-activities__filter .select2-selection--single {
    border-radius: 5px;
}

.sb-candidate-activities__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.sb-candidate-activities__table-wrap {
    border: 1px solid var(--sb-border);
    border-radius: 4px;
}

.sb-candidate-activities__table {
    --bs-table-bg: var(--sb-surface);
    --bs-table-color: var(--sb-text);
    --bs-table-border-color: var(--sb-border);
    color: var(--sb-text);
}

.sb-candidate-activities__table thead th {
    padding: 11px 10px;
    color: #fff;
    background: var(--sb-primary);
    font-size: 12px;
    white-space: nowrap;
}

.sb-candidate-activities__sort {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: inherit;
    text-align: left;
}

.sb-candidate-activities__sort:hover,
.sb-candidate-activities__sort:focus-visible {
    color: inherit;
    text-decoration: underline;
}

.sb-candidate-activities__sort:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.sb-candidate-activities__table tbody td {
    padding: 10px;
    color: var(--sb-text);
    background: var(--sb-surface);
    vertical-align: top;
}

.sb-candidate-activities__check {
    width: 38px;
    text-align: center;
}

.sb-candidate-activities__table tbody tr.is-selected td {
    background: color-mix(in srgb, var(--sb-primary) 12%, var(--sb-surface));
}

.sb-candidate-activities__details {
    min-width: 260px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sb-candidate-activities__summary {
    margin: 10px 0 0;
    color: var(--sb-muted);
    font-size: 12px;
}

@media (max-width: 767.98px) {
    .sb-candidate-activities__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-candidate-activities__filter {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sb-candidate-activities__actions {
        justify-content: flex-start;
    }
}

.sb-candidate-history {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.sb-candidate-work-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 10px 12px 10px 0;
}

.sb-candidate-total-experience {
    color: var(--sb-text);
    font-size: 14px;
    font-weight: 500;
}

.sb-candidate-history-content {
    min-width: 0;
    width: 100%;
    overflow-wrap: anywhere;
}

.sb-candidate-history-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
}

.sb-candidate-history-item.is-read-only {
    grid-template-columns: minmax(0, 1fr);
}

.sb-candidate-history-item h4 {
    margin: 0 0 8px;
    color: #00a1b7;
    font-size: 15px;
    font-weight: 500;
}

.sb-candidate-history-description > :first-child {
    margin-top: 0;
}

.sb-candidate-history-description > :last-child {
    margin-bottom: 0;
}

.sb-candidate-history-description ul,
.sb-candidate-history-description ol {
    margin: 0;
    padding-left: 1.25rem;
}

.sb-candidate-history-description li + li {
    margin-top: 0.25rem;
}

.sb-candidate-list-lines {
    display: grid;
    gap: 10px;
}

.sb-candidate-list-lines label {
    display: flex;
    align-items: start;
    gap: 8px;
    color: #00a1b7;
}

.sb-candidate-list-lines span {
    min-width: 0;
}

.sb-certification-editor-list,
.sb-education-editor-list,
.sb-work-editor-list {
    display: grid;
    gap: 12px;
}

.sb-personal-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sb-status-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sb-communication-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sb-availability-section-title {
    margin: 8px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--sb-border);
    color: var(--sb-heading);
    font-size: 14px;
    font-weight: 600;
}

.sb-availability-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.sb-availability-editor > label {
    align-content: start;
}

.sb-availability-editor .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 5px 24px 5px 8px;
}

.sb-availability-editor .select2-selection--multiple .select2-selection__rendered {
    margin: 0;
    max-width: 100%;
}

.sb-availability-editor .select2-container--default .select2-selection--multiple .select2-search--inline {
    display: inline-flex;
    flex: 1 1 80px;
    min-width: 0;
    width: auto;
}

.sb-availability-editor .select2-search--inline .select2-search__field {
    margin: 0;
    min-height: 24px;
}

.sb-availability-editor .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: var(--sb-heading);
    background: var(--sb-surface-2);
    border-color: var(--sb-border);
}

.sb-availability-editor .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--sb-heading);
}

.sb-document-upload-editor {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 12px;
}

.sb-document-upload-editor .sb-editor-wide {
    grid-column: 1 / -1;
}

.sb-upload-progress {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.sb-upload-progress[hidden] {
    display: none;
}

.sb-upload-progress__track {
    height: 8px;
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--sb-surface), #e8ebf0 72%);
}

.sb-upload-progress__bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--sb-primary);
    transition: width .16s ease;
}

.sb-upload-progress span {
    color: var(--sb-muted);
    font-size: 12px;
    font-weight: 700;
}

.sb-availability-toggle-grid {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sb-availability-toggle-grid .sb-editor-check {
    flex: 1 1 120px;
}

.sb-communication-toggle-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sb-assessment-editor-row,
.sb-certification-editor-row,
.sb-education-editor-row,
.sb-work-editor-row {
    display: grid;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: color-mix(in srgb, var(--sb-surface), #f8f9fb 54%);
}

.sb-certification-editor-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 132px 132px 34px;
}

.sb-assessment-editor-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    min-width: 0;
}

.sb-assessment-editor-row > label {
    align-content: start;
}

.sb-assessment-editor-row .sb-editor-wide {
    grid-column: 1 / -1;
}

.sb-assessment-editor-row .ck-editor,
.sb-assessment-editor-row .ck.ck-toolbar,
.sb-assessment-editor-row .ck.ck-toolbar__items,
.sb-assessment-editor-row .select2-container {
    min-width: 0;
    max-width: 100%;
}

.sb-assessment-editor-row .ck.ck-toolbar__items {
    flex-wrap: wrap;
}

.sb-assessment-editor-row > .sb-candidate-icon-action {
    grid-column: 1 / -1;
    justify-self: end;
}

@media (max-width: 991px) {
    .sb-assessment-editor-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .sb-assessment-editor-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.sb-assessment-profile-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sb-assessment-profile-summary {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--sb-border);
}

.sb-assessment-profile-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sb-assessment-profile-summary p,
.sb-assessment-profile-summary small {
    margin: 0;
}

.sb-assessment-profile-summary small {
    color: var(--sb-muted);
}

.sb-assessment-profile-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: color-mix(in srgb, var(--sb-surface), #eef0f5 45%);
}

.sb-assessment-profile-tabs button {
    min-width: 120px;
    min-height: 36px;
    border: 0;
    border-radius: 4px;
    color: var(--sb-muted);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
}

.sb-assessment-profile-tabs button.is-active {
    color: #fff;
    background: var(--sb-heading);
}

.sb-assessment-profile-pane[hidden] {
    display: none;
}

.sb-assessment-profile-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: color-mix(in srgb, var(--sb-surface), var(--sb-heading) 7%);
}

.sb-assessment-profile-section-heading:first-of-type {
    margin-top: 0;
}

.sb-assessment-profile-section-heading strong {
    color: var(--sb-heading);
    font-size: 13px;
}

.sb-assessment-profile-section-heading span {
    color: var(--sb-muted);
    font-size: 11px;
}

.sb-assessment-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sb-assessment-profile-check-label > span:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: var(--sb-text);
    font-size: 12px;
    font-weight: 600;
}

.sb-assessment-profile-radio {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
}

.sb-assessment-profile-radio legend {
    width: auto;
    margin: 0;
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-assessment-profile-radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
}

.sb-assessment-profile-grid > label {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.sb-assessment-profile-grid > label > span {
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-assessment-profile-grid > label > small {
    color: var(--sb-muted);
    font-size: 11px;
}

.sb-assessment-profile-wide {
    grid-column: 1 / -1;
}

.sb-assessment-profile-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
    padding: 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
}

.sb-assessment-profile-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
}

.sb-assessment-profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--sb-border);
}

@media (max-width: 900px) {
    .sb-assessment-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sb-assessment-profile-summary-list,
    .sb-assessment-profile-grid,
    .sb-assessment-profile-checks {
        grid-template-columns: 1fr;
    }

    .sb-assessment-profile-tabs {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-assessment-profile-tabs button {
        min-width: 0;
    }

    .sb-assessment-profile-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-assessment-profile-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

.sb-education-editor-row {
    grid-template-columns: minmax(0, 1.35fr) 132px minmax(0, 1fr) 132px 132px 34px;
}

.sb-work-editor-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 132px 132px 96px 34px;
    /* Feedback grows below the field without moving its neighbouring inputs. */
    align-items: start;
}

.sb-work-editor-row > .sb-editor-check,
.sb-work-editor-row > .sb-candidate-icon-action {
    /* Match the field heading's line height plus its label/input gap. */
    margin-top: calc(11px * 1.5 + 6px);
}

.sb-editor-wide {
    grid-column: 1 / -2;
}

.sb-personal-editor .sb-editor-wide,
.sb-status-editor .sb-editor-wide,
.sb-communication-editor .sb-editor-wide,
.sb-availability-editor .sb-editor-wide {
    grid-column: 1 / -1;
}

.sb-editor-check {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    background: var(--sb-surface);
}

.sb-editor-check span {
    color: var(--sb-text) !important;
    font-size: 12px !important;
    text-transform: none !important;
}

.sb-assessment-editor-row label,
.sb-certification-editor-row label,
.sb-education-editor-row label,
.sb-work-editor-row label,
.sb-personal-editor label,
.sb-status-editor label,
.sb-communication-editor label,
.sb-availability-editor label,
.sb-document-upload-editor label {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.sb-assessment-editor-row label > span:not(.select2-container),
.sb-certification-editor-row label span,
.sb-education-editor-row label span,
.sb-work-editor-row label span,
.sb-personal-editor label span,
.sb-status-editor label span,
.sb-communication-editor label span,
.sb-availability-editor label > span:not(.select2-container),
.sb-document-upload-editor label span {
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-assessment-editor-row .sb-candidate-icon-action,
.sb-certification-editor-row .sb-candidate-icon-action,
.sb-education-editor-row .sb-candidate-icon-action,
.sb-work-editor-row .sb-candidate-icon-action {
    width: 34px;
    height: 38px;
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    color: #7c8191;
    background: var(--sb-surface);
}

.sb-candidate-empty {
    min-height: 28px;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-candidate-form-table {
    min-width: 760px;
    margin: 0;
}

.sb-candidate-form-table th,
.sb-candidate-form-table td {
    border: 0;
    color: var(--sb-text);
    background: transparent;
    font-size: 12px;
}

.sb-candidate-form-table th {
    color: var(--sb-heading);
    font-weight: 500;
}

.sb-candidate-referral-link {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.sb-candidate-referral-link .form-control {
    flex: 1 1 24rem;
}

.sb-resume-suggestion-review,
.sb-candidate-document-history {
    margin-top: 0.55rem;
}

.sb-resume-suggestion-review summary,
.sb-candidate-document-history summary {
    color: var(--sb-link-color, #008ca8);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.sb-resume-suggestion-review form {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.sb-resume-suggestion-review label {
    align-items: flex-start;
    display: flex;
    gap: 0.45rem;
}

.sb-section-title,
.sb-results-head h2 {
    margin: 0 0 14px;
    color: var(--sb-heading);
    font-size: 20px;
    font-weight: 700;
}

.sb-content-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: var(--sb-muted);
}

.sb-loader-lines {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.sb-loader-lines i {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--sb-border), transparent 10%), color-mix(in srgb, var(--sb-surface), #fff 14%), color-mix(in srgb, var(--sb-border), transparent 10%));
    background-size: 180% 100%;
    animation: sb-skeleton 1.1s ease-in-out infinite;
}

.sb-loader-lines i:nth-child(2) { width: 82%; }
.sb-loader-lines i:nth-child(3) { width: 58%; }

.sb-field-label {
    margin-top: 2px;
    font-size: 11px;
}

.sb-calendar {
    margin-top: 6px;
    padding: 16px 14px;
    border-radius: 5px;
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.sb-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 12px;
}

.sb-calendar-head span {
    display: flex;
    gap: 10px;
    color: var(--sb-muted);
}

.sb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px 8px;
    text-align: center;
    font-size: 11px;
}

.sb-calendar-grid b {
    font-size: 10px;
    color: var(--sb-heading);
}

.sb-calendar-grid span,
.sb-calendar-grid button {
    width: 24px;
    height: 24px;
    margin: auto;
    border: 0;
    border-radius: 50%;
    color: var(--sb-text);
    background: transparent;
    line-height: 24px;
    font-size: 11px;
}

.sb-calendar-grid span.active,
.sb-calendar-grid button.active {
    color: #fff;
    background: #7068f4;
}

.sb-calendar-grid span:nth-of-type(9),
.sb-calendar-grid button:nth-of-type(9) {
    background: #59d88d;
    color: #fff;
}

.sb-calendar-head button {
    border: 0;
    color: var(--sb-muted);
    background: transparent;
}

.grid-line {
    stroke: var(--sb-border);
    stroke-width: 1;
}

.line-blue,
.line-pink {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-blue { stroke: #00bdf2; }
.line-pink { stroke: #ff5366; }
.sb-action-bar {


    min-height: 52px;
    margin: -18px -28px 18px;
    padding: 6px 20px;
    background: var(--sb-menu-bg);
    font-size: 13px;
}

.sb-action-bar button:not(.btn),
.sb-action-bar label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    margin: 0;
    padding: 6px 9px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--sb-text);
    white-space: nowrap;
    font-size: inherit;
    line-height: 1.5;
}

.sb-action-bar button:not(.btn):not(.sb-pink-btn):hover,
.sb-action-bar button:not(.btn):not(.sb-pink-btn):focus-visible,
.sb-action-bar label:has(input:focus-visible) {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), transparent 58%);
    outline: 0;
}

.sb-command-dropdown {
    position: relative;
}

.sb-command-chevron {
    margin-left: 2px;
    font-size: 10px;
}

.sb-folder-copy-dropdown {
    position: relative;
}

.sb-action-bar .sb-folder-copy-menu {
    width: min(330px, calc(100vw - 32px));
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: 0 16px 36px rgba(31, 39, 70, .16);
}

.sb-action-bar .sb-folder-copy-search {
    width: 100%;
    min-height: 36px;
    margin: 0 0 6px;
    padding: 7px 9px;
    border: 1px solid var(--sb-border);
    background: var(--bs-body-bg);
    color: var(--sb-text);
}

.sb-folder-copy-list {
    max-height: min(410px, calc(100vh - 190px));
    overflow-y: auto;
}

.sb-action-bar .sb-folder-copy-choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    color: var(--sb-text);
    text-align: left;
    white-space: normal;
}

.sb-action-bar .sb-folder-copy-choice i {
    width: 18px;
    color: var(--sb-primary);
    text-align: center;
}

.sb-action-bar .sb-folder-copy-choice span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sb-action-bar .sb-folder-copy-choice small {
    color: var(--sb-muted);
}

.sb-action-bar .sb-folder-copy-choice:hover,
.sb-action-bar .sb-folder-copy-choice:focus-visible {
    background: color-mix(in srgb, var(--sb-primary), transparent 90%);
    color: var(--sb-heading);
}

.sb-action-bar .sb-folder-copy-create {
    border-bottom: 1px solid var(--sb-border);
    border-radius: 0;
    color: var(--sb-primary);
    font-weight: 700;
}

.sb-folder-copy-empty {
    padding: 16px 10px;
    color: var(--sb-muted);
    font-size: 12px;
    text-align: center;
}

.sb-action-bar .sb-command-menu,
.sb-candidate-commandbar .sb-command-menu,
.sb-legacy-commandbar .sb-command-menu {
    width: max-content;
    min-width: 250px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: 0 16px 36px rgba(31, 39, 70, .16);
}

.sb-action-bar .sb-command-menu .dropdown-item,
.sb-candidate-commandbar .sb-command-menu .dropdown-item,
.sb-legacy-commandbar .sb-command-menu .dropdown-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--sb-text);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
}

.sb-action-bar .sb-command-menu .dropdown-item span,
.sb-candidate-commandbar .sb-command-menu .dropdown-item span,
.sb-legacy-commandbar .sb-command-menu .dropdown-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sb-action-bar .sb-command-menu .dropdown-item:hover,
.sb-candidate-commandbar .sb-command-menu .dropdown-item:hover,
.sb-candidate-commandbar .sb-command-menu .dropdown-item:focus-visible,
.sb-action-bar .sb-command-menu .dropdown-item:focus-visible,
.sb-legacy-commandbar .sb-command-menu .dropdown-item:hover,
.sb-legacy-commandbar .sb-command-menu .dropdown-item:focus-visible {
    background: color-mix(in srgb, var(--sb-primary), transparent 90%);
    color: var(--sb-heading);
}

.sb-action-bar .sb-command-menu .dropdown-item i,
.sb-candidate-commandbar .sb-command-menu .dropdown-item i,
.sb-legacy-commandbar .sb-command-menu .dropdown-item i {
    width: 18px;
    color: var(--sb-primary);
    text-align: center;
}

.sb-candidate-commandbar .sb-command-menu {
    max-height: min(70vh, 32rem);
    overflow-y: auto;
}

.sb-candidate-recipient-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.sb-candidate-recipient {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 1px 7px;
    min-width: min(100%, 220px);
    max-width: 100%;
    box-sizing: border-box;
    padding: 7px 9px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface-2);
    color: var(--sb-heading);
    font-size: 12px;
}

.sb-candidate-recipient i {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--sb-primary);
}

.sb-candidate-recipient > span,
.sb-candidate-recipient > strong,
.sb-candidate-recipient > small {
    grid-column: 2;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.sb-candidate-recipient > span,
.sb-candidate-recipient > strong {
    grid-row: 1;
}

.sb-candidate-recipient > small {
    grid-row: 2;
}

.sb-candidate-recipient small {
    color: var(--sb-muted);
}


.sb-search-form {
    display: grid;
    grid-template-columns: 350px 350px;
    justify-content: center;
    gap: 16px 18px;
    margin: 18px auto 24px;
}

.sb-search-form label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
}

.sb-search-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding-top: 8px;
}

.sb-muted-btn {
    color: #fff;
    background: #777385;
    border-color: #777385;
    min-width: 110px;
}

[data-bs-theme="dark"] .sb-muted-btn {
    background: #c0c8f3;
    border-color: #c0c8f3;
}

.sb-divider {
    border-color: var(--sb-border);
    opacity: 1;
}

.sb-results-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 7px 10px;
    font-size: 13px;
}

.sb-results-head h2 {
    width: 100%;
    margin-bottom: 10px;
    flex-basis: 100%;
}

.sb-activity-page .sb-action-bar {
    margin-bottom: 18px;
}

.sb-activity-view-switcher {
    position: relative;
}

.sb-action-bar .sb-activity-view-switcher > button {
    max-width: 260px;
}

.sb-action-bar .sb-activity-view-switcher > button [data-activity-active-view-label],
.sb-action-bar .sb-activity-view-switcher > button [data-candidate-active-view-label] {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-view-chevron {
    margin-left: 2px;
    font-size: 10px;
}

.sb-activity-view-menu {
    width: min(390px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 150px));
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: 0 16px 36px rgba(31, 39, 70, .16);
}

.sb-view-menu-head,
.sb-view-menu-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--sb-border);
    color: var(--sb-heading);
    font-size: 12px;
    font-weight: 700;
}

.sb-view-menu-head button,
.sb-view-menu-foot button {
    min-height: 30px;
    padding: 5px 8px;
}

.sb-view-menu-head button {
    width: 30px;
    justify-content: center;
    color: var(--sb-primary);
}

.sb-view-menu-head button:disabled {
    color: var(--sb-muted);
    opacity: .55;
}

.sb-view-menu-list {
    max-height: 420px;
    padding: 6px;
    overflow-y: auto;
}

.sb-action-bar .sb-view-choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 16px;
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
    color: var(--sb-text);
    text-align: left;
}

.sb-action-bar .sb-view-choice span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-action-bar .sb-view-choice.active,
.sb-action-bar .sb-view-choice:hover,
.sb-action-bar .sb-view-choice:focus-visible {
    background: color-mix(in srgb, var(--sb-primary), transparent 90%);
    color: var(--sb-heading);
}

.sb-view-choice .sb-view-default-mark {
    color: var(--sb-primary);
}

.sb-view-menu-empty {
    padding: 18px 12px;
    color: var(--sb-muted);
    font-size: 12px;
    text-align: center;
}

.sb-view-menu-foot {
    justify-content: flex-end;
    border-top: 1px solid var(--sb-border);
    border-bottom: 0;
}

.sb-view-menu-foot button {
    color: var(--sb-primary);
}

.sb-activity-page .sb-module-head {
    align-items: center;
    margin-bottom: 2px;
}

.sb-activity-page .sb-module-head h1 {
    color: var(--sb-heading);
    font-size: 22px;
    font-weight: 700;
}

.sb-activity-page .sb-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 28px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid var(--sb-pink);
    border-radius: 999px;
    color: var(--sb-pink);
    font-size: 11px;
}


.sb-table-wrap {
    margin-inline: 7px;
}

.sb-candidate-table {
    color: var(--sb-text);
    border: 1px solid var(--sb-border);
    font-size: 13px;
}

.sb-candidate-table thead th {
    height: 58px;
    color: #fff;
    background: var(--sb-table-head);
    border-color: var(--sb-table-head);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .02em;
    cursor: pointer;
}

[data-bs-theme="dark"] .sb-candidate-table thead th {
    color: #fff;
}

.sb-candidate-table td {
    height: 52px;
    background: var(--sb-surface);
    border-color: var(--sb-border);
}

.sb-candidate-table tbody tr {
    cursor: pointer;
}

.sb-candidate-table tbody tr:hover td {
    background: color-mix(in srgb, var(--sb-primary), transparent 94%);
}

.sb-status {
    display: inline-block;
    min-width: 74px;
    padding: 4px 8px;
    border-radius: 3px;
    text-align: center;
    font-size: 11px;
}

.sb-status.good {
    color: #18c783;
    background: rgba(24, 199, 131, .16);
}

.sb-status.bad {
    color: #ff5366;
    background: rgba(255, 83, 102, .16);
}

.sb-status.maybe {
    color: #7068f4;
    background: rgba(112, 104, 244, .16);
}

.sb-table-action {
    border: 0;
    color: var(--sb-pink);
    background: transparent;
}

.sb-link-button {
    border: 0;
    padding: 0;
    color: #00609a;
    background: transparent;
    font: inherit;
    font-weight: 600;
    text-align: left;
}

.sb-link-button:hover {
    color: var(--sb-primary);
    text-decoration: underline;
}

.sb-folder-record-unavailable {
    color: var(--sb-muted);
    cursor: not-allowed;
}

.sb-empty-state {
    height: 90px !important;
    text-align: center;
    color: var(--sb-muted);
}

.sb-pagination-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 8px 0;
    font-size: 12px;
}

.sb-pagination-row nav {
    display: flex;
    gap: 5px;
}

.sb-pagination-row a,
.sb-pagination-row button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    color: var(--sb-text);
    background: var(--sb-surface);
    line-height: 34px;
    text-align: center;
}

.sb-pagination-row a.active,
.sb-pagination-row button.active {
    color: #fff;
    background: var(--sb-pink);
}

.sb-pagination-ellipsis {
    min-width: 20px;
    height: 34px;
    color: var(--sb-muted);
    line-height: 34px;
    text-align: center;
}

.sb-modal {
    color: var(--sb-text);
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
}

/* Shared form/read-only popup treatment; Bootstrap retains focus, sizing and dismissal behavior. */
.sb-popup { --bs-modal-width: 640px; }
.sb-popup .modal-content { min-width: 0; border-radius: 10px; }
.sb-popup .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.sb-popup .modal-header, .sb-popup .modal-footer {
    flex-shrink: 0;
    gap: 12px;
    padding: 16px 24px;
    border-color: var(--sb-border);
}
.sb-popup .modal-header { align-items: center; }
.sb-popup-heading-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.sb-popup .modal-title { font-size: 16px !important; font-weight: 600; color: var(--sb-heading); }
.sb-popup-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--sb-pink);
    background: var(--sb-bg);
}
.sb-popup .modal-header .btn-close { flex: 0 0 auto; margin-inline-start: auto; }
.sb-popup .modal-body { min-width: 0; min-height: 0; padding: 20px 24px; overflow-wrap: anywhere; }
.sb-popup .modal-body.row { margin: 0; }
.sb-popup .modal-body > :last-child { margin-bottom: 0; }
.sb-popup .modal-body :is(.row > *, .sb-field, fieldset) { min-width: 0; }
.sb-popup .form-label { font-size: 14px; }
.sb-popup :is(input.form-control, select.form-select, textarea.form-control, .select2-container, .ck-editor) { max-width: 100%; min-width: 0; }
.sb-popup .ck.ck-editor__main > .ck-editor__editable { min-height: 180px; max-height: 360px; overflow-wrap: anywhere; }
.sb-popup .modal-footer .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.sb-popup :is([data-candidate-email-variables], [data-email-variables]) { max-height: 140px; overflow-y: auto; }
.sb-popup .sb-candidate-recipient-list { max-height: 128px; overflow-y: auto; }
@media (max-width: 575.98px) {
    .sb-popup .modal-header, .sb-popup .modal-footer { padding: 12px 16px; gap: 8px; }
    .sb-popup .modal-body { padding: 16px; }
    .sb-popup-icon { flex-basis: 32px; height: 32px; }
    .sb-popup .ck.ck-editor__main > .ck-editor__editable { min-height: 160px; }
}

.sb-notification-list {
    display: grid;
    gap: 10px;
}

.sb-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    background: var(--sb-bg);
}

.sb-toast {
    min-width: min(360px, calc(100vw - 32px));
    color: var(--sb-text);
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-left-width: 5px;
    box-shadow: 0 16px 38px rgba(31, 39, 70, .2);
}

.sb-toast .toast-body {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding: 13px 15px;
}

.sb-toast__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
}

.sb-toast__content {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sb-toast__label {
    color: var(--sb-heading);
    font-size: 13px;
    line-height: 1.2;
}

.sb-toast__message {
    overflow-wrap: anywhere;
    color: var(--sb-text);
    font-size: 13px;
    line-height: 1.35;
}

.sb-toast--success {
    border-left-color: #168a55;
    background: color-mix(in srgb, #168a55 8%, var(--sb-surface));
}

.sb-toast--success .sb-toast__icon {
    background: #168a55;
}

.sb-toast--error {
    border-left-color: #c73f4d;
    background: color-mix(in srgb, #c73f4d 8%, var(--sb-surface));
}

.sb-toast--error .sb-toast__icon {
    background: #c73f4d;
}

.sb-toast--warning {
    border-left-color: #b56b00;
    background: color-mix(in srgb, #b56b00 8%, var(--sb-surface));
}

.sb-toast--warning .sb-toast__icon {
    background: #b56b00;
}

.sb-toast--info {
    border-left-color: var(--sb-accent);
    background: color-mix(in srgb, var(--sb-accent) 8%, var(--sb-surface));
}

.sb-toast--info .sb-toast__icon {
    background: var(--sb-accent);
}

.select2-container {
    max-width: 100%;
    font-size: .875rem;
}

.form-select + .select2-container,
.form-control + .select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    border: 1px solid var(--sb-border);
    border-radius: .375rem;
    color: var(--sb-text);
    background: var(--sb-surface);
}

.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-left: .75rem;
    padding-right: 2rem;
    color: var(--sb-text);
    line-height: 36px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--sb-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: .45rem;
}

.select2-container--default .select2-selection--multiple {
    padding: 2px 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0;
    padding: 2px 8px 2px 24px;
    border: 1px solid color-mix(in srgb, var(--sb-primary), #fff 28%);
    border-radius: 999px;
    color: #fff;
    background: var(--sb-primary);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    left: 5px;
    top: 50%;
    border: 0;
    color: #fff;
    transform: translateY(-50%);
}

.select2-container--default .select2-search--inline .select2-search__field {
    min-height: 26px;
    color: var(--sb-text);
    font-family: inherit;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(var(--sb-control-accent-rgb), .14);
    outline: 0;
}

.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    color: var(--sb-muted);
    background: color-mix(in srgb, var(--sb-border), transparent 55%);
    cursor: not-allowed;
}

.select2-dropdown {
    z-index: 2055;
    overflow: hidden;
    border-color: var(--sb-border);
    border-radius: .375rem;
    color: var(--sb-text);
    background: var(--sb-surface);
    box-shadow: var(--sb-shadow);
}

.select2-search--dropdown {
    padding: .5rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 36px;
    border: 1px solid var(--sb-border);
    border-radius: .375rem;
    color: var(--sb-text);
    background: var(--sb-surface);
    outline: 0;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: #fff;
    background: var(--sb-primary);
}

.select2-container--default .select2-results__option--selected {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-primary), transparent 82%);
}

.modal .select2-container {
    z-index: 1060;
}

.form-control.is-invalid + .select2 .select2-selection,
.form-select.is-invalid + .select2 .select2-selection,
.was-validated .form-select:invalid + .select2 .select2-selection {
    border-color: #dc3545;
}

.form-control.is-valid + .select2 .select2-selection,
.form-select.is-valid + .select2 .select2-selection,
.was-validated .form-select:valid + .select2 .select2-selection {
    border-color: #198754;
}

[data-bs-theme="dark"] .select2-selection {
    color: var(--sb-text);
    background: var(--sb-surface);
    border-color: var(--sb-border);
}

[data-bs-theme="dark"] .select2-dropdown {
    color: var(--sb-text);
    background: var(--sb-surface);
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-search--dropdown .select2-search__field {
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out, background-color .15s ease-in-out;
}

.select2-container--default .select2-selection--single {
    height: 38px;
}

.form-select-sm + .select2-container .select2-selection--single,
.form-select-sm + .select2-container .select2-selection--multiple {
    min-height: 32px;
    font-size: .8125rem;
}

.form-select-sm + .select2-container .select2-selection--single {
    height: 32px;
}

.form-select-sm + .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

.form-select-sm + .select2-container .select2-selection--single .select2-selection__arrow {
    height: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: auto;
    margin-right: 26px;
    color: var(--sb-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--sb-muted) transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--sb-muted) transparent;
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 260px;
}

.select2-results__option {
    padding: .55rem .75rem;
    color: var(--sb-text);
    font-size: .875rem;
}

.select2-results__option--disabled {
    color: var(--sb-muted);
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    right: 6px;
    top: 6px;
    color: var(--sb-muted);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 0;
    padding-right: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    color: #fff;
    background: transparent;
    outline: 0;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    min-width: 120px;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .select2-results__option {
    color: var(--sb-text);
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--selected {
    color: #fff;
    background: color-mix(in srgb, var(--sb-primary), transparent 45%);
}

.sb-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 70px;
    padding: 0 28px;
    color: var(--sb-text);
    font-size: 12px;
}

.sb-footer__copyright {
    grid-column: 2;
    text-align: center;
}

.sb-footer nav {
    display: flex;
    grid-column: 3;
    justify-self: end;
    gap: 24px;
}

.sb-footer a,
.sb-footer nav > span {
    color: var(--sb-text);
}

.sb-footer nav > span[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
}

.sb-candidate-file__unavailable,
.sb-candidate-icon-action[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
}

.sb-auth-body {
    background: #f7f7fa;
}

.sb-public-application-body {
    min-width: 320px;
    color: #363341;
    background: #f4f5f8;
}

.sb-public-application-main {
    min-height: 100vh;
}

.sb-public-application-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 48px;
    border-bottom: 1px solid #e1e3e9;
    background: #fff;
}

.sb-public-application-header img {
    width: 168px;
    height: auto;
}

.sb-public-application-header span {
    color: #686477;
    font-size: 13px;
    font-weight: 700;
}

.sb-public-application-layout {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.22fr);
    gap: 64px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 64px;
}

.sb-public-job-summary {
    align-self: start;
    position: sticky;
    top: 32px;
}

.sb-public-job-summary h1 {
    max-width: 620px;
    margin: 8px 0 18px;
    color: #34313e;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.sb-public-job-location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 36px;
    color: #625d70;
    font-weight: 600;
}

.sb-public-job-location i {
    color: var(--sb-primary);
}

.sb-public-job-location span::before {
    content: "\00b7";
    margin-right: 8px;
    color: #aaa6b2;
}

.sb-public-job-summary section {
    padding: 24px 0;
    border-top: 1px solid #dcdde3;
}

.sb-public-job-summary h2 {
    margin: 0 0 9px;
    font-size: 16px;
    font-weight: 700;
}

.sb-public-job-summary section p {
    margin: 0;
    color: #666170;
    line-height: 1.7;
    white-space: pre-line;
}

.sb-public-application-form-wrap {
    padding: 38px;
    border: 1px solid #e0e1e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(49, 45, 62, .07);
}

.sb-public-form-heading {
    margin-bottom: 28px;
}

.sb-public-form-heading h2 {
    margin: 4px 0 7px;
    font-size: 25px;
    font-weight: 700;
}

.sb-public-form-heading > p:last-child,
.sb-public-form-grid small {
    color: #716c7b;
    font-size: 13px;
}

.sb-public-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sb-public-form-grid label > span {
    display: block;
    margin-bottom: 7px;
    color: #4d4858;
    font-size: 13px;
    font-weight: 700;
}

.sb-public-form-grid label > span b {
    color: #c53554;
}

.sb-public-form-grid .form-control {
    min-height: 42px;
    border-color: #d2d3dc;
    border-radius: 5px;
}

.sb-public-form-grid textarea.form-control {
    min-height: 210px;
    resize: vertical;
}

.sb-public-form-grid .form-control:focus {
    border-color: #776f90;
    box-shadow: 0 0 0 3px rgba(119, 111, 144, .12);
}

.sb-public-form-grid small {
    display: block;
    margin-top: 7px;
    line-height: 1.45;
}

.sb-public-field-full {
    grid-column: 1 / -1;
}

.sb-public-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sb-public-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 20px;
    color: #5f5a68;
    font-size: 13px;
    line-height: 1.5;
}

.sb-public-consent .form-check-input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.sb-public-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    min-height: 44px;
    border-radius: 5px;
}

.sb-public-application-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(660px, calc(100% - 40px));
    min-height: calc(100vh - 144px);
    margin: 0 auto;
    padding: 64px 0;
    text-align: center;
}

.sb-public-application-state h1 {
    margin: 8px 0 12px;
    font-size: 36px;
    font-weight: 700;
}

.sb-public-application-state > p:last-child {
    max-width: 560px;
    margin: 0;
    color: #696472;
    font-size: 16px;
    line-height: 1.7;
}

.sb-public-state-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border-radius: 50%;
    color: #6d6877;
    background: #e5e5eb;
    font-size: 22px;
}

.sb-public-state-icon--success {
    color: #147353;
    background: #dff3e9;
}

.sb-public-state-icon--error {
    color: #a83333;
    background: #f7e1e1;
}

.sb-public-application-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 26px 48px;
    border-top: 1px solid #e1e3e9;
    color: #76717f;
    background: #fff;
    font-size: 12px;
}

@media (max-width: 820px) {
    .sb-public-application-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        width: min(680px, calc(100% - 32px));
        padding-top: 36px;
    }

    .sb-public-job-summary {
        position: static;
    }

    .sb-public-job-summary h1 {
        font-size: 34px;
    }
}

@media (max-width: 540px) {
    .sb-public-application-header {
        min-height: 64px;
        padding: 0 20px;
    }

    .sb-public-application-header img {
        width: 142px;
    }

    .sb-public-application-header span {
        display: none;
    }

    .sb-public-application-layout {
        width: 100%;
        gap: 24px;
        padding: 28px 16px 40px;
    }

    .sb-public-form-grid {
        grid-template-columns: 1fr;
    }

    .sb-public-field-full {
        grid-column: auto;
    }

    .sb-public-application-form-wrap {
        padding: 22px 18px;
    }

    .sb-public-submit {
        width: 100%;
    }

    .sb-public-application-state h1 {
        font-size: 29px;
    }

    .sb-public-application-footer {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 22px 20px;
    }
}

.sb-login-screen {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.sb-unsubscribe-screen {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    overflow: hidden;
}

.sb-login-bg::before,
.sb-login-bg::after,
.sb-login-screen::before,
.sb-login-screen::after,
.sb-unsubscribe-screen::before,
.sb-unsubscribe-screen::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #efeffb;
}

.sb-login-bg::before {
    width: 180px;
    height: 180px;
    left: 36px;
    top: 185px;
}

.sb-login-bg::after {
    width: 410px;
    height: 360px;
    left: -120px;
    bottom: 45px;
}

.sb-login-screen::before {
    width: 620px;
    height: 300px;
    left: -60px;
    top: 380px;
    border-radius: 45%;
}

.sb-login-screen::after {
    width: 360px;
    height: 220px;
    left: 250px;
    bottom: -95px;
}

.sb-unsubscribe-screen::before {
    width: 560px;
    height: 260px;
    right: -110px;
    top: 18%;
    border-radius: 45%;
}

.sb-unsubscribe-screen::after {
    width: 260px;
    height: 260px;
    left: 12%;
    bottom: -90px;
}

.sb-login-card {
    position: relative;
    z-index: 1;
    width: min(410px, calc(100vw - 32px));
    padding: 40px 34px 30px;
    border-radius: 5px;
    border: 1px solid var(--sb-border);
    background: var(--sb-surface);
    box-shadow: 0 12px 25px rgba(40, 36, 58, .12);
}

.sb-unsubscribe-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 32px));
    padding: 44px 40px 38px;
    border: 1px solid #ebe9f4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(40, 36, 58, .12);
    text-align: center;
}

.sb-unsubscribe-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 26px 0 18px;
    border-radius: 50%;
    font-size: 26px;
}

.sb-unsubscribe-icon--success {
    color: #16794f;
    background: #dff6ec;
}

.sb-unsubscribe-icon--warning {
    color: #9a6400;
    background: #fff1cc;
}

.sb-unsubscribe-icon--error {
    color: #b42318;
    background: #fde4e1;
}

.sb-unsubscribe-card h1 {
    margin: 0 0 12px;
    color: #4f4b57;
    font-size: 28px;
    font-weight: 700;
}

.sb-unsubscribe-card p {
    margin: 0 auto 26px;
    max-width: 420px;
    color: #6a6578;
    line-height: 1.6;
}

.sb-login-card h1 {
    margin: 4px 0 0;
    color: var(--sb-heading);
    font-size: 34px;
    font-weight: 400;
}

.sb-login-card .sb-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 28px;
    font-size: clamp(18px, 5vw, 26px);
    line-height: 1.2;
}

.sb-login-brand-mark {
    flex: 0 0 37px;
    width: 37px;
    height: 40px;
    overflow: hidden;
}

.sb-login-brand-name {
    white-space: nowrap;
}

.sb-login-brand .sb-login-logo-img {
    /* Display only the existing brand symbol; the name is responsive, single-line text. */
    width: 120px;
    max-width: none;
    height: auto;
    margin: 0;
}

.sb-login-card h2 {
    color: var(--sb-heading);
    font-size: 22px;
    font-weight: 700;
}

.sb-login-card p,
.sb-login-card label {
    color: var(--sb-text);
}

.sb-login-card .form-control {
    min-height: 36px;
}

.sb-remember {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.sb-create-account {
    margin: 18px 0 0;
    text-align: center;
}

[data-bs-theme="dark"] .sb-login-bg {
    opacity: .36;
    filter: saturate(.75) brightness(.65);
}

.sb-social-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #9994a8;
}

.sb-social-divider::before,
.sb-social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dddbe5;
}

.sb-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 25px;
}

.sb-socials a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: #e9eefc;
}

.sb-socials a:nth-child(2) { background: #dcf2ff; color: #1da1f2; }
.sb-socials a:nth-child(3) { background: #fde9e7; color: #db4437; }

.sb-legacy-module {
    display: grid;
    gap: 18px;
}

.sb-module-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -24px -24px 0;
    padding: 10px 14px;
    overflow-x: auto;
    color: #fff;
}

.sb-module-toolbar-primary {
    background: #1f7792;
}

.sb-module-toolbar-gold {
    background: #a98c3b;
}

.sb-module-toolbar .btn,
.sb-toolbar-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.sb-module-toolbar .btn:hover,
.sb-module-toolbar .btn:focus {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.sb-toolbar-check {
    margin: 0;
    padding: 6px 4px;
}

.sb-toolbar-check .form-check-input {
    margin: 0;
    border-color: rgba(255, 255, 255, .75);
}

.sb-toolbar-spacer {
    flex: 1 0 24px;
}

.sb-module-toolbar .sb-icon-only {
    width: 34px;
    justify-content: center;
    padding-inline: 0;
}

.sb-module-toolbar .sb-toolbar-alert {
    background: #ff5261;
}

.sb-module-toolbar .sb-toolbar-cta {
    background: #10bdea;
    border-radius: 8px;
}

.sb-module-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.sb-module-head h1 {
    margin: 0;
    color: #fb0d68;
    font-size: 22px;
    font-weight: 600;
}

.sb-kicker {
    margin: 0 0 4px;
    color: var(--bs-secondary-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-module-search {
    position: relative;
    min-width: min(420px, 100%);
}

.sb-module-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    color: var(--bs-secondary-color);
    transform: translateY(-50%);
}

.sb-module-search .form-control {
    padding-left: 38px;
}

.sb-table-card {
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    box-shadow: 0 12px 28px rgba(31, 39, 70, .05);
}

.sb-access-control-page {
    display: grid;
    gap: 16px;
}

.sb-access-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
}

.sb-access-preview span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--sb-border);
    border-radius: 5px;
    color: var(--sb-text);
    background: color-mix(in srgb, var(--sb-bg), var(--sb-surface) 55%);
    font-size: 12px;
    font-weight: 700;
}

.sb-access-layout {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.sb-access-layout.is-context-free {
    grid-template-columns: minmax(0, 1fr);
}

.sb-access-sidebar,
.sb-access-main {
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface);
    box-shadow: 0 12px 28px rgba(31, 39, 70, .05);
}

.sb-access-sidebar {
    padding: 16px;
}

.sb-access-context-label {
    margin: 0 0 6px;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-access-sidebar .form-label {
    color: var(--sb-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.sb-access-summary {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--sb-border);
}

.sb-access-summary dl {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    font-size: 12px;
}

.sb-access-summary dt {
    color: var(--sb-muted);
    font-weight: 800;
}

.sb-access-summary dd {
    min-width: 0;
    margin: 0;
    color: var(--sb-heading);
    overflow-wrap: anywhere;
}

.sb-access-main {
    padding: 16px;
    overflow: hidden;
}

.sb-access-panel {
    display: none;
}

.sb-access-panel.active {
    display: block;
}

.sb-access-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sb-access-panel-head h2 {
    margin: 0;
    color: var(--sb-heading);
    font-size: 16px;
    font-weight: 800;
}

.sb-master-data-subtitle {
    margin: 3px 0 0;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-master-data-divider {
    height: 1px;
    margin: 24px 0 18px;
    background: var(--sb-border);
}

.sb-geography-heading {
    align-items: flex-start;
}

.sb-geography-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sb-geography-types {
    flex: 0 0 auto;
}

.sb-geography-types .btn {
    min-height: 38px;
    font-size: 12px;
    font-weight: 700;
}

.sb-geography-search {
    display: flex;
    flex: 1 1 560px;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.sb-geography-search > .form-select {
    width: min(220px, 35%);
}

.sb-geography-search .input-group {
    max-width: 480px;
}

.sb-geography-table-wrap {
    min-height: 270px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
}

.sb-geography-table {
    min-width: 820px;
}

.sb-geography-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    color: var(--sb-muted);
    font-size: 12px;
}

.sb-geography-pagination .btn.disabled {
    color: var(--sb-text);
    opacity: 1;
}

.sb-access-filter {
    max-width: 360px;
    margin-bottom: 12px;
}

.sb-access-tree-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sb-access-tree-toolbar .sb-access-filter {
    position: relative;
    flex: 1 1 320px;
    margin: 0;
}

.sb-access-tree-toolbar .sb-access-filter > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12px;
    color: var(--sb-muted);
    transform: translateY(-50%);
}

.sb-access-tree-toolbar .sb-access-filter .form-control {
    padding-left: 34px;
}

.sb-permission-tree {
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    overflow: hidden;
}

.sb-permission-node + .sb-permission-node {
    border-top: 1px solid var(--sb-border);
}

.sb-permission-node-head {
    display: grid;
    grid-template-columns: 28px 22px 24px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 7px 12px;
    background: color-mix(in srgb, var(--sb-surface), var(--sb-border) 9%);
}

.sb-permission-node-head strong,
.sb-permission-node-head span {
    display: block;
}

.sb-permission-node-head strong {
    color: var(--sb-heading);
    font-size: 13px;
}

.sb-permission-node-head span {
    color: var(--sb-muted);
    font-size: 11px;
}

.sb-permission-toggle {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: var(--sb-muted);
    background: transparent;
}

.sb-permission-toggle:hover:not(:disabled) {
    color: var(--sb-heading);
    background: color-mix(in srgb, var(--sb-border), transparent 45%);
}

.sb-permission-toggle:disabled {
    opacity: .25;
}

.sb-permission-node.is-collapsed > .sb-permission-node-head .sb-permission-toggle i {
    transform: rotate(-90deg);
}

.sb-permission-node.is-collapsed > .sb-permission-node-body {
    display: none;
}

.sb-permission-node-icon {
    color: var(--sb-pink);
    text-align: center;
}

.sb-permission-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px 12px;
    padding: 10px 14px 12px 70px;
}

.sb-permission-action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 30px;
    color: var(--sb-text);
    font-size: 12px;
}

.sb-permission-action.is-access {
    color: var(--sb-heading);
    font-weight: 700;
}

.sb-permission-children {
    margin-left: 30px;
    border-top: 1px solid var(--sb-border);
    border-left: 2px solid color-mix(in srgb, var(--sb-pink), transparent 75%);
}

.sb-permission-children > .sb-permission-node + .sb-permission-node {
    border-top: 1px solid var(--sb-border);
}

.sb-access-panel .table {
    margin-bottom: 0;
}

.sb-group-table {
    min-width: 1120px;
}

.sb-group-table thead th {
    border: 0;
    background: #ff5261;
    color: #fff;
    font-weight: 800;
}

.sb-group-table tbody td {
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    font-size: 14px;
}

.sb-group-row td {
    background: rgba(33, 37, 41, .035);
    font-weight: 700;
}

.sb-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.sb-group-toggle i {
    width: 14px;
}

.sb-activity-record-title {
    color: var(--sb-heading);
    font-weight: 600;
    line-height: 1.35;
}

.sb-activity-record-body {
    margin-top: 3px;
    color: var(--sb-text);
    line-height: 1.45;
    white-space: pre-line;
}

.sb-activity-page [data-activity-row] > td {
    vertical-align: top;
}

.sb-activity-page [data-activity-row] > td:nth-child(2) {
    white-space: nowrap;
}

.sb-activity-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.sb-activity-row-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sb-activity-detail-grid dt {
    margin-bottom: 3px;
    color: var(--sb-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.sb-activity-detail-grid dd {
    margin: 0;
    color: var(--sb-text);
    overflow-wrap: anywhere;
}

.sb-activity-detail-copy {
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    background: var(--sb-surface-2);
    color: var(--sb-text);
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.sb-module-toolbar .sb-toolbar-muted {
    background: rgba(255, 255, 255, .18);
    opacity: .82;
}

.sb-compact-form {
    display: grid;
    gap: 10px;
}

.sb-compact-form label,
.sb-approval-form label,
.sb-compact-form label span,
.sb-approval-form label span {
    color: #ff5261;
}

.sb-compact-form small {
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.sb-inline-check {
    display: flex !important;
    align-items: center;
    gap: 7px;
}

.sb-section-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 8px 0;
}

.sb-simple-table {
    min-width: 760px;
}

.sb-simple-table thead th {
    background: #ff5261;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.sb-simple-table td,
.sb-simple-table th {
    border-color: var(--bs-border-color);
    font-size: 13px;
}

.sb-approval-form {
    display: grid;
    gap: 12px;
    max-width: 840px;
    margin: 0 auto;
}

.sb-approval-form fieldset {
    display: grid;
    gap: 4px;
    margin: 0;
}

.sb-approval-form legend {
    margin-bottom: 4px;
    color: var(--bs-secondary-color);
    font-size: 12px;
    font-weight: 800;
}

.sb-approval-form fieldset label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.sb-timeline {
    display: grid;
    gap: 12px;
}

.sb-timeline p {
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid #ff5261;
}

.sb-error-screen {
    position: relative;
    min-height: 100vh;
    display: grid;
    justify-items: center;
    align-content: start;
    padding-top: 170px;
    overflow: hidden;
}

.sb-error-screen::after {
    content: "";
    position: absolute;
    left: -40px;
    right: -40px;
    bottom: -120px;
    height: 300px;
    background: #fff0f4;
    transform: rotate(-2deg);
}

.sb-error-copy {
    z-index: 1;
    text-align: center;
}

.sb-error-copy h1 {
    color: #5a566a;
    font-size: 30px;
    font-weight: 700;
}

.sb-error-person {
    position: relative;
    z-index: 1;
    width: 190px;
    height: 390px;
    margin-top: 90px;
}

.sb-error-person .head {
    position: absolute;
    left: 68px;
    top: 0;
    width: 58px;
    height: 70px;
    border-radius: 45%;
    background: #f1b49a;
    box-shadow: inset 0 12px 0 #78675f;
}

.sb-error-person .body {
    position: absolute;
    left: 50px;
    top: 70px;
    width: 90px;
    height: 170px;
    border-radius: 35px 35px 18px 18px;
    background: #008878;
}

.sb-error-person .body::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 34px;
    width: 36px;
    height: 80px;
    background: #fff8d7;
}

.sb-error-person .arm,
.sb-error-person .leg {
    position: absolute;
    background: #5c4a42;
}

.sb-error-person .arm {
    top: 100px;
    width: 80px;
    height: 18px;
    background: #f1b49a;
}

.sb-error-person .arm.left {
    left: 2px;
    transform: rotate(30deg);
}

.sb-error-person .arm.right {
    right: -2px;
    transform: rotate(-30deg);
}

.sb-error-person .leg {
    top: 232px;
    width: 32px;
    height: 135px;
    border-radius: 16px;
}

.sb-error-person .leg.left { left: 58px; }
.sb-error-person .leg.right { right: 58px; }

@media (max-width: 1199.98px) {

    .sb-active-record-results .sb-active-results-grid {
        grid-template-columns: 1fr;
    }

    .sb-calendar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .sb-top-row {
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .sb-primary-nav {
        display: none;
        width: 100%;
        flex-wrap: wrap;
        padding: 10px 16px;
    }

    .sb-nav-group {
        width: 100%;
    }

    .sb-nav-group > summary {
        width: 100%;
    }

    .sb-nav-group-menu,
    .sb-nav-group .sb-nav-group .sb-nav-group-menu {
        position: static;
        max-width: none;
        max-height: none;
        margin: 4px 0 4px 16px;
        box-shadow: none;
    }

    .sb-primary-nav.is-open {
        display: flex;
    }

    .sb-action-bar,
    .sb-candidate-commandbar,
    .sb-folder-toolbar {
        flex-wrap: wrap;
        overflow: visible;
    }

    .sb-folder-toolbar {
        gap: 10px 18px;
        padding-block: 10px;
    }

    .sb-search-form {
        grid-template-columns: 1fr;
    }

    .sb-form-header,
    .sb-form-card-head {
        flex-direction: column;
    }

    .sb-active-search-hero,
    .sb-active-search-summary-grid,
    .sb-active-results-grid,
    .sb-placeholder-shell,
    .sb-candidate-layout,
    .sb-active-record-grid {
        grid-template-columns: 1fr;
    }

    .sb-placeholder-status {
        border-top: 1px solid var(--sb-border);
        border-left: 0;
    }

    .sb-candidate-sidebar {
        padding-right: 0;
        border-right: 0;
    }

    .sb-candidate-summary-card {
        min-height: 0;
    }

    .sb-active-search-actions {
        justify-content: flex-start;
    }

    .sb-active-search-actions strong {
        text-align: left;
    }

    .sb-criteria-grid {
        grid-template-columns: 1fr;
    }

    .sb-folder-layout {
        grid-template-columns: 1fr;
    }

    .sb-folder-share {
        grid-template-columns: 1fr;
    }

    .sb-access-layout {
        grid-template-columns: 1fr;
    }

    .sb-access-tree-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-access-tree-toolbar .sb-access-filter {
        flex-basis: auto;
        max-width: none;
    }

    .sb-access-tree-toolbar .btn-group {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sb-geography-toolbar,
    .sb-geography-search {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-geography-search {
        flex-basis: auto;
    }

    .sb-geography-search > .form-select,
    .sb-geography-search .input-group {
        width: 100%;
        max-width: none;
    }

    .sb-geography-types {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sb-permission-actions {
        grid-template-columns: 1fr;
        padding-left: 42px;
    }

    .sb-permission-children {
        margin-left: 12px;
    }
}

@media (max-width: 767.98px) {
    .sb-page {
        padding: 16px;
    }

    .sb-active-record-results .sb-active-results-toolbar {
        gap: 10px;
        padding: 10px;
    }

    .sb-active-record-results .sb-active-results-toolbar > .sb-results-activity-link {
        justify-content: center;
        margin-inline-start: 0;
        width: 100%;
    }

    .sb-active-candidate-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .sb-active-candidate-actions .btn {
        min-width: 0;
    }

    .sb-active-candidate-card header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sb-active-activity header {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 10px;
    }

    .sb-active-activity-controls {
        justify-items: start;
        text-align: left;
    }

    .sb-active-activity-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-active-activity-toolbar > label {
        min-width: 0;
    }

    .sb-active-activity-toolbar > div .btn {
        flex: 1 1 auto;
    }

    .sb-workspace-tabs {
        padding-inline: 8px;
    }

    .sb-workspace-tab {
        min-width: 140px;
    }


    .sb-footer,
    .sb-results-head,
    .sb-pagination-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .sb-footer {
        display: flex;
        align-items: center;
    }

    .sb-footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sb-folder-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-folder-owner-filter {
        max-width: none;
    }

    .sb-module-toolbar {
        margin-inline: -16px;
    }

    .sb-legacy-commandbar {
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .sb-candidate-commandbar {
        margin-inline: -16px;
        padding-inline: 16px;
    }
.sb-module-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sb-module-head {
        flex-direction: column;
    }

    .sb-module-search {
        min-width: 100%;
    }

    .sb-personal-editor,
    .sb-status-editor,
    .sb-communication-editor,
    .sb-availability-editor,
    .sb-document-upload-editor,
    .sb-communication-toggle-grid,
    .sb-availability-toggle-grid,
    .sb-certification-editor-row,
    .sb-education-editor-row,
    .sb-work-editor-row {
        grid-template-columns: 1fr;
    }

    .sb-assessment-editor-row .sb-candidate-icon-action,
    .sb-certification-editor-row .sb-candidate-icon-action,
    .sb-education-editor-row .sb-candidate-icon-action,
    .sb-work-editor-row .sb-candidate-icon-action {
        width: 100%;
    }

    .sb-editor-wide {
        grid-column: auto;
    }

    .sb-work-editor-row > .sb-editor-check,
    .sb-work-editor-row > .sb-candidate-icon-action {
        margin-top: 0;
    }

}

/* Candidate registration */
.sb-candidate-create {
    max-width: 1480px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.sb-candidate-create__header {
    align-items: center;
}

.sb-candidate-create__notice {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px 16px;
    color: #3f4655;
    background: #f6f8fb;
    border-block: 1px solid #dfe3ea;
}

.sb-candidate-create__notice i {
    color: #0b7f8c;
}

.sb-candidate-create__section {
    padding: 20px 24px;
    margin-top: 14px;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-surface);
}

.sb-candidate-create__resume-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 16px 24px;
    border: 1px solid var(--sb-border);
    border-left: 4px solid #087f8c;
    border-radius: 8px;
    background: var(--sb-surface);
}

.sb-candidate-create__resume-summary > i { color: #087f8c; font-size: 22px; }
.sb-candidate-create [hidden] { display: none !important; }
.sb-candidate-create__resume-summary > div { display: grid; gap: 3px; min-width: 0; flex: 1; }
.sb-candidate-create__resume-summary span { overflow-wrap: anywhere; }
.sb-candidate-create__resume-summary small,
.sb-candidate-create__resume-replacement p { color: var(--sb-muted); }
.sb-candidate-create__resume-replacement { margin-top: 12px; }
.sb-candidate-create__history-description { grid-column: 1 / -1; }
.sb-candidate-create .sb-candidate-create__history-description .ck-editor__editable {
    min-height: 120px;
    max-height: 240px;
    overflow-y: auto;
}

.sb-candidate-create__section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.sb-candidate-create__section-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sb-candidate-create__section-heading h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.sb-candidate-create__section-heading p {
    margin: 0;
    color: #6d7280;
    font-size: 13px;
}

.sb-step-number {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #087f8c;
    font-size: 12px;
    font-weight: 700;
}

.sb-candidate-create__segmented {
    width: min(520px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sb-candidate-create__segmented span {
    justify-content: center;
    gap: 8px;
}

.sb-candidate-create__methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 12px;
    max-width: 1080px;
}

.sb-resume-forwarding-guide .modal-body section + section { border-top: 1px solid var(--sb-border); margin-top: 20px; padding-top: 20px; }
.sb-resume-forwarding-guide figure { margin: 12px 0; }
.sb-resume-forwarding-guide img { display: block; max-width: 100%; height: auto; border: 1px solid var(--sb-border); border-radius: 6px; }
.sb-resume-forwarding-guide figcaption { margin-top: 6px; color: var(--sb-muted); font-size: 12px; }
.sb-resume-forwarding-guide a, .sb-resume-forwarding-guide code { overflow-wrap: anywhere; }
.sb-resume-forwarding-guide summary { cursor: pointer; }

.sb-candidate-create__methods button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-align: left;
    border: 1px solid var(--sb-border);
    border-radius: 8px;
    background: var(--sb-surface);
    color: var(--sb-text);
}

.sb-candidate-create__methods button[aria-pressed="true"] {
    border-color: var(--sb-primary);
    background: var(--sb-bg);
    box-shadow: inset 0 0 0 1px var(--sb-primary);
}

.sb-candidate-create__methods button:focus-visible {
    outline: 2px solid var(--sb-primary);
    outline-offset: 3px;
}

.sb-candidate-create__methods button > i { font-size: 22px; color: var(--sb-primary); }
.sb-candidate-create__methods button > span { display: grid; gap: 4px; }
.sb-candidate-create__methods small { color: var(--sb-muted); font-size: 12px; }
.sb-candidate-create__batch { margin-top: 22px; }
.sb-candidate-create__batch-heading,
.sb-candidate-create__batch-upload { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.sb-candidate-create__batch-heading { align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sb-candidate-create__batch-heading h3 { font-size: 16px; margin: 0 0 6px; }
.sb-candidate-create__batch-heading p { color: var(--sb-muted); margin: 0; }
.sb-candidate-create__batch-upload .sb-field { flex: 1 1 280px; max-width: 560px; margin: 0; }
.sb-candidate-create__batch-upload > button { align-self: center; }

.sb-resume-dropzone {
    margin-top: 22px;
    width: 100%;
}

.sb-resume-processing:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 24px;
    margin: 16px 0;
    text-align: center;
    background: var(--sb-surface, var(--bs-body-bg));
    color: var(--sb-text);
    border: 1px solid var(--sb-border);
    border-radius: 10px;
}

.sb-resume-processing__spinner {
    width: 38px;
    height: 38px;
    color: var(--bs-primary, #ff1678);
    margin-bottom: 6px;
}

.sb-resume-processing h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sb-resume-processing p {
    margin: 0;
}

.sb-resume-processing__file {
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--sb-bg);
}

.sb-resume-processing small {
    color: var(--sb-muted);
    max-width: 480px;
}

.sb-resume-dropzone > label {
    display: grid;
    min-height: 170px;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 24px;
    cursor: pointer;
    border: 2px dashed #b8c1cc;
    background: #fbfcfd;
    color: #4c5360;
    transition: border-color .15s ease, background .15s ease;
}

.sb-resume-dropzone > label:hover,
.sb-resume-dropzone > label.is-dragging {
    border-color: #087f8c;
    background: #f1faf9;
}

.sb-resume-dropzone > label i {
    color: #087f8c;
    font-size: 28px;
}

.sb-resume-dropzone > label span {
    color: #747b88;
    font-size: 12px;
}

.sb-resume-dropzone__selection {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #dfe3ea;
}

.sb-resume-dropzone__selection span {
    min-width: 0;
    margin-right: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-country-code {
    max-width: 84px;
}

.sb-inline-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
    color: #5d6370;
    font-size: 12px;
}

.sb-check-stack {
    display: grid;
    gap: 9px;
    min-height: 38px;
    align-content: center;
}

.sb-check-stack label {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sb-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.sb-token {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    max-width: 100%;
    padding: 5px 8px;
    background: #edf5f5;
    color: #24545a;
    font-size: 12px;
}

.sb-token > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-token button,
.sb-icon-action {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #68707d;
}

.sb-token button {
    width: 20px;
    height: 20px;
}

.sb-optional-label {
    color: #767c89;
    font-size: 12px;
}

.sb-repeat-list {
    display: grid;
    gap: 12px;
}

.sb-repeat-row {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px 50px 16px 16px;
    border: 1px solid #dfe3ea;
    background: #fbfcfd;
}

.sb-repeat-row--skill {
    grid-template-columns: minmax(220px, 2fr) minmax(100px, .6fr) minmax(160px, 1fr);
}

.sb-repeat-row--history {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sb-repeat-row--certification {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sb-repeat-row > .sb-icon-action {
    position: absolute;
    top: 12px;
    right: 10px;
}

.sb-candidate-create__footer {
    display: grid;
    gap: 18px;
    padding: 24px;
    background: #f8fafb;
    border-bottom: 1px solid #dfe3ea;
    margin-top: 14px;
    border-radius: 8px;
}

.sb-candidate-create__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

[data-bs-theme="dark"] .sb-candidate-create .sb-repeat-row,
[data-bs-theme="dark"] .sb-candidate-create .sb-work-editor-row,
[data-bs-theme="dark"] .sb-candidate-create .sb-education-editor-row {
    border-color: #46516f;
    background: #2f3855;
    color: #f2f4ff;
}

[data-bs-theme="dark"] .sb-candidate-create .sb-repeat-row label,
[data-bs-theme="dark"] .sb-candidate-create .sb-repeat-row label span,
[data-bs-theme="dark"] .sb-candidate-create .sb-work-editor-row label,
[data-bs-theme="dark"] .sb-candidate-create .sb-education-editor-row label {
    color: #dce2ff;
}

[data-bs-theme="dark"] .sb-candidate-create .form-control,
[data-bs-theme="dark"] .sb-candidate-create .form-select,
[data-bs-theme="dark"] .sb-candidate-create .input-group-text {
    border-color: #526080;
    background-color: #303a58;
    color: #f8f9ff;
}

.sb-candidate-create .invalid-feedback {
    min-height: 1rem;
    margin-top: .35rem;
}

[data-bs-theme="dark"] .sb-candidate-create__notice,
[data-bs-theme="dark"] .sb-candidate-create__footer,
[data-bs-theme="dark"] .sb-resume-dropzone__selection,
[data-bs-theme="dark"] .sb-resume-dropzone > label,
[data-bs-theme="dark"] .sb-token {
    color: var(--sb-text);
    background: var(--sb-surface-2);
    border-color: var(--sb-border);
}

[data-bs-theme="dark"] .sb-candidate-create__section {
    border-color: var(--sb-border);
}

[data-bs-theme="dark"] .sb-candidate-create__section-heading p,
[data-bs-theme="dark"] .sb-candidate-create .sb-inline-check,
[data-bs-theme="dark"] .sb-candidate-create .sb-optional-label,
[data-bs-theme="dark"] .sb-resume-dropzone > label span {
    color: var(--sb-muted);
}

[data-bs-theme="dark"] .sb-resume-dropzone > label:hover,
[data-bs-theme="dark"] .sb-resume-dropzone > label.is-dragging {
    border-color: var(--sb-accent);
    background: color-mix(in srgb, var(--sb-accent), var(--sb-surface-2) 88%);
}

[data-bs-theme="dark"] .modal-content.sb-modal,
[data-bs-theme="dark"] .modal-content.sb-modal .modal-header,
[data-bs-theme="dark"] .modal-content.sb-modal .modal-body,
[data-bs-theme="dark"] .modal-content.sb-modal .modal-footer {
    color: var(--sb-text);
    background: var(--sb-surface);
    border-color: var(--sb-border);
}

[data-bs-theme="dark"] .modal-content.sb-modal .sb-assessment-editor-row,
[data-bs-theme="dark"] .modal-content.sb-modal .sb-certification-editor-row,
[data-bs-theme="dark"] .modal-content.sb-modal .sb-work-editor-row,
[data-bs-theme="dark"] .modal-content.sb-modal .sb-education-editor-row {
    color: var(--sb-text);
    background: var(--sb-surface-2);
    border-color: var(--sb-border);
}

@media (max-width: 991.98px) {
    .sb-repeat-row--history,
    .sb-repeat-row--skill,
    .sb-repeat-row--certification {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-candidate-create__section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .sb-candidate-create__section {
        padding: 22px 14px 26px;
    }

    .sb-candidate-create__section-heading,
    .sb-candidate-create__resume-summary,
    .sb-resume-dropzone__selection {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-repeat-row--history,
    .sb-repeat-row--skill,
    .sb-repeat-row--certification {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-candidate-create__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Knowledge Base */
.sb-kb-page { min-height: calc(100vh - 150px); background: #f5f7fa; }
.sb-kb-header { padding: 22px 24px 18px; border-bottom: 1px solid #dfe4ea; background: #fff; }
.sb-kb-header__actions { display: flex; gap: 8px; align-items: center; }
.sb-kb-tabs { display: flex; gap: 24px; padding: 0 24px; border-bottom: 1px solid #dfe4ea; background: #fff; }
.sb-kb-tabs button { display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #5f6672; font-weight: 700; }
.sb-kb-tabs button.active { border-bottom-color: #ff1f68; color: #253f48; }
.sb-kb-tab-count { min-width: 22px; padding: 2px 6px; border-radius: 8px; background: #eef1f4; color: #555e68; font-size: 11px; text-align: center; }
.sb-kb-panel { padding: 20px 24px 30px; }
.sb-search-control { position: relative; }
.sb-search-control > i { position: absolute; z-index: 2; top: 50%; left: 13px; color: #747d88; transform: translateY(-50%); }
.sb-search-control .form-control { padding-left: 38px; }
.sb-kb-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sb-kb-card { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 190px; overflow: hidden; border: 1px solid #dce2e8; border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgb(30 46 55 / 5%); }
.sb-kb-card__media { position: relative; display: grid; min-height: 100%; place-items: center; overflow: hidden; background: #203f49; color: #fff; }
.sb-kb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sb-kb-card__media > i { font-size: 35px; }
.sb-kb-card__media > span { position: absolute; right: 8px; bottom: 8px; left: 8px; padding: 3px 5px; background: rgb(10 23 29 / 75%); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sb-kb-card__body { display: flex; min-width: 0; padding: 16px; flex-direction: column; }
.sb-kb-card__meta { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: #6a737e; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sb-kb-card__category { flex: 1 1 100px; min-width: 0; overflow-wrap: anywhere; }
.sb-kb-card__status-tools { display: flex; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 6px; }
.sb-kb-card__status-tools .sb-kb-status { flex-shrink: 0; white-space: nowrap; }
.sb-kb-card h2 { margin: 9px 0 7px; color: #263f49; font-size: 16px; line-height: 1.3; }
.sb-kb-card p { display: -webkit-box; overflow: hidden; margin: 0 0 14px; color: #606874; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sb-kb-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.sb-kb-card__footer small { overflow: hidden; color: #747c86; text-overflow: ellipsis; white-space: nowrap; }
.sb-kb-card__admin { display: flex; flex-shrink: 0; gap: 3px; padding: 3px; background: rgb(255 255 255 / 94%); border-radius: 5px; }
.sb-kb-card__admin button { display: grid; width: 27px; height: 27px; padding: 0; place-items: center; border: 0; background: transparent; color: #59636e; }
.sb-kb-status { display: inline-flex; width: fit-content; padding: 3px 7px; border-radius: 8px; background: #e9edf1; color: #59636e; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.sb-kb-status.is-published, .sb-kb-status.is-resolved { background: #dff4e8; color: #167347; }
.sb-kb-status.is-open, .sb-kb-status.is-urgent { background: #ffe2e7; color: #ad2b48; }
.sb-kb-status.is-in_progress { background: #e2eefb; color: #245f94; }
.sb-kb-status.is-waiting_on_requester { background: #fff0cc; color: #8a6410; }
.sb-kb-loading, .sb-kb-empty { display: grid; min-height: 180px; place-items: center; grid-column: 1 / -1; border: 1px dashed #cdd4dc; background: #fff; color: #69727d; }
.sb-kb-empty i { margin-bottom: -45px; font-size: 26px; }
.sb-kb-support-table-wrap { border: 1px solid #dce2e8; background: #fff; }
.sb-kb-support-table { margin: 0; vertical-align: middle; }
.sb-kb-support-table th { padding: 11px 14px; background: #edf2f4; color: #53616a; font-size: 11px; text-transform: uppercase; }
.sb-kb-support-table td { padding: 13px 14px; border-color: #e6eaee; color: #555e68; }
.sb-kb-support-table td:first-child { display: grid; gap: 2px; min-width: 240px; }
.sb-kb-support-table td:first-child strong { color: #18718a; font-size: 11px; }
.sb-kb-support-table td:first-child span { color: #2f3f47; font-weight: 700; }
.sb-kb-modal-kicker { color: #14758b; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.sb-kb-reader-content { color: #3f4952; font-size: 14px; line-height: 1.7; }
.sb-kb-video { margin-bottom: 18px; background: #172d35; }
.sb-kb-ticket-detail { display: grid; gap: 18px; }
.sb-kb-ticket-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sb-kb-ticket-meta > span:not(.sb-kb-status) { padding: 3px 8px; border-left: 1px solid #dce2e8; color: #616b75; font-size: 12px; }
.sb-kb-ticket-description { padding: 14px 16px; border-left: 3px solid #ff4b6e; background: #f8fafb; color: #3d4851; white-space: pre-wrap; }
.sb-kb-triage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; padding: 12px; border: 1px solid #dce2e8; background: #f8fafb; }
.sb-kb-triage textarea { grid-column: 1 / -1; }
.sb-kb-conversation { display: grid; gap: 10px; }
.sb-kb-message { padding: 13px 15px; border: 1px solid #dfe4e9; border-left: 3px solid #2b7c88; background: #fff; }
.sb-kb-message.is-internal { border-left-color: #d29c23; background: #fffaf0; }
.sb-kb-message header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #54616a; font-size: 11px; }
.sb-kb-message p { margin: 0; color: #3f4952; white-space: pre-wrap; }
.sb-kb-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.sb-kb-reply .form-check { grid-column: 1; }

[data-bs-theme="dark"] .sb-kb-page { background: #171d21; }
[data-bs-theme="dark"] .sb-kb-header,
[data-bs-theme="dark"] .sb-kb-tabs,
[data-bs-theme="dark"] .sb-kb-card,
[data-bs-theme="dark"] .sb-kb-support-table-wrap,
[data-bs-theme="dark"] .sb-kb-loading,
[data-bs-theme="dark"] .sb-kb-empty,
[data-bs-theme="dark"] .sb-kb-message { border-color: #39444b; background: #222a2f; }
[data-bs-theme="dark"] .sb-kb-tabs button,
[data-bs-theme="dark"] .sb-kb-card p,
[data-bs-theme="dark"] .sb-kb-reader-content,
[data-bs-theme="dark"] .sb-kb-ticket-description,
[data-bs-theme="dark"] .sb-kb-message p { color: #c3cbd0; }
[data-bs-theme="dark"] .sb-kb-tabs button.active,
[data-bs-theme="dark"] .sb-kb-card h2,
[data-bs-theme="dark"] .sb-kb-support-table td:first-child span { color: #f1f4f5; }
[data-bs-theme="dark"] .sb-kb-support-table th,
[data-bs-theme="dark"] .sb-kb-triage,
[data-bs-theme="dark"] .sb-kb-ticket-description { border-color: #39444b; background: #293238; }
[data-bs-theme="dark"] .sb-kb-support-table td { border-color: #39444b; color: #c3cbd0; }
[data-bs-theme="dark"] .sb-kb-message.is-internal { border-left-color: #d6a63c; background: #373122; }
[data-bs-theme="dark"] .sb-kb-card__admin { background: rgb(34 42 47 / 94%); }
[data-bs-theme="dark"] .sb-kb-card__admin button { color: #d1d7da; }
[data-bs-theme="dark"] .sb-kb-card__meta,
[data-bs-theme="dark"] .sb-kb-card__footer small,
[data-bs-theme="dark"] .sb-kb-loading,
[data-bs-theme="dark"] .sb-kb-empty,
[data-bs-theme="dark"] .sb-kb-message header,
[data-bs-theme="dark"] .sb-kb-ticket-meta > span:not(.sb-kb-status),
[data-bs-theme="dark"] .sb-search-control > i { color: var(--sb-muted); }
[data-bs-theme="dark"] .sb-kb-ticket-meta > span:not(.sb-kb-status) { border-color: var(--sb-border); }
[data-bs-theme="dark"] .sb-kb-support-table td:first-child strong,
[data-bs-theme="dark"] .sb-kb-modal-kicker { color: var(--sb-accent); }
[data-bs-theme="dark"] .sb-kb-tab-count {
    border: 1px solid var(--sb-border);
    background: var(--sb-surface);
    color: var(--sb-text);
}

@media (max-width: 1199.98px) { .sb-kb-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
    .sb-kb-triage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .sb-kb-header, .sb-kb-panel { padding-right: 14px; padding-left: 14px; }
    .sb-kb-tabs { gap: 14px; padding: 0 14px; overflow-x: auto; }
.sb-kb-resource-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-kb-card { grid-template-columns: 92px minmax(0, 1fr); }
    .sb-kb-triage, .sb-kb-reply { grid-template-columns: minmax(0, 1fr); }
}

/* Keep informational Bootstrap alerts readable inside dark application workspaces. */
[data-bs-theme="dark"] .sb-app .alert-light {
    --bs-alert-color: var(--sb-text);
    --bs-alert-bg: var(--sb-surface-2);
    --bs-alert-border-color: var(--sb-border);
    --bs-alert-link-color: var(--sb-heading);
    --bs-border-color: var(--sb-border);
    color: var(--sb-text);
    background-color: var(--sb-surface-2);
    border-color: var(--sb-border) !important;
}

[data-bs-theme="dark"] .sb-app .bg-light,
[data-bs-theme="dark"] .sb-app .text-bg-light {
    background-color: var(--sb-surface-2) !important;
    color: var(--sb-text) !important;
}

[data-bs-theme="dark"] .sb-app .text-dark {
    color: var(--sb-text) !important;
}

[data-bs-theme="dark"] .sb-app .btn-light {
    --bs-btn-color: var(--sb-text);
    --bs-btn-bg: var(--sb-surface-2);
    --bs-btn-border-color: var(--sb-border);
    --bs-btn-hover-color: var(--sb-heading);
    --bs-btn-hover-bg: var(--sb-surface);
    --bs-btn-hover-border-color: var(--sb-primary);
    --bs-btn-active-color: var(--sb-heading);
    --bs-btn-active-bg: var(--sb-surface);
    --bs-btn-active-border-color: var(--sb-primary);
}

.sb-confirm-modal .modal-dialog {
    max-width: 470px;
}

.sb-confirm-modal {
    z-index: 1095;
}

.sb-confirm-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--sb-border);
    border-radius: 12px;
    background: var(--sb-surface);
    box-shadow: 0 22px 60px rgb(22 27 42 / 24%);
    color: var(--sb-text);
}

.sb-confirm-modal .modal-header,
.sb-confirm-modal .modal-footer {
    border-color: var(--sb-border);
}

.sb-confirm-modal .modal-header {
    padding: 18px 20px;
}

.sb-confirm-modal__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-confirm-modal__icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sb-pink), transparent 88%);
    color: var(--sb-pink);
}

.sb-confirm-modal--danger .sb-confirm-modal__icon {
    background: rgb(220 53 69 / 12%);
    color: var(--bs-danger);
}

.sb-confirm-modal .modal-title {
    color: var(--sb-heading);
    font-size: 18px;
    font-weight: 800;
}

.sb-confirm-modal .modal-body {
    padding: 22px 20px;
}

.sb-confirm-modal .modal-body p {
    margin: 0;
    color: var(--sb-text);
    font-size: 14px;
    line-height: 1.55;
}

.sb-confirm-modal .modal-footer {
    gap: 8px;
    padding: 14px 20px;
}

[data-bs-theme="dark"] .sb-confirm-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(160%);
}

/* Shared CKEditor treatment for all enhanced textarea controls. */
.sb-text-lead { font-size: 1.2em; }
.sb-text-muted { color: #6b7280; }
.sb-text-small, .text-small { font-size: .85em; }
.text-tiny { font-size: .7em; }
.text-big { font-size: 1.4em; }
.text-huge { font-size: 1.8em; }
.sb-text-callout { border-left: 3px solid #217b80; padding-left: 1em; }
.sb-rich-text-content img { max-width: 100%; height: auto; }
.sb-rich-text-content table { border-collapse: collapse; max-width: 100%; }
.sb-rich-text-content td, .sb-rich-text-content th { border: 1px solid var(--sb-border); padding: .4em; }
.sb-rich-text-content .layout-table > tbody > tr > td { border: none; }
.sb-rich-text-content .todo-list { list-style: none; padding-left: 0; }
.sb-rich-text-content .todo-list__label input { margin-right: .5em; }
.sb-rich-text-content .image-style-side { float: right; margin-left: 1em; max-width: 50%; }
.ck-fullscreen__main-wrapper .ck-editor__editable { max-height: none; }
.ck.ck-editor {
    width: 100%;
}

.ck.ck-editor__main > .ck-editor__editable {
    min-height: 8rem;
    max-height: 24rem;
    overflow-y: auto;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

.ck.ck-toolbar {
    flex-wrap: wrap;
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}

.ck.ck-button,
.ck.ck-button .ck-button__label {
    color: var(--bs-body-color);
}

.ck.ck-button:not(.ck-disabled):hover,
.ck.ck-button.ck-on {
    background: var(--bs-secondary-bg);
}

textarea.is-invalid + .ck-editor .ck-editor__editable {
    border-color: var(--bs-form-invalid-border-color);
}

[data-bs-theme="dark"] .ck.ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: var(--bs-primary);
}

@media (max-width: 575.98px) {
    .sb-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .sb-page-header > .sb-icon-button {
        align-self: flex-end;
    }

    .sb-notifications-page .sb-page-header > .d-flex {
        width: 100%;
    }

    .sb-notifications-page [data-notification-status] {
        flex: 1 1 auto;
    }

    .sb-notification-card {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .sb-notification-card__icon {
        width: 36px;
        height: 36px;
    }

    .sb-notification-card__content span,
    .sb-notification-card__content small {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .sb-notification-card > .sb-status-pill {
        grid-column: 2;
        justify-self: start;
    }

    .sb-access-tree-toolbar .btn-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sb-geography-types {
        grid-template-columns: minmax(0, 1fr);
    }

    .ck.ck-editor__main > .ck-editor__editable {
        min-height: 7rem;
        max-height: 18rem;
    }
}
/* Legacy candidate list actions: selection is separate from the edit link. */
.sb-candidate-entry-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; flex-shrink: 0; max-width: 100%; }
.sb-candidate-detail-heading > .sb-candidate-entry-actions { margin: .4rem .65rem; }
.sb-candidate-entry-actions .sb-candidate-action:disabled { opacity: .5; cursor: default; }
.sb-candidate-entry-row { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; }
.sb-candidate-entry-row > span { min-width: 0; overflow-wrap: anywhere; }
.sb-candidate-entry-row > .form-check-input,
.sb-candidate-history-item > .form-check-input { flex-shrink: 0; }
.sb-candidate-entry-link { padding: 0; border: 0; background: transparent; color: var(--bs-link-color, #006ab5); text-align: left; font: inherit; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.sb-candidate-entry-link:hover { text-decoration: underline; }
.sb-candidate-entry-link:focus-visible { outline: 2px solid var(--bs-primary, #ff006e); outline-offset: 2px; }
.sb-candidate-view-page [data-candidate-entry-mode] button[hidden] { display: none !important; }
.sb-candidate-file.has-selection { grid-template-columns: auto minmax(0, 1fr) auto; }
.sb-candidate-entry-link > i { font-size: .8em; margin-inline-start: .2rem; }
.sb-candidate-view-page { container-type: inline-size; }
@container (max-width: 767.98px) {
    .sb-candidate-view-page .sb-candidate-layout, .sb-candidate-identity, .sb-candidate-administrative-grid { grid-template-columns: minmax(0, 1fr); }
    .sb-candidate-identity-main { grid-row: 1; }
    .sb-candidate-profile-meta { text-align: center; }
}
.sb-partner-candidate-name {
    padding: 0;
    border: 0;
    background: transparent;
    color: #00609a;
    font: inherit;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
}
.sb-partner-candidate-name:hover { color: var(--sb-primary); text-decoration: underline; }
.sb-partner-candidate-name:focus-visible { outline: 2px solid var(--sb-pink); outline-offset: 3px; }
.sb-partner-preview > .sb-partner-preview-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
}
.sb-partner-preview-header h2 { margin: 0; color: var(--sb-heading); }
.sb-partner-preview-header nav { display: flex; gap: 8px; }
.sb-active-candidate-card.sb-partner-preview > .sb-partner-preview-section {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--sb-border);
}
.sb-partner-preview-section > h3 {
    margin: 0;
    padding: 10px 16px;
    background: var(--sb-bg);
    color: var(--sb-heading);
}
.sb-partner-preview-body { padding: 16px; overflow-wrap: anywhere; }
.sb-partner-experience { margin-inline-start: 8px; font-weight: 400; }
.sb-outreach-configuration {
    --bs-border-color: var(--sb-border);
    background: var(--sb-surface);
    color: var(--sb-text);
    border: 1px solid var(--sb-border);
    border-radius: 12px;
    padding: clamp(12px, 2vw, 24px);
    margin-bottom: 16px;
    min-width: 0;
}
.sb-outreach-configuration > fieldset { min-width: 0; }
.sb-outreach-header, .sb-outreach-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.sb-active-detail-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sb-border); }
.sb-active-detail-navigation .sb-record-tabs { border-bottom: 0; padding: 0; margin: 0; min-width: 0; }
.sb-active-detail-navigation > .btn { flex-shrink: 0; min-height: 40px; }
.sb-active-detail-navigation .nav-link { min-height: 40px; }
.sb-outreach-heading { flex: 1 1 300px; min-width: 0; }
.sb-outreach-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sb-outreach-header-actions .btn { min-height: 40px; white-space: normal; }
.sb-outreach-header h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 6px; color: var(--sb-heading); }
.sb-outreach-header p { margin: 0; }
.sb-outreach-required { margin: 12px 0 20px; }
.sb-outreach-card { border: 1px solid var(--sb-border); border-radius: 8px; margin-bottom: 20px; min-width: 0; }
.sb-outreach-configuration .sb-outreach-section-heading {
    background: var(--sb-bg);
    color: var(--sb-heading);
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid var(--sb-border);
    border-radius: 8px 8px 0 0;
}
[data-bs-theme="dark"] .sb-outreach-configuration .sb-outreach-section-heading {
    background: var(--sb-surface-2);
}
.sb-outreach-card-body, .sb-outreach-message-fields { display: grid; gap: 18px; min-width: 0; }
.sb-outreach-card-body { padding: 20px; }
.sb-outreach-field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.sb-outreach-field > label:not(.sb-outreach-choice), .sb-outreach-field > span { font-weight: 600; color: var(--sb-heading); }
.sb-outreach-configuration .form-control, .sb-outreach-configuration .form-select { width: 100%; min-width: 0; }
.sb-outreach-options, .sb-outreach-response-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.sb-outreach-configuration .sb-outreach-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.5;
    min-width: 0;
}
.sb-outreach-choice .form-check-input { flex: 0 0 auto; float: none; margin: .2em 0 0; }
.sb-outreach-choice > span { min-width: 0; overflow-wrap: anywhere; }
.sb-outreach-choice:focus-within { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.sb-outreach-channels { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-outreach-wait { max-width: 420px; }
.sb-outreach-reply-heading { margin: 28px 0 20px; }
.sb-outreach-reply-heading h4 { font-size: 1rem; margin-bottom: 12px; }
.sb-outreach-attachment { border-top: 1px solid var(--sb-border); padding-top: 18px; }
.sb-outreach-variables, .sb-outreach-attachment { overflow-wrap: anywhere; }
.sb-outreach-variables .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.sb-outreach-footer { border-top: 1px solid var(--sb-border); padding-top: 16px; }
.sb-outreach-configuration .ck-editor, .sb-outreach-configuration .select2-container { width: 100% !important; min-width: 0; max-width: 100%; }
.sb-outreach-configuration .ck.ck-toolbar, .sb-outreach-configuration .ck.ck-toolbar__items { min-width: 0; max-width: 100%; }
.sb-outreach-configuration .ck.ck-toolbar__items { flex-wrap: wrap; }
.sb-outreach-configuration .ck-editor__editable { min-height: 180px; max-height: 440px; overflow-wrap: anywhere; }
.sb-outreach-configuration [hidden] { display: none !important; }
@media (max-width: 767px) {
    .sb-active-detail-navigation { align-items: stretch; }
    .sb-active-detail-navigation .sb-record-tabs { flex: 1 1 100%; }
    .sb-active-detail-navigation .nav-item { flex: 1 1 0; min-width: 0; }
    .sb-active-detail-navigation .nav-link { width: 100%; height: 100%; }
    .sb-outreach-header-actions { width: 100%; }
    .sb-outreach-header-actions .btn { flex: 1 1 160px; }
    .sb-outreach-options, .sb-outreach-response-options { grid-template-columns: minmax(0, 1fr); }
    .sb-outreach-card-body { padding: 14px; }
    .sb-outreach-configuration .sb-outreach-section-heading { padding: 12px 14px; }
}
@media (max-width: 420px) {
    .sb-outreach-header-actions .btn, .sb-outreach-footer > .btn { width: 100%; }
}
/* Search evidence stays legible in both themes without changing candidate content. */
mark.sb-candidate-match {
    background: #fff0a6;
    color: #332600;
    padding: 0 .08em;
    border-radius: 2px;
    font-weight: 600;
}

[data-bs-theme="dark"] mark.sb-candidate-match {
    background: #715517;
    color: #fff4c2;
}
.sb-job-description-guidance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--sb-border);
    border-left: 4px solid #008496;
    border-radius: 6px;
    background: var(--sb-surface);
    color: var(--sb-heading);
    line-height: 1.6;
}
.sb-job-description-guidance > i { margin-top: 4px; color: #008496; flex-shrink: 0; }
.sb-job-description-guidance strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.sb-job-description-guidance span { display: block; font-size: 13px; }
.sb-candidate-reading-row > td { background: var(--sb-surface-2); }
.sb-candidate-reading-row .fa-bookmark { color: var(--sb-pink); }

/* Shared list-view tables: Candidates, Active Search, Activities and Folders. */
.table.sb-view-table > thead > tr > th {
    height: 36px;
    padding: 6px 10px;
    vertical-align: middle;
    background: var(--sb-table-head);
    color: #fff;
    border-color: var(--sb-table-head);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.table.sb-view-table > thead > tr > th .sb-link-button,
.table.sb-view-table > thead > tr > th .sb-active-search-column-label {
    padding-block: 0;
    min-height: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.table.sb-view-table > thead > tr > th .sb-link-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.table.sb-view-table > tbody > tr > td {
    padding: 8px 10px;
    font-size: 13px;
    border-color: var(--sb-border);
    vertical-align: middle;
}
[data-candidate-view-title],
[data-activity-view-title],
.sb-active-list-card > header h1,
[data-folder-name] {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}
.sb-results-head:has([data-candidate-view-title]) { flex-wrap: wrap; }
.sb-results-head [data-candidate-view-title] { width: auto; flex: 0 1 auto; margin: 0; }
.sb-candidate-heading-filters {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 12px 24px;
    min-width: 0;
}

[data-registration-filters] {
    margin: 0 7px 16px;
    padding: 14px 16px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
}

.sb-registration-filters-grid {
    display: grid;
    grid-template-columns: minmax(220px, 320px) repeat(2, minmax(160px, 200px));
    gap: 16px;
}

.sb-registration-filters-grid > label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--sb-heading);
    font-size: 12px;
    font-weight: 600;
}

.sb-registration-filters-grid .form-control,
.sb-registration-filters-grid .form-select { min-width: 0; min-height: 38px; width: 100%; }
.sb-registration-filters-grid .select2-container { width: 100% !important; }

[data-recruiter-view-filters] { max-width: 100%; }
.sb-recruiter-group > td { background: var(--bs-tertiary-bg); }
.sb-recruiter-group [data-recruiter-group] { min-height: 28px; font-weight: 600; text-align: left; }
.sb-recruiter-group > td:last-child,
.sb-recruiter-total > td { width: 90px; font-variant-numeric: tabular-nums; font-weight: 600; }
.sb-recruiter-total > * { border-top: 2px solid var(--bs-border-color); }

.sb-registration-location > td { background: var(--bs-tertiary-bg); }
.sb-registration-location [data-registration-location] {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 28px;
    text-align: left;
    font-weight: 600;
}
.sb-registration-location-count {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .sb-registration-filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-registration-filters-grid > label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
    .sb-registration-filters-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Shared Choose View heading, filters, and search layout. */
.sb-choose-view-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: 16px 7px 12px;
}
.sb-choose-view-bar h1,
.sb-choose-view-bar h2 {
    width: auto;
    flex: 0 1 auto;
    margin: 0;
    color: var(--sb-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}
.sb-choose-view-bar .sb-candidate-heading-filters { gap: 12px 20px; }
.sb-choose-view-bar [data-registration-filters],
.sb-choose-view-bar [data-review-view-filters] {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}
.sb-choose-view-bar .form-control,
.sb-choose-view-bar .form-select { min-height: 38px; }
.sb-choose-view-bar .sb-module-head,
.sb-choose-view-bar > header { display: contents; }
.sb-choose-activity .sb-module-head > .d-flex,
.sb-choose-active-search > header > .d-flex { order: 2; margin-left: auto; }
@media (max-width: 767px) {
    .sb-choose-view-bar .sb-candidate-heading-filters,
    .sb-choose-activity .sb-module-head > div:first-child,
    .sb-choose-active-search h1 { flex-basis: 100%; }
    .sb-choose-activity .sb-module-head > .d-flex,
    .sb-choose-active-search > header > .d-flex { margin-left: 0; }
}

.sb-presentation-footer-attachments {
    flex: 0 0 100%;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 8px;
}
.sb-presentation-footer-attachments h3 { font-size: 13px !important; margin-bottom: 4px; }
.sb-presentation-footer-attachments .form-text { margin: 0 0 6px; font-size: 12px; }
.sb-presentation-footer-attachments .table { margin-bottom: 8px; }

/* Activity view: one title and one aligned row of filters and search. */
.sb-choose-view-bar.sb-choose-activity {
    display: block;
    margin: 20px 0 14px;
}
.sb-choose-activity .sb-module-head { display: block; margin: 0 0 12px; padding: 0 4px; }
.sb-choose-activity .form-control,
.sb-choose-activity .select2-container--default .select2-selection--single {
    height: 38px;
    min-height: 38px;
    border-radius: 5px;
}
.sb-activity-search-field { flex: 1; }

@media (max-width: 767px) {
    .sb-choose-view-bar.sb-choose-activity { margin-top: 14px; }
}


/* Candidate and Active Search views share the Activities filter panel treatment. */
.sb-choose-view-bar.sb-choose-panel-view { display: block; margin: 20px 0 14px; }
.sb-choose-panel-view > h2,
.sb-choose-panel-view > header { display: block; margin: 0 0 12px; padding: 0 4px; }
.sb-choose-panel-view .form-control,
.sb-choose-panel-view .select2-container--default .select2-selection--single {
    height: 38px; min-height: 38px; border-radius: 5px;
}
@media (max-width: 767px) {
    .sb-choose-view-bar.sb-choose-panel-view { margin-top: 14px; }
}


.sb-results-head.sb-choose-panel-view > h2 { margin: 0 0 12px; }

/* Individual Candidate presentation: record actions, separate from list controls. */
.sb-candidate-presentation-head {
    display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
    gap: 12px; margin: 0 0 12px;
}
.sb-candidate-presentation-head[hidden] { display: none; }
[data-module="candidate-profile"] > [data-candidate-profile-content] > .sb-candidate-view-page { padding: 0; }
.sb-candidate-presentation-controls { display: flex; align-items: center; gap: 8px; }
.sb-candidate-presentation-controls > .sb-icon-button,
.sb-candidate-presentation-controls > .dropdown > button { height: 38px; }
[data-module="candidate-profile"] .sb-candidate-commandbar {
    margin: 0 0 12px; padding: 6px 10px; gap: 6px;
    border: 1px solid var(--sb-border); border-radius: 8px; background: var(--sb-surface);
}
[data-module="candidate-profile"] .sb-candidate-presentation-controls .btn { font-size: 13px; }
[data-module="candidate-profile"] .sb-candidate-commandbar button:not(.btn) { min-height: 38px; }
[data-module="candidate-profile"] .sb-candidate-commandbar .sb-candidate-new-search {
    color: var(--sb-text); background: transparent; border: 1px solid var(--sb-border); font-weight: 500;
}
[data-module="candidate-profile"] .sb-candidate-commandbar button:focus-visible {
    outline: 2px solid var(--sb-pink); outline-offset: 2px;
}
[data-module="candidate-profile"] .sb-candidate-commandbar .sb-candidate-new-search:hover { background: var(--bs-tertiary-bg); }
@media (max-width: 575px) {
    .sb-candidate-presentation-head { align-items: flex-start; }
    [data-module="candidate-profile"] .sb-candidate-commandbar { padding: 8px; }
    [data-module="candidate-profile"] .sb-candidate-command-spacer { display: none; }
}

/* A compact page-level shortcut, kept clear of the footer and modal layers. */
.sb-back-to-top {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 24px));
    z-index: 1030;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--sb-border); border-radius: 50%;
    color: var(--sb-heading); background: var(--sb-surface);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
    cursor: pointer;
}
.sb-back-to-top[hidden] { display: none !important; }
.sb-back-to-top:hover { color: var(--sb-pink); border-color: var(--sb-pink); }
.sb-back-to-top:focus-visible { outline: 3px solid var(--sb-pink); outline-offset: 3px; }
@media (max-width: 575px) {
    .sb-back-to-top { right: max(16px, env(safe-area-inset-right)); }
}
@media print { .sb-back-to-top { display: none !important; } }

/* Role Access: readable module overview and compact permission groups. */
.sb-access-main:has([data-access-panel="role-permissions"].active) { overflow: visible; min-width: 0; }
.sb-permission-editor-toolbar { position: sticky; top: 8px; z-index: 20; padding: 14px; margin-bottom: 14px; border: 1px solid var(--sb-border); border-radius: 8px; background: var(--sb-surface); box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.sb-permission-editor-toolbar .sb-access-panel-head { margin-bottom: 12px; }
.sb-permission-editor-toolbar .sb-access-filter { flex: 1 1 260px; max-width: 480px; }
.sb-permission-editor-toolbar .btn i { margin-right: 5px; }
.sb-permission-help { line-height: 1.6; margin: 0 2px 14px; }
.sb-permission-node-head { grid-template-columns: 32px 22px 22px minmax(0,1fr) auto; min-height: 48px; padding: 8px 12px; }
.sb-permission-node-head strong { font-size: 14px; line-height: 1.4; }
.sb-permission-node-head .sb-permission-count { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 3px 8px; border-radius: 12px; background: var(--sb-surface); color: var(--sb-muted); }
.sb-permission-toggle { width: 32px; height: 32px; }
.sb-permission-toggle:focus-visible { outline: 2px solid var(--sb-pink); outline-offset: 2px; }
.sb-permission-actions { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px 14px; padding: 10px 16px 14px 46px; }
.sb-permission-action { align-items: flex-start; padding: 8px; min-height: 38px; border-radius: 5px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.sb-permission-action:hover, .sb-permission-action:focus-within { background: color-mix(in srgb, var(--sb-border), transparent 65%); }
.sb-permission-action .form-check-input { flex-shrink: 0; margin-top: 3px; }
.sb-permission-children { margin-left: 16px; border-left: 1px solid var(--sb-border); }
.sb-permission-legacy .sb-permission-children { margin-left: 0; border-left: 0; }
.sb-permission-legacy > .sb-permission-node-body { padding: 12px 20px 20px; }
.sb-permission-legacy > .sb-permission-node-body > .sb-permission-children { max-width: 1000px; margin-inline: auto; border-top: 0; }
.sb-permission-legacy > .sb-permission-node-body > .sb-permission-children > .sb-permission-node { border: 1px solid var(--sb-border); border-radius: 6px; margin-bottom: 12px; }
.sb-permission-legacy > .sb-permission-node-body > .sb-permission-children > .sb-permission-node > .sb-permission-node-head { grid-template-columns: 28px 20px minmax(0,1fr) auto; min-height: 40px; padding: 5px 12px; }
.sb-permission-legacy > .sb-permission-node-body > .sb-permission-children > .sb-permission-node > .sb-permission-node-head > .sb-permission-node-icon { display: none; }
.sb-permission-legacy .sb-permission-node .sb-permission-children { margin: 0 16px 10px 34px; border-top: 0; border-left: 2px solid var(--sb-border); }
.sb-permission-legacy .sb-permission-node .sb-permission-count { display: none; }
.sb-permission-legacy .sb-permission-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; padding: 8px 16px 10px 42px; }
.sb-permission-legacy .sb-permission-action { min-height: 30px; padding: 4px 8px; }
.sb-permission-legacy .sb-permission-node .sb-permission-node .sb-permission-node-head { background: transparent; min-height: 36px; padding-top: 2px; padding-bottom: 2px; }
@media (max-width: 700px) {
    .sb-permission-legacy > .sb-permission-node-body { padding: 8px; }
    .sb-permission-legacy .sb-permission-actions { grid-template-columns: minmax(0, 1fr); }
    .sb-permission-legacy .sb-permission-node .sb-permission-children { margin-left: 18px; margin-right: 6px; }
    .sb-permission-legacy .sb-permission-actions { padding-left: 16px; }
}
.sb-role-access-layout { max-width: 1200px; margin-inline: auto; }
.sb-role-access-layout .sb-permission-node-head { min-height: 40px; padding-block: 5px; }
.sb-role-access-layout .sb-permission-toggle:disabled { visibility: hidden; }
.sb-role-access-layout .sb-permission-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; max-width: 1000px; padding: 8px 16px 10px 42px; }
.sb-role-access-layout .sb-permission-action { min-height: 30px; padding: 4px 8px; }
.sb-role-access-layout .sb-permission-group > .sb-permission-node-head { grid-template-columns: 28px 20px minmax(0,1fr) auto; }
.sb-role-access-layout .sb-permission-group > .sb-permission-node-head > .sb-permission-node-icon,
.sb-role-access-layout .sb-permission-group > .sb-permission-node-head > .sb-permission-count { display: none; }
.sb-role-access-layout .sb-access-tree-toolbar > .sb-permission-search {
    flex: 1 1 260px; max-width: 480px;
}
@media (max-width: 700px) {
    .sb-role-access-layout .sb-permission-actions { grid-template-columns: minmax(0,1fr); padding-left: 16px; }
    .sb-role-access-layout .sb-permission-children { margin-left: 8px; }
}
@media (max-width: 991.98px) {
    .sb-role-access-layout .sb-access-tree-toolbar > .sb-permission-search {
        flex-basis: 100%; max-width: none;
    }
}
@media (max-width: 1100px) { .sb-permission-actions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
    .sb-permission-actions { grid-template-columns: minmax(0,1fr); padding-left: 12px; }
    .sb-permission-children { margin-left: 6px; }
    .sb-permission-node-head { padding: 8px 6px; gap: 4px; grid-template-columns: 28px 20px minmax(0,1fr) auto; }
    .sb-permission-node-icon { display: none; }
    .sb-permission-editor-toolbar { position: static; padding: 12px; }
}
/* Shared workspace view headers, using the Candidates view as the reference. */
.sb-view-header {
    min-width: 0; min-height: 0;
    margin: 20px 0 14px; padding: 0 4px;
    border: 0; background: transparent;
}
.sb-view-header h1,
.sb-view-header h2,
.sb-view-header.sb-choose-view-bar h1 {
    margin: 0; color: var(--sb-heading); font-size: 18px;
    font-weight: 700; line-height: 1.4; overflow-wrap: anywhere;
}
.sb-view-header:not(.sb-choose-view-bar) > div:has(> h1) { flex: 1 1 auto; min-width: 0; }
.sb-view-header > div > :is(.sb-eyebrow, .sb-kicker) { display: none; }
.sb-view-header .sb-page-subtitle { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--sb-muted); }
.sb-view-header > .d-flex { flex-wrap: wrap; align-items: center; gap: 8px; }
.sb-view-header .btn { min-height: 38px; font-size: 13px; }
.sb-view-header .form-select { width: auto; min-height: 38px; font-size: 13px; }
.sb-view-header .sb-icon-button { width: 38px; height: 38px; min-width: 38px; flex: 0 0 38px; }
.sb-view-header.sb-choose-view-bar { display: block; padding: 0; margin: 20px 0 14px; }
.sb-view-header.sb-choose-view-bar > :is(h2, header, .sb-module-head) {
    display: block; margin: 0 0 12px; padding: 0 4px;
}
.sb-view-header.sb-folder-titlebar .sb-icon-button { border: 1px solid var(--sb-border); }
/* Page padding supplies the top spacing when there is no command bar. */
.sb-page > .sb-page-header.sb-view-header { margin-top: 0; align-items: flex-start; }
.sb-launchpad > .sb-view-header { margin-bottom: 0; }

.sb-page.sb-kb-page { background: var(--sb-bg); }
.sb-kb-page > .sb-view-header { background: transparent; }
.sb-kb-header__actions { flex-wrap: wrap; }
.sb-kb-tabs button { font-size: 13px; line-height: 1.5; }
/* Dashboard, inbox and help views follow the same workspace scale and gutters. */
.sb-page:is(.sb-launchpad, .sb-notifications-page, .sb-kb-page) {
    min-width: 0; padding: 18px 28px 26px; font-size: 13px; line-height: 1.5;
}
.sb-launchpad .sb-launchpad__tiles { padding: 0; }
.sb-launchpad .sb-launch-tile small { color: var(--sb-text); font-size: 13px; line-height: 1.5; }
.sb-launchpad .sb-launchpad__group-title { margin: 0 4px 12px; font-size: 14px; line-height: 1.4; }
.sb-notifications-page .sb-notification-card {
    grid-template-columns: 38px minmax(0, 1fr) auto; padding: 14px 16px; border-radius: 8px; font-size: 13px;
}
.sb-notifications-page .sb-notification-card__icon { width: 38px; height: 38px; }
.sb-notifications-page .sb-notification-card__content strong {
    font-size: 13px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere;
}
.sb-notifications-page .sb-notification-card__content small { font-size: 11px; line-height: 1.5; }
.sb-notifications-page .sb-notification-card__content > span { color: var(--sb-text); }
.sb-kb-page .sb-kb-tabs {
    gap: 16px; margin: 0 0 14px; padding: 0 16px; border: 1px solid var(--sb-border);
    border-radius: 8px; background: var(--sb-menu-bg); overflow-x: auto;
}
.sb-kb-page .sb-kb-tabs button {
    flex: 0 0 auto; min-height: 38px; padding: 4px 0; color: var(--sb-text); font-size: 13px; font-weight: 600;
}
.sb-kb-page .sb-kb-tabs button.active { color: var(--sb-heading); border-bottom-color: var(--sb-primary); }
.sb-kb-page .sb-kb-tabs button:focus-visible { outline: 2px solid var(--sb-control-accent); outline-offset: -2px; }
.sb-kb-page .sb-kb-tab-count { background: var(--sb-surface-2); color: var(--sb-text); }
.sb-kb-page .sb-kb-panel { min-width: 0; padding: 0; }
.sb-kb-page .sb-kb-card {
    border-color: var(--sb-border); border-radius: 8px; background: var(--sb-surface); box-shadow: none;
}
.sb-kb-page .sb-kb-card h2 { color: var(--sb-heading); font-size: 13px; font-weight: 700; line-height: 1.4; }
.sb-kb-page .sb-kb-card p { color: var(--sb-text); font-size: 13px; line-height: 1.5; }
.sb-kb-page .sb-kb-card__meta,
.sb-kb-page .sb-kb-card__footer small { color: var(--sb-muted); font-size: 11px; line-height: 1.5; }
.sb-kb-page .sb-kb-card__footer .btn { min-height: 38px; font-size: 13px; }
.sb-kb-page .sb-kb-support-table-wrap { border-color: var(--sb-border); border-radius: 8px; background: var(--sb-surface); }
.sb-kb-page .sb-kb-support-table th {
    padding: 10px 14px; background: var(--sb-table-head); color: #fff; font-size: 11px; font-weight: 700;
}
.sb-kb-page .sb-kb-support-table td { border-color: var(--sb-border); color: var(--sb-text); font-size: 13px; line-height: 1.5; }
.sb-kb-page .sb-kb-support-table td:first-child span { color: var(--sb-heading); }
.sb-kb-page .sb-kb-support-table td:first-child strong { color: var(--sb-control-accent); }
@media (max-width: 767px) {
    .sb-page:is(.sb-launchpad, .sb-notifications-page, .sb-kb-page) { padding: 16px; }
    .sb-kb-page .sb-kb-tabs { gap: 14px; padding-inline: 12px; }
    .sb-notifications-page .sb-notification-card { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .sb-view-header,
    .sb-view-header.sb-choose-view-bar { margin-top: 14px; }
    .sb-page > .sb-action-bar { margin-top: -16px; margin-inline: -16px; }
    .sb-view-header > .d-flex { max-width: 100%; }
    .sb-view-header .sb-page-subtitle { max-width: 100%; }
}

/* Bootstrap utilities own filter layout, spacing, borders and wrapping.
   Only component sizing, theme details and Select2 integration belong here. */
.sb-filter-bar { min-width: 0; background-color: var(--sb-surface); }
.sb-filter-field {
    flex: 1 1 180px; min-width: 0;
    color: var(--sb-muted); font-size: 11px; font-weight: 600; line-height: 16px;
}
.sb-filter-field > label { margin: 0; color: inherit; font: inherit; }
.sb-filter-bar > section:not([hidden]),
.sb-filter-bar .sb-choose-filter-fields { display: contents; }
/* Bootstrap display utilities intentionally use !important; hidden state must win. */
.sb-view-header[hidden],
.sb-action-bar[hidden],
.sb-filter-bar[hidden],
.sb-filter-bar [hidden],
.sb-filter-field[hidden],
.sb-filter-field:has(> select[hidden]) { display: none !important; }
.sb-filter-field :is(.form-control, .form-select) { height: 38px; min-width: 0; min-height: 38px; font-weight: 400; }
/* Select2 writes inline widths and clips its underlying native select. */
.sb-filter-field .select2-container { width: 100% !important; min-width: 0; }
.sb-filter-field .select2-selection--single {
    height: 38px; min-height: 38px; border-radius: var(--bs-border-radius);
    border-color: var(--bs-border-color); background: var(--sb-surface); font-size: 13px; font-weight: 400;
}
.sb-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--sb-text); line-height: 36px; font-size: 13px; font-weight: 400;
}
.sb-filter-field .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.sb-filter-field .select2-selection__placeholder { color: var(--sb-muted); font-weight: 400; }
.sb-filter-search-actions { flex: 1.5 1 280px; min-width: 0; }
.sb-filter-search-actions > .sb-filter-field { flex: 1; }
.sb-filter-field :is(.sb-table-search, .sb-module-search, .sb-search-control) {
    display: block; position: relative; width: 100%; min-width: 0;
}
.sb-filter-field :is(.sb-table-search, .sb-module-search, .sb-search-control) > i {
    position: absolute; left: 13px; right: auto; top: 50%; transform: translateY(-50%);
    color: var(--sb-muted); font-size: 13px; pointer-events: none;
}
.sb-filter-field :is(.sb-table-search, .sb-module-search, .sb-search-control) .form-control {
    padding-left: 38px; padding-right: 12px;
}
.sb-filter-bar .btn { min-height: 38px; font-size: 13px; }
.sb-filter-bar .sb-icon-button { width: 38px; height: 38px; min-width: 38px; flex: 0 0 38px; }
.sb-filter-bar :is(.sb-filter-actions, .sb-view-status-actions) { min-height: 38px; }
.sb-filter-bar .sb-status-pill { align-self: center; margin: 0; }
.sb-folder-table-tools > .sb-folder-owner-filter { flex: 0 1 280px; max-width: 280px; }
.sb-folder-table-tools > label.sb-filter-field { flex: 1 1 280px; max-width: 420px; margin-left: auto; }
.sb-filter-field .form-select.select2-hidden-accessible {
    width: 1px !important; max-width: 1px; min-height: 0 !important; height: 1px !important;
}
.sb-filter-actions.sb-search-controls { padding: 0; }
@media (max-width: 767.98px) {
    .sb-folder-table-tools > :is(.sb-folder-owner-filter, label.sb-filter-field) {
        flex-basis: 100%; max-width: none; margin-left: 0;
    }
    .sb-folder-toolbar.sb-action-bar > .sb-folder-refresh { margin-left: 0; }
}
@media (max-width: 575.98px) {
    .sb-filter-bar > .sb-filter-field,
    .sb-filter-bar .sb-choose-filter-fields > .sb-filter-field,
    .sb-filter-bar .sb-filter-search-actions { flex-basis: 100%; }
}

/* Tenure rankings share the same compact treatment on lists, previews and profiles. */
.sb-candidate-diamonds {
    display: inline-flex; align-items: center; gap: 3px; margin-left: 8px;
    color: #00b0c5; font-size: 12px; vertical-align: middle; white-space: nowrap;
}

/* Width limits are component constraints; Bootstrap owns the record toolbar layout. */
.sb-filter-bar--record > .sb-filter-field { flex: 0 1 320px; max-width: 320px; }
.sb-filter-bar--record > .sb-filter-actions { flex: 0 1 auto; }
@media (max-width: 767.98px) {
    .sb-filter-bar--record > .sb-filter-field { flex-basis: 100%; max-width: none; }
}
