/* =========================================================
   DATATABLES CUSTOM STYLE
   ระบบรับสมัครงานออนไลน์
========================================================= */

/* Wrapper */
.dataTables_wrapper {
    font-family: 'Noto Sans Thai', sans-serif;
}

/* Search / Length */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #d7dfe3;
    border-radius: 12px;
    padding: 6px 10px;
}

/* Table */
table.dataTable {
    width: 100% !important;
}

table.dataTable th,
table.dataTable td {
    vertical-align: middle;
}

/* =========================================================
   TABLE HEADER
========================================================= */

table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td{

    background: var(--primary) !important;
    color: #fff !important;

    border-color: var(--primary) !important;

    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

/* Hover */
table.dataTable.table-hover tbody tr:hover {
    background: #f3fcfa;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #948369 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
}

/* Responsive child row */
table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* ==========================================
   Responsive Control (+ / -)
========================================== */

table.dataTable.dtr-column > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-column > tbody > tr > th.dtr-control::before {

    content: "+" !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #182747 !important;
    color: #fff !important;

    font-size: 16px;
    font-weight: bold;

    border: none;

    margin: auto;
}

table.dataTable.dtr-column > tbody > tr.parent > td.dtr-control::before,
table.dataTable.dtr-column > tbody > tr.parent > th.dtr-control::before {

    content: "−" !important;

    background: #b91c1c !important;
}

/* Mobile */
@media (max-width: 768px) {
    table.dataTable {
        font-size: 13px;
    }

    table.dataTable th,
    table.dataTable td {
        padding: .45rem;
    }

    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left;
        margin-bottom: 8px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
    }
}