/* =====================================================================
   FASVAL Dashboard - stylesheet
   Tema hijau sesuai desain referensi (Balai Perhutanan Sosial)
   ===================================================================== */
:root {
    --fv-green-900: #0f4a34;
    --fv-green-800: #0f5c3f;
    --fv-green-700: #14532d;
    --fv-green-600: #16743f;
    --fv-green-500: #1a8a4c;
    --fv-green-100: #e7f6ec;
    --fv-green-50: #f2fbf5;
    --fv-blue: #2563eb;
    --fv-blue-100: #dbeafe;
    --fv-amber: #d97706;
    --fv-amber-100: #fef3c7;
    --fv-red: #dc2626;
    --fv-red-100: #fee2e2;
    --fv-purple: #9333ea;
    --fv-purple-100: #f3e8ff;
    --fv-text: #1f2937;
    --fv-text-muted: #6b7280;
    --fv-border: #e5e7eb;
    --fv-bg: #f7f8fa;
    --fv-radius: 12px;
    --fv-shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--fv-bg);
    color: var(--fv-text);
    font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---------------- Layout ---------------- */
.fv-app { display: flex; min-height: 100vh; }

.fv-sidebar {
    width: 260px;
    flex: 0 0 260px;
    /* Foto hutan + scrim gelap, senada dengan halaman login (Tahap D -
       sesuai referensi gambar sidebar baru), menggantikan gradient hijau
       polos sebelumnya. */
    background:
        linear-gradient(180deg, rgba(10,46,36,.82) 0%, rgba(5,16,10,.88) 55%, rgba(5,16,10,.94) 100%),
        url('../img/bg-forest.jpg') center/cover no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    /* Sticky (BUKAN relative - sebelumnya ada deklarasi `position` ganda di
       sini yang saling menimpa, sehingga sticky tidak pernah aktif dan
       sidebar ikut scroll bersama konten alih-alih tetap di tempat. Ini akar
       masalah "navbar tidak menyesuaikan" pada halaman panjang seperti form
       Tambah Penggarap - bagian bawah sidebar (kotak bantuan/footer) muncul
       di tengah halaman karena sidebar sudah lewat ter-scroll ke atas). */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}
.fv-sidebar-footer {
    position: relative; z-index: 1; font-size: 10.5px; font-weight: 700;
    letter-spacing: .08em; line-height: 1.6; opacity: .75; margin-top: 14px;
    text-align: center;
}
.fv-sidebar > * { position: relative; z-index: 1; }
.fv-brand { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 24px; padding: 0; }
.fv-brand-logo {
    width: 42px; height: 42px; border-radius: 12px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    overflow: hidden;
    flex: 0 0 auto;
}
.fv-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.fv-kemenhut-chip {
    display: inline-flex; align-items: center; background: #fff;
    border-radius: 10px; padding: 7px 12px; margin-bottom: 22px;
    position: relative; z-index: 1;
}
.fv-kemenhut-chip img { height: 22px; width: auto; display: block; }
.fv-brand-title { font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: .04em; }
/* Tagline sidebar: rata kiri senada halaman login, dengan aksen garis
   vertikal bergradasi hijau -> cokelat (warna logo). Baris utama 1 baris;
   keterangan 2 baris karena kalau dipaksa 1 baris hurufnya ~8px. */
.fv-brand-text { position: relative; padding: 2px 0 2px 10px; margin-top: 4px; }
.fv-brand-text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #7ccf52, #b8733a); }
.fv-brand-sub { font-size: 10.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.fv-brand-note { font-size: 10.5px; font-style: italic; opacity: .75; line-height: 1.45; margin-top: 3px; }

/* Logo aplikasi WIBISANA (lambang + nama, tagline ditulis sebagai teks) di puncak SIDEBAR - latar
   transparan dengan garis tepi putih (sudah di dalam PNG) supaya teks hijau
   tua tetap terbaca di atas foto hutan gelap. */
.fv-sidebar-lockup { margin-bottom: 10px; width: fit-content; }
.fv-sidebar-lockup-logo { display: block; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.45)); }
.fv-sidebar-lockup-logo--wibisana { height: 100px; }

/* Tagline kursif di bagian bawah sidebar, senada dengan halaman login. */
.fv-sidebar-cursive {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 15px; font-weight: 400; opacity: .85;
    text-align: center; margin-top: 10px; letter-spacing: .02em;
}

.fv-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fv-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,.88);
    transition: background .15s ease;
}
.fv-nav a:hover { background: rgba(255,255,255,.08); }
.fv-nav a.active { background: rgba(255,255,255,.16); color: #fff; }
.fv-nav .fv-icon { font-size: 17px; width: 20px; text-align: center; }

.fv-help-box {
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    opacity: .9;
}
.fv-help-box strong { display: block; margin-bottom: 4px; font-size: 13px; }
.fv-help-link { display: block; margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; text-decoration: none; text-align: center; }
.fv-help-link:hover { background: rgba(255,255,255,.24); }

.fv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.fv-topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; border-bottom: 1px solid var(--fv-border);
    padding: 16px 28px;
    position: sticky; top: 0; z-index: 30;
    gap: 12px; flex-wrap: wrap;
}
.fv-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fv-page-title { font-size: 19px; font-weight: 700; }
.fv-page-date { font-size: 12.5px; color: var(--fv-text-muted); margin-top: 2px; }
.fv-topbar-right { display: flex; align-items: center; gap: 18px; }

/* Tombol hamburger - hanya tampil di layar sempit (lihat media query di
   bawah) untuk membuka drawer sidebar (lihat .fv-sidebar.open & fvToggleSidebar
   di app.js). Sebelumnya CSS drawer-nya sudah ada tapi TIDAK ADA tombol/JS
   sama sekali yang mengaktifkannya, jadi di HP menu navigasi tidak bisa
   dibuka - ini yang melengkapinya. */
.fv-sidebar-toggle {
    display: none; font-size: 20px; background: none; border: none; color: var(--fv-text);
    width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto; cursor: pointer;
}
.fv-sidebar-toggle:hover { background: var(--fv-bg); }
.fv-sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1990;
}
.fv-sidebar-backdrop.show { display: block; }

.fv-notif-btn { position: relative; font-size: 19px; color: var(--fv-text-muted); background: none; border: none; cursor: pointer; }
.fv-notif-dot {
    position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px;
    background: var(--fv-red); color: #fff; border-radius: 999px;
    font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
    display: none; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* Panel dropdown notifikasi - isinya diisi JS (fvRenderNotifPanel di app.js)
   dari GET /notifications (lihat NotificationController.php). */
.fv-notif-wrap { position: relative; }
.fv-notif-panel {
    position: absolute; top: calc(100% + 12px); right: -6px; width: 340px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(16,24,40,.18); border: 1px solid var(--fv-border);
    z-index: 50; overflow: hidden;
}
.fv-notif-panel-title { font-weight: 700; font-size: 13.5px; padding: 14px 16px; border-bottom: 1px solid var(--fv-border); }
.fv-notif-list { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; }
.fv-notif-empty { padding: 28px 16px; text-align: center; color: var(--fv-text-muted); font-size: 12.5px; }
.fv-notif-item {
    display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--fv-border);
    transition: background .12s ease;
}
.fv-notif-item:last-child { border-bottom: none; }
.fv-notif-item:hover { background: var(--fv-bg); }
.fv-notif-item-icon { font-size: 17px; flex: 0 0 auto; margin-top: 1px; }
.fv-notif-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fv-notif-item-title { font-weight: 700; font-size: 12.5px; color: var(--fv-text); }
.fv-notif-item-msg { font-size: 12px; color: var(--fv-text-muted); line-height: 1.4; }
.fv-notif-item-time { font-size: 10.5px; color: var(--fv-text-muted); opacity: .8; margin-top: 2px; }
.fv-notif-item-danger .fv-notif-item-title { color: var(--fv-red); }
.fv-notif-item-info .fv-notif-item-title { color: var(--fv-blue); }

.fv-user-chip { display: flex; align-items: center; gap: 10px; }
.fv-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--fv-green-100); color: var(--fv-green-700);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.fv-user-name { font-weight: 600; font-size: 13.5px; }
.fv-user-email { font-size: 11.5px; color: var(--fv-text-muted); }
.fv-logout-btn {
    display: flex; align-items: center; gap: 6px;
    border: 1px solid var(--fv-red-100); background: var(--fv-red-100);
    color: var(--fv-red); padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13px;
}

.fv-content { padding: 26px 28px 60px; flex: 1; }

/* ---------------- Cards / stat tiles ---------------- */
.fv-stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fv-stat-card {
    background: #fff; border-radius: var(--fv-radius); box-shadow: var(--fv-shadow);
    padding: 14px 16px; flex: 1 1 0; min-width: 128px;
    border-left: 4px solid var(--fv-blue);
}
.fv-stat-card.green { border-left-color: var(--fv-green-500); }
.fv-stat-card.amber { border-left-color: var(--fv-amber); }
.fv-stat-card.teal { border-left-color: #0d9488; }
.fv-stat-card.purple { border-left-color: #8b5cf6; }
.fv-stat-label { font-size: 12.5px; color: var(--fv-text-muted); margin-bottom: 6px; }
.fv-stat-value { font-size: clamp(18px, 1.75vw, 24px); font-weight: 700; white-space: nowrap; }
/* kartu statistik: satuan, keterangan kecil, bilah porsi, bisa diklik (Okt 2026) */
.fv-stat-unit { font-size: 12px; font-weight: 600; color: var(--fv-text-muted); }
.fv-stat-sub { font-size: 11.5px; color: var(--fv-text-muted); margin-top: 4px; line-height: 1.35; }
.fv-stat-bar { height: 5px; border-radius: 99px; background: #e5e7eb; margin-top: 8px; overflow: hidden; }
.fv-stat-bar span { display: block; height: 100%; border-radius: 99px; background: #0d9488; transition: width .5s ease; }
.fv-stat-klik { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.fv-stat-klik:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,23,42,.10); }

.fv-panel { background: #fff; border-radius: var(--fv-radius); box-shadow: var(--fv-shadow); padding: 22px; margin-bottom: 20px; }
.fv-panel-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; display:flex; align-items:center; gap:8px;}
.fv-panel-sub { font-size: 12.5px; color: var(--fv-text-muted); margin: 0 0 18px; }

/* ---------------- Buttons ---------------- */
.fv-btn {
    display: inline-flex; align-items: center; gap: 7px;
    border: none; border-radius: 9px; padding: 10px 16px;
    font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.fv-btn-primary { background: var(--fv-green-500); color: #fff; }
.fv-btn-primary:hover { background: var(--fv-green-600); }
.fv-btn-blue { background: var(--fv-blue); color: #fff; }
.fv-btn-light { background: #eef0f2; color: var(--fv-text); }
.fv-btn-outline { background: #fff; border: 1px solid var(--fv-border); color: var(--fv-text); }
.fv-btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.fv-btn-icon-blue { background: var(--fv-blue-100); color: var(--fv-blue); }
.fv-btn-icon-amber { background: var(--fv-amber-100); color: var(--fv-amber); }
.fv-btn-icon-red { background: var(--fv-red-100); color: var(--fv-red); }
.fv-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- Form ---------------- */
.fv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.fv-form-grid.single { grid-template-columns: 1fr; }
.fv-field { display: flex; flex-direction: column; gap: 6px; }
.fv-field label { font-size: 13px; font-weight: 600; }
.fv-field .req { color: var(--fv-red); }
.fv-field input, .fv-field select, .fv-field textarea {
    padding: 10px 12px; border-radius: 9px; border: 1px solid var(--fv-border);
    background: #fff; outline: none;
}
.fv-field input:focus, .fv-field select:focus, .fv-field textarea:focus { border-color: var(--fv-green-500); box-shadow: 0 0 0 3px var(--fv-green-100); }
.fv-field .hint { font-size: 11.5px; color: var(--fv-text-muted); }
.fv-field .error { font-size: 11.5px; color: var(--fv-red); }
.fv-field-error input, .fv-field-error select { border-color: var(--fv-red); }

.fv-form-error {
    color: var(--fv-red); background: var(--fv-red-100); border: 1px solid #fecaca;
    border-radius: 9px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px;
    font-weight: 600;
}

/* Bilah aksi Simpan/Kembali - dibuat "menempel" (sticky) di dasar layar
   sebagai kartu tersendiri (bukan lagi teks/tombol yang mengambang jauh di
   bawah kolom peta yang lebih pendek) supaya selalu mudah dijangkau di
   formulir panjang, dan terasa menyatu secara visual dengan panel-panel
   lain di atasnya alih-alih terasa terpisah/jauh. */
.fv-form-actionbar {
    position: sticky; bottom: 16px;
    background: #fff; border-radius: var(--fv-radius); box-shadow: 0 8px 24px rgba(16,24,40,.12);
    border: 1px solid var(--fv-border);
    padding: 14px 20px; margin: 24px 0 8px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    z-index: 10;
}
.fv-form-actionbar-hint { font-size: 12.5px; color: var(--fv-text-muted); }
.fv-form-actionbar-btns { display: flex; gap: 10px; margin-left: auto; }

/* ---------------- Table ---------------- */
.fv-table-wrap { overflow-x: auto; }
table.fv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.fv-table thead th {
    background: var(--fv-green-600); color: #fff; text-align: left;
    padding: 12px 14px; font-weight: 600; white-space: nowrap;
}
table.fv-table thead th:first-child { border-top-left-radius: 8px; }
table.fv-table thead th:last-child { border-top-right-radius: 8px; }
table.fv-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--fv-border); vertical-align: middle; }
table.fv-table tbody tr:hover { background: #fafbfc; }
.fv-td-muted { color: var(--fv-text-muted); font-size: 12px; }
.fv-actions-cell { display: flex; gap: 6px; }

.fv-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.fv-badge-blue { background: var(--fv-blue-100); color: var(--fv-blue); }
.fv-badge-green { background: var(--fv-green-100); color: var(--fv-green-700); }
.fv-badge-purple { background: var(--fv-purple-100); color: var(--fv-purple); }
.fv-badge-amber { background: var(--fv-amber-100); color: var(--fv-amber); }
.fv-badge-red { background: var(--fv-red-100); color: var(--fv-red); }
.fv-badge-gray { background: #eef0f2; color: #4b5563; margin-top: 4px; }

/* Upload polygon kelompok (form Tambah/Edit Kelompok) */
.fv-shp-box { grid-column: 1 / -1; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 16px; background: #fafbfc; }
.fv-shp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fv-shp-meta { font-size: 12.5px; color: var(--fv-text-muted); margin-top: 8px; line-height: 1.6; }
.fv-shp-meta strong { color: var(--fv-text); }
.fv-shp-warn { font-size: 12.5px; color: #b45309; margin-top: 6px; }
#fv-map-polygon { width: 100%; height: 320px; background: #eef1f3; border-radius: 10px; margin-top: 12px; border: 1px solid var(--fv-border); }

.fv-count-pill { background: var(--fv-green-100); color: var(--fv-green-700); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 12.5px; }

/* ---------------- Alur approval berjenjang (Tahap 5) ---------------- */
.fv-approval-actions { display: flex; gap: 10px; margin-top: 4px; }
.fv-btn-approve {
    background: var(--fv-green-500); color: #fff; border: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.fv-btn-approve:hover { background: var(--fv-green-600); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(26,138,76,.28); }
.fv-btn-reject {
    background: #fff; color: var(--fv-red); border: 1.5px solid var(--fv-red-100);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.fv-btn-reject:hover { background: var(--fv-red-100); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(220,38,38,.16); }

/* Timeline riwayat aktivitas (create/update/approve/reject) - tiap baris
   fade+slide masuk dengan jeda kecil antar-item supaya terasa "hidup". */
.fv-timeline { position: relative; padding-left: 6px; }
.fv-timeline::before {
    content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(var(--fv-border), var(--fv-border));
}
.fv-timeline-item {
    position: relative; display: flex; gap: 14px; padding: 0 0 20px 0;
    opacity: 0; transform: translateY(10px);
    animation: fv-timeline-in .45s ease forwards;
}
@keyframes fv-timeline-in { to { opacity: 1; transform: translateY(0); } }
.fv-timeline-item:last-child { padding-bottom: 2px; }
.fv-timeline-dot {
    position: relative; z-index: 1; flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--fv-green-50); border: 2px solid var(--fv-green-100);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.fv-timeline-item.approve .fv-timeline-dot { background: var(--fv-green-100); border-color: var(--fv-green-500); }
.fv-timeline-item.reject .fv-timeline-dot { background: var(--fv-red-100); border-color: var(--fv-red); }
.fv-timeline-body { padding-top: 4px; }
.fv-timeline-title { font-size: 13.5px; font-weight: 600; }
.fv-timeline-note { font-size: 12.5px; color: var(--fv-text-muted); font-style: italic; margin-top: 2px; }
.fv-timeline-time { font-size: 11.5px; color: var(--fv-text-muted); margin-top: 2px; }

/* Pratinjau dokumen KTP/KK terenkripsi (dibuka lewat FileController) */
.fv-doc-preview { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.fv-doc-thumb {
    width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--fv-border);
    overflow: hidden; cursor: pointer; background: var(--fv-bg);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.fv-doc-thumb:hover { transform: scale(1.04); box-shadow: var(--fv-shadow); }
.fv-doc-thumb img { width: 100%; height: 100%; object-fit: cover; }

.fv-search-row { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.fv-search-row input[type=text] { flex: 2; min-width: 220px; }
.fv-search-row select { flex: 1; min-width: 140px; }
.fv-search-row input, .fv-search-row select { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--fv-border); }

.fv-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.fv-pagination button { border: 1px solid var(--fv-border); background: #fff; border-radius: 8px; padding: 6px 11px; }
.fv-pagination button.active { background: var(--fv-green-500); color: #fff; border-color: var(--fv-green-500); }

/* ---------------- Login page ---------------- */
.fv-login-wrap { display: flex; min-height: 100vh; }
.fv-login-left {
    /* Foto ilustrasi hutan (bg-forest.jpg, sama aset dengan splash Android)
       + scrim gradient gelap di atasnya supaya kartu logo & teks putih
       tetap kontras terbaca - menggantikan gradient hijau polos
       sebelumnya yang dinilai kurang menarik. */
    flex: 1;
    background:
        linear-gradient(165deg, rgba(10,46,36,.55) 0%, rgba(5,16,10,.55) 45%, rgba(5,16,10,.88) 100%),
        url('../img/bg-forest.jpg') center/cover no-repeat;
    color: #fff; padding: 54px; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden; min-height: 100vh;
}
.fv-login-right { flex: 1; display: flex; align-items: center; justify-content: center; background: #fff; }
.fv-login-card { width: 100%; max-width: 380px; }
.fv-login-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.fv-login-sub { color: var(--fv-text-muted); font-size: 13.5px; margin-bottom: 26px; }
.fv-feature-row { display: grid; grid-template-columns: repeat(2, auto); gap: 18px 28px; position: relative; z-index: 1; }
.fv-feature-item { font-size: 12.5px; }
.fv-feature-item .ico { font-size: 20px; margin-bottom: 6px; }
.fv-hero-title { font-size: 30px; font-weight: 800; line-height: 1.25; position: relative; z-index: 1; }
.fv-hero-desc { font-size: 14px; opacity: .85; margin-top: 14px; max-width: 420px; line-height: 1.6; position: relative; z-index: 1; }

/* Logo aplikasi WIBISANA (lambang + nama) halaman login - latar transparan dengan garis tepi
   putih (sudah di dalam PNG), langsung di atas foto hutan. Class terpisah dari sidebar supaya
   ukurannya bisa diatur sendiri. */
/* Blok brand login: rata kiri sejajar teks hero. Tagline diberi aksen
   garis vertikal bergradasi hijau -> cokelat (warna logo) di sisi kiri. */
.fv-login-brand { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
.fv-login-lockup { position: relative; z-index: 1; width: fit-content; margin-bottom: 14px; }
.fv-login-lockup-logo { display: block; width: auto; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); }
.fv-login-lockup-logo--wibisana { height: 160px; }
.fv-login-brand-text { position: relative; z-index: 1; padding: 2px 0 2px 14px; }
.fv-login-brand-text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #7ccf52, #b8733a); }
.fv-login-brand-title { font-weight: 800; font-size: 28px; letter-spacing: .05em; line-height: 1.15; }
.fv-login-brand-sub { font-size: 16px; font-weight: 700; letter-spacing: .01em; line-height: 1.35; }
.fv-login-brand-note { font-size: 13px; font-style: italic; opacity: .78; line-height: 1.45; margin-top: 3px; }

/* Tagline kursif + tagline bawah dekoratif (Tahap D - sesuai referensi
   gambar login baru: "Bersama Menjaga Hutan untuk Masa Depan" bergaya
   tulisan tangan, dan tagline kapital di pojok bawah kiri). */
.fv-login-cursive {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 24px; font-weight: 400; opacity: .92;
    margin-top: 10px; position: relative; z-index: 1; letter-spacing: .02em;
}
.fv-login-footer-tagline {
    position: relative; z-index: 1; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; opacity: .8; margin-top: 18px;
}

/* Dekorasi daun di pojok - murni CSS, tanpa aset gambar tambahan. */
.fv-leaf-corner {
    position: absolute; pointer-events: none; z-index: 0; opacity: .35;
    font-size: 120px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3));
}
.fv-leaf-corner--top { top: -22px; right: -18px; transform: rotate(18deg); }
.fv-leaf-corner--bottom { bottom: -30px; left: -20px; transform: rotate(-24deg); font-size: 150px; }

.fv-login-forgot { font-size: 12.5px; color: var(--fv-green-600); font-weight: 600; }
.fv-login-forgot:hover { text-decoration: underline; }

/* Partikel kunang-kunang melayang - polesan "interaktif" tambahan di atas
   foto hutan, murni CSS (tanpa JS/aset gambar tambahan). */
.fv-fireflies { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fv-firefly {
    position: absolute; width: 5px; height: 5px; border-radius: 50%;
    background: #fce7ad; box-shadow: 0 0 9px 3px rgba(252,231,173,.85);
    opacity: 0;
    animation: fv-firefly-float 8s ease-in-out infinite, fv-firefly-blink 3.6s ease-in-out infinite;
}
@keyframes fv-firefly-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(16px, -26px); }
}
@keyframes fv-firefly-blink {
    0%, 100% { opacity: 0; }
    45%, 55% { opacity: .95; }
}
@media (prefers-reduced-motion: reduce) {
    .fv-firefly { animation: none; opacity: .6; }
}

/* ---------------- Misc ---------------- */
.fv-toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.fv-toast { background: #fff; border-radius: 10px; box-shadow: var(--fv-shadow); padding: 12px 16px; font-size: 13.5px; border-left: 4px solid var(--fv-green-500); min-width: 240px; }
.fv-toast.error { border-left-color: var(--fv-red); }

.fv-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.fv-modal-backdrop.show { display: flex; }
.fv-modal { background: #fff; border-radius: 14px; max-width: 520px; width: 100%; padding: 24px; max-height: 90vh; overflow-y: auto; }
.fv-modal-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.fv-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.fv-empty-state { text-align: center; padding: 50px 20px; color: var(--fv-text-muted); }
.fv-loading { text-align: center; padding: 40px; color: var(--fv-text-muted); }

.fv-map-box { border-radius: var(--fv-radius); overflow: hidden; border: 1px solid var(--fv-border); }
#fv-map, #fv-map-form { width: 100%; height: 520px; background: #eef1f3; }
#fv-map-sebaran { width: 100%; height: 560px; background: #eef1f3; }

.fv-ocr-drop {
    border: 2px dashed var(--fv-border); border-radius: 10px; padding: 16px;
    text-align: center; font-size: 12.5px; color: var(--fv-text-muted); cursor: pointer;
    display: flex; flex-direction: column; gap: 8px; align-items: center;
    transition: border-color .15s ease, background .15s ease;
    min-height: 108px; justify-content: center;
}
.fv-ocr-drop:hover { border-color: var(--fv-green-500); background: var(--fv-green-50); }
.fv-ocr-drop-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fv-ocr-drop-icon { font-size: 26px; line-height: 1; }
.fv-ocr-drop-thumb {
    width: 100%; max-width: 220px; max-height: 130px; object-fit: cover;
    border-radius: 8px; box-shadow: var(--fv-shadow);
}
.fv-ocr-drop-ok { border-style: solid; border-color: var(--fv-green-500); background: var(--fv-green-50); }
.fv-ocr-drop-warn { border-style: solid; border-color: var(--fv-amber); background: var(--fv-amber-100); }
.fv-ocr-progress { font-size: 12px; color: var(--fv-green-700); font-weight: 600; }

/* Badge keyakinan (confidence) per-field hasil OCR (Tahap D - validasi OCR
   ketat: setiap field yang diisi otomatis ditandai seberapa yakin sistem
   terhadap nilainya, supaya petugas tahu field mana yang WAJIB diperiksa
   ulang sebelum menyimpan). */
.fv-ocr-badge {
    display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: middle;
}
.fv-ocr-badge-high { background: var(--fv-green-100); color: var(--fv-green-700); }
.fv-ocr-badge-medium { background: var(--fv-amber-100); color: var(--fv-amber); }
.fv-ocr-badge-low { background: var(--fv-red-100); color: var(--fv-red); }
input.fv-ocr-filled { border-color: var(--fv-amber) !important; background: #fffdf6; }
input.fv-ocr-filled.fv-ocr-filled-high { border-color: var(--fv-green-500) !important; background: #f8fffa; }

.fv-pointing-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.fv-pointing-item { display: flex; justify-content: space-between; align-items: center; background: var(--fv-green-50); border: 1px solid var(--fv-green-100); border-radius: 9px; padding: 8px 12px; font-size: 12.5px; }

.fv-tab-row { display: flex; gap: 8px; margin-bottom: 18px; }
.fv-tab-btn { padding: 9px 16px; border-radius: 9px; border: 1px solid var(--fv-border); background: #fff; font-weight: 600; font-size: 13px; }
.fv-tab-btn.active { background: var(--fv-green-600); border-color: var(--fv-green-600); color: #fff; }

.fv-section-title { font-size: 14.5px; font-weight: 700; color: var(--fv-green-700); margin: 22px 0 4px; display:flex; align-items:center; gap:8px; }
.fv-section-title:first-child { margin-top: 0; }

/* =====================================================================
   RESPONSIVE - dua breakpoint: tablet (<=900px, sidebar jadi drawer) dan
   ponsel (<=560px, penyesuaian lebih ketat untuk layar sempit: topbar,
   kartu statistik, baris tombol header, grid form, tinggi peta, dsb).
   Semua halaman dashboard sudah lewat komponen bersama (topbar.php,
   sidebar.php, .fv-panel/.fv-form-grid/.fv-stats-row) jadi perubahan di
   sini otomatis berlaku ke seluruh halaman, bukan cuma satu-satu.
   ===================================================================== */
@media (max-width: 900px) {
    .fv-sidebar { position: fixed; left: -280px; top: 0; bottom: 0; z-index: 2000; transition: left .2s ease; }
    .fv-sidebar.open { left: 0; }
    .fv-sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .fv-form-grid { grid-template-columns: 1fr; }
    .fv-login-left { display: none; }
    .fv-content { padding: 18px; }

    /* Grid 2 kolom (Data Nominatif/Lapangan | Peta) di halaman Tambah/Edit
       Penggarap dipaksa lewat inline style (grid-template-columns: 1.3fr 1fr)
       supaya lebih fleksibel diatur per-halaman - inline style menang atas
       class biasa, jadi override di sini SENGAJA pakai !important, khusus
       untuk breakpoint ini saja. */
    #fv-penggarap-form .fv-form-grid[style] { grid-template-columns: 1fr !important; }

    #fv-map, #fv-map-form { height: 380px; }
    #fv-map-sebaran { height: 400px; }
}

@media (max-width: 560px) {
    .fv-topbar { padding: 12px 16px; }
    .fv-page-title { font-size: 16.5px; }
    .fv-content { padding: 14px; }
    .fv-panel { padding: 16px; }

    /* Chip user disederhanakan - email disembunyikan supaya tidak
       mendesak tombol lain keluar layar; avatar+nama saja sudah cukup
       identitas di layar sesempit ini. */
    .fv-user-email { display: none; }
    .fv-user-chip { gap: 7px; }
    .fv-logout-btn { font-size: 0; padding: 8px; gap: 0; }
    .fv-logout-btn svg { width: 18px; height: 18px; margin: 0; vertical-align: middle; }
    .fv-topbar-right { gap: 10px; }

    .fv-notif-panel { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; max-width: none; }

    .fv-stats-row { gap: 10px; }
    .fv-stat-card { min-width: 100%; padding: 14px 16px; }

    /* Baris header halaman (judul + tombol aksi) yang ditulis lewat inline
       style di banyak file (data-kelompok.php, kelompok-detail.php,
       penggarap-form.php, manajemen-user.php, dst.) - dipaksa membungkus
       ke bawah rapi di layar ponsel alih-alih berdesakan/terpotong.
       !important dipakai KHUSUS di breakpoint ini karena kalah spesifisitas
       melawan inline style, dan hanya menyentuh flex-wrap/gap/margin, bukan
       mengganti tata letak intinya. */
    div[style*="justify-content:space-between"], div[style*="justify-content: space-between"] {
        flex-wrap: wrap !important;
        row-gap: 10px !important;
    }
    #fv-write-actions { margin: 10px 0 18px !important; justify-content: flex-start !important; }

    .fv-btn { flex: 1 1 auto; justify-content: center; }
    .fv-search-row .fv-btn { flex: 0 0 auto; }

    #fv-map, #fv-map-form { height: 300px; }
    #fv-map-sebaran { height: 320px; }

    .fv-modal { padding: 18px; }
    .fv-login-right { padding: 24px 18px; }
    .fv-login-card { max-width: 100%; }

    .fv-form-actionbar { flex-direction: column; align-items: stretch; }
    .fv-form-actionbar-btns { margin-left: 0; width: 100%; }
    .fv-form-actionbar-btns .fv-btn { flex: 1; }
}

/* Tooltip/popup info polygon kelompok (map.js -> kelompokInfoHtml) */
.leaflet-tooltip.fv-poly-tooltip { padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(17,24,39,.22); }
.leaflet-tooltip-top.fv-poly-tooltip::before { border-top-color: #fff; }
.leaflet-tooltip-left.fv-poly-tooltip::before { border-left-color: #fff; }
.leaflet-tooltip-right.fv-poly-tooltip::before { border-right-color: #fff; }
.fv-poly-popup .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; }
.fv-poly-popup .leaflet-popup-content { margin: 0; }
.fv-ptip { padding: 12px 14px; min-width: 220px; max-width: 300px; font-family: inherit; white-space: normal; color: var(--fv-text); }
.fv-ptip-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.fv-ptip-tags .fv-badge { font-size: 10.5px; padding: 2px 8px; }
.fv-ptip-kode { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; background: #374151; color: #fff; border-radius: 6px; padding: 2px 7px; }
.fv-ptip-skema { font-size: 10.5px; font-weight: 600; background: var(--fv-blue-100); color: var(--fv-blue); border-radius: 6px; padding: 2px 7px; }
.fv-ptip-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.fv-ptip-sub { font-size: 11.5px; color: var(--fv-text-muted); margin-top: 2px; line-height: 1.4; }
.fv-ptip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--fv-border); }
.fv-ptip-grid div { display: flex; flex-direction: column; min-width: 0; }
.fv-ptip-grid span { font-size: 10.5px; color: var(--fv-text-muted); text-transform: uppercase; letter-spacing: .03em; }
.fv-ptip-grid strong { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.fv-ptip-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--fv-green-700); text-decoration: none; }
.fv-ptip-link:hover { text-decoration: underline; }

/* ---------------- Import penggarap & EWS ---------------- */
.fv-import-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.fv-import-step { display: flex; gap: 12px; background: #fafbfc; border: 1px solid var(--fv-border); border-radius: 12px; padding: 14px; }
.fv-import-step-no { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--fv-green-700); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.fv-import-step-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fv-import-step-title { font-weight: 700; font-size: 13.5px; }
.fv-import-step-desc { font-size: 12px; color: var(--fv-text-muted); line-height: 1.5; }
.fv-import-step-desc code { font-size: 11px; }
.fv-file-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; }
.fv-file-pick input[type=file] { display: none; }
.fv-file-name { font-size: 12px; color: var(--fv-text-muted); word-break: break-all; }
.fv-import-result { margin-top: 16px; border: 1px solid var(--fv-border); border-radius: 12px; padding: 14px 16px; background: #fff; font-size: 13px; }
.fv-import-result-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.fv-import-error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.fv-import-note { font-size: 12.5px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.fv-import-table { max-height: 380px; overflow: auto; margin-top: 10px; }
.fv-import-row-ews td { background: #fff7ed; }
.fv-import-row-dilewati td { color: var(--fv-text-muted); }
.fv-import-errors { margin: 10px 0; padding-left: 18px; font-size: 12.5px; color: #b45309; line-height: 1.6; max-height: 200px; overflow: auto; }
.fv-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fv-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.fv-chip-green { background: var(--fv-green-100); color: var(--fv-green-700); }
.fv-chip-ews { background: #ffedd5; color: #c2410c; }
.fv-chip-gray { background: #eef0f2; color: #4b5563; }
.fv-chip-amber { background: var(--fv-amber-100); color: var(--fv-amber); }
.fv-chip-red { background: #fee2e2; color: #b91c1c; }
.fv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.fv-badge-ews { background: #ffedd5; color: #c2410c; margin-top: 4px; }
.fv-btn-ews { background: #f97316; color: #fff; text-decoration: none; }
.fv-btn-ews:hover { background: #ea580c; color: #fff; }
.fv-ews-banner { display: flex; align-items: center; gap: 14px; background: #fff7ed; border: 1px solid #fdba74; border-radius: var(--fv-radius); padding: 14px 18px; margin-top: 16px; font-size: 13px; color: #9a3412; }
.fv-ews-banner > div { flex: 1; }
.fv-ews-banner-icon { font-size: 26px; }
@media (max-width: 900px) { .fv-import-steps { grid-template-columns: 1fr; } }

.fv-stat-card.red { border-left-color: #c2410c; }
.fv-ews-filter-note { font-size: 12.5px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.fv-ews-card { border: 1px solid var(--fv-border); border-left: 4px solid #f59e0b; border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.fv-ews-card.lintas { border-left-color: #ea580c; }
.fv-ews-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #fafbfc; border-bottom: 1px solid var(--fv-border); }
.fv-ews-jenis { font-weight: 700; font-size: 13px; }
.fv-ews-card-body { display: grid; grid-template-columns: minmax(0,1.1fr) 24px minmax(0,1.3fr) minmax(0,1fr); gap: 14px; padding: 14px 16px; font-size: 13px; align-items: start; }
.fv-ews-col-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fv-text-muted); margin-bottom: 6px; }
.fv-ews-nama { font-weight: 700; font-size: 14px; }
.fv-ews-nik { margin: 3px 0; }
.fv-ews-nik .fv-mono { background: #fff7ed; color: #c2410c; padding: 1px 6px; border-radius: 5px; font-weight: 700; font-size: 12.5px; }
.fv-ews-vs { align-self: center; font-size: 20px; color: #f97316; text-align: center; }
.fv-ews-konflik-item { border: 1px dashed #fdba74; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; line-height: 1.5; }
.fv-ews-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.fv-ews-tindak { font-size: 12.5px; font-style: italic; line-height: 1.5; }
.fv-ews-tindak .fv-td-muted { font-style: normal; margin-top: 4px; }
@media (max-width: 900px) {
    .fv-ews-card-body { grid-template-columns: 1fr; }
    .fv-ews-vs { transform: rotate(90deg); }
}
.fv-nav-count { margin-left: auto; background: #f97316; color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; min-width: 20px; text-align: center; }
.fv-import-step-body .fv-btn { max-width: 100%; white-space: normal; text-align: left; }
.fv-ews-luar { border-color: #cbd5e1; background: #f8fafc; }

/* Legenda RPKHDPK per arahan (map.js -> createArahanLegend), pojok kiri bawah */
.fv-arahan-legend { background: #fff; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.25); font-size: 12px; min-width: 190px; max-width: 230px; overflow: hidden; }
.fv-arahan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 700; background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.fv-arahan-toggle { border: 0; background: transparent; cursor: pointer; font-size: 13px; padding: 0 2px; }
.fv-arahan-legend.collapsed .fv-arahan-body { display: none; }
.fv-arahan-legend.collapsed .fv-arahan-head { border-bottom: 0; }
.fv-arahan-body { padding: 6px 10px 8px; }
.fv-arahan-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; cursor: pointer; }
.fv-arahan-row.off .fv-arahan-name, .fv-arahan-row.off .fv-arahan-count { opacity: .45; text-decoration: line-through; }
.fv-arahan-swatch { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); flex: 0 0 auto; }
.fv-arahan-name { flex: 1; }
.fv-arahan-count { color: var(--fv-text-muted); font-size: 11px; }
.fv-arahan-actions { margin-top: 4px; font-size: 11px; color: var(--fv-text-muted); }
.fv-arahan-actions a { color: var(--fv-green-700); }
.fv-arahan-note { margin-top: 6px; font-size: 11px; color: #9a3412; background: #fff7ed; border-radius: 6px; padding: 4px 6px; }

/* Validasi lokasi & overlay di form penggarap */
.fv-lokasi-check { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.fv-lok-row { font-size: 12.5px; border-radius: 8px; padding: 8px 10px; line-height: 1.45; }
.fv-lok-row.ok { background: var(--fv-green-50, #f0fdf4); color: #166534; border: 1px solid #bbf7d0; }
.fv-lok-row.bad { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.fv-lok-row.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.fv-overlay-result { margin-top: 10px; font-size: 12.5px; }
.fv-ov-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--fv-border); }
.fv-ews-banner { margin: 8px 0 10px; padding: 9px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; font-size: 13px; line-height: 1.45; }
.fv-ov-warn { margin-top: 6px; padding: 7px 9px; border-radius: 8px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.fv-ov-row:last-child { border-bottom: 0; }
.fv-ov-row span:nth-child(2) { color: var(--fv-text-muted); min-width: 96px; }
.fv-ov-row strong { font-weight: 600; margin-left: auto; text-align: right; }
.fv-ov-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.fv-legend-inline { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; font-size: 12px; }
.fv-legend-inline > span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fv-ews-card.lokasi { border-left-color: #0e7490; }

/* Form penggarap: 2 kolom (form | peta). minmax(0,..) supaya kolom boleh
   menyempit (tanpa ini kolom peta terdorong keluar layar di lebar ~1000px). */
.fv-penggarap-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1180px) {
    .fv-penggarap-grid { grid-template-columns: minmax(0, 1fr); }
    .fv-penggarap-grid > div:last-child > .fv-panel { position: static !important; }
}

/* Cek NIK langsung di form penggarap */
.fv-nik-check { display: flex; flex-direction: column; gap: 6px; }
.fv-nik-check:empty { display: none; }
.fv-nik-row { font-size: 12.5px; border-radius: 8px; padding: 7px 10px; line-height: 1.5; }
.fv-nik-row.ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.fv-nik-row.bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.fv-nik-row.warn { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.fv-nik-row.info { background: #f8fafc; color: #334155; border: 1px solid var(--fv-border); }
.fv-nik-diff { background: #fde68a; color: #92400e; border-radius: 3px; padding: 0 1px; font-weight: 700; }
.fv-ews-card.mirip { border-left-color: #d97706; }

/* ---------------- Autocomplete kelompok (app.js -> fvKelompokAutocomplete) ---------------- */
.fv-ac-wrap { position: relative; width: 100%; }
.fv-ac-wrap > input { width: 100%; padding-right: 34px; }
.fv-ac-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: #eef0f2; color: #4b5563; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 11px; line-height: 22px; padding: 0; }
.fv-ac-list { display: none; position: absolute; z-index: 1500; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--fv-border); border-radius: 10px; box-shadow: 0 12px 28px rgba(15,23,42,.14); max-height: 320px; overflow: auto; }
.fv-ac-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.fv-ac-item:last-child { border-bottom: 0; }
.fv-ac-item.active, .fv-ac-item:hover { background: var(--fv-green-50, #f0fdf4); }
.fv-ac-kode { display: inline-block; font-size: 10.5px; font-weight: 700; background: #374151; color: #fff; border-radius: 5px; padding: 1px 6px; margin-right: 4px; }
.fv-ac-sub { font-size: 11.5px; color: var(--fv-text-muted); margin-top: 2px; }
.fv-ac-empty { padding: 12px; font-size: 12.5px; color: var(--fv-text-muted); }
.fv-filter-chip { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 999px; padding: 5px 12px; }
.fv-filter-chip a { color: #1e40af; font-weight: 600; }

/* ---------------- Peta sebaran ---------------- */
.fv-map-loading { position: absolute; z-index: 1000; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(17,24,39,.8); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; pointer-events: none; }
.fv-pointing-panel { background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.fv-pointing-head { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.fv-pointing-help { flex: 1.3; min-width: 260px; font-size: 12.5px; color: #5b21b6; line-height: 1.5; }
.fv-pointing-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.fv-pointing-item { display: grid; grid-template-columns: 28px 150px minmax(130px,1fr) minmax(150px,1.3fr) 140px 36px; gap: 8px; align-items: center; background: #fff; border: 1px solid #e9d5ff; border-radius: 8px; padding: 6px 8px; }
.fv-pointing-item input { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--fv-border); font-size: 12.5px; min-width: 0; }
.fv-pointing-no { width: 24px; height: 24px; border-radius: 50%; background: #8b5cf6; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fv-pointing-coord { font-size: 11px; color: var(--fv-text-muted); font-family: ui-monospace, Menlo, monospace; line-height: 1.4; }
.fv-pointing-cek { font-size: 11.5px; }
.fv-pointing-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 12.5px; color: #5b21b6; }
.fv-pointing-pin { background: #8b5cf6; color: #fff; border: 2px solid #fff; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; box-shadow: 0 1px 5px rgba(0,0,0,.45); }
.fv-pt-ok { color: #15803d; font-weight: 600; }
.fv-pt-bad { color: #b91c1c; font-weight: 600; }
.fv-pt-warn { color: #c2410c; font-weight: 600; }
@media (max-width: 900px) {
    .fv-pointing-item { grid-template-columns: 28px 1fr 36px; }
    .fv-pointing-item input, .fv-pointing-item .fv-pointing-cek { grid-column: 2 / 3; }
}

.fv-map-empty { position: absolute; z-index: 1000; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255,255,255,.96); border: 1px solid var(--fv-border); box-shadow: 0 4px 14px rgba(0,0,0,.15); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: #374151; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; align-items: center; width: max-content; max-width: calc(100% - 24px); text-align: center; }

/* ---------- Captcha login ---------- */
.fv-captcha-field { margin-bottom: 8px; margin-top: 14px; }
.fv-captcha-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fv-captcha-img { flex: 1; height: 60px; border-radius: 10px; border: 1px solid #d7e3dc; background: #f4f8f5; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .15s; }
.fv-captcha-img img { height: 60px; width: auto; display: block; user-select: none; -webkit-user-drag: none; }
.fv-captcha-img.loading { opacity: .45; }
.fv-captcha-refresh { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #d7e3dc; background: #fff; font-size: 20px; color: #166534; cursor: pointer; flex: none; }
.fv-captcha-refresh:hover { background: #ecfdf3; }

/* ---------- Dropdown wilayah bertingkat (master Kemendagri) ---------- */
.fv-wp { grid-column: 1 / -1; }
.fv-wp-quick { position: relative; margin-bottom: 12px; }
.fv-wp-quick input { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px dashed #9ccfb2; background: #f6fbf8; font-size: 13px; }
.fv-wp-quick input:focus { outline: none; border-style: solid; border-color: var(--fv-green-500); box-shadow: 0 0 0 3px var(--fv-green-100); background: #fff; }
.fv-wp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.fv-wp-combo { position: relative; }
.fv-wp-combo input { width: 100%; padding-right: 34px !important; }
.fv-wp-caret { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #6b7280; font-size: 13px; width: 26px; height: 26px; cursor: pointer; border-radius: 6px; }
.fv-wp-caret:hover { background: #f3f4f6; }
.fv-wp-field.disabled input { background: #f3f4f6; cursor: not-allowed; }
.fv-wp-field.disabled .fv-wp-caret { opacity: .35; cursor: not-allowed; }
.fv-wp-list { display: none; position: absolute; z-index: 1500; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--fv-border); border-radius: 10px; box-shadow: 0 12px 28px rgba(15,23,42,.14); max-height: 280px; overflow: auto; }
.fv-wp-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.fv-wp-item.active { background: var(--fv-green-50, #f0fdf4); }
.fv-wp-item.selected { font-weight: 600; color: #166534; }
.fv-wp-kode { font-size: 10.5px; color: #9ca3af; font-variant-numeric: tabular-nums; flex: none; }
.fv-wp-invalid input { border-color: #dc2626 !important; box-shadow: 0 0 0 3px #fee2e2 !important; }
.fv-wp-legacy { margin-top: 10px; font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; }
.fv-wp-tag-desa { background: #166534; }
.fv-wp-tag-kecamatan { background: #1d4ed8; }
.fv-wp-tag-kabupaten { background: #7c3aed; }
.fv-wp-compact { display: contents; }
.fv-wp-compact .fv-wp-grid { display: contents; }
.fv-wp-compact .fv-wp-field { flex: 1 1 130px; min-width: 130px; margin: 0; }
.fv-wp-compact .fv-wp-field label { display: none; }
.fv-wp-compact .fv-wp-combo input { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--fv-border); width: 100%; font-size: 13px; }
@media (max-width: 720px) { .fv-wp-grid { grid-template-columns: 1fr; } }
.fv-wilayah-box { grid-column: 1 / -1; border: 1px solid #e3efe8; background: #fbfdfc; border-radius: 12px; padding: 14px 16px 16px; }
.fv-wilayah-head { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: #14532d; }
.fv-wilayah-head .fv-td-muted { font-weight: 400; font-size: 11.5px; }

/* ---------- Data table ringan (data-kelompok) ---------- */
.fv-dt-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.fv-dt-search { flex: 1 1 240px; min-width: 200px; }
.fv-dt-search input { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--fv-border); font-size: 13px; }
.fv-dt-filters { display: flex; flex: 3 1 400px; gap: 10px; flex-wrap: wrap; }
.fv-dt-select { padding: 10px 12px; border-radius: 9px; border: 1px solid var(--fv-border); font-size: 13px; background: #fff; flex: 0 1 135px; min-width: 120px; }
#fv-dt-reset { display: none; }
.fv-dt-wrap { max-height: calc(100vh - 330px); min-height: 220px; overflow: auto; border: 1px solid var(--fv-border); border-radius: 10px; }
.fv-dt-table { font-size: 12.8px; }
.fv-dt-table thead th { position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.fv-dt-wrap table.fv-dt-table thead th { border-radius: 0; }
.fv-dt-table th[data-sort] { cursor: pointer; user-select: none; }
.fv-dt-table th[data-sort]::after { content: '↕'; margin-left: 5px; opacity: .45; font-size: 11px; }
.fv-dt-table th[data-sort]:hover { filter: brightness(1.12); }
.fv-dt-table th.sorted { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.fv-dt-table th.sorted[data-dir="asc"]::after { content: '▲'; opacity: 1; font-size: 9px; }
.fv-dt-table th.sorted[data-dir="desc"]::after { content: '▼'; opacity: 1; font-size: 9px; }
table.fv-table.fv-dt-table tbody td { padding: 9px 10px; }
table.fv-table.fv-dt-table thead th { padding: 11px 10px; }
.fv-dt-table .num { text-align: right; white-space: nowrap; }
.fv-dt-table tbody tr:hover { background: #f8fcf9; }
.fv-dt-busy { opacity: .55; transition: opacity .12s; }
.fv-dt-name { color: var(--fv-text); font-weight: 600; text-decoration: none; }
.fv-dt-name:hover { color: #166534; text-decoration: underline; }
.fv-dt-wil { min-width: 165px; max-width: 280px; }
.fv-dt-table td:nth-child(2) { min-width: 140px; }
.fv-dt-table .fv-badge { white-space: nowrap; }
.fv-dt-chip { display: inline-block; font-size: 10.5px; padding: 0 6px; border-radius: 6px; background: #eef0f2; color: #374151; line-height: 17px; vertical-align: 1px; }
.fv-dt-chip.warn { background: #fef3c7; color: #92400e; }
.fv-dt-aksi { white-space: nowrap; text-align: right; width: 1%; }
.fv-dt-act { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--fv-border); background: #fff; font-size: 13px; cursor: pointer; text-decoration: none; margin-left: 4px; }
.fv-dt-act:hover { background: #f0fdf4; border-color: #bbf7d0; }
.fv-dt-act.danger:hover { background: #fef2f2; border-color: #fecaca; }
.fv-dt-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--fv-text-muted); }
.fv-dt-size select { padding: 5px 8px; border-radius: 7px; border: 1px solid var(--fv-border); margin: 0 4px; }
.fv-dt-pages { display: flex; gap: 4px; align-items: center; }
.fv-dt-pages button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--fv-border); background: #fff; cursor: pointer; font-size: 12.5px; color: var(--fv-text); }
.fv-dt-pages button.active { background: #166534; border-color: #166534; color: #fff; font-weight: 700; }
.fv-dt-pages button:disabled { opacity: .4; cursor: default; }
.fv-dt-pages .gap { padding: 0 4px; }
@media (max-width: 720px) { .fv-dt-wrap { max-height: none; } }
.fv-prov-filter { margin-bottom: 6px; }
.fv-prov-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; max-height: 190px; overflow: auto; border: 1px solid var(--fv-border); border-radius: 9px; padding: 8px 10px; background: #fff; }
.fv-prov-item { display: flex !important; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400 !important; padding: 3px 0; cursor: pointer; }
.fv-prov-item input { width: auto !important; padding: 0 !important; }
#fv-captcha::placeholder { letter-spacing: normal; text-transform: none; font-weight: 400; }
/* Wilayah kerja akun CDK (manajemen user) */
.fv-uwk-cell { max-width: 420px; }
.fv-uwk summary { cursor: pointer; font-size: 12.5px; list-style: none; }
.fv-uwk summary::before { content: '▸ '; color: #166534; }
.fv-uwk[open] summary::before { content: '▾ '; }
.fv-uwk-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; font-size: 12px; padding: 4px 0; border-top: 1px dashed #eef0f2; }
.fv-uwk-kab { font-weight: 600; }

/* ---------- Ganti password ---------- */
a.fv-user-chip { text-decoration: none; color: inherit; border-radius: 12px; padding: 3px 6px; transition: background .15s; }
a.fv-user-chip:hover { background: #f0fdf4; }
.fv-pass-btn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 13px; font-weight: 600; color: #166534; background: #ecfdf3; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 12px; }
.fv-pass-btn:hover { background: #dcfce7; }
@media (max-width: 720px) { .fv-pass-btn span { display: none; } }
.fv-pw-wrap { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; align-items: start; }
.fv-pw-card { background: #fff; border: 1px solid var(--fv-border); border-radius: 16px; padding: 24px; box-shadow: var(--fv-shadow); }
.fv-pw-force { background: linear-gradient(135deg, #fff7ed, #fffbeb); border: 1px solid #fcd34d; color: #92400e; border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px; display: flex; gap: 12px; align-items: flex-start; }
.fv-pw-force b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.fv-pw-field { position: relative; }
.fv-pw-field input { width: 100%; padding-right: 44px !important; }
.fv-pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 16px; cursor: pointer; width: 34px; height: 34px; border-radius: 8px; }
.fv-pw-eye:hover { background: #f3f4f6; }
.fv-pw-meter { height: 8px; background: #eef0f2; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.fv-pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .25s, background .25s; }
.fv-pw-level { font-size: 12px; margin-top: 4px; font-weight: 600; }
.fv-pw-rules { list-style: none; padding: 0; margin: 4px 0 0; font-size: 13px; }
.fv-pw-rules li { padding: 5px 0; color: #6b7280; display: flex; gap: 8px; align-items: center; }
.fv-pw-rules li::before { content: '○'; width: 18px; text-align: center; color: #cbd5e1; font-weight: 700; }
.fv-pw-rules li.ok { color: #166534; }
.fv-pw-rules li.ok::before { content: '✓'; color: #16a34a; }
.fv-pw-info { font-size: 12.5px; color: #4b5563; line-height: 1.6; }
.fv-pw-info dt { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #9ca3af; font-weight: 700; margin-top: 10px; }
.fv-pw-info dd { margin: 2px 0 0; font-weight: 600; color: #1f2937; }
@media (max-width: 860px) { .fv-pw-wrap { grid-template-columns: 1fr; } }
.fv-pw-status { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.fv-pw-status.default { background: #fef3c7; color: #92400e; }
.fv-pw-status.ok { background: #dcfce7; color: #166534; }
.fv-regulasi-hint { color: #166534; }
.fv-regulasi-hint.bad { color: #dc2626; font-weight: 600; }

/* Peta Leaflet memakai z-index internal 400-1000 (pane & kontrol). Kurung di
   dalam kontainernya sendiri supaya tidak menimpa header yang menempel dan
   menu samping di layar HP. */
.leaflet-container { isolation: isolate; z-index: 0; }
.fv-logout-btn svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Approval massal kelompok & kode registrasi */
.fv-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
    background: #ecfdf5; border: 1px solid #a7f3d0; font-size: 13px; font-weight: 600; color: #065f46; position: sticky; top: 70px; z-index: 5; }
.fv-bulk-bar #fv-bulk-info { margin-right: auto; }
.fv-bulk-hint { font-size: 12.5px; color: #475569; margin: -4px 0 12px; }
.fv-bulk-hint a { color: #15803d; font-weight: 600; margin-left: 6px; }
.fv-dt-cek { width: 34px; text-align: center; }
.fv-dt-cek input { width: 16px; height: 16px; accent-color: #16a34a; cursor: pointer; }
.fv-dt-cek input:disabled { cursor: not-allowed; opacity: .35; }
.fv-dt-act.ok { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; font-weight: 800; }
.fv-kode-reg { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; margin-top: 3px; white-space: nowrap; }
.fv-btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* Bidang lahan tambahan & koordinat dari foto (penggarap) */
.fv-bidang-box { margin-top: 14px; padding: 12px 14px; border: 1px dashed #86efac; border-radius: 12px; background: #f7fdf9; }
.fv-bidang-head { font-size: 13.5px; }
.fv-bidang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; border-top: 1px solid #e2f3e8; }
.fv-bidang-row.aktif { background: #ecfdf5; border-radius: 8px; padding: 8px; }
.fv-bidang-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #15803d; color: #fff; font-weight: 800; font-size: 12.5px; display: grid; place-items: center; }
.fv-bidang-row.utama .fv-bidang-no { background: #2563eb; }
.fv-bidang-isi { flex: 1 1 200px; min-width: 0; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.fv-bidang-ket { width: 100%; padding: 6px 8px; border: 1px solid var(--fv-border); border-radius: 8px; font-size: 12.5px; }
.fv-bidang-luas { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #475569; }
.fv-bidang-luas input { width: 84px; padding: 6px 8px; border: 1px solid var(--fv-border); border-radius: 8px; }
.fv-bidang-aksi { display: flex; gap: 4px; }
.fv-bidang-kosong { color: #b45309; font-weight: 600; }
.fv-bidang-aktif { margin: 6px 0; padding: 7px 10px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 12.5px; }
.fv-bidang-aktif a { color: #92400e; font-weight: 700; margin-left: 6px; }
#fv-bidang-tambah { margin-top: 8px; }
.fv-bidang-pin { width: 28px; height: 28px; border-radius: 50%; background: #15803d; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
    font: 800 13px/24px system-ui, sans-serif; text-align: center; }
.fv-bidang-pin.aktif { background: #f59e0b; }
input.fv-readonly { background: #f1f5f9; color: #0f172a; font-weight: 700; }
.fv-fotok-card { margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: 12.5px; }
.fv-fotok-card.muted { background: #f8fafc; border-color: var(--fv-border); color: #64748b; }
.fv-fotok-val { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; margin: 3px 0 6px; }
.fv-fotok-warn { color: #b45309; font-weight: 600; margin-bottom: 6px; }
.fv-fotok-btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Citra drone (orthomosaic) - kelompok-detail, peta-sebaran, penggarap-form ---- */
.fv-citra-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -8px 0 12px; font-size: 13px; }
.fv-citra-bar:empty { display: none; }
.fv-citra-ctl { background: #fff; padding: 8px 10px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.2); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.fv-citra-ctl label { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.fv-citra-ctl input[type=range] { width: 100%; accent-color: #15803d; }
.fv-alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 0 0 10px; line-height: 1.5; }
.fv-alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.fv-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.fv-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.fv-progress { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.fv-progress-bar { height: 100%; background: linear-gradient(90deg, #16a34a, #22c55e); border-radius: 999px; transition: width .3s ease; }
.fv-citra-handle { background: #fff; border: 2px solid #15803d; border-radius: 8px; color: #15803d; font-weight: 800; font-size: 14px; line-height: 22px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: grab; }

/* Daftar penggarap (detail kelompok): saringan, pilih banyak, paginasi ringkas */
.fv-pg-filter { flex-wrap: wrap; }
.fv-pg-filter input { flex: 1 1 260px; }
.fv-pg-filter select { width: auto; flex: 0 0 auto; }
.fv-bulk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
.fv-bulk-bar a { color: #b91c1c; font-weight: 600; }
.fv-table-penggarap td { vertical-align: top; }
.fv-table-penggarap .fv-pg-nama { min-width: 210px; }
.fv-table-penggarap .fv-pg-nama .fv-td-muted { font-size: 12px; margin-top: 2px; }
.fv-table-penggarap .fv-pg-tanaman { font-size: 12.5px; max-width: 200px; }
.fv-table-penggarap th, .fv-table-penggarap td { padding-left: 8px; padding-right: 8px; }
.fv-pg-aksi { flex-wrap: wrap; gap: 4px; width: 118px; }
.fv-pg-aksi .fv-btn-sm { padding: 5px 8px; }
.fv-pg-aksi .fv-btn-ews { width: 100%; justify-content: center; text-align: center; }
.fv-pg-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: #6b7280; }
.fv-pg-footer .fv-pagination { margin-top: 0; flex-wrap: wrap; }
.fv-pagination button[disabled] { opacity: .4; cursor: default; }
.fv-pg-elip { color: #9ca3af; padding: 0 2px; }
.fv-pop-pg table { border-collapse: collapse; margin: 6px 0; font-size: 12.5px; }
.fv-pop-pg td { padding: 2px 8px 2px 0; vertical-align: top; }
.fv-pop-pg td:first-child { color: #6b7280; white-space: nowrap; }
.fv-shp-kolom-box { margin-top: 12px; background: #f8fafc; border: 1px solid var(--fv-border); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
.fv-shp-kolom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; }
@media (max-width: 1100px) { .fv-shp-kolom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fv-shp-kolom-grid { grid-template-columns: 1fr; } }
/* Daftar penggarap menyesuaikan lebar layar: kolom dilipat, tidak perlu geser ke samping */
.fv-table-penggarap .pg-s-kode, .fv-table-penggarap .pg-s-tanaman, .fv-table-penggarap .pg-s-overlay { display: none; }
.fv-table-penggarap .pg-s-kode { margin-bottom: 3px; }
.fv-table-penggarap .pg-s-overlay { margin-top: 4px; }
.fv-table-penggarap .pg-s-overlay .fv-badge { white-space: normal; }
@media (max-width: 1500px) {
  .fv-table-penggarap .pg-k-kode, .fv-table-penggarap .pg-k-overlay { display: none; }
  .fv-table-penggarap .pg-s-kode { display: inline-block; }
  .fv-table-penggarap .pg-s-overlay { display: block; }
  .fv-table-penggarap .fv-pg-nama .pg-s-kode + strong { display: block; }
}
@media (max-width: 1200px) {
  .fv-table-penggarap .pg-k-tanaman { display: none; }
  .fv-table-penggarap .pg-s-tanaman { display: block; }
  .fv-table-penggarap .fv-pg-nama { min-width: 190px; }
}

/* =====================================================================
   PENYEGARAN TAMPILAN (Okt 2026) - HANYA tampilan: warna lebih hidup,
   sudut lebih bulat, bayangan lembut, efek hover. Tidak mengubah fungsi,
   struktur halaman, JavaScript, maupun lapisan keamanan. Untuk kembali ke
   tampilan lama cukup hapus blok ini.
   ===================================================================== */
:root {
    --fv-green-700: #047857;
    --fv-green-600: #059669;
    --fv-green-500: #10b981;
    --fv-green-100: #d1fae5;
    --fv-green-50: #ecfdf5;
    --fv-bg: #f3f7f5;
    --fv-radius: 16px;
    --fv-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px -6px rgba(16,24,40,.10);
    --fv-ring: 0 0 0 4px rgba(16,185,129,.18);
}
body { background: radial-gradient(1200px 500px at 100% -10%, #e6f7ef 0%, rgba(230,247,239,0) 60%), var(--fv-bg); background-attachment: fixed; }

/* panel & kartu */
.fv-panel { border: 1px solid rgba(15,23,42,.05); }
.fv-stat-card {
    border-left-width: 0; position: relative; overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
}
.fv-stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, #60a5fa, #2563eb); }
.fv-stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(16,24,40,.25); }
.fv-stat-card.green { background: linear-gradient(135deg, #ecfdf5 0%, #fff 70%); }
.fv-stat-card.green::before { background: linear-gradient(180deg, #34d399, #059669); }
.fv-stat-card.amber { background: linear-gradient(135deg, #fff7ed 0%, #fff 70%); }
.fv-stat-card.amber::before { background: linear-gradient(180deg, #fdba74, #ea580c); }
.fv-stat-card.teal { background: linear-gradient(135deg, #f0fdfa 0%, #fff 70%); }
.fv-stat-card.teal::before { background: linear-gradient(180deg, #5eead4, #0d9488); }
.fv-stat-card.purple { background: linear-gradient(135deg, #f5f3ff 0%, #fff 70%); }
.fv-stat-card.purple::before { background: linear-gradient(180deg, #c4b5fd, #7c3aed); }
.fv-stat-card.red { background: linear-gradient(135deg, #fff1f2 0%, #fff 70%); }
.fv-stat-card.red::before { background: linear-gradient(180deg, #fda4af, #e11d48); }
.fv-stat-value { letter-spacing: -.01em; }

/* tombol */
.fv-btn { border-radius: 11px; transition: transform .12s ease, box-shadow .15s ease, filter .15s ease, background .15s ease; }
.fv-btn:not(:disabled):active { transform: translateY(1px); }
.fv-btn-primary { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 12px -4px rgba(5,150,105,.55); }
.fv-btn-primary:hover { background: linear-gradient(135deg, #34d399 0%, #059669 100%); box-shadow: 0 8px 18px -6px rgba(5,150,105,.6); }
.fv-btn-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); box-shadow: 0 4px 12px -4px rgba(37,99,235,.5); }
.fv-btn-light:hover { background: #e3e8ec; }
.fv-btn-outline:hover { border-color: var(--fv-green-500); color: var(--fv-green-700); background: var(--fv-green-50); }
.fv-btn-sm { border-radius: 9px; }

/* form */
.fv-field input, .fv-field select, .fv-field textarea {
    border-radius: 11px; border-color: #d5dde6; padding: 11px 13px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.fv-field input:hover, .fv-field select:hover, .fv-field textarea:hover { border-color: #b8c4d1; }
.fv-field input:focus, .fv-field select:focus, .fv-field textarea:focus { border-color: var(--fv-green-500); box-shadow: var(--fv-ring); }
.fv-field label { color: #334155; }

/* tabel */
table.fv-table thead th { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
table.fv-table thead th:first-child { border-top-left-radius: 12px; }
table.fv-table thead th:last-child { border-top-right-radius: 12px; }
table.fv-table tbody tr { transition: background .12s ease; }
table.fv-table tbody tr:hover { background: var(--fv-green-50); }

/* menu samping & topbar */
.fv-nav a { transition: background .15s ease, transform .15s ease; }
.fv-nav a:hover { background: rgba(255,255,255,.10); transform: translateX(2px); }
.fv-nav a.active { background: linear-gradient(135deg, rgba(52,211,153,.95), rgba(5,150,105,.95)); box-shadow: 0 6px 16px -6px rgba(16,185,129,.7); }
.fv-topbar { background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); }
.fv-tab-btn.active { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; }
.fv-pagination button.active { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; }
.fv-avatar { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.fv-progress-bar { background: linear-gradient(90deg, #34d399, #059669); }

/* Latar foto hutan pagi berkabut (Okt 2026) untuk menu samping & halaman login -
   lapisan gelap sedikit lebih tipis agar fotonya terlihat, teks tetap terbaca. */
.fv-sidebar {
    background:
        linear-gradient(180deg, rgba(6,40,28,.62) 0%, rgba(4,22,14,.78) 45%, rgba(3,14,9,.90) 100%),
        url('../img/bg-hutan-pagi.jpg') center top/cover no-repeat;
}
.fv-login-left {
    background:
        linear-gradient(165deg, rgba(6,40,28,.35) 0%, rgba(4,22,14,.45) 45%, rgba(3,14,9,.85) 100%),
        url('../img/bg-hutan-pagi.jpg') center/cover no-repeat;
}

/* ---- WIBI-Trans: pilih SK asal dari AKPS/Sitroom (Okt 2026) ---- */
.fv-trans-box { border: 1.5px solid #f59e0b; background: linear-gradient(180deg,#fffbeb,#fff); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.fv-trans-head { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.fv-trans-hasil { margin-top:10px; max-height:360px; overflow:auto; display:grid; gap:8px; }
.fv-trans-label { font-weight:700; font-size:12.5px; color:#92400e; margin-bottom:6px; }
.fv-sk-kartu { border:1px solid var(--fv-border); border-radius:12px; padding:10px 12px; background:#fff; font-size:13px; }
.fv-sk-kartu.dipakai { border-color:#fca5a5; background:#fff7f7; }
.fv-sk-atas { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:4px; }
.fv-sk-atas .fv-sk-pilih, .fv-sk-atas .fv-sk-ganti { margin-left:auto; }
.fv-sk-baris { color:#475569; font-size:12.5px; line-height:1.55; }
.fv-sk-baris.warn { color:#b91c1c; font-weight:600; }
.fv-dt-chip.ok { background: #dcfce7; color: #166534; }
/* ---- Tab modul Data Kelompok: Penyiapan/Usulan vs Transformasi ---- */
.fv-modul-tabs { display:flex; gap:8px; margin: 0 0 16px; flex-wrap:wrap; }
.fv-modul-tab { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:12px; border:1.5px solid var(--fv-border); background:#fff;
    color:var(--fv-text); text-decoration:none; font-weight:700; font-size:14px; transition: all .15s; }
.fv-modul-tab:hover { border-color: var(--fv-green-500); }
.fv-modul-tab.aktif { background: linear-gradient(135deg,#065f46,#059669); color:#fff; border-color:transparent; box-shadow:0 6px 16px rgba(5,150,105,.25); }
.fv-modul-sub { font-weight:500; font-size:11.5px; opacity:.75; }
.fv-modul-jml { background: rgba(0,0,0,.08); border-radius:999px; padding:0 8px; font-size:12px; min-width:18px; text-align:center; }
.fv-modul-tab.aktif .fv-modul-jml { background: rgba(255,255,255,.25); }
.fv-modul-jml:empty { display:none; }
.fv-dt-sk { min-width: 210px; font-size: 12.5px; }
.fv-sk-no { font-weight: 700; font-size: 12px; color: #0f3d22; word-break: break-word; }
/* ---- Editor Berita Acara Transformasi (Okt 2026) ---- */
.ba-kepala { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.ba-tata { display:grid; grid-template-columns: 260px 1fr; gap:14px; align-items:start; }
@media (max-width: 1100px) { .ba-tata { grid-template-columns: 1fr; } }
.ba-daftar { position: sticky; top: 90px; }
.ba-item { display:block; padding:8px 10px; border:1px solid var(--fv-border); border-radius:10px; margin-bottom:6px; text-decoration:none; color:var(--fv-text); font-size:13px; }
.ba-item span { display:block; color:#64748b; font-size:11.5px; margin-top:2px; }
.ba-item.aktif { border-color: var(--fv-green-500); background: var(--fv-green-50); }
.ba-legenda { margin-top:14px; font-size:12px; color:#475569; display:grid; gap:4px; }
.ba-tanda { display:inline-block; width:14px; height:10px; border-radius:3px; vertical-align:-1px; margin-right:4px; }
.ba-tanda.hijau { background:#bbf7d0; } .ba-tanda.kuning { background:#fde68a; }
.ba-meta { display:grid; grid-template-columns: 2fr 1.4fr 160px; gap:10px; margin-bottom:12px; }
.ba-meta label { font-size:12px; font-weight:600; color:#475569; }
.ba-aksi { grid-column:1/-1; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ba-versi { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid #eef2f7; font-size:13px; }
.ba-meta label { display:flex; flex-direction:column; gap:4px; }

/* EWS: statistik dikelompokkan untuk pimpinan (Okt 2026) */
.fv-ews-grup { background: rgba(255,255,255,.55); border: 1px solid #eef2f7; border-radius: 16px; padding: 12px 14px 4px; margin-bottom: 16px; }
.fv-ews-grup-judul { font-weight: 700; font-size: 14px; color: #1f2937; margin: 0 2px 10px; }
.fv-ews-grup-judul span { font-weight: 400; font-size: 12px; color: var(--fv-text-muted); margin-left: 6px; }
.fv-ews-baris { margin-bottom: 8px; }
.fv-ews-utama { flex: 1.35 1 0; }
.fv-ews-utama .fv-stat-value { font-size: clamp(22px, 2.2vw, 30px); }
.fv-stat-klik.aktif { outline: 2px solid #2563eb; outline-offset: 2px; }
.fv-ews-tiga { display: flex; }
.fv-ews-tiga span { border-radius: 0; }
.fv-ews-tiga span:first-child { border-radius: 99px 0 0 99px; }
.fv-ews-tiga span:last-child { border-radius: 0 99px 99px 0; }
.fv-ews-progres .fv-stat-bar span { background: #0d9488; }

/* tombol unduh SIVA & Thally Sheet (Okt 2026) - senada dengan tombol gradasi lain */
.fv-btn-siva { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); color: #fff; box-shadow: 0 4px 12px -4px rgba(109,40,217,.5); }
.fv-btn-siva:hover { background: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%); box-shadow: 0 8px 18px -6px rgba(109,40,217,.55); }
.fv-btn-thally { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: #fff; box-shadow: 0 4px 12px -4px rgba(217,119,6,.5); }
.fv-btn-thally:hover { background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); box-shadow: 0 8px 18px -6px rgba(217,119,6,.55); }

/* editor BA: tab jenis BA WIBI-FasVal (Pengecekan / Fasilitasi / Validasi) */
.ba-jenis-tab { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ba-jenis-tab a { display: block; padding: 7px 10px; border-radius: 9px; background: #f1f5f9; color: #334155; font-size: 13px; font-weight: 600; text-decoration: none; }
.ba-jenis-tab a:hover { background: #e2e8f0; }
.ba-jenis-tab a.aktif { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
.fv-btn-kmz { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); color: #fff; box-shadow: 0 4px 12px -4px rgba(15,118,110,.5); }
.fv-btn-kmz:hover { background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%); box-shadow: 0 8px 18px -6px rgba(15,118,110,.55); }
/* pilihan unduhan Google Earth */
.fv-kmz-pilih { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.fv-kmz-opsi { text-align: left; border: 1.5px solid #e2e8f0; background: #fff; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.fv-kmz-opsi:hover { border-color: #0f766e; box-shadow: 0 4px 14px -6px rgba(15,118,110,.45); }
.fv-kmz-opsi b { display: block; font-size: 13.5px; color: #0f172a; margin-bottom: 3px; }
.fv-kmz-opsi span { display: block; font-size: 12px; color: #64748b; line-height: 1.4; }

/* Penyesuaian Titik */
.fv-btn-penyesuaian { background: linear-gradient(135deg,#7c3aed,#c026d3); color: #fff !important; border: 0; text-decoration: none; }
.fv-btn-penyesuaian:hover { filter: brightness(1.08); }
.pt-kepala { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-wadah { display: flex; gap: 12px; height: calc(100vh - 170px); min-height: 520px; background: #f8fafc; }
.pt-wadah:fullscreen, .pt-wadah.pt-penuh { position: fixed; inset: 0; z-index: 3000; height: 100vh; padding: 10px; }
.pt-peta { position: relative; flex: 1; min-width: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,23,42,.12); }
.pt-peta #pt-map { position: absolute; inset: 0; }
.pt-petunjuk { position: absolute; left: 10px; bottom: 10px; z-index: 800; background: rgba(15,23,42,.78); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; max-width: calc(100% - 20px); }
.pt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; vertical-align: -1px; margin: 0 2px 0 6px; }
.pt-dot.luar { background: #f97316; } .pt-dot.dalam { background: #16a34a; } .pt-dot.ubah { background: #2563eb; }
.pt-ikon-wadah { background: none; border: 0; }
.pt-ikon { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.55); cursor: grab; display: flex; align-items: center; justify-content: center; font: 700 10px/1 sans-serif; color: #fff; box-sizing: border-box; }
.pt-ikon.luar { background: #f97316; animation: ptDenyut 1.6s infinite; } .pt-ikon.dalam { background: #16a34a; } .pt-ikon.ubah { background: #2563eb; }
.pt-ikon.bidang { border-radius: 5px; }
.leaflet-dragging .pt-ikon { cursor: grabbing; }
@keyframes ptDenyut { 0% { box-shadow: 0 0 0 0 rgba(249,115,22,.7); } 70% { box-shadow: 0 0 0 9px rgba(249,115,22,0); } 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); } }
.pt-panel { width: 340px; flex-shrink: 0; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.08); display: flex; flex-direction: column; padding: 12px; gap: 8px; min-height: 0; }
.pt-ringkas { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.pt-ringkas > div { background: #f1f5f9; border-radius: 10px; padding: 7px; text-align: center; }
.pt-ringkas > div b { display: block; font-size: 18px; color: #0f172a; } .pt-ringkas > div span { font-size: 11px; color: #64748b; }
.pt-ringkas > div.luar b { color: #ea580c; } .pt-ringkas > div.ubah b { color: #2563eb; }
.pt-ringkas p { grid-column: 1 / -1; margin: 0; font-size: 11.5px; color: #475569; background: #fefce8; border-radius: 8px; padding: 6px 8px; }
.pt-tab { display: flex; gap: 4px; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.pt-tab button { flex: 1; border: 0; background: none; padding: 6px; border-radius: 8px; font-size: 12.5px; cursor: pointer; color: #475569; }
.pt-tab button.aktif { background: #fff; color: #0f172a; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pt-aksi-massal { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-daftar { flex: 1; overflow-y: auto; min-height: 0; border-top: 1px solid #f1f5f9; }
.pt-item { display: flex; justify-content: space-between; gap: 8px; padding: 8px 6px; border-bottom: 1px solid #f1f5f9; cursor: pointer; border-radius: 8px; }
.pt-item:hover { background: #f8fafc; } .pt-item.aktif { background: #eef2ff; } .pt-item.diubah { border-left: 3px solid #2563eb; }
.pt-nama { min-width: 0; } .pt-nama b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-nama small { color: #64748b; font-size: 11px; }
.pt-kanan { text-align: right; flex-shrink: 0; font-size: 11px; color: #2563eb; }
.pt-tombol button { border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; padding: 1px 7px; cursor: pointer; margin-left: 3px; margin-top: 3px; }
.pt-tombol button:hover { background: #f1f5f9; }
.pt-chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.pt-chip.luar { background: #ffedd5; color: #c2410c; } .pt-chip.dalam { background: #dcfce7; color: #15803d; }
.pt-bawah { border-top: 1px solid #e5e7eb; padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .pt-wadah { flex-direction: column; height: auto; } .pt-peta { height: 62vh; flex: none; } .pt-panel { width: auto; max-height: 60vh; } }
.pt-ikon.ubah.keluar { box-shadow: 0 0 0 3px #f97316, 0 1px 5px rgba(0,0,0,.55); }

/* Alat peta: layar penuh & polygon garis saja/lengkap (FvMap.alatPeta) */
.fv-alat-peta a { font-size: 17px; line-height: 30px; font-weight: 700; color: #0f172a; cursor: pointer; }
.fv-alat-peta a.aktif { background: #fef3c7; color: #b45309; }
.leaflet-container:fullscreen { width: 100% !important; height: 100% !important; border-radius: 0 !important; margin: 0 !important; }
.leaflet-container:-webkit-full-screen { width: 100% !important; height: 100% !important; border-radius: 0 !important; margin: 0 !important; }
.leaflet-container.fv-peta-penuh { position: fixed !important; inset: 0; z-index: 3000; width: 100vw !important; height: 100vh !important; height: 100dvh !important; border-radius: 0 !important; margin: 0 !important; }

/* Penyesuaian Titik: garis batas & EWS terbuka */
.pt-dot.tepi { background: #facc15; }
.pt-ikon.tepi { background: #eab308; }
.pt-ikon.ews { box-shadow: 0 0 0 3px #dc2626, 0 1px 5px rgba(0,0,0,.55); }
.pt-ringkas > div.tepi b { color: #a16207; } .pt-ringkas > div.ews b { color: #dc2626; }
.pt-ringkas p.pt-total { background: none; padding: 0 2px; color: #64748b; }
.pt-chip.tepi { background: #fef9c3; color: #a16207; } .pt-chip.ews { background: #fee2e2; color: #b91c1c; font-weight: 600; }
.pt-ews { font-size: 12px; border: 1px solid #fecaca; background: #fff7f7; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.pt-ews .pt-ews-judul { font-weight: 700; color: #991b1b; }
.pt-ews-baris { display: flex; justify-content: space-between; gap: 8px; color: #334155; } .pt-ews-baris b { color: #b91c1c; }
.pt-ews-baris.lain { color: #64748b; } .pt-ews-cat { color: #64748b; font-size: 11.5px; }
.pt-ews .fv-btn { align-self: flex-start; margin: 2px 0; }
.pt-ews-ok { font-size: 12px; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 7px 10px; }

/* Cek EWS penggarap vs SIVA (superadmin) */
.siva-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .siva-grid { grid-template-columns: 1fr; } }
.siva-saran { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.siva-saran button { text-align: left; border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 6px 9px; cursor: pointer; font-size: 12.5px; }
.siva-saran button:hover { border-color: #0f766e; background: #f0fdfa; } .siva-saran span { color: #64748b; }
.siva-pilih { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.siva-chip { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.siva-chip small { color: #64748b; } .siva-chip button { border: 0; background: #d1fae5; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.siva-file { display: block; font-size: 13px; margin-bottom: 10px; } .siva-file input { display: block; margin-top: 4px; }
.siva-bar { height: 9px; border-radius: 99px; background: #e5e7eb; overflow: hidden; margin-top: 10px; }
.siva-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #16a34a, #84cc16); transition: width .3s; }
.siva-tabel th { font-size: 11.5px; white-space: normal; min-width: 70px; } .siva-tabel td { text-align: center; } .siva-tabel td:first-child { text-align: left; min-width: 180px; }
.siva-tabel td.siva-merah { color: #b91c1c; font-weight: 700; background: #fef2f2; }
.siva-gk { border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.siva-g { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; cursor: pointer; padding: 3px 4px; border-radius: 6px; }
.siva-g em { margin-left: auto; font-style: normal; color: #94a3b8; font-size: 11px; white-space: nowrap; }
.siva-g.sama { background: #f0fdf4; } .siva-g.sama em { color: #15803d; font-weight: 600; }
.siva-lain td { text-align: left !important; font-size: 12.5px; vertical-align: top; } .siva-lain td.siva-lolos { color: #15803d; font-weight: 600; } .siva-lain td.siva-gagal { color: #b91c1c; font-weight: 600; }

/* ---- Matching Excel SIVA (Okt 2026) ---- */
.siva-tab { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.siva-tab a { padding: 8px 14px; border-radius: 10px; border: 1px solid #d1fae5; background: #fff; color: #065f46; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.siva-tab a:hover { background: #f0fdf4; } .siva-tab a.aktif { background: #065f46; border-color: #065f46; color: #fff; }
.sm-kartu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.sm-kartu div { border: 1px solid #e5e7eb; border-left: 4px solid #94a3b8; border-radius: 10px; padding: 10px 12px; background: #fff; }
.sm-kartu b { display: block; font-size: 22px; line-height: 1.1; color: #0f172a; } .sm-kartu span { font-size: 12px; color: #64748b; }
.sm-kartu .hijau { border-left-color: #16a34a; } .sm-kartu .hijau b { color: #15803d; }
.sm-kartu .kuning { border-left-color: #f59e0b; } .sm-kartu .kuning b { color: #b45309; }
.sm-kartu .merah { border-left-color: #dc2626; } .sm-kartu .merah b { color: #b91c1c; }
.sm-tab { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; }
.sm-tab button { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 9px; padding: 7px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: #334155; }
.sm-tab button i { font-style: normal; background: #e2e8f0; border-radius: 99px; padding: 0 7px; margin-left: 4px; font-size: 11.5px; }
.sm-tab button.aktif { background: #065f46; border-color: #065f46; color: #fff; } .sm-tab button.aktif i { background: rgba(255,255,255,.22); }
.sm-tabel td { font-size: 12.5px; vertical-align: top; }
.sm-tabel td.sm-salah { color: #b91c1c; text-decoration: line-through; text-decoration-color: rgba(185,28,28,.45); } .sm-tabel td.sm-benar { color: #15803d; font-weight: 700; }
.sm-st { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.sm-st.terverifikasi { background: #dcfce7; color: #15803d; } .sm-st.belum_lolos { background: #fef3c7; color: #92400e; white-space: normal; } .sm-st.belum_di_siva { background: #fee2e2; color: #b91c1c; }

/* ---- Menu samping bisa di-scroll (menu makin banyak, Okt 2026) ----
   Sidebar setinggi layar (sticky 100vh, overflow hidden) - daftar menu kini
   punya scroll sendiri, logo tetap di atas & kotak bantuan tetap di bawah. */
.fv-nav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-right: -8px; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.fv-nav::-webkit-scrollbar { width: 6px; } .fv-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 6px; }
.fv-nav a { flex-shrink: 0; }
@media (max-height: 820px) {
    .fv-brand { margin-bottom: 12px; } .fv-sidebar-lockup-logo--wibisana { height: 72px; }
    .fv-nav a { padding: 9px 12px; }
    .fv-sidebar-cursive, .fv-sidebar-footer { display: none; }
}
@media (max-height: 640px) { .fv-help-box { display: none; } .fv-brand-text { display: none; } }

/* ---- Status Keamanan Server (Okt 2026) ---- */
.ks-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ks-badge.aman { background: #dcfce7; color: #15803d; } .ks-badge.waspada { background: #fef3c7; color: #92400e; }
.ks-badge.bahaya { background: #fee2e2; color: #b91c1c; } .ks-badge.info { background: #e0f2fe; color: #075985; }
.ks-ringkas .ks-badge { font-size: 14px; padding: 7px 14px; }
.ks-tabel td { font-size: 13px; vertical-align: top; } .ks-tabel tr.bahaya td { background: #fff7f7; }
.ks-tabel code { font-size: 12px; background: #f1f5f9; padding: 1px 6px; border-radius: 5px; word-break: break-word; }

/* Hapus dari Excel (superadmin) */
.sh-warna { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.sh-w { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 12.5px; cursor: pointer; }
.sh-w i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
.sh-w b { color: #0f172a; } .sh-w.aktif { border-color: #dc2626; background: #fef2f2; box-shadow: 0 0 0 2px rgba(220,38,38,.15); } .sh-w.nonaktif { cursor: default; opacity: .7; }
.sh-opsi { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin: 4px 0; cursor: pointer; }
.sh-alat { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.sh-alat input[type=text] { padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; min-width: 220px; }
.sh-tabel td { font-size: 12.5px; vertical-align: top; } .sh-tabel tr.dipilih td { background: #fef2f2; } .sh-tabel tr.tidak td { color: #94a3b8; }
.sh-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; border: 1px solid rgba(0,0,0,.2); vertical-align: -1px; }
.sh-btn-hapus { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff !important; border: 0; }
.sh-btn-hapus:disabled { opacity: .45; cursor: not-allowed; }
.sm-kartu div.ok { border-left-color: #16a34a; } .sm-kartu div.warn { border-left-color: #f59e0b; } .sm-kartu div.muted { border-left-color: #cbd5e1; } .sm-kartu div.hapus { border-left-color: #dc2626; } .sm-kartu div.hapus b { color: #b91c1c; }

/* Lampiran PDF Berita Acara */
.ba-daftar { max-height: calc(100vh - 110px); overflow-y: auto; }
@media (max-width: 1100px) { .ba-daftar { position: static; max-height: none; } }
.ba-lamp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fv-border); }
.ba-lamp-judul { font-weight: 700; margin-bottom: 8px; }
#ba-lamp-list { margin-top: 8px; display: grid; gap: 6px; }
.ba-lamp-item { padding: 7px 8px; border: 1px solid var(--fv-border); border-radius: 10px; background: #fff; }
.ba-lamp-nama { width: 100%; box-sizing: border-box; border: 1px solid transparent; border-radius: 6px; padding: 2px 4px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--fv-text); background: transparent; text-overflow: ellipsis; }
.ba-lamp-nama:not([readonly]):hover, .ba-lamp-nama:not([readonly]):focus { border-color: var(--fv-border); background: #fff; outline: none; }
.ba-lamp-meta { padding: 0 4px; font-size: 11.5px; color: #64748b; margin: 2px 0 4px; }
.ba-lamp-aksi { display: flex; flex-wrap: wrap; gap: 2px; }
.ba-lamp-ik { min-width: 28px; height: 28px; padding: 0 4px; border: 0; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 13px; cursor: pointer; }
.ba-lamp-ik:hover:not(:disabled) { background: #e2e8f0; }
.ba-lamp-ik:disabled { opacity: .35; cursor: default; }
.ba-lamp-mrh:hover:not(:disabled) { background: #fee2e2; }
.ba-lamp-info { font-size: 12px; color: #047857; margin-top: 6px; overflow-wrap: anywhere; }
.ba-lamp-info:empty { display: none; }
.ba-lamp-catatan { font-size: 11.5px; color: #64748b; margin-top: 8px; line-height: 1.4; }

/* Tata halaman editor Berita Acara */
.ba-halaman { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; padding-top: 10px; border-top: 1px solid var(--fv-border); }
.ba-halaman label { font-size: 11.5px; font-weight: 600; color: #475569; display: flex; flex-direction: column; gap: 3px; }
.ba-halaman select.fv-input { width: auto; min-width: 110px; padding-top: 6px; padding-bottom: 6px; }
.ba-halaman input[type=number].fv-input { width: 68px; padding-top: 6px; padding-bottom: 6px; }
.ba-hal-judul { font-weight: 700; font-size: 13px; align-self: center; }
.ba-hal-margin { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.ba-hal-margin > span { font-size: 11.5px; font-weight: 600; color: #475569; align-self: center; }
.ba-halaman label.ba-hal-cek { flex-direction: row; align-items: center; gap: 6px; align-self: center; font-size: 12.5px; }
.ba-hal-info { font-size: 12px; color: #047857; align-self: center; margin-left: auto; }
#ba-pratinjau-bar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2000; display: none; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 12px; background: #0f172a; color: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: 13px; max-width: calc(100vw - 32px); }
#ba-pratinjau-bar #ba-pratinjau-info { color: #a7f3d0; }

/* Tanda tangan digital */
.ttd-tata { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .ttd-tata { grid-template-columns: 1fr; } }
.ttd-judul { font-weight: 700; margin-bottom: 8px; }
.ttd-kotak { min-height: 120px; border: 1px solid var(--fv-border); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 10px; margin: 8px 0; overflow: auto; }
.ttd-kotak img, .ttd-kotak canvas { max-width: 100%; max-height: 220px; }
.ttd-catur { background-color: #fff; background-image: linear-gradient(45deg, #eef2f7 25%, transparent 25%), linear-gradient(-45deg, #eef2f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef2f7 75%), linear-gradient(-45deg, transparent 75%, #eef2f7 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.ttd-meta { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.ttd-tab { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ttd-tab button { border: 0; border-radius: 9px; padding: 8px 12px; background: #f1f5f9; color: #334155; font-weight: 600; cursor: pointer; }
.ttd-tab button.aktif { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
.ttd-alat { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 10px 0; }
.ttd-alat label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: #475569; }
.ttd-kanvas-wadah { position: relative; border: 1.5px dashed #94a3b8; border-radius: 12px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.ttd-kanvas-wadah canvas { display: block; touch-action: none; cursor: crosshair; position: relative; z-index: 1; }
.ttd-garis { position: absolute; left: 6%; right: 6%; bottom: 22%; border-top: 1.5px solid #cbd5e1; font-size: 11px; color: #94a3b8; padding-top: 4px; text-align: center; pointer-events: none; }
.ba-ttd-list { display: grid; gap: 6px; margin-bottom: 8px; }
.ba-ttd-item { padding: 7px 9px; border: 1px solid var(--fv-border); border-radius: 10px; background: #fff; font-size: 12.5px; }
.ba-ttd-item span { display: block; color: #64748b; font-size: 11.5px; }
.ba-ttd-item span.ok { color: #047857; } .ba-ttd-item span.tunggu { color: #b45309; }
.ba-ttd-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
@media (max-width: 700px) { .ba-ttd-modal { grid-template-columns: 1fr; } }
.ba-ttd-daftar { max-height: 380px; overflow: auto; margin-top: 8px; display: grid; gap: 6px; align-content: start; }
.ba-ttd-calon { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border: 1px solid var(--fv-border); border-radius: 9px; cursor: pointer; font-size: 13px; }
.ba-ttd-calon small { display: block; color: #64748b; font-size: 11.5px; }
.ba-ttd-urut { display: grid; grid-template-columns: 22px 1fr auto auto auto; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--fv-border); border-radius: 9px; font-size: 13px; }
.ba-ttd-urut input { margin-top: 4px; padding: 4px 6px; font-size: 12px; }
.ba-ttd-grup { font-size: 11.5px; font-weight: 700; color: #047857; text-transform: uppercase; letter-spacing: .03em; margin: 6px 2px 0; }

/* API AKPS (superadmin) */
.ak-sec { margin-top: 12px; }
.ak-alert { border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 10px; border: 1px solid; }
.ak-alert.hijau { background: #f0fdf4; border-color: #bbf7d0; color: #166534; } .ak-alert.kuning { background: #fffbeb; border-color: #fde68a; color: #92400e; } .ak-alert.merah { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.ak-legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #475569; margin: 6px 0; } .ak-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ak-grafik { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 8px 4px 0; border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
.ak-bar { flex: 1; min-width: 16px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.ak-bar-isi { width: 70%; display: flex; flex-direction: column; justify-content: flex-end; } .ak-bar-isi i { display: block; width: 100%; } .ak-bar-isi i:last-child { border-radius: 3px 3px 0 0; }
.ak-bar small { font-size: 10px; color: #94a3b8; margin-top: 3px; } .ak-bar em { position: absolute; top: -2px; font-style: normal; font-size: 9.5px; color: #64748b; }
.ak-tabel td, .ak-tabel th { font-size: 12.5px; vertical-align: top; } .ak-tabel code { font-size: 11.5px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.ak-http { display: inline-block; min-width: 34px; text-align: center; border-radius: 6px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; }
.ak-h2 { background: #dcfce7; color: #166534; } .ak-h3 { background: #e0f2fe; color: #075985; } .ak-h4 { background: #fee2e2; color: #991b1b; } .ak-h4k { background: #7f1d1d; color: #fff; } .ak-h0 { background: #f1f5f9; color: #475569; }
.ak-arah { font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 1px 6px; } .ak-arah.keluar { background: #ccfbf1; color: #115e59; } .ak-arah.masuk { background: #e0e7ff; color: #3730a3; }
.ak-cek-baris { margin: 3px 0; }
.ak-kode { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 12px; overflow-x: auto; white-space: pre; max-height: 420px; }
.ak-saring { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ak-saring input[type=text] { flex: 1; min-width: 240px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 8px; } .ak-saring select { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; max-width: 220px; }
.ak-hal { display: flex; gap: 8px; margin-top: 8px; }
.ak-dok h4 { margin: 18px 0 6px; font-size: 14.5px; color: #0f172a; } .ak-p { font-size: 13px; color: #334155; line-height: 1.55; } .ak-ul { font-size: 13px; color: #334155; line-height: 1.6; padding-left: 18px; }
.ak-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 900px) { .ak-dua { grid-template-columns: 1fr; } }
.ak-pratinjau { margin-top: 8px; font-size: 13px; }
.sm-kartu div.hijau { border-left-color: #16a34a; } .sm-kartu div.kuning { border-left-color: #f59e0b; } .sm-kartu div.merah { border-left-color: #dc2626; }
.fv-akps-baris { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 13px; }
.fv-akps-tertaut { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.fv-akps-sk { margin-top: 8px; font-size: 13px; background: #f8fafc; border-radius: 10px; padding: 8px 10px; }
