.table {
    position: relative;
    /* Enable relative positioning for child elements */
}

#loading-indicator {
    position: absolute;


    /* Cover the entire table content */
    transform: translate(-50%, -50%);
   
    /* Semi-transparent black overlay */
    z-index: 9999;
    /* Ensure overlay is on top */
    text-align: center;
    /* Center loading text and circle vertically */


    top: 50%;
    /* Cover the entire table */
    left: 50%;

    align-items: center;
    /* Center loading content vertically */
    justify-content: center;
    display: none;
    width: 100%;
    /* Stretch container to fill the table cell */
    height: 100%;
    /* Stretch container to fill the table cell */


}

.loading-circle {
    width: 50px;
    height: 50px;
    border: 10px solid #f3f3f3;
    border-radius: 50%;
    border-top: 10px solid #3498db;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    /* Center horizontally within its container */

}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loading-indicator p {
    color: #fff;
    font-size: 16px;
    margin-top: 10px;
}

/* Loading FOrm */
/* Loading animation CSS */
#loading-animation {
    display: flex;
    flex-direction: column;
    /* Arrange items vertically */
    align-items: center;
    /* Center content horizontally */
    justify-content: center;
    /* Center content vertically */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#loading-animation img {
    margin-bottom: 10px;
    /* Add spacing between image and text */
}

/* Background overlay CSS */
.loading-overlay {
    display: none;
    /* Hide the overlay initially */
    position: fixed;
    /* Position the overlay relative to the viewport */
    top: 0;
    /* Cover the entire viewport */
    left: 0;
    /* Cover the entire viewport */
    width: 100%;
    /* Cover the entire viewport width */
    height: 100%;
    /* Cover the entire viewport height */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black background with 30% transparency */
    z-index: 9998;
    /* Ensure the overlay is below the animation */
}

/* Akhiri */

.badge-container {
    white-space: nowrap;
    /* Mencegah Badges pindah ke baris baru */
}

.badge {
    display: inline-block;
    margin-right: 10px;
    /* Jarak antara Badges */
}

.alert {
    display: none;
}

.container {
    max-width: 100%;
    /* Ensure the container does not exceed the width of the form */
    overflow: hidden;
    /* Hide any overflow content */
}

.scrollable-container {
    overflow-x: auto;
    /* Tambahkan overflow-x: auto; untuk mengaktifkan scrolling horizontal */
    white-space: nowrap;
    margin-bottom: 20px;
    display: flex;
    justify-content: left;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    /* Pastikan kontainer scrollable memiliki lebar yang mencukupi */
}

.date-box {
    display: inline-block;
    width: 100px;
    /* Sesuaikan lebar kotak tanggal */
    height: 100px;
    /* Sesuaikan tinggi kotak tanggal */
    margin-right: 10px;
    /* Jarak antar kotak */
    background-color: #007bff;
    /* Warna awal seperti btn-primary */
    border-radius: 5px;
    /* Membuat sudut oval */
    text-align: center;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    position: relative;
    border: 1px solid #ccc;
    padding: 10px;
    min-width: 100px;
    flex-shrink: 0;
    /* Hindari agar kotak tanggal tidak mengecil saat kontainer scrollable di-scroll */
}

.date-box.disabled {
    background-color: #A91D3A;
    color: #FFFFFF;
    /* warna teks putih */
    pointer-events: none;
    /* mencegah klik pada kotak tanggal yang dinonaktifkan */
}

.date-box.selected {
    background-color: #28a745;
    /* Warna saat dipilih seperti btn-success */
    color: white;
}

.date-box .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.date-box .day {
    font-weight: bold;
    font-size: 24px;
    /* Font besar untuk tanggal */
    margin-bottom: 5px;
    /* Jarak antara tanggal dan bulan/tahun */
}

.date-box .month {
    font-size: 12px;
    font-weight: normal;
    /* Hapus bold untuk bulan dan tahun */
    color: #fff;
}

.modal-header {
    display: flex;
    justify-content: center;
    position: relative;
}

.modal-title {
    flex: 1;
    text-align: center;
}

.close {
    position: absolute;
    right: 15px;
}