/* Kebutuhan pasien: posisi + linimasa vertikal (detail pasien). File terpisah agar tidak tertahan cache lama. */
.kbt-pos{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .6rem;margin:.7rem 0 .2rem;padding:.55rem .75rem;border-radius:10px;border:1px solid #f0d58a;background:#fff8e1;font-size:.85rem;color:#4a3a00}
.kbt-pos-k{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;opacity:.75}
.kbt-pos b{font-size:.95rem}
.kbt-pos.kbt-masalah{background:#fdecef;border-color:#f0b4c0;color:#7a1f35}
.kbt-pos.kbt-selesai{background:#eaf7ee;border-color:#a8d9b7;color:#1f5c37}
.kbt-list{display:block;margin:.4rem 0 .2rem}
.kbt-row{display:flex;gap:.7rem;position:relative;padding-bottom:.7rem}
.kbt-row:last-child{padding-bottom:.1rem}
.kbt-row::before{content:"";position:absolute;left:.82rem;top:1.75rem;bottom:-.05rem;width:2px;background:#e5d6dc}
.kbt-row:last-child::before{display:none}
.kbt-row.kbt-selesai::before{background:#2f8f4e}
.kbt-ic{flex:0 0 1.65rem;width:1.65rem;height:1.65rem;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;background:#efe6ea;color:#8a7680;z-index:1}
.kbt-selesai .kbt-ic{background:#2f8f4e;color:#fff}
.kbt-berjalan .kbt-ic{background:#e0a800;color:#fff;box-shadow:0 0 0 4px #fff3cd}
.kbt-masalah .kbt-ic{background:#c0334f;color:#fff;box-shadow:0 0 0 4px #fbe3e8}
.kbt-bd{flex:1;min-width:0;font-size:.84rem;line-height:1.35}
.kbt-t{display:flex;flex-wrap:wrap;gap:.1rem .5rem;align-items:baseline}
.kbt-t b{color:#3b2230}.kbt-tertunda .kbt-t b{color:#8a7680;font-weight:600}
.kbt-st{font-size:.7rem;font-weight:600;padding:.05rem .45rem;border-radius:99px;background:#f1eaed;color:#7a6670}
.kbt-selesai .kbt-st{background:#e3f4e8;color:#1f5c37}.kbt-berjalan .kbt-st{background:#fff3cd;color:#7a5a00}.kbt-masalah .kbt-st{background:#fbe3e8;color:#9b2742}
.kbt-d{color:#4a3a42;margin-top:.1rem}.kbt-tertunda .kbt-d{color:#8a7680}
.kbt-m{font-size:.75rem;color:#8a7680;margin-top:.1rem}
.kbt-r{margin-top:.25rem;padding:.3rem .5rem;border-radius:6px;background:#faf3f6;font-size:.78rem;color:#5b4650;overflow-wrap:anywhere}
.kbt-next{margin:.5rem 0 0;padding:.5rem .65rem;border-radius:8px;background:#fbf4f7;border-left:3px solid #b0305c;font-size:.82rem;color:#4a2f3b}

/* ===== Antrean Verifikasi per pasien ===== */
.vf-cari{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
.vf-cari input[type=search]{flex:1 1 260px;font:inherit;padding:9px 12px;border:1px solid #ecc9d8;border-radius:10px;background:#fff}
.vf-ring{margin-left:auto;color:#7a6471;font-size:.88rem}
.vf-kartu{background:#fff;border:1px solid #f3d3e1;border-radius:14px;margin-bottom:10px;box-shadow:0 1px 3px rgba(198,14,86,.06);overflow:hidden}
.vf-kartu.ada-peringatan{border-left:4px solid #e0a100}
.vf-kartu[open]{box-shadow:0 4px 14px rgba(198,14,86,.1)}
.vf-kartu>summary{list-style:none;cursor:pointer;display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:space-between;align-items:center;padding:12px 16px;min-height:48px}
.vf-kartu>summary::-webkit-details-marker{display:none}
.vf-kartu>summary::before{content:"▸";color:#c60e56;transition:transform .15s;margin-right:-6px}
.vf-kartu[open]>summary::before{transform:rotate(90deg)}
.vf-kartu>summary:hover{background:#fff5f9}
.vf-id{display:flex;flex-direction:column;gap:2px;flex:1 1 220px;min-width:0}
.vf-kode{font-weight:700;color:#8a0e3f}.vf-id small{color:#7a6471}
.vf-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.vf-sejak{font-size:.8rem;color:#7a6471}
.vf-isi{border-top:1px solid #f3d3e1;padding:12px 16px;background:#fffafc}
.vf-semua{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;background:#eefaf0;border:1px solid #bfe3c6;border-radius:10px;padding:10px 12px;margin:0 0 12px}
.vf-semua span{flex:1 1 260px;font-size:.9rem}
.vf-daftar{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.vf-item{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:space-between;align-items:center;background:#fff;border:1px solid #f3d3e1;border-radius:10px;padding:10px 12px}
.vf-item.peringatan{background:#fffbea;border-color:#efd58a}
.vf-info{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:2px}.vf-info small{color:#7a6471}
.vf-warn{color:#92400e;font-size:.86rem;margin-top:4px}
.vf-aksi{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0}
.vf-aksi input{font:inherit;padding:7px 9px;border:1px solid #ecc9d8;border-radius:8px;width:170px}
@media (max-width:760px){
  .vf-ring{margin-left:0;width:100%}
  .vf-kartu>summary{padding:12px}.vf-isi{padding:10px}
  .vf-aksi{width:100%}.vf-aksi input{flex:1 1 100%;width:100%}.vf-aksi .btn{flex:1 1 calc(50% - 6px)}
  .vf-semua .btn{width:100%}
}

/* ===== Tim dokter dan kepakaran ===== */
.kepakaran{position:relative;display:flex;flex-direction:column;gap:6px}
.kep-label{font-size:.95rem;color:#7a6471}.kep-label small{color:#9a8590}
.kep-combo{position:relative}
.kep-combo>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:9px 12px;border:1px solid #ecc9d8;border-radius:8px;background:#fff}
.kep-combo>summary::-webkit-details-marker{display:none}
.kep-combo>summary::after{content:"";width:8px;height:8px;border-right:2px solid #7a6471;border-bottom:2px solid #7a6471;transform:rotate(45deg) translateY(-2px);flex:none;transition:transform .15s}
.kep-combo[open]>summary{border-color:#c60e56;box-shadow:0 0 0 3px rgba(198,14,86,.15)}.kep-combo[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
.kep-ringkas{color:#7a6471;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kep-ringkas.terisi{color:#2b1a24;font-weight:600}
.kep-panel{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:min(320px,50dvh);overflow:auto;background:#fff;border:1px solid #ecc9d8;border-radius:10px;box-shadow:0 10px 28px rgba(60,10,35,.18);padding:6px}
.kepakaran label.kep{display:flex;gap:10px;align-items:center;padding:9px 10px;border-radius:8px;cursor:pointer;min-height:44px}
.kepakaran label.kep:hover{background:#fff0f6}.kepakaran label.kep:has(input:checked){background:#fff0f6;font-weight:600}
.kepakaran label.kep input{width:20px;height:20px;flex:none;accent-color:#c60e56}.kepakaran label.kep input:disabled+span{opacity:.5}
.tim-daftar{list-style:none;margin:10px 0;padding:0;display:grid;gap:8px}
.tim-anggota{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:space-between;align-items:center;border:1px solid #f3d3e1;border-radius:12px;padding:10px 12px;background:#fff}
.tim-anggota.dpjp{border-color:#c60e56;background:#fff7fb}
.tim-info{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.tim-kep{display:flex;flex-wrap:wrap;gap:4px}.kep-chip{font-size:.74rem;background:#fdeef4;color:#8a0e3f;border-radius:999px;padding:2px 9px}
.tim-aksi{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tim-aksi input,.tim-aksi select{font:inherit;padding:7px 9px;border:1px solid #ecc9d8;border-radius:8px;background:#fff}
.tim-tambah{border-top:1px dashed #ecc9d8;margin-top:12px;padding-top:10px}.tim-tambah h3{font-size:1rem;margin:0 0 8px}
@media (max-width:760px){.tim-aksi,.tim-aksi form{width:100%}.tim-aksi select,.tim-aksi input{flex:1 1 100%;width:100%}}
.vf-aksi select{font:inherit;padding:7px 9px;border:1px solid #ecc9d8;border-radius:8px;max-width:100%;min-width:0}
.vf-aksi .form-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0;max-width:100%}
.vf-daftar,.vf-isi{min-width:0;max-width:100%}.vf-item{min-width:0;max-width:100%;box-sizing:border-box}
@media (max-width:640px){.vf-aksi form,.vf-aksi .form-row{width:100%}.vf-aksi .form-row select{flex:1 1 100%;width:100%}.vf-aksi .btn{flex:1 1 100%;text-align:center}}
