/* Resetting default browser styles */
table, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* Basic styling for the body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
}

/* Styling the container */
.table td, .table th {
    text-align: center;
    vertical-align: middle;
    padding: .75rem;
    /* vertical-align: top; */
    border-top: 1px solid #e3e6f0;
}

.container {
    display: flex;
    justify-content: space-between; /* Space out the boxes evenly */
    width: 80%; /* Adjust as needed */
}

.box {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 23%; /* Adjust width as needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 8px;
}

/* Styling the table */
table {
    height: 620px;
    max-height: 620px; /* Sesuaikan tinggi sesuai kebutuhan */
    overflow-y: auto; /* Menambahkan scroll vertikal jika diperlukan */
    display: block; 
    width: 120%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Styling table header */
thead {
    background-color: #4e73df;
    color: white;
    position: sticky; /* Membuat header tetap di atas saat menggulir */
    top: 0;
    z-index: 2; /* Menjamin header berada di atas konten */
}

/* Styling table headers */
th {
    text-align: left;
    padding: 2px; /* Mengurangi padding untuk membuat tabel lebih kompak */
    font-size: 0.855rem; /* Mengatur ukuran font menjadi sedikit lebih kecil */
    border: 1px solid #ddd; /* Menambahkan border pada sel tabel */
    font-weight: bold;
}

/* Styling table cells */
td {
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding: 2px; /* Mengurangi padding untuk membuat tabel lebih kompak */
    font-size: 0.855rem; /* Mengatur ukuran font menjadi sedikit lebih kecil */
    border: 1px solid #ddd; /* Menambahkan border pada sel tabel */
    font-weight: bold;
}

/* Adding a hover effect to table rows */
tbody tr:hover {
    background-color: #6e00a0;
}

/* Styling input fields */
input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: center;
}


/* Container for buttons to align them to the right */
.button-container {
    margin-top: 40px;
    display: flex;
    padding: 5px;
    justify-content: center;
    margin-bottom: 20px; /* Space between buttons and table */
}

.button-container .btn-custom  {
    margin-left: 10px; /* Space between buttons */
    padding: 10px 20px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #4e73df;
    color: white;
    cursor: pointer;
}

.button-container .btn-custom:hover  {
    background-color: #212f59;
}


/* Making the table responsive */
@media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        display: block
    }
}
