/* ============================================================================
 * sinta.css — tema SINTA Mahulu, arah "Jakarta" (plan/pratinjau-3 nomor 6)
 * ============================================================================
 * Satu berkas untuk seluruh halaman. Tidak ada Bootstrap: halaman peta tidak
 * memakainya, dan yang dibutuhkan halaman tabel/formulir cukup ditulis di sini.
 *
 * CSP aplikasi `style-src 'self'`: atribut style="" dan <style> inline DIABAIKAN
 * browser tanpa pesan. Warna per baris (titik bidang) dipasang sinta.js lewat
 * CSSOM dari atribut data-warna — lihat .titik dan [data-warna].
 *
 * Font di-vendor di /assets/vendor/fonts/ (fonts.css); tidak ada sumber luar.
 * ------------------------------------------------------------------------- */

:root {
  --bg: #F8FAFC; --kartu: #FFFFFF; --slate: #0F172A; --slate-2: #1E293B;
  --ink: #0F172A; --muted: #64748B; --line: #E2E8F0; --line-2: #CBD5E1;
  --emerald: #059669; --emerald-2: #047857; --emerald-soft: #D1FAE5;
  --merah: #DC2626; --merah-soft: #FEE2E2; --kuning-soft: #FEF3C7; --biru-soft: #DBEAFE;
  --k-baik: #22C55E; --k-sedang: #3B82F6; --k-ringan: #F59E0B; --k-berat: #EF4444;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 10px; --radius-kecil: 8px;
  --h: 40px; --h-kecil: 32px;   /* tinggi kontrol: satu ukuran di luar tabel, satu di dalam tabel */
  --bayang: 0 4px 12px rgba(15, 23, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased;
  display: grid; grid-template-rows: 60px 1fr auto; grid-template-columns: minmax(0, 1fr); min-height: 100%;
}
body.peta { grid-template-rows: 60px 1fr; }
a { color: var(--emerald-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
[hidden] { display: none !important; }
code, .mono { font-family: var(--mono); font-size: .93em; }

/* --- Kop (header) --------------------------------------------------------- */
.kop {
  background: var(--slate); color: #fff; display: flex; align-items: center; gap: 20px;
  padding: 0 20px; position: relative; z-index: 1100;
}
.merek { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.merek i { width: 30px; height: 30px; border-radius: 9px; background: var(--emerald); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 14px; flex: none; }
.merek small { display: block; font-weight: 400; font-size: 11px; color: #94A3B8; letter-spacing: 0; line-height: 1.1; }
.nav-utama { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; }
.pil { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 0; border-radius: 8px; background: transparent; color: #CBD5E1; text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.pil:hover { color: #fff; }
.pil[aria-current="page"], .pil.aktif { background: #fff; color: var(--slate); }
.pil-grup { position: relative; }
.pil .panah { font-size: 10px; opacity: .8; }
.kanan { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tahun-form { display: flex; align-items: center; gap: 6px; }
.tahun { font-weight: 600; font-size: 13px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 0 10px; height: 36px; cursor: pointer; }
.tahun option { color: var(--ink); }
.pengguna-grup { position: relative; }
.pengguna { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.15; text-align: left; background: transparent; border: 0; color: #fff; padding: 4px 6px 4px 4px; border-radius: 10px; cursor: pointer; }
.pengguna:hover { background: rgba(255,255,255,.06); }
.pengguna i { width: 32px; height: 32px; border-radius: 9px; background: #F59E0B; color: var(--slate); display: grid; place-items: center; font-weight: 800; font-style: normal; font-size: 12px; flex: none; }
.pengguna small { display: block; color: #94A3B8; font-size: 11px; }
.burger { display: none; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 16px; }

/* Menu turun (Kelola data, akun) */
.menu-turun {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: var(--kartu); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.14); padding: 6px; z-index: 1200;
}
.menu-turun.kanan-rata { left: auto; right: 0; }
.menu-turun a, .menu-turun button.item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 13.5px; text-align: left; cursor: pointer; }
.menu-turun a:hover, .menu-turun button.item:hover { background: var(--bg); }
.menu-turun a[aria-current="page"] { background: var(--emerald-soft); color: var(--emerald-2); font-weight: 600; }
.menu-kelompok h4 { margin: 8px 10px 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.menu-kelompok + .menu-kelompok, .menu-turun .pisah { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
.akun-kepala { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.akun-kepala b { display: block; font-size: 14px; }
.akun-kepala span { display: block; color: var(--muted); font-size: 12.5px; }
.menu-turun button.keluar { color: var(--merah); }

/* Menu HP (≤ 860 px) */
body { position: relative; }
.menu-hp { position: absolute; top: 56px; left: 0; right: 0; z-index: 1100; max-height: calc(100vh - 56px); overflow: auto; background: var(--slate-2); color: #fff; padding: 8px 14px 14px; display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 32px rgba(15,23,42,.3); }
.menu-hp a, .menu-hp button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; color: #E2E8F0; text-decoration: none; font-weight: 600; border-radius: 8px; cursor: pointer; }
.menu-hp a[aria-current="page"] { background: #fff; color: var(--slate); }
.menu-hp h4 { margin: 10px 12px 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }
.menu-hp .anak { padding-left: 24px; font-weight: 500; }
.menu-hp .keluar { color: #FCA5A5; }

/* --- Kotak cari (dipakai bilah alat daftar dan panel peta) ------------------ */
.cari { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); height: var(--h); padding: 0 12px; width: 210px; flex: none; background: #fff; }
.cari input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; }
.cari svg { width: 15px; height: 15px; color: var(--muted); flex: none; }

/* --- Peta aset (tiket 22–25, 27, 28) --------------------------------------- */
.peta-layar { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 0; }
.saring { background: var(--kartu); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.saring-kepala { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.saring-kepala h2 { font-size: 15px; font-weight: 700; margin: 0; flex: 1; }
.tautan { border: 0; background: transparent; color: var(--emerald-2); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 2px 4px; }
.tautan:hover { text-decoration: underline; }
.tutup-saring { display: none; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.saring-isi { overflow: auto; padding: 12px 16px 24px; }
.saring section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.saring section:last-child { border-bottom: 0; }
.saring h3 { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; justify-content: space-between; }
.saring h3 .tautan { text-transform: none; letter-spacing: 0; }
.saring .label-kecil { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.saring .cari { width: 100%; }
.cari-wadah { position: relative; }
.saran { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--kartu); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--bayang); list-style: none; margin: 0; padding: 4px; z-index: 700; max-height: 320px; overflow: auto; }
.saran li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.saran li:hover, .saran li[aria-selected="true"] { background: var(--bg); }
.saran li i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.saran li.kecamatan i { background: var(--slate); } .saran li.desa i { background: #F59E0B; } .saran li.aset i { background: var(--emerald); }
.saran li small { display: block; color: var(--muted); font-size: 12px; }
.saran li.kosong, .saran li.lanjut { grid-template-columns: 1fr; color: var(--muted); cursor: default; }
.saran li.lanjut { color: var(--emerald-2); font-weight: 600; cursor: pointer; text-align: center; }
.opsi { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.opsi input { accent-color: var(--emerald); width: 16px; height: 16px; margin: 0; }
.opsi b { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 12px; }
.opsi.pudar { opacity: .5; }
.jenis-daftar .opsi { grid-template-columns: auto 1fr auto; }
.jenis-daftar { max-height: 240px; overflow: auto; }
.chip-grup { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-kondisi { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.chip-kondisi b { font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: 11.5px; }
.chip-kondisi[aria-pressed="true"] { background: var(--bg); border-color: var(--slate); }
.chip-kondisi[aria-pressed="false"] { opacity: .55; }
.titik { width: 8px; height: 8px; border-radius: 50%; background: var(--warna, var(--muted)); flex: none; display: inline-block; }
.k-baik { background: var(--k-baik); } .k-sedang { background: var(--k-sedang); } .k-ringan { background: var(--k-ringan); } .k-berat { background: var(--k-berat); }
.titik.tidak-ada { background: #E1E5E2; border: 1px solid var(--line-2); }

.peta-wadah { position: relative; min-height: 0; background: #EEF2F6; overflow: hidden; }
#peta { position: absolute; inset: 0; }
.kotak-jumlah { position: absolute; left: 16px; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--bayang); z-index: 1001; display: grid; }
.kotak-jumlah b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kotak-jumlah span { font-size: 12.5px; color: var(--muted); }
.kotak-jumlah small { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.legenda { position: absolute; left: 16px; bottom: 16px; width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--bayang); z-index: 1001; font-size: 13px; }
.legenda-kepala { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.legenda-kepala b { font-size: 13px; }
.legenda-isi { padding: 0 14px 12px; }
.legenda.ciut .legenda-isi { display: none; }
.legenda h4 { margin: 4px 0 6px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.legenda .baris { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.legenda-tematik { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.legenda-tematik h4 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 12.5px; }
.legenda-tematik p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.legenda .skala { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #F4EFD9, #1C6A48); }
.legenda .skala-angka { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin: 2px 0 6px; font-family: var(--mono); }

/* Penanda & label Leaflet */
.label-kecamatan { background: transparent; border: 0; box-shadow: none; text-align: center; font-family: var(--font); color: var(--slate); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 6px #fff; pointer-events: none; }
.label-kecamatan b { display: block; font-size: 13px; font-weight: 700; }
.label-kecamatan span { display: block; font-size: 11px; color: var(--muted); }
.label-kecamatan .tematik-p { color: #065F46; font-weight: 600; }
.label-desa { background: transparent; border: 0; box-shadow: none; font-family: var(--font); font-size: 11px; color: var(--slate); text-shadow: 0 0 3px #fff, 0 0 5px #fff; padding: 0 0 0 6px; }
.label-desa::before { display: none; }
.tooltip-aset { font-family: var(--font); background: var(--slate); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; box-shadow: var(--bayang); font-size: 12.5px; }
.tooltip-aset::before { border-top-color: var(--slate); }
.tooltip-aset b { display: block; font-weight: 700; }
.tooltip-aset span { color: #CBD5E1; font-size: 12px; }
.tooltip-kecamatan { font-family: var(--font); font-size: 12.5px; border-radius: 8px; }
.tooltip-kecamatan b { display: block; }

/* Panel detail (T27) */
.panel-detail { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.16); z-index: 1002; display: flex; flex-direction: column; }
.tutup-detail { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; z-index: 2; }
.panel-isi { overflow: auto; padding: 16px 18px 20px; font-size: 13.5px; }
.detail-kepala { display: flex; align-items: center; gap: 10px; padding-right: 40px; }
.detail-jenis { color: var(--muted); font-size: 13px; }
.detail-nama { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 8px 0 2px; line-height: 1.25; padding-right: 32px; }
.detail-kode { margin: 0 0 12px; color: var(--muted); }
.kotak-status { border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 13px; }
.kotak-status b { display: block; margin-bottom: 2px; }
.kotak-status p { margin: 0; }
.kotak-status.berakhir { background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.kotak-status.baru { background: var(--emerald-soft); color: #065F46; }
.galeri-detail { margin: 0 0 14px; }
.galeri-utama { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg); aspect-ratio: 4 / 3; cursor: zoom-in; }
.galeri-utama img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeri-panah { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--slate); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--bayang); }
.galeri-panah.kiri { left: 10px; } .galeri-panah.kanan { right: 10px; }
.galeri-perbesar { position: absolute; right: 10px; top: 10px; border: 0; border-radius: 8px; background: rgba(15,23,42,.8); color: #fff; font-weight: 600; font-size: 12.5px; padding: 6px 10px; cursor: pointer; }
.galeri-ket { position: absolute; left: 10px; bottom: 10px; background: rgba(15,23,42,.8); color: #fff; font-size: 11.5px; padding: 4px 8px; border-radius: 6px; }
.galeri-jalur { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.galeri-thumb { flex: 0 0 calc((100% - 12px) / 3); aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; background: var(--bg); cursor: pointer; scroll-snap-align: center; }
.galeri-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeri-thumb.aktif { border-color: var(--emerald); }
.kondisi-kotak { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
.kondisi-kotak small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 4px; }
.kondisi-kotak b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.bar-fungsi { display: block; height: 6px; border-radius: 999px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar-fungsi s { display: block; height: 100%; width: var(--lebar, 0%); background: var(--emerald); }
.rincian { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0 0 14px; }
.rincian dt { color: var(--muted); }
.rincian dd { margin: 0; }
.detail-h3 { font-size: 13.5px; font-weight: 700; margin: 14px 0 6px; display: flex; justify-content: space-between; align-items: baseline; }
.detail-h3 small { color: var(--muted); font-weight: 400; font-size: 12px; }
.evaluasi { background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 0; color: var(--ink); }
.dokumen-daftar { margin: 0; padding-left: 18px; }
.dokumen-daftar li { padding: 2px 0; }
.panel-isi .riwayat li p { font-size: 13px; }
.detail-aksi { margin: 16px 0 0; }
.detail-aksi .tombol { width: 100%; }

/* Layar penuh galeri (T23) */
.layar-penuh { position: fixed; inset: 0; background: rgba(2, 6, 23, .94); z-index: 2000; display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lp-atas { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.lp-atas b { display: block; font-size: 15px; }
.lp-atas span { font-size: 12.5px; color: #CBD5E1; }
.lp-atas button { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; border-radius: 10px; font-size: 22px; cursor: pointer; }
.lp-tengah { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 60px; }
.lp-tengah img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lp-panah { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; cursor: pointer; }
.lp-panah.kiri { left: 14px; } .lp-panah.kanan { right: 14px; }
.lp-thumbs { display: flex; gap: 6px; justify-content: center; padding: 12px 20px 18px; overflow-x: auto; }
.lp-thumbs button { flex: 0 0 72px; height: 54px; border: 2px solid transparent; border-radius: 6px; padding: 0; overflow: hidden; background: #0F172A; cursor: pointer; }
.lp-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-thumbs button.aktif { border-color: #34D399; }

.tombol-filter { display: none; }
.leaflet-container { font-family: var(--font); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: var(--bayang) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; color: var(--ink) !important; }
.leaflet-control-attribution { font-family: var(--font); font-size: 10.5px; }
.flash-mengambang { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1050; width: min(560px, calc(100% - 40px)); margin: 0; }

/* --- Isi halaman biasa ----------------------------------------------------- */
.isi { padding: 24px 20px 32px; max-width: 1360px; width: 100%; margin: 0 auto; }
.judul { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.judul > :first-child { flex: 1 1 320px; min-width: 0; }
.judul h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.judul p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.kartu { background: var(--kartu); border: 1px solid var(--line); border-radius: var(--radius); }
.kartu-isi { padding: 20px; }
.alat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.alat .cari { width: 260px; }
.alat .spasi { flex: 1; }
.pilih { height: var(--h); border: 1px solid var(--line-2); border-radius: var(--radius-kecil); background: #fff; padding: 0 12px; font-size: 13.5px; color: var(--ink); }
.catatan-peran { background: var(--emerald-soft); color: var(--emerald-2); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* Tombol */
.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tombol:hover { background: var(--bg); }
.tombol.utama { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.tombol.utama:hover { background: var(--emerald-2); }
.tombol.bahaya { color: var(--merah); border-color: #FECACA; }
.tombol.bahaya:hover { background: var(--merah-soft); }
.tombol.kecil { height: var(--h-kecil); padding: 0 10px; font-size: 12.5px; }
.tombol:disabled, .tombol[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.tombol.tautan { border: 0; background: transparent; color: var(--emerald-2); padding: 0 6px; }
form.sebaris { display: inline; }
.tip { display: inline-block; }

/* Tabel */
.tabel-gulung { overflow-x: auto; }
/* Tabel sebagai anak pertama/terakhir kartu: pembungkusnya ikut radius kartu (kartu sendiri tidak memotong, agar dropdown bisa keluar) */
.kartu > .tabel-gulung:first-child { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden auto; }
.kartu > .tabel-gulung:last-child { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); overflow: hidden auto; }
.kartu > .tabel-gulung:only-child { border-radius: calc(var(--radius) - 1px); }
table.tabel { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabel th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.tabel th.angka, .tabel td.angka { text-align: right; }
.tabel td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel tbody tr:hover td { background: #FAFBFD; }
.tabel .sub { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tabel td.aksi { white-space: nowrap; text-align: right; }
/* Tombol berteks dan tombol ikon sejajar: inline-flex bawaan rata garis dasar, tombol ikon tanpa teks garis dasarnya di tepi bawah → Ubah turun 3 px. */
.tabel td.aksi .tombol, .tabel td.aksi form.sebaris { vertical-align: middle; }
.tabel td.aksi .tombol:not(.ikon) { min-width: 64px; }
.tabel td.aksi .tombol + .tombol, .tabel td.aksi .tombol + form, .tabel td.aksi form + .tombol { margin-left: 6px; }
.kosong { padding: 40px 20px; text-align: center; color: var(--muted); }
.lencana { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); margin: 1px 2px 1px 0; white-space: nowrap; }
.lencana.aktif { background: var(--emerald-soft); color: var(--emerald-2); border-color: transparent; }
.lencana.nonaktif { background: var(--merah-soft); color: #991B1B; border-color: transparent; }
.lencana.peran { background: var(--biru-soft); color: #1E40AF; border-color: transparent; }
.halaman-kaki { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.paginasi { display: flex; gap: 4px; }
.paginasi a, .paginasi span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
.paginasi span.kini { background: var(--slate); color: #fff; border-color: var(--slate); }
.paginasi span.titik { border: 0; background: transparent; color: var(--muted); }
.paginasi a:hover { background: var(--bg); }

/* Formulir */
.formulir { max-width: 640px; }
.isian { margin-bottom: 18px; }
.isian label, .isian .label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.isian label .opsional { font-weight: 400; color: var(--muted); }
.isian input[type="text"], .isian input[type="password"], .isian input[type="number"], .isian input[type="date"], .isian select, .isian textarea {
  display: block; width: 100%; height: var(--h); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); background: #fff; color: var(--ink); font-size: 14px;
}
.isian textarea { height: auto; padding: 10px 12px; min-height: 90px; }
.isian input:hover, .isian select:hover { border-color: #94A3B8; }
.isian input:focus, .isian select:focus, .isian textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); }
.isian input:disabled, .isian select:disabled { background: var(--bg); color: var(--muted); }
.isian .bantuan { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.isian-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.radio-baris { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.radio-baris label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px; margin: 0; }
.radio-baris input { accent-color: var(--emerald); width: 16px; height: 16px; margin: 0; }
.aksi-form { display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.sandi-grup { position: relative; }
.sandi-grup input { padding-right: 44px !important; }
.sandi-grup button { position: absolute; right: 4px; top: 4px; height: calc(var(--h) - 8px); width: 36px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.sandi-grup button:hover { background: var(--bg); color: var(--ink); }
.sandi-grup svg { width: 18px; height: 18px; }

/* Dropdown kotak centang (Bidang untuk Operator) */
.centang-turun { position: relative; }
.centang-turun > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: var(--h); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); background: #fff; text-align: left; font-size: 14px; cursor: pointer; }
.centang-turun > button:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.centang-turun > button .panah { color: var(--muted); font-size: 11px; }
.centang-turun .daftar { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--bayang); padding: 6px; z-index: 20; max-height: 280px; overflow: auto; }
.centang-turun .daftar label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: 14px; margin: 0; cursor: pointer; }
.centang-turun .daftar label:hover { background: var(--bg); }
.centang-turun .daftar label.semua { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; font-weight: 600; }
.centang-turun .daftar input { accent-color: var(--emerald); width: 16px; height: 16px; margin: 0; }

/* Flash */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid transparent; }
.flash.sukses { background: var(--emerald-soft); color: #065F46; }
.flash.galat { background: var(--merah-soft); color: #991B1B; }
.flash.info { background: var(--biru-soft); color: #1E3A8A; }
.flash.peringatan { background: var(--kuning-soft); color: #92400E; }
.flash .ikon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.flash .pesan { flex: 1; white-space: pre-line; }
body.peta .flash-mengambang { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 600; width: min(560px, calc(100% - 40px)); margin: 0; box-shadow: var(--bayang); }
body.peta .flash-mengambang .flash { margin: 0 0 8px; }

/* Dialog konfirmasi */
dialog.konfirmasi { border: 0; border-radius: 14px; padding: 0; width: min(420px, calc(100% - 32px)); box-shadow: 0 24px 60px rgba(15,23,42,.25); }
dialog.konfirmasi::backdrop { background: rgba(15, 23, 42, .45); }
dialog.konfirmasi .badan { padding: 22px 22px 18px; }
dialog.konfirmasi h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
dialog.konfirmasi p { margin: 0; color: var(--muted); font-size: 13.5px; }
dialog.konfirmasi .aksi { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 18px; }

/* Halaman galat */
.galat-halaman { text-align: center; padding: 60px 20px; }
.galat-halaman .kode { font-size: 56px; font-weight: 800; letter-spacing: -.04em; color: var(--line-2); line-height: 1; }
.galat-halaman h1 { font-size: 22px; margin: 10px 0 6px; }
.galat-halaman p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }

/* Kaki */
.kaki { padding: 14px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }
body.peta .kaki { display: none; }

/* --- Halaman masuk: kartu dua sisi (feedback/revisi_login pratinjau 5) -------- */
body.masuk { display: grid; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 100%; padding: 32px 16px; position: relative; }
.masuk-latar { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: radial-gradient(circle, var(--line-2) 1px, transparent 1.2px); background-size: 22px 22px; }
.masuk-wadah { position: relative; width: min(100%, 880px); min-width: 0; }
.masuk-kartu { display: grid; grid-template-columns: 1fr 1fr; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(15,23,42,.35); }
.masuk-kiri { background: var(--slate); color: #fff; padding: 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; min-width: 0; }
.masuk-kiri .kontur { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }
.masuk-kiri .merek, .masuk-judul { position: relative; }
.masuk-kiri .merek i { width: 32px; height: 32px; }
.masuk-judul { margin-top: auto; }
.masuk-judul h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.masuk-judul h1 span { color: #6EE7B7; }
.masuk-judul p { font-size: 14px; line-height: 1.55; color: #CBD5E1; margin: 0 0 20px; }
.masuk-angka { display: flex; gap: 10px; }
.masuk-angka div { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.masuk-angka b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.masuk-angka small { font-size: 11.5px; color: #94A3B8; }
.masuk-kanan { padding: 36px 32px; min-width: 0; }
.masuk-kanan h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.masuk-kanan .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.masuk-kanan .tombol.utama { width: 100%; height: 46px; border-radius: 10px; font-size: 14px; margin-top: 6px; }
.masuk-kanan .isian input { height: 46px; border-radius: 10px; }
.masuk-kanan .sandi-grup button { height: 38px; }
/* Di halaman masuk kedua isian selalu wajib: bintang hanya bising. */
body.masuk .isian > :is(label, .label):has(+ [required], + * [required])::after { content: none; }
/* Footer: font yang sama dengan .kaki halaman dalam (bukan mono). */
.masuk-kaki { margin: 22px 0 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }
.masuk-kaki > span { white-space: nowrap; }
.masuk-kaki b { font-weight: 600; color: var(--ink); }
.masuk-kaki .pisah { margin: 0 2px; color: var(--line-2); }

/* --- Kelola data: sisi + isi (fase 1) -------------------------------------- */
.kelola { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; max-width: 1360px; width: 100%; margin: 0 auto; }
.kelola .isi { max-width: none; margin: 0; }
.kelola-sisi { padding: 24px 16px 24px 20px; border-right: 1px solid var(--line); }
.kelola-sisi h2 { font-size: 15px; font-weight: 700; margin: 0 0 4px; letter-spacing: -.01em; }
.kelola-sisi > p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.kelola-sisi h3 { margin: 14px 10px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kelola-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 13.5px; }
.kelola-item:hover { background: var(--kartu); }
.kelola-item[aria-current="page"] { background: var(--emerald-soft); color: var(--emerald-2); font-weight: 600; }
.kelola-item b { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--muted); background: var(--kartu); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; min-width: 28px; text-align: center; }
.kelola-item[aria-current="page"] b { color: var(--emerald-2); border-color: transparent; }
.kelola-catatan { margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: var(--kartu); border: 1px solid var(--line); font-size: 12.5px; }
.kelola-catatan b { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.tombol-baris { display: flex; gap: 8px; flex-wrap: wrap; }

/* Warna bidang */
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 7px; background: var(--warna, var(--line-2)); border: 1px solid rgba(15,23,42,.12); vertical-align: middle; }
.isian input[type="color"] { width: 64px; height: var(--h); padding: 3px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); background: #fff; cursor: pointer; }
.kode-contoh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kode-contoh code { font-size: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; letter-spacing: .04em; }
.kode-contoh span { color: var(--muted); font-size: 12.5px; }
.chip-baris { display: flex; flex-wrap: wrap; gap: 4px; }
.formulir.lebar { max-width: 820px; }
.bantuan-lepas { margin: -8px 0 14px; font-size: 12.5px; color: var(--muted); }
.h2 { font-size: 16px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.h2 .opsional { font-weight: 400; color: var(--muted); font-size: 13px; }
.h2 .nomor { width: 26px; height: 26px; border-radius: 50%; background: var(--slate); color: #fff; display: inline-grid; place-items: center; font-size: 13px; }
hr.pisah { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Tab (Wilayah) */
.tab { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--line); }
.tab a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab a:hover { color: var(--ink); background: var(--bg); }
.tab a[aria-current="page"] { color: var(--emerald-2); border-bottom-color: var(--emerald); }
.tab b { font-family: var(--mono); font-weight: 400; font-size: 11.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }

/* Wilayah: tabel + peta mini */
.wilayah-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.peta-kartu { position: sticky; top: 16px; overflow: hidden; }
.peta-mini { height: 340px; background: #E5E7EB; }
.peta-titik { height: 300px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); margin-bottom: 18px; overflow: hidden; }
.peta-info { padding: 12px 14px; font-size: 13px; }
.peta-info .bantuan { margin: 0; font-size: 12.5px; color: var(--muted); }
.peta-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.peta-info dt { color: var(--muted); font-size: 12px; }
.peta-info dd { margin: 0; font-weight: 600; }
.peta-info dd code { font-weight: 400; }
.tabel-klik tbody tr { cursor: pointer; }
.tabel-klik tbody tr.sorot td { background: var(--emerald-soft); }
.tabel-klik tbody tr:focus-visible { outline: 2px solid var(--emerald); outline-offset: -2px; }
.batas-status { margin: 0 0 16px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.daftar-placemark { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.placemark { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 500; margin: 0; }
.placemark:hover { background: var(--bg); }
.placemark.cocok { border-color: var(--emerald); background: var(--emerald-soft); }
.placemark input { grid-row: 1 / span 2; accent-color: var(--emerald); width: 16px; height: 16px; margin: 0; }
.placemark .nama em { font-style: normal; color: var(--emerald-2); font-size: 12px; font-weight: 600; }
.placemark .sub { color: var(--muted); font-size: 12px; }
.pilihan-ada .lencana.nonaktif { text-decoration: line-through; }

/* Impor */
.langkah-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ringkas-impor { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.tabel tr.ditolak td { background: #FFF7F7; }
.isian input[type="file"] { display: block; width: 100%; padding: 9px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-kecil); background: var(--bg); font-size: 13.5px; }

/* --- Data aset (fase 2) ---------------------------------------------------- */
.catatan-tahun { background: var(--biru-soft); color: #1E3A8A; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 0 0 16px; }
.tabel tr.pudar td { color: var(--muted); }
.tabel tr.pudar td code { opacity: .7; }
.tombol.ikon { width: var(--h); padding: 0; } .tombol.kecil.ikon { width: var(--h-kecil); }
.tombol > svg { width: 16px; height: 16px; flex: none; }
.tombol.ikon svg { width: 16px; height: 16px; }
.tabel td.aksi .tombol + button, .tabel td.aksi button + .tombol, .tabel td.aksi button + button, .tabel td.aksi form + button { margin-left: 6px; }
.lencana.kondisi { background: var(--kartu); border-color: var(--line-2); color: var(--ink); }
dialog.dialog-besar { width: min(640px, calc(100% - 32px)); }
dialog.dialog-besar .badan { max-height: 70vh; overflow: auto; }
dialog .dialog-sub { margin: 0 0 12px !important; color: var(--ink) !important; }
dialog .dialog-sub b { font-size: 15px; }
.peringatan-kotak { background: var(--kuning-soft); color: #92400E; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 0 0 14px !important; }
dialog .isian label, dialog .isian .label { font-size: 13px; }
dialog .isian input[type="text"], dialog .isian input[type="date"], dialog .isian select, dialog .isian textarea { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); font-size: 14px; }
dialog .isian textarea { height: auto; padding: 8px 12px; }
.rincian-dialog { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 13.5px; }
.rincian-dialog dt { color: var(--muted); }
.rincian-dialog dd { margin: 0; font-weight: 600; }
.riwayat-kepala { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.riwayat { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.riwayat li { position: relative; padding: 0 0 16px 14px; }
.riwayat li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--kartu); border: 2px solid var(--emerald); }
.riwayat li p { margin: 0 0 2px; font-size: 14px; }
.riwayat li small { color: var(--muted); font-size: 12.5px; }

/* Formulir aset */
.formulir-aset .kartu { margin-bottom: 16px; }
.formulir-aset textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); font-size: 14px; min-height: 60px; }
.formulir-aset textarea:focus, .titik-baris input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); }
.baca-saja { height: var(--h); display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-kecil); background: var(--bg); color: var(--muted); }
.kondisi-pilih label { gap: 6px; }
.fungsi-baris { display: flex; align-items: center; gap: 12px; }
.fungsi-baris input[type="range"] { flex: 1; accent-color: var(--emerald); }
.satuan-grup { display: flex; align-items: stretch; }
.satuan-grup input { flex: 1; min-width: 0; border-radius: var(--radius-kecil) 0 0 var(--radius-kecil) !important; }
.satuan-grup span { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 var(--radius-kecil) var(--radius-kecil) 0; background: var(--bg); color: var(--merah); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.fungsi-baris .satuan-grup { width: 110px; flex: none; }
.mulai-grup { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.mulai-grup input[hidden] { display: none; }
fieldset.isian-khusus { border: 0; padding: 0; margin: 0; min-width: 0; }
.aksi-aset { padding: 4px 0 24px; }

/* Koordinat (T11) */
.koordinat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 42%); gap: 18px; align-items: start; }
.peta-koordinat { height: 380px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); position: sticky; top: 16px; }
.unggah-kml { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.unggah-kml .tombol { flex: none; }
details.panduan { margin: 6px 0 10px; font-size: 13px; }
details.panduan summary { cursor: pointer; color: var(--emerald-2); font-weight: 600; }
details.panduan ol { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.titik-daftar { display: grid; gap: 6px; margin: 10px 0 8px; max-height: 320px; overflow: auto; }
.titik-baris { display: grid; grid-template-columns: 28px 1fr 32px; gap: 6px; align-items: center; }
.titik-baris .nomor { width: 26px; height: 26px; border-radius: 50%; background: var(--slate); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; font-family: var(--mono); }
.titik-baris input { height: var(--h); padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); font-family: var(--mono); font-size: 13px; min-width: 0; }
.titik-baris input.salah { border-color: var(--merah); background: #FFF5F5; }
.titik-baris .hapus-titik { height: 32px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; font-size: 16px; }
.titik-baris .hapus-titik:hover { color: var(--merah); border-color: #FECACA; }
.penanda-nomor span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--slate); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--mono); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15,23,42,.4); cursor: pointer; }
.penanda-nomor.nyala span { background: var(--emerald); transform: scale(1.25); }

/* Unggah foto/dokumen (T12) */
.unggah-area { display: block; position: relative; overflow: hidden; text-align: center; padding: 22px 16px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--bg); cursor: pointer; margin: 0; }
.unggah-area.seret { border-color: var(--emerald); background: var(--emerald-soft); }
.unggah-area input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.unggah-area b { display: block; font-size: 14px; }
.unggah-area span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; max-width: 60ch; margin-inline: auto; }
.unggah-area em { display: block; margin-top: 8px; font-style: normal; color: var(--emerald-2); font-weight: 600; font-size: 13px; }
.daftar-berkas { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.daftar-berkas li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; }
.daftar-berkas li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daftar-berkas small { color: var(--muted); white-space: nowrap; }
.galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 10px; }
.galeri figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.galeri img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galeri figcaption { padding: 6px 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.galeri figcaption .tombol { margin-left: auto; height: 26px; padding: 0 8px; font-size: 12px; }
.pilih-penuh { width: 100%; height: var(--h); border: 1px solid var(--line-2); border-radius: var(--radius-kecil); padding: 0 12px; font-size: 14px; background: #fff; margin-bottom: 10px; }

/* --- Dashboard aset (T29–T32) ---------------------------------------------- */
.chip-sumber { font-size: 12px; }
.jarak { margin-top: 20px; }
.h2.jarak { margin-bottom: 10px; }
.kartu-angka { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kartu-satu { background: var(--kartu); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.kartu-satu small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kartu-satu b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kartu-satu b span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kartu-satu em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.bar-hijau, .bar-skala { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar-hijau s, .bar-skala s { display: block; height: 100%; width: var(--lebar, 0%); background: var(--emerald); }
.bar-skala s { background: var(--warna, var(--emerald)); }
.isu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kartu.isu { border-top: 3px solid var(--line-2); }
.kartu.isu.merah { border-top-color: var(--merah); } .kartu.isu.biru { border-top-color: var(--k-sedang); }
.kartu.isu h3 { font-size: 15px; margin: 0 0 6px; }
.kartu.isu p { margin: 0 0 12px; color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.angka-besar { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.angka-besar b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.angka-besar span { color: var(--muted); font-size: 13px; }
.judul-kartu { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.judul-kartu .h2 { margin-bottom: 2px; }
.prioritas { list-style: none; margin: 0; padding: 0; }
.prioritas li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.prioritas .nomor { width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.isi-prioritas b { display: block; font-size: 14px; }
.isi-prioritas .sub { display: block; color: var(--muted); font-size: 12.5px; }
.isi-prioritas .evaluasi-teks { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.merah-teks { color: var(--merah); font-style: normal; font-weight: 600; }
.dua-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.donat-wadah { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 10px; }
.donat { width: 170px; height: 170px; transform: rotate(0deg); }
.donat-angka { font-size: 7px; font-weight: 700; font-family: var(--font); fill: var(--ink); }
.donat-ket { font-size: 2.6px; font-family: var(--font); fill: var(--muted); }
.donat-daftar { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.donat-daftar li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; }
.donat-daftar b { font-family: var(--mono); font-weight: 600; }
.jenis-bar { display: grid; gap: 8px; margin-top: 10px; }
.baris-jenis { display: grid; grid-template-columns: 150px minmax(0, 1fr) 80px; gap: 10px; align-items: center; font-size: 13px; }
.baris-jenis .bar-skala { margin: 0; height: 10px; }
.baris-jenis b { text-align: right; font-weight: 600; }
.baris-jenis b small { color: var(--muted); font-weight: 400; }

/* --- Laporan (T36–T39) ----------------------------------------------------- */
.tab-laporan { border-bottom: 0; background: var(--kartu); border: 1px solid var(--line); border-radius: 10px; padding: 4px; width: fit-content; margin-bottom: 12px; }
.tab-laporan a { border-bottom: 0; margin: 0; border-radius: 8px; }
.tab-laporan a[aria-current="page"] { background: var(--slate); color: #fff; }
.kartu-laporan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kartu-jenis { display: block; background: var(--kartu); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.kartu-jenis b { display: block; font-size: 13.5px; }
.kartu-jenis span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.kartu-jenis.aktif { border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald); background: var(--emerald-soft); }
.filter-laporan { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; align-items: end; margin-bottom: 14px; }
.filter-laporan .isian { margin-bottom: 10px; }
.filter-laporan .cari-lebar { grid-column: span 2; }
.filter-laporan .cari { width: 100%; }
.filter-laporan .pilih-penuh { margin-bottom: 0; }
.filter-laporan .aksi-filter { display: flex; gap: 8px; align-items: center; }
.rentang { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.rentang span { color: var(--muted); font-size: 12px; }
.kepala-laporan { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kepala-laporan .h2 { margin-bottom: 2px; }
.posisi-cetak { margin: 4px 0 0; font-size: 12.5px; color: #92400E; }
.tabel-laporan tfoot th { text-align: left; padding: 10px 14px; border-top: 2px solid var(--line-2); background: var(--bg); font-size: 13px; }
.tabel-laporan tfoot th.angka { text-align: right; }
.baris-kecamatan { cursor: pointer; }
.baris-kecamatan td:first-child b { font-weight: 700; }
.panah-rincian { display: inline-block; width: 16px; color: var(--muted); transition: transform .15s; }
.baris-kecamatan[aria-expanded="true"] .panah-rincian { transform: rotate(90deg); }
.sub-inline { color: var(--muted); font-size: 12px; }
.baris-jenis-rincian td { background: #FAFBFD; color: var(--muted); }
.baris-jenis-rincian .menjorok { padding-left: 42px; }
.dimensi-sel { max-width: 220px; font-size: 12.5px; color: var(--muted); }

/* --- Kerangka perencanaan & indikator kinerja (fase 5) ---------------------- */
.redup { color: var(--muted); }
.hijau-teks { color: #047857; } .kuning-teks { color: #B45309; }
.peringatan-teks { color: #92400E !important; }
.sel-rincian { padding: 0 !important; background: #FAFBFD; }
.rincian-wadah { padding: 10px 14px 14px 42px; }
.tabel-dalam { width: 100%; }
.tabel-dalam th { font-size: 11px; }
.tabel-klik[data-tabel-program] tbody tr.baris-indikator { cursor: default; }
.tabel-klik[data-tabel-program] tbody tr.baris-indikator:hover td { background: #FAFBFD; }
.blok-indikator { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 4px; margin: 0 0 12px; background: var(--bg); }
.blok-kepala { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.blok-kepala legend { font-weight: 700; font-size: 14px; padding: 0; float: left; }
.tautan.pudar { opacity: .45; }
.target-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0 10px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.target-grid .isian label { font-size: 12.5px; }
.target-grid .akhir { grid-column: span 2; }
.chip-kinerja { background: var(--kuning-soft); color: #92400E; border-color: transparent; font-size: 12px; }
.ringkas-kinerja { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ringkas-kinerja div { background: var(--kartu); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.ringkas-kinerja small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ringkas-kinerja b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.lencana.s-tercapai { background: var(--emerald-soft); color: #065F46; border-color: transparent; } .lencana.s-tercapai .titik { background: var(--k-baik); }
.lencana.s-mendekati { background: var(--kuning-soft); color: #92400E; border-color: transparent; } .lencana.s-mendekati .titik { background: #F59E0B; }
.lencana.s-perhatian { background: var(--merah-soft); color: #991B1B; border-color: transparent; } .lencana.s-perhatian .titik { background: var(--k-berat); }
.titik.s-tercapai { background: var(--k-baik); } .titik.s-mendekati { background: #F59E0B; } .titik.s-perhatian { background: var(--k-berat); }
.capaian-bar { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bar-capaian { display: inline-block; width: 90px; height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-capaian s { display: block; height: 100%; width: var(--lebar, 0%); background: var(--emerald); }
.bar-capaian.s-mendekati s { background: #F59E0B; } .bar-capaian.s-perhatian s { background: var(--k-berat); }
.tabel-kinerja tbody tr.sorot td { background: var(--emerald-soft); }
.kotak-kosong { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 10px; }
.grafik { width: 100%; height: auto; margin-top: 8px; font-family: var(--font); }
.grafik .garis-grid { stroke: var(--line); stroke-width: 1; }
.grafik .sumbu { font-size: 12px; fill: var(--muted); }
.grafik .garis-target { fill: none; stroke: #D4A017; stroke-width: 2; stroke-dasharray: 6 5; }
.grafik .titik-target { fill: #fff; stroke: #D4A017; stroke-width: 2; }
.grafik .garis-realisasi { fill: none; stroke: #047857; stroke-width: 3; }
.grafik .titik-realisasi { fill: #047857; stroke: #fff; stroke-width: 2; }
.grafik .label-nilai { font-size: 12px; font-weight: 700; fill: var(--ink); }
.legenda-grafik { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.legenda-grafik i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legenda-grafik .realisasi { background: #047857; } .legenda-grafik .target { background: #D4A017; }
.baris-analisis { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.baris-analisis abbr { text-decoration: none; cursor: help; }
.baris-analisis .info { color: var(--muted); font-size: 12px; }
.angka-analisis { font-weight: 700; border-bottom: 1px dotted var(--line-2); }
.kotak-ket { background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; font-size: 13px; color: var(--ink); }
.legenda-status { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.legenda-status span { display: inline-flex; align-items: center; gap: 6px; }
.sel-status { white-space: nowrap; }
.sel-status small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.sel-status.s-tercapai { background: var(--emerald-soft); } .sel-status.s-mendekati { background: var(--kuning-soft); } .sel-status.s-perhatian { background: var(--merah-soft); }
.sel-status.belum { color: var(--muted); background: #F1F5F9; }
.kartu-laporan.tiga { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Responsif ------------------------------------------------------------- */
@media (max-width: 1180px) { .merek small { display: none; } .wilayah-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 860px) {
  body { grid-template-rows: 56px 1fr auto; }
  body.peta { grid-template-rows: 56px 1fr; }
  .kop { gap: 10px; padding: 0 14px; }
  .nav-utama, .pengguna, .tahun-form { display: none; }
  .burger { display: block; }
  .peta-layar { grid-template-columns: minmax(0, 1fr); }
  .saring { position: fixed; inset: 56px 0 0 0; z-index: 1090; border-right: 0; transform: translateX(-100%); transition: transform .2s; }
  .saring.terbuka { transform: none; }
  .tutup-saring { display: block; }
  .kotak-jumlah { left: 12px; top: 12px; padding: 8px 12px; }
  .kotak-jumlah b { font-size: 18px; }
  .kotak-jumlah small { display: none; }
  .legenda { left: 12px; bottom: 74px; width: 190px; }
  .panel-detail { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-radius: 16px 16px 0 0; }
  .tombol-filter { display: block; position: absolute; left: 14px; right: 14px; bottom: 16px; height: 46px; font-weight: 700; font-size: 14px; background: var(--slate); color: #fff; border: 0; border-radius: 12px; z-index: 1001; cursor: pointer; }
  .leaflet-bottom.leaflet-right { bottom: 70px; }
  .lp-tengah { padding: 0 8px; }
  .isi { padding: 16px 14px 28px; }
  .isian-grid { grid-template-columns: 1fr; }
  .alat .cari, .alat .pilih-cari { width: 100%; }
  .kelola { grid-template-columns: minmax(0, 1fr); }
  .kelola-sisi { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 14px 10px; }
  .kelola-sisi > p { display: none; }
  .wilayah-grid, .langkah-grid { grid-template-columns: minmax(0, 1fr); }
  .kartu-angka { grid-template-columns: 1fr 1fr; }
  .ringkas-kinerja { grid-template-columns: 1fr 1fr; }
  .kartu-laporan.tiga { grid-template-columns: minmax(0, 1fr); }
  .target-grid .akhir { grid-column: span 1; }
  .isu-grid, .dua-panel, .kartu-laporan { grid-template-columns: minmax(0, 1fr); }
  .donat-wadah { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .baris-jenis { grid-template-columns: 110px minmax(0, 1fr) 70px; }
  .filter-laporan .cari-lebar { grid-column: span 1; }
  .prioritas li { grid-template-columns: 32px minmax(0, 1fr); }
  .prioritas li .tombol { grid-column: 2; justify-self: start; }
  .peta-kartu { position: static; }
  .peta-mini { height: 260px; }
  .koordinat-grid { grid-template-columns: minmax(0, 1fr); }
  .peta-koordinat { position: static; height: 280px; }
  .mulai-grup { grid-template-columns: 1fr; }
  .unggah-kml { flex-direction: column; align-items: flex-start; }
  body.masuk { align-items: start; }
  .masuk-kartu { grid-template-columns: 1fr; }
  .masuk-kiri { padding: 22px 20px; }
  .masuk-kiri .kontur, .masuk-judul p, .masuk-angka { display: none; }
  .masuk-judul { margin-top: 10px; }
  .masuk-judul h1 { font-size: 22px; margin-bottom: 0; }
  .masuk-kanan { padding: 24px 20px; }
}
@media (min-width: 861px) { .menu-hp { display: none; } }
@media print {
  @page { size: A4; margin: 12mm; }
  .kop, .menu-hp, .kaki, .alat, .tombol, .paginasi, .cetak-sembunyi, dialog { display: none !important; }
  body { display: block; background: #fff; font-size: 11px; }
  .isi { padding: 0; max-width: none; }
  .kartu.cetak-penuh { border: 0; border-radius: 0; }
  .tabel-gulung { overflow: visible; }
  .tabel th, .tabel td { padding: 5px 8px; }
  .baris-jenis-rincian[hidden] { display: none !important; }
  .lencana { border: 0; padding: 0; background: transparent; }
}

/* --- Pilihan bercari (combobox, feedback paska fase 6) --------------------- */
/* <select data-cari> dibungkus sinta.js: tombol seperti select + panel bercari. Select asli tetap di DOM & dikirim formulir. */
.pilih-cari { position: relative; display: block; }
.pilih-cari.sebaris-alat { display: inline-block; width: 220px; vertical-align: middle; }
.pilih-cari > select { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.pilih-cari > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: var(--h); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-kecil); background: #fff; text-align: left; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.pilih-cari > button:hover { border-color: #94A3B8; }
.pilih-cari > button:focus-visible, .pilih-cari.terbuka > button, .centang-turun > button:focus-visible { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); }
.pilih-cari > button:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.pilih-cari > button .teks { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilih-cari > button .teks.hampa { color: var(--muted); }
.pilih-cari > button .panah, .centang-turun > button .panah { width: 16px; height: 16px; color: var(--muted); flex: none; transition: transform .15s; }
.pilih-cari.terbuka > button .panah, .centang-turun > button[aria-expanded="true"] .panah { transform: rotate(180deg); }
.pilih-cari.galat > button { border-color: var(--merah); }
.pilih-cari .panel, .centang-turun .daftar { position: absolute; left: 0; right: 0; top: calc(100% + 6px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--bayang); padding: 6px; z-index: 30; }
.pilih-cari .panel[hidden] { display: none; }
.pilih-cari .cari-panel, .centang-turun .cari-panel { display: flex; align-items: center; gap: 8px; margin: 2px 2px 6px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; }
.pilih-cari .cari-panel input, .centang-turun .cari-panel input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 13.5px; min-width: 0; background: transparent; }
.pilih-cari .cari-panel svg, .centang-turun .cari-panel svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.pilih-cari .daftar { max-height: 260px; overflow: auto; }
.pilih-cari [role="option"] { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; outline: 0; }
.pilih-cari [role="option"]:hover, .pilih-cari [role="option"]:focus { background: var(--bg); }
.pilih-cari [role="option"][aria-selected="true"] { background: var(--emerald-soft); color: var(--emerald-2); font-weight: 600; }
.pilih-cari [role="option"] small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.pilih-cari .kelompok { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px 4px; }
.pilih-cari .status, .centang-turun .status { padding: 8px 10px; color: var(--muted); font-size: 12.5px; margin: 0; }
.pilih-cari .kaki { border-top: 1px solid var(--line); margin-top: 4px; padding: 6px 10px 2px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
/* Pilih banyak (Bidang untuk Operator): chip di dalam isian, tinggi mengikuti isi */
.centang-turun > button.chip-isian { flex-wrap: wrap; align-items: center; padding: 4px 36px 4px 6px; position: relative; }
.centang-turun > button.chip-isian .chip-wadah { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.centang-turun > button.chip-isian .panah { position: absolute; right: 12px; top: 50%; margin-top: -8px; }
.centang-turun > button.chip-isian .hampa { padding: 0 6px; line-height: 30px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%; padding: 0 4px 0 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .lepas { all: unset; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); font-size: 15px; line-height: 1; flex: none; }
.chip .lepas:hover { background: var(--line); color: var(--ink); }

/* --- Panah select (diletakkan terakhir: shorthand background di .isian select / .pilih-penuh tidak boleh menimpanya) --- */
/* Panah select sendiri (bawaan browser beda tiap OS); CSP img-src mengizinkan data: */
select.pilih, select.pilih-penuh, .isian select, dialog .isian select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
select.pilih:focus, select.pilih-penuh:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft); }

/* --- Formulir: penanda wajib & galat isian (revisi formulir 2026-10-26) ------ */
/* Satu sumber kebenaran: atribut required. Bintang dari CSS, bukan ditulis di Volt.
   Pilih banyak wajib bersyarat: [data-centang-turun][data-wajib] (dipasang sinta.js). */
.isian > :is(label, .label):has(+ [required], + * [required], + .centang-turun[data-wajib])::after { content: " *"; color: var(--merah); font-weight: 700; }
.isian.galat > label, .isian.galat > .label { color: #991B1B; }
.isian.galat input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .isian.galat select, .isian.galat textarea,
.isian.galat .pilih-cari > button, .isian.galat .centang-turun > button { border-color: var(--merah); }
.isian.galat input:focus, .isian.galat select:focus, .isian.galat textarea:focus, .isian.galat .pilih-cari > button:focus-visible, .isian.galat .centang-turun > button:focus-visible { border-color: var(--merah); box-shadow: 0 0 0 4px var(--merah-soft); }
.galat-isian { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: #991B1B; }
.galat-isian > svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.galat-isian[hidden] { display: none; }
.ringkasan-galat { display: flex; gap: 10px; align-items: flex-start; background: var(--merah-soft); color: #991B1B; border: 1px solid #FECACA; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; }
.ringkasan-galat > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ringkasan-galat b { display: block; margin-bottom: 2px; }
.ringkasan-galat ul { margin: 4px 0 0; padding-left: 18px; }
.ringkasan-galat a { color: inherit; font-weight: 600; }
