/* =========================================================
   PENGURUS
========================================================= */

.pengurus-table-wrap{
    width:100%;
    background:#fff;
    border:1px solid #f1f1f1;
    border-radius:14px;
    padding:15px;
    box-shadow:0 4px 18px rgba(0,0,0,.04);
}

/* =========================================================
   FILTER
========================================================= */

.pengurus-filter{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
}

.pengurus-filter-icon{
    width:35px;
    height:35px;
    flex:0 0 35px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:#fff5f5;
    color:var(--primary);
    font-size:13px;
}

.pengurus-filter-select{
    width:220px;
    height:35px;
    padding:0 10px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    background:#fff;
    color:#374151;
    font-size:12px;
    outline:none;
    box-sizing:border-box;
}

.pengurus-filter-select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(220,38,38,.06);
}

/* =========================================================
   TABLE
========================================================= */

.pengurus-table{
    width:100% !important;
    margin:0 !important;
    font-size:11.5px;
    border-collapse:separate !important;
    border-spacing:0;
}

.pengurus-table thead th{
    padding:10px 9px;
    background:#fafafa;
    border-top:1px solid #f1f1f1;
    border-bottom:1px solid #e5e7eb;
    color:#374151;
    font-size:10.5px;
    font-weight:700;
    white-space:nowrap;
    vertical-align:middle;
}

.pengurus-table thead th:first-child{
    border-top-left-radius:8px;
}

.pengurus-table thead th:last-child{
    border-top-right-radius:8px;
}

.pengurus-table tbody td{
    padding:10px 9px;
    border-bottom:1px solid #f1f5f9;
    color:#4b5563;
    vertical-align:middle;
}

.pengurus-table tbody tr:last-child td{
    border-bottom:0;
}

.pengurus-table tbody tr:hover td{
    background:#fffafa;
}

/* =========================================================
   NAMA + FOTO
========================================================= */

.pengurus-name{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:280px;
}

.pengurus-name img,
.pengurus-avatar{
    width:40px;
    height:40px;
    flex:0 0 40px;
    border-radius:50%;
}

.pengurus-name img{
    display:block;
    object-fit:cover;
    border:2px solid #f1f5f9;
}

.pengurus-avatar{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fef2f2;
    color:var(--primary);
    font-size:17px;
}

.pengurus-name strong{
    display:block;
    color:#1f2937;
    font-size:12px;
    font-weight:700;
    line-height:1.4;
}

.pengurus-name small{
    display:block;
    max-width:420px;
    margin-top:2px;
    color:#94a3b8;
    font-size:10px;
    line-height:1.4;
}

/* =========================================================
   JABATAN
========================================================= */

.jabatan-badge{
    display:inline-flex;
    align-items:center;
    padding:4px 8px;
    border-radius:20px;
    background:#fff5f5;
    color:var(--primary);
    font-size:10px;
    font-weight:600;
    white-space:nowrap;
    line-height:1.2;
}

/* =========================================================
   DATATABLES
========================================================= */

.pengurus-table-wrap .dataTables_wrapper{
    width:100%;
    font-size:11px;
}

/* TOP */

.pengurus-table-wrap .dataTables_wrapper > .row:first-child{
    display:flex;
    align-items:center;
    margin-bottom:12px;
}

.pengurus-table-wrap .dataTables_length{
    margin:0;
}

.pengurus-table-wrap .dataTables_length label{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0;
    color:#6b7280;
    font-size:10.5px;
    font-weight:500;
    white-space:nowrap;
}

.pengurus-table-wrap .dataTables_length select{
    width:auto;
    min-width:65px;
    height:32px;
    margin:0 !important;
    padding:3px 25px 3px 8px;
    border:1px solid #e5e7eb;
    border-radius:7px;
    background:#fff;
    color:#374151;
    font-size:11px;
    outline:none;
    box-shadow:none;
}

.pengurus-table-wrap .dataTables_length select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(220,38,38,.06);
}

/* SEARCH */

.pengurus-table-wrap .dataTables_filter{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin:0;
}

.pengurus-table-wrap .dataTables_filter label{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0;
    color:#6b7280;
    font-size:10.5px;
    font-weight:500;
    white-space:nowrap;
}

.pengurus-table-wrap .dataTables_filter input{
    width:190px;
    height:32px;
    margin:0 !important;
    padding:4px 10px;
    border:1px solid #e5e7eb;
    border-radius:7px;
    background:#fff;
    color:#374151;
    font-size:11px;
    outline:none;
    box-shadow:none;
    box-sizing:border-box;
}

.pengurus-table-wrap .dataTables_filter input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(220,38,38,.06);
}

/* =========================================================
   BOTTOM
========================================================= */

.pengurus-table-wrap .dataTables_wrapper > .row:last-child{
    display:flex;
    align-items:center;
    margin-top:12px;
}

.pengurus-table-wrap .dataTables_info{
    padding-top:0 !important;
    color:#6b7280;
    font-size:10.5px;
    line-height:30px;
}

.pengurus-table-wrap .dataTables_paginate{
    padding-top:0 !important;
    margin:0 !important;
}

/* =========================================================
   PAGINATION
========================================================= */

.pengurus-table-wrap .dataTables_paginate .pagination{
    display:flex !important;
    align-items:center;
    justify-content:flex-end;
    gap:3px;
    margin:0 !important;
    padding:0 !important;
}

.pengurus-table-wrap .dataTables_paginate .page-item{
    margin:0 !important;
    padding:0 !important;
}

.pengurus-table-wrap .dataTables_paginate .page-link{
    width:30px;
    height:30px;
    display:flex !important;
    align-items:center;
    justify-content:center;
    padding:0 !important;
    margin:0 !important;
    border:1px solid #e5e7eb !important;
    border-radius:6px !important;
    background:#fff !important;
    color:var(--primary) !important;
    font-size:11px !important;
    line-height:1 !important;
    text-decoration:none !important;
    box-shadow:none !important;
}

.pengurus-table-wrap .dataTables_paginate .page-link:hover{
    background:#fff5f5 !important;
    border-color:#f1caca !important;
    color:var(--primary) !important;
}

.pengurus-table-wrap .dataTables_paginate .page-item.active .page-link{
    background:var(--primary) !important;
    border-color:var(--primary) !important;
    color:#fff !important;
}

.pengurus-table-wrap .dataTables_paginate .page-item.disabled .page-link{
    background:#f9fafb !important;
    border-color:#e5e7eb !important;
    color:#c4c7cc !important;
}

/* HILANGKAN STYLE DATATABLE LAMA */

.pengurus-table-wrap .dataTables_paginate .paginate_button{
    float:none !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

/* =========================================================
   EMPTY
========================================================= */

.empty-state{
    padding:35px 20px;
    text-align:center;
    color:#9ca3af;
    font-size:12px;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:767px){

    .pengurus-table-wrap{
        padding:10px;
        border-radius:12px;
    }

    .pengurus-filter{
        margin-bottom:10px;
    }

    .pengurus-filter-select{
        width:100%;
    }

    .pengurus-table{
        min-width:760px !important;
    }

    .pengurus-table thead th{
        padding:9px 8px;
    }

    .pengurus-table tbody td{
        padding:9px 8px;
    }

    .pengurus-name{
        min-width:280px;
    }

    /* TOP DATATABLE */

    .pengurus-table-wrap .dataTables_wrapper > .row:first-child{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:8px;
        margin-bottom:10px;
    }

    .pengurus-table-wrap .dataTables_length,
    .pengurus-table-wrap .dataTables_filter{
        width:100%;
    }

    .pengurus-table-wrap .dataTables_length label{
        width:100%;
        justify-content:flex-start;
    }

    .pengurus-table-wrap .dataTables_filter{
        justify-content:stretch;
    }

    .pengurus-table-wrap .dataTables_filter label{
        width:100%;
        justify-content:space-between;
    }

    .pengurus-table-wrap .dataTables_filter input{
        width:calc(100% - 40px);
    }

    /* BOTTOM */

    .pengurus-table-wrap .dataTables_wrapper > .row:last-child{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        margin-top:10px;
    }

    .pengurus-table-wrap .dataTables_info{
        text-align:left;
        line-height:normal;
    }

    .pengurus-table-wrap .dataTables_paginate{
        width:100%;
    }

    .pengurus-table-wrap .dataTables_paginate .pagination{
        justify-content:flex-start;
        flex-wrap:wrap;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width:400px){

    .pengurus-table-wrap{
        padding:9px;
    }

    .pengurus-table-wrap .dataTables_filter input{
        width:calc(100% - 38px);
    }

    .pengurus-table-wrap .dataTables_paginate .page-link{
        width:28px;
        height:28px;
        font-size:10px !important;
    }

    .pengurus-name img,
    .pengurus-avatar{
        width:36px;
        height:36px;
        flex-basis:36px;
    }
}