/* ========================= */
/* DOCTOR TABLE FINAL CLEAN */
/* ========================= */

/* Table */
.table-doctor-schedule {
    border-radius: 12px;
   overflow: visible;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Header */
.table-doctor-schedule th {
    background: linear-gradient(135deg, #5E227F, #9333ea);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 12px;
}

/* Cell */
.table-doctor-schedule td {
    padding: 12px;
    font-size: 14px;
    vertical-align: middle;
}

/* Row */
.table-doctor-schedule tbody tr {
    height: 65px;
    transition: 0.3s;
}

.table-doctor-schedule tbody tr:nth-child(odd) {
    background: #fafafa;
}

.table-doctor-schedule tbody tr:hover {
    background: #f3e8ff;
}

/* ========================= */
/* DOCTOR INFO (LEFT ALIGN) */
/* ========================= */
.doctor-info {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* ⬅️ ini kuncinya */
    gap: 12px;
}

/* Foto */
.doctor-img {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #5E227F;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Nama */
.doctor-name-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
    .doctor-img {
        width: 35px;
        height: 35px;
    }

    .table-doctor-schedule td,
    .table-doctor-schedule th {
        font-size: 12px;
        padding: 8px;
    }
}

.empty-state {
    color: #888;
    font-size: 14px;
}

.empty-state i {
    font-size: 40px;
    color: #5E227F;
}
.table-scroll {
    max-height: 300px; /* fix tinggi = sekitar 5 baris */
    overflow-y: auto;
    border-radius: 12px;
    display: block;
}

/* Biar table tetap normal */
.table-scroll table {
    margin-bottom: 0;
}

/* Sticky header */
.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #5E227F !important;
    color: #fff;
}

/* Scrollbar biar bagus */
.table-scroll::-webkit-scrollbar {
    width: 6px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #5E227F;
    border-radius: 10px;
}
/* Scroll horizontal khusus mobile */
@media (max-width: 768px) {
    .dokter-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dokter-scroll table {
        min-width: 600px; /* penting biar table tidak shrink */
    }
}
.dokter-scroll {
    position: relative;
}

.dokter-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
    pointer-events: none;
}
.dokter-scroll {
    overflow-x: auto;
}

.dokter-scroll table {
    min-width: 700px;
    width: max-content; /* 🔥 ini penting */
}