/* ==================================================================
   UI GLASSMORPHISM & MOBILE RESPONSIVE UPGRADE
   ================================================================== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --primary: #0284c7; --primary-hover: #0369a1;
    --text-dark: #1e293b; --text-light: #64748b;
    --success: #10b981; --danger: #ef4444;
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #f1f5f9 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg-gradient); color: var(--text-dark); min-height: 100vh; background-attachment: fixed; position: relative; overflow-x: hidden; scroll-behavior: smooth; }

/* Background Animasi */
.blob { position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.6; }
.blob-1 { top: -10vw; left: -10vw; width: 40vw; height: 40vw; background: #38bdf8; }
.blob-2 { bottom: -10vw; right: -10vw; width: 50vw; height: 50vw; background: #818cf8; }

.glass { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--glass-shadow); }

/* Navbar & Routing Tabs */
nav { position: sticky; top: 0; z-index: 100; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); flex-wrap: wrap; gap: 15px;}
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; color: var(--primary); cursor: pointer; }
.brand img { height: 40px; }
.nav-links { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px;}
.nav-btn { background: none; border: none; font-size: 0.9rem; font-weight: 600; color: var(--text-dark); cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: all 0.3s; white-space: nowrap; }
.nav-btn:hover, .nav-btn.active { background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.05); color: var(--primary); }

main { padding: 30px 5%; max-width: 1400px; margin: auto; position: relative; }
.section { display: none; animation: fadeIn 0.4s ease-in-out; }
.section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons & Inputs */
.btn { padding: 12px 24px; border-radius: 10px; border: none; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-success { background: var(--success); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25); }
.btn-success:hover { background: #059669; transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: white; padding: 8px 12px; font-size: 0.8rem; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 8px 16px;}
.btn-outline:hover { background: #f0f9ff; }

.form-container { padding: 30px; position: relative; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 25px; }
.form-grid-small { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 20px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-bottom: 20px; }

.input-group { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; font-size: 0.85rem; color: var(--text-dark); }
label .req { color: var(--danger); margin-left: 2px;}
input, select, textarea { width: 100%; padding: 12px; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 8px; font-size: 0.95rem; outline: none; transition: all 0.3s; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }
input[readonly] { background: rgba(226, 232, 240, 0.5); }

/* BUBBLE UI AUTO-FILL (AESTHETIC) */
.auto-fill-bubble {
    display: none; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white; padding: 15px 20px; border-radius: 12px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    margin-bottom: 25px; animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.auto-fill-bubble i { font-size: 1.5rem; margin-right: 15px; }
.auto-fill-text { flex: 1; font-size: 0.9rem; line-height: 1.4; margin-right: 15px; }
.auto-fill-text strong { font-weight: 700; font-size: 1rem; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* KALENDER UI FIXED */
input[type="date"] { position: relative; }
input[type="date"]::-webkit-calendar-picker-indicator { background: transparent; bottom: 0; color: transparent; cursor: pointer; height: auto; left: 0; position: absolute; right: 0; top: 0; width: auto; z-index: 10; }
.date-wrapper { position: relative; display: block; }
.date-wrapper::after { content: "\f133"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--primary); pointer-events: none; z-index: 5; }

/* ==================================================================
   FITUR FOTO KLINIS (IO) MULTI-UPLOAD
   ================================================================== */
.photo-card { background: rgba(255,255,255,0.6); border: 2px dashed #94a3b8; border-radius: 12px; padding: 20px; text-align: center; transition: all 0.3s; }
.photo-card:hover { border-color: var(--primary); background: rgba(255,255,255,0.9); }
.multi-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 12px; margin-top: 15px; margin-bottom: 15px;}
.photo-thumb-wrapper { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border: 2px solid var(--glass-border); aspect-ratio: 1; background: #e2e8f0; animation: fadeIn 0.3s ease;}
.photo-thumb-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-remove-photo { position: absolute; top: 4px; right: 4px; background: rgba(239, 68, 68, 0.9); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: transform 0.2s;}
.btn-remove-photo:hover { transform: scale(1.1); background: #dc2626; }
.empty-photo-state { padding: 30px 10px; color: #94a3b8; }
.empty-photo-state i { font-size: 2.5rem; margin-bottom: 10px; }

/* History Preview Gallery */
.history-photo-gallery { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.history-photo-item { position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; border: 2px solid #cbd5e1; transition: transform 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.history-photo-item:hover { transform: scale(1.05); border-color: var(--primary); z-index: 10;}
.history-photo-item img { width: 100%; height: 100%; object-fit: cover; }

/* ==================================================================
   CSS ODONTOGRAM LENGKAP (SVG & KATEGORI ALAT)
   ================================================================== */
.odontogram-wrapper { background: rgba(255, 255, 255, 0.6); border: 1px solid var(--glass-border); border-radius: 12px; padding: 25px 15px; margin-bottom: 15px; overflow-x: auto; text-align: center; }

.accordion-box { background: rgba(255,255,255,0.4); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 20px; overflow: hidden; }
.accordion-header { padding: 15px 20px; background: rgba(255,255,255,0.5); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--text-dark); transition: background 0.3s; }
.accordion-header:hover { background: rgba(255,255,255,0.7); }
.accordion-body { padding: 15px 20px; display: none; border-top: 1px solid var(--glass-border); background: #fdfdfd; }
.accordion-body.open { display: block; }

/* Tools UI Grid & Kategori */
.odonto-tools-container { background: rgba(255,255,255,0.4); padding: 20px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--glass-border); }
.tools-category { font-weight: 700; margin-top: 15px; margin-bottom: 10px; font-size: 0.85rem; color: var(--primary); text-transform: uppercase; border-bottom: 1px solid var(--glass-border); padding-bottom: 5px; text-align: left;}
.tools-category:first-child { margin-top: 0; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 15px; }

.tool-btn { padding: 8px 10px; border-radius: 6px; border: 1px solid #cbd5e1; font-weight: 600; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; background: white; color: var(--text-dark); display: flex; align-items: center; gap: 8px; justify-content: left; }
.tool-btn:hover { background: #f8fafc; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.05);}
.tool-btn.active { border-color: var(--primary); background: #e0f2fe; color: var(--primary); box-shadow: 0 2px 5px rgba(2,132,199,0.15); }

/* Tool Colors Indicators */
.tc-norm { width: 16px; height: 16px; border-radius: 3px; background: #ffffff; border: 1px solid #94a3b8; }
.tc-car { width: 16px; height: 16px; border-radius: 3px; background: #8b0000; border: 1px solid #1e293b; }
.tc-amf { width: 16px; height: 16px; border-radius: 3px; background: #1e293b; }
.tc-gif { width: 16px; height: 16px; border-radius: 3px; background: #808080; border: 1px solid #1e293b; }
.tc-cof { width: 16px; height: 16px; border-radius: 3px; border: 1px solid #94a3b8; background: repeating-linear-gradient(45deg, #10b981, #10b981 2px, #ffffff 2px, #ffffff 4px); }
.tc-fis { width: 16px; height: 16px; border-radius: 3px; border: 1px solid #94a3b8; background: repeating-linear-gradient(45deg, #ef4444, #ef4444 2px, #ffffff 2px, #ffffff 4px); }

.tc-mis { width: 16px; height: 16px; border-radius: 3px; background: transparent; display: flex; align-items: center; justify-content: center; font-size:14px; font-weight:bold; color: #1e293b; }
.tc-mis::before { content: 'X'; }
.tc-cfr { width: 16px; height: 16px; border-radius: 3px; background: transparent; display: flex; align-items: center; justify-content: center; font-size:14px; font-weight:bold; color: #1e293b; }
.tc-cfr::before { content: '#'; }
.tc-poc { width: 16px; height: 16px; border-radius: 3px; border: 1px solid #94a3b8; background: repeating-linear-gradient(90deg, #ffffff, #ffffff 2px, #1e293b 2px, #1e293b 3px); }
.tc-fmc { width: 16px; height: 16px; border-radius: 3px; background: transparent; border: 3px double #1e293b; }
.tc-rrx { width: 16px; height: 16px; border-radius: 3px; background: transparent; display: flex; align-items: center; justify-content: center; font-size:12px; font-weight:bold; color: #ef4444; }
.tc-rrx::before { content: 'V'; }

.tc-rct { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid #1e293b; }
.tc-nvt { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 10px solid #fff; filter: drop-shadow(0 0 1px #000); }
.tc-lbl { font-size: 9px; font-weight: bold; background: #f1f5f9; border: 1px solid #cbd5e1; padding: 2px 4px; border-radius: 3px; color: #1e293b; letter-spacing: 0.5px;}

/* ==================================================================
   ODONTO GRID LAYOUT
   ================================================================== */
.odonto-grid-container {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    display: block; 
    margin-bottom: 20px;
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    position: relative;
}

.scroll-hint { display: none; text-align: center; font-size: 0.85rem; color: var(--primary); margin-bottom: 10px; font-weight: 600;}
@media(max-width: 850px) { .scroll-hint { display: block; } }

.odonto-grid {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    min-width: max-content; 
    padding: 20px 10px;
    align-items: center;
    margin: 0 auto; 
}
.odonto-row {
    display: flex;
    gap: 6px; 
    justify-content: center;
}
.odonto-tooth {
    display: flex;
    width: 45px; 
    gap: 5px; 
    align-items: center;
}
.odonto-row.top-jaw .odonto-tooth { flex-direction: column; }
.odonto-row.bottom-jaw .odonto-tooth { flex-direction: column-reverse; }

.odonto-empty { width: 45px; height: 45px; }

.odonto-divider {
    width: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #1e293b;
    font-size: 1.5rem;
}

.odonto-num {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.odonto-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef4444;
    min-height: 14px; 
    line-height: 1;
}

.tooth-svg { 
    width: 45px; 
    height: 45px; 
    cursor: pointer; 
    overflow: visible; 
    transition: transform 0.1s; 
}
.odonto-row.top-jaw .tooth-svg { margin-top: 15px; }
.odonto-row.bottom-jaw .tooth-svg { margin-bottom: 15px; }

.tooth-svg:hover { transform: scale(1.1); z-index: 10; }

.surface { fill: #ffffff; stroke: #64748b; stroke-width: 1.2; transition: fill 0.2s, stroke-width 0.2s; }
.surface:hover { opacity: 0.8; stroke-width: 2.5; stroke: var(--primary);}

.surface[data-state="norm"] { fill: #ffffff; }
.surface[data-state="car"] { fill: #8b0000; stroke: #1e293b; stroke-width: 2; } 
.surface[data-state="gif"] { fill: #808080; stroke: #1e293b; stroke-width: 2; } 
.surface[data-state="amf"] { fill: #1e293b; } 
.surface[data-state="cof"] { fill: url(#pat-cof); } 
.surface[data-state="fis"] { fill: url(#pat-fis); } 

.tooth-svg[data-whole="mis"] .overlay-mis { display: block !important; }
.tooth-svg[data-whole="cfr"] .overlay-cfr { display: block !important; }
.tooth-svg[data-whole="poc"] .overlay-poc { display: block !important; }
.tooth-svg[data-whole="fmc"] .overlay-fmc { display: block !important; }
.tooth-svg[data-whole="rrx"] .overlay-rrx { display: block !important; }

.tooth-svg[data-root="nvt"] .overlay-nvt { display: block !important; }
.tooth-svg[data-root="rct"] .overlay-rct { display: block !important; }

/* Modul Spesifik */
.module-title { font-size: 1.1rem; color: var(--text-dark); margin: 30px 0 15px 0; border-bottom: 2px solid var(--glass-border); padding-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.soap-section { background: rgba(255, 255, 255, 0.4); padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--glass-border); }
.soap-badge { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 6px; color: white; font-weight: bold; margin-right: 8px; font-size: 0.85rem;}
.bg-s { background: #f59e0b; } .bg-o { background: #3b82f6; } .bg-a { background: #ef4444; } .bg-p { background: #10b981; }

/* ==================================================================
   TABEL MULTI-INPUT (RESEP & TINDAKAN)
   ================================================================== */
.table-responsive { overflow-x: auto; border-radius: 8px; -webkit-overflow-scrolling: touch; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.4); margin-bottom: 15px;}
.multi-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.multi-table th { background: #e2e8f0; color: #475569; padding: 12px; font-size: 0.85rem; text-align: left; border-bottom: 1px solid var(--glass-border); }
.multi-table td { padding: 8px; border-bottom: 1px solid #cbd5e1; }
.multi-table input, .multi-table select { padding: 8px; font-size: 0.85rem; background: #fff; border: 1px solid #cbd5e1; width: 100%; box-sizing: border-box; border-radius: 6px; outline: none; transition: border-color 0.2s;}
.multi-table input:focus, .multi-table select:focus { border-color: var(--primary); }

/* Dasbor Admin & Riwayat Kunjungan Modal (Universal Table) */
.dash-table { width: 100%; border-collapse: collapse; min-width: 900px; } 
.dash-table th, .dash-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.dash-table th { background: rgba(255, 255, 255, 0.5); font-weight: 600; white-space: nowrap; color: #475569; font-size: 0.85rem;}
.dash-table td { background: rgba(255, 255, 255, 0.2); font-size: 0.85rem; vertical-align: top; }
.dash-table tr { transition: background 0.2s; }
.dash-table tr:hover td { background: rgba(255, 255, 255, 0.7); }

.dashboard-container { padding: 25px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px;}
.search-box { position: relative; width: 100%; max-width: 350px; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.search-box input { padding-left: 45px; }

.spinner { border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid white; border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; display: none; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Modal General */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 20px;}
.modal.active { display: flex; }
.modal-content { background: white; padding: 30px; border-radius: 12px; width: 100%; max-width: 900px; position: relative; max-height: 90vh; overflow-y: auto;} 
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-light); z-index: 100;}
.close-modal:hover { color: var(--danger); }

/* Timeline Riwayat Kunjungan (Detailed) */
.timeline { border-left: 3px solid var(--primary); padding-left: 20px; margin-top: 20px; }
.timeline-item { position: relative; margin-bottom: 25px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; overflow: hidden; }
.timeline-item::before { content: ''; position: absolute; left: -28px; top: 15px; width: 13px; height: 13px; border-radius: 50%; background: white; border: 3px solid var(--primary); }
.tl-header { padding: 15px; background: #e0f2fe; border-bottom: 1px solid #bae6fd; }
.tl-date { font-weight: 700; color: var(--primary); font-size: 0.95rem; margin-bottom: 5px;}
.tl-body { padding: 15px; font-size: 0.85rem; color: #334155;}

details.tl-accordion { background: white; border: 1px solid #e2e8f0; border-radius: 6px; margin-bottom: 10px; }
details.tl-accordion summary { font-weight: 600; cursor: pointer; padding: 10px; background: #f1f5f9; outline: none; }
details.tl-accordion .details-content { padding: 10px; border-top: 1px solid #e2e8f0; }

/* Badge Status Farmasi */
.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-wait { background: #fef08a; color: #b45309; }
.status-done { background: #d1fae5; color: #047857; }

/* Nav Tabs Admin */
.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid var(--glass-border); padding-bottom: 10px;}
.admin-tab-btn { background: none; border: none; font-size: 1rem; font-weight: 600; color: var(--text-light); padding: 10px 15px; cursor: pointer; transition: all 0.3s; }
.admin-tab-btn.active { color: var(--primary); border-bottom: 3px solid var(--primary); }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Notifikasi TOAST Terpusat */
#toast { position: fixed; bottom: 30px; right: 30px; padding: 16px 24px; border-radius: 12px; color: white; font-weight: 500; display: flex; align-items: center; gap: 10px; transform: translateX(150%); transition: transform 0.4s; z-index: 2000; box-shadow: 0 10px 25px rgba(0,0,0,0.2); max-width: 400px; line-height: 1.4; font-size: 0.9rem;}
#toast.show { transform: translateX(0); }
#toast.success { background: #10b981; }
#toast.error { background: #ef4444; }
#toast.info { background: #3b82f6; }

@media(max-width: 850px) {
    .form-container, .dashboard-container { padding: 15px; }
    .btn { width: 100%; }
    .auto-fill-bubble { flex-direction: column; text-align: center; gap: 15px; }
    #toast { left: 50%; right: auto; transform: translateX(-50%) translateY(150%); bottom: 20px; width: 90%; }
    #toast.show { transform: translateX(-50%) translateY(0); }
    .admin-tabs { flex-wrap: wrap; }
}

/* ==================================================================
   AREA VERIFIKASI (TAMPILAN CUSTOM MOBILE & DESKTOP FRIENDLY)
   ================================================================== */
.verif-layout {
    display: flex;
    flex-direction: column-reverse; 
    gap: 20px;
}
.verif-main-col { width: 100%; max-width: 100%; overflow: hidden; background: #fff; border-radius: 12px; padding: 15px; border: 1px solid #e2e8f0; box-sizing: border-box;}
.verif-side-col { width: 100%; box-sizing: border-box; }
.verif-table { width: 100%; border-collapse: collapse; table-layout: fixed; word-wrap: break-word; }
.verif-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.verif-lbl { width: 120px; color: #64748b; font-weight: 500; vertical-align: top;}
.verif-val { color: #1e293b; font-weight: 600; vertical-align: top;}
.badge-approved { background: #22c55e; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; display: inline-block; margin-top: 5px; }
.btn-reload { padding: 6px 12px; background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; transition: all 0.2s; white-space: nowrap;}
.btn-reload:hover { background: #bae6fd; }
.iframe-container { width: 100%; height: 50vh; border: 2px solid #cbd5e1; border-radius: 10px; overflow: hidden; background: #334155; }
.iframe-container iframe { width: 100%; height: 100%; border: none; }
.verif-info-card { background: rgba(255,255,255,0.8); padding: 20px; border-radius: 12px; border: 1px dashed var(--primary); }

@media(min-width: 992px) {
    .verif-layout { flex-direction: row; }
    .verif-main-col { flex: 3; padding: 25px; }
    .verif-side-col { flex: 1; min-width: 250px;}
    .iframe-container { height: 80vh; }
    .verif-lbl { width: 180px; font-size: 1rem; }
    .verif-table td { font-size: 1rem; }
}

@media (max-width: 850px) {
    .verif-table, .verif-table tbody, .verif-table tr, .verif-table td {
        display: block; width: 100%;
    }
    .verif-lbl { padding-bottom: 5px; border-bottom: none !important;}
    .verif-val { padding-top: 0px; padding-bottom: 15px;}
}

/* ==================================================================
   AREA CETAK DINAMIS & EXPORT PDF (MENDUKUNG BROWSER & HTML2PDF)
   ================================================================== */
.print-section { 
    display: none; 
    background-color: white; 
    color: black; 
    text-align: left;
}

#printArea {
    font-family: 'Times New Roman', Times, serif; 
}

#printAreaRujukan {
    font-family: Arial, Helvetica, sans-serif; 
}

.kop-surat { text-align: center; border-bottom: 3px double black; padding-bottom: 10px; margin-bottom: 30px; }
.kop-surat img { height: 75px; margin-bottom: 5px; object-fit: contain; }
.print-nama-klinik { font-size: 20pt; font-weight: bold; margin: 0; color: black; text-transform: uppercase; }
.print-alamat-klinik { font-size: 11pt; margin: 0; margin-top: 5px; color: black; }

.sks-title { text-align: center; text-decoration: underline; font-weight: bold; font-size: 14pt; margin-bottom: 25px; color: black;}
.sks-body { font-size: 12pt; line-height: 1.6; color: black; }
.sks-body p { margin-bottom: 10px; }

.sks-signature { margin-top: 40px; text-align: right; color: black; }
.sks-signature p { line-height: 1.3; margin: 0; }

.print-section table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.print-section table td { border: none; padding: 4px 0; font-size: 12pt; vertical-align: top; color: black; }
.print-section table strong { font-weight: bold; }

/* KONTROL KHUSUS PRINT KERTAS BROWSER (CTRL+P) */
@media print {
    body * { visibility: hidden; }
    body { background: white !important; color: black; margin: 0; padding: 0; }
    .blob, nav, main, .modal, #toast, #pdfLoadingOverlay { display: none !important; }
    
    .print-section, .print-section * { visibility: visible; }
    .print-section { position: absolute; left: 0; top: 0; width: 100%; display: none; }
    
    body.print-sks #printArea { display: block !important; padding: 0; }
    body.print-rujukan #printAreaRujukan { display: block !important; padding: 0; }

    @page { size: auto; margin: 15mm; }
}
