/* ==========================================================================
   SIBERKAT — Sistem Informasi Berbasis Elektronik Rekapitulasi Keuangan dan
   Aset Terpadu GKST Jemaat Akseladaris Bau.
   Tema: indigo–violet lembut, kartu kaca, dokumen resmi hitam-putih.
   ========================================================================== */

:root {
  --indigo:      #4f46e5;
  --indigo-tua:  #3730a3;
  --violet:      #8b5cf6;
  --violet-tua:  #6d28d9;
  --latar:       #f3f0ff;
  --kartu:       rgba(255, 255, 255, .68);
  --kartu-padat: #ffffff;
  --teks:        #1f1b3a;
  --teks-lemah:  #635f82;
  --garis:       rgba(99, 95, 130, .16);
  --merah:       #e11d48;
  --merah-tua:   #9f1239;
  --hijau:       #10b981;
  --hijau-tua:   #047857;
  --kuning:      #f59e0b;
  --biru:        #0ea5e9;
  --radius:      18px;
  --radius-sm:   12px;
  --bayang:      0 18px 44px rgba(63, 48, 138, .12);
  --bayang-sm:   0 8px 22px rgba(63, 48, 138, .09);
  --glass:       blur(20px) saturate(180%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--teks);
  background: var(--latar);
  background-image:
    radial-gradient(58rem 30rem at 4% -6%, rgba(139, 92, 246, .30), transparent 60%),
    radial-gradient(46rem 28rem at 100% 0%, rgba(79, 70, 229, .22), transparent 62%),
    radial-gradient(42rem 28rem at 70% 100%, rgba(14, 165, 233, .16), transparent 65%),
    radial-gradient(34rem 24rem at 0% 80%, rgba(236, 72, 153, .14), transparent 62%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.24; color: var(--teks); }
h2 { font-size: 1.16rem; font-weight: 800; }
h3 { font-size: 1.02rem; font-weight: 800; }
p { margin: 0; }
a { color: var(--indigo-tua); text-decoration: none; }
a:hover { color: var(--violet-tua); }

/* ================================ utilitas ============================== */
.flex { display: flex; gap: 12px; min-width: 0; }
.flex > * { min-width: 0; }
.between { justify-content: space-between; }
.aic { align-items: center; }
.aend { align-items: flex-end; }
.wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.muted { color: var(--teks-lemah); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }
.right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.fw-700 { font-weight: 700; } .fw-800 { font-weight: 800; }
.text-merah { color: var(--merah-tua); } .text-hijau { color: var(--hijau-tua); }
.text-indigo { color: var(--indigo-tua); } .text-kuning { color: #92400e; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.divider { height: 1px; background: var(--garis); margin: 18px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================================ komponen ============================== */
.kartu, .card {
  background: var(--kartu);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius);
  box-shadow: var(--bayang-sm);
  padding: 22px;
  min-width: 0;
}
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.card-sub { font-size: .86rem; color: var(--teks-lemah); margin-top: 2px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 4px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.14rem; margin: 0; }
.section-head p { font-size: .88rem; color: var(--teks-lemah); margin-top: 2px; }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 17px;
  border: 1px solid rgba(99, 95, 130, .18); border-radius: var(--radius-sm);
  background: #fff; color: var(--indigo-tua);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .06s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:hover { box-shadow: var(--bayang-sm); color: var(--indigo-tua); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--violet)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, .32); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, #4338ca, #7c3aed); }
.btn-soft { background: rgba(238, 234, 255, .9); border-color: rgba(139, 92, 246, .25); color: var(--indigo-tua); }
.btn-soft:hover { background: #e9e3ff; }
.btn-ghost { background: rgba(255, 255, 255, .8); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #be123c); border-color: transparent; color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }
.btn-hijau { background: linear-gradient(135deg, #10b981, #059669); border-color: transparent; color: #fff; }
.btn-hijau:hover { color: #fff; filter: brightness(1.05); }
.btn-biru { background: linear-gradient(135deg, #0ea5e9, #2563eb); border-color: transparent; color: #fff; }
.btn-biru:hover { color: #fff; filter: brightness(1.05); }
.btn-merah { background: linear-gradient(135deg, #f43f5e, #be123c); border-color: transparent; color: #fff; }
.btn-merah:hover { color: #fff; }
.btn-kecil, .btn-sm { min-height: 34px; padding: 5px 11px; font-size: .82rem; gap: 5px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.aksi-baris { display: flex; gap: 6px; flex-wrap: wrap; }

/* form */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .form-label { font-weight: 700; font-size: .86rem; color: var(--teks); }
.field .hint, .hint { font-size: .8rem; color: var(--teks-lemah); font-weight: 500; }
input[type=text], input[type=password], input[type=date], input[type=number],
input[type=search], input[type=email], input[type=tel], select, textarea, .input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 9px 12px;
  border: 1px solid rgba(99, 95, 130, .22); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92); color: var(--teks); font: inherit;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .input:focus, .select:focus {
  outline: 3px solid rgba(99, 102, 241, .16); border-color: var(--indigo); background: #fff;
}
input::placeholder, textarea::placeholder { color: #a19db8; }
select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.5 7 9.5 11 5.5' fill='none' stroke='%234f46e5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.form-aksi { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--garis); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 152px; flex: 0 1 auto; }
.filters .field.grow { flex: 1 1 240px; }
.filters .btn { flex: 0 0 auto; }
fieldset { border: 1px solid var(--garis); border-radius: var(--radius-sm); padding: 16px; margin: 0; }
fieldset legend { font-size: .8rem; font-weight: 800; color: var(--indigo-tua); padding: 0 6px; text-transform: uppercase; letter-spacing: .05em; }

/* pesan */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; border: 1px solid transparent; }
.alert-ok { background: #e7f8ef; color: #065f46; border-color: #a7ebc8; }
.alert-info { background: #eaf2ff; color: #1e40af; border-color: #c7dcff; }
.alert-error { background: #fde9ee; color: var(--merah-tua); border-color: #f8c4d2; }

/* lencana */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.badge-indigo { background: rgba(224, 219, 255, .9); color: var(--indigo-tua); }
.badge-hijau { background: #ddf7ec; color: #065f46; }
.badge-merah { background: #fde9ee; color: var(--merah-tua); }
.badge-kuning { background: #fdf0d5; color: #92400e; }
.badge-abu { background: #eeecf6; color: #4b4766; }

/* tabel */
.table-wrap, .tabel-bungkus { overflow-x: auto; border-radius: 14px; border: 1px solid var(--garis); background: rgba(255, 255, 255, .74); }
.card.pad-0 .table-wrap { border: 0; border-radius: 0; }
table.data, table.tabel { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td, table.tabel th, table.tabel td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(99, 95, 130, .1); vertical-align: middle; }
table.data th, table.tabel th { background: rgba(237, 233, 254, .75); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--indigo-tua); white-space: nowrap; font-weight: 800; }
table.data tbody tr:hover, table.tabel tbody tr:hover { background: rgba(255, 255, 255, .75); }
table.data tbody tr:last-child td, table.tabel tbody tr:last-child td { border-bottom: 0; }
table.data .num, table.tabel .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th.num, table.tabel th.num { text-align: right; }
table.data tfoot td, table.tabel tfoot td { font-weight: 800; background: rgba(243, 240, 255, .85); border-top: 2px solid rgba(99, 95, 130, .16); }
.nama-sel { display: flex; flex-direction: column; gap: 2px; }
.nama-sel b { font-weight: 700; }
.nama-sel small { color: var(--teks-lemah); font-size: .8rem; }
.kolom-aksi { width: 1%; white-space: nowrap; }
tbody tr.baris-ubah td { background: #fffdf5; }

/* KPI */
.kpi { display: flex; gap: 14px; align-items: flex-start; }
.kpi-ikon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: #ede9fe; color: var(--indigo-tua); }
.kpi-ikon.hijau { background: #d9f7ea; color: var(--hijau-tua); }
.kpi-ikon.merah { background: #fde4ea; color: var(--merah-tua); }
.kpi-ikon.biru { background: #dff2fe; color: #0369a1; }
.kpi-ikon.kuning { background: #fef2d8; color: #92400e; }
.kpi-label { font-size: .82rem; color: var(--teks-lemah); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi-nilai { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: .8rem; color: var(--teks-lemah); margin-top: 3px; }

/* grafik */
.chart-box { position: relative; height: 280px; width: 100%; }
.chart-box.sm { height: 230px; }
.chart-box.lg { height: 320px; }

/* progres anggaran */
.prog-item { display: grid; gap: 8px; }
.prog-kepala { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prog-kepala b { font-size: .94rem; }
.prog-persen { font-size: 1.02rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.prog-track { position: relative; height: 20px; border-radius: 999px; background: rgba(99, 95, 130, .12); overflow: hidden; }
.prog-isi { height: 100%; border-radius: 999px; min-width: 4px; transition: width .5s ease; }
.prog-isi.pendapatan { background: linear-gradient(90deg, #34d399, #06b6d4); }
.prog-isi.belanja { background: linear-gradient(90deg, #fbbf24, #f97316); }
.prog-kaki { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--teks-lemah); }
.prog-kaki b { color: var(--teks); font-variant-numeric: tabular-nums; }

/* daftar */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--garis); color: inherit; }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-ikon { width: 40px; height: 40px; border-radius: 12px; background: #ede9fe; display: grid; place-items: center; font-size: 1.05rem; flex: none; }
.list-teks { flex: 1; min-width: 0; }
.list-teks b { display: block; font-size: .94rem; }
.list-teks small { display: block; font-size: .8rem; color: var(--teks-lemah); }
.list-kanan { font-size: .84rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.kosong { text-align: center; padding: 34px 18px; color: var(--teks-lemah); }
.kosong .ikon { font-size: 1.9rem; display: block; margin-bottom: 6px; }
.kosong b { display: block; color: var(--teks); font-size: .98rem; margin-bottom: 3px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--garis); font-size: .84rem; font-weight: 700; color: var(--indigo-tua); }

/* hero / sambutan */
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 24px 26px; background: linear-gradient(130deg, #4338ca, #6d28d9 55%, #7c3aed); box-shadow: 0 18px 42px rgba(79, 70, 229, .3); display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero-teks {
  position: relative; z-index: 1; max-width: 980px; min-width: 0;
  /* Ukuran sapaan, judul, dan keterangan aplikasi di dasbor — SATU nilai agar sama */
  --hero-ukuran: 1.32rem;
}
.hero-eyebrow { font-size: .82rem; letter-spacing: .01em; color: #e9e4ff; font-weight: 600; margin-bottom: 8px; }
.hero h1, .hero-garis {
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--hero-ukuran); font-weight: 400; color: #fff;
  margin: 0 0 6px; line-height: 1.42; letter-spacing: -.002em;
}
.hero h1 { text-wrap: balance; }
/* Keterangan aplikasi: satu baris utuh bila layarnya cukup lebar */
.hero-garis { color: #ece8ff; }
@media (min-width: 1200px) {
  .hero-garis { white-space: nowrap; }
}
.hero p { font-size: .9rem; color: #ede9fe; }
.hero-stat { display: flex; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stat b { display: block; font-size: 1.32rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-stat small { font-size: .76rem; color: #ddd6fe; font-weight: 700; }
.hero:after { content: ''; position: absolute; width: 320px; height: 320px; right: -80px; top: -140px; border-radius: 50%; background: rgba(255, 255, 255, .13); }

.pill-stat { background: rgba(255, 255, 255, .75); border: 1px solid var(--garis); border-radius: 13px; padding: 9px 13px; min-width: 110px; }
.pill-stat small { display: block; font-size: .76rem; color: var(--teks-lemah); font-weight: 700; }
.pill-stat b { font-size: 1rem; font-weight: 800; }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.detail-grid .lbl { font-size: .76rem; color: var(--teks-lemah); text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.detail-grid .val { font-size: .95rem; font-weight: 600; }

/* ============================ kerangka aplikasi ========================= */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 272px; flex: 0 0 272px;
  background: linear-gradient(180deg, #241d5c 0%, #3b2f8f 45%, #5b21b6 100%);
  color: #ece9ff; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 4px 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .16); position: relative; }
.brand-logo { width: 84px; height: 84px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; box-shadow: 0 8px 22px rgba(9, 5, 40, .4); }
.brand-jemaat { font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: #fff; line-height: 1.4; text-transform: uppercase; }
.brand-sub { font-size: .68rem; color: #c4b5fd; letter-spacing: .08em; text-transform: uppercase; }
.side-close { display: none; position: absolute; right: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; cursor: pointer; }

.side-unit { margin: 0 2px; padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18); }
.side-unit-label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: #c4b5fd; font-weight: 800; margin-bottom: 2px; }
.side-unit strong { font-size: .86rem; font-weight: 700; color: #fff; line-height: 1.35; display: block; }

.side-nav { display: grid; gap: 3px; flex: 1; align-content: start; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 11px; color: #e5e1ff; font-size: .89rem; font-weight: 700; text-decoration: none; line-height: 1.3; }
.nav-item:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.nav-item.aktif { background: #fff; color: var(--indigo-tua); box-shadow: 0 6px 16px rgba(9, 5, 40, .3); }
.nav-ico { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.nav-ico svg { width: 18px; height: 18px; }
.nav-label { flex: 1; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 13px; display: grid; gap: 9px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-weight: 800; font-size: .88rem; }
.side-user-info { min-width: 0; }
.side-user-nama { font-size: .86rem; font-weight: 800; color: #fff; line-height: 1.25; overflow-wrap: anywhere; }
.side-user-role { font-size: .72rem; color: #c4b5fd; }
.sidebar .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; min-height: 38px; font-size: .84rem; }
.sidebar .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
/* Tombol keluar: lebih ringkas, huruf sama besar dengan menu, dan berwarna merah */
.sidebar .btn-keluar {
  min-height: 30px; padding: 3px 10px; gap: 6px; border-radius: 9px;
  font-size: .89rem; font-weight: 700; line-height: 1.3;
  justify-content: flex-start;
  background: #e11d48; border-color: #e11d48; color: #fff;
  box-shadow: 0 6px 14px rgba(225, 29, 72, .32);
}
.sidebar .btn-keluar svg { width: 15px; height: 15px; }
.sidebar .btn-keluar:hover { background: #be123c; border-color: #be123c; color: #fff; }
.side-tautan { display: flex; gap: 8px; font-size: .74rem; color: #c4b5fd; flex-wrap: wrap; }
.side-tautan a { color: #ddd6fe; font-weight: 700; }

.main-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 26px; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-bottom: 1px solid rgba(255, 255, 255, .7); position: sticky; top: 0; z-index: 20; }
.page-head { flex: 1; min-width: 0; }
.page-head h1 { font-size: 1.18rem; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.page-head p { font-size: .84rem; color: var(--teks-lemah); margin-top: 1px; }
.topbar-kanan { display: flex; align-items: center; gap: 10px; }
.topbar-tgl { font-size: .8rem; color: var(--teks-lemah); font-weight: 600; }
.btn-menu { display: none; min-height: 42px; min-width: 42px; border-radius: 11px; border: 1px solid var(--garis); background: #fff; font-size: 1.1rem; cursor: pointer; align-items: center; justify-content: center; }
.content { padding: 26px; display: grid; gap: 22px; align-content: start; width: 100%; max-width: 1420px; margin: 0 auto; }
.content > * { min-width: 0; }
.footer-app { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 26px; font-size: .78rem; color: var(--teks-lemah); border-top: 1px solid var(--garis); }

.banner-simulasi { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(120deg, #fff7e6, #fef3c7); border: 1px solid #f6d78b; color: #78350f; border-radius: 14px; padding: 11px 15px; font-size: .86rem; font-weight: 600; }
.banner-simulasi a { color: #92400e; font-weight: 800; text-decoration: underline; }

/* ============================== saran input ============================ */
.sug-wrap { position: relative; }
.sug-menu { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--garis); border-radius: 12px; box-shadow: 0 16px 34px rgba(31, 27, 58, .18); max-height: 220px; overflow-y: auto; padding: 5px; display: none; }
.sug-menu.buka { display: block; }
.sug-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .88rem; }
.sug-item:hover, .sug-item.sorot { background: #ede9fe; color: var(--indigo-tua); }
.sug-kosong { padding: 8px 10px; font-size: .82rem; color: var(--teks-lemah); }

/* ================================= modal =============================== */
.modal-latar { position: fixed; inset: 0; z-index: 100; background: rgba(22, 16, 48, .58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding: 28px 16px; overflow-y: auto; }
.modal-latar.buka { display: flex; }
.modal { background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(15, 8, 53, .34); width: 100%; max-width: 620px; margin: auto; overflow: hidden; animation: muncul .18s ease; }
@keyframes muncul { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal.lebar { max-width: 900px; }
.modal.besar { max-width: 1120px; }
.modal.kecil { max-width: 430px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--garis); background: linear-gradient(120deg, rgba(243, 240, 255, .9), rgba(255, 255, 255, .9)); }
.modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.modal-head p { font-size: .82rem; color: var(--teks-lemah); margin-top: 2px; }
.modal-x { width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--garis); background: #fff; cursor: pointer; font-size: 1rem; color: var(--teks-lemah); }
.modal-body { padding: 22px; max-height: calc(100vh - 180px); overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 15px 22px; border-top: 1px solid var(--garis); background: rgba(250, 249, 255, .9); }

/* modal hapus */
.hapus-ikon { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 50%; background: #fee2e2; display: grid; place-items: center; font-size: 1.9rem; }
.hapus-judul { text-align: center; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.hapus-teks { text-align: center; color: var(--teks-lemah); font-size: .9rem; }
.hapus-aksi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.hapus-aksi .btn { min-height: 46px; }
.kotak-putih { background: #fff; border: 1px solid var(--garis); color: var(--teks); }
.kotak-merah { background: #e11d48; border-color: #e11d48; color: #fff; }

/* ============================== login ==================================
   Tampilan halaman masuk: kartu putih di atas latar abu terang, logo dalam
   kotak mint, judul hitam tebal, subjudul hijau, dan tombol hijau.
   ====================================================================== */
.halaman-login {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 16px 34px;
  /* Warna mengikuti dasbor: gradasi indigo–violet dengan aksen lembut */
  background:
    radial-gradient(circle at 12% 18%, rgba(14, 165, 233, .38), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(236, 72, 153, .34), transparent 55%),
    linear-gradient(150deg, #2b2361 0%, #4c1d95 45%, #7c3aed 100%);
  color: var(--teks);
}
.login-wrap { width: 100%; max-width: 400px; margin: 0 auto; }
.login-kartu {
  background: rgba(255, 255, 255, .97); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px; padding: 26px 28px 22px; text-align: center;
  box-shadow: 0 28px 66px rgba(12, 5, 45, .42), 0 2px 6px rgba(15, 23, 42, .06);
  -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
}
.login-logo-tile {
  width: 104px; height: 104px; margin: 0 auto 16px; border-radius: 22px;
  background: linear-gradient(135deg, #eef0ff, #f4eeff);
  border: 1px solid rgba(139, 92, 246, .28); display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .14);
}
.login-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: contain; display: block; }
.login-nama {
  margin: 0 0 9px; font-size: 2.15rem; font-weight: 900; line-height: 1.08;
  letter-spacing: .035em;
  background: linear-gradient(120deg, #4338ca, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-jemaat {
  font-size: .95rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--indigo-tua); margin-bottom: 20px; line-height: 1.35;
}
.login-form { display: grid; gap: 12px; text-align: left; }
.login-field { display: grid; gap: 6px; }
.login-label {
  font-size: .69rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teks-lemah);
}
body.halaman-login .login-input,
body.halaman-login .login-input[type=text],
body.halaman-login .login-input[type=password] {
  width: 100%; min-height: 48px; border: 1.5px solid #d6dae1; border-radius: 10px;
  background: #fff; padding: 8px 13px; font: inherit; font-size: .97rem; color: #111827;
  transition: border-color .15s, box-shadow .15s;
}
body.halaman-login .login-input::placeholder { color: #a19db8; }
body.halaman-login .login-input:focus {
  outline: 0; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
  background: #fff;
}
.login-pilih { position: relative; }
body.halaman-login .login-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 44px; cursor: pointer; border-radius: 11px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 19px 19px;
}
.login-pilih:focus-within {
  border-radius: 11px; box-shadow: 0 0 0 4px rgba(99, 102, 241, .16);
}
.login-sandi { position: relative; }
.login-sandi .login-input { padding-right: 50px; }
.login-mata {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent; color: #8b93a1; cursor: pointer;
}
.login-mata:hover { background: #f1eefe; color: var(--indigo-tua); }
.login-mata.aktif { color: var(--indigo); }
.login-mata svg { width: 19px; height: 19px; }
.login-tombol {
  width: 100%; min-height: 50px; margin-top: 6px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff;
  font: inherit; font-size: .99rem; font-weight: 800;
  letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 10px 24px rgba(99, 102, 241, .36);
  transition: filter .15s, transform .06s, box-shadow .15s;
}
.login-tombol:hover { filter: brightness(1.06); }
.login-tombol:active { transform: translateY(1px); box-shadow: 0 6px 16px rgba(99, 102, 241, .32); }
.login-offline {
  display: block; margin: 18px auto 0; width: fit-content;
  color: var(--indigo-tua); font-size: .84rem; font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px;
}
.login-offline:hover { color: var(--violet-tua); }
.login-copyright { margin-top: 20px; font-size: .76rem; color: var(--teks-lemah); }
.login-galat {
  display: flex; gap: 9px; align-items: flex-start; text-align: left;
  background: #fdecef; border: 1px solid #f6c6d2; color: #9f1239;
  border-radius: 12px; padding: 11px 13px; font-size: .87rem; font-weight: 600;
  margin-bottom: 16px;
}
.login-demo {
  margin: 16px auto 0; font-size: .76rem; color: #e9e5ff; text-align: left;
  max-width: 432px; padding: 0 6px;
}
.login-demo summary { cursor: pointer; font-weight: 700; color: #ffffff; }
.login-demo .baris { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; color: #ddd6fe; }
.login-demo code { font-family: ui-monospace, Menlo, monospace; font-size: .74rem; background: rgba(255, 255, 255, .92); color: #1f1b3a; padding: 1px 5px; border-radius: 5px; }

/* Ketua Jemaat / Ketua Persekutuan = hanya melihat: sembunyikan semua kontrol ubah */
body.peran-ketua [data-buka],
body.peran-ketua [data-ubah],
body.peran-ketua [data-hapus],
body.peran-ketua [data-edit-baris],
body.peran-ketua [data-simpan-baris],
body.peran-ketua [data-batal-baris],
body.peran-ketua [data-mutasi] { display: none !important; }

.banner-viewer {
  display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap;
  background: linear-gradient(120deg, #eef7ff, #e6f1ff); border: 1px solid #c7dcff;
  color: #1e3a8a; border-radius: 14px; padding: 11px 15px; font-size: .87rem; line-height: 1.5;
}

/* ========================= dokumen / lembar A4 ========================= */
.halaman-dokumen { background: #e9e6f4; padding: 22px 14px 40px; }
.toolbar-dokumen { position: sticky; top: 0; z-index: 30; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border: 1px solid #ddd8ee; border-radius: 14px; padding: 11px 14px; margin: 0 auto 18px; max-width: 29.7cm; box-shadow: var(--bayang-sm); }
.toolbar-dokumen b { font-size: .92rem; }
.toolbar-aksi { display: flex; gap: 8px; flex-wrap: wrap; }

.lembar { background: #fff; color: #000; width: 21cm; min-height: 29.7cm; padding: 2cm; margin: 0 auto 18px; box-shadow: 0 16px 40px rgba(31, 27, 58, .2); box-sizing: border-box; font-family: Arial, "Liberation Sans", Helvetica, sans-serif; font-size: 12pt; line-height: 1.35; position: relative; }
.lembar.landscape { width: 29.7cm; min-height: 21cm; }
.lembar .kop { text-align: center; border-bottom: 2.4pt solid #000; padding-bottom: 6pt; margin-bottom: 12pt; }
.lembar .kop .kop-logo { width: 2.05cm; height: 2.05cm; border-radius: 50%; object-fit: contain; display: block; margin: 0 auto 4pt; }
.lembar .kop div { font-size: 12pt; font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
.lembar .kop div.utama { font-size: 13pt; font-weight: 700; }
.lembar h2.judul-dok { text-align: center; font-size: 14pt; font-weight: 700; margin: 4pt 0 2pt; text-transform: uppercase; letter-spacing: .02em; }
.lembar .sub-judul { text-align: center; font-size: 12pt; margin-bottom: 10pt; }
.lembar .info-dua { display: flex; justify-content: space-between; gap: 16pt; font-size: 12pt; margin: 6pt 0 8pt; }
.lembar .info-dua > div { display: grid; gap: 1pt; }
.lembar .info-dua .baris-info { display: flex; gap: 6pt; }
.lembar .info-dua .baris-info span:first-child { min-width: 3.1cm; }
.lembar .info-dua .baris-info.bawah span:first-child { min-width: 1.9cm; }
.lembar table.tabel-dok { width: 100%; border-collapse: collapse; font-size: 9pt; margin-top: 2pt; table-layout: fixed; }
.lembar table.tabel-dok th, .lembar table.tabel-dok td { border: .7pt solid #000; padding: 2.4pt 3.2pt; vertical-align: top; overflow-wrap: anywhere; }
.lembar table.tabel-dok th { background: #e8e8e8; font-weight: 700; text-align: center; font-size: 8.8pt; }
.lembar table.tabel-dok td.num { text-align: right; }
.lembar table.tabel-dok td.ctr { text-align: center; }
.lembar table.tabel-dok tfoot td { font-weight: 700; background: #f2f2f2; }
.lembar .kosong-dok { padding: 9pt; text-align: center; font-style: italic; font-size: 10pt; border: .7pt solid #000; border-top: 0; }
.lembar .rekap { margin-top: 10pt; font-size: 12pt; }
.lembar .rekap .baris { display: flex; justify-content: space-between; gap: 10pt; padding: 1.2pt 0; }
/* Identitas (Nama Pemegang Kas / Jabatan): nilai rata kiri, sejajar setelah label */
.lembar .rekap.rata-kiri .baris { justify-content: flex-start; }
.lembar .rekap.rata-kiri .baris .label { flex: 0 0 auto; min-width: var(--rekap-label, 5.3cm); }
.lembar .rekap.rata-kiri[data-label="200"] .baris .label { min-width: 7cm; }
.lembar .rekap.rata-kiri .baris .nilai { flex: 1 1 auto; text-align: left; }
.lembar .rekap .baris.tebal { font-weight: 700; border-top: .7pt solid #000; margin-top: 2pt; padding-top: 3pt; }
.lembar .catatan { margin-top: 10pt; font-size: 12pt; text-align: justify; }
.lembar .catatan p { margin-bottom: 5pt; }
.lembar .daftar-huruf { margin: 4pt 0 4pt 16pt; font-size: 12pt; }
.lembar .daftar-huruf li { margin-bottom: 2pt; }
.lembar .ttd-bawah { margin-top: 16pt; display: flex; justify-content: space-between; gap: 12pt; page-break-inside: avoid; }
.lembar .ttd-kolom { flex: 1; text-align: center; font-size: 12pt; }
.lembar .ttd-kolom .ruang { height: 1.5cm; }
.lembar .ttd-kolom .nama { font-weight: 700; text-decoration: underline; }
.lembar .ttd-kolom.middle { margin-top: 14pt; }
.lembar .tengah-mengetahui { margin-top: 14pt; text-align: center; font-size: 12pt; page-break-inside: avoid; }
.lembar .tengah-mengetahui .ruang { height: 1.5cm; }
.lembar .tengah-mengetahui .nama { font-weight: 700; text-decoration: underline; }
.lembar .kaki-dok { position: absolute; bottom: 1cm; left: 2cm; right: 2cm; font-size: 9pt; color: #333; display: flex; justify-content: space-between; border-top: .5pt solid #999; padding-top: 2pt; }
.lembar .judul-tabel { font-weight: 700; text-align: center; font-size: 12pt; margin: 9pt 0 3pt; text-transform: uppercase; }

/* kuitansi */
.kuitansi-dok { font-size: 12pt; }
.kuitansi-dok .kuitansi-kop { display: flex; justify-content: space-between; gap: 14pt; align-items: flex-start; border-bottom: 2pt solid #000; padding-bottom: 5pt; }
.kuitansi-dok .identitas { display: flex; gap: 8pt; align-items: center; }
.kuitansi-dok .identitas img { width: 1.75cm; height: 1.75cm; border-radius: 50%; object-fit: contain; }
.kuitansi-dok .identitas .nama-gereja { font-size: 12.5pt; font-weight: 700; line-height: 1.25; }
.kuitansi-dok .identitas .persekutuan { font-size: 11.5pt; font-weight: 700; }
.kuitansi-dok .nomor-bukti { text-align: right; font-size: 11.5pt; }
.kuitansi-dok .nomor-bukti b { display: block; font-size: 12pt; }
.kuitansi-dok h2 { text-align: center; font-size: 14pt; font-weight: 700; letter-spacing: .06em; margin: 14pt 0 12pt; text-decoration: underline; }
.kuitansi-dok .baris-kui { display: grid; grid-template-columns: 4.4cm 0.4cm 1fr; gap: 2pt; margin-bottom: 9pt; font-size: 12pt; }
.kuitansi-dok .baris-kui .nilai { border-bottom: .7pt dotted #333; padding-bottom: 1pt; min-height: 0.55cm; }
.kuitansi-dok .baris-kui .uang { font-weight: 700; }
.kuitansi-dok .terbilang { font-style: italic; margin: -4pt 0 10pt 4.8cm; font-size: 11.5pt; }
.kuitansi-dok .kotak-uang { border: 1.4pt solid #000; border-radius: 3pt; padding: 8pt 12pt; font-size: 14pt; font-weight: 700; text-align: center; margin: 10pt 0 4pt; letter-spacing: .04em; }
.kuitansi-dok .ttd-kui { display: flex; justify-content: space-between; gap: 12pt; margin-top: 18pt; font-size: 12pt; page-break-inside: avoid; }
.kuitansi-dok .ttd-kui .kolom { flex: 1; text-align: center; }
.kuitansi-dok .ttd-kui .ruang { height: 1.65cm; }
.kuitansi-dok .ttd-kui .nama { font-weight: 700; text-decoration: underline; }
.kuitansi-dok .ttd-kui .tengah { margin-top: 26pt; }

/* modal kuitansi dua kolom */
.kuitansi-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.kuitansi-panel { display: grid; gap: 12px; }
.kuitansi-panel .field > label { font-size: .8rem; }
.kuitansi-panel .field input { min-height: 40px; font-size: .88rem; }
.pratinjau-bungkus { background: #e9e6f4; border: 1px solid var(--garis); border-radius: 14px; padding: 0; height: 620px; overflow: auto; position: relative; }
.pratinjau-kertas { width: 21cm; transform: scale(.66); transform-origin: top left; background: #fff; padding: 2cm; box-sizing: border-box; font-family: Arial, "Liberation Sans", Helvetica, sans-serif; font-size: 12pt; margin: 12px; box-shadow: 0 6px 20px rgba(31, 27, 58, .18); }
.pratinjau-kertas.landscape { width: 29.7cm; transform: scale(.5); }
.kuitansi-grid .hint { font-size: .76rem; }

/* laporan */
.pilihan-laporan { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.laporan-kartu { background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; padding: 18px; box-shadow: var(--bayang-sm); display: grid; gap: 10px; }
.laporan-ikon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; background: #ede9fe; }
.laporan-kartu h3 { font-size: .98rem; margin: 0; }
.laporan-kartu p { font-size: .8rem; color: var(--teks-lemah); min-height: 2.4em; }
.laporan-aksi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.laporan-aksi .btn { min-height: 38px; font-size: .82rem; padding: 6px 10px; }

/* ================================ responsif ============================= */
@media (max-width: 1180px) {
  .grid-2-1 { grid-template-columns: minmax(0, 1fr); }
  .kuitansi-grid { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-103%); transition: transform .2s ease; overflow-y: auto; }
  .sidebar.buka { transform: translateX(0); }
  .side-close { display: grid; place-items: center; }
  .btn-menu { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px; gap: 18px; }
  .footer-app { padding: 14px 16px; }
  .topbar-tgl { display: none; }
  .kuitansi-grid { grid-template-columns: minmax(0, 1fr); }
  .pratinjau-bungkus { height: 520px; }
  .pratinjau-kertas { transform: scale(.55); }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid-3, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .filters .field { min-width: 0; flex: 1 1 44%; }
  .filters .btn { flex: 1 1 100%; }
  .hero { padding: 20px; }
  .hero-teks { --hero-ukuran: 1.08rem; }
  .hero-garis { white-space: normal; }
  .login-nama { font-size: 1.95rem; }
  .login-jemaat { font-size: .88rem; }
  .topbar-kanan .badge { display: none; }
  .pratinjau-kertas { transform: scale(.42); }
  .modal-body { padding: 16px; }
  .lembar { width: 100%; min-height: 0; padding: 1cm; }
  .lembar.landscape { width: 100%; }
}

/* ================================= cetak ================================ */
@media print {
  @page { size: A4 portrait; margin: 2cm; }
  html, body { background: #fff !important; }
  .sidebar, .topbar, .footer-app, .btn-menu, .toolbar-dokumen, .banner-simulasi, .no-print { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; max-width: none; display: block; }
  .halaman-dokumen { padding: 0; background: #fff; }
  .lembar { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; page-break-after: always; }
  .lembar.landscape { width: auto; min-height: 0; }
  .lembar .kaki-dok { display: none; }
  a { color: inherit; text-decoration: none; }
  thead { display: table-header-group; }
  tr { page-break-inside: avoid; }
  /* versi cetak lebih ringkas agar dokumen tidak terpotong & tanda tangan muat */
  .lembar { font-size: 9.8pt; line-height: 1.28; }
  .lembar .kop { padding-bottom: 4pt; margin-bottom: 8pt; }
  .lembar .kop .kop-logo { width: 1.6cm; height: 1.6cm; margin-bottom: 2pt; }
  .lembar .kop div { font-size: 9.7pt; line-height: 1.25; }
  .lembar .kop div.utama { font-size: 11pt; }
  .lembar h2.judul-dok { margin: 2pt 0 1pt; font-size: 11.6pt; }
  .lembar .sub-judul { font-size: 9.2pt; margin-bottom: 6pt; }
  .lembar .info-dua { font-size: 9.2pt; margin: 3pt 0 5pt; }
  .lembar table.tabel-dok { font-size: 8.2pt; }
  .lembar table.tabel-dok th, .lembar table.tabel-dok td { padding: 2pt 3pt; }
  .lembar .rekap { margin-top: 6pt; font-size: 9.2pt; }
  .lembar .rekap .baris { padding: .7pt 0; }
  .lembar .ttd-bawah { margin-top: 10pt; }
  .lembar .ttd-kolom { font-size: 9.2pt; }
  .lembar .ttd-kolom .ruang { height: 1.15cm; }
  .lembar .tengah-mengetahui { margin-top: 9pt; font-size: 9.2pt; }
  .lembar .tengah-mengetahui .ruang { height: 1.1cm; }
  .lembar .catatan, .lembar .daftar-huruf { font-size: 9.2pt; }
  .lembar.landscape { font-size: 9.4pt; }
}

/* ------------------------------------------------- pengguna & akses */
.opasitas-rendah { opacity: .55; }
.opasitas-rendah .hint { opacity: 1; }

/* ---------------------------------------- Tanda Tangan Elektronik (TTE) */
.lembar .tte-blok { margin-top: 3pt; display: grid; justify-items: center; gap: 1pt; line-height: 1.15; }
.lembar .tte-blok .tte-qr { display: block; }
.lembar .tte-blok .tte-kode { font-size: 7.2pt; font-weight: 700; letter-spacing: .02em; }
.lembar .tte-blok .tte-catatan { font-size: 6.6pt; color: #333; }

/* kartu verifikasi TTE */
.tte-kartu { display: grid; gap: 14px; }
.tte-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.tte-status.sah { background: #e7f8ef; color: #065f46; border: 1px solid #a7ebc8; }
.tte-status.tidak { background: #fde9ee; color: #9f1239; border: 1px solid #f8c4d2; }
.tte-rincian { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 8px 18px; }
.tte-rincian .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--teks-lemah); font-weight: 800; }
.tte-rincian .val { font-weight: 600; overflow-wrap: anywhere; }

/* QR TTE di antara jabatan & nama penanda tangan */
.lembar .tte-blok { margin: 2pt 0 1pt; display: grid; justify-items: center; }
.lembar .tte-blok svg { display: block; }
.lembar .ttd-kolom .tte-blok svg { width: 1.55cm; height: 1.55cm; }
.lembar .tengah-mengetahui .tte-blok svg { width: 1.35cm; height: 1.35cm; }

/* TTE menunggu verifikasi (belum disetujui akun terkait) */
.lembar .tte-blok.tte-menunggu {
  display: grid; place-items: center; border: .8pt dashed #666; border-radius: 2pt;
  font-size: 5.6pt; line-height: 1.15; text-align: center; color: #333; background: #fff;
}

/* ---------------- halaman verifikasi TTE ---------------- */
.tte-kotak {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 132px; min-height: 46px; padding: 8px 16px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--garis); background: #fff; font-weight: 800; font-size: .9rem;
  color: var(--teks-lemah); transition: all .15s;
}
.tte-kotak:hover { border-color: var(--indigo); color: var(--indigo-tua); }
.tte-kotak.sudah { border-color: #10b981; background: #e7f8ef; color: #065f46; }
.tte-kotak .centang { font-size: 1.15rem; line-height: 1; }
.tte-baris { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--garis); }
.tte-baris:last-child { border-bottom: 0; }
.tte-grup { border: 1px solid var(--garis); border-radius: 14px; padding: 6px 16px; margin-bottom: 14px; background: rgba(255,255,255,.7); }
.tte-grup-head { font-weight: 800; padding: 10px 0 4px; }

/* ---------------- impor BKU dari Excel ---------------- */
.pilih-sumber { display: flex; gap: 16px; flex-wrap: wrap; }
.pilih-sumber > label {
  display: flex; gap: 12px; align-items: flex-start; flex: 1 1 280px; cursor: pointer;
  padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--garis);
  background: rgba(255, 255, 255, .82); transition: border-color .15s, box-shadow .15s;
}
.pilih-sumber > label:hover { border-color: rgba(79, 70, 229, .45); }
.pilih-sumber > label:has(input:checked) {
  border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.pilih-sumber input[type="radio"] { margin-top: 3px; accent-color: var(--indigo); width: 18px; height: 18px; flex: none; }
.pilih-sumber strong { display: block; font-size: .97rem; font-weight: 800; color: var(--teks); }
.pilih-sumber em { display: block; font-style: normal; font-size: .83rem; color: var(--teks-lemah); margin-top: 2px; }
.impor-ringkas { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.impor-angka { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--garis); background: rgba(255, 255, 255, .82); }
.impor-angka span { display: block; margin-bottom: 2px; }
.impor-angka b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
