html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}






/* ============================================================ */
/* Loading overlay styling */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-container {
    text-align: center;
}


.loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #61398f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* ============================================================ */
/* New Loading overlay */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

/* ============================================================ */


/*.form-control {
    line-height: 2 !important;
}*/
.form-select {
    line-height: 2 !important;
}

table input {
    height: 35px !important;
}

    table input[type="checkbox"] {
        height: 15px !important;
        width: 15px !important;
    }




/* --------------------------------------------------- */

/* left and right for clear button */
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 5px !important;
    right: auto !important;
}

/* Clear button next to arrow (but still on left side) */
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    left: 30px !important; /* Next to arrow */
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
}

/* Keep text on right */
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 60px !important; /* Space for both buttons */
    text-align: right !important;
}


/* left and right for clear button */
html[dir="ltr"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 5px !important;
    left: auto !important;
}

/* Clear button next to arrow (but still on left side) */
html[dir="ltr"] .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 30px !important; /* Next to arrow */
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
}

/* Keep text on right */
html[dir="ltr"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 60px !important; /* Space for both buttons */
    text-align: left !important;
}

/* --------------------------------------------------- */


/* ---------------- Bills Custom Style ----------------------- */

.selected {
    background-color: #e0e0e0 !important;
}

body[data-layout-color=dark] .selected {
    background-color: #4a5260 !important;
    color: #fff !important;
}

td:hover {
    background-color: #e0e0e0;
}

body[data-layout-color=dark] td:hover {
    background-color: #4a5260 !important;
    color: #fff !important;
}

.group-box {
    width: 100px;
    height: 60px;
    border: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    margin: 10px;
}

    .group-box:hover {
        background-color: #e9ecef;
    }

body[data-layout-color=dark] .group-box {
    background-color: var(--ct-card-bg);
    color: var(--ct-table-color);
}

    body[data-layout-color=dark] .group-box:hover {
        background-color: #4a5260 !important;
        color: #fff !important;
    }


/* ---------------- Bills Custom Style ----------------------- */
