#blazor-error-ui {
    color: var(--bs-danger);
    border-color: var(--bs-danger);
    background-color: var(--bs-danger-light);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 10001;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    --primary-color: #d2fe13 !important;
    --secondary-color: #c4c4c6 !important;
    --tertiary-color: #323233 !important;
    --bs-text-primary: var(--primary-color) !important;
    --bs-link-color: var(--primary-color) !important;
    --bs-link-color-rgb: 210, 254, 19 !important;
    --bs-primary-rgb: 210, 254, 19 !important;
    --bs-primary: var(--primary-color) !important;
    --bs-primary-inverse: var(--tertiary-color) !important;
    --bs-primary-active: var(--secondary-color) !important;
    --bs-primary-light: var(--tertiary-color) !important;
    --fit4fun-quiet-border: var(--bs-border-color);
    --fit4fun-focus-ring: #0b57d0;
    --bs-root-card-border-color: var(--fit4fun-quiet-border) !important;
    --bs-heading-color: #ffffff !important;
    --bs-success: var(--primary-color) !important;
    --bs-btn-hover-bg: var(--secondary-color) !important;
    --bs-btn-hover-border-color: var(--secondary-color) !important;
}

.btn-outline-primary {
    --bs-btn-color: unset !important;
    --bs-btn-border-color: unset !important;
    --bs-btn-hover-color: #000000;
    --bs-btn-hover-bg: var(--secondary-color) !important;
    --bs-btn-hover-border-color: var(--secondary-color) !important;
    --bs-btn-active-color: #000000;
    --bs-btn-active-bg: var(--secondary-color) !important;
    --bs-btn-active-border-color: var(--tertiary-color) !important;
    --bs-btn-disabled-color: var(--tertiary-color) !important;
    --bs-btn-disabled-border-color: var(--tertiary-color) !important;
}

.btn-link {
    --bs-btn-font-weight: 400;
    --bs-btn-color: var(--primary-color) !important;
    --bs-btn-hover-color: var(--primary-color) !important;
    --bs-btn-active-color: var(--primary-color) !important;
    --bs-btn-hover-bg: transparent !important;
}

.drawer {
    top:  var(--bs-app-header-height) !important;
}

.form-label,
.form-control { color: var(--bs-body-color) !important; }

.menu-title,
.menu-icon { color: var(--bs-body-color) !important; }

[data-bs-theme="dark"] .app-sidebar .menu-title,
[data-bs-theme="dark"] .app-sidebar .menu-icon { color: #ffffff !important; }

.form-control {
    font-size: max(1.1rem, 16px) !important;
}

.menu-heading, .menu-link.active .menu-title, .menu-link.active .menu-icon {
    color: var(--primary-color) !important;
}

.menu-title {
    font-weight: unset !important;
}

.form-check-input:checked {
    background-color: var(--fit4fun-focus-ring) !important;
    border-color: var(--fit4fun-focus-ring) !important;
}

.form-check-label {
    color: var(--bs-body-color, #ffffff) !important;
    opacity: 1 !important;
}

.card-bordered {
    border-color: var(--fit4fun-quiet-border) !important;
}

.app-header {
    background-color: var(--bs-app-bg-color);
}

.app-sidebar {
    background-color: var(--bs-app-bg-color);
    border-right: 1px solid var(--tertiary-color);
}

.app-sidebar .app-sidebar-logo {
    display: flex;
}

.app-sidebar-logo > a {
    display: block;
    inline-size: 100%;
    container-type: inline-size;
}

.fit4fun-sidebar-logo {
    display: block;
    inline-size: 100%;
    block-size: auto;
    object-fit: contain;
}

.fit4fun-brand-wordmark {
    color: var(--primary-color);
}

.fit4fun-brand-wordmark > span {
    color: var(--secondary-color);
}

.fit4fun-sidebar-wordmark {
    display: none;
    inline-size: 100%;
    padding: .75rem 1rem;
    font-size: min(18cqi, 2.5rem);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .app-sidebar .app-sidebar-logo {
        display: none;
    }
}

@media (min-width: 992px) and (max-height: 800px) {
    .fit4fun-sidebar-logo {
        display: none;
    }

    .fit4fun-sidebar-wordmark {
        display: block;
    }
}

.fit4fun-sidebar-navigation-section + .fit4fun-sidebar-navigation-section {
    margin-top: 1.5rem;
}

.fit4fun-sidebar-navigation {
    margin-block: 1.25rem;
}

.app-sidebar .app-sidebar-menu {
    overscroll-behavior: contain;
}

.fit4fun-sidebar-navigation-section .menu-heading {
    margin: 0 0 0.5rem;
    padding: 0 0.75rem;
}

.fit4fun-sidebar-navigation .menu-link {
    align-items: center;
    display: flex;
    min-height: 2.75rem;
    padding-block: 0.5rem;
    white-space: normal;
}

.fit4fun-sidebar-navigation button.menu-link {
    border: 0;
    width: 100%;
    background: transparent;
    text-align: start;
}

.fit4fun-logout-navigation {
    border-top: 1px solid var(--fit4fun-quiet-border);
    margin-top: .75rem;
    padding-top: .75rem;
}

.fit4fun-sidebar-navigation .menu-title {
    overflow-wrap: anywhere;
}

.fit4fun-sidebar-navigation :is(a, button).menu-link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}

.table .btn.btn-icon {
    align-items: center;
    display: inline-flex;
    height: 2.125rem;
    justify-content: center;
    min-width: 2.125rem;
    padding: 0;
    width: 2.125rem;
}

.table .btn.btn-icon:focus-visible {
    outline: 3px solid var(--fit4fun-focus-ring);
    outline-offset: 2px;
}

[data-bs-theme="dark"] {
    --fit4fun-focus-ring: #9cc2ff;
}

/* Administrator table actions use one icon-first responsive convention. */
.table .admin-table-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.admin-table-action {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
    justify-content: center;
    min-height: 2.125rem;
    min-width: 2.125rem;
    padding-inline: .5rem;
    white-space: nowrap;
}

.admin-table-action .spinner-border {
    --bs-spinner-width: 1rem;
    --bs-spinner-height: 1rem;
}

.admin-table-action__text {
    display: none;
}

.admin-table-overflow {
    display: inline-flex;
    position: relative;
}

.admin-table-overflow__menu {
    background: var(--bs-body-bg);
    border: 1px solid var(--fit4fun-quiet-border);
    border-radius: .475rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12);
    display: grid;
    gap: .25rem;
    min-width: 12rem;
    padding: .375rem;
    position: absolute;
    right: 0;
    top: calc(100% + .375rem);
    z-index: 20;
}

.admin-table-overflow__menu .admin-table-action {
    justify-content: flex-start;
    width: 100%;
}

.admin-table-overflow__menu .admin-table-action__text {
    display: inline;
}

.admin-table-overflow__menu .admin-table-action {
    min-height: 2.5rem;
}

.table .admin-table-actions > .btn,
.table .admin-table-actions > a.btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.125rem;
}

.table .admin-table-actions > .btn.btn-icon,
.table .admin-table-actions > a.btn.btn-icon {
    min-width: 2.125rem;
}

/* Applies the same compact rhythm to legacy table cells while each surface
   migrates to the explicit grouping class. */
.table > :is(thead, tbody) > tr > td > :is(.btn, a.btn) {
    min-height: 2.125rem;
}

.table > :is(thead, tbody) > tr > td > :is(.btn, a.btn).btn-icon {
    height: 2.125rem;
    min-width: 2.125rem;
    width: 2.125rem;
}

@media (max-width: 767.98px) {
    .admin-card-actions > .btn,
    .admin-card-actions > a.btn {
        min-height: 2.75rem;
    }

    .admin-table-action {
        min-height: 2.75rem;
    }

    .admin-table-action__text {
        display: inline;
    }
}

@media (min-width: 992px) and (max-height: 800px) {
    .fit4fun-sidebar-navigation {
        margin-block: 0.75rem;
    }

    .fit4fun-sidebar-navigation-section + .fit4fun-sidebar-navigation-section {
        margin-top: 0.75rem;
    }

    .fit4fun-sidebar-navigation-section .menu-heading {
        margin-bottom: 0.25rem;
    }
}

@media (prefers-contrast: more) {
    .fit4fun-sidebar-navigation :is(a, button).menu-link {
        border: 1px solid var(--secondary-color);
    }
}

.form-check:has(input:disabled) {
    color: var(--bs-gray-600);
    cursor: not-allowed;
}

