/* App-owned styles. Keep vendor CSS untouched and place project overrides here. */

@media (min-width: 992px) {
    html {
        font-size: 90%;
    }
}

.team-portal-lock-form {
    margin: 0;
}

.team-portal-lock-button,
.team-portal-lock-pill,
.team-portal-lock-hint {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.35rem;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.team-portal-lock-button,
.team-portal-lock-pill {
    border: 1px solid transparent;
    padding: 0.4rem 0.75rem;
}

.team-portal-lock-button {
    background: transparent;
}

.team-portal-lock-button.is-locked,
.team-portal-lock-pill.is-locked {
    background: rgba(var(--bs-danger-rgb), 0.1);
    border-color: rgba(var(--bs-danger-rgb), 0.18);
    color: var(--bs-danger);
}

.team-portal-lock-button.is-unlocked,
.team-portal-lock-pill.is-unlocked {
    background: rgba(var(--bs-success-rgb), 0.1);
    border-color: rgba(var(--bs-success-rgb), 0.18);
    color: var(--bs-success);
}

.team-portal-lock-button:hover {
    filter: brightness(0.98);
}

.team-portal-lock-hint {
    background: rgba(var(--bs-warning-rgb), 0.14);
    color: #8a6116;
    padding: 0.28rem 0.55rem;
}

.team-portal-lock-row {
    align-items: center;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.9rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.7rem 0.8rem;
}

.team-portal-disabled-tab {
    align-items: center;
    cursor: not-allowed;
    display: inline-flex;
    gap: 0.35rem;
    opacity: 0.72;
}

.application-message-thread__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-message-thread__item {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-left: 4px solid transparent;
    border-radius: 1rem;
    padding: 1rem 1rem 0.95rem;
}

.application-message-thread__item.is-admin {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-left-color: rgba(var(--bs-primary-rgb), 0.9);
}

.application-message-thread__item.is-team {
    background: rgba(var(--bs-info-rgb), 0.06);
    border-left-color: rgba(var(--bs-info-rgb), 0.9);
}

.application-message-thread__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    margin-bottom: 0.75rem;
}

.application-message-thread__author {
    color: var(--bs-heading-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.application-message-thread__role,
.application-message-thread__date {
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
}

.application-message-thread__role {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.application-message-thread__body {
    color: var(--bs-body-color);
    line-height: 1.65;
}

.application-message-thread__form textarea {
    min-height: 130px;
}

@media (max-width: 767.98px) {
    .team-portal-lock-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .team-portal-lock-button,
    .team-portal-lock-pill {
        justify-content: center;
        width: 100%;
    }
}

/* Shared utility helpers used by app views. */
.app-border-dashed {
    border-top: 1px dashed #e2e5e8 !important;
}

.app-max-h-80 {
    max-height: 80px !important;
}

.app-max-h-120 {
    max-height: 120px !important;
}

.app-maxw-280 {
    max-width: 280px !important;
}

.app-whitespace-normal {
    white-space: normal !important;
}

.app-h-10 {
    height: 10px !important;
}

.app-thumb-cover-150 {
    height: 150px !important;
    object-fit: cover !important;
}

.app-object-cover {
    object-fit: cover !important;
}

.app-object-contain {
    object-fit: contain !important;
}

.header-profile-user--fallback {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    line-height: 1;
    width: 36px;
}

.app-header-search__menu {
    border: 1px solid rgba(122, 133, 153, 0.18);
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.14);
    min-width: min(26rem, calc(100vw - 1.5rem));
    overflow: hidden;
}

.header-lang-img,
.app-language-switcher__flag {
    border-radius: 0.25rem;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
    display: block;
    height: 16px;
    object-fit: cover;
    width: 24px;
}

.app-language-switcher .header-item {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 46px;
}

.app-language-switcher__menu {
    border: 1px solid rgba(122, 133, 153, 0.16);
    border-radius: 0.9rem;
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.14);
    min-width: 12rem;
    padding: 0.55rem 0;
}

.app-language-switcher__menu[data-bs-popper] {
    left: 50% !important;
    margin-top: 0.45rem;
    right: auto !important;
    top: 100% !important;
    transform: translate3d(-50%, 0, 0) !important;
}

.app-language-switcher__item {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    padding: 0.62rem 1rem;
}

.app-language-switcher__item.active,
.app-language-switcher__item:hover,
.app-language-switcher__item:focus {
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-emphasis-color);
}

.app-login-brand {
    display: flex;
    justify-content: center;
}

.app-login-brand__link {
    align-items: center;
    justify-content: center;
}

.app-login-brand__image {
    display: block;
    height: auto;
    max-height: 96px;
    width: auto;
}

.app-login-locale-switcher {
    margin-top: 1.25rem;
    padding-top: 1rem;
}

@media (max-width: 575.98px) {
    .app-login-brand__image {
        max-height: 80px;
    }
}

.app-header-search__results {
    max-height: 22rem;
    overflow: auto;
    padding: 0.75rem;
}

.app-header-search__loading {
    align-items: center;
    border-bottom: 1px solid rgba(122, 133, 153, 0.12);
    color: var(--bs-secondary-color);
    display: flex;
    font-size: 0.8rem;
    gap: 0.55rem;
    padding: 0.8rem 1.1rem 0.75rem;
}

.app-header-search__loading::before {
    animation: app-header-search-pulse 1s ease-in-out infinite;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 999px;
    content: "";
    height: 0.6rem;
    width: 0.6rem;
}

.app-header-search__empty {
    color: var(--bs-secondary-color);
    padding: 1rem 1.25rem 1.25rem;
}

.app-header-search__result {
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: inherit;
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-header-search__result + .app-header-search__result {
    margin-top: 0.45rem;
}

.app-header-search__result:hover,
.app-header-search__result:focus-visible {
    background: rgba(var(--bs-primary-rgb), 0.04);
    border-color: rgba(var(--bs-primary-rgb), 0.18);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.06);
    color: inherit;
    transform: translateY(-1px);
}

.app-header-search__result:focus-visible {
    outline: 0;
}

.app-header-search__result-icon {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 0.9rem;
    color: var(--bs-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.app-header-search__result-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.app-header-search__result-head {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
}

.app-header-search__result-title {
    color: var(--bs-emphasis-color);
    font-weight: 600;
    line-height: 1.35;
}

.app-header-search__result-type {
    background: rgba(var(--bs-primary-rgb), 0.08);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 999px;
    color: var(--bs-primary);
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.34rem 0.55rem;
    text-transform: uppercase;
}

.app-header-search__result-subtitle,
.app-header-search__result-meta,
.app-header-search__result-path {
    color: var(--bs-secondary-color);
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
}

.app-header-search__result-subtitle {
    color: var(--bs-body-color);
    opacity: 0.82;
}

.app-header-search__result-path {
    opacity: 0.9;
    word-break: break-word;
}

.app-header-search__results::-webkit-scrollbar {
    width: 0.5rem;
}

.app-header-search__results::-webkit-scrollbar-thumb {
    background: rgba(122, 133, 153, 0.35);
    border-radius: 999px;
}

@keyframes app-header-search-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.account-profile-avatar-shell {
    cursor: pointer;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.account-profile-avatar-shell:hover,
.account-profile-avatar-shell:focus-visible {
    transform: translateY(-2px);
}

.account-profile-avatar-shell:focus-visible {
    outline: 0;
}

.account-profile-avatar-edit {
    align-items: center;
    background: var(--bs-primary);
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.16);
    color: #fff;
    display: inline-flex;
    height: 2.15rem;
    justify-content: center;
    position: absolute;
    right: 0.1rem;
    top: 0.1rem;
    width: 2.15rem;
}

.account-profile-photo-editor {
    position: relative;
}

.account-profile-photo-dropzone {
    background:
        radial-gradient(circle at top right, rgba(var(--bs-primary-rgb), 0.12), transparent 42%),
        linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-secondary-rgb), 0.03));
    border: 1px dashed rgba(var(--bs-primary-rgb), 0.28);
    border-radius: 1.2rem;
    cursor: pointer;
    padding: 1.35rem;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.account-profile-photo-dropzone:hover,
.account-profile-photo-dropzone:focus-visible,
.account-profile-photo-dropzone.is-drag-over {
    border-color: rgba(var(--bs-primary-rgb), 0.52);
    box-shadow: 0 0 0 0.18rem rgba(var(--bs-primary-rgb), 0.12);
    transform: translateY(-1px);
}

.account-profile-photo-dropzone:focus-visible {
    outline: 0;
}

.account-profile-photo-dropzone__icon {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 999px;
    color: var(--bs-primary);
    display: inline-flex;
    font-size: 1.5rem;
    height: 3.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 3.5rem;
}

.account-profile-photo-stage {
    background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.03), transparent);
    border: 1px solid rgba(122, 133, 153, 0.15);
    border-radius: 1.25rem;
    padding: 1rem;
}

.account-profile-photo-cropper__frame {
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(45deg, rgba(122, 133, 153, 0.08) 25%, transparent 25%, transparent 75%, rgba(122, 133, 153, 0.08) 75%),
        linear-gradient(45deg, rgba(122, 133, 153, 0.08) 25%, transparent 25%, transparent 75%, rgba(122, 133, 153, 0.08) 75%);
    background-color: rgba(var(--bs-body-color-rgb), 0.02);
    background-position: 0 0, 12px 12px;
    background-size: 24px 24px;
    border: 1px solid rgba(122, 133, 153, 0.2);
    border-radius: 1.25rem;
    cursor: grab;
    margin: 0 auto;
    max-width: 320px;
    overflow: hidden;
    position: relative;
    touch-action: none;
    user-select: none;
}

.account-profile-photo-cropper__frame.is-dragging {
    cursor: grabbing;
}

.account-profile-photo-cropper__frame img,
.account-profile-photo-preview-circle img {
    max-width: none;
    pointer-events: none;
    position: absolute;
    user-select: none;
}

.account-profile-photo-cropper__mask {
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.08),
        inset 0 0 0 999px rgba(15, 23, 42, 0.06);
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.account-profile-photo-cropper__mask::before,
.account-profile-photo-cropper__mask::after {
    background: rgba(255, 255, 255, 0.32);
    content: "";
    position: absolute;
}

.account-profile-photo-cropper__mask::before {
    bottom: 0;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1px;
}

.account-profile-photo-cropper__mask::after {
    height: 1px;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.account-profile-photo-preview-card {
    background: rgba(var(--bs-primary-rgb), 0.04);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 1.1rem;
    padding: 1rem;
}

.account-profile-photo-preview-circle {
    aspect-ratio: 1 / 1;
    background: rgba(var(--bs-body-color-rgb), 0.04);
    border: 4px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: 0 0.5rem 1.4rem rgba(15, 23, 42, 0.12);
    margin-bottom: 1rem;
    max-width: 118px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

[data-bs-theme="dark"] .header-profile-user--fallback {
    background: rgba(117, 189, 255, 0.18);
    color: #d9ebff;
}

[data-bs-theme="dark"] .app-header-search__menu {
    background: #24282f;
    border-color: rgba(117, 189, 255, 0.16);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.34);
}

[data-bs-theme="dark"] .app-header-search__result:hover,
[data-bs-theme="dark"] .app-header-search__result:focus-visible {
    background: rgba(117, 189, 255, 0.08);
    border-color: rgba(117, 189, 255, 0.18);
}

[data-bs-theme="dark"] .app-header-search__result-icon {
    background: rgba(117, 189, 255, 0.14);
    color: #d9ebff;
}

[data-bs-theme="dark"] .app-header-search__result-type {
    background: rgba(117, 189, 255, 0.12);
    border-color: rgba(117, 189, 255, 0.18);
    color: #d9ebff;
}

[data-bs-theme="dark"] .account-profile-photo-dropzone {
    background:
        radial-gradient(circle at top right, rgba(117, 189, 255, 0.12), transparent 42%),
        linear-gradient(135deg, rgba(24, 39, 58, 0.8), rgba(21, 28, 39, 0.9));
    border-color: rgba(117, 189, 255, 0.28);
}

[data-bs-theme="dark"] .account-profile-photo-stage {
    background: linear-gradient(180deg, rgba(117, 189, 255, 0.05), rgba(21, 28, 39, 0.24));
    border-color: rgba(117, 189, 255, 0.16);
}

[data-bs-theme="dark"] .account-profile-photo-cropper__frame {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(117, 189, 255, 0.2);
}

[data-bs-theme="dark"] .account-profile-photo-preview-card {
    background: rgba(117, 189, 255, 0.06);
    border-color: rgba(117, 189, 255, 0.18);
}

[data-bs-theme="dark"] .account-profile-photo-preview-circle {
    border-color: rgba(24, 39, 58, 0.95);
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.28);
}

@media (max-width: 767.98px) {
    .app-header-search__menu {
        min-width: min(22rem, calc(100vw - 1rem));
    }

    .app-header-search__result-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-profile-photo-stage {
        padding: 0.85rem;
    }

    .account-profile-photo-dropzone {
        padding: 1rem;
    }

    .account-profile-photo-cropper__frame {
        max-width: 100%;
    }
}

.app-w-50 {
    width: 50px !important;
}

.app-w-60 {
    width: 60px !important;
}

.app-w-70 {
    width: 70px !important;
}

.app-w-80 {
    width: 80px !important;
}

.app-w-90 {
    width: 90px !important;
}

.app-w-100 {
    width: 100px !important;
}

.app-w-120 {
    width: 120px !important;
}

.app-w-130 {
    width: 130px !important;
}

.app-w-140 {
    width: 140px !important;
}

.app-w-150 {
    width: 150px !important;
}

.app-w-160 {
    width: 160px !important;
}

.app-w-170 {
    width: 170px !important;
}

.app-w-180 {
    width: 180px !important;
}

.app-w-220 {
    width: 220px !important;
}

.app-w-230 {
    width: 230px !important;
}

.app-w-280 {
    width: 280px !important;
}

.app-minw-190 {
    min-width: 190px !important;
}

.app-minw-200 {
    min-width: 200px !important;
}

.app-minw-220 {
    min-width: 220px !important;
}

.app-minw-280 {
    min-width: 280px !important;
}

.match-sheet-sticky-actions {
    z-index: 1000;
    margin-left: -24px;
    margin-right: -24px;
    background-color: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
}

.match-sheet-footer-fix {
    z-index: 999;
}

.match-sheet-inline-note,
.match-sheet-tab-nav,
.match-sheet-score-strip {
    background-color: var(--bs-tertiary-bg) !important;
    border-color: var(--bs-border-color) !important;
}

.match-sheet-panel {
    --match-sheet-panel-surface: var(--bs-body-bg);
    --match-sheet-panel-border: rgba(122, 133, 153, 0.18);
    --match-sheet-panel-header-bg: var(--bs-tertiary-bg);
    --match-sheet-panel-title-color: var(--bs-emphasis-color, var(--bs-body-color));
    --match-sheet-panel-meta-color: var(--bs-secondary-color);
    --match-sheet-panel-accent: var(--bs-primary);
    --match-sheet-panel-soft-bg: rgba(var(--bs-primary-rgb), 0.08);
    --match-sheet-panel-soft-border: rgba(var(--bs-primary-rgb), 0.2);
    --match-sheet-panel-soft-color: var(--match-sheet-panel-title-color);
    --match-sheet-panel-cta-bg: var(--match-sheet-panel-accent);
    --match-sheet-panel-cta-border: var(--match-sheet-panel-accent);
    --match-sheet-panel-cta-hover-bg: var(--match-sheet-panel-accent);
    --match-sheet-panel-cta-hover-border: var(--match-sheet-panel-accent);
    border: 1px solid var(--match-sheet-panel-border) !important;
    background-color: var(--match-sheet-panel-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.match-sheet-panel__header {
    background: var(--match-sheet-panel-header-bg) !important;
    border-bottom: 1px solid var(--match-sheet-panel-border) !important;
    color: var(--match-sheet-panel-title-color);
    padding: 1rem 1.5rem;
}

.match-sheet-panel__header h5,
.match-sheet-panel__title {
    color: var(--match-sheet-panel-title-color);
}

.match-sheet-panel__icon {
    color: var(--match-sheet-panel-accent);
}

.match-sheet-panel__meta {
    color: var(--match-sheet-panel-meta-color) !important;
}

.match-sheet-panel .card-body {
    background-color: var(--match-sheet-panel-surface);
}

.match-sheet-panel__action-btn,
.match-sheet-panel__danger-btn {
    background-color: var(--match-sheet-panel-cta-bg);
    border-color: var(--match-sheet-panel-cta-border);
    color: #fff;
}

.match-sheet-panel__action-btn:hover,
.match-sheet-panel__action-btn:focus,
.match-sheet-panel__danger-btn:hover,
.match-sheet-panel__danger-btn:focus {
    background-color: var(--match-sheet-panel-cta-hover-bg);
    border-color: var(--match-sheet-panel-cta-hover-border);
    color: #fff;
}

.match-sheet-panel__toggle {
    background-color: var(--match-sheet-panel-soft-bg);
    border-color: var(--match-sheet-panel-soft-border);
    color: var(--match-sheet-panel-soft-color);
}

.match-sheet-panel__toggle:hover,
.match-sheet-panel__toggle:focus,
.match-sheet-panel__toggle:active {
    background-color: var(--match-sheet-panel-soft-bg);
    border-color: var(--match-sheet-panel-soft-border);
    color: var(--match-sheet-panel-soft-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.08);
}

.match-sheet-panel--import {
    --match-sheet-panel-border: rgba(47, 109, 179, 0.18);
    --match-sheet-panel-header-bg: linear-gradient(135deg, rgba(47, 109, 179, 0.12), rgba(126, 198, 255, 0.16));
    --match-sheet-panel-title-color: #29476d;
    --match-sheet-panel-meta-color: #607997;
    --match-sheet-panel-accent: #2f6db3;
    --match-sheet-panel-soft-bg: rgba(47, 109, 179, 0.08);
    --match-sheet-panel-soft-border: rgba(47, 109, 179, 0.2);
    --match-sheet-panel-soft-color: #29476d;
    --match-sheet-panel-cta-bg: #2f6db3;
    --match-sheet-panel-cta-border: #2f6db3;
    --match-sheet-panel-cta-hover-bg: #255a94;
    --match-sheet-panel-cta-hover-border: #255a94;
}

.match-sheet-panel--maintenance {
    --match-sheet-panel-surface: #fffdf8;
    --match-sheet-panel-border: rgba(154, 106, 28, 0.22);
    --match-sheet-panel-header-bg: linear-gradient(135deg, rgba(245, 215, 146, 0.42), rgba(255, 245, 211, 0.84));
    --match-sheet-panel-title-color: #6f4f1c;
    --match-sheet-panel-meta-color: #8e6b35;
    --match-sheet-panel-accent: #9a6a1c;
    --match-sheet-panel-soft-bg: rgba(154, 106, 28, 0.1);
    --match-sheet-panel-soft-border: rgba(154, 106, 28, 0.2);
    --match-sheet-panel-soft-color: #6f4f1c;
    --match-sheet-panel-cta-bg: #9a6a1c;
    --match-sheet-panel-cta-border: #9a6a1c;
    --match-sheet-panel-cta-hover-bg: #815817;
    --match-sheet-panel-cta-hover-border: #815817;
}

.match-sheet-inline-note {
    color: var(--bs-secondary-color);
}

.match-sheet-tab-nav .nav-link {
    color: var(--bs-body-color);
}

.match-sheet-score-strip .border-end {
    border-color: var(--bs-border-color) !important;
}

.match-sheet-score-feedback {
    line-height: 1.5;
}

.match-sheet-score-conditional:disabled {
    background-color: var(--bs-tertiary-bg) !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.match-sheet-page textarea[readonly] {
    background-color: var(--bs-tertiary-bg);
    cursor: not-allowed;
}

.match-sheet-stat-card {
    border: 1px solid rgba(122, 133, 153, 0.18) !important;
    overflow: hidden;
}

.match-sheet-stat-card__header {
    border-bottom: 1px solid rgba(122, 133, 153, 0.18);
}

.match-sheet-stat-card--goals .match-sheet-stat-card__header {
    background: linear-gradient(135deg, rgba(35, 122, 76, 0.12), rgba(176, 236, 196, 0.3));
    color: #1f6b45;
}

.match-sheet-stat-card--cards .match-sheet-stat-card__header {
    background: linear-gradient(135deg, rgba(181, 112, 21, 0.14), rgba(255, 226, 168, 0.34));
    color: #835216;
}

.match-sheet-entity-row.d-none {
    display: none !important;
}

[data-bs-theme="dark"] .match-sheet-sticky-actions {
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .match-sheet-panel {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

[data-bs-theme="dark"] .match-sheet-panel--import {
    --match-sheet-panel-surface: #24282f;
    --match-sheet-panel-border: rgba(117, 189, 255, 0.28);
    --match-sheet-panel-header-bg: linear-gradient(135deg, rgba(47, 109, 179, 0.3), rgba(23, 39, 61, 0.84));
    --match-sheet-panel-title-color: #e4f0ff;
    --match-sheet-panel-meta-color: #a8c0dd;
    --match-sheet-panel-accent: #75bdff;
    --match-sheet-panel-soft-bg: rgba(117, 189, 255, 0.12);
    --match-sheet-panel-soft-border: rgba(117, 189, 255, 0.26);
    --match-sheet-panel-soft-color: #deecff;
    --match-sheet-panel-cta-bg: #3b82c4;
    --match-sheet-panel-cta-border: #3b82c4;
    --match-sheet-panel-cta-hover-bg: #2f6fa8;
    --match-sheet-panel-cta-hover-border: #2f6fa8;
}

[data-bs-theme="dark"] .match-sheet-panel--maintenance {
    --match-sheet-panel-surface: #2a2620;
    --match-sheet-panel-border: rgba(240, 197, 106, 0.26);
    --match-sheet-panel-header-bg: linear-gradient(135deg, rgba(154, 106, 28, 0.34), rgba(70, 54, 27, 0.84));
    --match-sheet-panel-title-color: #ffe8bc;
    --match-sheet-panel-meta-color: #d9c18e;
    --match-sheet-panel-accent: #f0c56a;
    --match-sheet-panel-soft-bg: rgba(240, 197, 106, 0.14);
    --match-sheet-panel-soft-border: rgba(240, 197, 106, 0.26);
    --match-sheet-panel-soft-color: #ffe8bc;
    --match-sheet-panel-cta-bg: #ad7930;
    --match-sheet-panel-cta-border: #ad7930;
    --match-sheet-panel-cta-hover-bg: #956821;
    --match-sheet-panel-cta-hover-border: #956821;
}

[data-bs-theme="dark"] .match-sheet-stat-card {
    border-color: rgba(122, 133, 153, 0.24) !important;
}

[data-bs-theme="dark"] .match-sheet-stat-card__header {
    border-bottom-color: rgba(122, 133, 153, 0.24);
}

[data-bs-theme="dark"] .match-sheet-stat-card--goals .match-sheet-stat-card__header {
    background: linear-gradient(135deg, rgba(31, 107, 69, 0.42), rgba(17, 46, 33, 0.9));
    color: #c8f1dc;
}

[data-bs-theme="dark"] .match-sheet-stat-card--cards .match-sheet-stat-card__header {
    background: linear-gradient(135deg, rgba(131, 82, 22, 0.42), rgba(58, 42, 18, 0.92));
    color: #ffe1ad;
}

/* Keep CKEditor readable inside the Webadmin theme across all pages. */
.ck.ck-editor__main > .ck-editor__editable,
.ck.ck-toolbar,
.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content {
    background: #fff !important;
    color: #282c2f !important;
}

.ck.ck-button,
a.ck.ck-button,
.ck.ck-button .ck-icon,
a.ck.ck-button .ck-icon,
.ck.ck-dropdown__button,
.ck.ck-dropdown__button .ck-button__label {
    color: #282c2f !important;
}

.ck.ck-button:not(.ck-disabled):hover,
.ck.ck-button:not(.ck-disabled):focus,
.ck.ck-button.ck-on,
a.ck.ck-button:not(.ck-disabled):hover,
a.ck.ck-button:not(.ck-disabled):focus,
a.ck.ck-button.ck-on,
.ck.ck-button:active,
a.ck.ck-button:active {
    background: rgba(31, 88, 199, 0.12) !important;
    border-color: rgba(31, 88, 199, 0.2) !important;
    color: #1f58c7 !important;
    box-shadow: none !important;
}

.ck.ck-button:not(.ck-disabled):hover .ck-icon,
.ck.ck-button:not(.ck-disabled):focus .ck-icon,
.ck.ck-button.ck-on .ck-icon,
a.ck.ck-button:not(.ck-disabled):hover .ck-icon,
a.ck.ck-button:not(.ck-disabled):focus .ck-icon,
a.ck.ck-button.ck-on .ck-icon {
    color: #1f58c7 !important;
}

.ck.ck-tooltip .ck-tooltip__text,
.ck.ck-tooltip .ck-tooltip__text * {
    background: #1f2937 !important;
    color: #fff !important;
}

.ck.ck-list,
.ck.ck-dropdown__panel,
.ck.ck-dropdown__panel .ck-button,
.ck.ck-list__item .ck-button .ck-button__label {
    color: #282c2f !important;
    font-family: "IBM Plex Sans", sans-serif !important;
}

/* Keep uploaded rich-text images responsive inside the editor and rendered HTML. */
.ck.ck-editor__main > .ck-editor__editable img,
.ck.ck-editor__main > .ck-editor__editable .image img,
.ck-content img,
.ck-content .image img,
.app-richtext-content img,
.app-richtext-content .image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.ck.ck-editor__main > .ck-editor__editable .image,
.ck-content .image,
.app-richtext-content .image {
    display: table;
    clear: both;
    margin: 1.25rem auto;
    max-width: 100%;
}

.ck.ck-editor__main > .ck-editor__editable .image.image_resized,
.ck-content .image.image_resized,
.app-richtext-content .image.image_resized {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
}

.ck.ck-editor__main > .ck-editor__editable .image.image_resized img,
.ck-content .image.image_resized img,
.app-richtext-content .image.image_resized img {
    width: 100%;
}

.ck.ck-editor__main > .ck-editor__editable figcaption,
.ck-content figcaption,
.app-richtext-content figcaption {
    color: #7a8290;
    font-size: 0.875rem;
    line-height: 1.45;
    margin-top: 0.5rem;
    text-align: center;
}

/* Editor sizing by page. */
#announcement-text + .ck-editor .ck-editor__editable_inline,
.announcement-richtext-editor + .ck-editor .ck-editor__editable_inline {
    min-height: 300px;
}

.announcement-form-card {
    overflow: hidden;
}

.announcement-form-summary {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.02));
}

.announcement-form-summary__eyebrow {
    letter-spacing: 0.08em;
}

.announcement-form-summary__badge {
    white-space: normal;
    max-width: 26rem;
    text-align: left;
}

.announcement-form-tabs {
    gap: 0.35rem;
}

.announcement-form-tabs .nav-item {
    flex: 0 0 auto;
}

.announcement-form-tabs .nav-link {
    border-radius: 0.9rem 0.9rem 0 0;
    font-weight: 600;
    padding: 0.9rem 1rem;
}

.announcement-form-pane,
.announcement-form-schedule {
    background-color: rgba(248, 249, 250, 0.75);
}

.announcement-form-image {
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.95), rgba(233, 236, 239, 0.95));
}

.announcement-form-image img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.announcement-form-image--empty {
    border: 1px dashed rgba(122, 130, 144, 0.35);
}

#history-editor + .ck-editor .ck-editor__editable_inline {
    min-height: 380px;
}

.app-public-shell .page-content {
    min-height: calc(100vh - 84px);
}

/* Settings page */
.settings-hero-card {
    border-radius: 1rem;
}

.settings-hero-badge {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.settings-hero-copy {
    max-width: 56rem;
}

.settings-hero-card .card-body {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.settings-summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.settings-summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 0.5rem;
}

.settings-tabs-card .card-footer {
    border-top-style: dashed !important;
}

.settings-tabs-card {
    overflow: hidden;
}

.settings-nav-tabs {
    gap: 0.25rem;
}

.settings-nav-tabs .nav-item {
    flex: 0 0 auto;
}

.settings-nav-tabs .nav-link {
    border-radius: 0.9rem 0.9rem 0 0;
    font-weight: 600;
    text-align: center;
    padding: 0.85rem 1rem;
}

.settings-tab-icon {
    font-size: 1rem;
    line-height: 1;
}

.settings-nav-tabs .nav-link.active {
    border-bottom-color: transparent;
}

.settings-switch-box {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.settings-switch-box .form-check {
    min-height: 1.75rem;
    padding-left: 3rem;
}

.settings-switch-box .form-check-label {
    display: block;
    line-height: 1.4;
    margin-top: 0;
}

.settings-portal-card,
.settings-role-card,
.settings-permission-group-card {
    border-radius: 1rem;
}

.settings-portal-card .card-body {
    min-height: 100px;
}

.settings-portal-card .min-w-0 {
    min-width: 0;
}

.settings-portal-card .avatar-title {
    height: 2.75rem;
    width: 2.75rem;
}

.settings-portal-card .form-check-input,
.settings-role-card .form-check-input {
    float: none;
    margin-left: 0;
}

.settings-portal-copy {
    line-height: 1.45;
}

.settings-role-description {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.settings-role-card .btn {
    font-weight: 600;
}

.settings-icon-badge {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 999px;
    color: var(--bs-primary);
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.settings-icon-badge i {
    font-size: 1.1rem;
    line-height: 1;
}

.settings-permission-group-card .card-header {
    padding: 1rem 1.25rem;
}

.settings-permissions-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.settings-permissions-table th,
.settings-permissions-table td {
    padding: 0.85rem 1rem;
}

.settings-permissions-table td .small {
    line-height: 1.45;
}

.settings-permission-checkbox {
    float: none;
    margin: 0;
}

.settings-map-preview {
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 0.75rem;
}

.settings-map-preview-image {
    display: block;
    max-height: 220px;
    object-fit: cover;
    width: 100%;
}

.settings-map-empty {
    align-items: center;
    border: 1px dashed rgba(31, 88, 199, 0.24);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 1.5rem;
    text-align: center;
}

.settings-map-empty i {
    font-size: 2rem;
}

.settings-asset-preview {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    min-height: 7rem;
    padding: 0.75rem;
}

.settings-asset-preview img {
    max-height: 4.5rem;
    object-fit: contain;
    width: auto;
}

.settings-brand-colors-card {
    border-radius: 1rem;
}

.settings-brand-colors-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-brand-card-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.settings-brand-restore-button {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
}

.settings-brand-presets {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.settings-brand-preset {
    align-items: center;
    appearance: none;
    background: var(--bs-body-bg);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
    min-height: 3.5rem;
    padding: 0.75rem 0.9rem;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-brand-preset:hover {
    border-color: var(--app-brand-accent-border);
    transform: translateY(-1px);
}

.settings-brand-preset:focus-visible {
    border-color: var(--app-brand-accent);
    box-shadow: 0 0 0 0.2rem var(--app-brand-accent-focus);
    outline: 0;
}

.settings-brand-preset.is-active {
    background: var(--app-brand-accent-subtle);
    border-color: var(--app-brand-accent);
    box-shadow: 0 0 0 0.12rem var(--app-brand-accent-focus);
}

.settings-brand-preset__swatches {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.35rem;
}

.settings-brand-preset__swatch {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    display: inline-block;
    height: 1rem;
    width: 1rem;
}

.settings-brand-preset__swatch--light {
    background: var(--settings-brand-preset-light);
}

.settings-brand-preset__swatch--dark {
    background: var(--settings-brand-preset-dark);
}

.settings-brand-preset__label {
    color: var(--bs-heading-color);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.settings-brand-color-field {
    align-items: center;
    background: var(--bs-body-bg);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1rem;
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
}

.settings-brand-color-input {
    border-radius: 0.9rem;
    flex: 0 0 auto;
    height: 3rem;
    min-width: 4.25rem;
    padding: 0.3rem;
    width: 4.25rem;
}

.settings-brand-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.settings-brand-color-input::-webkit-color-swatch {
    border: 0;
    border-radius: 0.75rem;
}

.settings-brand-color-input::-moz-color-swatch {
    border: 0;
    border-radius: 0.75rem;
}

.settings-brand-color-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.settings-brand-color-caption {
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.settings-brand-color-value {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.settings-summary-tile {
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
}

.settings-summary-card {
    position: sticky;
    top: 104px;
}

.settings-summary-meta {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 0.45rem;
}

.settings-summary-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.65rem;
    padding: 0.35rem 0.8rem;
}

.settings-status-dot {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
}

@media (max-width: 991.98px) {
    .settings-nav-tabs .nav-link {
        border-radius: 1rem 1rem 0 0;
        margin-bottom: 0;
        min-width: 0;
        padding: 0.85rem 0.75rem;
    }

    .settings-brand-color-field {
        gap: 0.75rem;
    }

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

@media (max-width: 767.98px) {
    .settings-nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .settings-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .settings-nav-tabs .nav-item {
        flex: 0 0 auto;
        min-width: 0;
    }

    .settings-nav-tabs .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 3.5rem;
        min-width: 3.5rem;
        padding: 0.75rem 0.75rem;
        border-radius: 1rem 1rem 0 0;
    }

    .settings-tab-icon {
        font-size: 1.2rem;
    }

    .settings-nav-tabs .nav-link.active {
        border-bottom-color: transparent;
    }

    .settings-brand-preset {
        min-height: 3.2rem;
    }
}

@media (max-width: 575.98px) {
    .settings-brand-color-field {
        align-items: flex-start;
        flex-direction: column;
    }
}

.match-draft-select.conflict-same-row,
.match-draft-select.conflict-other-match,
.match-draft-select.conflict-restr-hard {
    background-color: #fdd !important;
}

.match-draft-select.conflict-restr-last-minute {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.2);
    border-color: #f0ad4e;
}

.match-draft-select.conflict-team-last {
    background-color: #ffd699 !important;
}

.match-draft-select.conflict-team-recent,
.match-draft-select.conflict-restr-soft {
    background-color: #ffe9bf !important;
}

.match-draft-select.conflict-team-streak2 {
    background-color: #ffc266 !important;
}

.match-draft-select.conflict-team-streak3 {
    background-color: #ffb3b3 !important;
}

.match-draft-row--last-minute td {
    background-image: linear-gradient(90deg, rgba(255, 193, 7, 0.12), rgba(255, 193, 7, 0));
}

.match-draft-row--last-minute td:first-child {
    box-shadow: inset 4px 0 0 #f0ad4e;
}

.match-draft-last-minute-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.18);
    color: #9a6700;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.match-draft-last-minute-pill::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: currentColor;
}

[data-bs-theme="dark"] .match-draft-select.conflict-restr-last-minute {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.18);
    border-color: #ffcf70;
}

[data-bs-theme="dark"] .match-draft-row--last-minute td {
    background-image: linear-gradient(90deg, rgba(255, 193, 7, 0.14), rgba(255, 193, 7, 0.02));
}

[data-bs-theme="dark"] .match-draft-row--last-minute td:first-child {
    box-shadow: inset 4px 0 0 #ffcf70;
}

[data-bs-theme="dark"] .match-draft-last-minute-pill {
    background: rgba(255, 193, 7, 0.22);
    color: #ffd874;
}

.match-draft-toolbar {
    border-color: rgba(122, 133, 153, 0.18);
}

.match-draft-toolbar .card-title {
    font-size: 1rem;
}

.match-draft-row__match {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.match-draft-row__details {
    min-width: 0;
}

.match-draft-toolbar__switch {
    margin-bottom: 0;
    min-height: 1.5rem;
    padding-left: 2.9rem;
}

.match-draft-toolbar__switch .form-check-input {
    margin-left: -2.9rem;
    margin-top: 0.15rem;
}

.match-draft-row__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    margin-left: auto;
}

.match-draft-row__summary-item {
    align-items: center;
    background: #f8f9fc;
    border: 1px solid #e6ebf1;
    border-radius: 999px;
    color: #556071;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.35rem;
    line-height: 1.25;
    padding: 0.2rem 0.65rem;
}

.match-draft-row__summary-item strong {
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 700;
}

.match-draft-row__summary-item--available {
    background: rgba(52, 195, 143, 0.1);
    border-color: rgba(52, 195, 143, 0.16);
    color: #146c55;
}

.match-draft-row__summary-item--conditional {
    background: rgba(247, 184, 75, 0.12);
    border-color: rgba(247, 184, 75, 0.18);
    color: #9b6400;
}

.match-draft-row__summary-item--blocked {
    background: rgba(244, 106, 106, 0.1);
    border-color: rgba(244, 106, 106, 0.16);
    color: #c24c4c;
}

@media (max-width: 767.98px) {
    .match-draft-row__match {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .match-draft-row__summary {
        justify-content: flex-start;
        margin-left: 0;
    }

    .match-draft-toolbar__switch {
        padding-left: 2.65rem;
    }

    .match-draft-toolbar__switch .form-check-input {
        margin-left: -2.65rem;
    }

    .match-draft-row__summary-item {
        font-size: 0.68rem;
    }
}

[data-bs-theme="dark"] .match-draft-toolbar {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .match-draft-row__summary-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.92);
}

[data-bs-theme="dark"] .match-draft-row__summary-item strong {
    color: #f8fafc;
}

[data-bs-theme="dark"] .match-draft-row__summary-item--available {
    background: rgba(52, 195, 143, 0.18);
    border-color: rgba(52, 195, 143, 0.26);
    color: #7fe0b9;
}

[data-bs-theme="dark"] .match-draft-row__summary-item--conditional {
    background: rgba(247, 184, 75, 0.2);
    border-color: rgba(247, 184, 75, 0.28);
    color: #ffd28a;
}

[data-bs-theme="dark"] .match-draft-row__summary-item--blocked {
    background: rgba(244, 106, 106, 0.18);
    border-color: rgba(244, 106, 106, 0.26);
    color: #ffaaaa;
}

/* Theme-aware app surfaces */
:root {
    --app-surface-soft: #f8faff;
    --app-surface-base: #ffffff;
    --app-surface-border: #edf1f7;
    --app-heading-accent: #2c416d;
    --app-text-muted: #8a94a6;
    --app-hero-surface:
        linear-gradient(135deg, rgba(31, 88, 199, 0.08), rgba(31, 88, 199, 0.02)),
        #ffffff;
    --app-status-online-bg: rgba(52, 195, 143, 0.16);
    --app-status-online-color: #14865a;
    --app-status-offline-bg: rgba(244, 106, 106, 0.14);
    --app-status-offline-color: #d94c4c;
}

[data-bs-theme="dark"] {
    --app-surface-soft: rgba(255, 255, 255, 0.04);
    --app-surface-base: #20242a;
    --app-surface-border: rgba(255, 255, 255, 0.08);
    --app-heading-accent: #e7eefc;
    --app-text-muted: #aab4c8;
    --app-hero-surface:
        linear-gradient(135deg, rgba(31, 88, 199, 0.16), rgba(31, 88, 199, 0.05)),
        #20242a;
    --app-status-online-bg: rgba(52, 195, 143, 0.18);
    --app-status-online-color: #73d8ae;
    --app-status-offline-bg: rgba(244, 106, 106, 0.18);
    --app-status-offline-color: #ff9e9e;
}

/* Dynamic union brand accents
 * The union colors are injected as CSS custom properties from the super-admin
 * settings screen. These overrides map the runtime palette onto the template's
 * compiled primary classes while keeping the actual rules centralized here.
 */
.btn-primary {
    --bs-btn-color: var(--app-brand-accent-contrast);
    --bs-btn-bg: var(--app-brand-accent);
    --bs-btn-border-color: var(--app-brand-accent);
    --bs-btn-hover-color: var(--app-brand-accent-contrast);
    --bs-btn-hover-bg: var(--app-brand-accent-hover);
    --bs-btn-hover-border-color: var(--app-brand-accent-hover);
    --bs-btn-focus-shadow-rgb: var(--app-brand-accent-rgb);
    --bs-btn-active-color: var(--app-brand-accent-contrast);
    --bs-btn-active-bg: var(--app-brand-accent-active);
    --bs-btn-active-border-color: var(--app-brand-accent-active);
    --bs-btn-disabled-color: var(--app-brand-accent-contrast);
    --bs-btn-disabled-bg: var(--app-brand-accent);
    --bs-btn-disabled-border-color: var(--app-brand-accent);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-brand-accent);
    --bs-btn-border-color: var(--app-brand-accent);
    --bs-btn-hover-color: var(--app-brand-accent-contrast);
    --bs-btn-hover-bg: var(--app-brand-accent);
    --bs-btn-hover-border-color: var(--app-brand-accent);
    --bs-btn-focus-shadow-rgb: var(--app-brand-accent-rgb);
    --bs-btn-active-color: var(--app-brand-accent-contrast);
    --bs-btn-active-bg: var(--app-brand-accent);
    --bs-btn-active-border-color: var(--app-brand-accent);
    --bs-btn-disabled-color: var(--app-brand-accent);
    --bs-btn-disabled-border-color: var(--app-brand-accent);
}

.btn-subtle-primary {
    background-color: var(--app-brand-accent-subtle);
    border-color: transparent;
    color: var(--app-brand-accent);
}

.btn-subtle-primary:hover,
.btn-subtle-primary:focus,
.btn-subtle-primary:active,
.btn-subtle-primary.active,
.show > .btn-subtle-primary.dropdown-toggle {
    background-color: var(--app-brand-accent) !important;
    border-color: transparent !important;
    color: var(--app-brand-accent-contrast) !important;
}

.btn-subtle-primary:focus {
    box-shadow: 0 0 0 0.15rem var(--app-brand-accent-focus) !important;
}

.bg-primary,
.text-bg-primary {
    background-color: var(--app-brand-accent) !important;
    border-color: var(--app-brand-accent) !important;
    color: var(--app-brand-accent-contrast) !important;
}

.bg-primary-subtle {
    background-color: var(--app-brand-accent-subtle) !important;
}

.text-primary,
.text-primary-emphasis,
.link-primary {
    color: var(--app-brand-accent) !important;
}

.border-primary {
    border-color: var(--app-brand-accent) !important;
}

.border-primary-subtle {
    border-color: var(--app-brand-accent-border) !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--app-brand-accent);
    color: var(--app-brand-accent-contrast);
}

.form-check-input:checked {
    background-color: var(--app-brand-accent);
    border-color: var(--app-brand-accent);
}

.form-check-input:focus {
    border-color: var(--app-brand-accent);
    box-shadow: 0 0 0 0.2rem var(--app-brand-accent-focus);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--app-brand-accent-border);
    box-shadow: 0 0 0 0.2rem var(--app-brand-accent-focus);
}

.page-link {
    color: var(--app-brand-accent);
}

.page-link:hover {
    color: var(--app-brand-accent-hover);
}

.page-item.active .page-link {
    background-color: var(--app-brand-accent);
    border-color: var(--app-brand-accent);
    color: var(--app-brand-accent-contrast);
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--app-brand-accent);
    --bs-nav-pills-link-active-color: var(--app-brand-accent-contrast);
}

.nav-tabs-custom .nav-item .nav-link::after {
    background: var(--app-brand-accent);
}

.nav-tabs-custom .nav-item .nav-link.active {
    background-color: var(--app-brand-accent-subtle-strong);
    color: var(--app-brand-accent) !important;
}

.settings-hero-card {
    background: var(--app-hero-surface);
    border: 1px solid var(--app-surface-border);
}

.settings-hero-badge,
.settings-summary-value {
    color: var(--app-heading-accent) !important;
}

.settings-summary-label,
.settings-summary-meta,
.settings-nav-tabs .nav-link {
    color: var(--app-text-muted) !important;
}

.settings-nav-tabs .nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--app-heading-accent) !important;
}

.settings-tab-content,
.settings-savebar,
.settings-permissions-table thead th,
.settings-switch-box,
.settings-map-preview,
.settings-map-empty,
.settings-asset-preview,
.settings-summary-tile {
    background: var(--app-surface-base);
    border-color: var(--app-surface-border) !important;
}

.settings-switch-box,
.settings-map-preview,
.settings-map-empty,
.settings-asset-preview,
.settings-summary-tile,
.settings-permissions-table thead th {
    background: var(--app-surface-soft);
}

.settings-switch-box .form-check-label,
.settings-map-empty,
.settings-tabs-card .card-title,
.settings-summary-card .card-title {
    color: var(--app-heading-accent);
}

.settings-summary-status.is-online {
    background: var(--app-status-online-bg);
    color: var(--app-status-online-color);
}

.settings-summary-status.is-offline {
    background: var(--app-status-offline-bg);
    color: var(--app-status-offline-color);
}

.settings-status-dot {
    box-shadow: 0 0 0 4px rgba(var(--bs-body-bg-rgb), 0.85);
}

[data-bs-theme="dark"] .settings-tabs-card .text-muted,
[data-bs-theme="dark"] .settings-summary-card .text-muted,
[data-bs-theme="dark"] .settings-tab-content .text-muted {
    color: var(--app-text-muted) !important;
}

[data-bs-theme="dark"] .bg-primary-subtle.bg-opacity-50 {
    background-color: rgba(var(--bs-primary-rgb), 0.16) !important;
}

[data-bs-theme="dark"] .bg-light-subtle,
[data-bs-theme="dark"] .bg-light {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .alert-light,
[data-bs-theme="dark"] .text-bg-light {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .card-header.bg-light-subtle,
[data-bs-theme="dark"] .border .bg-light-subtle.border-bottom,
[data-bs-theme="dark"] .border .bg-light.border-bottom {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: rgba(255, 255, 255, 0.04);
    --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .badge.bg-white {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .btn-light {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-light:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--bs-body-color);
}

.settings-sidebar-panel-card {
    background: var(--app-surface-base);
    border-color: var(--app-surface-border) !important;
    border-radius: 1rem;
}

.settings-sidebar-entry-card,
.settings-sidebar-workspace-card {
    background: var(--app-surface-base);
    border: 1px solid var(--app-surface-border);
}

.settings-sidebar-entry-card h4 {
    color: var(--app-heading-accent);
}

.settings-sidebar-builder__toolbar .btn {
    font-weight: 600;
}

.settings-sidebar-builder__library-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.15rem;
}

.settings-sidebar-builder__library-actions {
    display: grid;
    gap: 0.65rem;
}

.settings-sidebar-builder__library-item {
    align-items: flex-start;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-surface-border);
    border-radius: 1rem;
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.settings-sidebar-builder__library-item:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.26);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.settings-sidebar-builder.is-library-dragging .settings-sidebar-builder__library-item:not(.is-disabled) {
    border-style: dashed;
}

.settings-sidebar-builder__library-item.is-disabled {
    opacity: 0.72;
}

.settings-sidebar-builder__library-item .btn {
    flex: 0 0 auto;
}

.settings-sidebar-builder__library-main {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
    min-width: 0;
}

.settings-sidebar-builder__library-icon {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 0.9rem;
    color: var(--bs-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.15rem;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.settings-sidebar-builder__library-drag {
    border: 1px solid transparent;
    cursor: grab;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.settings-sidebar-builder__library-drag:hover {
    background: rgba(var(--bs-primary-rgb), 0.16);
    border-color: rgba(var(--bs-primary-rgb), 0.18);
    transform: translateY(-1px);
}

.settings-sidebar-builder__library-drag:active {
    cursor: grabbing;
}

.settings-sidebar-builder__library-item.is-disabled .settings-sidebar-builder__library-drag {
    cursor: not-allowed;
}

.settings-sidebar-builder__library-meta {
    min-width: 0;
}

.settings-sidebar-builder__library-meta .fw-semibold {
    color: var(--app-heading-accent);
}

.settings-sidebar-builder__library-drag-hint {
    align-items: center;
    color: var(--app-text-muted);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 600;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.settings-sidebar-builder__library-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.settings-sidebar-builder__library-empty,
.settings-sidebar-builder__canvas-empty,
.settings-sidebar-builder__drop-empty,
.settings-sidebar-builder__preview-empty {
    align-items: center;
    background: var(--app-surface-soft);
    border: 1px dashed rgba(var(--bs-primary-rgb), 0.24);
    border-radius: 1rem;
    color: var(--app-text-muted);
    display: flex;
    justify-content: center;
    min-height: 8rem;
    padding: 1rem;
    text-align: center;
}

.settings-sidebar-builder__canvas {
    min-height: 34rem;
}

.settings-sidebar-builder__canvas-list {
    border: 1px solid transparent;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    padding: 0.2rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-sidebar-builder__canvas-list.is-empty {
    min-height: 20rem;
}

.settings-sidebar-builder__canvas-list.is-drag-over,
.settings-sidebar-builder__canvas-children.is-drag-over {
    background: rgba(var(--bs-primary-rgb), 0.05);
    border-color: rgba(var(--bs-primary-rgb), 0.34);
    box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.08);
}

.settings-sidebar-builder__canvas-item {
    background: var(--app-surface-base);
    border: 1px solid var(--app-surface-border);
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    padding: 0.8rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-sidebar-builder__canvas-item.is-selected {
    border-color: rgba(var(--bs-primary-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.14);
}

.settings-sidebar-builder__canvas-item-main {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, auto) auto;
}

.settings-sidebar-builder__drag-handle {
    align-items: center;
    cursor: grab;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.settings-sidebar-builder__drag-handle:active {
    cursor: grabbing;
}

.settings-sidebar-builder__canvas-select {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: flex;
    gap: 0.85rem;
    min-width: 0;
    padding: 0;
    text-align: left;
    width: 100%;
}

.settings-sidebar-builder__canvas-icon,
.settings-sidebar-builder__icon-preview,
.settings-sidebar-builder__preview-icon {
    align-items: center;
    background: rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 0.9rem;
    color: var(--bs-primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.settings-sidebar-builder__canvas-icon.is-divider {
    background: rgba(122, 133, 153, 0.12);
    color: var(--app-text-muted);
}

.settings-sidebar-builder__canvas-icon.is-nested {
    background: rgba(var(--bs-info-rgb), 0.12);
    color: var(--bs-info);
}

.settings-sidebar-builder__canvas-copy {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    min-width: 0;
}

.settings-sidebar-builder__canvas-title {
    color: var(--app-heading-accent);
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.settings-sidebar-builder__canvas-subtitle {
    color: var(--app-text-muted);
    display: block;
    font-size: 0.83rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-sidebar-builder__canvas-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.settings-sidebar-builder__canvas-children {
    background: rgba(var(--bs-primary-rgb), 0.03);
    border: 1px dashed rgba(var(--bs-primary-rgb), 0.2);
    border-radius: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-left: 3.2rem;
    margin-top: 0.85rem;
    min-height: 5rem;
    padding: 0.85rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-sidebar-builder__canvas-children .settings-sidebar-builder__canvas-item {
    background: var(--app-surface-soft);
    box-shadow: none;
}

.settings-sidebar-builder__drop-empty {
    min-height: 4.5rem;
}

.settings-sidebar-builder.is-library-dragging .settings-sidebar-builder__canvas-empty,
.settings-sidebar-builder.is-library-dragging .settings-sidebar-builder__drop-empty {
    border-color: rgba(var(--bs-primary-rgb), 0.42);
    color: var(--bs-primary);
}

.settings-sidebar-builder__preview {
    min-height: 18rem;
}

.settings-sidebar-builder__preview-shell {
    background:
        linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.08), rgba(var(--bs-primary-rgb), 0.02)),
        var(--app-surface-soft);
    border: 1px solid var(--app-surface-border);
    border-radius: 1rem;
    min-height: 100%;
    padding: 1rem;
}

.settings-sidebar-builder__preview-brand {
    color: var(--app-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.settings-sidebar-builder__preview-menu {
    background: var(--app-surface-base);
    border: 1px solid var(--app-surface-border);
    border-radius: 1rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    margin: 0 auto;
    max-width: 20rem;
    padding: 0.8rem;
}

.settings-sidebar-builder__preview-divider {
    color: var(--app-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 1rem 0.25rem 0.55rem;
    text-transform: uppercase;
}

.settings-sidebar-builder__preview-link {
    align-items: center;
    border-radius: 0.9rem;
    color: var(--app-heading-accent);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
}

.settings-sidebar-builder__preview-link.is-group {
    background: rgba(var(--bs-primary-rgb), 0.08);
    font-weight: 700;
}

.settings-sidebar-builder__preview-link.is-submenu {
    color: var(--bs-body-color);
    font-weight: 500;
    padding: 0.55rem 0.4rem;
}

.settings-sidebar-builder__preview-arrow {
    color: var(--app-text-muted);
    margin-left: auto;
}

.settings-sidebar-builder__preview-submenu {
    border-left: 1px solid var(--app-surface-border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.45rem 0 0 1rem;
    padding-left: 0.85rem;
}

.settings-sidebar-builder__inspector-readonly,
.settings-sidebar-builder__icon-current {
    background: var(--app-surface-soft);
    border: 1px solid var(--app-surface-border);
    border-radius: 0.95rem;
    padding: 0.9rem 1rem;
}

.settings-sidebar-builder__icon-current {
    align-items: center;
    display: flex;
    gap: 0.8rem;
}

.settings-sidebar-builder__icon-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
    max-height: 18rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.settings-sidebar-builder__icon-option {
    align-items: center;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-surface-border);
    border-radius: 0.85rem;
    color: var(--app-heading-accent);
    display: inline-flex;
    font-size: 1.15rem;
    height: 3rem;
    justify-content: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
    width: 100%;
}

.settings-sidebar-builder__icon-option:hover,
.settings-sidebar-builder__icon-option:focus {
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.28);
    color: var(--bs-primary);
    transform: translateY(-1px);
}

.settings-sidebar-builder__icon-option.is-active {
    background: rgba(var(--bs-primary-rgb), 0.14);
    border-color: rgba(var(--bs-primary-rgb), 0.44);
    color: var(--bs-primary);
}

.gu-mirror {
    box-sizing: border-box;
    margin: 0 !important;
    opacity: 0.96;
    pointer-events: none;
    position: fixed !important;
    transform: rotate(1deg);
    z-index: 9999 !important;
}

.gu-mirror .settings-sidebar-builder__canvas-item {
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.gu-mirror .settings-sidebar-builder__library-item {
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.gu-hide {
    display: none !important;
}

.gu-transit {
    opacity: 0.35;
}

.gu-unselectable {
    user-select: none;
}

[data-bs-theme="dark"] .settings-sidebar-builder__canvas-item,
[data-bs-theme="dark"] .settings-sidebar-builder__preview-menu {
    box-shadow: none;
}

[data-bs-theme="dark"] .settings-sidebar-builder__canvas-children {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 767.98px) {
    .settings-sidebar-builder__canvas-item-main {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .settings-sidebar-builder__canvas-badges {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .settings-sidebar-builder__canvas-children {
        margin-left: 0;
    }

    .settings-sidebar-builder__preview-menu {
        max-width: none;
    }
}

/* Make non-switch checkboxes readable on both themes */
.form-check-input[type="checkbox"]:not([role="switch"]) {
    background-color: var(--bs-body-bg);
    border-color: rgba(122, 133, 153, 0.6);
    box-shadow: 0 0 0 1px rgba(122, 133, 153, 0.08);
}

.form-check-input[type="checkbox"]:not([role="switch"]):hover {
    border-color: rgba(var(--bs-primary-rgb), 0.55);
}

.form-check-input[type="checkbox"]:not([role="switch"]):focus {
    border-color: rgba(var(--bs-primary-rgb), 0.7);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
}

.form-check-input[type="checkbox"]:not([role="switch"]):checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .form-check-input[type="checkbox"]:not([role="switch"]) {
    background-color: #1b1f24;
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .form-check-input[type="checkbox"]:not([role="switch"]):checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Sidebar collapse hover behavior should only apply on desktop small-sidebar mode. */
@media (min-width: 992px) {
    body[data-sidebar-size="sm"] {
        --app-sidebar-popout-width: 260px;
    }

    body[data-sidebar-size="sm"] .vertical-menu {
        position: fixed;
        top: 0;
        bottom: 0;
    }

    body[data-sidebar-size="sm"] .vertical-menu .simplebar-mask {
        overflow: hidden !important;
    }

    body[data-sidebar-size="sm"] .vertical-menu .simplebar-content-wrapper {
        overflow: auto !important;
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li > ul.sub-menu.mm-show {
        display: none !important;
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > ul.sub-menu,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > ul.sub-menu.mm-show,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > ul.sub-menu,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > ul.sub-menu.mm-show {
        display: block !important;
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li {
        --app-sidebar-popout-top: 75px;
        --app-sidebar-popout-max-height: calc(100vh - 91px);
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > a,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > a {
        align-items: center;
        display: flex;
        width: calc(var(--app-sidebar-popout-width) + 70px);
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > a span,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > a span {
        display: block;
        line-height: 1.35;
        max-width: calc(var(--app-sidebar-popout-width) - 56px);
        white-space: normal;
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > ul.sub-menu,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > ul.sub-menu.mm-show,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > ul.sub-menu,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > ul.sub-menu.mm-show {
        border: 1px solid rgba(154, 161, 171, 0.12);
        border-radius: 0 0 12px 12px;
        box-shadow: -3px 5px 10px 0 rgba(54, 61, 71, 0.1);
        inset-inline-end: auto !important;
        inset-inline-start: 70px !important;
        max-height: var(--app-sidebar-popout-max-height);
        overflow-x: hidden;
        overflow-y: auto;
        position: fixed !important;
        top: var(--app-sidebar-popout-top) !important;
        width: var(--app-sidebar-popout-width) !important;
        z-index: 1006;
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > ul.sub-menu a,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > ul.sub-menu.mm-show a,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > ul.sub-menu a,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > ul.sub-menu.mm-show a {
        min-height: 42px;
        white-space: normal;
        width: 100%;
    }
}

/* Grid.js pagination should stay template-like in both themes */
.gridjs-pagination .gridjs-pages button {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: var(--bs-secondary-color) !important;
}

.gridjs-pagination .gridjs-pages button:hover,
.gridjs-pagination .gridjs-pages button:focus {
    background: rgba(var(--bs-primary-rgb), 0.08) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.12) !important;
    color: var(--bs-body-color) !important;
}

.gridjs-pagination .gridjs-pages button:disabled,
.gridjs-pagination .gridjs-pages button.gridjs-spread {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--bs-secondary-color) !important;
}

.gridjs-pagination .gridjs-pages button.gridjs-currentPage {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

[data-gridjs-row-click="true"] .gridjs-tbody .app-gridjs-row-link {
    cursor: pointer;
}

[data-gridjs-row-click="true"] .gridjs-tbody .app-gridjs-row-link td.gridjs-td {
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

[data-gridjs-row-click="true"] .gridjs-tbody .app-gridjs-row-link:hover td.gridjs-td,
[data-gridjs-row-click="true"] .gridjs-tbody .app-gridjs-row-link:focus-visible td.gridjs-td {
    background: var(--app-brand-accent-subtle);
    color: var(--bs-emphasis-color);
}

[data-gridjs-row-click="true"] .gridjs-tbody .app-gridjs-row-link:hover td.gridjs-td:first-child,
[data-gridjs-row-click="true"] .gridjs-tbody .app-gridjs-row-link:focus-visible td.gridjs-td:first-child {
    box-shadow: inset 3px 0 0 var(--app-brand-accent);
}

[data-gridjs-row-click="true"] .gridjs-tbody .app-gridjs-row-link:focus-visible {
    outline: 2px solid var(--app-brand-accent-focus);
    outline-offset: -2px;
}

/* Grid.js dark theme alignment */
[data-bs-theme="dark"] .gridjs-container {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .gridjs-wrapper,
[data-bs-theme="dark"] .gridjs-footer {
    background-color: var(--bs-secondary-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

[data-bs-theme="dark"] th.gridjs-th,
[data-bs-theme="dark"] td.gridjs-td,
[data-bs-theme="dark"] .gridjs-tbody {
    background-color: var(--bs-secondary-bg);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] th.gridjs-th {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] th.gridjs-th-sort:hover,
[data-bs-theme="dark"] th.gridjs-th-sort:focus {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] input.gridjs-input {
    background-color: var(--bs-body-bg);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] input.gridjs-input::placeholder {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .gridjs-pagination,
[data-bs-theme="dark"] .gridjs-pagination .gridjs-summary {
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .gridjs-pagination .gridjs-pages button {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .gridjs-pagination .gridjs-pages button:hover,
[data-bs-theme="dark"] .gridjs-pagination .gridjs-pages button:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: var(--bs-body-color);
    box-shadow: none;
}

[data-bs-theme="dark"] .gridjs-pagination .gridjs-pages button:disabled,
[data-bs-theme="dark"] .gridjs-pagination .gridjs-pages button.gridjs-spread {
    background-color: transparent !important;
    color: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .gridjs-pagination .gridjs-pages button.gridjs-currentPage {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff;
}

@media (min-width: 992px) {
    .restriction-range-group {
        position: relative;
    }

    .restriction-range-group::after {
        background: var(--bs-border-color);
        bottom: 0.25rem;
        content: "";
        inset-inline-start: 50%;
        pointer-events: none;
        position: absolute;
        top: 0.25rem;
        transform: translateX(-0.5px);
        width: 1px;
    }

    .restriction-range-pane {
        padding-inline-end: calc(var(--bs-gutter-x) * 0.5 + 1rem);
    }

    .restriction-range-pane--split {
        padding-inline-start: calc(var(--bs-gutter-x) * 0.5 + 1rem);
    }
}

.restriction-filter-status {
    letter-spacing: 0.01em;
}

.restriction-overview-copy {
    flex: 1 1 32rem;
    min-width: 0;
}

.restriction-overview-description {
    max-width: 64ch;
    line-height: 1.45;
}

.restriction-summary-card {
    min-height: 112px;
}

.restriction-summary-card .card-body {
    padding: 0.9rem 1rem;
}

.restriction-summary-card__value {
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.restriction-filter-form .form-label {
    margin-bottom: 0.4rem;
}

.restriction-filter-form .form-control,
.restriction-filter-form .form-select {
    border-radius: 0.8rem;
}

.restriction-filter-form .form-control,
.restriction-filter-form .form-select,
.restriction-filter-actions-inline .btn {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.restriction-filter-actions-inline {
    justify-content: flex-end;
}

.restriction-filter-note {
    border-top: 1px solid rgba(122, 133, 153, 0.16);
    color: var(--bs-secondary-color);
    font-size: 0.84rem;
    line-height: 1.5;
    margin-top: 0.2rem;
    padding-top: 0.85rem;
}

.restriction-availability-note {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.18);
    border-radius: 0.9rem;
    color: var(--bs-body-color);
    margin-bottom: 0.85rem;
    padding: 0.7rem 0.9rem;
}

.restriction-availability-note__title {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.restriction-availability-note__text {
    color: var(--bs-secondary-color);
    font-size: 0.79rem;
    line-height: 1.4;
}

@media (max-width: 1199.98px) {
    .restriction-summary-card {
        min-height: 104px;
    }
}

@media (max-width: 767.98px) {
    .restriction-summary-card {
        min-height: 98px;
    }

    .restriction-filter-actions-inline .btn {
        flex: 1 1 0;
    }
}

/* Expanded sidebar branding
 * Opts into the custom brand header only for the open desktop sidebar so the
 * template mini-sidebar stays untouched when collapsed.
 */
.sidebar-brand__desktop {
    display: none;
}

/* Sidebar footer
 * Anchors logout and credits to the bottom of the open desktop sidebar while
 * keeping the menu area above independently scrollable.
 */
.sidebar-footer {
    display: none;
}

.vertical-menu {
    --bs-sidebar-menu-item-hover-color: var(--app-brand-accent);
    --bs-sidebar-menu-item-active-color: var(--app-brand-accent);
    --bs-sidebar-menu-sub-item-active-color: var(--app-brand-accent);
    --bs-sidebar-menu-item-active-bg-color: var(--app-brand-accent-subtle-strong);
    --bs-sidebar-dark-menu-item-hover-color: var(--app-brand-accent);
    --bs-sidebar-dark-menu-item-active-color: var(--app-brand-accent);
    --bs-sidebar-dark-menu-sub-item-active-color: var(--app-brand-accent);
    --bs-sidebar-dark-menu-item-active-bg-color: var(--app-brand-accent-subtle-strong);
}

/* Sidebar typography
 * Keeps the menu text slightly more compact than the template default so the
 * navigation matches the denser desktop layout baseline.
 */
body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a,
body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a,
body:not([data-sidebar-size]) .vertical-menu #sidebar-menu ul li ul.sub-menu li > a,
body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu ul li ul.sub-menu li > a {
    font-size: 13px;
}

/* Sidebar hover states
 * Bridges the template sidebar tokens to the configurable brand palette so
 * hover feedback always follows the current union theme.
 */
@media (min-width: 992px) {
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a:hover,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a:hover {
        background-color: var(--app-brand-accent-subtle);
        color: var(--bs-sidebar-menu-item-hover-color);
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a:hover .nav-icon,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a:hover .nav-icon {
        fill: var(--bs-sidebar-menu-item-hover-color);
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a.has-arrow:hover:after,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a.has-arrow:hover:after {
        color: var(--bs-sidebar-menu-item-hover-color);
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu ul li ul.sub-menu li > a:hover,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu ul li ul.sub-menu li > a:hover {
        color: var(--bs-sidebar-menu-item-hover-color);
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu ul li ul.sub-menu li > a:hover:before,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu ul li ul.sub-menu li > a:hover:before {
        border-color: transparent transparent var(--bs-sidebar-menu-item-hover-color) transparent;
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > a,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > a,
    body[data-bs-theme="dark"][data-sidebar="dark"][data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > a,
    body[data-bs-theme="dark"][data-sidebar="dark"][data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > a {
        color: var(--bs-sidebar-menu-item-hover-color);
    }

    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > a .nav-icon,
    body[data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > a .nav-icon,
    body[data-bs-theme="dark"][data-sidebar="dark"][data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:hover > a .nav-icon,
    body[data-bs-theme="dark"][data-sidebar="dark"][data-sidebar-size="sm"] .vertical-menu #sidebar-menu > ul > li:focus-within > a .nav-icon {
        fill: var(--bs-sidebar-menu-item-hover-color);
    }
}

/* Sidebar active states
 * Uses the same palette bridge so active items keep their stronger emphasis
 * even after the tenant changes the brand colors from Settings.
 */
@media (min-width: 992px) {
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a.active,
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li.mm-active > a,
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a.has-arrow.mm-active,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a.active,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li.mm-active > a,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a.has-arrow.mm-active {
        background-color: var(--bs-sidebar-menu-item-active-bg-color);
        color: var(--bs-sidebar-menu-item-active-color) !important;
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a.active .nav-icon,
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li.mm-active > a .nav-icon,
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a.has-arrow.mm-active .nav-icon,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a.active .nav-icon,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li.mm-active > a .nav-icon,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a.has-arrow.mm-active .nav-icon {
        fill: var(--bs-sidebar-menu-item-active-color) !important;
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li.mm-active > a.has-arrow:after,
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu > ul > li > a.has-arrow.mm-active:after,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li.mm-active > a.has-arrow:after,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu > ul > li > a.has-arrow.mm-active:after {
        color: var(--bs-sidebar-menu-item-active-color);
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu ul li ul.sub-menu li > a.active,
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu ul li.mm-active .mm-show li.mm-active > a,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu ul li ul.sub-menu li > a.active,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu ul li.mm-active .mm-show li.mm-active > a {
        color: var(--bs-sidebar-menu-sub-item-active-color) !important;
    }

    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu ul li ul.sub-menu li > a.active:before,
    body:not([data-sidebar-size]) .vertical-menu #sidebar-menu ul li.mm-active .mm-show li.mm-active > a:before,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu ul li ul.sub-menu li > a.active:before,
    body[data-sidebar-size="lg"] .vertical-menu #sidebar-menu ul li.mm-active .mm-show li.mm-active > a:before {
        border-color: transparent transparent var(--bs-sidebar-menu-sub-item-active-color) transparent;
    }
}

@media (min-width: 992px) {
    body:not([data-sidebar-size]) .vertical-menu,
    body[data-sidebar-size="lg"] .vertical-menu {
        --app-sidebar-brand-height: 156px;
        --app-sidebar-brand-logo-size: 76px;
        --app-sidebar-footer-height: 98px;
    }

    body:not([data-sidebar-size]) .vertical-menu .navbar-brand-box,
    body[data-sidebar-size="lg"] .vertical-menu .navbar-brand-box {
        display: block;
        min-height: var(--app-sidebar-brand-height);
        overflow: hidden;
        padding: 0.85rem 1rem 1rem;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-menu-scroll,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-menu-scroll {
        height: calc(100% - (var(--app-sidebar-brand-height) + var(--app-sidebar-footer-height) + 26px));
        margin-top: var(--app-sidebar-brand-height);
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__collapsed,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__collapsed {
        display: none;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__desktop,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__desktop {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        width: 100%;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__topbar,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__topbar {
        align-items: center;
        display: flex;
        gap: 0.6rem;
        justify-content: space-between;
        min-height: 38px;
        width: 100%;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__title-link,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__title-link {
        color: var(--bs-sidebar-menu-item-color);
        display: block;
        flex: 1 1 auto;
        font-family: "IBM Plex Sans", sans-serif;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
        min-width: 0;
        overflow: hidden;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__toggle,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__toggle {
        align-items: center;
        color: var(--bs-sidebar-menu-item-color);
        display: inline-flex;
        flex: 0 0 auto;
        height: 40px;
        justify-content: center;
        min-width: 40px;
        padding: 0;
        position: static;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__logo-link,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__logo-link {
        align-items: center;
        display: none;
        justify-content: center;
        line-height: 1;
        min-height: var(--app-sidebar-brand-logo-size);
        width: 100%;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__desktop .logo-dark.sidebar-brand__logo-link,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__desktop .logo-dark.sidebar-brand__logo-link {
        display: flex;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__desktop .logo-light.sidebar-brand__logo-link,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__desktop .logo-light.sidebar-brand__logo-link {
        display: none;
    }

    body[data-bs-theme="dark"]:not([data-sidebar-size]) .vertical-menu .sidebar-brand__desktop .logo-dark.sidebar-brand__logo-link,
    body[data-sidebar="dark"]:not([data-sidebar-size]) .vertical-menu .sidebar-brand__desktop .logo-dark.sidebar-brand__logo-link,
    body[data-bs-theme="dark"][data-sidebar-size="lg"] .vertical-menu .sidebar-brand__desktop .logo-dark.sidebar-brand__logo-link,
    body[data-sidebar="dark"][data-sidebar-size="lg"] .vertical-menu .sidebar-brand__desktop .logo-dark.sidebar-brand__logo-link {
        display: none;
    }

    body[data-bs-theme="dark"]:not([data-sidebar-size]) .vertical-menu .sidebar-brand__desktop .logo-light.sidebar-brand__logo-link,
    body[data-sidebar="dark"]:not([data-sidebar-size]) .vertical-menu .sidebar-brand__desktop .logo-light.sidebar-brand__logo-link,
    body[data-bs-theme="dark"][data-sidebar-size="lg"] .vertical-menu .sidebar-brand__desktop .logo-light.sidebar-brand__logo-link,
    body[data-sidebar="dark"][data-sidebar-size="lg"] .vertical-menu .sidebar-brand__desktop .logo-light.sidebar-brand__logo-link {
        display: flex;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-brand__logo,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-brand__logo {
        display: block;
        height: var(--app-sidebar-brand-logo-size);
        margin: 0 auto;
        max-height: var(--app-sidebar-brand-logo-size);
        max-width: var(--app-sidebar-brand-logo-size);
        object-fit: contain;
        width: var(--app-sidebar-brand-logo-size);
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-footer,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-footer {
        background-color: var(--bs-sidebar-bg);
        border-top: 1px solid var(--bs-sidebar-border-color);
        bottom: 0;
        display: block;
        left: 0;
        position: absolute;
        right: 0;
        z-index: 2;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-footer__inner,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-footer__inner {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding: 0.7rem 0.95rem 0.8rem;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-footer__logout,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-footer__logout {
        align-items: center;
        background-color: rgba(var(--bs-danger-rgb), 0.08);
        border: 1px solid rgba(var(--bs-danger-rgb), 0.16);
        border-radius: 10px;
        color: var(--bs-danger);
        display: flex;
        font-family: "Montserrat", sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        gap: 0.55rem;
        justify-content: center;
        padding: 0.62rem 0.9rem;
        text-decoration: none;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-footer__logout:hover,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-footer__logout:hover {
        background-color: rgba(var(--bs-danger-rgb), 0.14);
        border-color: rgba(var(--bs-danger-rgb), 0.24);
        color: var(--bs-danger);
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-footer__logout-icon,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-footer__logout-icon {
        font-size: 1rem;
        line-height: 1;
    }

    body:not([data-sidebar-size]) .vertical-menu .sidebar-footer__credit,
    body[data-sidebar-size="lg"] .vertical-menu .sidebar-footer__credit {
        color: var(--bs-sidebar-menu-item-color);
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.07em;
        opacity: 0.68;
        text-align: center;
        text-transform: uppercase;
    }

    body[data-sidebar-size="sm"] .vertical-menu .navbar-brand-box,
    body[data-sidebar-size="md"] .vertical-menu .navbar-brand-box {
        min-height: 75px;
        overflow: visible;
        padding: 0 1.5rem;
    }

    body[data-sidebar-size="sm"] .vertical-menu .sidebar-menu-scroll,
    body[data-sidebar-size="md"] .vertical-menu .sidebar-menu-scroll {
        height: calc(100% - (75px + 26px));
        margin-top: 75px;
    }

    body[data-sidebar-size="sm"] .vertical-menu .sidebar-brand__desktop,
    body[data-sidebar-size="md"] .vertical-menu .sidebar-brand__desktop,
    body[data-sidebar-size="sm"] .vertical-menu .sidebar-footer,
    body[data-sidebar-size="md"] .vertical-menu .sidebar-footer {
        display: none !important;
    }
}
