/* Datatable Info */
.custom-length .dataTables_length select {
    display: flex;
    align-items: ceter;
    padding: 0 0.75rem;
    border: 1px solid #e8ebf1;
    border-radius: 0.6rem !important;
    color: #005a6e !important;
}

.custom-info {
    display: flex;
}

.custom-length .dataTables_length label {
    margin-bottom: 0.5rem !important;
}

.custom-length .dataTables_length label,
.custom-info .dataTables_info {
    display: flex;
    align-items: center;
    padding-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

/* Atur tabel agar responsif */
table.dataTable {
    width: 100%;
    table-layout: auto;
}

/* Responsif untuk layar kecil */
@media only screen and (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 4px 8px;
        font-size: 12px;
        margin: 0 1px;
    }

    table.dataTable thead th,
    table.dataTable tbody td {
        white-space: nowrap;
        /* Hindari teks terpotong */
    }

    table.dataTable {
        overflow-x: auto;
        display: block;
    }

    /* Ubah tampilan pagination */
    .custom-pagination .dataTables_paginate .paginate_button {
        padding: 4px 8px;
        margin: 0 1px;
        font-size: 12px;
    }

    .custom-pagination .dataTables_paginate .paginate_button.current {
        background-color: #00abe7;
        color: #fff;
    }
}

/* End Datatable Info */

/* Datatable Pagination */
.pagination-custom .dataTables_paginate .paginate_button {
    background-color: transparent;
    color: #666666;
    padding: 6px 12px;
    border: none;
    text-decoration: none;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 20px;
}

.pagination-custom .dataTables_paginate .paginate_button.disabled {
    background-color: transparent;
    color: #e6e6e6;
    cursor: not-allowed;
    border-radius: 20px;
}

.pagination-custom .dataTables_paginate .paginate_button.current {
    background-color: #ffffff;
    color: #007bff;
    border: 1px solid #dee2e6;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    padding-top: 7px;
    padding-left: 12px;
}

.pagination-custom .dataTables_paginate a {
    text-decoration: none;
}

/* End Datatable Pagination */

/* Center the processing/loading indicator inside the table */
.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9);
    /* Optional: Semi-transparent background */
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 1.2rem;
    color: #007bff;
    /* Customize the color based on your theme */
    pointer-events: none;
    /* Prevent interaction with the indicator */
}

/* Ensure the container of the processing message is relatively positioned */
.dataTables_wrapper {
    position: relative;
}

/* Style dasar untuk header kolom tabel */
th {
    position: relative;
    padding-right: 20px;
    /* Memberikan ruang untuk ikon sorting */
}

/* Hilangkan ikon sorting pada kolom yang sortable diatur false */
th.sorting_disabled::after {
    display: none !important;
}

/* Ikon sorting default (tidak ada urutan yang diterapkan) */
th.sorting::after {
    font-family: 'Font Awesome 5 Free';
    content: "\f0dc";
    /* Font Awesome filter icon */
    font-weight: 900;
    /* Font Awesome solid */
    font-size: 0.8rem;
    position: absolute;
    right: 5px;
    color: #aaa;
    /* Warna default */
}

/* Sorting ascending (panah ke atas) */
th.sorting_asc::after {
    font-family: 'Font Awesome 5 Free';
    content: "\f062";
    /* Panah atas dari Font Awesome */
    font-weight: 900;
    /* Font Awesome solid */
    font-size: 0.8rem;
    position: absolute;
    right: 5px;
    color: #007bff;
    /* Sesuaikan warna */
}

/* Sorting descending (panah ke bawah) */
th.sorting_desc::after {
    font-family: 'Font Awesome 5 Free';
    content: "\f063";
    /* Panah bawah dari Font Awesome */
    font-weight: 900;
    /* Font Awesome solid */
    font-size: 0.8rem;
    position: absolute;
    right: 5px;
    color: #007bff;
    /* Sesuaikan warna */
}


table.dataTable tbody td:empty::before {
    content: "Data not Found";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
}

.column-multiline {
    max-width: 350px;
    /* Batasi lebar maksimal */
    white-space: normal;
    /* Izinkan teks untuk membungkus menjadi multi-line */
    word-wrap: break-word;
}