/* =========================================================================
   Survei Kepuasan Pelanggan Bengkel
   Gaya dasar mengikuti template awal: latar abu muda, kartu putih bergaris
   tegas, aksen biru. Tanpa gradasi berlebihan dan tanpa emoji.
   ========================================================================= */

:root {
  --biru: #2b54c8;
  --biru-gelap: #2246a8;
  --biru-muda: #eef2fb;
  --teks: #16192b;
  --teks-lembut: #6b7280;
  --teks-samar: #9aa1ae;
  --garis: #e3e6ee;
  --garis-tegas: #1c1f2e;
  --latar: #f4f5f8;
  --merah: #c02626;
  --hijau: #1f8a4c;
  --kuning: #c47f0a;
  --radius: 26px;
  --radius-kecil: 12px;
}

* { box-sizing: border-box; }

/* Aturan .tombol/.hitung-foto memakai display, yang mengalahkan aturan
   [hidden] bawaan peramban. Tanpa baris ini tombol "Kembali" tetap terlihat
   pada pertanyaan pertama. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--latar);
  color: var(--teks);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.panggung {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.panggung-rekap { align-items: flex-start; }

/* --- Kartu --------------------------------------------------------------- */

.kartu {
  background: #fff;
  width: 100%;
  max-width: 420px;
  min-height: min(720px, calc(100vh - 48px));
  border: 2px solid var(--garis-tegas);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 14px 34px -22px rgba(28, 31, 46, .55);
}

.isi { flex: 1; }
.aksi { display: flex; flex-direction: column; gap: 10px; }

.lebar { max-width: 1020px; min-height: 0; }

/* --- Tipografi ----------------------------------------------------------- */

h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -.01em;
}

h2 { font-size: 16px; margin: 0; font-weight: 700; }

.keterangan {
  color: var(--teks-lembut);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.keterangan.halus { font-size: 13px; margin-top: 10px; }

.label-atas {
  letter-spacing: 2.5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--teks-lembut);
  margin: 0 0 20px;
}

/* Baris merek + tombol login pada halaman sambutan. */
.kepala-sambutan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.kepala-sambutan .label-atas { margin: 0; }

.tombol-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1.5px solid var(--garis);
  border-radius: 99px;
  background: #fff;
  color: var(--teks-lembut);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}

.tombol-login:hover {
  border-color: var(--biru);
  color: var(--biru);
  background: var(--biru-muda);
}

.tombol-login svg { width: 13px; height: 13px; }

.error {
  color: var(--merah);
  background: #fdeaea;
  border: 1px solid #f3c9c9;
  border-radius: var(--radius-kecil);
  font-size: 13px;
  padding: 10px 12px;
  margin: 0 0 14px;
}

.peringatan {
  background: #fff6e5;
  border: 1px solid #f0dcb4;
  color: #8a5a06;
  border-radius: var(--radius-kecil);
  padding: 11px 13px;
  font-size: 13px;
  margin: 16px 0 0;
}

.peringatan code {
  background: rgba(138, 90, 6, .1);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.kosong {
  color: var(--teks-lembut);
  font-size: 13.5px;
  background: #fafbfd;
  border: 1px dashed var(--garis);
  border-radius: var(--radius-kecil);
  padding: 14px;
  margin: 12px 0 0;
  text-align: center;
}

/* --- Progress ------------------------------------------------------------ */

.progress {
  height: 6px;
  background: var(--garis);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 22px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--biru);
  border-radius: 99px;
  transition: width .3s ease;
}

/* =========================================================================
   HALAMAN SAMBUTAN
   ========================================================================= */

.ilustrasi {
  background: var(--biru-muda);
  border-radius: 14px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--biru);
  margin-bottom: 24px;
}

.ilustrasi svg { width: 38px; height: 38px; }

.daftar-info {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.daftar-info li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--teks);
}

.info-ikon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--biru-muda);
  color: var(--biru);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-ikon svg { width: 15px; height: 15px; }

.sorot-kamera {
  margin-top: 22px;
  border: 1.5px solid var(--garis);
  border-left: 3px solid var(--biru);
  border-radius: var(--radius-kecil);
  padding: 14px 15px;
  background: #fafbfd;
}

.sorot-judul {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--teks);
}

.sorot-ikon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--biru);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sorot-ikon svg { width: 14px; height: 14px; }

.sorot-kamera p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--teks-lembut);
}

.sorot-tips {
  margin-top: 9px !important;
  padding-top: 9px;
  border-top: 1px dashed var(--garis);
  color: var(--biru-gelap) !important;
  font-weight: 600;
}

/* =========================================================================
   HALAMAN LOGIN ADMIN
   ========================================================================= */

.form-login { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

.isian { display: block; }

.isian-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teks-lembut);
  margin-bottom: 6px;
}

.isian input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--garis);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--teks);
  background: #fff;
  transition: border-color .15s;
}

.isian input::placeholder { color: var(--teks-samar); }

.isian input:focus {
  outline: none;
  border-color: var(--biru);
  box-shadow: 0 0 0 3px rgba(43, 84, 200, .12);
}

/* =========================================================================
   TOMBOL
   ========================================================================= */

.tombol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: background .15s, color .15s, border-color .15s;
}

.tombol.utama { background: var(--biru); color: #fff; }
.tombol.utama:hover:not(:disabled) { background: var(--biru-gelap); }

.tombol.garis {
  background: #fff;
  color: var(--biru);
  border: 1.5px solid var(--biru);
}

.tombol.garis:hover:not(:disabled) { background: var(--biru-muda); }

.tombol.teks {
  background: none;
  color: var(--teks-samar);
  font-weight: 500;
  font-size: 13px;
  padding: 6px;
}

.tombol.teks:hover { color: var(--biru); }

.tombol.rapat { width: auto; padding: 10px 16px; font-size: 13.5px; }

.tombol:disabled { opacity: .5; cursor: not-allowed; }

.baris-aksi { display: flex; gap: 10px; }
.baris-aksi .tombol.garis { flex: 0 0 36%; }

/* =========================================================================
   HALAMAN SURVEI - KAMERA
   ========================================================================= */

.panel-kamera { margin-bottom: 2px; }

.bingkai-kamera {
  position: relative;
  height: 184px;
  border-radius: var(--radius-kecil);
  overflow: hidden;
  background: #111;
  border: 1.5px solid var(--garis-tegas);
}

.bingkai-kamera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);   /* efek cermin agar terasa natural */
}

.cincin-wajah {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 136px;
  border: 2px dashed rgba(255, 255, 255, .45);
  border-radius: 50% 50% 46% 46%;
  pointer-events: none;
}

.kilat {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.kilat.nyala { animation: berkedip .4s ease-out; }

@keyframes berkedip {
  from { opacity: .8; }
  to   { opacity: 0; }
}

.lencana-kamera {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(17, 17, 17, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
}

.lencana-kamera .titik {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teks-samar);
}

.lencana-kamera.hidup .titik { background: #35c46a; }
.lencana-kamera.siaga .titik { background: #e3a008; }
.lencana-kamera.mati  .titik { background: #e35050; }

.petunjuk-kamera {
  margin: 9px 2px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--teks-lembut);
  text-align: center;
}

/* --- Progres pertanyaan -------------------------------------------------- */

.baris-progres {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.nomor-soal { font-size: 12.5px; color: var(--teks-lembut); font-weight: 600; }
.nomor-soal b { color: var(--biru); }

.hitung-foto {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teks-lembut);
}

.hitung-foto svg { width: 13px; height: 13px; }

/* --- Pertanyaan dan skala Likert ----------------------------------------- */

.pertanyaan {
  border: 0;
  margin: 0;
  padding: 0;
}

/* <legend> selalu dirender peramban di baris teratas fieldset, jadi label
   aspek dan teks soal dimasukkan ke dalamnya agar urutannya benar. */
.legend-soal {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.label-aspek {
  display: inline-block;
  margin: 0 0 9px;
  padding: 3px 10px;
  background: var(--biru-muda);
  color: var(--biru-gelap);
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.teks-soal {
  display: block;
  padding: 0;
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

.skala {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.bulat { cursor: pointer; }

.bulat input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bulat span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--garis);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  color: var(--teks-lembut);
  transition: background .12s, color .12s, border-color .12s;
}

.bulat:hover span { border-color: var(--biru); color: var(--biru); }

.bulat input:checked + span {
  background: var(--biru);
  border-color: var(--biru);
  color: #fff;
}

.bulat input:focus-visible + span {
  outline: 2px solid var(--biru);
  outline-offset: 2px;
}

.skala-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--teks-samar);
  margin-top: 8px;
}

/* =========================================================================
   HALAMAN TERIMA KASIH
   ========================================================================= */

.kartu-terimakasih {
  text-align: center;
  justify-content: center;
  gap: 0;
}

.centang {
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--biru);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.centang svg { width: 30px; height: 30px; }

.kartu-terimakasih h1 { font-size: 24px; }
.kartu-terimakasih .tombol { margin-top: 30px; }

/* =========================================================================
   HALAMAN DETAIL RESPONDEN (ADMIN)
   ========================================================================= */

.kartu-detail { max-width: 520px; min-height: 0; }

.kepala-detail { margin-bottom: 4px; }

.tautan-balik {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teks-lembut);
  text-decoration: none;
  margin-bottom: 14px;
}

.tautan-balik:hover { color: var(--biru); }
.tautan-balik svg { width: 14px; height: 14px; }

.blok {
  border: 1.5px solid var(--garis);
  border-radius: var(--radius-kecil);
  padding: 16px;
  margin-bottom: 12px;
}

.blok-kepala {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.blok-kepala small { display: block; color: var(--teks-lembut); font-size: 12px; }

.blok-ikon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--biru-muda);
  color: var(--biru);
}

.blok-ikon svg { width: 18px; height: 18px; }

.sorot-nilai { display: flex; align-items: center; gap: 16px; }

.meteran { position: relative; flex: 0 0 100px; width: 100px; height: 100px; }
.meteran svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meteran-alur { fill: none; stroke: var(--garis); stroke-width: 11; }

.meteran-isi {
  fill: none;
  stroke: var(--biru);
  stroke-width: 11;
  stroke-linecap: round;
}

.meteran-teks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.meteran-teks b { font-size: 22px; font-weight: 700; }
.meteran-teks small { font-size: 10px; color: var(--teks-samar); }

.sorot-rincian { flex: 1; min-width: 0; }
.sorot-rincian.penuh { flex: 1 1 100%; }

.sorot-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--teks-samar);
  margin-bottom: 7px;
}

.sorot-catatan { margin: 9px 0 0; font-size: 12.5px; color: var(--teks-lembut); line-height: 1.6; }

.lencana {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid;
}

.lencana.hijau  { color: var(--hijau);  border-color: #bfe3cd; background: #f0faf4; }
.lencana.kuning { color: var(--kuning); border-color: #f0dcb4; background: #fff8ec; }
.lencana.merah  { color: var(--merah);  border-color: #f3c9c9; background: #fdf2f2; }
.lencana.abu    { color: var(--teks-lembut); border-color: var(--garis); background: #fafbfd; }

.sebaran { margin-top: 16px; }

.baris-sebaran {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12.5px;
}

.sebaran-nama { flex: 0 0 88px; color: var(--teks-lembut); font-weight: 600; }

.sebaran-alur {
  flex: 1;
  height: 8px;
  background: var(--garis);
  border-radius: 99px;
  overflow: hidden;
}

.sebaran-isi { display: block; height: 100%; border-radius: 99px; }
.sebaran-isi.hijau  { background: var(--hijau); }
.sebaran-isi.kuning { background: var(--kuning); }
.sebaran-isi.merah  { background: var(--merah); }

.sebaran-angka { flex: 0 0 30px; text-align: right; font-weight: 700; color: var(--teks-lembut); }

.cip-baris { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

.cip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fafbfd;
  border: 1.5px solid var(--garis);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teks-lembut);
}

.cip svg { width: 14px; height: 14px; }

.paragraf-analisis {
  margin: 0 0 11px;
  font-size: 13.5px;
  line-height: 1.72;
  color: #3b4152;
}

.paragraf-analisis:last-child { margin-bottom: 0; }
.paragraf-analisis b { color: var(--teks); }

.galeri-foto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.foto-item {
  display: block;
  border: 1.5px solid var(--garis);
  border-radius: 9px;
  overflow: hidden;
  text-decoration: none;
  background: #fafbfd;
}

.foto-item:hover { border-color: var(--biru); }

.foto-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--garis);
}

.foto-keterangan {
  display: block;
  padding: 5px 6px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--teks-lembut);
}

.foto-keterangan b { color: var(--teks); margin-right: 2px; }

.tombol.hapus {
  margin-top: 8px;
  background: #fff;
  color: var(--merah);
  border: 1.5px solid #f3c9c9;
}

.tombol.hapus:hover { background: #fdf2f2; }

/* =========================================================================
   HALAMAN REKAP (ADMIN)
   ========================================================================= */

.kepala-rekap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kepala-rekap h1 { margin-bottom: 4px; }

.aksi-rekap { display: flex; align-items: center; gap: 8px; }

/* --- Saring tanggal + ekspor PDF ----------------------------------------- */

.saring-tanggal {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1.5px solid var(--garis);
  border-radius: var(--radius-kecil);
}

.saring-tanggal .isian { flex: 0 1 170px; }
.saring-tanggal .isian input { padding: 9px 12px; font-size: 14px; }
.saring-tanggal .tombol-ekspor { margin-left: auto; }

.keterangan-saring {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--teks-lembut);
}

.grid-statistik {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.statistik {
  border: 1.5px solid var(--garis);
  border-radius: var(--radius-kecil);
  padding: 14px 16px;
}

.statistik-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--teks-lembut);
  margin-bottom: 3px;
}

.statistik-nilai { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.statistik-nilai small { font-size: 14px; font-weight: 600; color: var(--teks-samar); }
.hijau-teks { color: var(--hijau); }

.grid-grafik {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 12px;
}

.panel {
  border: 1.5px solid var(--garis);
  border-radius: var(--radius-kecil);
  padding: 17px;
  display: flex;
  flex-direction: column;
}

.panel h2 { font-size: 14px; margin-bottom: 14px; }
.panel-lebar { margin-top: 12px; }

/* --- Donat --------------------------------------------------------------- */

.donat-bungkus { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; flex: 1; }
.donat { width: 132px; height: 132px; flex: 0 0 132px; }
.donat-alur { fill: none; stroke: var(--garis); stroke-width: 19; }
.donat-potong { fill: none; stroke-width: 19; }

.donat-angka { text-anchor: middle; font-size: 25px; font-weight: 700; fill: var(--teks); }
.donat-kata { text-anchor: middle; font-size: 9.5px; fill: var(--teks-samar); }

.legenda { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 140px; }

.legenda li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  padding: 5px 0;
}

.legenda i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.legenda-nama { flex: 1; color: var(--teks-lembut); }
.legenda-nilai { font-weight: 700; }
.legenda-nilai small { font-weight: 500; color: var(--teks-samar); }
.legenda.mendatar { display: flex; gap: 18px; margin-top: 12px; flex: none; min-width: 0; }
.legenda.mendatar li { padding: 0; }

/* --- Batang vertikal ----------------------------------------------------- */

.grafik-batang {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  height: 164px;
  padding-top: 18px;
  border-bottom: 1.5px solid var(--garis);
}

.kelompok {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.batang-pasangan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}

.batang {
  position: relative;
  flex: 1;
  max-width: 26px;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
}

.batang.biru    { background: var(--biru); }
.batang.ungu    { background: #8ba2e0; }
.batang.gradien { background: var(--biru); max-width: 30px; }
.batang.kosong  { background: var(--garis); }

.batang em {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  color: var(--teks-lembut);
}

.kelompok-label {
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teks-lembut);
  text-align: center;
  line-height: 1.3;
}

.kelompok-label small { display: block; font-size: 9.5px; color: var(--teks-samar); font-weight: 500; }

/* --- Batang mendatar ----------------------------------------------------- */

.batang-datar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  flex: 1;
  padding-block: 8px;
}

.baris-datar { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.datar-nama { flex: 0 0 78px; color: var(--teks-lembut); font-weight: 600; }

.datar-alur {
  flex: 1;
  height: 10px;
  background: var(--garis);
  border-radius: 99px;
  overflow: hidden;
}

.datar-isi { display: block; height: 100%; border-radius: 99px; }
.datar-nilai { flex: 0 0 68px; text-align: right; font-weight: 700; }
.datar-nilai small { font-weight: 500; color: var(--teks-samar); }

/* --- Tabel --------------------------------------------------------------- */

.tabel-bungkus { overflow-x: auto; }

/* Tabel respons pada rekap: tinggi dibatasi, isinya digulir, judul kolom menempel. */
.tabel-bungkus.gulir { max-height: 420px; overflow-y: auto; }

.tabel-bungkus.gulir thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--garis);
}

.tabel-ringkas {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.tabel-ringkas th,
.tabel-ringkas td {
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--garis);
}

.tabel-ringkas th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teks-samar);
}

.tabel-ringkas tbody tr:last-child td { border-bottom: 0; }
.tabel-ringkas tbody tr:hover { background: var(--biru-muda); }
.tabel-ringkas .angka { text-align: center; font-weight: 650; }

.titik-warna {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
}

.tautan-detail { color: var(--biru); font-weight: 600; text-decoration: none; }
.tautan-detail:hover { text-decoration: underline; }

.sel-aksi { display: flex; align-items: center; gap: 14px; }
.form-hapus { margin: 0; }

.tautan-hapus {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--merah);
  cursor: pointer;
}

.tautan-hapus:hover { text-decoration: underline; }

/* =========================================================================
   LAYAR LEBIH BESAR / LEBIH SEMPIT
   ========================================================================= */

@media (min-width: 560px) {
  .bingkai-kamera { height: 210px; }
  .bulat span { width: 50px; height: 50px; font-size: 16px; }
}

@media (max-width: 400px) {
  .kartu { padding: 24px 20px 22px; }
  .bulat span { width: 42px; height: 42px; }
}
