/* =========================
   DATATABLES WRAPPER
========================= */

.dataTables_wrapper {
    margin-top: 20px;
    font-size: 14px;
}


/* =========================
   TOP CONTROL
========================= */

.dataTables_length,
.dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_length label,
.dataTables_filter label {
    font-weight: 500;
    color: #374151;
}


/* =========================
   INPUT & SELECT
========================= */

.dataTables_filter input,
.dataTables_length select,
#filter-kategori,
#filter-tahun {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff;
    min-height: 42px;
    font-size: 14px;
}

.dataTables_filter input:focus,
.dataTables_length select:focus,
#filter-kategori:focus,
#filter-tahun:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}


/* =========================
   TABLE WRAPPER
========================= */

.ppid-table-wrapper {
    padding: 20px;
    overflow-x: auto;
}


/* =========================
   TABLE
========================= */

table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 0 !important;
}

table.dataTable thead th {
    background: #f3f4f6;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 14px !important;
}

table.dataTable tbody td {
    vertical-align: middle;
    padding: 14px !important;
}

table.dataTable tbody tr:hover {
    background: #f9fafb;
}


/* =========================
   SEARCH & LENGTH FIX
========================= */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
}

.dataTables_wrapper .dataTables_filter {
    text-align: right;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 10px;
    min-width: 260px;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 90px;
}


/* =========================
   PAGINATION
========================= */

.dataTables_paginate {
    margin-top: 20px !important;
    padding-top: 10px;
}

.dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
    margin: 0 3px !important;
    padding: 6px 12px !important;
    background: #fff !important;
    color: #374151 !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}

.dataTables_paginate .paginate_button.current {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}


/* =========================
   INFO TEXT
========================= */

.dataTables_info {
    margin-top: 15px;
    color: #6b7280;
}


/* =========================
   BUTTONS
========================= */

.btn-detail,
.btn-pdf {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: 0.2s ease;
}

.btn-detail {
    background: #2563eb;
    margin-right: 8px;
}

.btn-detail:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-pdf {
    background: #059669;
}

.btn-pdf:hover {
    background: #047857;
    color: #fff;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .dataTables_wrapper {
        overflow-x: auto;
    }

    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-top: 15px;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select,
    #filter-kategori,
    #filter-tahun {
        width: 100%;
        margin-left: 0;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        margin-bottom: 15px;
    }

    .btn-detail,
    .btn-pdf {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

}