/* ==========================================================================
   Modul Form (form.php, form-rekap.php, form-hasil.php)
   Nuansa netral mengikuti panel Webinar di halaman HSN.
   ========================================================================== */
/* Latar: semburat tipis biru-hijau-oranye CAN di atas abu kebiruan, agar tidak mono putih */
.fm-page {
  background-color: #f3f6fa;
  background-image:
    radial-gradient(900px 520px at 100% 8%, rgba(46, 125, 50, .12), transparent 62%),
    radial-gradient(820px 560px at 0% 42%, rgba(0, 85, 164, .12), transparent 64%),
    radial-gradient(760px 480px at 100% 82%, rgba(245, 124, 0, .09), transparent 62%),
    linear-gradient(180deg, #f6f8fb 0%, #eef3f8 100%);
  background-attachment: fixed;
}
.fm-hero {
  position: relative; overflow: hidden; color: #fff; padding: 112px 20px 84px;
  background:
    radial-gradient(640px 320px at 92% 110%, rgba(46, 125, 50, .45), transparent 70%),
    linear-gradient(145deg, #0a4a8a 0%, #003366 58%, #00264d 100%);
}
@media (min-width: 768px) { .fm-hero { padding: 156px 24px 104px; } }
.fm-hero::before, .fm-hero::after { content: ""; position: absolute; border-radius: 9999px; pointer-events: none; }
.fm-hero::before { width: 380px; height: 380px; right: -120px; bottom: -170px; background: rgba(255,255,255,.06); }
.fm-hero::after { width: 200px; height: 200px; left: -70px; top: 30px; background: rgba(255,255,255,.05); }
.fm-hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.fm-kicker { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 9999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.fm-title { margin-top: 14px; font-size: clamp(1.5rem, 4.2vw, 2.35rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.fm-sub { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #ffd27f; font-weight: 600; }
.fm-sub:empty { display: none; }

.fm-wrap { position: relative; z-index: 2; max-width: 760px; margin: -56px auto 0; padding: 0 16px 56px; }
.fm-wrap-lebar { max-width: 1120px; }
.fm-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 10px 30px -18px rgba(15,23,42,.25); padding: 22px 18px; }
@media (min-width: 640px) { .fm-card { padding: 28px 30px; } }
.fm-card + .fm-card { margin-top: 16px; }
.fm-desc { font-size: 15px; line-height: 1.65; color: #334155; }
.fm-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: #64748b; }
.fm-note b { color: #dc2626; }

/* Bagian */
.fm-bagian-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid #e2e8f0; }
.fm-bagian-no { flex: none; width: 32px; height: 32px; border-radius: 10px; background: #003366; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.fm-bagian-judul { font-size: 18px; font-weight: 800; color: #0f172a; line-height: 1.3; padding-top: 4px; }
.fm-bagian-desc { margin-top: 4px; font-size: 14px; color: #475569; line-height: 1.55; }

/* Soal */
.fm-soal { padding: 18px 0 4px; scroll-margin-top: 110px; }
.fm-label { display: block; font-size: 15.5px; font-weight: 700; color: #0f172a; line-height: 1.4; }
.fm-wajib { color: #dc2626; margin-left: 2px; }
.fm-petunjuk { margin-top: 3px; font-size: 13px; color: #64748b; line-height: 1.5; }
.fm-ctrl { margin-top: 10px; }
.fm-input {
  box-sizing: border-box;
  width: 100%; border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 12px 14px; font-size: 16px; color: #0f172a; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.fm-input:focus { outline: none; border-color: #0055a4; box-shadow: 0 0 0 4px rgba(0,85,164,.14); }
textarea.fm-input { min-height: 112px; resize: vertical; line-height: 1.5; }
.fm-hitung { margin-top: 4px; text-align: right; font-size: 12px; color: #94a3b8; }
.fm-galat { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: #dc2626; }
.fm-soal.is-galat .fm-galat { display: block; }
.fm-soal.is-galat .fm-input { border-color: #dc2626; }
.fm-soal.is-galat .fm-opsi { border-color: #fca5a5; }

/* Pilihan / centang */
.fm-opsi-list { display: grid; gap: 8px; }
.fm-opsi { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-size: 15px; color: #1e293b; transition: border-color .15s, background .15s; }
.fm-opsi:hover { border-color: #94a3b8; }
.fm-opsi input { width: 20px; height: 20px; flex: none; accent-color: #003366; }
.fm-opsi:has(input:checked) { border-color: #003366; background: #eff6ff; font-weight: 600; }
.fm-opsi:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0,85,164,.18); }

/* Skala */
.fm-skala { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 6px; }
.fm-skala-btn {
  min-height: 52px; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 18px; font-weight: 800; color: #334155; cursor: pointer;
  transition: transform .1s, border-color .15s, background .15s, color .15s;
}
.fm-skala-btn:hover { border-color: #0055a4; }
.fm-skala-btn:active { transform: scale(.96); }
.fm-skala-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,85,164,.2); }
.fm-skala-btn[aria-checked="true"] { background: #003366; border-color: #003366; color: #fff; }
.fm-skala-ujung { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: #64748b; }
.fm-skala-pilih { margin-top: 6px; font-size: 13px; font-weight: 700; color: #003366; min-height: 18px; }
.fm-soal.is-galat .fm-skala-btn { border-color: #fca5a5; }

/* Keterangan kecil di atas pilihan (batas centang) */
.fm-hint { margin: -2px 0 8px; font-size: 13px; font-weight: 600; color: #0055a4; }
.fm-opsi.is-nonaktif { opacity: .5; cursor: not-allowed; }
.fm-opsi.is-nonaktif input { cursor: not-allowed; }

/* Pilihan "Lainnya" dengan kolom teks */
.fm-opsi-lainnya { flex-wrap: wrap; }
.fm-lainnya-nama { flex: none; }
.fm-opsi .fm-lainnya-isi { flex: 1 1 140px; min-width: 0; width: auto; height: auto; padding: 8px 12px; font-size: 15px; font-weight: 400; opacity: .6; accent-color: auto; }
.fm-opsi-lainnya.is-aktif .fm-lainnya-isi { opacity: 1; border-color: #0055a4; }

/* Angka dengan satuan sebagai akhiran */
.fm-angka { display: flex; align-items: stretch; max-width: 100%; }
.fm-angka .fm-input { min-width: 0; }
.fm-angka.ada-satuan .fm-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fm-satuan { flex: none; display: flex; align-items: center; padding: 0 14px; border: 1.5px solid #cbd5e1; border-left: 0; border-radius: 0 8px 8px 0; background: #f1f5f9; color: #475569; font-size: 15px; font-weight: 600; }
.fm-soal.is-galat .fm-satuan { border-color: #dc2626; }
input[type="date"].fm-input, input[type="time"].fm-input { min-height: 48px; box-sizing: border-box; min-width: 0; max-width: 100%; }
@media (min-width: 640px) { input[type="date"].fm-input, input[type="time"].fm-input { max-width: 260px; } }

/* Rating bintang */
.fm-rating { display: flex; flex-wrap: wrap; gap: 2px; }
.fm-bintang { width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: #cbd5e1; cursor: pointer; transition: transform .1s, color .15s; }
.fm-bintang svg { width: 100%; height: 100%; fill: transparent; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.fm-bintang.is-isi { color: #f59e0b; }
.fm-bintang.is-isi svg { fill: currentColor; }
.fm-bintang:hover { transform: scale(1.12); color: #f59e0b; }
.fm-bintang:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,85,164,.2); }
.fm-rating-info { margin-top: 4px; min-height: 18px; font-size: 13px; font-weight: 700; color: #003366; }
.fm-soal.is-galat .fm-bintang:not(.is-isi) { color: #fca5a5; }

/* Grid pilihan / centang: tabel di layar lebar, kartu per baris di HP */
.fm-grid-wrap { max-width: 100%; }
.fm-grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.fm-grid th, .fm-grid td { padding: 8px 6px; text-align: center; border-bottom: 1px solid #e2e8f0; overflow-wrap: anywhere; }
.fm-grid thead th { font-size: 13px; font-weight: 700; color: #334155; vertical-align: bottom; }
.fm-grid .fm-grid-pojok { width: 32%; }
.fm-grid .fm-grid-baris { text-align: left; font-weight: 600; color: #0f172a; }
.fm-grid tbody tr:hover { background: #f8fafc; }
.fm-grid-sel { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; cursor: pointer; }
.fm-grid-sel input { width: 20px; height: 20px; accent-color: #003366; cursor: pointer; }
.fm-grid-sel:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(0,85,164,.18); border-radius: 8px; }
.fm-grid-kol { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fm-soal.is-galat .fm-grid { outline: 1.5px solid #fca5a5; outline-offset: 2px; border-radius: 8px; }
@media (max-width: 639px) {
  .fm-grid, .fm-grid tbody, .fm-grid tr, .fm-grid th, .fm-grid td { display: block; }
  .fm-grid thead { display: none; }
  .fm-grid tr { margin-bottom: 10px; border: 1.5px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
  .fm-grid th, .fm-grid td { border-bottom: 0; padding: 0; text-align: left; }
  .fm-grid .fm-grid-baris { padding: 10px 14px; background: #f1f5f9; font-size: 15px; }
  .fm-grid td + td { border-top: 1px solid #f1f5f9; }
  .fm-grid-sel { justify-content: flex-start; gap: 12px; padding: 8px 14px; min-height: 48px; }
  .fm-grid-sel:has(input:checked) { background: #eff6ff; font-weight: 600; }
  .fm-grid-kol { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 15px; color: #1e293b; }
}

/* Blok informasi (tipe info) */
.fm-info { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.fm-info-ikon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.fm-info-judul { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.fm-info-teks { margin-top: 2px; font-size: 14px; line-height: 1.55; white-space: pre-line; }

/* Unggah berkas */
.fm-unggah { max-width: 100%; }
.fm-unggah-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fm-unggah-ket { margin-top: 8px; }
.fm-unggah-catatan { margin-top: 6px; font-size: 13px; font-weight: 600; color: #92400e; }
.fm-unggah-pesan { display: none; margin-top: 8px; font-size: 13px; font-weight: 600; color: #dc2626; }
.fm-unggah-pesan.is-tampil { display: block; }
.fm-berkas-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.fm-berkas { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; background: #fff; }
.fm-berkas.is-ok { border-color: #bbf7d0; background: #f0fdf4; }
.fm-berkas.is-galat { border-color: #fecaca; background: #fef2f2; }
.fm-berkas-info { flex: 1; min-width: 0; }
.fm-berkas-nama { display: block; font-size: 14.5px; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-berkas-meta { display: block; margin-top: 1px; font-size: 12.5px; color: #64748b; }
.fm-berkas.is-galat .fm-berkas-meta { color: #b91c1c; font-weight: 600; }
.fm-berkas-bar { height: 4px; margin-top: 6px; border-radius: 9999px; background: #e2e8f0; overflow: hidden; }
.fm-berkas-bar i { display: block; width: 40%; height: 100%; border-radius: 9999px; background: #003366; animation: fm-geser 1.1s ease-in-out infinite; }
@keyframes fm-geser { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.fm-berkas-hapus { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #64748b; cursor: pointer; }
.fm-berkas-hapus svg { width: 18px; height: 18px; }
.fm-berkas-hapus:hover { background: #fee2e2; color: #b91c1c; }
.fm-berkas-hapus:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,85,164,.25); }

/* Tombol — mengikuti tombol modal program di index.php:
   rounded-lg, font-semibold, utama = warna solid + shadow-md, kedua = putih + garis tepi warna tema */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 8px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, opacity .15s, box-shadow .15s, transform .1s;
}
.fm-btn svg { width: 16px; height: 16px; flex: none; }
.fm-btn:active { transform: scale(.98); }
.fm-btn:disabled { opacity: .6; cursor: progress; }
.fm-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0055a4; }
/* utama (solid) */
.fm-btn-utama, .fm-btn-biru, .fm-btn-excel { color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.fm-btn-utama:hover, .fm-btn-biru:hover, .fm-btn-excel:hover { opacity: .9; }
.fm-btn-utama { background: #f57c00; }
.fm-btn-biru { background: #003366; }
.fm-btn-excel { background: #217346; }
.fm-btn-pdf { background: #b91c1c; color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.fm-btn-pdf:hover { opacity: .9; }
/* bukti isian pengisi (form.php) */
.fm-unduh-wadah { margin-top: 20px; }
.fm-unduh { max-width: 100%; }
.fm-unduh-ket { margin-top: 8px; }
.fm-bukti-wadah { margin-top: 12px; }
.fm-tautan-bukti { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; min-height: 36px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: #003366; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.fm-tautan-bukti svg { width: 16px; height: 16px; flex: none; color: #b91c1c; }
.fm-tautan-bukti:hover { color: #0055a4; }
.fm-tautan-bukti:disabled { opacity: .6; cursor: progress; }
.fm-tautan-bukti:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0055a4; border-radius: 4px; }
/* kedua (garis tepi) */
.fm-btn-garis, .fm-btn-merah, .fm-btn-excel-garis { background: #fff; }
.fm-btn-garis:hover, .fm-btn-merah:hover, .fm-btn-excel-garis:hover { background: #f9fafb; }
.fm-btn-garis { color: #003366; border-color: #003366; }
.fm-btn-merah { color: #dc2626; border-color: #dc2626; }
.fm-btn-excel-garis { color: #217346; border-color: #217346; }
.fm-btn-kecil { min-height: 40px; padding: 0 14px; font-size: 14px; }
.fm-kirim { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
@media (min-width: 640px) { .fm-kirim { flex-direction: row; align-items: center; justify-content: space-between; } }
.fm-alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.fm-alert-merah { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.fm-alert-kuning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.fm-alert-hijau { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Status penuh (tutup / selesai / galat) */
.fm-state { text-align: center; padding: 22px 6px; }
.fm-state-ico { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.fm-state-ico svg { width: 36px; height: 36px; }
.fm-state h2 { font-size: 22px; font-weight: 800; color: #0f172a; }
.fm-state p { margin-top: 8px; font-size: 15px; color: #475569; line-height: 1.6; }
.fm-nomor { display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 14px; background: #f1f5f9; font-size: 14px; color: #475569; }
.fm-nomor b { display: block; font-size: 24px; color: #003366; letter-spacing: .04em; }
.fm-spin { width: 36px; height: 36px; border-radius: 9999px; border: 4px solid #e2e8f0; border-top-color: #003366; animation: fm-putar .8s linear infinite; margin: 0 auto; }
@keyframes fm-putar { to { transform: rotate(360deg); } }

.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rekap (panitia & publik) ---------- */
.rk-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .rk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rk-tile { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; min-width: 0; }
.rk-tile-l { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.rk-tile-v { margin-top: 4px; font-size: 30px; font-weight: 800; color: #0f172a; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rk-tile-s { margin-top: 2px; font-size: 12px; color: #64748b; }
.rk-h { font-size: 17px; font-weight: 800; color: #0f172a; }
.rk-sub { font-size: 13px; color: #64748b; margin-top: 2px; }
.rk-ring { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .rk-ring { grid-template-columns: 1fr 1fr; } }
.rk-q { min-width: 0; }
.rk-q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rk-q-l { font-weight: 700; font-size: 14.5px; color: #0f172a; line-height: 1.35; }
.rk-rata { flex: none; font-weight: 800; font-size: 22px; color: #003366; font-variant-numeric: tabular-nums; }
.rk-rata small { font-size: 12px; font-weight: 600; color: #64748b; }
.rk-bar { display: grid; grid-template-columns: minmax(84px, 38%) 1fr 64px; gap: 8px; align-items: center; margin-top: 7px; font-size: 13px; }
.rk-bar-l { color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-bar-t { height: 12px; border-radius: 6px; background: #f1f5f9; overflow: hidden; }
.rk-bar-f { height: 100%; border-radius: 0 6px 6px 0; background: #0055a4; }
.rk-bar-n { text-align: right; color: #475569; font-variant-numeric: tabular-nums; }

.rk-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9999px; font-size: 13px; font-weight: 800; }
.rk-status::before { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: currentColor; }
.rk-status.is-buka { background: #dcfce7; color: #15803d; }
.rk-status.is-tutup { background: #fee2e2; color: #b91c1c; }
.rk-mode { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rk-mode label { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; color: #334155; }
.rk-mode label:has(input:checked) { border-color: #003366; background: #eff6ff; color: #003366; }
.rk-mode input { accent-color: #003366; }
.rk-link { display: flex; gap: 8px; align-items: stretch; }
.rk-link input { flex: 1; min-width: 0; font-size: 14px; }
.rk-qr { width: 168px; height: 168px; padding: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; flex: none; }
.rk-qr img, .rk-qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }

/* ---------- Tabel daftar isian ---------- */
.rk-tabel-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 10px 30px -18px rgba(15,23,42,.25); overflow: hidden; }
.rk-tabel-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; }
.rk-cari { position: relative; flex: 1 1 280px; max-width: 420px; }
.rk-cari svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.rk-cari input { width: 100%; min-height: 40px; padding: 8px 12px 8px 36px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #f8fafc; }
.rk-cari input:focus { outline: none; background: #fff; border-color: #0055a4; box-shadow: 0 0 0 3px rgba(0,85,164,.14); }
.rk-tabel-wrap { overflow: auto; max-height: 620px; overscroll-behavior: contain; }
.rk-tabel { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.rk-tabel th {
  position: sticky; top: 0; z-index: 2; background: #f8fafc; text-align: left; padding: 11px 14px; border-bottom: 1px solid #e2e8f0;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; white-space: nowrap;
}
.rk-tabel td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; color: #1e293b; vertical-align: top; background: #fff; }
.rk-tabel tbody tr:nth-child(even) td { background: #fbfcfe; }
.rk-tabel tbody tr:hover td { background: #eff6ff; }
.rk-tabel tbody tr:last-child td { border-bottom: 0; }
/* kolom No menempel di kiri saat digeser */
.rk-tabel th:first-child, .rk-tabel td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: inset -1px 0 0 #e2e8f0; }
.rk-tabel th:first-child { z-index: 3; }
.rk-c-no { white-space: nowrap; font-weight: 700; color: #003366; font-variant-numeric: tabular-nums; }
.rk-c-waktu { white-space: nowrap; color: #64748b; font-variant-numeric: tabular-nums; }
.rk-c-waktu b { display: block; color: #1e293b; font-weight: 600; }
.rk-c-nama { min-width: 180px; font-weight: 600; }
.rk-c-email { white-space: nowrap; color: #475569; }
.rk-c-teks { min-width: 170px; max-width: 260px; }
.rk-c-panjang { min-width: 220px; max-width: 320px; color: #475569; }
.rk-c-panjang span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk-c-tengah { text-align: center; }
.rk-tabel th.rk-c-tengah { text-align: center; }
.rk-kosong { color: #cbd5e1; }
.rk-chip { display: inline-block; padding: 2px 10px; border-radius: 9999px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rk-chip-ulang { background: #fef3c7; color: #92400e; }
.rk-nilai { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-nilai.n-tinggi { background: #dcfce7; color: #166534; }
.rk-nilai.n-sedang { background: #fef3c7; color: #92400e; }
.rk-nilai.n-rendah { background: #fee2e2; color: #991b1b; }
.rk-tabel-empty { padding: 36px 16px !important; text-align: center; color: #64748b; }
.rk-tabel-foot { padding: 10px 16px; border-top: 1px solid #e2e8f0; font-size: 12.5px; color: #64748b; background: #f8fafc; }

/* Scrollbar halus (tabel & area gulir modul form) */
.rk-tabel-wrap { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.rk-tabel-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.rk-tabel-wrap::-webkit-scrollbar-track { background: transparent; }
.rk-tabel-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; border: 3px solid #fff; }
.rk-tabel-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.rk-tabel-wrap::-webkit-scrollbar-corner { background: transparent; }

/* Layar QR penuh (ditayangkan di Zoom) */
.rk-tayang { position: fixed; inset: 0; z-index: 100; background: #003366; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; text-align: center; }
.rk-tayang .rk-qr { width: min(62vh, 80vw); height: min(62vh, 80vw); border-radius: 20px; padding: 16px; }
.rk-tayang-judul { font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 800; max-width: 1000px; line-height: 1.2; }
.rk-tayang-url { font-size: clamp(1rem, 2.2vw, 1.6rem); font-weight: 700; color: #ffd27f; word-break: break-all; }
.rk-tayang-tutup { position: absolute; top: 16px; right: 16px; }
.rk-ring > .fm-card, .rk-grid > .fm-card { margin-top: 0; }
.rk-sec { margin-top: 28px; }
.rk-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rk-dua { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .rk-dua { grid-template-columns: 1fr 1fr; } }
.rk-dua > .fm-card { margin-top: 0; }
.rk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#rkPilih { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.rk-row > .rk-row { min-width: 0; max-width: 100%; }
.rk-lbl { display: block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 4px; }
@media (max-width: 639px) { .rk-sec-head > .rk-row { width: 100%; } .rk-sec-head > .rk-row .fm-btn { flex: 1 1 100%; } }
.rk-tabel th { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.rk-tabel th.rk-c-tengah { max-width: 170px; }

/* Editor shortlink */
.rk-alias { margin-top: 14px; }
.rk-alias-row { display: flex; gap: 8px; align-items: stretch; }
.rk-alias-in { flex: 1; min-width: 0; display: flex; align-items: center; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.rk-alias-in:focus-within { border-color: #0055a4; box-shadow: 0 0 0 3px rgba(0,85,164,.14); }
.rk-alias-pre { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px 0 12px; font-size: 14px; color: #64748b; }
.rk-alias-in input { flex: 1; min-width: 60px; border: 0; outline: none; padding: 9px 12px 9px 0; font-size: 14px; font-weight: 700; color: #003366; background: transparent; }
/* Kartu pembuka ada di luar <form>: beri jarak yang sama dengan jarak antarkartu */
.fm-wrap > form { margin-top: 16px; }

/* ---------- Rekap di HP: kolom grid tidak boleh didorong melebar oleh isinya ---------- */
.rk-dua, .rk-ring { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rk-dua, .rk-ring { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rk-dua > *, .rk-ring > *, .rk-grid > *, .rk-sec, .rk-tabel-card { min-width: 0; }
@media (max-width: 639px) {
  .rk-dua .fm-card { padding: 18px 16px; }
  .rk-dua .rk-qr { align-self: center; }
  .rk-dua .flex-1.min-w-0 > .rk-row .fm-btn { flex: 1 1 100%; }
  .rk-mode label { font-size: 13px; gap: 4px; }
  .rk-alias-pre { max-width: 48%; font-size: 13px; }
}
