/* Brawi Jadwal Dokter Styles */

.brawi-jadwal-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
}

.brawi-jadwal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.brawi-jadwal-table th,
.brawi-jadwal-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.brawi-jadwal-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    cursor: pointer;
    /* Clickable */
    position: relative;
    /* For Pseudo Element */
    user-select: none;
}

.brawi-jadwal-table th:hover {
    background-color: #e9ecef;
}

.brawi-jadwal-table th::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.3;
}

.brawi-jadwal-table th.sorted-asc::after {
    border-bottom: 4px solid #333;
    /* Up Arrow */
    opacity: 1;
}

.brawi-jadwal-table th.sorted-desc::after {
    border-top: 4px solid #333;
    /* Down Arrow */
    opacity: 1;
}

/* Status Badges */
.brawi-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-cancel {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.status-delay {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

.status-change {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.status-info {
    background-color: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
}

/* Responsive Table */
@media screen and (max-width: 600px) {
    .brawi-jadwal-table thead {
        display: none;
    }

    .brawi-jadwal-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .brawi-jadwal-table td {
        display: block;
        text-align: right;
        font-size: 0.9em;
        border-bottom: 1px solid #f0f0f0;
    }

    .brawi-jadwal-table td:last-child {
        border-bottom: none;
    }

    .brawi-jadwal-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        color: #777;
        font-size: 0.85em;
    }
}

/* Tabs Styles */
.brawi-tabs,
.brawi-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #eee;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.brawi-tabs::-webkit-scrollbar,
.brawi-tabs-nav::-webkit-scrollbar {
    height: 6px;
}

.brawi-tabs::-webkit-scrollbar-thumb,
.brawi-tabs-nav::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.brawi-tab-link {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.brawi-tab-link:hover {
    color: #333;
}

.brawi-tab-link.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.brawi-tab-content {
    display: none;
}

.brawi-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}