.datepicker-dropdown {
    z-index: 20000 !important;
}

.select2-dropdown {
    z-index: 20000 !important;
}

/* Sidebar hover and press states should not animate or shift adjacent items. */
#sidebar-menu a,
#sidebar-menu a i,
#sidebar-menu .has-arrow::after {
    transition: none !important;
    animation: none !important;
}

#sidebar-menu .waves-ripple {
    display: none !important;
}

.max-height-260 {
    max-height: 260px;
}

.object-fit-cover {
    object-fit: cover;
}

.page-content {
    padding-bottom: calc(60px + 1.5rem);
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 21000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(10, 15, 28, 0.62);
    backdrop-filter: blur(2px);
}

.app-loader.d-none {
    display: none !important;
}

.app-loader-panel {
    display: flex;
    min-width: min(20rem, calc(100vw - 2rem));
    max-width: min(26rem, calc(100vw - 2rem));
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    color: #f8f9fa;
    background: rgba(27, 34, 52, 0.96);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.26);
}

.app-loader-spinner {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
    border-width: 0.18rem;
}

.app-loader-text {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.app-loader-open {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    .app-loader-spinner {
        animation-duration: 1.5s;
    }
}

.avatar-xxl {
    height: 9rem;
    width: 9rem;
}

body.modal-open {
    overflow-y: auto !important;
    padding-right: 0 !important;
}

.modal {
    overflow-y: hidden !important;
}

.modal-dialog-scrollable .modal-content > form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-content > form > .modal-body {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.navbar-brand-box {
    text-align: left;
}

.app-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    height: 70px;
    line-height: normal;
    padding-top: 0.375rem;
    text-decoration: none;
}

.app-navbar-brand-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

body.vertical-collpsed .app-navbar-brand {
    gap: 0;
    justify-content: center;
}

body.vertical-collpsed .app-navbar-brand-text {
    display: none;
}

.settings-hub {
    max-width: 82rem;
}

.settings-hub-card {
    display: flex;
    min-height: 8.25rem;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    color: var(--bs-body-color);
    background: var(--bs-secondary-bg);
    box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.settings-hub-card:hover,
.settings-hub-card:focus {
    color: var(--bs-body-color);
    border-color: #556ee6;
    box-shadow: 0 1rem 2rem rgba(18, 38, 63, 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.settings-hub-card:focus-visible {
    outline: 0.18rem solid rgba(85, 110, 230, 0.28);
    outline-offset: 0.18rem;
}

.settings-hub-card-icon {
    display: inline-flex;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #556ee6;
    background: rgba(85, 110, 230, 0.12);
}

.settings-hub-card-icon i {
    font-size: 1.55rem;
    line-height: 1;
}

.settings-hub-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.35rem;
}

.settings-hub-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.settings-hub-card-description {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.45;
}

.security-page {
    max-width: 82rem;
}

.security-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.04);
}

.security-section-icon {
    display: inline-flex;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #556ee6;
    background: rgba(85, 110, 230, 0.12);
}

.security-section-icon i {
    font-size: 1.55rem;
    line-height: 1;
}

.security-password-form .form-control {
    min-height: 2.75rem;
}

.security-submit-button {
    min-height: 2.75rem;
}

@media (max-width: 575.98px) {
    .dataTables_wrapper .row:first-child > div,
    .dataTables_wrapper .row:last-child > div {
        text-align: left !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter label,
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: flex-start;
    }

    .dataTables_wrapper.app-datatable-full-height > .app-datatable-footer > div {
        justify-content: flex-start;
    }

    .dataTables_wrapper table.dataTable {
        border-spacing: 0 !important;
    }

    .dataTables_wrapper table.dataTable thead th,
    .dataTables_wrapper table.dataTable tbody th,
    .dataTables_wrapper table.dataTable tbody td {
        padding: 0.7rem 0.55rem !important;
        font-size: 0.86rem;
    }

    .settings-hub-card {
        min-height: auto;
        padding: 1rem;
    }

    .settings-hub-card-icon {
        flex-basis: 2.75rem;
        width: 2.75rem;
        height: 2.75rem;
    }

}
