/* ============================================================
   PSTI - Daftar Pembimbing Public Shortcode
   ============================================================ */

.psti-pmb-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    margin: 0 0 2rem 0;
}

/* Judul */
.psti-pmb-judul {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #001188;
    border-left: 4px solid #001188;
    padding-left: 12px;
}

/* Label periode aktif */
.psti-pmb-periode {
    display: inline-block;
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #b4c8f8;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 14px;
    margin-bottom: 14px;
}

/* Catatan tambahan */
.psti-pmb-catatan {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fffbea;
    border: 1px solid #f0d45b;
    border-left: 4px solid #f5a623;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a4000;
}
.psti-pmb-catatan-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }

/* Toolbar: search + count */
.psti-pmb-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.psti-pmb-search {
    padding: 8px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-size: 0.9rem;
    width: 260px;
    max-width: 100%;
    outline: none;
    transition: border-color .2s;
}
.psti-pmb-search:focus { border-color: #001188; box-shadow: 0 0 0 3px rgba(0,17,136,.08); }

.psti-pmb-count {
    font-size: 0.82rem;
    color: #666;
}

/* Wrapper scroll horizontal di mobile */
.psti-pmb-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0,0,0,.07);
}

/* Tabel */
.psti-pmb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: #fff;
    min-width: 520px;
}

.psti-pmb-table thead th {
    background: #001188;
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: .02em;
    white-space: nowrap;
    user-select: none;
}

.psti-pmb-table thead th.sortable {
    cursor: pointer;
    transition: background .15s;
}
.psti-pmb-table thead th.sortable:hover { background: #0015cc; }
.psti-pmb-table thead th.sort-asc,
.psti-pmb-table thead th.sort-desc { background: #0022ff; }

.sort-icon {
    font-size: 0.75rem;
    opacity: .7;
    margin-left: 4px;
}

.psti-pmb-table tbody tr { transition: background .12s; }
.psti-pmb-table tbody tr:nth-child(even) { background: #f7f8ff; }
.psti-pmb-table tbody tr:hover { background: #eef0ff; }

.psti-pmb-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #eaecf0;
    color: #222;
    vertical-align: middle;
}

.psti-pmb-table .col-no {
    width: 48px;
    text-align: center;
    color: #888;
    font-size: 0.8rem;
}
.psti-pmb-table .col-nim code {
    background: #f0f4ff;
    color: #001188;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}
.psti-pmb-table .col-nama { font-weight: 500; }

/* Badge status */
.psti-pmb-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge-baru {
    background: #e8ebff;
    color: #001188;
    border: 1px solid #c5caff;
}
.badge-lanjut {
    background: #f3e8ff;
    color: #5b21b6;
    border: 1px solid #d8b4fe;
}

/* Lebar kolom tetap agar Nama/Dosen bisa lebar */
.psti-pmb-table .col-nim  { width: 130px; white-space: nowrap; }
.psti-pmb-table .col-status { width: 110px; white-space: nowrap; }
.psti-pmb-table .col-nama { min-width: 160px; }
.psti-pmb-table .col-dosen,
.psti-pmb-table .col-pemb  { min-width: 160px; }

/* Responsive */
@media (max-width: 640px) {
    .psti-pmb-judul { font-size: 1.15rem; }
    .psti-pmb-search { width: 100%; }
    .psti-pmb-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .psti-pmb-table thead th,
    .psti-pmb-table td { padding: 9px 10px; font-size: 0.82rem; }
}
