.loader-container {
    position: fixed;
    height: 100dvh;
    width: 100%;
    display: grid;
    top: 0;
    place-content: center;
    background: rgb(255, 254, 254);
    z-index: 99999;
    cursor: wait;
}

/* common */
.loading {
    font-size: 84px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    text-align: center;
}

.loading span {
    display: inline-block;
    margin: 0 0.05em;
}

/* code #2 */
.loading span {
    animation: loading 1.2s infinite alternate;
}

.loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading span:nth-child(3) {
    animation-delay: 0.4s;
}

.loading span:nth-child(4) {
    animation-delay: 0.6s;
}

.loading span:nth-child(5) {
    animation-delay: 0.8s;
}

.loading span:nth-child(6) {
    animation-delay: 1s;
}

.loading span:nth-child(7) {
    animation-delay: 1.2s;
}

.loading span:nth-child(8) {
    animation-delay: 1.4s;
}

.loading span:nth-child(9) {
    animation-delay: 1.6s;
}

.loading span:nth-child(10) {
    animation-delay: 1.8s;
}

.loading span:nth-child(11) {
    animation-delay: 2s;
}

.loading span:nth-child(12) {
    animation-delay: 2.2s;
}

.loading span:nth-child(13) {
    animation-delay: 2.4s;
}

.loading span:nth-child(14) {
    animation-delay: 2.6s;
}

.loading span:nth-child(15) {
    animation-delay: 2.8s;
}

.loading span:nth-child(16) {
    animation-delay: 3s;
}

.loading span:nth-child(17) {
    animation-delay: 3.2s;
}

@keyframes loading {
    0% {
        filter: blur(0);
        opacity: 1;
    }

    100% {
        filter: blur(5px);
        opacity: 0.2;
    }
}

@media only screen and (max-width: 768px) {
    .loader-container h3 {
        font-size: 22px;
    }

    .loading {
        font-size: 60px;
    }
}

@media only screen and (max-width: 480px) {
    .loader-container h3 {
        font-size: 18px;
    }

    .loading {
        font-size: 35px;
    }
}

[data-skin=dark] .loader-container {
    background: #141926;
    color: rgba(255, 255, 255, 0.6);
}

[data-skin=dark] .loader {
    background: #141926;
    color: rgba(255, 255, 255, 0.6);
}

/* Auto complete */
ul.bs-autocomplete-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow: auto;
    z-index: 9999;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0px 1px 6px 1px rgba(0, 0, 0, 0.4);
}

ul.bs-autocomplete-menu a {
    font-weight: normal;
    color: #333333;
}

ul.bs-autocomplete-menu li.ui-menu-item {
    width: 100%;
}

.ui-helper-hidden-accessible {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.ui-state-active,
.ui-state-focus {
    color: #23527c;
    background-color: #eeeeee;
}

.bs-autocomplete-feedback {
    width: 1.5em;
    height: 1.5em;
    overflow: hidden;
    margin-top: .5em;
    margin-right: .5em;
}

/* Form Control Updated */
/* .form-control {
    padding: initial !important;
} */

.table tbody th,
td {
    vertical-align: middle !important;
}

/* Soft Badges */
.badge-soft-success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-soft-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-soft-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-soft-primary {
    background: rgba(0, 123, 255, 0.15);
    color: #004085;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.badge-soft-info {
    background: rgba(23, 162, 184, 0.15);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* ============================================================
   Report Filter Panel — shared across ALL report forms
   (every report form uses the dropdown #report_generate_form)
   ============================================================ */
.btn.dropdown-toggle.no-tail::after,
.report-filter-trigger.dropdown-toggle::after {
    display: none;
}

/* The filter dropdown becomes a proper, roomy panel */
#report_generate_form.dropdown-menu {
    min-width: 560px;
    max-width: 94vw;
    max-height: 80vh;
    overflow-y: auto;
    border: 0;
    border-radius: 0.85rem;
    box-shadow: 0 1.25rem 2.75rem rgba(20, 28, 45, 0.18);
    animation: rfFadeIn 0.15s ease-out;
}

@keyframes rfFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#report_generate_form .form-label {
    font-weight: 600;
    color: #51607a;
    letter-spacing: 0.01em;
}

#report_generate_form .form-control,
#report_generate_form .form-select {
    border-radius: 0.55rem;
}

#report_generate_form .form-control:focus,
#report_generate_form .form-select:focus {
    border-color: #8aa4ff;
    box-shadow: 0 0 0 0.2rem rgba(99, 132, 255, 0.15);
}

/* select2 widgets fill the panel width and align with native inputs */
#report_generate_form .select2-container {
    width: 100% !important;
}
#report_generate_form .select2-container--default .select2-selection--multiple,
#report_generate_form .select2-container--default .select2-selection--single {
    border-radius: 0.55rem;
    border-color: #ced4da;
    min-height: calc(1.5em + 0.5rem + 2px);
}

/* Keep the apply/submit action visible while scrolling long filter sets */
#report_generate_form > .d-flex.justify-content-end {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 0.85rem;
    margin-top: 0.65rem;
    border-top: 1px solid #eef1f6;
    z-index: 3;
}
#report_generate_form > .d-flex.justify-content-end .btn {
    padding-inline: 1.4rem;
}

@media (max-width: 576px) {
    #report_generate_form.dropdown-menu {
        min-width: 92vw;
    }
}
