/* =====================================================================
   e-Rapat PTUN Kupang
   Palet: hijau pengadilan + emas lambang, kertas abu kehijauan.
   ===================================================================== */
:root {
  --h-900: #0F352B;
  --h-800: #154536;
  --h-700: #1F5B47;
  --h-500: #3E7C66;
  --h-100: #E2EDE7;
  --h-50:  #F0F5F2;
  --emas: #C29A45;
  --emas-200: #E9D6A6;
  --emas-50: #FAF4E4;
  --kertas: #F5F7F4;
  --putih: #FFFFFF;
  --tinta: #1A231F;
  --tinta-2: #46524C;
  --tinta-3: #77837D;
  --garis: #DCE3DE;
  --merah: #9B3328;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --bayang: 0 1px 2px rgba(15, 53, 43, .06), 0 8px 24px -12px rgba(15, 53, 43, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--kertas);
  font-size: .95rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--h-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--h-900); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; color: var(--h-900); }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.text-ink-2 { color: var(--tinta-2) !important; }
.text-ink-3 { color: var(--tinta-3) !important; }
.small-label { font-size: .78rem; color: var(--tinta-3); font-weight: 600; }
:focus-visible { outline: 3px solid var(--emas); outline-offset: 2px; }

/* ---------- tombol & form ---------- */
.btn { font-weight: 600; border-radius: var(--r-sm); padding: .55rem 1rem; }
.btn-sm { padding: .32rem .7rem; font-size: .82rem; }
.btn-hijau { background: var(--h-700); border-color: var(--h-700); color: #fff; }
.btn-hijau:hover, .btn-hijau:focus { background: var(--h-900); border-color: var(--h-900); color: #fff; }
.btn-emas { background: var(--emas); border-color: var(--emas); color: var(--h-900); }
.btn-emas:hover { background: #ad8636; border-color: #ad8636; color: #fff; }
.btn-garis { background: #fff; border: 1px solid var(--garis); color: var(--tinta); }
.btn-garis:hover { border-color: var(--h-500); color: var(--h-900); background: var(--h-50); }
.btn-hapus { background: transparent; border: 1px solid transparent; color: var(--merah); }
.btn-hapus:hover { background: #F8E8E5; color: var(--merah); }
.form-control, .form-select { border-color: var(--garis); border-radius: var(--r-sm); padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--h-500); box-shadow: 0 0 0 .2rem rgba(62, 124, 102, .18); }
.form-label { font-weight: 600; font-size: .85rem; color: var(--tinta-2); margin-bottom: .3rem; }
.form-text { color: var(--tinta-3); font-size: .78rem; }
.form-check-input:checked { background-color: var(--h-700); border-color: var(--h-700); }

/* ---------- penanda ---------- */
.jenis-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 700; color: var(--tinta-2);
}
.jenis-tag::before { content: ""; width: .55rem; height: .55rem; border-radius: 2px; background: var(--c, var(--h-700)); }
.status { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; }
.st-jadwal { background: var(--emas-50); color: #7A5B17; box-shadow: inset 0 0 0 1px var(--emas-200); }
.st-selesai { background: var(--h-100); color: var(--h-800); }
.st-batal { background: #EEE; color: #666; text-decoration: line-through; }
.kel { display: inline-flex; gap: 3px; vertical-align: middle; }
.kel i { width: 18px; height: 6px; border-radius: 2px; background: var(--garis); }
.kel i.on { background: var(--h-500); }

/* =====================================================================
   PUBLIK
   ===================================================================== */
.pub-nav {
  background: var(--h-900); color: #fff;
  position: sticky; top: 0; z-index: 30;
  border-bottom: 3px solid var(--emas);
}
.pub-nav .wrap { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  background: var(--emas); color: var(--h-900); font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
}
.brand-logo { width: 40px; height: auto; flex: none; display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.brand b { display: block; font-size: .98rem; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--emas-200); }
.pub-nav nav { display: flex; gap: .2rem; margin-left: auto; }
.pub-nav nav a {
  color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 600; font-size: .88rem;
  padding: .45rem .8rem; border-radius: var(--r-sm);
}
.pub-nav nav a:hover, .pub-nav nav a.aktif { color: #fff; background: rgba(255, 255, 255, .08); }
.pub-nav nav a.masuk { border: 1px solid rgba(233, 214, 166, .5); color: var(--emas-200); margin-left: .4rem; }
@media (max-width: 767px) {
  .pub-nav nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--h-900); justify-content: space-around;
    padding: .4rem env(safe-area-inset-right) calc(.4rem + env(safe-area-inset-bottom)) env(safe-area-inset-left); border-top: 1px solid rgba(255,255,255,.1); }
  .pub-nav nav a { display: flex; flex-direction: column; align-items: center; font-size: .7rem; padding: .3rem .5rem; }
  .pub-nav nav a i { font-size: 1.15rem; }
  .pub-nav nav a.masuk { border: 0; margin: 0; }
  body.publik { padding-bottom: 70px; }
}
@media (min-width: 768px) { .pub-nav nav a i { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--h-900); color: #fff; padding: 3.2rem 0 0; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: var(--kertas);
  border-radius: 28px 28px 0 0;
}
.hero h1 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; max-width: 14ch; }
.hero p.lead { color: rgba(255, 255, 255, .72); font-size: 1.02rem; max-width: 44ch; }
.cari-besar { position: relative; max-width: 560px; }
.cari-besar input {
  width: 100%; border: 0; border-radius: var(--r); padding: 1rem 8.5rem 1rem 3rem; font-size: 1rem;
  background: #fff; color: var(--tinta); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}
.cari-besar > i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--tinta-3); font-size: 1.1rem; }
.cari-besar button { position: absolute; right: .45rem; top: .45rem; bottom: .45rem; }
.pintas { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.pintas a {
  color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .18); padding: .25rem .7rem; border-radius: 99px;
}
.pintas a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* tiket rapat berikutnya */
.tiket {
  position: relative; z-index: 2; background: #fff; color: var(--tinta); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 128px 1fr; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55);
}
.tiket-tgl {
  background: var(--emas); color: var(--h-900); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.2rem .5rem; position: relative;
}
.tiket-tgl::after {
  content: ""; position: absolute; right: -1px; top: 12px; bottom: 12px;
  border-right: 2px dashed rgba(255, 255, 255, .9);
}
.tiket-tgl .hari { font-size: .8rem; font-weight: 700; }
.tiket-tgl .angka { font-family: var(--serif); font-size: 4.2rem; line-height: .95; font-weight: 600; }
.tiket-tgl .bln { font-size: .8rem; font-weight: 700; }
.tiket-isi { padding: 1.2rem 1.4rem; }
.tiket-isi .judul { font-weight: 700; font-size: 1.08rem; color: var(--h-900); line-height: 1.3; margin: .35rem 0 .7rem; }
.tiket-isi .meta { display: grid; gap: .25rem; font-size: .86rem; color: var(--tinta-2); }
.tiket-isi .meta i { color: var(--h-500); width: 1.2rem; display: inline-block; }
.hitung { font-size: .78rem; font-weight: 700; color: var(--h-700); background: var(--h-50); padding: .15rem .55rem; border-radius: 99px; }
.tiket-kosong { padding: 1.6rem; grid-column: 1 / -1; }

/* lembar agenda bulan ini: elemen khas halaman */
.agenda-strip { position: relative; z-index: 2; margin-top: 2.2rem; }
.agenda-strip .kepala { display: flex; align-items: baseline; justify-content: space-between; color: rgba(255, 255, 255, .78); font-size: .85rem; margin-bottom: .5rem; }
.agenda-strip .kepala b { color: #fff; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.agenda-strip { scroll-margin-top: 90px; }
.agenda-strip .kepala { align-items: center; gap: .5rem; flex-wrap: wrap; }
.agenda-strip .geser-bulan { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.agenda-strip .geser-bulan b { min-width: 8.5rem; text-align: center; }
.agenda-strip .tbl-bulan {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 .55rem;
  border-radius: 999px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font-size: .8rem; transition: background .15s;
}
.agenda-strip .tbl-bulan:hover, .agenda-strip .tbl-bulan:focus-visible { background: rgba(194, 154, 69, .35); color: #fff; }
.agenda-strip .tbl-bulan.teks { font-size: .75rem; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(34px, 1fr); gap: 4px;
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;
}
.strip .d {
  border-radius: 8px; padding: .45rem 0 .5rem; text-align: center; background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .55); font-size: .72rem; text-decoration: none; position: relative; min-height: 64px;
}
.strip .d b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: rgba(255, 255, 255, .85); line-height: 1.2; }
.strip .d.libur b { color: rgba(233, 214, 166, .55); }
.strip .d.hari-ini { background: rgba(194, 154, 69, .22); box-shadow: inset 0 0 0 1px var(--emas); }
.strip .d.ada { background: #fff; color: var(--tinta-3); }
.strip .d.ada b { color: var(--h-900); }
.strip .d .titik { display: flex; justify-content: center; gap: 3px; margin-top: 4px; }
.strip .d .titik span { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.strip .d.ada:hover { transform: translateY(-2px); transition: transform .15s; }

@media (prefers-reduced-motion: no-preference) {
  .muncul .tiket { animation: naik .7s cubic-bezier(.2, .7, .2, 1) both .1s; }
  .muncul .tiket-tgl .angka { animation: bilah .6s cubic-bezier(.2, .7, .2, 1) both .45s; }
  .muncul .strip .d { animation: naik .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.35s + var(--i) * 18ms); }
}
@keyframes naik { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bilah { from { opacity: 0; transform: translateY(-.35em) scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- konten publik ---------- */
.bagian { padding: 2.4rem 0; }
.bagian-kepala { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.bagian-kepala h2 { font-size: 1.35rem; margin: 0; }
.bagian-kepala a { font-weight: 600; font-size: .88rem; white-space: nowrap; }

.angka-ringkas { display: grid; grid-template-columns: repeat(var(--kolom, 4), 1fr); border: 1px solid var(--garis); border-radius: var(--r); background: #fff; }
.angka-ringkas div { padding: 1rem 1.2rem; border-left: 1px solid var(--garis); }
.angka-ringkas div:first-child { border-left: 0; }
.angka-ringkas b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--h-900); line-height: 1.1; }
.angka-ringkas span { font-size: .8rem; color: var(--tinta-3); }
@media (max-width: 767px) {
  .angka-ringkas { grid-template-columns: repeat(min(2, var(--kolom, 4)), 1fr); }
  .angka-ringkas div:nth-child(3) { border-left: 0; }
  .angka-ringkas div:nth-child(n+3) { border-top: 1px solid var(--garis); }
}

/* baris arsip rapat */
.arsip { background: #fff; border: 1px solid var(--garis); border-radius: var(--r); overflow: hidden; }
.arsip-baris {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; align-items: center;
  padding: .95rem 1.2rem; border-top: 1px solid var(--garis); text-decoration: none; color: inherit;
}
.arsip-baris:first-child { border-top: 0; }
.arsip-baris:hover { background: var(--h-50); color: inherit; }
.arsip-tgl { text-align: center; border-right: 1px solid var(--garis); padding-right: .9rem; }
.arsip-tgl b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--h-900); line-height: 1; }
.arsip-tgl span { font-size: .72rem; color: var(--tinta-3); font-weight: 600; }
.arsip-judul { font-weight: 700; color: var(--h-900); line-height: 1.35; }
.arsip-meta { font-size: .8rem; color: var(--tinta-3); display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin-top: .15rem; }
.dok-ikon { display: flex; gap: .35rem; }
.dok-ikon i {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: .9rem;
  background: var(--kertas); color: #B9C2BD;
}
.dok-ikon i.on { background: var(--h-100); color: var(--h-700); }
@media (max-width: 575px) {
  .arsip-baris { grid-template-columns: 56px 1fr; }
  .arsip-baris .dok-ikon { grid-column: 2; }
}

.jenis-ringkas { display: grid; gap: .6rem; }
.jenis-ringkas a { display: grid; grid-template-columns: 1fr auto; gap: .5rem; text-decoration: none; color: var(--tinta); padding: .2rem 0; }
.jenis-ringkas .bar { grid-column: 1 / -1; height: 6px; background: var(--h-50); border-radius: 3px; overflow: hidden; }
.jenis-ringkas .bar span { display: block; height: 100%; background: var(--c); border-radius: 3px; }

.kalender-wrap { background: #fff; border: 1px solid var(--garis); border-radius: var(--r); padding: 1rem; }
.fc { --fc-border-color: var(--garis); --fc-today-bg-color: var(--emas-50); --fc-button-bg-color: var(--h-700); --fc-button-border-color: var(--h-700);
  --fc-button-hover-bg-color: var(--h-900); --fc-button-active-bg-color: var(--h-900); font-size: .85rem; }
.fc .fc-toolbar-title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--h-900); }
.fc .fc-event { cursor: pointer; border-radius: 4px; padding: 1px 3px; }

.lap-baris { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .9rem 1.1rem; border-top: 1px solid var(--garis); }
.lap-baris:first-child { border-top: 0; }

/* filter */
.saring { background: #fff; border: 1px solid var(--garis); border-radius: var(--r); padding: .9rem; }
.kepala-halaman { background: var(--h-900); color: #fff; padding: 2rem 0 2.6rem; }
.kepala-halaman h1 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 2.1rem; margin: 0; }
.kepala-halaman p { color: rgba(255, 255, 255, .7); margin: .3rem 0 0; }
.tarik-atas { margin-top: -1.6rem; position: relative; }

/* detail rapat publik */
.detail-kepala { background: var(--h-900); color: #fff; padding: 2rem 0 3rem; }
.detail-kepala h1 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; max-width: 30ch; }
.detail-kepala .jenis-tag { color: var(--emas-200); }
.fakta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.fakta div { border-left: 2px solid var(--emas); padding-left: .8rem; }
.fakta small { display: block; color: rgba(255, 255, 255, .6); font-size: .75rem; font-weight: 600; }
.fakta b { font-weight: 600; font-size: .92rem; }

.dok-tab { display: flex; gap: .3rem; border-bottom: 1px solid var(--garis); margin-bottom: 1rem; overflow-x: auto; }
.dok-tab button {
  border: 0; background: none; padding: .7rem .9rem; font-weight: 600; color: var(--tinta-3); border-bottom: 2px solid transparent;
  white-space: nowrap; font-size: .9rem;
}
.dok-tab button.active { color: var(--h-900); border-bottom-color: var(--emas); }
.dok-tab button .n { font-size: .72rem; background: var(--h-50); color: var(--h-700); border-radius: 99px; padding: 0 .45rem; margin-left: .2rem; }
.pratinjau { width: 100%; height: 78vh; min-height: 480px; border: 1px solid var(--garis); border-radius: var(--r); background: #fff; }
.berkas-baris { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--garis); border-radius: var(--r-sm); background: #fff; margin-bottom: .5rem; }
.berkas-baris .ik { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--h-50); color: var(--h-700); font-size: 1.1rem; flex: none; }
.berkas-baris .ik.word { background: #E7EEF8; color: #2B579A; }
.berkas-baris .ik.pdf { background: #F8E8E5; color: var(--merah); }
.galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.galeri a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--h-50); position: relative; }
.galeri img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galeri a:hover img { transform: scale(1.04); }
.kosong { text-align: center; padding: 2.4rem 1rem; color: var(--tinta-3); background: #fff; border: 1px dashed var(--garis); border-radius: var(--r); }
.kosong i { font-size: 1.8rem; color: var(--h-500); display: block; margin-bottom: .4rem; }
.isi-notulen { background: #fff; border: 1px solid var(--garis); border-radius: var(--r); padding: 1.4rem 1.6rem; font-size: .98rem; line-height: 1.75; max-width: 76ch; }
.peserta-daftar { columns: 2 240px; column-gap: 2rem; font-size: .88rem; margin: 0; padding-left: 1.2rem; }
.peserta-daftar li { break-inside: avoid; padding: .15rem 0; }

.pub-footer { background: var(--h-900); color: rgba(255, 255, 255, .65); padding: 2rem 0; margin-top: 3rem; font-size: .85rem; }
.pub-footer b { color: #fff; }

.pagination { --bs-pagination-color: var(--h-700); --bs-pagination-active-bg: var(--h-700); --bs-pagination-active-border-color: var(--h-700); }

/* =====================================================================
   PANEL ADMIN
   ===================================================================== */
.panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sisi {
  background: var(--h-900); color: rgba(255, 255, 255, .75); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 1rem .8rem; overflow-y: auto;
}
.sisi .brand { padding: .3rem .5rem 1.2rem; }
.sisi .grup { font-size: .7rem; font-weight: 700; color: rgba(233, 214, 166, .6); padding: 1rem .7rem .35rem; }
.sisi a.menu {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .78); text-decoration: none; font-weight: 600; font-size: .88rem; position: relative;
}
.sisi a.menu i { font-size: 1.05rem; opacity: .85; }
.sisi a.menu:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sisi a.menu.aktif { background: rgba(255, 255, 255, .09); color: #fff; }
.sisi a.menu.aktif::before { content: ""; position: absolute; left: -.8rem; top: .45rem; bottom: .45rem; width: 3px; background: var(--emas); border-radius: 0 3px 3px 0; }
.sisi .akun { margin-top: auto; padding: .8rem .7rem 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.sisi .akun b { color: #fff; display: block; }
.isi { min-width: 0; }
.atas { display: flex; align-items: center; gap: 1rem; padding: 1rem 2rem; border-bottom: 1px solid var(--garis); background: var(--putih); position: sticky; top: 0; z-index: 20; }
.atas h1 { font-size: 1.2rem; margin: 0; }
.atas .remah { font-size: .78rem; color: var(--tinta-3); }
.konten { padding: 1.6rem 2rem 3rem; max-width: 1280px; }
.toggle-sisi { display: none; }
@media (max-width: 991px) {
  .panel { grid-template-columns: 1fr; }
  .sisi { position: fixed; left: 0; top: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
  .sisi.buka { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .toggle-sisi { display: inline-flex; }
  .atas, .konten { padding-left: 1rem; padding-right: 1rem; }
}

.kartu { background: #fff; border: 1px solid var(--garis); border-radius: var(--r); }
.kartu-kepala { padding: .9rem 1.1rem; border-bottom: 1px solid var(--garis); display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.kartu-kepala h2, .kartu-kepala h3 { font-size: 1rem; margin: 0; }
.kartu-isi { padding: 1.1rem; }
.angka-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
.angka-panel > div { background: #fff; border: 1px solid var(--garis); border-radius: var(--r); padding: 1rem 1.1rem; }
.angka-panel b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--h-900); line-height: 1.1; }
.angka-panel span { font-size: .8rem; color: var(--tinta-3); }

.tabel { width: 100%; font-size: .88rem; }
.tabel th { font-size: .75rem; font-weight: 700; color: var(--tinta-3); padding: .6rem .8rem; border-bottom: 1px solid var(--garis); background: var(--h-50); white-space: nowrap; }
.tabel td { padding: .7rem .8rem; border-bottom: 1px solid var(--garis); vertical-align: middle; }
.tabel tr:last-child td { border-bottom: 0; }
.tabel tbody tr:hover td { background: #FAFCFA; }
.tabel .muted { color: var(--tinta-3); font-size: .8rem; }

.flash { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 100; max-width: 420px; display: grid; gap: .5rem; }
.flash .alert { box-shadow: var(--bayang); border: 0; border-left: 4px solid; margin: 0; font-size: .88rem; }
.flash .alert-success { border-left-color: var(--h-500); background: #fff; color: var(--tinta); }
.flash .alert-danger { border-left-color: var(--merah); background: #fff; color: var(--tinta); }
.flash .alert-info { border-left-color: var(--emas); background: #fff; color: var(--tinta); }
@media (prefers-reduced-motion: no-preference) { .flash .alert { animation: naik .35s both; } }

/* slot dokumen di halaman rapat */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .8rem; }
.slot { border: 1px solid var(--garis); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; }
.slot.lengkap { border-color: #B8D3C6; }
.slot-kepala { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; }
.slot-kepala .ik { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--kertas); color: var(--tinta-3); }
.slot.lengkap .slot-kepala .ik { background: var(--h-100); color: var(--h-700); }
.slot-kepala b { display: block; font-size: .92rem; }
.slot-kepala small { color: var(--tinta-3); font-size: .76rem; }
.slot-isi { padding: 0 1rem .8rem; font-size: .83rem; flex: 1; }
.slot-isi .f { display: flex; align-items: center; gap: .4rem; padding: .3rem 0; border-top: 1px dashed var(--garis); }
.slot-isi .f a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.slot-aksi { padding: .7rem 1rem; border-top: 1px solid var(--garis); display: flex; flex-wrap: wrap; gap: .4rem; background: var(--h-50); border-radius: 0 0 var(--r) var(--r); }

/* pemilih peserta */
.pemilih-mode { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.pemilih-mode button { border: 1px solid var(--garis); background: #fff; border-radius: 99px; padding: .35rem .85rem; font-weight: 600; font-size: .82rem; color: var(--tinta-2); }
.pemilih-mode button.active { background: var(--h-700); border-color: var(--h-700); color: #fff; }
.pemilih-panel { background: var(--h-50); border-radius: var(--r-sm); padding: .8rem; margin-bottom: .8rem; }
.terpilih { max-height: 420px; overflow-y: auto; border: 1px solid var(--garis); border-radius: var(--r-sm); background: #fff; }
.terpilih .p { display: grid; grid-template-columns: 28px 1fr auto; gap: .5rem; align-items: center; padding: .45rem .7rem; border-top: 1px solid var(--garis); font-size: .86rem; }
.terpilih .p:first-child { border-top: 0; }
.terpilih .p .no { color: var(--tinta-3); font-size: .75rem; text-align: right; }
.terpilih .p small { display: block; color: var(--tinta-3); font-size: .75rem; }
.terpilih .p button { border: 0; background: none; color: var(--tinta-3); padding: .1rem .3rem; }
.terpilih .p button:hover { color: var(--merah); }
.terpilih .p.tamu { background: var(--emas-50); }
.ts-wrapper .ts-control { border-color: var(--garis); border-radius: var(--r-sm); padding: .5rem .7rem; }
.ts-dropdown .option small { color: var(--tinta-3); }

.langkah { counter-reset: lk; }
.langkah > .kartu { margin-bottom: 1rem; }
.langkah > .kartu > .kartu-kepala h2::before {
  counter-increment: lk; content: counter(lk); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; background: var(--h-700); color: #fff; font-size: .78rem; margin-right: .55rem; vertical-align: 1px;
}
.sticky-aksi { position: sticky; bottom: 0; background: rgba(245, 247, 244, .92); backdrop-filter: blur(6px); padding: .8rem 0; border-top: 1px solid var(--garis); z-index: 5; }

.ql-toolbar.ql-snow { border-color: var(--garis); border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--h-50); }
.ql-container.ql-snow { border-color: var(--garis); border-radius: 0 0 var(--r-sm) var(--r-sm); font-family: var(--sans); font-size: .95rem; }
.editor { min-height: 360px; background: #fff; }
.editor.pendek { min-height: 160px; }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-sisi { background: var(--h-900); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.login-sisi h1 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1.1; max-width: 13ch; }
.login-form { display: grid; place-items: center; padding: 2rem; }
.login-form form { width: 100%; max-width: 380px; }
@media (max-width: 767px) { .login-wrap { grid-template-columns: 1fr; } .login-sisi { padding: 1.6rem; } .login-sisi h1 { font-size: 1.8rem; } }

/* daftar dari editor notulensi (Quill menandai poin dengan data-list) */
.isi-notulen li[data-list="bullet"] { list-style-type: disc; }
.isi-notulen ol:has(> li[data-list="bullet"]) { padding-left: 1.4rem; }
.isi-notulen .ql-ui { display: none; }
.min-w-0 { min-width: 0; }
.tiket, .tiket:hover { text-decoration: none; color: var(--tinta); }

/* pratinjau PDF (PDF.js) */
.pdf-view { border: 1px solid var(--garis); border-radius: var(--r); background: #E9EDEA; overflow: hidden; }
.pdf-bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; background: #fff; border-bottom: 1px solid var(--garis); font-size: .82rem; color: var(--tinta-3); }
.pdf-halaman { max-height: 78vh; min-height: 320px; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pdf-kanvas { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); max-width: none; }

/* v2: kegiatan */
.st-ikut { background: #E7EEF8; color: #2B579A; }
.isian-khusus { border-left: 3px solid var(--emas); background: var(--emas-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: .9rem 1rem; }
.kelompok-pilih { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.kelompok-pilih a { display: flex; flex-direction: column; gap: .3rem; padding: .8rem; border: 1px solid var(--garis); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--tinta); font-weight: 600; font-size: .85rem; }
.kelompok-pilih a i { font-size: 1.3rem; color: var(--h-500); }
.kelompok-pilih a b { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--h-900); line-height: 1; }
.kelompok-pilih a:hover { border-color: var(--h-500); background: var(--h-50); }
.mode-pilih { display: inline-flex; border: 1px solid var(--garis); border-radius: 99px; padding: 3px; background: #fff; }
.mode-pilih label { padding: .35rem .9rem; border-radius: 99px; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--tinta-2); margin: 0; }
.mode-pilih input { position: absolute; opacity: 0; pointer-events: none; }
.mode-pilih input:checked + label { background: var(--h-700); color: #fff; }
.mode-pilih input:focus-visible + label { outline: 3px solid var(--emas); }
.jenis-tabel td { vertical-align: top; }
.jenis-tabel .dok-cek { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .8rem; }

/* dropdown dengan pencarian (Tom Select) */
.ts-wrapper.single .ts-control { border-color: var(--garis); border-radius: var(--r-sm); padding: .55rem 2rem .55rem .8rem; min-height: 40px; background-color: #fff; }
.ts-wrapper.focus .ts-control { border-color: var(--h-500); box-shadow: 0 0 0 .2rem rgba(62, 124, 102, .18); }
.ts-wrapper.ts-kecil .ts-control { padding: .25rem 1.8rem .25rem .55rem; min-height: 31px; font-size: .82rem; }
.ts-wrapper.disabled .ts-control { background: var(--h-50); opacity: .8; }
.ts-dropdown { min-width: 280px; border-color: var(--garis); border-radius: var(--r-sm); box-shadow: var(--bayang); font-size: .88rem; z-index: 1060; }
.ts-dropdown .active { background: var(--h-50); color: var(--h-900); }
.ts-dropdown .option { white-space: normal; line-height: 1.35; }
.ts-dropdown .no-results { padding: .5rem .8rem; color: var(--tinta-3); }
.saring .ts-wrapper, .kartu-isi .ts-wrapper { width: 100%; }
.modal .ts-dropdown { z-index: 1065; }

/* WhatsApp */
.wa-pratinjau { background: #E7F6E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23cfe6d3'/%3E%3C/svg%3E"); border-radius: var(--r); padding: .9rem; font-size: .85rem; line-height: 1.5; max-height: 330px; overflow: auto; }
.wa-gelembung { background: #fff; border-radius: 8px 8px 8px 2px; padding: .6rem .75rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.qr-wa { display: inline-block; padding: 12px; background: #fff; border: 1px solid var(--garis); border-radius: var(--r); }

/* rekap (v2.4) */
.rekap-bilah { height: 8px; border-radius: 99px; background: var(--h-50); overflow: hidden; min-width: 60px; }
.rekap-bilah span { display: block; height: 100%; border-radius: 99px; background: var(--h-500); }
.rekap-bilah.rendah span { background: #B7791F; }

/* sorotan kegiatan di beranda (v2.4) */
.sorotan { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 190px; gap: .8rem; }
.sorotan:has(> .sorot:only-child) { grid-template-columns: 1fr; grid-auto-rows: 300px; }
.sorotan:has(> .sorot:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
.sorotan:has(> .sorot:nth-child(2):last-child) .sorot.utama,
.sorotan:has(> .sorot:only-child) .sorot.utama { grid-row: span 1; }
.sorot { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--h-900); color: #fff; text-decoration: none; isolation: isolate; }
.sorot.utama { grid-row: span 2; }
.sorot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); z-index: -1; }
.sorot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 22, 0) 35%, rgba(10, 30, 22, .88) 100%); z-index: -1; }
.sorot:hover img, .sorot:focus-visible img { transform: scale(1.05); }
.sorot:focus-visible { outline: 3px solid var(--emas); outline-offset: 2px; }
.sorot-isi { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.sorot .jenis-tag { background: rgba(255, 255, 255, .92); color: var(--tinta); padding: .15rem .55rem; border-radius: 99px; }
.sorot-judul { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sorot.utama .sorot-judul { font-size: 1.5rem; -webkit-line-clamp: 3; }
.sorot-meta { font-size: .78rem; color: rgba(255, 255, 255, .8); }
@media (max-width: 991px) {
  .sorotan { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .sorot.utama { grid-column: span 2; grid-row: span 1; height: 240px; }
}
@media (max-width: 575px) {
  .sorotan { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem; padding-bottom: .4rem; }
  .sorot, .sorot.utama { flex: 0 0 82%; height: 230px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .sorot img { transition: none; } }

/* impor kegiatan (v2.5) */
.impor-galat td { background: #FBEDEA; }
.impor-dup td { background: #FBF5E6; }

/* ---------- beranda v2.7: label dokumen, deret foto, kelengkapan dokumen ---------- */
.pintas a .n { opacity: .65; font-weight: 500; margin-left: .15rem; font-variant-numeric: tabular-nums; }
.dok-label { display: flex; flex-wrap: wrap; gap: .3rem; align-self: center; justify-content: flex-end; max-width: 15rem; }
.dok-label > span { font-size: .72rem; font-weight: 600; line-height: 1.5; padding: .05rem .55rem; border-radius: 99px; white-space: nowrap; }
.dok-label .ada { background: var(--h-100); color: var(--h-800); }
.dok-label .belum { color: var(--merah); border: 1px dashed #D9A59F; text-decoration: line-through; text-decoration-thickness: 1px; }
.tiket .dok-label { justify-content: flex-start; max-width: none; }
@media (max-width: 575px) {
  .arsip-baris .dok-label { grid-column: 2; justify-content: flex-start; max-width: none; }
}
.foto-deret { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.foto-deret a { display: block; text-decoration: none; color: var(--tinta); min-width: 0; }
.foto-deret img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--h-50); display: block; }
.foto-deret span { display: block; font-size: .78rem; font-weight: 600; line-height: 1.3; margin-top: .35rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.foto-deret small { display: block; font-weight: 400; color: var(--tinta-3); }
@media (max-width: 767px) { .foto-deret { grid-template-columns: repeat(2, 1fr); } }
.lengkap-dok { padding: 1.2rem 1.3rem; }
.lengkap-angka { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; color: var(--h-900); line-height: 1.05; font-variant-numeric: tabular-nums; }
.lengkap-dok p { font-size: .84rem; color: var(--tinta-2); margin: .4rem 0 0; }
.lengkap-grafik { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; height: 128px; margin-top: 1rem; }
.lengkap-grafik a { display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; min-width: 0; }
.lengkap-grafik .batang { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.lengkap-grafik i { display: block; width: 100%; }
.lengkap-grafik i.kurang { background: var(--emas); border-radius: 3px 3px 0 0; }
.lengkap-grafik i.ok { background: var(--h-700); }
.lengkap-grafik i.ok:first-child, .lengkap-grafik i.kurang[style^="height:0"] + i.ok { border-radius: 3px 3px 0 0; }
.lengkap-grafik small { font-size: .62rem; color: var(--tinta-3); text-align: center; margin-top: 3px; }
.lengkap-grafik a:hover i.ok { background: var(--h-500); }
.lengkap-kunci { display: flex; gap: 1rem; font-size: .74rem; color: var(--tinta-2); margin-top: .5rem; }
.lengkap-kunci i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.lengkap-kunci i.ok { background: var(--h-700); } .lengkap-kunci i.kurang { background: var(--emas); }
