.loader-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    position: relative;
}

.reform-provision-grid table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 0.85rem;
}

.reform-provision-grid th,
.reform-provision-grid td {
    padding: 8px 12px !important;
    vertical-align: middle;
    font-size: 0.8rem;
}

.reform-provision-grid .badge {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.reform-provision-grid .badge {
    padding: 6px 10px;
    font-weight: 500;
}

.reform-provision-grid thead {
    background-color: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#provisionPagination {
    padding: 20px 0;
}

    #provisionPagination ul.pagination {
        display: flex;
        gap: 5px;
    }

        #provisionPagination ul.pagination li a {
            border: 1px solid #dee2e6;
            color: #0d6efd;
            padding: 8px 16px;
            border-radius: 4px;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        #provisionPagination ul.pagination li.active a {
            background-color: #0d6efd;
            border-color: #0d6efd;
            color: white !important;
            cursor: default;
        }

        #provisionPagination ul.pagination li.disabled a {
            color: #6c757d;
            pointer-events: none;
            background-color: #f8f9fa;
        }

        #provisionPagination ul.pagination li a:hover:not(.active) {
            background-color: #e9ecef;
            border-color: #0d6efd;
        }

/* Fix for Bootpag hidden class */
.pagination > .disabled > span,
.pagination > .disabled > a {
    cursor: not-allowed;
}

.status-indicator-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.status-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 120px;
}

    .status-card:hover {
        transform: translateY(-5px);
    }

.status-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.status-fully {
    background-color: #4CAF50;
}

.status-partially {
    background-color: #4CAF50;
}

.status-ongoing {
    background-color: #FF9800;
}

.status-binned {
    background-color: #F44336;
}

.status-label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 2px;
}

.status-count {
    font-size: 1.2rem;
    font-weight: 800;
    color: #555;
}

/* Ensure the grid icons are sized appropriately for a table row */
.small-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    font-size: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important; /* Remove any ribbon margins */
}

/* Maintain the colors you already defined */
.status-partially {
    background-color: #4CAF50;
    color: white;
}

.status-ongoing {
    background-color: #FF9800;
    color: white;
}

.status-fully {
    background-color: #4CAF50;
    color: white;
}

.status-binned {
    background-color: #F44336;
    color: white;
}

.status-icon-circle {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .reform-provision-grid table, .reform-provision-grid tbody, .reform-provision-grid tr, .reform-provision-grid td {
        display: block;
        width: 100%;
    }

    .reform-provision-grid thead {
        display: none;
    }

    .reform-provision-grid tr {
        margin-bottom: 15px;
        border: 1px solid #eee !important;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .reform-provision-grid td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f9f9f9;
        text-align: right;
    }

        .reform-provision-grid td:last-child {
            border-bottom: none;
        }
        /* Dynamic Labels */
        .reform-provision-grid td::before {
            content: attr(data-label);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.65rem;
            color: #999;
            margin-right: 15px;
            text-align: left;
            flex-shrink: 0;
        }
       
        .reform-provision-grid td.long-text {
            flex-direction: column;
            text-align: left;
            align-items: flex-start;
        }

            .reform-provision-grid td.long-text::before {
                margin-bottom: 5px;
            }

    .row.mb-4 > [class*="col-"] {
        margin-bottom: 15px;
    }

        .row.mb-4 > [class*="col-"]:last-child {
            margin-bottom: 0;
        }

    .form-control {
        height: 45px; /* Slightly taller for easier tapping */
        font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
        border-radius: 8px;
    }
    /* Update the container for the logos */
    .status-indicator-container {
        display: flex;
        justify-content: space-around;
        gap: 10px;
        margin-bottom: 25px;
        padding: 10px 5px;
        /* Mobile Magic: Single row scroll */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Ensure cards don't shrink and stay legible */
    .status-card {
        text-align: center;
        cursor: pointer;
        min-width: 90px; /* Prevents squashing on small screens */
        flex: 0 0 auto;
    }
    /* Scale the circle for mobile */
    .status-icon-circle {
        width: 50px;
        height: 50px;
        margin: 0 auto 5px;
    }

    .status-label {
        font-size: 0.75rem; /* Smaller text for mobile */
        white-space: nowrap;
    }

    .status-count {
        font-size: 1rem;
        font-weight: 800;
    }
    /* Hide scrollbar for a cleaner look while keeping functionality */
    .status-indicator-container::-webkit-scrollbar {
        display: none;
    }

    .status-indicator-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}
