/* =========================================================================
   Masjid — tema terang bersih dengan aksen hijau islami
   Palet & komponen dipakai bersama oleh halaman publik dan panel pengurus.
   ========================================================================= */

:root {
  --bg: #F4F8F5;
  --bg-soft: #EAF3ED;
  --surface: #FFFFFF;
  --surface-2: #F3F8F4;
  --ink: #0E2318;
  --ink-2: #1D3B2B;
  --muted: #5C7568;
  --line: #DFEAE2;
  --line-kuat: #C9DBCF;
  --brand: #0E6B46;
  --brand-2: #14895A;
  --brand-3: #0A5136;
  --brand-soft: #E4F4EB;
  --gold: #B89025;
  --gold-2: #E4C87A;
  --gold-soft: #F8F1DA;
  --merah: #B23B3B;
  --merah-soft: #FBEAEA;
  --radius: 18px;
  --radius-kecil: 12px;
  --shadow: 0 20px 46px -28px rgba(11, 55, 36, .45);
  --shadow-kecil: 0 8px 22px -16px rgba(11, 55, 36, .5);
  --wrap: 1180px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-3); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.22; margin: 0; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
ul { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- tipografi kecil ---------- */
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 6px 13px;
}
.tautan-panah {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.tautan-panah span { transition: transform .18s ease; }
.tautan-panah:hover span { transform: translateX(3px); }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-kecil { padding: 9px 17px; font-size: .86rem; }
.btn-utama { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -16px rgba(14, 107, 70, .9); }
.btn-utama:hover { background: var(--brand-3); color: #fff; }
.btn-garis { background: var(--surface); color: var(--brand); border-color: var(--line-kuat); }
.btn-garis:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-3); }
.btn-emas { background: var(--gold-soft); color: #6B5312; border-color: #EADFB7; }
.btn-emas:hover { background: var(--gold-2); color: #4A3A0A; }
.btn-merah { background: var(--merah-soft); color: var(--merah); border-color: #F1CFCF; }
.btn-merah:hover { background: #F6DCDC; color: #8E2C2C; }
.btn-blok { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo img { display: block; max-height: 48px; width: auto; background: transparent; border: 0; padding: 0; border-radius: 0; }
.brand-mark { display: block; }
.brand-teks { display: flex; flex-direction: column; line-height: 1.2; }
.brand-teks strong { font-family: var(--serif); font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; }
.brand-teks span { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 13px; border-radius: 10px;
  font-size: .91rem; font-weight: 500; color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-3); }
.main-nav a.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-kuat); border-radius: 12px; background: var(--surface);
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero beranda ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 84% 14%, rgba(20, 137, 90, .16), transparent 52%),
    radial-gradient(circle at 6% 92%, rgba(184, 144, 37, .13), transparent 48%),
    linear-gradient(158deg, #F8FCF9 0%, #EDF6F0 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230E6B46' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M48 8 88 48 48 88 8 48Z'/%3E%3Cpath d='M20 20h56v56H20Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .9;
  mask-image: linear-gradient(100deg, transparent 22%, #000 78%);
  -webkit-mask-image: linear-gradient(100deg, transparent 22%, #000 78%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 64px 0 68px; }
.hero-teks h1 { margin: 18px 0 0; }
.hero-teks h1 em { font-style: normal; color: var(--brand); }
.hero-tagline { margin-top: 16px; font-size: 1.06rem; color: var(--ink-2); max-width: 48ch; }
.hero-alamat { margin-top: 18px; display: flex; align-items: flex-start; gap: 9px; font-size: .9rem; color: var(--muted); max-width: 46ch; }
.hero-alamat svg { flex: none; margin-top: 3px; }
.hero-aksi { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-tanggal { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .82rem; color: var(--muted); }
.hero-tanggal strong { color: var(--ink-2); font-weight: 600; }

/* kartu jadwal sholat (beranda) */
.sholat-card {
  position: relative;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #D6E7DB;
  border-radius: 24px;
  padding: 26px 26px 22px;
  box-shadow: 0 30px 60px -38px rgba(11, 55, 36, .55);
  backdrop-filter: blur(10px);
}
.sholat-card-atas { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-kuat); }
.sholat-card-atas h2 { font-size: 1.2rem; }
.sholat-card-atas p { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.sholat-kota { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.sholat-daftar { list-style: none; padding: 0; margin: 6px 0 0; }
.sholat-daftar li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #EDF3EE; }
.sholat-daftar li:last-child { border-bottom: 0; }
.sholat-nama { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: var(--ink-2); }
.sholat-nama svg { color: var(--brand-2); }
.sholat-jam { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; }
.sholat-daftar li.is-next { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; margin: 2px -4px; border-bottom-color: transparent; }
.sholat-daftar li.is-next .sholat-jam { color: var(--brand-3); }
.sholat-next {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: var(--brand-3); background: #F1FAF4; border: 1px solid #D8EBDF;
  border-radius: 12px; padding: 11px 14px;
}
.sholat-next strong { font-weight: 700; }
.sholat-catatan { margin-top: 12px; font-size: .75rem; color: var(--muted); line-height: 1.5; }

/* ---------- halaman dalam ---------- */
.page-hero { background: linear-gradient(160deg, #F7FBF8, #EAF4EE); border-bottom: 1px solid var(--line); padding: 46px 0 44px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 137, 90, .16), transparent 68%);
}
.page-hero h1 { margin: 14px 0 0; }
.page-hero p { margin-top: 12px; color: var(--muted); max-width: 68ch; font-size: 1rem; }

section.blok { padding: 56px 0; }
section.blok.blok-rapat { padding: 40px 0; }
.blok-abu { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 9px; color: var(--muted); max-width: 62ch; }

/* ---------- kartu umum & grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kartu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-kecil); }
.kartu-lembut { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-kecil);
}
.stat-label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-nilai { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.stat-ket { font-size: .8rem; color: var(--muted); }
.stat.is-brand { background: linear-gradient(150deg, #0E6B46, #0A5136); border-color: transparent; color: #fff; }
.stat.is-brand .stat-label { color: rgba(255, 255, 255, .88); }
.stat.is-brand .stat-ket { color: rgba(255, 255, 255, .84); }
.stat.is-brand .stat-nilai { color: #fff; }
.stat.is-emas { background: linear-gradient(150deg, #FBF4DF, #F5EACB); border-color: #EBDCB2; }
.stat.is-emas .stat-label, .stat.is-emas .stat-ket { color: #7A6320; }

/* ---------- kartu kajian ---------- */
.kajian-card {
  display: grid; grid-template-columns: 84px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-kecil);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kajian-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-kuat); }
.kajian-tanggal {
  background: linear-gradient(160deg, #0E6B46, #0B5B3C);
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 18px 8px; text-align: center;
}
.kajian-tanggal .hari { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.kajian-tanggal strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.kajian-tanggal .bulan { font-size: .74rem; opacity: .9; }
.kajian-isi { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.kajian-label { display: flex; flex-wrap: wrap; gap: 7px; }
.kajian-isi h3 { font-size: 1.12rem; }
.kajian-isi h3 a { color: var(--ink); }
.kajian-isi h3 a:hover { color: var(--brand); }
.kajian-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .81rem; color: var(--muted); }
.kajian-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kajian-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.kajian-ringkas { font-size: .88rem; color: var(--muted); }
.kajian-bawah { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.kajian-kuota { font-size: .78rem; font-weight: 600; color: var(--brand-3); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; }

/* ---------- badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badge-buka { background: var(--brand-soft); color: var(--brand-3); }
.badge-penuh { background: #F3EDE1; color: #7A6320; }
.badge-penting { background: var(--gold-soft); color: #6B5312; }
.badge-contoh { background: #EFF2F4; color: #5E6E77; }
.badge-masuk { background: #E4F4EB; color: #0A5136; }
.badge-keluar { background: var(--merah-soft); color: var(--merah); }
.badge-baru { background: var(--gold-soft); color: #6B5312; }
.badge-konfirmasi { background: var(--brand-soft); color: var(--brand-3); }
.badge-batal { background: #F1F1F1; color: #6A6A6A; }

/* ---------- pengumuman ---------- */
.pengumuman-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-kuat);
  border-radius: var(--radius-kecil); padding: 20px 22px; display: flex; flex-direction: column; gap: 9px;
}
.pengumuman-card.is-penting { border-left-color: var(--gold); background: linear-gradient(180deg, #FFFDF6, #fff); }
.pengumuman-atas { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pengumuman-tanggal { font-size: .78rem; color: var(--muted); font-weight: 600; }
.pengumuman-card h3 { font-size: 1.05rem; }
.pengumuman-card h3 a { color: var(--ink); }
.pengumuman-card h3 a:hover { color: var(--brand); }
.pengumuman-card > p { font-size: .89rem; color: var(--muted); }
.pengumuman-isi p { margin-bottom: 14px; color: var(--ink-2); }
.pengumuman-isi p:last-child { margin-bottom: 0; }

/* ---------- jadwal sholat halaman ---------- */
.jadwal-hari-ini {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px;
}
.jadwal-sel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-kecil);
  padding: 16px 14px; text-align: center; display: flex; flex-direction: column; gap: 5px;
}
.jadwal-sel .nama { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jadwal-sel .jam { font-family: var(--serif); font-size: 1.42rem; font-weight: 700; }
.jadwal-sel.is-next { background: var(--brand); border-color: var(--brand); color: #fff; }
.jadwal-sel.is-next .nama { color: rgba(255, 255, 255, .8); }
.jadwal-sel .tanda { font-size: .68rem; font-weight: 700; color: #D7F0E2; }
.jadwal-sel.is-next .tanda { color: #E9FBF1; }

.tabel-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tabel { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.tabel th, table.tabel td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tabel thead th { background: var(--surface-2); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.tabel tbody tr:last-child td { border-bottom: 0; }
table.tabel tbody tr.is-hari-ini { background: var(--brand-soft); }
table.tabel tbody tr.is-hari-ini td { font-weight: 600; }
table.tabel td.angka { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.tabel td.tengah { text-align: center; }
table.tabel .sub { font-size: .78rem; color: var(--muted); font-weight: 400; }
.jadwal-jam-sel { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- keuangan ---------- */
.keuangan-angka { font-family: var(--serif); font-variant-numeric: tabular-nums; }
.kas-jenis { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.kas-jenis.masuk { color: var(--brand); }
.kas-jenis.keluar { color: var(--merah); }
.rekening-box { background: linear-gradient(150deg, #0E6B46, #0A4C34); color: #fff; border-radius: var(--radius); padding: 26px; }
.rekening-box h3 { color: #fff; font-size: 1.1rem; }
.rekening-box .rek-barish { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .22); font-size: .9rem; }
.rekening-box .rek-barish:last-child { border-bottom: 0; }
.rekening-box .rek-barish span:first-child { color: rgba(255, 255, 255, .72); }
.rekening-box .rek-barish strong { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- profil / pengurus ---------- */
.profil-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.profil-teks p { color: var(--ink-2); margin-bottom: 14px; }
.daftar-centang { list-style: none; padding: 0; display: grid; gap: 10px; }
.daftar-centang li { display: flex; gap: 10px; font-size: .93rem; color: var(--ink-2); }
.daftar-centang li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E6B46' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.pengurus-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pengurus-avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-3); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 8px; border: 1px solid #D3E7DB;
}
.pengurus-card strong { font-size: .98rem; }
.pengurus-card .jabatan { font-size: .8rem; color: var(--brand); font-weight: 600; }
.pengurus-card .periode { font-size: .75rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0C5137, #0E6B46 55%, #12855A);
  color: #fff; border-radius: 24px; padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -90px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 200, 122, .32), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: 1.6rem; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .82); max-width: 56ch; font-size: .94rem; }
.cta-band .btn-utama { background: #fff; color: var(--brand-3); box-shadow: none; }
.cta-band .btn-utama:hover { background: var(--gold-2); color: #3E300A; }
.cta-band .btn-garis { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-garis:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.cta-aksi { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .penuh { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field .bantu { font-size: .76rem; color: var(--muted); }
.field .wajib { color: var(--merah); }
input[type="text"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], input[type="email"], input[type="tel"], input[type="url"], input[type="month"], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-kuat); border-radius: var(--radius-kecil);
  background: var(--surface); color: var(--ink); font-size: .93rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(20, 137, 90, .14); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C7568' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.form-aksi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.pilihan { display: flex; flex-wrap: wrap; gap: 10px; }
.pilihan label {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-kuat);
  border-radius: 999px; padding: 8px 15px; font-size: .86rem; cursor: pointer; background: var(--surface);
}
.pilihan input { accent-color: var(--brand); }
.pilihan label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-3); font-weight: 600; }

.pesan { border-radius: var(--radius-kecil); padding: 13px 16px; font-size: .9rem; margin-bottom: 18px; border: 1px solid transparent; }
.pesan-ok { background: var(--brand-soft); border-color: #CDE7D8; color: #0A5136; }
.pesan-error { background: var(--merah-soft); border-color: #F0CECE; color: #8E2C2C; }
.pesan-info { background: var(--gold-soft); border-color: #EBDCB2; color: #6B5312; }

.kosong {
  border: 1px dashed var(--line-kuat); background: var(--surface-2); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; color: var(--muted); font-size: .92rem;
}
.kosong strong { display: block; color: var(--ink-2); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- detail kajian ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.detail-kepala { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: .84rem; color: var(--muted); }
.detail-info { display: grid; gap: 14px; }
.info-baris { display: flex; gap: 12px; align-items: flex-start; }
.info-ikon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); }
.info-baris .label { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.info-baris .nilai { font-size: .95rem; font-weight: 600; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: #0B2A1D; color: rgba(255, 255, 255, .74); margin-top: 0; padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer .brand-teks strong { color: #fff; }
.site-footer .brand-teks span { color: rgba(255, 255, 255, .6); }
.site-footer p { margin-top: 14px; font-size: .88rem; line-height: 1.65; max-width: 42ch; }
.footer-jam { font-size: .82rem !important; color: rgba(255, 255, 255, .6) !important; }
.footer-kolom { display: flex; flex-direction: column; gap: 9px; }
.footer-kolom h4 { color: #fff; font-size: .95rem; margin-bottom: 4px; font-family: var(--font); letter-spacing: .02em; }
.footer-kolom a { color: rgba(255, 255, 255, .74); font-size: .88rem; }
.footer-kolom a:hover { color: #fff; }
.footer-admin { color: var(--gold-2) !important; font-weight: 600; }
.footer-rek { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }
.footer-rek-item { color: #fff; font-variant-numeric: tabular-nums; }
.footer-bawah { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; color: rgba(255, 255, 255, .5); }

/* ---------- WhatsApp mengambang ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: #128C4A; color: #fff; font-weight: 600; font-size: .88rem;
  padding: 13px 18px; border-radius: 999px; box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .55);
}
.wa-float:hover { background: #0E7440; color: #fff; }

/* =========================================================================
   Panel pengurus
   ========================================================================= */
.admin-body { background: var(--surface-2); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 262px; flex: none; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, #0B3A28, #0A2E20);
  color: rgba(255, 255, 255, .78); display: flex; flex-direction: column;
  padding: 22px 16px 18px; overflow-y: auto;
}
.admin-brand { padding: 2px 8px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 16px; }
.admin-brand .brand-teks strong { color: #fff; font-size: 1.02rem; }
.admin-brand .brand-teks span { color: rgba(255, 255, 255, .55); font-size: .7rem; }
.admin-brand .brand-mark { width: 40px; height: 40px; }
.admin-brand .brand-logo img { max-height: 40px; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a, .admin-side-kaki a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .76); font-size: .9rem; font-weight: 500;
}
.admin-nav a:hover, .admin-side-kaki a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-nav a.is-active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--gold-2); font-weight: 600; }
.admin-side-kaki { margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 3px; }
.ikon { width: 19px; height: 19px; flex: none; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.admin-top-teks { display: flex; flex-direction: column; line-height: 1.25; }
.admin-top-teks span { font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.admin-top-teks strong { font-family: var(--serif); font-size: 1.18rem; }
.admin-top-kanan { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-user { font-size: .84rem; font-weight: 600; color: var(--ink-2); background: var(--brand-soft); border-radius: 999px; padding: 6px 13px; }
.admin-burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-kuat); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.admin-isi { padding: 28px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.admin-kaki { padding: 18px 28px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .76rem; color: var(--muted); }
.scrim { position: fixed; inset: 0; background: rgba(6, 26, 18, .5); z-index: 55; display: none; }
.scrim.is-open { display: block; }

.admin-judul { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.admin-judul h1 { font-size: 1.55rem; }
.admin-judul p { margin-top: 6px; font-size: .88rem; color: var(--muted); max-width: 72ch; }
.admin-aksi { display: flex; flex-wrap: wrap; gap: 9px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-kecil); overflow: hidden; }
.panel-kepala { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.panel-kepala h2 { font-size: 1.12rem; }
.panel-kepala p { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.panel-isi { padding: 22px; }
.panel-isi > * + * { margin-top: 18px; }
.panel-kaki { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .82rem; color: var(--muted); }

.stat-baris { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-admin { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel-kepala > *, .panel-isi > *, .admin-isi > * { min-width: 0; }
.tabel-wrap { max-width: 100%; }
.aksi-baris { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-tautan { background: none; border: 0; padding: 0; color: var(--brand); font-size: .82rem; font-weight: 600; cursor: pointer; }
.btn-tautan:hover { text-decoration: underline; }
.btn-tautan.danger { color: var(--merah); }
.inline-form { display: inline; }

.filter-baris { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.filter-baris .field { min-width: 150px; }
.filter-baris form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cari-input { min-width: 220px; }

.ringkas-kas { display: flex; flex-wrap: wrap; gap: 18px 30px; }
.ringkas-item .label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.ringkas-item .nilai { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }

.cek-lis { list-style: none; padding: 0; display: grid; gap: 8px; }
.cek-lis li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; }
.cek-lis li .titik { width: 16px; height: 16px; border-radius: 50%; background: var(--gold-soft); border: 1px solid #E5D5A9; flex: none; margin-top: 3px; }
.cek-lis li.selesai .titik { background: var(--brand-soft); border-color: #BFE0CC; }

/* Login pengurus */
.login-body {
  min-height: 100vh; display: grid; place-items: center; padding: 30px 20px;
  background:
    radial-gradient(circle at 82% 12%, rgba(20, 137, 90, .18), transparent 46%),
    radial-gradient(circle at 10% 92%, rgba(184, 144, 37, .16), transparent 44%),
    linear-gradient(160deg, #F6FBF8, #E9F3ED);
}
.login-kartu {
  width: 100%; max-width: 428px; background: var(--surface); border: 1px solid #D8E8DE;
  border-radius: 24px; padding: 34px 32px 30px; box-shadow: 0 40px 80px -50px rgba(11, 55, 36, .6);
}
.login-kartu .brand { margin-bottom: 22px; }
.login-kartu h1 { font-size: 1.5rem; }
.login-kartu > p { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.login-kartu form { margin-top: 22px; display: grid; gap: 16px; }
.login-kaki { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Data list kecil */
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list .tgl { color: var(--muted); font-size: .8rem; }

/* Pemisah */
.pisah { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =========================================================================
   Responsif (khusus layar — JANGAN pakai max-width polos, agar tidak
   mengganggu hasil cetak jadwal pada lebar kertas A4 ~794px)
   ========================================================================= */
@media screen and (max-width: 1100px) {
  .hero-inner { gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-baris { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding: 9px 10px; font-size: .87rem; }
}

@media screen and (max-width: 1000px) {
  .detail-grid, .profil-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .grid-admin { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-side {
    position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-102%);
    transition: transform .22s ease; box-shadow: 20px 0 50px -30px rgba(0, 0, 0, .6);
  }
  .admin-side.is-open { transform: translateX(0); }
  .admin-burger { display: inline-flex; }
  .admin-isi { padding: 22px; }
  .admin-top { padding: 12px 20px; }
}

@media screen and (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 44px 0 50px; }
  .sholat-card { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .jadwal-hari-ini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* Navigasi header disembunyikan lebih awal (1140px) supaya tautan tidak
   membungkus dua baris ketika logo + 7 menu + tombol CTA masih ditampilkan. */
@media screen and (max-width: 1140px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .4);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 12px; font-size: .95rem; }
  .nav-cta-mobile { display: block; margin-top: 8px; text-align: center; background: var(--brand); color: #fff !important; border-radius: 999px; padding: 12px !important; font-weight: 600; }
  .nav-cta-mobile:hover { background: var(--brand-3); color: #fff !important; }
  .burger { display: inline-flex; }
  .header-actions .btn-utama { display: none; }
  .header-inner { gap: 14px; min-height: 74px; }
}

@media screen and (max-width: 760px) {
  .wrap { padding: 0 18px; }
  section.blok { padding: 42px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .stat-baris { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-tanggal { font-size: .78rem; }
  .cta-band { padding: 30px 24px; }
  .cta-band h2 { font-size: 1.35rem; }
  .wa-float { right: 14px; bottom: 14px; padding: 12px 16px; font-size: .82rem; }
  .admin-isi { padding: 18px 16px; gap: 18px; }
  .admin-kaki { padding: 14px 18px 22px; }
  .panel-isi { padding: 18px; }
  .stat { padding: 17px 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
}

@media screen and (max-width: 560px) {
  .kajian-card { grid-template-columns: 66px minmax(0, 1fr); }
  .kajian-tanggal strong { font-size: 1.55rem; }
  .kajian-isi { padding: 16px 16px; }
  .jadwal-hari-ini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stat-baris { grid-template-columns: minmax(0, 1fr); }
  .brand-teks strong { font-size: 1.02rem; }
  .brand-teks span { font-size: .68rem; }
  .brand-logo img { max-height: 38px; }
  .hero-aksi .btn { width: 100%; }
  .cta-aksi { width: 100%; }
  .cta-aksi .btn { flex: 1; }
  .login-kartu { padding: 26px 22px; }
  .footer-bawah { flex-direction: column; }
}

@media screen and (max-width: 460px) {
  .admin-top { padding: 10px 14px; gap: 10px; }
  .admin-top-kanan .btn { display: none; }
  .admin-user { font-size: .76rem; padding: 5px 10px; }
  .admin-top-teks span { font-size: .68rem; }
  .admin-top-teks strong { font-size: 1rem; }
  .admin-isi { padding: 16px 12px; gap: 16px; }
  .panel-kepala, .panel-isi { padding: 15px 16px; }
  .filter-baris .field { min-width: 130px; }
  .cari-input { min-width: 160px; }
}

@media screen and (max-width: 400px) {
  .brand-teks span { display: none; }
  .sholat-card { padding: 20px 18px; }
}

/* =========================================================================
   Cetak — jadwal sholat & laporan keuangan
   ========================================================================= */
@media print {
  @page { size: A4 portrait; margin: 12mm 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .site-header, .site-footer, .wa-float, .no-print, .page-hero, .admin-top, .admin-side, .admin-kaki, .admin-burger { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  section.blok { padding: 0; }
  .kartu, .panel, .tabel-wrap, .stat, .sholat-card { border: 1px solid #bbb; box-shadow: none; break-inside: avoid; }
  .tabel-wrap { overflow: visible; }
  .jadwal-hari-ini, .admin-aksi, .sholat-catatan, .jadwal-catatan { display: none !important; }
  .cetak-note { font-size: 8.4pt; color: #444; margin-top: 2px; }
  table.tabel { min-width: 0; font-size: 9pt; }
  table.tabel th, table.tabel td { padding: 4px 7px; }
  table.tabel thead th { font-size: 7.8pt; }
  .cetak-jumat { break-before: page; }
  .tanpa-cetak { display: none !important; }
  table.tabel thead th { background: #eef2ef !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cetak-head { display: block !important; text-align: center; margin-bottom: 12px; }
  .cetak-head h2 { font-size: 15pt; }
  .cetak-head p { font-size: 9.5pt; }
  .admin-isi { padding: 0; display: block; }
  a { color: #000; text-decoration: none; }

  /* Laporan keuangan publik: satu kolom, blok gelap dibuat putih agar hemat tinta */
  .keuangan-stat { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; margin-bottom: 14px !important; }
  .keuangan-stat .stat { padding: 10px 12px; }
  .keuangan-stat .stat-nilai { font-size: 1.05rem; }
  .keuangan-stat .stat-label, .keuangan-stat .stat-ket { font-size: .72rem; }
  .keuangan-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  .keuangan-grid > * { break-inside: avoid; }
  .stat.is-brand, .rekening-box { background: #fff !important; color: #000 !important; border: 1px solid #bbb !important; }
  .stat.is-brand .stat-label, .stat.is-brand .stat-ket { color: #444 !important; }
  .stat.is-brand .stat-nilai, .rekening-box h3 { color: #000 !important; }
  .rekening-box .rek-barish { border-bottom: 1px dashed #ccc; }
  .rekening-box .rek-barish span:first-child { color: #444 !important; }
  .rekening-box .btn, .keuangan-grid .btn { display: none !important; }
  .badge { border: 1px solid #bbb; }
  .keuangan-grid .panel-isi, .keuangan-grid .panel-kepala { padding: 10px 12px; }
  tr.is-hari-ini { background: #eef2ef !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.cetak-head { display: none; }

/* =========================================================================
   Kwitansi pengeluaran (halaman kwitansi.php) — layar & cetak A4
   ========================================================================= */
.kw-body { background: var(--surface-2); padding: 24px 16px 60px; }
.kw-bar {
  max-width: 780px; margin: 0 auto 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-kecil); display: grid; gap: 14px;
}
.kw-bar-judul strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.kw-bar-judul span { font-size: .8rem; color: var(--muted); }
.kw-bar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kw-bar-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.kw-bar-grid input { padding: 8px 11px; font-size: .86rem; border-radius: 9px; }
.kw-bar-lebar { grid-column: 1 / -1; }
.kw-bar-aksi { display: flex; flex-wrap: wrap; gap: 9px; }

.kw-sheet {
  /* Pratinjau layar mengikuti proporsi A5 (lebar kertas 148 mm). */
  width: 100%; max-width: 600px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px 22px;
  box-shadow: 0 30px 60px -44px rgba(11, 55, 36, .6); color: var(--ink);
}
.kw-size {
  display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .08em;
  background: var(--brand-soft); color: var(--brand-3); border-radius: 999px;
  padding: 2px 7px; margin-left: 6px; vertical-align: 1px;
}
.kw-kop { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--brand); }
.kw-kop-logo { flex: none; }
.kw-kop-logo img { display: block; max-height: 52px; width: auto; }
.kw-kop-teks { flex: 1; min-width: 0; }
.kw-kop-teks h2 { font-size: 1.22rem; line-height: 1.2; }
.kw-kop-teks p { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.kw-kop-sub { color: var(--brand) !important; font-weight: 600; letter-spacing: .01em; }
.kw-kop-kanan { flex: none; text-align: right; display: flex; flex-direction: column; gap: 3px; }
.kw-kop-kanan strong { font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--brand-3); }
.kw-label-kecil { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.kw-judul { text-align: center; margin: 18px 0 6px; }
.kw-judul h1 { font-size: 1.5rem; letter-spacing: .28em; text-indent: .28em; }
.kw-judul span { display: block; font-size: .68rem; letter-spacing: .18em; color: var(--muted); margin-top: 2px; }

.kw-meta { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 14px 0 4px; }
.kw-meta > div { display: flex; flex-direction: column; gap: 2px; }
.kw-meta strong { font-size: .9rem; font-variant-numeric: tabular-nums; }

.kw-isi { width: 100%; border-collapse: collapse; margin-top: 4px; }
.kw-isi th {
  width: 32%; text-align: left; vertical-align: top; font-weight: 600; font-size: .82rem;
  color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px dashed var(--line-kuat);
}
.kw-isi td { vertical-align: top; font-size: .9rem; padding: 8px 0; border-bottom: 1px dashed var(--line-kuat); }
.kw-isi tr:last-child th, .kw-isi tr:last-child td { border-bottom: 0; }
.kw-nominal { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }
.kw-terbilang { font-style: italic; color: var(--ink-2); }
.kw-kecil { font-size: .76rem; color: var(--muted); font-weight: 400; margin-top: 3px; }

.kw-ttd { display: flex; justify-content: space-between; gap: 40px; margin-top: 20px; padding-top: 6px; }
.kw-ttd-kolom { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.kw-ttd-ruang { height: 46px; }
.kw-ttd-kolom strong {
  font-size: .88rem; border-bottom: 1px solid var(--ink-2); padding: 0 10px 2px;
  min-width: 150px; max-width: 100%; overflow-wrap: anywhere;
}

.kw-catatan { margin-top: 18px; padding-top: 10px; border-top: 1px dashed var(--line-kuat); font-size: .74rem; color: var(--muted); font-style: italic; }

@media screen and (max-width: 700px) {
  .kw-bar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kw-sheet { padding: 22px 18px; border-radius: 12px; }
  .kw-isi th { width: 42%; padding-right: 8px; }
  .kw-ttd { gap: 18px; }
  .kw-ttd-kolom strong { min-width: 0; font-size: .8rem; }
}

@media print {
  @page { size: A5 portrait; margin: 8mm 10mm; }
  body.kw-body { background: #fff; padding: 0; margin: 0; }
  .kw-bar, .no-print { display: none !important; }
  .kw-sheet {
    max-width: none; width: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none;
    padding: 0; break-inside: avoid; font-size: 10pt;
  }
  /* A5: lebar isi hanya ±128 mm → kop & tabel dirapatkan */
  .kw-kop { gap: 9px; padding-bottom: 8px; border-bottom-width: 1.4px; }
  .kw-kop-logo img { max-height: 38px; }
  .kw-kop-kanan strong { font-size: 8.6pt; }
  .kw-kop-teks h2 { font-size: 12.4pt; }
  .kw-kop-teks p { font-size: 7.8pt; line-height: 1.42; }
  .kw-label-kecil { font-size: 6.2pt; letter-spacing: .07em; }
  .kw-judul { margin: 9px 0 3px; }
  .kw-judul h1 { font-size: 14pt; letter-spacing: .22em; text-indent: .22em; }
  .kw-judul span { font-size: 6.2pt; }
  .kw-meta { margin: 8px 0 2px; }
  .kw-meta strong { font-size: 8.6pt; }
  .kw-isi th { width: 34%; font-size: 9.2pt; padding: 6px 8px 6px 0; }
  .kw-isi td { font-size: 9.6pt; padding: 6px 0; }
  .kw-nominal { font-size: 12.4pt; }
  .kw-kecil { font-size: 7.4pt; }
  .kw-ttd { margin-top: 14px; gap: 22px; }
  .kw-ttd-ruang { height: 40px; }
  .kw-ttd-kolom strong { font-size: 9pt; min-width: 0; padding: 0 6px 2px; }
  .kw-catatan { margin-top: 10px; padding-top: 8px; font-size: 7.4pt; }
  .hero { background-image: none !important; }
  .kw-kop-teks p, .kw-catatan, .kw-kecil, .kw-label-kecil { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* =========================================================================
   Laporan keuangan (halaman laporan-keuangan.php) — layar & cetak A4
   ========================================================================= */
.lap-body { background: var(--surface-2); padding: 24px 16px 60px; }
.lap-bar {
  max-width: 900px; margin: 0 auto 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-kecil); display: grid; gap: 14px;
}
.lap-bar-judul strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.lap-bar-judul span { font-size: .8rem; color: var(--muted); }
.lap-bar-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.lap-bar-form label { display: flex; flex-direction: column; gap: 5px; font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.lap-bar-form select, .lap-bar-form input { padding: 8px 11px; font-size: .86rem; border-radius: 9px; }
.lap-bar-aksi { display: flex; flex-wrap: wrap; gap: 9px; }

.lap-sheet {
  width: 100%; max-width: 900px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px 26px;
  box-shadow: 0 30px 60px -44px rgba(11, 55, 36, .6); color: var(--ink);
}
.lap-kop { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--brand); }
.lap-kop-logo { flex: none; }
.lap-kop-logo img { display: block; max-height: 54px; width: auto; }
.lap-kop-teks { flex: 1; min-width: 0; }
.lap-kop-teks h2 { font-size: 1.24rem; line-height: 1.2; }
.lap-kop-teks p { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.lap-kop-sub { color: var(--brand) !important; font-weight: 600; }
.lap-kop-kanan { flex: none; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.lap-kop-kanan strong { font-family: var(--serif); font-size: .95rem; color: var(--brand-3); letter-spacing: .04em; }
.lap-kop-periode { font-size: .74rem; color: var(--muted); }

.lap-judul { text-align: center; margin: 16px 0 14px; }
.lap-judul h1 { font-size: 1.32rem; letter-spacing: .1em; }
.lap-judul p { font-size: .78rem; color: var(--muted); margin-top: 3px; }

.lap-ringkas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.lap-ringkas-sel {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2);
  display: flex; flex-direction: column; gap: 3px;
}
.lap-ringkas-sel strong { font-family: var(--serif); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.lap-ringkas-sel.is-masuk { background: var(--brand-soft); border-color: #CDE7D8; }
.lap-ringkas-sel.is-masuk strong { color: var(--brand-3); }
.lap-ringkas-sel.is-keluar { background: var(--merah-soft); border-color: #F0CECE; }
.lap-ringkas-sel.is-keluar strong { color: #8E2C2C; }
.lap-ringkas-sel.is-akhir { background: linear-gradient(150deg, #0E6B46, #0A5136); border-color: transparent; }
.lap-ringkas-sel.is-akhir .kw-label-kecil { color: rgba(255, 255, 255, .8); }
.lap-ringkas-sel.is-akhir strong { color: #fff; }

.lap-h3 { font-size: .96rem; margin: 16px 0 8px; font-family: var(--font); font-weight: 700; letter-spacing: .01em; }
.lap-dua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.lap-tabel-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.lap-mini, table.lap-tabel { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.lap-mini th, table.lap-mini td, table.lap-tabel th, table.lap-tabel td {
  padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
table.lap-mini thead th, table.lap-tabel thead th {
  background: var(--surface-2); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line-kuat);
}
table.lap-mini tfoot th, table.lap-tabel tfoot th { background: #F1F6F2; border-top: 1px solid var(--line-kuat); font-size: .82rem; }
table.lap-tabel tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.lap-mini .angka, .lap-tabel .angka { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lap-mini .tengah, .lap-tabel .tengah { text-align: center; }
.lap-kosong { text-align: center; color: var(--muted); font-style: italic; padding: 10px 8px; }
.lap-sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.kol-tgl { width: 76px; white-space: nowrap; }
.kol-uang { width: 108px; }

.lap-terbilang { margin-top: 10px; font-size: .82rem; color: var(--ink-2); font-style: italic; }

.lap-ttd { display: flex; justify-content: space-between; gap: 40px; margin-top: 20px; }
.lap-ttd-kolom { flex: 1; max-width: 240px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lap-ttd-kolom:last-child { margin-left: auto; }
.lap-ttd-ruang { height: 48px; }
.lap-ttd-kolom strong {
  font-size: .86rem; border-bottom: 1px solid var(--ink-2); padding: 0 10px 2px;
  min-width: 150px; max-width: 100%; overflow-wrap: anywhere;
}

.lap-catatan { margin-top: 16px; padding-top: 9px; border-top: 1px dashed var(--line-kuat); font-size: .72rem; color: var(--muted); font-style: italic; }

@media screen and (max-width: 760px) {
  .lap-dua { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lap-ringkas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lap-sheet { padding: 22px 16px; border-radius: 12px; }
  .lap-kop { flex-wrap: wrap; }
  .lap-kop-kanan { text-align: left; }
  .lap-ttd { gap: 16px; }
  .lap-ttd-kolom strong { min-width: 0; font-size: .78rem; }
  /* tabel rincian sudah bisa digeser mendatar (aturan global di atas) */
  .lap-ttd { flex-wrap: wrap; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm 14mm; }
  body.lap-body { background: #fff; padding: 0; margin: 0; }
  .lap-bar, .no-print { display: none !important; }
  .lap-sheet {
    max-width: none; width: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none;
    padding: 0; font-size: 9.2pt;
  }
  .lap-kop { padding-bottom: 8px; border-bottom-width: 1.4px; }
  .lap-kop-logo img { max-height: 40px; }
  .lap-kop-teks h2 { font-size: 12pt; }
  .lap-kop-teks p { font-size: 7.6pt; line-height: 1.4; }
  .lap-kop-kanan strong { font-size: 9pt; }
  .lap-judul { margin: 10px 0 10px; }
  .lap-judul h1 { font-size: 13pt; }
  .lap-judul p { font-size: 8pt; }
  .lap-ringkas { gap: 8px; margin-bottom: 12px; }
  .lap-ringkas-sel { padding: 8px 10px; border-radius: 8px; }
  .lap-ringkas-sel strong { font-size: 9.6pt; }
  .kw-label-kecil { font-size: 6.4pt; }
  .lap-h3 { font-size: 9pt; margin: 12px 0 6px; }
  .lap-dua { gap: 14px; }
  table.lap-mini, table.lap-tabel { font-size: 8.2pt; }
  table.lap-mini th, table.lap-mini td, table.lap-tabel th, table.lap-tabel td { padding: 4px 6px; }
  table.lap-mini thead th, table.lap-tabel thead th { font-size: 6.8pt; }
  .lap-tabel thead { display: table-header-group; }  /* judul kolom diulang tiap halaman */
  .lap-tabel tr { break-inside: avoid; }
  .lap-kosong { padding: 6px; }
  .lap-terbilang { font-size: 8pt; margin-top: 7px; }
  .lap-ttd { margin-top: 14px; break-inside: avoid; }
  .lap-ttd-ruang { height: 38px; }
  .lap-catatan { font-size: 7pt; margin-top: 10px; break-inside: avoid; }
  .lap-terbilang { break-inside: avoid; }
  .lap-ringkas-sel.is-akhir, .lap-ringkas-sel.is-masuk, .lap-ringkas-sel.is-keluar,
  table.lap-mini thead th, table.lap-tabel thead th, table.lap-tabel tfoot th {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
