/* Page loaders */
#custom-block-ui {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's on top of all other elements */
    text-align: center;
    color: white;
    font-size: 1.5rem;
}

    #custom-block-ui img {
        margin-top: 20%;
        width: 100px; /* Adjust size of the loader image */
    }

#ui-datepicker-div {
    z-index: 10000 !important; /* Ensure it stacks above most elements */
}

#custom-alert {
    background-color: #61CE70 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.error-text {
    color: red !important;
}

.page-toolbar {
    padding: .5rem .5rem;
/*    box-shadow: 0 -5px 25px -5px #ccc;*/
    background-color: white;
/*    border-bottom: 1px solid #e0e0e0;*/
    min-height: 40px;
}

    .page-toolbar .btn-sm {
        padding: 2px 10px !important;
        font-size: 14px !important;
        font-weight: 500;
    }

    .page-toolbar .dropdown-item {
        color: black !important;
        padding: 6px 15px !important;
        font-size: 13px !important;
        font-weight: 500;
    }

    .page-toolbar .dropdown-menu a {
        color: #016d6f !important;
    }

    .page-toolbar .dropdown-menu {
        padding: 0px;
    }

        .page-toolbar .dropdown-menu i {
            margin-right: 8px !important;
            color: #016d6f !important;
        }

.floating-offcanvas {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    margin: 20px;
}
.floating-offcanvas:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}


hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.disabled_btn {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.highlighted-cell-yellow {
    background-color: #FFFF00 !important;
}


.font-ten  {
    font-size: 10px;
}


.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -0.25rem;
        margin-left: 0.1rem;
        display: none;
        position: absolute;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }



@media (max-width: 576px) {
    .table-responsive {
        max-height: 80vh;
        overflow-x: auto;
    }

    .table th,
    .table td {
        white-space: nowrap;
        font-size: 12px;
        padding: 0.3rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Keep header/footer sticky */
.sticky-header {
    position: sticky;
    top: 0;
    background: #e9ecef;
    z-index: 2;
}

.sticky-footer {
    position: sticky;
    bottom: 0;
    background: #e9ecef;
    z-index: 1;
}
