/* Penyesuaian tambahan CMS RSUD Kepulauan Seribu di atas tema dasar */
.form-label.required::after { content: " *"; color: var(--bs-danger, #f1416c); }
.tox-tinymce { border-radius: .475rem !important; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.media-item { position: relative; border: 1px solid var(--bs-gray-200, #eff2f5); border-radius: .5rem; overflow: hidden; background: var(--bs-body-bg, #fff); }
.media-item .media-thumb { display: block; width: 100%; height: 130px; object-fit: cover; background: #f5f8fa; cursor: pointer; }
.media-item .media-nama { font-size: .8rem; padding: .4rem .6rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-item .media-info { font-size: .72rem; color: var(--bs-gray-500, #99a1b7); padding: 0 .6rem .5rem; }
.media-item.dipilih { outline: 3px solid var(--bs-primary, #1b84ff); }
.statistik-kartu .angka { font-size: 2rem; font-weight: 700; line-height: 1; }
.matriks-hak th, .matriks-hak td { text-align: center; vertical-align: middle; }
.matriks-hak th:first-child, .matriks-hak td:first-child { text-align: left; }
.login-latar { min-height: 100vh; background: linear-gradient(135deg, #1e3a5f 0%, #2d6a8f 55%, #47a88e 100%); }

/* Font identitas RSUD (sama dengan Website & PPID), disimpan lokal: tanpa layanan font pihak ketiga */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.kode-html { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace !important; font-size: 12.5px !important; line-height: 1.55 !important; white-space: pre; tab-size: 4; min-height: 520px; }
.pratinjau-berkas img { max-height: 56px; max-width: 220px; border-radius: 10px; background: #234974; padding: 6px 10px; border: 1px solid #dde8ec; }
.angka-ppid { border-radius: 14px; padding: 16px; }
.angka-ppid .angka { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.angka-teal { background: #e7f4f0; color: #236b58; }
.angka-oranye { background: #fdeedb; color: #a5560d; }
.kartu-situs .statistik-kartu { background: #f5f9fa; border: 1px solid #e4edf1; color: #2b3a4d; }
.kartu-situs .statistik-kartu i { color: #47a88e; }
.kartu-situs .statistik-kartu .angka { font-size: 1.6rem; font-weight: 800; color: #17304f; }
.sambutan { background: linear-gradient(120deg, #fff 55%, #e7f4f0 100%) !important; }
.angka-navy { background: #e8f0f5; color: #17304f; }

/* ---- Pustaka Berkas: kartu berkas + pemakaian ---- */
.mb-ringkas { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.25rem; font-size: .9rem; color: var(--bs-gray-700, #4b5675); }
.mb-ringkas .mb-pindai { margin-left: auto; font-size: .8rem; color: var(--bs-gray-500, #99a1b7); }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.mb-kartu { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e4edf1; border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s, border-color .2s; }
.mb-kartu:hover { border-color: #cfe0e6; box-shadow: 0 10px 26px -14px rgba(23, 48, 79, .35); }
.mb-gambar { display: flex; align-items: center; justify-content: center; height: 160px; overflow: hidden; background: #f3f7f9; border-bottom: 1px solid #edf2f5; }
.mb-gambar img { display: block; max-width: 100%; max-height: 100%; }
.mb-foto img { width: 100%; height: 100%; object-fit: cover; }
.mb-grafis { padding: 18px; background-color: #f6f9fb; background-image: linear-gradient(45deg, #edf2f5 25%, transparent 25%), linear-gradient(-45deg, #edf2f5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf2f5 75%), linear-gradient(-45deg, transparent 75%, #edf2f5 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.mb-grafis img { object-fit: contain; }
.mb-ikon { padding: 30px; }
.mb-ikon img { height: 90px; width: auto; }
.mb-isi { flex: 1; padding: .85rem 1rem .4rem; min-width: 0; }
.mb-nama { font-weight: 700; font-size: .88rem; color: var(--bs-gray-900, #071437); line-height: 1.35; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.mb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem; margin-top: .45rem; font-size: .74rem; color: var(--bs-gray-500, #99a1b7); }
.mb-meta span + span:not(.badge)::before { content: "\00b7"; margin-right: .55rem; color: #c4cdd5; }
.mb-meta .badge + span::before { content: none !important; }
.mb-pakai { margin-top: .75rem; padding-top: .7rem; border-top: 1px dashed #e4edf1; font-size: .78rem; }
.mb-pakai-judul { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-gray-500, #99a1b7); margin-bottom: .35rem; }
.mb-pakai ul, .mb-pakai-daftar { list-style: none; margin: 0; padding: 0; }
.mb-pakai li { position: relative; padding-left: 14px; margin-bottom: .25rem; color: var(--bs-gray-700, #4b5675); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-pakai li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: #47a88e; }
.mb-pakai li.mb-pakai-kode::before { background: #9fb3c3; }
.mb-pakai li a { color: #234974; font-weight: 600; }
.mb-pakai li a:hover { color: #368a73; text-decoration: underline; }
.mb-situs-lain { display: inline-block; font-size: .64rem; font-weight: 700; padding: 0 .3rem; margin-right: .25rem; border-radius: 4px; background: #fff3e6; color: #b7600f; }
.mb-lainnya { font-size: .75rem; font-weight: 700; color: #234974; }
.mb-label-belum { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; background: #fff4e5; color: #b7600f; }
.mb-aksi { display: flex; gap: .4rem; padding: .6rem 1rem .9rem; }
.mb-pakai-daftar li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #f0f4f6; font-size: .85rem; }
.mb-pakai-daftar li:last-child { border-bottom: 0; }
.mb-pakai-daftar li a { font-weight: 600; color: #234974; }
.mb-pakai-daftar code { font-size: .72rem; }

/* panel "Bagian situs" di tab Website RSUD / PPID */
.mb-tata { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.mb-bagian { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding: .9rem; border: 1px solid #e4edf1; border-radius: 14px; background: #f8fbfc; }
.mb-bagian-judul { font-weight: 800; font-size: .95rem; color: #17304f; padding: .2rem .5rem .6rem; }
.mb-bagian-grup { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8a99a8; padding: .9rem .5rem .35rem; }
.mb-bagian-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; font-size: .84rem; color: #2b3a4d; }
.mb-bagian-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-bagian-item b { flex: none; min-width: 26px; text-align: center; font-size: .72rem; padding: .1rem .4rem; border-radius: 999px; background: #e7eef2; color: #456; }
.mb-bagian-item:hover { background: #eaf3f0; color: #17304f; }
.mb-bagian-item.aktif { background: #234974; color: #fff; }
.mb-bagian-item.aktif b { background: rgba(255, 255, 255, .2); color: #fff; }
.mb-bagian-belum b { background: #fff1de; color: #b7600f; }
.mb-bagian-kepala { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.1rem; margin-bottom: 1.1rem; border-radius: 12px; background: #eef6f3; border: 1px solid #d6ebe3; }
@media (max-width: 991px) {
  .mb-tata { grid-template-columns: 1fr; }
  .mb-bagian { position: static; max-height: none; display: flex; gap: .4rem; overflow-x: auto; padding: .6rem; }
  .mb-bagian-judul, .mb-bagian-grup { display: none; }
  .mb-bagian-item { flex: none; border: 1px solid #e4edf1; background: #fff; }
}

/* ---- panel "Gambar & berkas bagian ini" + kolom Berkas di daftar ---- */
.bb-panel { margin-top: 2rem; padding: 1.25rem; border: 1px solid #d6ebe3; border-radius: 14px; background: #f6fbf9; }
.bb-kepala { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.bb-sub { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6d8596; }
.bb-judul { margin: .15rem 0 0; font-size: 1.05rem; font-weight: 800; color: #17304f; }
.bb-ket { margin: .6rem 0 1rem; font-size: .82rem; color: #5a6a7e; }
.bb-status { margin-bottom: 1rem; padding: .6rem .9rem; border-radius: 8px; font-size: .84rem; font-weight: 600; }
.bb-status-info { background: #eaf2fb; color: #234974; }
.bb-status-ok { background: #e3f4ec; color: #237357; }
.bb-status-galat { background: #fdecec; color: #b42318; }
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.bb-item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e1ebef; border-radius: 12px; background: #fff; }
.bb-gambar { display: flex; align-items: center; justify-content: center; height: 115px; overflow: hidden; background: #f3f7f9; }
.bb-gambar img { max-width: 100%; max-height: 100%; }
.bb-foto img { width: 100%; height: 100%; object-fit: cover; }
.bb-grafis { padding: 12px; }
.bb-grafis img { object-fit: contain; }
.bb-ikon { padding: 18px; }
.bb-ikon img { height: 70px; width: auto; }
.bb-nama { padding: .55rem .7rem 0; font-size: .8rem; font-weight: 700; color: #071437; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-meta { padding: .15rem .7rem 0; font-size: .7rem; color: #8a99a8; }
.bb-tanda { display: inline-block; margin-left: .2rem; padding: 0 .35rem; border-radius: 4px; font-weight: 700; }
.bb-tanda-pakai { background: #e3f4ec; color: #237357; }
.bb-tanda-baru { background: #fff1de; color: #b7600f; }
.bb-aksi { display: flex; gap: .35rem; padding: .55rem .7rem .7rem; margin-top: auto; }
.bb-aksi .btn-light-primary { flex: 1; }
.bb-kosong { padding: 1.5rem; text-align: center; color: #8a99a8; font-size: .85rem; border: 1.5px dashed #d6e3e8; border-radius: 12px; background: #fff; }
.bb-sel { display: flex; align-items: center; gap: 4px; }
.bb-sel img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; border: 1px solid #e4edf1; background: #f3f7f9; }
.bb-sel img.bb-sel-ikon { object-fit: contain; padding: 5px; }
.bb-sel-jumlah { margin-left: 6px; font-size: .72rem; font-weight: 700; color: #5a6a7e; line-height: 1.25; white-space: nowrap; }
.mb-pakai li.mb-pakai-unggah::before { background: #eb8423; }
.mb-belum-tempel { margin-left: .3rem; font-size: .66rem; font-weight: 700; color: #b7600f; }

/* kotak unggah Pustaka Berkas */
.mb-unggah { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; }
.mb-unggah-tujuan { display: flex; gap: .8rem; align-items: flex-start; }
.mb-unggah-langkah { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #234974; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.mb-unggah-ke { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .3rem; font-size: .85rem; }
.mb-unggah-bagian { font-weight: 700; color: #17304f; }
.mb-unggah-kotak { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 96px; margin: 0; padding: .9rem 1rem; text-align: center; cursor: pointer;
  border: 2px dashed #b9d4cc; border-radius: 14px; background: #f6fbf9; transition: border-color .2s, background .2s; }
.mb-unggah-kotak:hover, .mb-unggah-kotak.seret { border-color: #47a88e; background: #eaf6f1; }
.mb-unggah-kotak input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mb-unggah-kotak .ki-file-up { font-size: 1.8rem; color: #47a88e; }
.mb-unggah-teks { font-size: .9rem; color: #2b3a4d; }
.mb-unggah-teks strong { color: #234974; }
.mb-unggah-batas { font-size: .74rem; color: #8a99a8; }
.mb-unggah-tombol { white-space: nowrap; }
@media (max-width: 991px) { .mb-unggah { grid-template-columns: 1fr; } }

/* ---- Kelola Dokumen ---- */
.dk-sub { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6d8596; }
.dk-judul { margin: .2rem 0 .3rem; font-size: 1.45rem; font-weight: 800; color: #17304f; }
.dk-panduan { background: #eef6f3; border: 1px solid #d6ebe3; color: #2b3a4d; font-size: .88rem; }
.dk-bagian .card-header { min-height: 58px; }
.dk-dok { border-top: 1px solid #edf2f5; }
.dk-dok:first-child { border-top: 0; }
.dk-dok > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .95rem 1.75rem; cursor: pointer; list-style: none; }
.dk-dok > summary::-webkit-details-marker { display: none; }
.dk-dok > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: .2rem; border-right: 2px solid #8a99a8; border-bottom: 2px solid #8a99a8; transform: rotate(-45deg); transition: transform .2s; }
.dk-dok[open] > summary::before { transform: rotate(45deg); }
.dk-dok > summary:hover { background: #f6fbf9; }
.dk-dok[open] > summary { background: #eef6f3; }
.dk-dok-judul { flex: 1; min-width: 200px; font-weight: 700; color: #17304f; }
.dk-dok-info { display: flex; flex-wrap: wrap; gap: .3rem; }
.dk-chip { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; background: #e8f0f5; color: #234974; }
.dk-chip-tautan { background: #eef2ff; color: #4054b2; }
.dk-chip-kosong { background: #fff1de; color: #b7600f; }
.dk-isi { padding: 1rem 1.75rem 1.5rem; background: #fbfdfd; border-top: 1px solid #edf2f5; }
.dk-blok { padding: 1rem 1.1rem; margin-bottom: 1rem; border: 1px solid #e4edf1; border-radius: 12px; background: #fff; }
.dk-blok-judul { font-weight: 800; font-size: .9rem; color: #17304f; margin-bottom: .75rem; }
.dk-berkas { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .6rem 0; border-bottom: 1px dashed #e4edf1; }
.dk-berkas:last-of-type { border-bottom: 0; }
.dk-label { width: 130px; font-weight: 700; }
.dk-berkas-nama { flex: 1; min-width: 180px; display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: #234974; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-ganti > summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: #368a73; }
.dk-ganti[open] { flex-basis: 100%; order: 5; }
.dk-pilih-berkas { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .4rem; }
.dk-tambah { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; padding: .8rem .9rem; border: 2px dashed #b9d4cc; border-radius: 12px; background: #f6fbf9; }
.dk-tambah .dk-pilih-berkas { flex: 1; min-width: 280px; margin-top: 0; }
.dk-tambah-judul { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; font-size: .85rem; color: #237357; }
.dk-hapus { text-align: right; }
.dk-dok-baru > summary .dk-dok-judul { color: #237357; display: inline-flex; align-items: center; gap: .4rem; }
.dk-riwayat { position: sticky; top: 90px; }
.dk-riwayat-daftar { list-style: none; margin: 0; padding: 0; }
.dk-riwayat-daftar li { padding: .6rem 0; border-bottom: 1px solid #f0f4f6; }
.dk-riwayat-daftar li:last-child { border-bottom: 0; }
@media (max-width: 767px) { .dk-pilih-berkas { grid-template-columns: 1fr; } .dk-dok > summary, .dk-isi { padding-left: 1rem; padding-right: 1rem; } }
.dk-bagian .card-header { gap: .75rem; flex-wrap: wrap; }
.dk-bagian-ubah { position: relative; margin-left: auto; }
.dk-bagian-ubah > summary { list-style: none; }
.dk-bagian-ubah > summary::-webkit-details-marker { display: none; }
.dk-bagian-ubah-isi { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: min(460px, 80vw); padding: 1rem; border: 1px solid #e4edf1; border-radius: 12px; background: #fff; box-shadow: 0 14px 34px -14px rgba(23, 48, 79, .35); }
.dk-kosong-bagian { padding: 1rem 1.75rem; color: #8a99a8; font-size: .85rem; }
.dk-kaki { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.dk-jenis { flex: 1; min-width: 260px; }
.dk-jenis > summary { cursor: pointer; font-size: .8rem; font-weight: 700; color: #6d8596; padding: .45rem 0; }
.dk-bagian-baru { border: 2px dashed #b9d4cc; background: #f6fbf9; }
.dk-bagian-baru .card-header { border-bottom-color: #d6ebe3; }
[data-dk-untuk][hidden] { display: none !important; }
.isian-unggah-baris { display: flex; gap: .5rem; align-items: center; }
.isian-unggah-baris .form-control { flex: 1; min-width: 0; }
.isian-unggah-status { display: block; margin-top: .35rem; font-size: .78rem; font-weight: 600; color: #234974; }
.isian-unggah-status.ok { color: #237357; }
.isian-unggah-status.galat { color: #b42318; }

/* ---- Profil Dokter (CMS) ---- */
.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
.dr-kartu { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e4edf1; border-radius: 14px; background: #fff; transition: box-shadow .2s, transform .2s; }
.dr-kartu:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(23, 48, 79, .35); }
.dr-kartu.dr-sembunyi { opacity: .6; }
.dr-foto { aspect-ratio: 1 / 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #234974 0%, #2f6a86 55%, #47a88e 100%); }
.dr-foto.dr-p { background: linear-gradient(150deg, #2f6a86 0%, #47a88e 60%, #8fcfb9 100%); }
.dr-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dr-foto span { font-size: 2.6rem; font-weight: 800; color: rgba(255, 255, 255, .92); letter-spacing: .04em; }
.dr-foto-besar { border-radius: 16px; aspect-ratio: 4 / 4.4; }
.dr-foto-besar span { font-size: 4rem; }
.dr-badan { padding: .8rem .9rem 1rem; }
.dr-sps { display: inline-block; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; background: #e7f4f0; color: #368a73; }
.dr-nama { margin-top: .45rem; font-weight: 800; font-size: .9rem; color: #17304f; line-height: 1.35; }
.dr-poli { margin-top: .25rem; font-size: .75rem; color: #6d8596; }
.dr-tanda { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .6rem; }
.dr-info { padding: 1.25rem; border: 1px solid #e4edf1; border-radius: 14px; background: #fbfdfd; }
.dr-info-sub { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a99a8; }
.dr-info-nama { margin: .3rem 0 .6rem; font-size: 1.35rem; font-weight: 800; color: #17304f; }

/* ============================================================ latar bergerak panel admin (dominan putih)
 * Sama dengan latar situs web & PPID: lapisan tetap di belakang isi (tidak menerima klik). Dibuat oleh cms.js. */
html.ta-latar-aktif { background: #fbfdfd; }
html.ta-latar-aktif body, html.ta-latar-aktif .app-default { background-color: transparent !important; }
.ta-latar { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -20; overflow: hidden; pointer-events: none; }
.ta-latar i { position: absolute; display: block; }
.ta-latar .ta-lapis { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

/* pola titik */
.ta-latar .ta-titik { top: -56px; right: -56px; bottom: -56px; left: -56px; opacity: .55;
  background-image: radial-gradient(rgba(35, 73, 116, .22) 1.2px, transparent 1.7px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, transparent 18%, #000 85%); mask-image: radial-gradient(ellipse at 50% 45%, transparent 18%, #000 85%);
  animation: ta-geser-titik 18s linear infinite; }
/* cahaya lembut */
.ta-latar .ta-cahaya { width: 46vmax; height: 46vmax; border-radius: 50%; }
.ta-latar .ta-cahaya-1 { top: -18vmax; right: -12vmax; background: radial-gradient(circle, rgba(71, 168, 142, .22), transparent 65%); animation: ta-melayang-a 19s ease-in-out infinite; }
.ta-latar .ta-cahaya-2 { bottom: -20vmax; left: -14vmax; background: radial-gradient(circle, rgba(35, 73, 116, .17), transparent 65%); animation: ta-melayang-b 23s ease-in-out infinite; }
.ta-latar .ta-cahaya-3 { top: 38%; left: 58%; width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(235, 132, 35, .10), transparent 65%); animation: ta-melayang-c 27s ease-in-out infinite; }
/* lingkaran isi */
.ta-latar .ta-bulat { border-radius: 50%; background: linear-gradient(145deg, rgba(35, 73, 116, .08), rgba(71, 168, 142, .08)); }
.ta-latar .ta-bulat-1 { width: 300px; height: 300px; top: -70px; right: 7%; animation: ta-melayang-b 16s ease-in-out infinite; }
.ta-latar .ta-bulat-2 { width: 380px; height: 380px; bottom: -160px; left: -80px; animation: ta-melayang-a 21s ease-in-out infinite; }
.ta-latar .ta-bulat-3 { width: 90px; height: 90px; top: 62%; right: 3%; animation: ta-melayang-c 12s ease-in-out infinite; }
/* cincin */
.ta-latar .ta-cincin { border-radius: 50%; border: 16px solid rgba(71, 168, 142, .17); }
.ta-latar .ta-cincin-1 { width: 118px; height: 118px; top: 22%; left: 4%; animation: ta-melayang-a 13s ease-in-out infinite; }
.ta-latar .ta-cincin-2 { width: 64px; height: 64px; bottom: 16%; right: 13%; border-width: 10px; border-color: rgba(235, 132, 35, .18); animation: ta-melayang-b 11s ease-in-out infinite; }
.ta-latar .ta-denyut { width: 300px; height: 300px; top: 44%; left: -90px; border-radius: 50%; border: 2px solid rgba(71, 168, 142, .35); opacity: 0; animation: ta-denyut 7s ease-out infinite; }
.ta-latar .ta-denyut-2 { top: 8%; left: auto; right: -110px; border-color: rgba(35, 73, 116, .28); animation-delay: 3.5s; }
/* tanda plus khas logo rumah sehat */
/* lambang + resmi logo RSUD (berkas asli, hanya diperkecil) */
.ta-latar .ta-plus { background: url(../img/lambang-rsud.png) center / contain no-repeat; }
.ta-latar .ta-plus-1 { width: 58px; height: 58px; top: 14%; left: 11%; opacity: .40; animation: ta-putar-melayang 17s ease-in-out infinite; }
.ta-latar .ta-plus-2 { width: 40px; height: 40px; top: 72%; left: 7%; opacity: .32; animation: ta-putar-melayang 14s ease-in-out -5s infinite; }
.ta-latar .ta-plus-3 { width: 50px; height: 50px; top: 30%; right: 8%; opacity: .36; animation: ta-putar-melayang 20s ease-in-out -9s infinite; }
.ta-latar .ta-plus-4 { width: 34px; height: 34px; top: 84%; right: 24%; opacity: .34; animation: ta-putar-melayang 12s ease-in-out -3s infinite; }
.ta-latar .ta-plus-5 { width: 30px; height: 30px; top: 9%; left: 46%; opacity: .28; animation: ta-putar-melayang 15s ease-in-out -7s infinite; }

@keyframes ta-geser-titik { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(28px, 56px, 0); } }
@keyframes ta-melayang-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(34px, 46px, 0) scale(1.07); } }
@keyframes ta-melayang-b { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(-42px, -26px, 0); } 66% { transform: translate3d(18px, -48px, 0); } }
@keyframes ta-melayang-c { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-60px, -40px, 0) scale(1.12); } }
@keyframes ta-putar-melayang { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(22px, -38px, 0) rotate(8deg); } }
@keyframes ta-denyut { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.5); } }

@media (max-width: 767px) {
  .ta-latar .ta-bulat-1 { width: 190px; height: 190px; }
  .ta-latar .ta-bulat-2 { width: 230px; height: 230px; }
  .ta-latar .ta-cincin-1 { width: 80px; height: 80px; border-width: 11px; }
  .ta-latar .ta-plus-4, .ta-latar .ta-plus-5, .ta-latar .ta-bulat-3, .ta-latar .ta-denyut-2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ta-latar i { animation: none !important; } .ta-latar .ta-denyut { display: none; } .ta-latar .ta-lapis { transition: none; } }
@media print { .ta-latar { display: none; } }

/* di panel admin dibuat lebih lembut & dimulai di sebelah kanan sidebar */
.ta-latar { opacity: .85; }
.card { box-shadow: 0 8px 26px -16px rgba(23, 48, 79, .28); }
@media (min-width: 992px) { .ta-latar { left: var(--bs-app-sidebar-width, 265px); } .ta-latar .ta-cincin-1 { left: 1%; } .ta-latar .ta-denyut { left: -120px; } }

/* Lampiran halaman */
.lp-tombol { white-space: nowrap; }
@media (max-width: 1599px) { .lp-tombol .lp-teks { display: none; } }
.lp-link { display: grid; grid-template-columns: 2fr 3fr; gap: .5rem; margin-bottom: .5rem; }
.lp-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #edf1f5; }
.lp-item:last-of-type { border-bottom: 0; }
.lp-item.lp-sembunyi .lp-gambar { opacity: .45; }
.lp-gambar { flex: 0 0 84px; height: 84px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #eef3f7; }
.lp-gambar img { width: 100%; height: 100%; object-fit: cover; }
.lp-gambar i { font-size: 2rem; color: #244974; }
.lp-isi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.lp-aksi { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 767px) { .lp-link { grid-template-columns: 1fr; } .lp-item { gap: .6rem; } .lp-gambar { flex-basis: 56px; height: 56px; } }

/* Kelola Isi */
.ki-cari { flex: 1; min-width: 220px; max-width: 380px; }
.ki-kepala { margin: 1.6rem 0 .4rem; padding-bottom: .4rem; border-bottom: 2px solid #e6eef4; font-weight: 800; color: #244974; }
.ki-butir { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .75rem; align-items: start; padding: .6rem 0; border-bottom: 1px solid #f0f3f6; }
.ki-butir[hidden], .ki-kepala[hidden] { display: none; }
.ki-butir > .dk-chip { justify-self: start; margin-top: .45rem; }
.ki-butir.ki-berubah { background: #fff9ec; box-shadow: -6px 0 0 #fff9ec, 6px 0 0 #fff9ec; }
.ki-butir.ki-berubah .ki-isian { border-color: #eb8423; }
.ki-butir textarea { resize: vertical; }
.ki-alamat { display: flex; gap: .75rem; align-items: flex-start; min-width: 0; }
.ki-gambar { flex: 0 0 64px; height: 48px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; background: #e8eef3; }
.ki-gambar img { width: 100%; height: 100%; object-fit: contain; }
.ki-gambar i { font-size: 1.5rem; color: #244974; }
.ki-isi { flex: 1; min-width: 0; }
.card-footer.ki-kaki { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; box-shadow: 0 -8px 20px -16px rgba(23, 48, 79, .5); }
@media (max-width: 767px) { .ki-butir { grid-template-columns: 1fr; gap: .35rem; } .ki-butir > .dk-chip { margin-top: 0; } .ki-gambar { flex-basis: 44px; height: 38px; } }

/* Tambah konten */
.sp-tambah > summary { cursor: pointer; list-style: none; }
.sp-tambah > summary::-webkit-details-marker { display: none; }
.sp-tambah:not([open]) > summary { border-bottom: 0; }
.sp-baris { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid #f0f3f6; }
.sp-baris.aktif { background: #fff9ec; }
.sp-ringkas { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.sp-label { display: flex; align-items: flex-start; gap: .4rem; }
.sp-plus { width: 24px; height: 24px; margin-top: .35rem; border: 1px dashed #8fb9d1; border-radius: 6px; line-height: 1; font-weight: 800; color: #244974; background: #fff; }
.sp-plus:hover, .sp-plus:focus-visible { color: #fff; background: #244974; border-style: solid; }
.sp-label > .dk-chip { margin-top: .45rem; }

/* Struktur Organisasi: layar edit */
.so-daftar { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.so-daftar.so-lebar { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.so-daftar:empty { display: none; }
.so-kartu { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e3ebf2; border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.so-kartu:focus-within { border-color: #47a88e; box-shadow: 0 16px 32px -24px rgba(23, 48, 79, .55); }
.so-gambar { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #f2f6f9; }
.so-lebar .so-gambar { aspect-ratio: 16 / 10; }
.so-gambar img { width: 100%; height: 100%; object-fit: contain; }
.so-gambar span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #8a9bab; font-weight: 600; font-size: 12px; }
.so-gambar span i { font-size: 34px; }
.so-isian { flex: 1; padding: 14px 14px 6px; }
.so-isian > label { display: block; margin: 0 0 4px; font-weight: 700; font-size: 11.5px; color: #5b6f82; }
.so-isian > .form-control, .so-isian > .isian-unggah { margin-bottom: 12px; }
.so-isian textarea { resize: vertical; }
.so-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid #eef2f6; }
.so-aksi .so-tampil { margin: 0 0 0 4px; gap: 6px; }
.so-aksi .so-tampil .form-check-input { width: 36px; height: 20px; }
.so-aksi .so-hapus { margin-left: auto; }
.so-kartu:not(.so-dihapus) .so-hapus { padding-left: 10px !important; padding-right: 6px !important; }
.so-kartu:not(.so-dihapus) .so-hapus span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.so-kartu.so-dihapus { border-style: dashed; border-color: #f1416c; }
.so-kartu.so-dihapus .so-gambar, .so-kartu.so-dihapus .so-isian { opacity: .35; }
.so-kaki { position: sticky; bottom: 0; z-index: 20; box-shadow: 0 -10px 24px -18px rgba(23, 48, 79, .45); }
.so-belum { color: #b5670d !important; font-weight: 700; }
@media (max-width: 575px) { .so-daftar, .so-daftar.so-lebar { grid-template-columns: 1fr; } }

/* Teks & Gambar */
.tk-grup > summary { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.tk-gambar { display: flex; align-items: flex-start; gap: 14px; }
.tk-gambar > a img { width: 120px; height: 68px; border-radius: 8px; object-fit: cover; background: #f2f6f9; }
.tk-gambar > div { flex: 1; min-width: 0; }
@media (max-width: 575px) { .tk-gambar { flex-direction: column; } }
.tk-warna { display: flex; align-items: center; gap: 10px; }
.tk-warna > input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid #dbe6ee; border-radius: 8px; background: #fff; cursor: pointer; }
.tk-warna > input[type=text] { max-width: 140px; }
