

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;
}

.divbackcolor {
    background-color: white;
    /*background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);*/
    border-radius: 4px;
}
/* Dark mode override */
[data-bs-theme="dark"] .divbackcolor {
    background-color: #101010 !important; /* or any dark color you prefer */
    color: rgba(247, 249, 249, 0.5) !important;
}

[data-bs-theme="dark"] .sidepanel {
    background-color: #130f40;
    background-image: linear-gradient(315deg, #130f40 0%, #000000 74%);
    /*background-image: linear-gradient(120deg, #121212 0%, #2c3e50 100%);*/
    color: white !important; /* Add a light text color for readability */
    z-index: 9999;
}

    [data-bs-theme="dark"] .sidepanel a {
        color: rgba(247, 249, 249, 0.5) !important;
    }

        [data-bs-theme="dark"] .sidepanel a:hover {
            color: #f6f2f2 !important;
        }

    [data-bs-theme="dark"] .sidepanel .dropdown {
        background-color: rgba(247, 249, 249, 0.5) !important;
    }

        [data-bs-theme="dark"] .sidepanel .dropdown a {
            color: #e8e8e8 !important;
        }

.loadingonpage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(247, 249, 249, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above all other content */
}

.readonly-select {
    pointer-events: none; /* Disable mouse interaction */
    background-color: rgba(247, 249, 249, 0.5); /* Gray out background */
    cursor: not-allowed; /* Indicate non-interactive */
}

.readonly-div {
    pointer-events: none;
    opacity: 0.6;
    background-color: rgba(247, 249, 249, 0.5);
    cursor: not-allowed;
}

    /* make children non-focusable and remove focus outline */
    .readonly-div input,
    .readonly-div select,
    .readonly-div textarea {
        pointer-events: none; /* no mouse */
        outline: none; /* no focus border */
        cursor: not-allowed;
    }
    .readonly-div .select2-container,
    .readonly-div .select2-selection,
    .readonly-div .select2-search__field {
        pointer-events: none;
        cursor: not-allowed;
    }

    /* optional: visual style */
    .readonly-div .select2-selection {
        background-color: #f5f5f5;
    }

/* width */
::-webkit-scrollbar {
    width: 6px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 2px grey;
    border-radius: 4px;
    width: 6px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #8E2DE2; /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #4A00E0, #8E2DE2); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #4A00E0, #8E2DE2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    width: 6px;
    border-radius: 2px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #be14c6;
    }

.nocaps, .nocaps td, .nocaps th {
    text-transform: none !important;
    font-size: small !important;
    font-weight: 500 !important;
}

.doc-img-preview {
    transition: box-shadow 0.2s, border 0.2s;
    border-radius: 4px;
    cursor: pointer;
}

    .doc-img-preview:hover {
        box-shadow: 0 0 0 2px #3498db, 0 2px 12px rgba(52,152,219,0.25);
        border: 2px solid #3498db;
    }

#staticBackdrop {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, box-shadow 0.5s ease !important;
}

    #staticBackdrop.show {
        box-shadow: -15px 0 30px rgba(255, 255, 255, 0.1), -30px 0 50px rgb(128, 128, 128), inset -5px 0 20px rgba(255, 255, 255, 0.1);
    }

table.dataTable tbody tr.deactivetextcolor td {
    color: #E43636 !important;
    font-weight: 600;   /*JqueryDatatable*/
}