/* =========================================================
   GURU & STAFF
========================================================= */

.guru-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 */

.guru-filter{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
}

.guru-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;
}

.guru-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;
}

.guru-filter-select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(220,38,38,.06);
}

/* TABLE */

.guru-table{
    width:100% !important;
    margin:0 !important;
    font-size:11.5px;
    border-collapse:separate !important;
    border-spacing:0;
}

.guru-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;
}

.guru-table thead th:first-child{
    border-top-left-radius:8px;
}

.guru-table thead th:last-child{
    border-top-right-radius:8px;
}

.guru-table tbody td{
    padding:10px 9px;
    border-bottom:1px solid #f1f5f9;
    color:#4b5563;
    vertical-align:middle;
}

.guru-table tbody tr:last-child td{
    border-bottom:0;
}

.guru-table tbody tr:hover td{
    background:#fffafa;
}

/* NAMA */

.guru-nama{
    min-width:190px;
    color:#1f2937;
    font-size:12px;
    font-weight:700;
    line-height:1.4;
}

/* JENJANG */

.guru-jenjang{
    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;
}

.guru-jenjang.umum{
    background:#f8fafc;
    color:#64748b;
}

/* MAPEL */

.guru-muted{
    color:#94a3b8;
}

/* STATUS */

.guru-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:4px 8px;
    border-radius:20px;
    font-size:10px;
    font-weight:600;
    white-space:nowrap;
    line-height:1.2;
}

.guru-status.pns{
    background:#ecfdf5;
    color:#047857;
}

.guru-status.nonpns{
    background:#fff7ed;
    color:#c2410c;
}

/* GENDER */

.guru-gender{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:24px;
    height:24px;
    padding:0 6px;
    border-radius:50%;
    font-size:10px;
    font-weight:700;
}

.guru-gender.laki{
    background:#eff6ff;
    color:#2563eb;
}

.guru-gender.perempuan{
    background:#fdf2f8;
    color:#db2777;
}

/* DATATABLES */

.guru-table-wrap .dataTables_wrapper{
    width:100%;
    font-size:11px;
}

.guru-table-wrap .dataTables_wrapper > .row:first-child{
    display:flex;
    align-items:center;
    margin-bottom:12px;
}

.guru-table-wrap .dataTables_length{
    margin:0;
}

.guru-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;
}

.guru-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;
}

.guru-table-wrap .dataTables_length select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(220,38,38,.06);
}

.guru-table-wrap .dataTables_filter{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    margin:0;
}

.guru-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;
}

.guru-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;
}

.guru-table-wrap .dataTables_filter input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(220,38,38,.06);
}

.guru-table-wrap .dataTables_wrapper > .row:last-child{
    display:flex;
    align-items:center;
    margin-top:12px;
}

.guru-table-wrap .dataTables_info{
    padding-top:0 !important;
    color:#6b7280;
    font-size:10.5px;
    line-height:30px;
}

.guru-table-wrap .dataTables_paginate{
    padding-top:0 !important;
    margin:0 !important;
}

/* PAGINATION */

.guru-table-wrap .dataTables_paginate .pagination{
    display:flex !important;
    align-items:center;
    justify-content:flex-end;
    gap:3px;
    margin:0 !important;
    padding:0 !important;
}

.guru-table-wrap .dataTables_paginate .page-item{
    margin:0 !important;
    padding:0 !important;
}

.guru-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;
}

.guru-table-wrap .dataTables_paginate .page-link:hover{
    background:#fff5f5 !important;
    border-color:#f1caca !important;
    color:var(--primary) !important;
}

.guru-table-wrap .dataTables_paginate .page-item.active .page-link{
    background:var(--primary) !important;
    border-color:var(--primary) !important;
    color:#fff !important;
}

.guru-table-wrap .dataTables_paginate .page-item.disabled .page-link{
    background:#f9fafb !important;
    border-color:#e5e7eb !important;
    color:#c4c7cc !important;
}

/* NETRALKAN STYLE DATATABLE LAMA */

.guru-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){

    .guru-table-wrap{
        padding:10px;
        border-radius:12px;
    }

    .guru-filter{
        margin-bottom:10px;
    }

    .guru-filter-select{
        width:100%;
    }

    .guru-table{
        min-width:820px !important;
    }

    .guru-table thead th{
        padding:9px 8px;
    }

    .guru-table tbody td{
        padding:9px 8px;
    }

    .guru-nama{
        min-width:190px;
    }

    .guru-table-wrap .dataTables_wrapper > .row:first-child{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:8px;
        margin-bottom:10px;
    }

    .guru-table-wrap .dataTables_length,
    .guru-table-wrap .dataTables_filter{
        width:100%;
    }

    .guru-table-wrap .dataTables_length label{
        width:100%;
        justify-content:flex-start;
    }

    .guru-table-wrap .dataTables_filter{
        justify-content:stretch;
    }

    .guru-table-wrap .dataTables_filter label{
        width:100%;
        justify-content:space-between;
    }

    .guru-table-wrap .dataTables_filter input{
        width:calc(100% - 40px);
    }

    .guru-table-wrap .dataTables_wrapper > .row:last-child{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        margin-top:10px;
    }

    .guru-table-wrap .dataTables_info{
        text-align:left;
        line-height:normal;
    }

    .guru-table-wrap .dataTables_paginate{
        width:100%;
    }

    .guru-table-wrap .dataTables_paginate .pagination{
        justify-content:flex-start;
        flex-wrap:wrap;
    }
}

/* SMALL MOBILE */

@media(max-width:400px){

    .guru-table-wrap{
        padding:9px;
    }

    .guru-table-wrap .dataTables_filter input{
        width:calc(100% - 38px);
    }

    .guru-table-wrap .dataTables_paginate .page-link{
        width:28px;
        height:28px;
        font-size:10px !important;
    }

    .guru-gender{
        min-width:22px;
        height:22px;
        font-size:9px;
    }
}