/* 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;
}


/* URL Input */
.logo-url-input-wrap {
}

.logo-url-input {
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.875rem;
    transition: border-color .2s, box-shadow .2s;
    background: #fafafa;
}

    .logo-url-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
        background: #fff;
        outline: none;
    }

.logo-url-icon {
    pointer-events: none;
    font-size: 0.8rem;
}

/* Preview Zone */
.logo-preview-zone {
    min-height: 140px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 2px dashed #c8d3f5;
    transition: border-color .25s, background .25s;
    overflow: hidden;
    padding: 1.5rem;
}

    .logo-preview-zone.has-logo {
        border-style: solid;
        border-color: #b8c8f0;
        background: linear-gradient(135deg, #f4f7ff 0%, #eef2ff 100%);
    }

.logo-ph-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0e8ff, #d0dcff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.4rem;
    color: #7b93e0;
    box-shadow: 0 2px 8px rgba(99,120,220,.15);
}

.logo-preview-img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.12));
    transition: opacity .3s ease;
}

/* Status indicator */
#logoUrlStatus .status-ok {
    color: #198754;
}

#logoUrlStatus .status-err {
    color: #dc3545;
}

#logoUrlStatus .status-load {
    color: #6c757d;
}