/* ==============================================================================
   JADWAL DOKTER & RESERVASI ONLINE - RSUD KARANGASEM
   Sistem Informasi Jadwal Dokter (SIJADOK) - Format Mingguan Resmi
   ============================================================================== */

:root {
    --jd-primary: #0e3826;
    --jd-primary-hover: #145036;
    --jd-emerald: #0d6832;
    --jd-accent: #22c55e;
    --jd-accent-light: #dcfce7;
    --jd-text-dark: #0f172a;
    --jd-text-muted: #64748b;
    --jd-border: #e2e8f0;
    --jd-bg-soft: #f8fafc;
    --jd-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --jd-shadow-md: 0 10px 25px -5px rgba(14, 56, 38, 0.08);
    --jd-shadow-lg: 0 20px 35px -10px rgba(14, 56, 38, 0.12);
}

.jadwal-page-section {
    padding: 40px 0 80px;
    background: #fbfdfc;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

/* ==============================================================================
   1. BANNER JAM OPERASIONAL POLIKLINIK RAWAT JALAN (DIATAS JADWAL)
   ============================================================================== */
.jadwal-poliklinik-info-card {
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-left: 6px solid #0d6832;
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 30px;
    box-shadow: var(--jd-shadow-sm);
    position: relative;
    overflow: hidden;
}

.jadwal-poliklinik-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(13, 104, 50, 0.04), transparent 70%);
    pointer-events: none;
}

.poli-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.poli-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #0e3826;
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(14, 56, 38, 0.2);
}

.poli-info-title-wrap h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0e3826;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.poli-info-title-wrap p {
    margin: 3px 0 0;
    font-size: 13.5px;
    color: #475569;
}

.poli-hours-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.poli-hour-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.poli-hour-box:hover {
    background: #ffffff;
    border-color: #86efac;
    box-shadow: 0 6px 16px rgba(13, 104, 50, 0.08);
    transform: translateY(-2px);
}

.ph-day-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0e3826;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}

.ph-day-title i {
    color: #0d6832;
    font-size: 14px;
}

.ph-detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 6px;
}

.ph-label {
    color: #64748b;
    font-weight: 500;
}

.ph-val-green {
    color: #15803d;
    font-weight: 800;
}

.ph-val-blue {
    color: #0284c7;
    font-weight: 800;
}

.ph-note-pill {
    font-size: 11.5px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ph-note-pill i {
    color: #0d6832;
    font-size: 12px;
}

/* ==============================================================================
   2. HIGHLIGHTS STATS GRID
   ============================================================================== */
.jadwal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.jadwal-stat-card {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--jd-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jadwal-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--jd-shadow-md);
}

.jadwal-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0fdf4;
    color: var(--jd-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.jadwal-stat-info h4 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jd-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jadwal-stat-info .stat-val {
    font-size: 21px;
    font-weight: 800;
    color: var(--jd-primary);
    margin-top: 2px;
}

/* ==============================================================================
   3. KARTU UTAMA: JADWAL DOKTER MINGGUAN (SIJADOK)
   ============================================================================== */
.jadwal-card-container {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--jd-shadow-lg);
    margin-bottom: 50px;
}

.jadwal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.jadwal-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jadwal-stethoscope-icon {
    width: 54px;
    height: 54px;
    background: var(--jd-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    font-size: 24px;
    box-shadow: 0 8px 18px rgba(14, 56, 38, 0.25);
    flex-shrink: 0;
}

.jadwal-title-group h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    color: #0a3420;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.jadwal-title-group .jadwal-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.live-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.badge-period {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

.disclaimer-text {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
}

.jadwal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-print-jadwal {
    background: #0e3826;
    color: #ffffff;
    border: 1px solid #0e3826;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-print-jadwal:hover {
    background: #145036;
    border-color: #145036;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 56, 38, 0.2);
}

.btn-refresh-jadwal {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--jd-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-refresh-jadwal:hover {
    background: #f0fdf4;
    border-color: var(--jd-emerald);
    color: var(--jd-emerald);
}

/* ==============================================================================
   4. FILTER & SEARCH TOOLBAR
   ============================================================================== */
.jadwal-filter-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 22px;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #edf2f7;
}

.jadwal-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.jadwal-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.jadwal-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--jd-border);
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.jadwal-search-input:focus {
    border-color: var(--jd-emerald);
    box-shadow: 0 0 0 3px rgba(13, 104, 50, 0.12);
}

.jadwal-select-poli {
    padding: 10px 14px;
    border: 1px solid var(--jd-border);
    border-radius: 10px;
    font-size: 13.5px;
    background: #ffffff;
    outline: none;
    color: #334155;
    font-family: inherit;
    cursor: pointer;
    min-width: 190px;
    transition: border-color 0.2s;
}

.jadwal-select-poli:focus {
    border-color: var(--jd-emerald);
}

/* Day Filter Selector Group */
.jadwal-day-filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-day-filter {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-day-filter:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.btn-day-filter.active {
    background: #0e3826;
    border-color: #0e3826;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(14, 56, 38, 0.2);
}

.btn-day-filter.btn-day-today {
    border-color: #86efac;
    color: #15803d;
    background: #f0fdf4;
}

.btn-day-filter.btn-day-today.active {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

.btn-day-filter.is-today-pill {
    font-weight: 700;
}

/* Quick Status Filter Pills */
.jadwal-status-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-status-filter {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-status-filter:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.btn-status-filter.active {
    background: #0e3826;
    border-color: #0e3826;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(14, 56, 38, 0.2);
}

.status-dot-mini {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-mini.dot-green {
    background: #22c55e;
}

.status-dot-mini.dot-red {
    background: #ef4444;
}

.jadwal-counter-chip {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: auto;
    white-space: nowrap;
}

.jadwal-counter-chip strong {
    color: #0d6832;
    font-weight: 700;
}

/* ==============================================================================
   5. TABEL JADWAL MINGGUAN (SESUAI FORMAT AMPRAHAN RESMI SIJADOK)
   ============================================================================== */
.jadwal-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
}

.weekly-jadwal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.weekly-jadwal-table thead tr {
    background: #0e3826;
    color: #ffffff;
}

.weekly-jadwal-table th {
    padding: 12px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid #082418;
    vertical-align: middle;
}

.weekly-jadwal-table th:last-child {
    border-right: none;
}

.th-day-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.th-day-name {
    font-weight: 800;
}

.th-today {
    background: #0d6832 !important;
}

.th-today-badge {
    background: #fef08a;
    color: #854d0e;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* BARIS HEADER KATEGORI SPESIALISASI (AMPRAHAN GREEN BAR) */
.specialty-group-header td {
    background: #e2f5ea !important;
    border-top: 2px solid #a7f3d0;
    border-bottom: 1.5px solid #86efac;
    padding: 9px 16px !important;
}

.specialty-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spec-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-left i {
    color: #0d6832;
    font-size: 15px;
}

.spec-name {
    font-size: 13.5px;
    font-weight: 900;
    color: #0e3826;
    letter-spacing: 0.5px;
}

.spec-badge-count {
    background: #ffffff;
    color: #0e3826;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #86efac;
}

/* BARIS DOKTER */
.jadwal-row {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #e2e8f0;
}

.jadwal-row:nth-child(even) {
    background-color: #fafbfc;
}

.jadwal-row:hover {
    background-color: #f0fdf4 !important;
}

.jadwal-row.has-override-notice {
    background-color: #fffdfd;
}

.weekly-jadwal-table td {
    padding: 10px 12px;
    vertical-align: middle;
    border-right: 1px solid #f1f5f9;
}

.weekly-jadwal-table td:last-child {
    border-right: none;
}

/* Kolom NO */
.td-no {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
}

/* Kolom Profil Dokter */
.td-doctor {
    min-width: 260px;
}

.doctor-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-avatar-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6832, #059669);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.doctor-info-wrap {
    min-width: 0;
}

.doctor-primary-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    display: block;
}

.doctor-specialty {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-top: 1px;
}

/* Kolom Hari Aktif Highlight */
.col-today {
    background-color: rgba(220, 252, 231, 0.45) !important;
}

/* Badges Status Per Hari */
.badge-schedule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    min-width: 58px;
    cursor: default;
    transition: transform 0.15s ease;
}

.badge-schedule:hover {
    transform: scale(1.05);
}

.badge-ada {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-cuti {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.badge-substitute {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.badge-custom {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.badge-empty {
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 600;
    user-select: none;
}

/* Footer Card Legend & Keterangan */
.jadwal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.footer-legend {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend-ada { background: #22c55e; }
.legend-cuti { background: #ef4444; }
.legend-ganti { background: #f59e0b; }
.legend-empty { background: #cbd5e1; }

.footer-note {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* Empty State */
.jadwal-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
}

.jadwal-empty-state i {
    font-size: 44px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.jadwal-empty-state p {
    font-size: 15.5px;
    font-weight: 600;
    margin: 0;
}

/* ==============================================================================
   6. SECTION RESERVASI ONLINE & MOBILE JKN
   ============================================================================== */
.reservasi-section-box {
    margin-top: 60px;
}

.reservasi-header-title {
    text-align: center;
    margin-bottom: 40px;
}

.reservasi-header-title h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--jd-primary);
    margin: 0 0 8px;
}

.reservasi-header-title p {
    color: var(--jd-text-muted);
    font-size: 15.5px;
    max-width: 680px;
    margin: auto;
}

.reservasi-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.reservasi-card {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: var(--jd-shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reservasi-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jd-shadow-lg);
}

.reservasi-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-bpjs {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.reservasi-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.icon-bpjs {
    background: #ecfdf5;
    color: #059669;
}

.reservasi-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--jd-text-dark);
    margin: 0 0 10px;
}

.reservasi-card p {
    font-size: 14px;
    color: var(--jd-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.reservasi-steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.reservasi-steps-list li {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.reservasi-steps-list li i {
    color: #22c55e;
    margin-top: 3px;
}

.btn-reservasi-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    width: 100%;
}

.btn-bpjs-cta {
    background: #059669;
    color: #ffffff;
}

.btn-bpjs-cta:hover {
    background: #047857;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.btn-reservasi-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-reservasi-store:hover {
    background: var(--jd-primary);
    color: #ffffff;
    border-color: var(--jd-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 56, 38, 0.15);
}

/* Ketentuan Box */
.ketentuan-box {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--jd-shadow-sm);
    margin-top: 30px;
}

.ketentuan-box h4 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--jd-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ketentuan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ketentuan-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #edf2f7;
}

.ketentuan-item h5 {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
}

.ketentuan-item p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* ==============================================================================
   7. RESPONSIVE MOBILE BREAKPOINTS
   ============================================================================== */
@media (max-width: 992px) {
    .jadwal-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .jadwal-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .jadwal-page-section {
        padding: 25px 0 60px;
    }

    .jadwal-poliklinik-info-card {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .poli-info-title-wrap h3 {
        font-size: 15px;
    }

    .jadwal-card-container {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .jadwal-title-group h2 {
        font-size: 19px;
    }

    .jadwal-filter-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 12px;
    }

    .jadwal-search-wrapper,
    .jadwal-select-poli,
    .btn-print-jadwal,
    .btn-refresh-jadwal {
        width: 100%;
    }

    .jadwal-day-filter-group {
        overflow-x: auto;
        padding-bottom: 6px;
        width: 100%;
        flex-wrap: nowrap;
    }

    .jadwal-table-container {
        -webkit-overflow-scrolling: touch;
    }

    .weekly-jadwal-table th {
        padding: 9px 6px;
        font-size: 10.5px;
    }

    .weekly-jadwal-table td {
        padding: 8px 6px;
    }

    .doctor-avatar-initials {
        width: 28px;
        height: 28px;
        font-size: 10.5px;
    }

    .doctor-primary-name {
        font-size: 12.5px;
    }

    .doctor-specialty {
        font-size: 10.5px;
    }

    .badge-schedule {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 44px;
    }
}

/* ==============================================================================
   8. PRINT MEDIA QUERY (SESUAI DOKUMEN CETAK AMPRAHAN RESMI)
   ============================================================================== */
@media print {
    @page {
        size: landscape;
        margin: 10mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt;
    }

    .print\:hidden,
    header,
    footer,
    nav,
    .subhead,
    .subhead-section,
    #header,
    #footer,
    .jadwal-stats-grid,
    .jadwal-poliklinik-info-card,
    .jadwal-filter-toolbar,
    .reservasi-section-box,
    .btn-print-jadwal,
    .btn-refresh-jadwal {
        display: none !important;
    }

    .jadwal-page-section {
        padding: 0 !important;
        background: transparent !important;
    }

    .jadwal-card-container {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .jadwal-stethoscope-icon {
        display: none !important;
    }

    .jadwal-title-group h2 {
        font-size: 14pt !important;
        color: #000000 !important;
        text-align: center;
    }

    .jadwal-subtitle {
        font-size: 9pt !important;
        color: #333333 !important;
        justify-content: center;
    }

    .weekly-jadwal-table {
        border: 1.5px solid #000000 !important;
        width: 100% !important;
        page-break-inside: auto;
    }

    .weekly-jadwal-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .weekly-jadwal-table thead th {
        background: #e2e8f0 !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        font-size: 9pt !important;
        padding: 5px 4px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .specialty-group-header td {
        background: #cbf3dd !important;
        color: #000000 !important;
        border: 1.5px solid #000000 !important;
        font-weight: 800 !important;
        padding: 5px 8px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .spec-name {
        font-size: 10pt !important;
        color: #000000 !important;
    }

    .spec-badge-count {
        border: 1px solid #000000 !important;
        color: #000000 !important;
        font-size: 8pt !important;
    }

    .weekly-jadwal-table td {
        border: 1px solid #000000 !important;
        padding: 4px 6px !important;
        font-size: 8.5pt !important;
    }

    .doctor-avatar-initials {
        display: none !important;
    }

    .doctor-primary-name {
        font-size: 9pt !important;
        color: #000000 !important;
    }

    .badge-ada {
        background: #dcfce7 !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .badge-cuti {
        background: #fee2e2 !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .badge-substitute {
        background: #fef3c7 !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
