/* Sistem Informasi Asuhan Keperawatan - Universitas Insan Mahardika
   Identitas: teal klinis, aksen coral, latar putih kebiruan, sudut membulat (bukan pil penuh) */
:root {
  --h1: #0A2E36; --h2: #0F4C5C; --h3: #13707A; --h4: #1B8A94; --h5: #8FD3CF; --h6: #F1F7F8;
  --kuning: #FF7A59; --kuning2: #F2643F;
  --tint: rgba(27, 138, 148, .10); --tint-kuat: rgba(27, 138, 148, .18);
  --garis: #D6E6E8; --kartu: #FFFFFF; --abu: #5A6C71; --teks: #0B2329;
  --merah: #D64545; --merah-t: #FDECEC; --oranye: #D9822B; --oranye-t: #FFF3E3; --biru: #2563B5; --biru-t: #E6EFFB;
  --r: 14px; --bayang: 0 1px 2px rgba(10, 46, 54, .05), 0 10px 26px -18px rgba(10, 46, 54, .3);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--h6); color: var(--teks); font-family: 'DM Sans', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--h4); }
:focus-visible { outline: 2px solid var(--h4); outline-offset: 2px; }
h1, h2, h3 { font-family: Sora, 'DM Sans', sans-serif; letter-spacing: -.02em; margin: 0; }
.ikon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------ Masuk (dua kolom) ------------------------------ */
.masuk { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--h6); }
.masuk .panel { position: relative; overflow: hidden; padding: 28px 22px 34px; color: #fff; background: linear-gradient(150deg, #13707A 0%, #0F4C5C 55%, #0A2E36 100%); }
.masuk .panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.masuk .ekg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70px; opacity: .45; }
.masuk .panel > * { position: relative; }
.masuk .merek { display: flex; align-items: center; gap: 12px; }
.masuk .merek b { display: block; font-family: Sora, sans-serif; font-size: 17px; }
.masuk .merek small { opacity: .8; font-size: 12.5px; }
.masuk .panel h1 { margin-top: 26px; font-size: 30px; font-weight: 800; line-height: 1.12; max-width: 520px; }
.masuk .panel h1 em { font-style: normal; color: #FFB199; }
.masuk .panel p { margin: 10px 0 0; max-width: 460px; opacity: .88; font-size: 14.5px; }
.masuk .fitur { display: none; margin: 26px 0 0; padding: 0; list-style: none; gap: 10px; }
.masuk .fitur li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.masuk .fitur li span { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.12); }
.masuk .sisi { display: flex; align-items: flex-start; justify-content: center; padding: 22px 16px 40px; }
.masuk form { width: min(420px, 100%); margin-top: -24px; padding: 26px 22px 18px; background: #fff; border: 1px solid var(--garis); border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(10, 46, 54, .45); }
.masuk form h2 { font-size: 24px; color: var(--h1); }
.masuk form .sub { margin: 4px 0 6px; color: var(--abu); font-size: 14px; }
.masuk .fi { position: relative; margin-top: 12px; }
.masuk .fi label { display: block; font-size: 12.5px; font-weight: 700; color: var(--h2); margin-bottom: 5px; }
.masuk .fi input { display: block; width: 100%; height: 50px; padding: 0 46px 0 14px; border: 1.5px solid var(--garis); border-radius: 12px; background: #FBFDFD; font-size: 15.5px; }
.masuk .fi input:focus { outline: none; border-color: var(--h4); box-shadow: 0 0 0 4px var(--tint); }
.masuk .ey { position: absolute; right: 4px; bottom: 3px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--abu); display: flex; align-items: center; justify-content: center; }
.masuk .bt { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-top: 18px; border: 0; border-radius: 12px; background: var(--h4); color: #fff; font-size: 16px; font-weight: 700; transition: transform .18s, filter .2s; }
.masuk .bt:hover { filter: brightness(1.07); }
.masuk .bt:active, .masuk .ganti:active { transform: scale(.98); }
.masuk .ganti { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 10px; border: 1.5px solid var(--kuning); border-radius: 12px; background: #FFF4F0; color: #C2410C; font-weight: 700; }
.masuk .pemisah { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; font-size: 13px; color: var(--abu); }
.masuk .pemisah::before, .masuk .pemisah::after { content: ""; flex: 1; height: 1px; background: var(--garis); }
.masuk .tautan { border: 0; background: none; color: var(--h3); font-weight: 700; text-decoration: underline; padding: 10px 0; }
.masuk .pesan { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--merah-t); color: #A12B2B; font-size: 14px; }
.masuk .catatan { margin: 10px 0 0; font-size: 12px; text-align: center; color: var(--abu); }
@media (min-width: 900px) {
  .masuk { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .masuk .panel { padding: 44px 52px; display: flex; flex-direction: column; justify-content: center; }
  .masuk .panel h1 { font-size: 42px; }
  .masuk .fitur { display: grid; }
  .masuk .sisi { align-items: center; padding: 40px; }
  .masuk form { margin-top: 0; padding: 34px 32px 22px; }
}

/* ------------------------------ Kerangka ------------------------------ */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.side { display: none; }
.atas-hp { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; color: var(--h1); border-bottom: 1px solid var(--garis); }
.atas-hp strong { flex: 1; font-size: 15px; font-family: Sora, sans-serif; }
.atas-hp button { border: 0; background: none; color: var(--h2); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.main { flex: 1; min-width: 0; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--garis); padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; color: var(--abu); font-size: 11.5px; text-decoration: none; }
.nav a.a { color: var(--h4); font-weight: 700; }
.nav a.a .ikon { background: var(--tint); border-radius: 8px; padding: 2px; width: 30px; height: 24px; }
.mk { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--h4); color: #fff; }
.laci { position: fixed; inset: 0; z-index: 40; display: none; }
.laci.buka { display: block; }
.laci .tirai { position: absolute; inset: 0; background: rgba(10, 46, 54, .45); }
.laci .isi { position: absolute; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); background: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.br { display: flex; align-items: center; gap: 10px; margin: 0 6px 20px; color: var(--h1); }
.br b { display: block; font-size: 15px; line-height: 1.2; font-family: Sora, sans-serif; }
.br small { display: block; font-size: 11.5px; color: var(--abu); }
.menu a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--h2); text-decoration: none; font-weight: 500; transition: background .2s; border-left: 3px solid transparent; }
.menu a.a { background: var(--tint); color: var(--h3); font-weight: 700; border-left-color: var(--kuning); }
.menu a:not(.a):hover { background: #F1F7F8; }
.menu .lbl { margin: 14px 12px 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--abu); font-weight: 700; }
.us { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--garis); font-size: 13px; color: var(--abu); }
.us strong { display: block; color: var(--h1); }
.av { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--h5); color: var(--h1); font-weight: 800; }
@media (min-width: 900px) {
  .shell { flex-direction: row; }
  .atas-hp, .nav { display: none; }
  .side { display: flex; flex-direction: column; gap: 2px; flex: none; width: 248px; position: sticky; top: 0; height: 100vh; padding: 22px 14px; background: #fff; border-right: 1px solid var(--garis); overflow-y: auto; }
  .main { padding: 28px 36px 48px; }
}

/* ------------------------------ Judul halaman ------------------------------ */
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--h4); }
.kepala { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.kepala h1 { font-size: 26px; font-weight: 800; color: var(--h2); line-height: 1.15; margin-top: 4px; }
.kepala p { margin: 6px 0 0; color: var(--abu); font-size: 14px; }
@media (min-width: 900px) { .kepala h1 { font-size: 30px; } }

/* ------------------------------ Kartu dan grid ------------------------------ */
.kartu { background: var(--kartu); border: 1px solid var(--garis); border-radius: var(--r); padding: 18px; box-shadow: var(--bayang); }
.kartu + .kartu, .kartu + details, details + details, details + .kartu { margin-top: 14px; }
.kartu h2, details > summary h2 { font-size: 17px; font-weight: 800; color: var(--h2); }
.kartu h3 { font-size: 14px; font-weight: 800; color: var(--h3); margin: 16px 0 8px; font-family: inherit; letter-spacing: 0; }
.kartu .sub { margin: 4px 0 0; color: var(--abu); font-size: 13px; }
.kartu.gelap { background: var(--h2); color: var(--h6); border-color: var(--h2); }
.kartu.gelap h2 { color: #fff; }
.kartu.mint { background: #F4FAFA; }
details.kartu > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
details.kartu > summary::-webkit-details-marker { display: none; }
details.kartu > summary .chev { transition: transform .2s; color: var(--h4); }
details.kartu[open] > summary .chev { transform: rotate(180deg); }
details.kartu[open] > summary { margin-bottom: 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rentang { grid-column: 1 / -1; }
.baris { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.baris.antara { justify-content: space-between; }
.kecil { font-size: 12.5px; color: var(--abu); }
.mt { margin-top: 14px; }
.kosong { padding: 22px 14px; text-align: center; color: var(--abu); font-size: 14px; border: 1.5px dashed var(--garis); border-radius: 14px; }

/* ------------------------------ Tombol ------------------------------ */
.p, .g, .gh { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; transition: transform .18s cubic-bezier(.2, .8, .2, 1), background .2s, filter .2s; }
.p { background: var(--h4); color: #fff; box-shadow: 0 6px 16px -8px rgba(27, 138, 148, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.g { background: var(--tint); color: var(--h2); }
.gh { background: transparent; color: var(--h3); border: 1.5px solid var(--garis); }
.p:hover { filter: brightness(1.08); }
.g:hover { background: var(--tint-kuat); }
.p:active, .g:active, .gh:active, .chip:active { transform: scale(.96); }
.kecil-btn { min-height: 34px; padding: 0 14px; font-size: 13px; }
.bahaya { background: var(--merah-t); color: var(--merah); }
.bahaya:hover { background: #fbd9d9; }
.kuning-btn { background: var(--kuning); color: #fff; box-shadow: 0 8px 18px -10px rgba(242, 100, 63, .9); }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; color: var(--h4); flex: none; }
.ib:hover { background: var(--tint); }
.ib.merah { color: var(--merah); }

/* ------------------------------ Formulir ------------------------------ */
.fl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fl > span { font-size: 12.5px; font-weight: 700; color: var(--h3); }
.fl .in { position: relative; display: flex; align-items: center; }
.fl input, .fl select, .fl textarea, .inp { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--garis); border-radius: 12px; background: #fff; color: var(--teks); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.fl textarea, textarea.inp { min-height: 84px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.fl input:focus, .fl select:focus, .fl textarea:focus, .inp:focus { outline: none; border-color: var(--h4); box-shadow: 0 0 0 4px var(--tint); }
.fl .in em { position: absolute; right: 12px; font-style: normal; font-size: 12.5px; color: var(--abu); pointer-events: none; }
.fl .in input { padding-right: 58px; }
.cari { position: relative; }
.cari .ikon { position: absolute; left: 14px; top: 13px; color: var(--abu); }
.cari input { padding-left: 42px; }

/* Tombol pilihan (gaya pemfis) */
.grup { margin-top: 12px; }
.grup > .lb { display: block; font-size: 12.5px; font-weight: 700; color: var(--h3); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--garis); border-radius: 10px; background: #fff; color: var(--h2); font-size: 13.5px; font-weight: 600; text-align: left; line-height: 1.25; transition: background .15s, color .15s, transform .15s; }
.chip:hover { background: var(--tint); border-color: var(--h5); }
.chip.on { background: var(--h4); border-color: var(--h4); color: #fff; }
.chip.on::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.chips.lebar .chip { width: 100%; border-radius: 12px; padding: 9px 13px; }
.chips.angka .chip { min-width: 40px; justify-content: center; padding: 6px 10px; }
.chips.angka .chip.on::before { display: none; }
.chip.merah.on { background: var(--merah); }
.chip.oranye.on { background: var(--oranye); }
.chip.kuning.on { background: var(--kuning2); color: #3a2a00; }
.chip.hitam.on { background: #222; }
.chip.biru.on { background: var(--biru); }
.nyeri .chip.on { background: var(--h4); }
.nyeri .chip.on.n4 { background: var(--oranye); }
.nyeri .chip.on.n7 { background: var(--merah); }
.tabel-pilih { width: 100%; border-collapse: collapse; }
.tabel-pilih td, .tabel-pilih th { padding: 8px 6px; border-bottom: 1px solid var(--garis); vertical-align: middle; text-align: left; }
.tabel-pilih th { font-size: 12px; color: var(--abu); font-weight: 700; }

/* Lencana */
.lc { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--tint); color: var(--h3); white-space: nowrap; }
.lc.ranap { background: #E3F1FF; color: #1B5DA8; }
.lc.rajal { background: #E2F4F2; color: #0F6B72; }
.lc.igd { background: var(--merah-t); color: #B42525; }
.lc.risiko { background: var(--oranye-t); color: #9A5413; }
.lc.promosi { background: var(--biru-t); color: var(--biru); }
.lc.kode { background: var(--h2); color: #fff; font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .02em; white-space: nowrap; }
.lc.merah { background: var(--merah); color: #fff; }
.lc.oranye { background: var(--oranye); color: #fff; }
.lc.kuning { background: #F6C945; color: #3a2a00; }
.lc.hijau { background: var(--h4); color: #fff; }
.lc.abu { background: #EEF1EF; color: #4C5A52; }

/* ------------------------------ Beranda ------------------------------ */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff; background: linear-gradient(120deg, #1B8A94 0%, #13707A 45%, #0F4C5C 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.hero .ekg { position: absolute; right: 0; bottom: 6px; width: 60%; height: 70px; opacity: .5; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .label { display: inline-block; padding: 4px 11px; border-radius: 8px; background: var(--kuning); color: #fff; font-size: 12px; font-weight: 800; }
.hero h1 { margin-top: 10px; font-size: 26px; font-weight: 800; line-height: 1.15; }
.hero h1 em { font-style: normal; color: #FFD3C4; }
.hero p { margin: 6px 0 0; opacity: .9; font-size: 14px; max-width: 560px; }
.hero .baris { margin-top: 16px; position: relative; z-index: 1; }
@media (min-width: 900px) { .hero { padding: 30px; } .hero h1 { font-size: 34px; } }
.stat { display: flex; align-items: center; gap: 14px; }
.stat .ik { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: var(--h3); flex: none; }
.stat b { display: block; font-size: 24px; font-family: Sora, sans-serif; color: var(--h2); line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--abu); }
.kp { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.kp:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(10, 46, 54, .45); }
.kp .nm { font-size: 16.5px; font-weight: 800; color: var(--h2); }
.kp .meta { font-size: 12.5px; color: var(--abu); }
.progres { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.progres i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--h4), #47B5B0); }

/* ------------------------------ Halaman pasien ------------------------------ */
.pkepala { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pkepala .av { width: 52px; height: 52px; font-size: 19px; background: var(--h4); color: #fff; border-radius: 14px; }
.pkepala .nm { font-size: 20px; font-weight: 800; color: var(--h2); font-family: Sora, sans-serif; }
.pkepala .meta { font-size: 13px; color: var(--abu); }
.langkah { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 14px -2px 6px; scrollbar-width: thin; }
.langkah a { flex: none; display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 12px; background: #fff; border: 1.5px solid var(--garis); color: var(--h2); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.langkah a i { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--tint); color: var(--h3); font-style: normal; font-size: 12px; font-weight: 800; }
.langkah a.ok i { background: var(--h5); color: var(--h1); }
.langkah a.a { background: var(--h2); border-color: var(--h2); color: #fff; }
.langkah a.a i { background: var(--kuning); color: #fff; }
.simpan-ind { font-size: 12px; color: var(--abu); display: inline-flex; align-items: center; gap: 6px; }
.simpan-ind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--h5); }
.simpan-ind.proses::before { background: var(--kuning2); }

/* Diagnosa */
.dx-kepala { display: flex; align-items: flex-start; gap: 10px; }
.dx-kepala .nm { flex: 1; font-weight: 800; color: var(--h2); font-size: 16px; }
.nomor { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--kuning); color: #fff; font-weight: 800; font-size: 13px; flex: none; }
.rumusan { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #F2FAFA; border: 1.5px solid var(--h5); font-weight: 600; color: var(--h1); line-height: 1.55; }
.rumusan small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--h4); margin-bottom: 4px; }
.meter { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.meter .progres { flex: 1; max-width: 220px; }
.meter.lolos { color: var(--h3); }
.meter.belum { color: var(--oranye); }
.hasil-cari { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; margin-top: 10px; padding-right: 4px; }
.hc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--garis); border-radius: 12px; background: #fff; text-align: left; width: 100%; }
.hc:hover { border-color: var(--h5); background: #F5FAFB; }
.hc .t { flex: 1; min-width: 0; }
.hc .t b { display: block; font-size: 14px; color: var(--h2); }
.hc .t span { font-size: 12px; color: var(--abu); }
.saran { display: flex; flex-wrap: wrap; gap: 8px; }
.saran button { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1.5px dashed var(--h4); background: #fff; color: var(--h2); font-weight: 600; font-size: 13px; text-align: left; }
.saran button small { color: var(--abu); font-weight: 500; }
.saran button:hover { background: var(--tint); }

/* Skala SLKI */
.kh { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--garis); }
.kh:last-child { border-bottom: 0; }
.kh .judul { display: flex; align-items: center; gap: 10px; }
.kh .judul label { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.kh input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--h4); flex: none; }
.kh .skala-wrap { display: grid; gap: 8px; padding-left: 30px; }
@media (min-width: 760px) { .kh .skala-wrap { grid-template-columns: 1fr 1fr; } }
.skala { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.skala > span { font-size: 12px; font-weight: 700; color: var(--abu); width: 52px; }
.skala .chips .chip { min-width: 36px; justify-content: center; padding: 4px 8px; min-height: 32px; }
.skala .chips .chip.on::before { display: none; }
.skala em { font-style: normal; font-size: 12px; color: var(--h3); font-weight: 600; }
.kh.mati .skala-wrap { display: none; }
.arah { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.arah.naik { background: #E0F3F3; color: var(--h3); }
.arah.turun { background: var(--oranye-t); color: #9A5413; }
.arah.baik { background: var(--biru-t); color: var(--biru); }

/* Intervensi */
.siki { border: 1.5px solid var(--garis); border-radius: 14px; overflow: hidden; }
.siki + .siki { margin-top: 10px; }
.siki > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; background: #F5FAFB; }
.siki > summary::-webkit-details-marker { display: none; }
.siki > summary .nm { flex: 1; font-weight: 800; color: var(--h2); }
.siki .isi { padding: 6px 14px 14px; }
.siki .bag { margin-top: 10px; }
.siki .bag > b { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--h4); margin-bottom: 4px; }
.cek { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cek:hover { background: #F2F8F9; }
.cek input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--h4); flex: none; }
.rasional { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FFFBEA; border: 1px solid #F3E2A6; font-size: 13px; white-space: pre-wrap; max-height: 360px; overflow-y: auto; }

/* Monitoring TTV */
.tab-kecil { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--tint); }
.tab-kecil button { border: 0; background: none; min-height: 38px; padding: 0 16px; border-radius: 9px; font-weight: 700; color: var(--h3); font-size: 14px; }
.tab-kecil button.a { background: var(--h4); color: #fff; }
.vit { position: relative; padding: 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--garis); }
.vit .lb { font-size: 12px; font-weight: 700; color: var(--abu); display: flex; align-items: center; gap: 6px; }
.vit .ni { font-family: Sora, sans-serif; font-size: 26px; font-weight: 800; color: var(--h2); line-height: 1.1; margin-top: 4px; }
.vit .ni small { font-size: 12px; font-weight: 600; color: var(--abu); font-family: 'DM Sans', sans-serif; }
.vit .st { margin-top: 6px; }
.vit.warn { border-color: #F2C48F; background: #FFFAF2; }
.vit.bahaya { border-color: #F0A3A3; background: #FFF6F6; }
.vit.bahaya .ni { color: var(--merah); }
.vit.warn .ni { color: #A85D12; }
.news { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; color: #fff; }
.news b { font-family: Sora, sans-serif; font-size: 40px; line-height: 1; }
.news .tx strong { display: block; font-size: 16px; }
.news .tx span { font-size: 13px; opacity: .92; }
.news.rendah { background: linear-gradient(135deg, #1B8A94, #0F4C5C); }
.news.sedang { background: linear-gradient(135deg, #E59A3A, #C9701C); }
.news.tinggi { background: linear-gradient(135deg, #E05252, #B42525); }
.news.kosong { background: #8A9A90; }
.grafik { width: 100%; height: auto; display: block; }
.grafik text { font-size: 10px; fill: var(--abu); font-family: 'DM Sans', sans-serif; }
.tabel-wrap { overflow-x: auto; border: 1px solid var(--garis); border-radius: 14px; }
table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
table.tb th { background: #EEF6F7; color: var(--h3); font-size: 12px; text-align: left; padding: 10px; white-space: nowrap; }
table.tb td { padding: 9px 10px; border-top: 1px solid var(--garis); vertical-align: top; }
table.tb td.w { color: #A85D12; font-weight: 700; }
table.tb td.d { color: var(--merah); font-weight: 800; }
.ent { padding: 12px 0; border-bottom: 1px solid var(--garis); }
.ent:last-child { border-bottom: 0; }
.ent .wk { font-size: 12px; font-weight: 700; color: var(--h4); }
.soap { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; margin-top: 8px; font-size: 14px; }
.soap b { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--h4); color: #fff; font-size: 12px; }
.soap div { white-space: pre-wrap; padding-top: 2px; }
.hari { margin: 18px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--abu); }

/* Modal dan notifikasi */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 46, 54, .5); }
.modal .kotak { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); }
.modal h2 { font-size: 20px; color: var(--h2); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 80; padding: 11px 18px; border-radius: 12px; background: var(--h1); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); animation: muncul .25s ease; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
@keyframes muncul { from { opacity: 0; transform: translate(-50%, 10px); } }
.halaman-masuk { animation: masuk .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes masuk { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------ Cetak ------------------------------ */
.dok { background: #fff; color: #111; max-width: 900px; margin: 0 auto; padding: 32px; border-radius: 12px; border: 1px solid var(--garis); font-size: 13px; line-height: 1.5; }
.dok h1 { font-size: 18px; text-align: center; color: #111; letter-spacing: 0; }
.dok h2 { font-size: 14px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--h4); color: var(--h2); letter-spacing: 0; }
.dok h3 { font-size: 13px; margin: 12px 0 4px; font-family: inherit; letter-spacing: 0; }
.dok .kop { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 3px double #111; margin-bottom: 14px; }
.dok .kop b { font-size: 16px; display: block; }
.dok table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.dok td, .dok th { border: 1px solid #999; padding: 5px 7px; vertical-align: top; text-align: left; }
.dok th { background: #EAF4F5; }
.dok table.id td { border: 0; padding: 2px 6px; }
.dok table.id td:first-child { width: 190px; color: #333; }
.dok ul, .dok ol { margin: 4px 0; padding-left: 20px; }
.dok .ttd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; text-align: center; }
.dok .ttd div { min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .side, .nav, .atas-hp, .no-print, .toast { display: none !important; }
  .main { padding: 0 !important; max-width: none; }
  .dok { border: 0; padding: 0; max-width: none; }
  .dok h2 { break-after: avoid; }
  .dok tr { break-inside: avoid; }
}

/* ------------------------------ Alur per segmen ------------------------------ */
.segmen { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.seg { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px; border-radius: 10px; color: var(--h2); text-decoration: none; font-size: 14px; font-weight: 500; border-left: 3px solid transparent; }
.seg i { display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #EEF4F5; color: var(--h3); font-style: normal; font-size: 12px; font-weight: 800; }
.seg.sub { padding-left: 26px; font-size: 13.5px; }
.seg.sub i { width: 24px; height: 24px; font-size: 11px; }
.seg.ok i { background: var(--h5); color: var(--h1); }
.seg.a { background: var(--tint); color: var(--h3); font-weight: 700; border-left-color: var(--kuning); }
.seg.a i { background: var(--kuning); color: #fff; }
a.seg:hover:not(.a) { background: #F1F7F8; }
.seg.mati { color: #9AA9AD; cursor: default; }
.seg.mati.ok { color: var(--h2); }
.pasien-aktif { display: flex; flex-direction: column; gap: 2px; margin: 0 4px 10px; padding: 10px 12px; border-radius: 12px; background: #F4FAFA; border: 1px solid var(--garis); }
.pasien-aktif b { color: var(--h1); font-size: 14.5px; }
.pasien-aktif a { font-size: 12.5px; font-weight: 700; }
.us a { color: var(--h3); font-size: 12.5px; font-weight: 600; }
.atas-hp strong small { display: block; font-size: 11px; font-weight: 700; color: var(--h4); letter-spacing: .08em; text-transform: uppercase; font-family: 'DM Sans', sans-serif; }
.seg-kepala { display: flex; align-items: flex-start; gap: 14px; margin: 6px 0 16px; }
.seg-no { display: flex; align-items: center; justify-content: center; flex: none; min-width: 52px; height: 52px; padding: 0 8px; border-radius: 14px; background: var(--h4); color: #fff; font-family: Sora, sans-serif; font-size: 20px; font-weight: 800; }
.seg-kepala h1 { font-size: 24px; font-weight: 800; color: var(--h1); line-height: 1.15; margin-top: 2px; }
.seg-kepala p { margin: 6px 0 0; color: var(--abu); font-size: 14px; max-width: 720px; }
@media (min-width: 900px) { .seg-kepala h1 { font-size: 28px; } }
.strip-pasien { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--garis); }
.strip-pasien .av { width: 38px; height: 38px; font-size: 14px; background: var(--h4); color: #fff; }
.strip-pasien b { display: block; color: var(--h1); font-size: 15px; }
.strip-pasien span:not(.av):not(.lc):not(.simpan-ind) { display: block; font-size: 12.5px; color: var(--abu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .strip-pasien .simpan-ind { display: none; } }
.aksi-bawah { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); border-top: 1px solid var(--garis); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.aksi-bawah .p { white-space: normal; text-align: center; }
@media (min-width: 900px) { .aksi-bawah { margin: 24px 0 0; padding: 14px 16px; border: 1px solid var(--garis); border-radius: 14px; } }
.main { padding-bottom: 0; }
h2.bagian { margin: 22px 0 10px; font-size: 17px; color: var(--h2); padding-left: 10px; border-left: 4px solid var(--kuning); }
.tautan, .tautan-merah { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; color: var(--h3); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.tautan-merah { color: var(--merah); }
.prioritas { display: flex; align-items: center; gap: 6px; }
.prioritas select { width: auto; min-height: 36px; padding: 0 8px; }
.daftar-pasien { display: grid; gap: 8px; }
.baris-pasien { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--garis); border-radius: 14px; text-decoration: none; color: inherit; background: #fff; }
.baris-pasien:hover { border-color: var(--h5); background: #F7FBFB; }
.baris-pasien .av { background: var(--tint); color: var(--h3); }
.baris-pasien .t { flex: 1; min-width: 0; }
.baris-pasien .t b { display: block; color: var(--h1); }
.baris-pasien .t span { display: block; font-size: 12.5px; color: var(--abu); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skala select { width: auto; min-width: 170px; min-height: 40px; }
/* Daftar centang (bukan tombol) untuk pilihan di luar pemeriksaan fisik */
.chips.daftar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2px 14px; }
.chips.daftar .chip { width: 100%; min-height: 34px; padding: 6px 4px; border: 0; border-radius: 8px; background: none; color: var(--teks); font-weight: 500; font-size: 14px; align-items: flex-start; }
.chips.daftar .chip::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border: 2px solid #A9C3C6; border-radius: 5px; background: #fff; -webkit-mask: none; mask: none; }
.chips.daftar .chip:hover { background: #F4FAFA; }
.chips.daftar .chip.on { background: none; color: var(--h1); font-weight: 600; }
.chips.daftar .chip.on::before { border-color: var(--h4); background: var(--h4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* =====================================================================
   TEMA SIMKEP: template admin biru (header pita, navbar dropdown, panel)
   Font Helvetica/Arial seperti template Bootstrap klasik
   ===================================================================== */
:root {
  --h1: #1b4d24; --h2: #1f5e27; --h3: #0b4f80; --h4: #0e6ba8; --h5: #9cc7e6; --h6: #f2f2f2;
  --kuning: #f0ad4e; --kuning2: #ec971f;
  --tint: rgba(56, 142, 60, .09); --tint-kuat: rgba(56, 142, 60, .16);
  --garis: #dddddd; --abu: #666666; --teks: #333333; --r: 4px;
  --bayang: 0 1px 1px rgba(0, 0, 0, .05);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body { font-family: var(--font); font-size: 13.5px; line-height: 1.45; background: #e9ecef; }
h1, h2, h3, .br b, .stat b, .vit .ni, .news b, .masuk .merek b { font-family: var(--font); letter-spacing: 0; }
.sk { display: flex; flex-direction: column; min-height: 100vh; background: #fff; width: 100%; }
.wadah { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
/* Kop atas */
.kop-atas { background: linear-gradient(180deg, #0e6ba8 0%, #0b4f80 100%); color: #fff; }
.kop-atas .wadah { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.kop-logo { display: flex; align-items: center; gap: 12px; }
.kop-logo h1 { font-size: 20px; font-weight: 700; color: #ffffff; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); line-height: 1.15; }
.kop-logo p { margin: 3px 0 0; font-size: 11.5px; color: #d6e8f6; }
.kop-kanan { font-size: 12.5px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.kop-kanan .ikon { width: 13px; height: 13px; }
.kop-kanan .lc { background: #f0ad4e; color: #fff; }
@media (min-width: 760px) { .kop-logo h1 { font-size: 26px; } }
/* Navbar */
.navbar { background: linear-gradient(180deg, #0e6ba8 0%, #0b5a8f 100%); border-top: 1px solid #4aa3df; border-bottom: 1px solid #0b4f80; }
.navbar .wadah { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; flex-wrap: wrap; }
.nav-info { color: #fff; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: none; width: 100%; flex-direction: column; order: 3; padding-bottom: 8px; }
.nav-menu.buka { display: flex; }
.nav-menu > li > a, .nav-menu > li > button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; border: 0; background: none; color: #fff; font-size: 13.5px; text-decoration: none; text-align: left; }
.nav-menu > li > a:hover, .nav-menu > li > button:hover, .dd.buka > button { background: rgba(0, 0, 0, .12); }
.nav-menu .ikon { width: 15px; height: 15px; }
.dd { position: relative; }
.dd > ul { display: none; list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; box-shadow: 0 6px 12px rgba(0, 0, 0, .18); min-width: 250px; z-index: 50; }
.dd.buka > ul { display: block; }
.dd > ul a, .dd > ul span.seg { display: flex; align-items: center; gap: 8px; padding: 6px 16px; color: #333; text-decoration: none; font-size: 13px; white-space: nowrap; border: 0; border-radius: 0; min-height: 0; }
.dd > ul a:hover, .dd > ul a.a { background: #0e6ba8; color: #fff; }
.dd > ul .seg i { width: 22px; height: 22px; font-size: 11px; border-radius: 3px; }
.dd > ul .seg.sub { padding-left: 28px; }
.nav-toggle, .nav-keluar { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: none; color: #fff; font-size: 13.5px; }
.nav-toggle:hover, .nav-keluar:hover { background: rgba(0, 0, 0, .12); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; flex-direction: row; width: auto; order: 0; padding: 0; flex: 1; }
  .nav-menu > li > a, .nav-menu > li > button { padding: 11px 14px; width: auto; }
  .dd > ul { position: absolute; left: 0; top: 100%; }
}
@media (max-width: 899px) { .dd > ul { margin: 0 8px 6px; } }
/* Jejak (breadcrumb) */
.jejak { background: #f5f5f5; border-bottom: 1px solid #ddd; font-size: 12.5px; color: #555; }
.jejak .wadah { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.jejak b { color: #333; }
/* Badan dan panel */
.badan { display: flex; flex-direction: column; gap: 16px; flex: 1; padding-top: 16px; padding-bottom: 20px; }
.sk .side { display: none; }
.sk .main { max-width: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
@media (min-width: 900px) {
  .badan { flex-direction: row; align-items: flex-start; }
  .sk .side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 10px; width: 250px; height: auto; padding: 0; background: none; border: 0; overflow: visible; }
  .sk .main { padding: 0; }
}
.panel { background: #fff; border: 1px solid #ddd; border-radius: 4px; box-shadow: var(--bayang); }
.panel + .panel { margin-top: 14px; }
.sk .side .panel + .panel { margin-top: 0; }
.panel-kepala { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: linear-gradient(180deg, #f8f8f8, #ececec); border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; font-weight: 700; color: #333; font-size: 13px; }
.panel-isi { padding: 14px; }
.sk .segmen { padding: 6px; gap: 0; margin: 0; }
.sk .seg { min-height: 32px; padding: 4px 8px; border-radius: 3px; border-left: 0; font-size: 13px; color: #0b4f80; }
.sk .seg i { width: 22px; height: 22px; border-radius: 3px; font-size: 11px; background: #e8f2fa; color: #0b4f80; }
.sk .seg.sub { padding-left: 22px; }
.sk .seg.ok i { background: #e3f0fa; color: #0b4f80; }
.sk .seg.a { background: #0e6ba8; color: #fff; font-weight: 700; }
.sk .seg.a i { background: #fff; color: #0e6ba8; }
.sk .seg.mati { color: #999; }
.sk a.seg:hover:not(.a) { background: #eef5fb; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 1px solid transparent; border-radius: 4px; font-size: 13.5px; text-decoration: none; cursor: pointer; }
.btn-info { background: #12a07a; border-color: #0f8c6a; color: #fff; }
.btn-info:hover { background: #0d7d5f; }
.btn-biru { background: #0e6ba8; border-color: #0b4f80; color: #fff; }
.btn-biru:hover { background: #0a4670; }
.btn.blok { width: 100%; margin-top: 14px; padding: 9px; }
/* Judul halaman */
.judul-hal { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #eee; color: #0b4f80; font-size: 20px; }
.judul-hal .ikon { color: #0b4f80; }
.judul-hal h1 { font-size: 20px; font-weight: 400; color: #0b4f80; margin: 0; }
.judul-hal p { margin: 4px 0 0; font-size: 12.5px; color: #777; }
.judul-hal .seg-no, .seg-kepala .seg-no { min-width: 38px; height: 38px; border-radius: 4px; font-size: 15px; background: #0e6ba8; font-family: var(--font); }
.seg-kepala h1 { font-size: 20px; font-weight: 400; color: #0b4f80; }
/* Ubin menu */
.ubin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ubin a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid transparent; border-radius: 4px; text-align: center; color: #0e6ba8; text-decoration: none; font-size: 13px; }
.ubin a:hover { border-color: #ddd; background: #f2f7fc; text-decoration: underline; }
/* Komponen umum dibuat gaya Bootstrap */
.kartu { border-radius: 4px; border-color: #ddd; box-shadow: var(--bayang); padding: 14px; }
.kartu h2, details > summary h2 { font-size: 15px; font-weight: 700; color: #333; }
.kartu h3 { color: #0b4f80; }
details.kartu > summary { margin: -14px -14px 0; padding: 9px 14px; background: linear-gradient(180deg, #f8f8f8, #ececec); border-radius: 4px; }
details.kartu[open] > summary { border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; margin-bottom: 12px; }
.kartu.mint { background: #fafafa; }
details.kartu.mint > summary { background: #f5f5f5; }
.p, .g, .gh { border-radius: 4px; min-height: 36px; padding: 0 14px; font-weight: 400; font-size: 13.5px; box-shadow: none; }
.p { background: #0e6ba8; border: 1px solid #0b4f80; }
.p:hover { background: #0a4670; filter: none; }
.g { background: #fff; border: 1px solid #ccc; color: #333; }
.g:hover { background: #e6e6e6; }
.gh { border: 1px solid #ccc; color: #333; background: #fff; }
.fl > span, .grup > .lb { color: #333; font-weight: 700; font-size: 12.5px; }
.fl input, .fl select, .fl textarea, .inp { min-height: 34px; border: 1px solid #ccc; border-radius: 4px; font-size: 13.5px; padding: 0 10px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); background: #fff; }
.fl textarea, textarea.inp { padding: 7px 10px; }
.fl input:focus, .fl select:focus, .fl textarea:focus, .inp:focus { border-color: #4aa3df; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(74, 163, 223, .6); }
.cari .ikon { top: 8px; left: 10px; width: 17px; height: 17px; }
.cari input { padding-left: 34px; }
/* Tombol pemfis gaya btn-default */
.chip { border-radius: 3px; border: 1px solid #ccc; background: #fff; color: #333; font-weight: 400; min-height: 30px; padding: 4px 10px; font-size: 13px; }
.chip:hover { background: #e6e6e6; border-color: #adadad; }
.chip.on { background: #0e6ba8; border-color: #0b4f80; color: #fff; }
.chips.daftar .chip.on::before { border-color: #0e6ba8; background-color: #0e6ba8; }
.chips.daftar .chip::before { border-radius: 3px; border-color: #aaa; }
.lc { border-radius: 3px; }
.lc.kode { background: #0e6ba8; }
.strip-pasien { border-radius: 4px; background: #e3f0fa; border-color: #c3dcef; }
.strip-pasien .av, .baris-pasien .av, .av { border-radius: 4px; }
.strip-pasien .av { background: #0e6ba8; }
.baris-pasien { border-radius: 4px; border-width: 1px; padding: 9px 12px; }
.baris-pasien:hover { background: #f2f7fc; border-color: #9cc7e6; }
.aksi-bawah { border-radius: 4px; background: #f5f5f5; }
.rumusan { border-radius: 4px; background: #e3f0fa; border-color: #c3dcef; color: #0b4f80; }
.rumusan small { color: #0b4f80; }
.nomor { border-radius: 3px; background: #f0ad4e; }
.hasil-cari .hc, .hc { border-radius: 4px; border-width: 1px; }
.saran button { border-radius: 4px; border-style: solid; border-color: #c3dcef; background: #f2f7fc; }
.siki { border-radius: 4px; border-width: 1px; }
.siki > summary { background: #f5f5f5; }
.siki .bag > b { color: #0b4f80; }
table.tb th { background: #f5f5f5; color: #333; }
.tabel-wrap { border-radius: 4px; }
.vit { border-radius: 4px; border-width: 1px; }
.news { border-radius: 4px; }
.news.rendah { background: linear-gradient(180deg, #12a07a, #0d7d5f); }
.news.sedang { background: linear-gradient(180deg, #f0ad4e, #ec971f); }
.news.tinggi { background: linear-gradient(180deg, #d9534f, #c9302c); }
.modal .kotak { border-radius: 6px; }
.toast { border-radius: 4px; background: #333; }
h2.bagian { border-left-color: #0e6ba8; color: #0b4f80; font-weight: 400; font-size: 18px; }
.eyebrow { color: #0b4f80; letter-spacing: .12em; }
/* Kaki situs */
.kaki-situs { background: #f5f5f5; border-top: 1px solid #ddd; font-size: 11.5px; color: #666; }
.kaki-situs .wadah { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px; }
/* Login */
.badan-masuk { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 30px; flex: 1; align-content: start; }
@media (min-width: 760px) { .badan-masuk { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }
.panel-masuk .fi { position: relative; margin-top: 10px; }
.panel-masuk label { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 4px; color: #333; }
.panel-masuk input { width: 100%; height: 36px; padding: 0 38px 0 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); }
.panel-masuk input:focus { outline: none; border-color: #4aa3df; box-shadow: 0 0 8px rgba(74, 163, 223, .6); }
.panel-masuk .ey { position: absolute; right: 2px; bottom: 1px; width: 34px; height: 34px; border: 0; background: none; color: #777; display: flex; align-items: center; justify-content: center; }
.panel-masuk .pesan { margin-top: 10px; padding: 8px 10px; border-radius: 4px; background: #f2dede; border: 1px solid #ebccd1; color: #a94442; font-size: 13px; }
.masuk-bawah { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tautan { color: #0e6ba8; font-weight: 400; }
.tb-info { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb-info td { padding: 7px 8px; border-top: 1px solid #eee; }
.tb-info td:first-child { width: 120px; font-weight: 700; }

.logo-uim { display: block; flex: none; border-radius: 50%; background: #fff; object-fit: contain; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

/* =====================================================================
   TEMA PORTAL RUMAH SAKIT (khusus perawat): bilah info, kop putih, navbar biru tua,
   banner login, layanan, kaki situs gelap. Palet sendiri: biru medis + aksen hijau toska.
   ===================================================================== */
:root { --rs1: #0a2f4f; --rs2: #0e6ba8; --rs3: #12a07a; --rs-merah: #d7263d; --rs-latar: #f3f7fb; }
body { background: var(--rs-latar); font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; }
.info-atas { background: var(--rs1); color: #cfe0ee; font-size: 12px; }
.info-atas .wadah { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.info-atas span { display: inline-flex; align-items: center; gap: 5px; }
.info-atas .ikon { width: 13px; height: 13px; }
.info-atas .darurat { background: var(--rs-merah); color: #fff; padding: 2px 8px; border-radius: 3px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.kop-atas { background: #fff; color: var(--rs1); border-bottom: 1px solid #e3ebf2; }
.kop-logo h1 { color: var(--rs1); text-shadow: none; font-size: 17px; letter-spacing: .01em; }
.kop-logo p { color: #4f6b82; font-size: 12px; }
.kop-logo .tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #e3f6ef; color: #0b7a5c; font-size: 11px; font-weight: 700; }
.logo-uim { box-shadow: 0 0 0 3px #e3ebf2; }
.kop-kanan { color: #4f6b82; }
.kop-kanan b { color: var(--rs1); }
.kop-kanan .lc { background: var(--rs3); }
@media (min-width: 760px) { .kop-logo h1 { font-size: 22px; } }
.navbar { background: var(--rs2); border: 0; box-shadow: 0 2px 0 var(--rs3); position: sticky; top: 0; z-index: 40; }
.nav-menu > li > a, .nav-menu > li > button, .nav-toggle, .nav-keluar { font-weight: 600; }
.nav-menu > li > a:hover, .nav-menu > li > button:hover, .dd.buka > button, .nav-toggle:hover, .nav-keluar:hover { background: rgba(255, 255, 255, .14); }
.nav-keluar { background: rgba(0, 0, 0, .14); border-radius: 4px; }
.jejak { background: #fff; border-bottom: 1px solid #e3ebf2; color: #4f6b82; }
.jejak b { color: var(--rs1); }
.panel, .kartu { border-color: #e1e9f1; border-radius: 8px; box-shadow: 0 1px 2px rgba(10, 47, 79, .05), 0 8px 22px -16px rgba(10, 47, 79, .35); }
.panel-kepala { background: #fff; color: var(--rs1); border-bottom: 2px solid #e8f0f7; border-radius: 8px 8px 0 0; font-size: 13.5px; padding: 11px 14px; }
.panel-kepala .ikon { color: var(--rs2); }
details.kartu > summary { background: #f5f9fc; border-radius: 8px; }
details.kartu[open] > summary { border-radius: 8px 8px 0 0; }
.judul-hal { color: var(--rs1); border-bottom-color: #e1e9f1; }
.judul-hal h1, .seg-kepala h1 { color: var(--rs1); font-weight: 700; }
.judul-hal .ikon { color: var(--rs2); }
.kartu h3, .siki .bag > b, h2.bagian, .eyebrow { color: var(--rs2); }
.nomor { background: var(--rs3); }
.btn, .p, .g, .gh, .chip, .inp, .fl input, .fl select, .fl textarea { border-radius: 6px; }
.ubin a { border: 1px solid #e1e9f1; border-radius: 8px; background: #fff; color: var(--rs1); font-weight: 600; }
.ubin a:hover { border-color: var(--rs2); background: #f2f7fc; text-decoration: none; transform: translateY(-1px); }
/* Login: banner portal */
.banner-rs { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, rgba(10, 47, 79, .96) 0%, rgba(14, 107, 168, .92) 60%, rgba(18, 160, 122, .9) 100%); }
.banner-rs::after { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.banner-rs .wadah { position: relative; z-index: 1; padding-top: 30px; padding-bottom: 34px; }
.banner-rs .lencana { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; }
.banner-rs h2 { margin-top: 12px; font-size: 26px; line-height: 1.2; max-width: 620px; }
.banner-rs p { margin: 8px 0 0; max-width: 560px; color: #d9e9f5; font-size: 14px; }
.banner-rs .ekg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60px; opacity: .35; }
@media (min-width: 760px) { .banner-rs h2 { font-size: 34px; } .banner-rs .wadah { padding-top: 44px; padding-bottom: 52px; } }
.badan-masuk { padding-top: 0; margin-top: -22px; position: relative; z-index: 2; }
.panel-masuk { border-top: 4px solid var(--rs3); }
.panel-masuk input:focus { border-color: var(--rs2); box-shadow: 0 0 0 3px rgba(14, 107, 168, .18); }
.btn-demo { background: #fff; border: 1px solid #c9d8e6; color: var(--rs1); }
.btn-demo:hover { background: #f2f7fc; }
.layanan { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.layanan div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #e1e9f1; border-radius: 8px; background: #fbfdff; font-size: 12.5px; color: #4f6b82; }
.layanan b { display: block; color: var(--rs1); font-size: 13.5px; margin-bottom: 2px; }
.layanan .ikon { width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: #e3f0fa; color: var(--rs2); }
/* Kaki situs gelap */
.kaki-situs { background: var(--rs1); color: #b9cde0; border-top: 3px solid var(--rs3); font-size: 12.5px; }
.kaki-kolom { display: grid; gap: 18px; padding-top: 22px; padding-bottom: 16px; }
@media (min-width: 760px) { .kaki-kolom { grid-template-columns: 1.4fr 1fr 1fr; } }
.kaki-kolom b { display: block; color: #fff; font-size: 13.5px; margin-bottom: 6px; }
.kaki-kolom p { margin: 0; line-height: 1.6; }
.kaki-kolom a { color: #b9cde0; text-decoration: none; display: block; line-height: 1.8; }
.kaki-kolom a:hover { color: #fff; }
.kaki-situs .hak { border-top: 1px solid rgba(255, 255, 255, .1); }
.kaki-situs .hak .wadah { font-size: 11.5px; color: #8fa9c0; }
@media print { .info-atas, .banner-rs, .kaki-situs { display: none !important; } }
.badan-masuk { margin-top: 0; padding-top: 48px; grid-template-columns: minmax(0, 400px) !important; justify-content: center; }
.logo-uim { border-radius: 0 !important; box-shadow: none !important; background: none !important; object-fit: contain; }
/* Penyesuaian mobile */
@media (max-width: 599px) {
  .kop-atas .wadah { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
  .kop-logo { gap: 10px; }
  .kop-logo .logo-uim { width: 40px; height: 40px; }
  .kop-logo h1 { font-size: 14.5px; }
  .kop-logo p, .kop-kanan, .info-atas, .jejak .wadah > span:last-child, .lbl-pj { display: none; }
  .navbar .wadah { min-height: 46px; }
  .badan { padding-top: 12px; }
  .badan-masuk { padding-top: 24px; }
  .aksi-bawah { gap: 8px; }
}
/* Penyesuaian desktop lebar */
@media (min-width: 1280px) { .wadah { max-width: 1280px; } }
.info-atas { display: none !important; }
@media (min-width: 900px) { .wadah { max-width: none !important; padding-left: 24px; padding-right: 24px; } }
/* Menu segmen samping: satu baris, kontras jelas */
.sk .segmen { padding: 6px; }
.sk .seg { min-height: 36px; padding: 6px 10px; gap: 10px; font-size: 13.5px; color: var(--rs1); border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk .seg span { overflow: hidden; text-overflow: ellipsis; }
.sk .seg i { min-width: 26px; width: auto; height: 24px; padding: 0 4px; border-radius: 5px; font-style: normal; font-weight: 700; }
.sk .seg.sub { padding-left: 26px; font-size: 13px; }
.sk .seg.ok i { background: #e3f6ef; color: #0b7a5c; }
.sk .seg.mati { color: #9aa9b6; cursor: not-allowed; }
.sk .seg.mati i { background: #f1f4f7; color: #9aa9b6; }
/* UX: grup menu samping, ikon seragam */
.sk .seg-grup { margin: 10px 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a9bab; }
.sk .seg-grup:first-child { margin-top: 2px; }
.ubin-ik { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: #e8f2fa; color: var(--rs2); }
.ubin-ik .ikon { stroke-width: 1.8; }
.ubin a { padding: 18px 10px; gap: 10px; }
.modal .kotak button.p.bahaya, button.p.bahaya { background: #d7263d !important; border: 1px solid #d7263d !important; color: #fff !important; box-shadow: none; outline: none; } .modal .kotak button.p.bahaya:hover { background: #b51d31 !important; }
.modal .kotak h2 { color: var(--rs1); }
/* Cetak format formulir RS */
.dok .kotak-id { float: right; margin: -4px 0 10px 12px; border: 1.5px solid #111; padding: 4px 8px; font-size: 11.5px; }
.dok .kotak-id table { border: 0; margin: 0; width: auto; }
.dok .kotak-id td { border: 0 !important; padding: 1px 4px !important; white-space: nowrap; }
.dok h1 { clear: both; }
.dok .kaki-cetak { display: none; }
@media print {
  .dok .kaki-cetak { display: block; position: fixed; bottom: 0; left: 0; right: 0; font-size: 9.5px; color: #444; border-top: 1px solid #999; padding-top: 2px; text-align: right; }
  @page { margin: 14mm 12mm 16mm; }
  .dok table { page-break-inside: auto; } .dok tr { page-break-inside: avoid; }
}
/* Dropdown saran kustom */
input::-webkit-calendar-picker-indicator { display: none !important; }
.saran-ac { position: absolute; z-index: 300; margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid #d5e1ec; border-radius: 8px; box-shadow: 0 10px 28px -8px rgba(10, 47, 79, .35); font-size: 13.5px; }
.saran-ac li { padding: 8px 10px; border-radius: 6px; cursor: pointer; color: #1d3446; }
.saran-ac li b { color: var(--rs2); }
.saran-ac li:hover, .saran-ac li.a { background: #e8f2fa; }
/* Bar pasien aktif (lebar penuh di atas) */
.bar-pasien { background: #f2f7fc; border-bottom: 1px solid #e1e9f1; }
.bar-pasien .wadah { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; color: var(--rs1); font-size: 14px; }
.bar-pasien .ikon { color: var(--rs2); }
.bar-pasien .bp-lb { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b8296; }
.bar-pasien .bp-btn { margin-left: auto; padding: 5px 12px; }
.bar-pasien .bp-btn2 { padding: 5px 12px; }
@media (min-width: 900px) { .nav-menu .hp-saja { display: none; } }
.bar-pasien .simpan-ind { font-size: 11.5px; color: #6b8296; }
.bar-pasien [data-news]:empty { display: none; }
/* Mobile: daftar pasien tidak melebar, bar pasien ringkas */
.baris-pasien { min-width: 0; max-width: 100%; }
.baris-pasien .t { min-width: 0; flex: 1; overflow: hidden; }
.baris-pasien .t > span, .baris-pasien .t > b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; }
@media (max-width: 599px) {
  .bar-pasien .wadah > .kecil, .bar-pasien .simpan-ind, .bar-pasien .bp-lb, .bar-pasien .wadah > .ikon { display: none; }
  .bar-pasien .wadah { flex-wrap: nowrap; gap: 6px; }
  .bar-pasien .wadah > b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bar-pasien .bp-btn { margin-left: 0; }
  .bar-pasien .bp-btn, .bar-pasien .bp-btn2 { padding: 5px 8px; font-size: 12px; white-space: nowrap; }
  .baris-pasien .kecil { display: none; }
}
/* ===== Pola SIMRS: grid pasien, panel data kiri, tab segmen ===== */
.badan-penuh { display: block; }
.badan-penuh .main { width: 100%; }
.filter-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .filter-grid { grid-template-columns: 220px 1fr; } }
.grid-pasien th { white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.grid-pasien td { font-size: 13px; vertical-align: middle; }
.grid-pasien tbody tr:nth-child(even) { background: #f7fafd; }
.grid-pasien tbody tr:hover { background: #eaf3fb; }
.grid-pasien .progres { width: 70px; height: 6px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.btn-kecil { padding: 4px 10px !important; font-size: 12.5px !important; min-height: 0 !important; }
.grid-kaki { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.grid-kaki .baris { gap: 6px; align-items: center; }
.badan-p { display: flex; flex-direction: column; gap: 14px; }
.data-p { display: flex; flex-direction: column; gap: 12px; }
.data-p .panel + .panel { margin-top: 0; }
.data-p .tb-info td { padding: 5px 6px; font-size: 12.5px; }
.data-p .tb-info td:first-child { width: 90px; color: #4f6b82; font-weight: 600; }
.aksi-p { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.aksi-p .btn { flex: 1; }
.kolom-p { flex: 1; min-width: 0; }
.tab-seg { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--rs2); margin-bottom: 14px; scrollbar-width: thin; }
.sk .tab-seg .seg { flex: none; border-radius: 6px 6px 0 0; background: #eef3f8; border: 1px solid #d5e1ec; border-bottom: 0; padding: 7px 12px; min-height: 0; font-size: 13px; gap: 6px; }
.sk .tab-seg .seg i { min-width: 20px; height: 20px; font-size: 10.5px; }
.sk .tab-seg .seg.a { background: var(--rs2); color: #fff; border-color: var(--rs2); }
.sk .tab-seg .seg.a i { background: #fff; color: var(--rs2); }
.sk .tab-seg .seg.mati { display: none; }
@media (min-width: 1000px) {
  .badan-p { flex-direction: row; align-items: flex-start; }
  .data-p { width: 270px; flex: none; position: sticky; top: 56px; }
}
@media (max-width: 999px) {
  .data-p .panel:first-child .tb-info tr:nth-child(n+4) { display: none; }
  .data-p { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 999px) {
  .data-p { gap: 0; }
  .data-p .panel { border-radius: 0; box-shadow: none; }
  .data-p .panel:first-child { border-bottom: 0; border-radius: 8px 8px 0 0; }
  .data-p .panel:last-child { border-radius: 0 0 8px 8px; }
  .data-p .panel-kepala { display: none; }
  .data-p .panel-isi { padding: 8px 12px; }
  .data-p .panel:first-child .tb-info tr:nth-child(n+3) { display: none; }
  .data-p .panel:last-child .tb-info tr:not(:nth-child(1)):not(:nth-child(6)):not(:last-child) { display: none; }
  .data-p .aksi-p .btn { padding: 6px 10px; font-size: 13px; }
  .data-p .simpan-ind { display: none; }
}
/* Jam aktif realtime */
.kop-kanan { flex-direction: column; align-items: flex-end; gap: 4px; }
.jam-aktif { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #eef5fb; color: var(--rs1); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; border: 1px solid #d5e5f2; }
.jam-aktif .ikon { color: var(--rs2); }
.kop-kanan .sambut { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 599px) { .kop-kanan { display: flex !important; width: 100%; align-items: flex-start; } .kop-kanan .sambut { display: none; } .jam-aktif { font-size: 12px; padding: 4px 10px; } .kop-atas .wadah { flex-wrap: wrap !important; } }

/* =====================================================================
   GAYA SIMRS (panel berkepala gradasi, tab abu, grid bergaris) + KONTRAS WCAG AA
   ===================================================================== */
:root { --merah: #c0392b; --oranye: #b45309; --simrs-garis: #a9c3de; --simrs-kepala1: #f5f9fd; --simrs-kepala2: #dce8f4; --simrs-latar: #e9eff5; }
body { background: var(--simrs-latar); color: #1b2b38; font-size: 14px; }
.sk { background: var(--simrs-latar); }
/* Navbar gaya SIMRS */
.navbar { background: linear-gradient(180deg, #1f6fb2 0%, #15558c 100%); box-shadow: 0 2px 0 #0f3e66; }
/* Panel dan kartu: kepala bergradasi, garis biru muda */
.panel, .kartu { background: #fff; border: 1px solid var(--simrs-garis); border-radius: 4px; box-shadow: 0 1px 3px rgba(15, 62, 102, .12); }
.panel-kepala { background: linear-gradient(180deg, var(--simrs-kepala1), var(--simrs-kepala2)); border-bottom: 1px solid var(--simrs-garis); border-radius: 4px 4px 0 0; color: #0f3e66; font-size: 13px; font-weight: 700; padding: 8px 12px; }
details.kartu > summary { background: linear-gradient(180deg, var(--simrs-kepala1), var(--simrs-kepala2)); border-radius: 4px; }
details.kartu[open] > summary { border-bottom: 1px solid var(--simrs-garis); border-radius: 4px 4px 0 0; }
.kartu h2, details > summary h2 { color: #0f3e66; }
/* Tab segmen gaya tab SIMRS */
.tab-seg { border-bottom: 2px solid #15558c; gap: 3px; }
.sk .tab-seg .seg { background: linear-gradient(180deg, #ffffff, #dfe7ef); border: 1px solid #9fb4c8; border-bottom: 0; color: #1b2b38; border-radius: 4px 4px 0 0; font-weight: 600; }
.sk .tab-seg .seg:hover:not(.a) { background: linear-gradient(180deg, #ffffff, #cfe0f0); }
.sk .tab-seg .seg.a { background: linear-gradient(180deg, #2a7cc0, #15558c); border-color: #15558c; color: #fff; }
.sk .tab-seg .seg.ok:not(.a) i { background: #d7f0e6; color: #075e46; }
/* Grid tabel gaya SIMRS */
table.tb { border-collapse: collapse; }
table.tb th { background: linear-gradient(180deg, #f8fbfe, #dde7f1); color: #0f3e66; border: 1px solid #c3d4e5; font-weight: 700; }
table.tb td { border: 1px solid #dbe5ee; }
.grid-pasien tbody tr:nth-child(even) { background: #f3f7fb; }
.grid-pasien tbody tr:hover { background: #ddeefc; }
/* Tombol: warna dengan kontras >= 4.5:1 */
.btn-info { background: #0b7a5c !important; border-color: #086149 !important; color: #fff !important; }
.btn-info:hover { background: #086149 !important; }
.btn-biru, .p { background: #15558c; border-color: #0f3e66; color: #fff; }
.btn-biru:hover, .p:hover { background: #0f3e66; }
.g, .gh { color: #0f3e66; border-color: #8aa6c1; }
/* Lencana dan teks status */
.nomor, .lc.kode { background: #0b7a5c; color: #fff; }
.lc.merah { background: #c0392b; color: #fff; }
.lc.oranye { background: #b45309; color: #fff; }
.lc.hijau { background: #0b7a5c; color: #fff; }
.tautan-merah, table.tb td.d, .vit.bahaya .ni { color: #b0281b; }
table.tb td.w { color: #8a4b00; }
.news.kosong { background: #4f6475; color: #fff; }
.news.rendah { background: #0b7a5c; } .news.sedang { background: #b45309; } .news.tinggi { background: #c0392b; }
/* Teks kecil abu tetap terbaca */
.kecil, .sub, .judul-hal p, .data-p .tb-info td:first-child, .bar-pasien .bp-lb, .sk .seg-grup, .simpan-ind { color: #4a5f72 !important; }
.sk .seg.mati, .sk .seg.mati i { color: #6b7d8c; }
.fl > span, .grup > .lb { color: #1b2b38; }
input::placeholder, textarea::placeholder { color: #6b7d8c; }
.chip { color: #1b2b38; border-color: #9fb4c8; }
.chip.on { background: #15558c; border-color: #0f3e66; color: #fff; }
.kaki-situs { color: #d2e0ec; }
.dibatalkan td { color: #6b7d8c; text-decoration: line-through; }

/* ===== Font klasik mengikuti panduan SIMRS (Calibri / Arial), tanpa gradasi ===== */
body, button, input, select, textarea, h1, h2, h3, .kop-logo h1, .judul-hal h1 { font-family: Calibri, Arial, Helvetica, sans-serif !important; letter-spacing: 0 !important; }
body { font-size: 14.5px; }
h1, h2, h3, .panel-kepala, table.tb th, .nav-menu, .tab-seg { font-family: Arial, Helvetica, sans-serif !important; }
/* Semua warna solid */
.navbar { background: #15558c !important; }
.panel-kepala, details.kartu > summary { background: #dce8f4 !important; }
.sk .tab-seg .seg { background: #e6edf4 !important; }
.sk .tab-seg .seg:hover:not(.a) { background: #d3e2f0 !important; }
.sk .tab-seg .seg.a { background: #15558c !important; }
table.tb th { background: #dce8f4 !important; }
.news.rendah, .news.sedang, .news.tinggi, .news.kosong { background-image: none !important; }
.banner-rs { background: #15558c !important; }
/* Progres per tingkat, solid */
.progres { background: #dde5ec; border-radius: 3px; }
.progres i { background: #15558c !important; border-radius: 3px; }
.progres.lv-ok i { background: #0b7a5c !important; }
.progres.lv-mid i { background: #b45309 !important; }
.progres.lv-low i { background: #c0392b !important; }
.lap-filter { display: grid; gap: 10px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .lap-filter { grid-template-columns: 180px 1fr 1fr 180px auto; } }
.lap-filter .btn { min-height: 38px; }
.jam-aktif { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; font-size: 13.5px; font-weight: 700; color: #0f3e66; }

/* =====================================================================
   ACUAN PDF SIMRS (ExtJS): Arial 13px, bilah judul abu, label seksi magenta,
   No. RM biru tebal, tab abu (aktif putih), kepala grid biru muda, tombol biru muda/abu.
   Navbar tetap biru (dominan). Semua solid, sudut hampir siku.
   ===================================================================== */
:root { --x-garis: #b6b6b6; --x-abu: #d9d9d9; --x-abu2: #e4e4e4; --x-teks: #333333; --x-biru: #1f74b5; --x-biru-muda: #b4dcf1; --x-tombol: #b1d9ef; --x-tombol-garis: #7fb4d4; --x-magenta: #c2185b; --x-rm: #0d7fb8; }
body, button, input, select, textarea, h1, h2, h3, .kop-logo h1, .judul-hal h1, .panel-kepala, table.tb th, .nav-menu, .tab-seg { font-family: Arial, Helvetica, sans-serif !important; }
body { font-size: 13px; color: var(--x-teks); background: #ececec; }
.sk { background: #ececec; }
/* Kop dan navbar */
.kop-atas { background: #fff; border-bottom: 1px solid var(--x-garis); }
.kop-logo h1 { color: var(--x-biru); font-size: 20px !important; font-weight: 700; }
.kop-logo p, .kop-kanan, .kop-kanan .sambut { color: #555; font-size: 12px; }
.jam-aktif { color: var(--x-teks) !important; font-size: 12.5px !important; }
.navbar { background: var(--x-biru) !important; box-shadow: none; border-bottom: 1px solid #165a8d; }
.nav-menu > li > a, .nav-menu > li > button, .nav-toggle, .nav-keluar { font-size: 13px; font-weight: 700; }
.nav-keluar { background: rgba(0,0,0,.18) !important; border-radius: 2px; }
/* Panel = jendela ExtJS */
.panel, .kartu { border: 1px solid var(--x-garis) !important; border-radius: 0 !important; box-shadow: none !important; background: #fff; }
.panel-kepala, details.kartu > summary { background: var(--x-abu) !important; color: var(--x-teks) !important; font-size: 13.5px !important; font-weight: 700; border-bottom: 1px solid var(--x-garis) !important; border-radius: 0 !important; padding: 7px 10px !important; }
.panel-kepala .ikon { color: #555; }
.kartu h2, details > summary h2 { color: var(--x-teks) !important; font-size: 13.5px !important; }
.kartu h3, h2.bagian, .siki .bag > b { color: var(--x-magenta) !important; text-transform: uppercase; font-size: 12.5px; letter-spacing: .02em; }
.judul-hal { border-bottom: 1px solid var(--x-garis); }
.judul-hal h1, .judul-hal { color: var(--x-teks) !important; font-size: 16px !important; font-weight: 700 !important; }
.judul-hal .seg-no, .nomor { background: var(--x-biru) !important; border-radius: 2px !important; }
/* Panel data pasien kiri persis acuan */
.data-p .panel { border: 0 !important; background: transparent; }
.data-p .panel-kepala { background: transparent !important; border: 0 !important; color: var(--x-magenta) !important; text-transform: uppercase; padding: 4px 0 2px !important; font-size: 13px !important; }
.data-p .panel-kepala .ikon { display: none; }
.data-p .panel-isi { padding: 0 0 8px; }
.data-p .tb-info td { border: 0 !important; padding: 2px 4px 2px 0 !important; font-size: 13px; color: var(--x-teks); vertical-align: top; }
.data-p .tb-info td:first-child { color: var(--x-teks) !important; font-weight: 400; width: 95px; }
.data-p .panel:first-child .tb-info tr:first-child td:last-child { color: var(--x-rm); font-weight: 700; font-size: 17px; }
.badan-p { background: #fff; border: 1px solid var(--x-garis); padding: 12px; }
.data-p { border-right: 0; }
/* Tab persis acuan */
.tab-seg { border-bottom: 1px solid #aaa !important; gap: 2px; margin-bottom: 12px; }
.sk .tab-seg .seg { background: var(--x-abu) !important; border: 1px solid #aaa !important; border-bottom: 0 !important; border-radius: 3px 3px 0 0 !important; color: var(--x-teks) !important; font-weight: 700; font-size: 12.5px; padding: 6px 12px; }
.sk .tab-seg .seg:hover:not(.a) { background: #e8e8e8 !important; }
.sk .tab-seg .seg.a { background: #fff !important; color: var(--x-teks) !important; position: relative; top: 1px; }
.sk .tab-seg .seg i { background: transparent !important; color: inherit !important; min-width: 0; padding: 0; font-size: 12px; }
.sk .tab-seg .seg.ok:not(.a) i { color: #0b7a5c !important; }
/* Grid persis acuan */
table.tb { border: 1px solid #c5c5c5; }
table.tb th { background: var(--x-biru-muda) !important; color: var(--x-teks) !important; text-align: center; font-weight: 700; font-size: 12.5px; text-transform: none !important; letter-spacing: 0 !important; border: 1px solid #9fcbe5 !important; padding: 8px 6px; }
table.tb td { border: 0; border-bottom: 1px solid #ededed !important; border-right: 1px solid #f2f2f2 !important; font-size: 12.5px; padding: 5px 6px; }
.grid-pasien tbody tr:nth-child(even) { background: #fafafa !important; }
.grid-pasien tbody tr:hover { background: #dfe8f6 !important; }
.grid-pasien td:nth-child(2) { font-weight: 700; }
.grid-kaki, .filter-grid, .lap-filter { background: var(--x-abu); padding: 6px; border: 1px solid var(--x-garis); }
.grid-kaki { margin-top: 0; border-top: 0; }
/* Tombol persis acuan */
.btn, .p, .g, .gh, .btn-biru, .btn-info { border-radius: 2px !important; font-weight: 700 !important; font-size: 13px !important; min-height: 30px !important; box-shadow: none !important; }
.p, .btn-biru, .btn-info { background: var(--x-tombol) !important; border: 1px solid var(--x-tombol-garis) !important; color: #1b2b38 !important; }
.p:hover, .btn-biru:hover, .btn-info:hover { background: #9ccbe6 !important; }
.btn-info, .g, .gh { background: var(--x-abu2) !important; border: 1px solid #aaa !important; color: #222 !important; }
.btn-info:hover, .g:hover, .gh:hover { background: #d6d6d6 !important; }
.p.bahaya, button.p.bahaya, .modal .kotak button.p.bahaya { background: #c0392b !important; border-color: #a93226 !important; color: #fff !important; }
.aksi-bawah { background: #f5f5f5 !important; border: 1px solid var(--x-garis); border-radius: 0 !important; }
/* Isian */
.fl input, .fl select, .fl textarea, .inp, .panel-masuk input { border: 1px solid #b5b8c8 !important; border-radius: 0 !important; box-shadow: none !important; font-size: 13px !important; min-height: 28px; }
.fl input:focus, .fl select:focus, .fl textarea:focus, .inp:focus { border-color: #7eadd9 !important; }
.fl > span, .grup > .lb, .panel-masuk label { color: var(--x-teks) !important; font-size: 12.5px !important; font-weight: 700; }
.chip { border-radius: 2px !important; border: 1px solid #aaa !important; background: var(--x-abu2) !important; color: #222 !important; font-size: 12.5px; }
.chip:hover { background: #d6d6d6 !important; }
.chip.on { background: var(--x-tombol) !important; border-color: var(--x-tombol-garis) !important; color: #1b2b38 !important; font-weight: 700; }
/* Lain-lain */
.ubin a { border: 1px solid var(--x-garis) !important; border-radius: 0 !important; background: #fff !important; color: var(--x-teks) !important; }
.ubin a:hover { background: #dfe8f6 !important; border-color: #99bbe8 !important; transform: none; }
.ubin-ik { background: var(--x-biru-muda) !important; color: var(--x-biru) !important; border-radius: 2px !important; }
.lc { border-radius: 2px !important; }
.modal .kotak { border-radius: 0 !important; border: 1px solid #999; }
.modal .kotak > .baris:first-child { background: var(--x-abu); margin: -18px -18px 0; padding: 8px 12px; border-bottom: 1px solid var(--x-garis); }
.modal .kotak h2 { color: var(--x-teks) !important; font-size: 14px; }
.kecil, .sub { color: #555 !important; }
.kaki-situs { background: var(--x-biru) !important; border-top: 0 !important; color: #e3eef8 !important; }
.saran-ac { border-radius: 0; border: 1px solid #99bbe8; }
.saran-ac li { border-radius: 0; }
.saran-ac li:hover, .saran-ac li.a { background: #dfe8f6; }
/* Formal: tanpa ikon dekoratif. Ikon hanya untuk tombol tutup dialog, lihat sandi, panah buka/tutup bagian, dan tombol menu HP. */
.ikon { display: none !important; }
[data-tutup] .ikon, .ey .ikon, .chev .ikon, .nav-toggle .ikon, .nav-menu .dd > button .ikon:last-child { display: inline-block !important; }
.ubin-ik { display: none !important; }
.ubin a { padding: 14px 10px !important; min-height: 64px; justify-content: center; font-weight: 700; }
.teks-merah { color: #b0281b !important; }
.tautan-merah { background: none; border: 0; color: #b0281b; font-weight: 700; cursor: pointer; padding: 2px 4px; text-decoration: underline; font-size: 12.5px; }
.sk .seg i { font-style: normal; }
/* Sidebar gaya SIMRS (gelap, ikon kecil berwarna di kotak) */
.tata-sb { display: flex; flex: 1; align-items: stretch; }
.tata-isi { flex: 1; min-width: 0; }
.sb { width: 210px; flex: none; background: #0b1622; padding: 6px 0; display: none; }
.sb-it { display: flex; align-items: center; gap: 9px; padding: 9px 12px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; border-left: 3px solid transparent; }
.sb-it:hover { background: #17283a; }
.sb-it.a { background: #1f74b5; border-left-color: #b4dcf1; }
.sb-ik { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; color: #fff; }
.sb-ik .ikon { display: inline-block !important; width: 13px; height: 13px; }
.sb-n { margin-left: auto; background: #c0392b; color: #fff; border-radius: 2px; padding: 0 6px; font-size: 11px; }
@media (min-width: 900px) { .sb { display: block; } .nav-toggle { display: none; } }
@media (max-width: 899px) { .sb.buka { display: block; position: fixed; top: 0; left: 0; bottom: 0; z-index: 90; overflow-y: auto; box-shadow: 4px 0 18px rgba(0,0,0,.35); } }
/* Dashboard perawat */
.dash { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
@media (min-width: 900px) { .dash { grid-template-columns: repeat(4, 1fr); } }
.dash-k { display: flex; flex-direction: column; padding: 14px 16px; color: #fff; text-decoration: none; border-radius: 2px; }
.dash-k b { font-size: 30px; line-height: 1; font-family: Arial, sans-serif; }
.dash-k span { margin-top: 6px; font-weight: 700; font-size: 13px; }
.dash-k:hover { filter: brightness(1.08); }
.seg-no:empty { display: none; }
/* Ringkasan formal (bukan kartu warna-warni) */
.dash-p .dash { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; }
@media (min-width: 900px) { .dash-p .dash { grid-template-columns: repeat(4, 1fr); } }
.dash-k { background: #fff !important; color: #333 !important; border-radius: 0 !important; padding: 10px 14px !important; border-right: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.dash-k span { order: 0; margin: 0 !important; font-size: 12.5px !important; font-weight: 400 !important; color: #555; }
.dash-k b { order: 1; font-size: 22px !important; font-weight: 700 !important; color: #1f74b5; }
.dash-k.waspada b { color: #c0392b; }
.dash-k:hover { background: #f3f7fb !important; filter: none !important; }
@media (min-width: 900px) { .dash-k { border-bottom: 0; } .dash-k:last-child { border-right: 0; } }
/* Kelengkapan askep dalam teks */
.teks-lengkap { color: #0b7a5c; font-weight: 700; }
.teks-kurang { color: #b0281b; font-size: 12.5px; }
/* Mengurangi kesan "template AI": tanpa animasi, tanpa sudut kapsul, tanpa bayangan dekoratif */
*, *::before, *::after { transition: none !important; animation: none !important; }
.lc, .chip, .btn, .p, .g, .gh, .sb-ik, .sb-n, .progres, .progres i, .vit, .news, .saran button, .hc, .baris-pasien, .strip-pasien, .rumusan, .modal .kotak, .saran-ac, .toast, .tab-seg .seg { border-radius: 2px !important; }
.vit, .news, .saran button, .hc, .rumusan { box-shadow: none !important; }
.judul-hal h1 { font-size: 17px !important; }
.vit { border: 1px solid #d0d0d0 !important; background: #fff !important; }
.news { border: 1px solid rgba(0,0,0,.15); }
.toast { background: #333 !important; }
.saran button { border: 1px solid #c5c5c5 !important; background: #fafafa !important; }
.grid-pasien td:nth-child(2), .grid-pasien td:last-child, .grid-pasien td:nth-child(5) { white-space: nowrap; }
/* Teks bayangan */
.bayang-wrap { position: relative; display: block; flex: 1; min-width: 0; }
.bayang-wrap .inp { position: relative; z-index: 1; background: transparent !important; width: 100%; }
.cari .bayang-wrap { position: static; }
.cari { position: relative; background: #fff; }
.bayang { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; pointer-events: none; white-space: pre; overflow: hidden; color: #9aa3ab; z-index: 0; padding-top: 0 !important; }
.bayang i { font-style: normal; color: transparent; }

/* ===================== Optimasi HP (<= 699px) ===================== */
@media (max-width: 699px) {
  .wadah { padding-left: 10px !important; padding-right: 10px !important; }
  .aksi-bawah { margin: 16px 0 0 !important; padding: 10px !important; border-radius: 0 !important; }
  .aksi-bawah a, .aksi-bawah .gh, .aksi-bawah .p { min-height: 42px !important; flex: 1; justify-content: center; }
  /* Target sentuh minimal 40px */
  .btn, .p, .g, .gh, .btn-kecil, .chip, .tautan, .tautan-merah, .ib, .nav-keluar, .nav-toggle { min-height: 40px !important; }
  .tautan, .tautan-merah { display: inline-flex; align-items: center; padding: 6px 4px !important; }
  .chip { padding: 8px 12px !important; font-size: 14px !important; }
  .fl input, .fl select, .fl textarea, .inp { min-height: 42px !important; font-size: 16px !important; }
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr !important; }
  /* Tabel menjadi kartu */
  .tabel-wrap { overflow: visible !important; border: 0 !important; }
  table.tb, table.tb tbody, table.tb tr, table.tb td { display: block; width: 100% !important; }
  table.tb thead { display: none; }
  table.tb { border: 0 !important; }
  table.tb tr { background: #fff !important; border: 1px solid #c9c9c9; margin-bottom: 10px; padding: 6px 10px; }
  table.tb td { border: 0 !important; border-bottom: 1px solid #eee !important; padding: 7px 0 !important; display: flex; gap: 10px; text-align: left !important; white-space: normal !important; font-size: 14px !important; }
  table.tb td:last-child { border-bottom: 0 !important; }
  table.tb td[data-label]::before { content: attr(data-label); flex: 0 0 38%; color: #555; font-weight: 700; font-size: 12.5px; }
  table.tb td > * { flex: 1; min-width: 0; }
  table.tb td .inp, table.tb td input, table.tb td select { width: 100%; min-width: 0 !important; }
  .grid-pasien td:first-child { display: none; }
  .grid-pasien td:nth-child(3) { font-size: 15.5px !important; }
  .grid-pasien td:last-child .baris { flex-wrap: wrap !important; gap: 6px !important; }
  .grid-pasien td:last-child .btn, .grid-pasien td:last-child .g { flex: 1; }
  .grid-kaki { flex-direction: column; align-items: stretch; }
  .grid-kaki .baris { justify-content: space-between; }
  /* Ringkasan dan filter */
  .dash-p .dash { grid-template-columns: 1fr 1fr !important; }
  .dash-k b { font-size: 20px !important; }
  .filter-grid, .lap-filter { grid-template-columns: 1fr !important; }
  .judul-hal h1, .judul-hal { font-size: 18px !important; }
  /* Tab segmen dapat digeser, aktif tetap terlihat */
  .tab-seg { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sk .tab-seg .seg { padding: 9px 12px !important; }
  /* Dialog penuh lebar */
  .modal .kotak { width: calc(100vw - 20px) !important; max-height: 88vh; overflow-y: auto; }
  .kop-logo h1 { font-size: 14px !important; }
}
@media (max-width: 699px) { .grid-pasien td:nth-child(4), .grid-pasien td:nth-child(5) { display: none !important; } .grid-pasien tr { padding: 4px 10px !important; } }
@media (max-width: 699px) { table.tb td { flex-wrap: wrap; } table.tb td > label.cek { flex: 0 0 auto !important; } table.tb td[data-label]::before { min-width: 38%; } }
@media (max-width: 699px) { table.tb td:has(label.cek)::before { flex-basis: 100%; } table.tb td label.cek { display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 6px; margin: 0 !important; padding: 6px 10px !important; border: 1px solid #c9c9c9; background: #fafafa; width: auto !important; } table.tb td label.cek span { white-space: nowrap; } table.tb td label.cek input { width: 18px !important; height: 18px; flex: none; } }
.bayang { display: none !important; }
/* Ikon sidebar modern: garis tipis, tanpa kotak warna penuh, aksen warna lembut */
.sb-ik { background: transparent !important; width: 26px !important; height: 26px !important; border-radius: 7px !important; }
.sb-ik .ikon { width: 18px !important; height: 18px !important; stroke-width: 1.75; color: #9fb3c8; }
.sb-it:hover .sb-ik .ikon { color: #fff; }
.sb-it.a .sb-ik { background: rgba(255,255,255,.16) !important; }
.sb-it.a .sb-ik .ikon { color: #fff; }
/* Ikon sidebar berwarna modern */
.sb-ik { background: color-mix(in srgb, var(--w) 22%, transparent) !important; border-radius: 8px !important; }
.sb-ik .ikon { color: color-mix(in srgb, var(--w) 70%, #fff) !important; stroke-width: 2 !important; }
.sb-it:hover .sb-ik { background: color-mix(in srgb, var(--w) 34%, transparent) !important; }
.sb-it:hover .sb-ik .ikon { color: color-mix(in srgb, var(--w) 55%, #fff) !important; }
.sb-it.a .sb-ik { background: var(--w) !important; }
.sb-it.a .sb-ik .ikon { color: #fff !important; }

/* ===== Halaman Monitoring TTV (format khusus, gaya Bootstrap) ===== */
.ttvm { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important; color: #212529; font-size: 15px; background: #f4f6f9; margin: -8px -4px 0; padding: 8px 4px 20px; }
.ttvm * { font-family: inherit !important; letter-spacing: normal !important; }
.ttvm .ikon { display: inline-block !important; width: 1em; height: 1em; vertical-align: -0.125em; }
.ttvm .m-kartu { background: #fff; border: 1px solid #e3e7ed; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 18px; overflow: hidden; }
.ttvm .m-garis { border: 1px solid #0d6efd; }
.ttvm .m-kepala { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-radius: 6px; }
.ttvm .m-kepala h1 { margin: 0; font-size: 23px !important; font-weight: 700 !important; color: #0d6efd !important; display: flex; align-items: center; gap: 8px; }
.ttvm .m-kepala p { margin: 4px 0 0; color: #343a40; font-size: 15.5px; }
.ttvm .m-user { display: flex; align-items: center; gap: 18px; text-align: right; }
.ttvm .m-user b { display: block; font-size: 15.5px; } .ttvm .m-user small { color: #495057; font-size: 13px; }
.ttvm .m-judul { padding: 11px 18px; font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e3e7ed; background: #fff; }
.ttvm .m-biru { background: #0d6efd; color: #fff; border-bottom: 0; }
.ttvm .m-besar { font-weight: 500; font-size: 18px; }
.ttvm .m-merah { color: #dc3545; } .ttvm .m-biru-t { color: #0d6efd; } .ttvm .m-gelap { color: #212529; }
.ttvm .m-isi { padding: 16px 18px; }
.ttvm label { display: block; font-weight: 600; font-size: 15px; color: #212529; margin-bottom: 12px; }
.ttvm .m-kotak label { font-weight: 400; }
.ttvm .m-cari { display: grid; gap: 14px; }
@media (min-width: 900px) { .ttvm .m-cari { grid-template-columns: 1fr 1fr; } .ttvm .m-dua { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: start; } .ttvm .m-dua2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; } }
.ttvm .m-grup, .ttvm .m-grup2 { display: flex; gap: 0; margin-top: 6px; }
.ttvm .m-grup2 { gap: 10px; }
.ttvm .m-grup .m-inp { border-radius: 6px 0 0 6px !important; } .ttvm .m-grup .m-btn { border-radius: 0 6px 6px 0 !important; }
.ttvm .m-inp { width: 100%; min-height: 38px; padding: 6px 12px !important; border: 1px solid #ced4da !important; border-radius: 6px !important; background: #fff !important; font-size: 15.5px !important; color: #212529 !important; box-shadow: none !important; margin-top: 6px; display: block; }
.ttvm .m-grup .m-inp, .ttvm .m-grup2 .m-inp { margin-top: 0; }
.ttvm .m-inp::placeholder { color: #6c757d; opacity: .8; }
.ttvm .m-inp:focus { outline: 0; border-color: #86b7fe !important; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25) !important; }
.ttvm .m-ro { background: #f0f2f5 !important; font-weight: 600; }
.ttvm .m-ro::placeholder { color: #343a40; font-weight: 600; opacity: 1; }
.ttvm .m-grup .m-inp::placeholder { color: #343a40; font-weight: 600; }
.ttvm .m-baris { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ttvm .m-kotak { background: #f8f9fa; border: 1px solid #e3e7ed; border-radius: 6px; padding: 12px; margin-bottom: 14px; }
.ttvm .m-kotak > b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.ttvm .m-kotak > .m-inp { margin-bottom: 12px; }
.ttvm .m-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 6px; font-size: 15.5px; font-weight: 400; cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.ttvm .m-btn-biru { background: #0d6efd; color: #fff; border-color: #0d6efd; } .ttvm .m-btn-biru:hover { background: #0b5ed7; }
.ttvm .m-btn-garis { background: #fff; color: #495057; border-color: #6c757d; min-width: 200px; }
.ttvm .m-btn-out { background: #fff; color: #dc3545; border-color: #dc3545; }
.ttvm .m-penuh { width: 100%; font-weight: 600; min-height: 44px; }
.ttvm .m-grafik { min-height: 300px; }
.ttvm .m-grafik .kosong { display: none; }
.ttvm .m-leg { font-size: 12.5px; color: #495057; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 6px; }
.ttvm .m-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; }
.ttvm .m-badge { margin-left: auto; background: #6c757d; color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 6px; font-weight: 700; }
.ttvm .m-tabel { overflow-x: auto; }
.ttvm table { width: 100%; border-collapse: collapse; font-size: 15px; display: table !important; }
.ttvm thead { display: table-header-group !important; }
.ttvm tbody { display: table-row-group !important; } .ttvm tr { display: table-row !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.ttvm th { text-align: left; padding: 10px 6px; font-weight: 700; border-bottom: 1px solid #dee2e6; white-space: nowrap; background: #fff; }
.ttvm td { display: table-cell !important; padding: 9px 6px !important; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.ttvm td::before { content: none !important; }
.ttvm .m-kosong { text-align: center; color: #495057; background: #f2f3f5; padding: 26px !important; white-space: normal; }
.ttvm .m-neg { color: #dc3545; font-weight: 700; } .ttvm .m-pos { color: #198754; font-weight: 700; }
/* Tab segmen: tanpa garis scrollbar */
.tab-seg { scrollbar-width: none !important; -ms-overflow-style: none; }
.tab-seg::-webkit-scrollbar { display: none !important; height: 0 !important; }
@media (min-width: 700px) { .tab-seg { flex-wrap: wrap !important; overflow: visible !important; row-gap: 4px !important; } .sk .tab-seg .seg { white-space: nowrap; } }
/* Lampiran gambar */
.lamp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lamp { margin: 0; border: 1px solid #ccc; background: #fff; }
.lamp-img { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; }
.lamp-img img { display: block; width: 100%; height: 150px; object-fit: contain; }
.lamp figcaption { padding: 8px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.lamp figcaption small { color: #555; }
.lamp figcaption .tautan-merah { align-self: flex-start; padding: 2px 0 !important; min-height: 0 !important; }
.lamp-cetak { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lamp-cetak figure { margin: 0; break-inside: avoid; }
.lamp-cetak img { width: 100%; max-height: 200px; object-fit: contain; border: 1px solid #999; }
.lamp-cetak figcaption { font-size: 11px; }
/* Versi inti: sembunyikan bagian di luar 10 menu */
.versi-inti .fl:has([data-b="instruksi"]), .versi-inti .grid:has(> .fl [data-b="dpjp"]), .versi-inti .kartu:has([data-sbar]) { display: none !important; }
.sb-it.sb-mati { opacity: .45; cursor: not-allowed; }
.versi-inti .tab-seg { display: none !important; }
/* Aksi tabel berupa ikon */
.aksi-ik { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; border: 1px solid transparent; background: transparent; cursor: pointer; text-decoration: none; }
.aksi-ik .ikon { display: inline-block !important; width: 17px; height: 17px; }
.ai-biru { color: #1f74b5; background: #e8f1fa; } .ai-biru:hover { background: #1f74b5; color: #fff; }
.ai-oranye { color: #b45309; background: #fdf1e3; } .ai-oranye:hover { background: #b45309; color: #fff; }
.ai-merah { color: #c0392b; background: #fbeaea; } .ai-merah:hover { background: #c0392b; color: #fff; }
.grid-pasien td:last-child .baris { gap: 4px !important; flex-wrap: nowrap !important; }
@media (max-width: 699px) { .aksi-ik { width: 42px; height: 42px; } .grid-pasien td:last-child .aksi-ik { flex: 0 0 auto !important; } }
/* Halaman login modern */
.hal-login { background: #eef2f8 !important; }
.hal-login .kop-atas { display: none !important; }
.hal-login .badan-masuk { min-height: calc(100vh - 44px); display: flex !important; align-items: center; justify-content: center; padding: 32px 16px !important; margin: 0 !important; }
.hal-login .panel-masuk { width: 100%; max-width: 400px; background: #fff !important; border: 0 !important; border-top: 0 !important; border-radius: 14px !important; box-shadow: 0 1px 2px rgba(16,40,80,.06), 0 12px 32px -12px rgba(16,40,80,.22) !important; overflow: hidden; }
.login-atas { text-align: center; padding: 30px 28px 8px; }
.login-atas .logo-uim { margin: 0 auto 12px; width: 72px !important; height: 72px !important; }
.login-atas h2 { margin: 0; font-size: 22px !important; font-weight: 700 !important; color: #14284b !important; }
.login-atas p { margin: 6px 0 0; font-size: 13px; color: #5b6b82; line-height: 1.45; }
.hal-login .panel-isi { padding: 18px 28px 28px !important; }
.hal-login .panel-masuk label { font-size: 13px !important; font-weight: 600 !important; color: #2a3a52 !important; margin-bottom: 6px; }
.hal-login .panel-masuk .fi { margin-top: 14px !important; }
.hal-login .panel-masuk input { height: 46px !important; border: 1px solid #cfd8e5 !important; border-radius: 10px !important; padding: 0 44px 0 14px !important; font-size: 15px !important; background: #f8fafd !important; }
.hal-login .panel-masuk input:focus { background: #fff !important; border-color: #1f74b5 !important; box-shadow: 0 0 0 4px rgba(31,116,181,.15) !important; }
.hal-login .panel-masuk .ey { height: 44px !important; width: 42px !important; bottom: 1px !important; right: 2px !important; }
.hal-login .btn.blok { margin-top: 22px !important; min-height: 48px !important; border-radius: 10px !important; background: #1f74b5 !important; border: 0 !important; color: #fff !important; font-size: 16px !important; font-weight: 600 !important; }
.hal-login .btn.blok:hover { background: #185f95 !important; }
.hal-login .btn.blok .ikon { display: none !important; }
.hal-login .pesan { border-radius: 8px !important; }
.hal-login .kaki-situs { background: transparent !important; color: #6b7a90 !important; border: 0 !important; }
.login-catat { margin: 14px 0 0; text-align: center; color: #6b7a90 !important; font-size: 12px; }
.sub-gu { margin: 12px 0 2px; font-size: 13px; color: #1f74b5; text-transform: uppercase; letter-spacing: .03em; }
.rf-baris { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px dashed #e2e2e2; }
.rf-nm { width: 170px; flex: none; font-size: 13px; color: #333; }
.rf-nm .inp { min-height: 32px !important; }
.chips.rf .chip { min-width: 0; }
@media (max-width: 699px) { .rf-nm { width: 100%; } }
.tapis-hasil { margin: 10px 0 4px; padding: 10px 12px; background: #f3f7fb; border: 1px solid #c9d8e6; font-size: 14px; }

/* Status Aktif: titik hijau berkedip di samping sapaan */
.kop-kanan .status-aktif { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-size: 12px; font-weight: 700; color: #1e8e3e; }
.kop-kanan .status-aktif i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: kedip-aktif 1.4s ease-in-out infinite !important; }
@keyframes kedip-aktif { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 50% { opacity: .35; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .kop-kanan .status-aktif i { animation: none !important; } }

/* Sidebar tetap terlihat saat halaman digulir (desktop) */
@media (min-width: 900px) {
  .tata-sb { background: linear-gradient(to right, #0b1622 210px, transparent 210px); }
  .sb { position: sticky; top: 0; align-self: flex-start; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a3d52 transparent; }
}

/* Grafik pemeriksaan: dua grafik berdampingan, ukuran seragam */
.grafik-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grafik-grid .grafik-uji svg { display: block; }
@media (max-width: 1100px) { .grafik-grid { grid-template-columns: 1fr; } }
.grafik-uji .tb th, .grafik-uji .tb td { padding: 5px 6px !important; font-size: 12px !important; }
.grafik-uji .tabel-wrap { overflow-x: auto; }

/* Ikon buffer "Menyimpan..." */
#buffer-simpan { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .55); }
#buffer-simpan[hidden] { display: none; }
#buffer-simpan .bs-kotak { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 34px 20px; background: #fff; border: 1px solid #d9d9d9; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
#buffer-simpan .bs-putar { position: relative; width: 88px; height: 88px; animation: bs-putar 1s steps(12) infinite !important; }
#buffer-simpan .bs-putar i { position: absolute; left: 39px; top: 30px; width: 10px; height: 28px; border-radius: 5px; transform-origin: 5px 14px; }
#buffer-simpan .bs-teks { font-size: 14px; font-weight: 700; color: #1d3445; letter-spacing: .02em; }
@keyframes bs-putar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #buffer-simpan .bs-putar { animation: none !important; } }

/* Sistem Monitoring TTV: tema hijau */
.ttvm .m-garis { border-color: #198754 !important; }
.ttvm .m-kepala h1 { color: #198754 !important; }
.ttvm .m-biru { background: #198754 !important; color: #fff !important; }
.ttvm .m-biru-t { color: #198754 !important; }
.ttvm .m-btn-biru { background: #198754 !important; border-color: #198754 !important; color: #fff !important; }
.ttvm .m-btn-biru:hover { background: #157347 !important; border-color: #146c43 !important; }
.ttvm .m-inp:focus { border-color: #75b798 !important; box-shadow: 0 0 0 .25rem rgba(25,135,84,.25) !important; }
/* Buffer minimalis: tanpa kotak dan tanpa latar */
#buffer-simpan { background: transparent !important; pointer-events: none; }
#buffer-simpan .bs-kotak { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 10px !important; }
#buffer-simpan .bs-teks { font-size: 13px !important; font-weight: 600 !important; color: #1d3445; text-shadow: 0 0 6px #fff, 0 0 3px #fff; }

/* Jadwal dinas ruangan (format lembar ruangan) */
.jr-wrap { overflow-x: auto; border: 1px solid #b7c99a; }
.jr { border-collapse: collapse; width: 100%; min-width: 1100px; font-size: 12.5px; background: #fff; }
.jr caption { caption-side: top; text-align: center; font-family: 'Times New Roman', Georgia, serif; font-weight: 700; font-size: 17px; letter-spacing: .02em; padding: 10px 6px; color: #111; }
.jr caption small { font-size: 14px; }
.jr th, .jr td { border: 1px solid #555; padding: 0; text-align: center; height: 26px; }
.jr thead th { background: #fff; font-weight: 700; padding: 3px 4px; font-size: 12px; }
.jr th.jr-minggu, .jr td.jr-minggu { background: #8db33a !important; }
.jr .jr-nama { text-align: left; min-width: 230px; }
.jr .jr-ket { min-width: 130px; }
.jr td input { width: 100%; height: 26px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; color: inherit; padding: 0 2px; }
.jr td.jr-nama input, .jr td.jr-ket input { text-align: left; font-weight: 600; padding: 0 6px; }
.jr td input:focus { outline: 2px solid #1f74b5; outline-offset: -2px; background: #fffbe6; }
.jr tr.jr-bagian td { background: #9bbb3f; color: #10220a; font-weight: 700; font-style: italic; text-align: left; padding: 3px 8px; font-family: 'Times New Roman', Georgia, serif; font-size: 14px; }
.jr tr.jr-jml td { background: #f3f6ec; font-weight: 700; font-size: 12px; }
.jr tr.jr-jml td:first-child { text-align: right; padding-right: 8px; }
.jr .jr-pkI, .jr-leg .jr-pkI { background: #e53935; color: #fff; }
.jr .jr-pkII, .jr-leg .jr-pkII { background: #fbc02d; color: #222; }
.jr .jr-pkIII, .jr-leg .jr-pkIII { background: #43a047; color: #fff; }
.jr-p { background: #cfe3f3 !important; }
.jr-ps { background: #f7d9b8 !important; }
.jr-s, .jr-m { background: #fff; }
.jr-lm, .jr-of, .jr-hb { color: #d6336c !important; }
.jr-c { background: #3b6e22 !important; color: #fff !important; }
.jr-sk { background: #fff3a8 !important; }
.jr-dk { background: #e3d7f3 !important; }
.jr-leg { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; }
.jr-leg b { display: inline-block; min-width: 28px; text-align: center; border: 1px solid #555; padding: 1px 4px; margin-right: 4px; }
@media print { .jr-wrap { border: 0; overflow: visible; } .jr { min-width: 0; font-size: 10px; } }

/* Kotak cari: ikon kaca pembesar minimalis + teks bayangan */
.cari { position: relative !important; }
.cari > .ikon { display: block !important; position: absolute !important; left: 11px !important; top: 50% !important; transform: translateY(-50%); width: 15px !important; height: 15px !important; color: #9aa5b1 !important; stroke-width: 1.8 !important; z-index: 3; pointer-events: none; background: none !important; }
.cari input.inp { padding-left: 33px !important; }
.cari input.inp::placeholder { color: #9aa5b1; opacity: 1; font-weight: 400; }

/* Ukuran tombol konsisten: tidak mengecil saat diklik, status nonaktif sama ukurannya */
button, .btn, .p, .g, .gh, .chip, .tautan, .m-btn, .masuk .bt, .masuk .ganti { transform: none !important; }
button:active, .p:active, .g:active, .gh:active, .chip:active, .m-btn:active { transform: none !important; }
button:disabled, button[disabled] { opacity: .45; cursor: not-allowed; }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid #1f74b5; outline-offset: 1px; }
button[data-pg] { min-width: 104px; justify-content: center; text-align: center; box-sizing: border-box; }
button[data-pg] + .kecil, [data-pg] ~ .kecil { display: inline-block; min-width: 82px; text-align: center; font-variant-numeric: tabular-nums; }

/* Tabel daftar pasien Beranda: ukuran tetap saat pindah halaman (Sebelumnya/Berikutnya) */
@media (min-width: 900px) {
  .tb.grid-pasien { table-layout: fixed; width: 100%; }
  .tb.grid-pasien th:nth-child(1) { width: 4%; } .tb.grid-pasien th:nth-child(2) { width: 8%; } .tb.grid-pasien th:nth-child(3) { width: 13%; }
  .tb.grid-pasien th:nth-child(4) { width: 4.5%; } .tb.grid-pasien th:nth-child(5) { width: 11%; } .tb.grid-pasien th:nth-child(6) { width: 8%; }
  .tb.grid-pasien th:nth-child(7) { width: 11%; } .tb.grid-pasien th:nth-child(8) { width: 12%; } .tb.grid-pasien th:nth-child(9) { width: 7.5%; }
  .tb.grid-pasien th:nth-child(10) { width: 11%; } .tb.grid-pasien th:nth-child(11) { width: 10%; }
  .tb.grid-pasien td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb.grid-pasien tbody tr { height: 46px; }
  .tb.grid-pasien tr.baris-isi td { border-left-color: transparent; border-right-color: transparent; }
}
.chip.on, .chips.daftar .chip.on { font-weight: inherit !important; text-shadow: 0 0 .5px currentColor; }

/* Tabel Data Semua Pasien: padat */
@media (min-width: 900px) {
  .tb.tb-padat { table-layout: fixed; width: 100%; }
  .tb.tb-padat th, .tb.tb-padat td { padding: 6px 8px !important; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
  .tb.tb-padat th:nth-child(1) { width: 13%; } .tb.tb-padat th:nth-child(2) { width: 9%; } .tb.tb-padat th:nth-child(3) { width: 9%; }
  .tb.tb-padat th:nth-child(4) { width: 13%; } .tb.tb-padat th:nth-child(5) { width: 15%; } .tb.tb-padat th:nth-child(6) { width: 20%; }
  .tb.tb-padat th:nth-child(7) { width: 8%; } .tb.tb-padat th:nth-child(8) { width: 13%; }
  .tb.tb-padat td .lc { padding: 1px 7px; }
}

/* Filter pencarian pasien */
.filter-pasien { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 8px; }
.filter-pasien .inp { margin: 0; font-size: 13px; min-height: 34px; }
.filter-pasien [data-fl-cari] { min-height: 34px !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.filter-grid.filter-cari { grid-template-columns: 1fr !important; }

/* Dropdown filter: panah kecil rapi, sejajar tengah */
.filter-pasien select.inp { -webkit-appearance: none; appearance: none; height: 34px; min-height: 34px; padding: 0 30px 0 10px !important; line-height: 32px; border: 1px solid #c9ced6 !important; border-radius: 4px !important; background-color: #fff !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 12px !important; color: #333; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.filter-pasien select.inp:focus { border-color: #1f74b5 !important; outline: none; box-shadow: 0 0 0 2px rgba(31,116,181,.15); }
.filter-pasien [data-fl-cari] { height: 34px; border-radius: 4px !important; }

/* CPPT format RME: riwayat di kiri, huruf S O A P besar dengan kotak isian */
.cppt-rme { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: start; }
.cppt-riw { display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
.cppt-tgl { border: 2px solid #3b82c4; border-radius: 12px; padding: 8px 10px; font-size: 12px; line-height: 1.45; display: flex; flex-direction: column; background: #fff; }
.cppt-tgl.w1 { border-color: #e2a93b; } .cppt-tgl.w2 { border-color: #e06c8c; }
.cppt-tgl b { font-size: 12.5px; } .cppt-tgl span { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cppt-isi { border-left: 1px solid #e3e6e4; }
.cppt-baris { display: grid; grid-template-columns: 64px 1fr; border-bottom: 1px solid #e3e6e4; }
.cppt-baris:last-child { border-bottom: 0; }
.cppt-huruf { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: #222; border-right: 1px solid #e3e6e4; font-family: Arial, sans-serif; }
.cppt-kotak { display: block; padding: 10px 12px; margin: 0; }
.cppt-kotak textarea { width: 100%; border: 1.5px dashed #c9d2cd !important; border-radius: 10px !important; padding: 8px 12px !important; font-size: 14px; line-height: 1.55; resize: vertical; background: #fff; }
.cppt-kotak .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 899px) { .cppt-rme { grid-template-columns: 1fr; } .cppt-riw { flex-direction: row; overflow-x: auto; max-height: none; } .cppt-tgl { min-width: 170px; } .cppt-baris { grid-template-columns: 44px 1fr; } .cppt-huruf { font-size: 26px; } }

/* CPPT format RME */
.cr { display: grid; grid-template-columns: 180px 1fr; border: 1px solid #e3e6e4; border-radius: 14px; overflow: hidden; background: #fff; }
.cr-riw { display: flex; flex-direction: column; gap: 12px; padding: 12px; max-height: 640px; overflow-y: auto; border-right: 1px solid #e3e6e4; background: #fafbfa; }
.cr-kartu { position: relative; border: 3px solid #3b8fd6; border-radius: 14px; padding: 10px 10px 34px; background: #fff; font-size: 12.5px; color: #333; display: flex; flex-direction: column; gap: 6px; }
.cr-kartu.w1 { border-color: #f0c23a; } .cr-kartu.w2 { border-color: #ec7fa0; }
.cr-kartu.cr-atas { border-color: #3b8fd6; padding-bottom: 10px; }
.cr-kartu > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cr-kartu span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-ik { width: 15px; height: 15px; flex: none; fill: none; stroke: #555; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cr-buku { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 22px; height: 18px; border-radius: 4px; background: #fbe3e6; }
.cr-buku::after { content: ''; position: absolute; inset: 4px 5px; background: linear-gradient(90deg, #d9364f 0 45%, transparent 45% 55%, #d9364f 55%); border-radius: 1px; }
.cr-isi { display: flex; flex-direction: column; }
.cr-baris { display: grid; grid-template-columns: 70px 1fr; border-bottom: 1px solid #e3e6e4; }
.cr-baris:last-child { border-bottom: 0; }
.cr-huruf { display: flex; align-items: center; justify-content: center; font: 700 38px/1 Arial, sans-serif; color: #222; border-right: 1px solid #e3e6e4; }
.cr-kotak { padding: 12px 14px; }
.cr-kotak textarea { width: 100%; border: 1px solid #d5dad7 !important; border-radius: 6px !important; padding: 10px 12px !important; font-size: 15px; line-height: 1.6; resize: vertical; background: #fff !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.cr-kotak textarea.cr-o { border: 1.5px dashed #b9c2bd !important; }
.cr-kotak textarea::placeholder { color: #9aa3a0; }
.cr-isi.cr-isi-sendiri { border: 1px solid #e3e6e4; border-radius: 14px; overflow: hidden; background: #fff; margin-top: 8px; }

/* Kepala halaman gaya Monitoring TTV: kartu putih, judul hijau berikon, keterangan; kepala panel pita hijau */
.judul-hal { display: block !important; background: #fff !important; border: 1px solid #e3e7ed !important; border-radius: 8px !important; box-shadow: 0 1px 2px rgba(0,0,0,.04) !important; padding: 16px 22px !important; margin: 0 0 18px !important; color: #198754 !important; font-size: 22px !important; font-weight: 700 !important; line-height: 1.3; }
.judul-hal h1 { margin: 0 !important; color: #198754 !important; font-size: 22px !important; font-weight: 700 !important; display: flex; align-items: center; gap: 8px; }
.judul-hal > .ikon, .judul-hal h1 .ikon { color: #198754 !important; width: 24px !important; height: 24px !important; display: inline-block !important; vertical-align: -4px; margin-right: 6px; }
.judul-hal .judul-sub { margin: 6px 0 0 !important; font-size: 15px !important; font-weight: 400 !important; color: #343a40 !important; }
.panel-kepala { background: #198754 !important; color: #fff !important; border: 0 !important; border-radius: 8px 8px 0 0 !important; padding: 13px 20px !important; font-size: 15.5px !important; font-weight: 700 !important; display: flex; align-items: center; gap: 8px; }
.panel-kepala .ikon { color: #fff !important; display: inline-block !important; width: 18px !important; height: 18px !important; }
.panel { border: 1px solid #198754 !important; border-radius: 8px !important; overflow: hidden; }
.data-p .panel-kepala { background: transparent !important; color: var(--x-magenta) !important; border-radius: 0 !important; padding: 4px 0 2px !important; font-size: 13px !important; }
.data-p .panel, .data-p.panel { border: 0 !important; }
@media (max-width: 899px) { .judul-hal, .judul-hal h1 { font-size: 18px !important; } .judul-hal .judul-sub { font-size: 13.5px !important; } }

/* Kepala halaman dan panel: biru */
.judul-hal, .judul-hal h1, .judul-hal > .ikon, .judul-hal h1 .ikon { color: #1f74b5 !important; }
.panel-kepala { background: #1f74b5 !important; }
.panel { border-color: #1f74b5 !important; }
.data-p .panel-kepala { background: transparent !important; }
