/* RMAbsensi: satu keluarga tampilan dengan RMAExam (hijau madrasah + aksen emas). */
:root {
  --pri: #0d7a5f; --pri-d: #095c48; --pri-l: #e4f4ee; --pri-xl: #f1f9f6; --mint: #1fc08a;
  --gold: #d9a521; --gold-l: #fdf4dc;
  --ink: #14231e; --ink2: #4b5f58; --ink3: #7d8f88;
  --bg: #f6faf8; --card: #fff; --line: #e1e9e6; --line2: #cfdad6;
  --ok: #12805c; --ok-l: #dcf4e9; --warn: #a66a00; --warn-l: #fdf0d0; --err: #c0392b; --err-l: #fbe3e0;
  --info: #1d6fb8; --info-l: #e0eefb; --ungu: #6b46c1; --ungu-l: #ece5fa;
  --r: 16px; --r-s: 11px;
  --sh: 0 1px 2px rgba(16,40,32,.05), 0 6px 20px rgba(16,40,32,.06);
  --sh-l: 0 18px 50px rgba(16,40,32,.18);
  --grad: linear-gradient(135deg, #0a6b52, #12936f 60%, #1fc08a);
  /* nama lama, tetap dipakai beberapa aturan */
  --hijau: var(--pri); --hijau-tua: var(--pri-d); --garis: var(--line); --redup: var(--ink2); --merah: var(--err);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body { font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.12rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--pri); }
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.memuat { padding: 2.5rem; text-align: center; color: var(--ink3); }
.redup { color: var(--ink2); } .kecil { font-size: .85rem; } .tengah { text-align: center; }
.kanan { margin-left: auto; }
@keyframes naik { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
@keyframes geser { 50% { background-position: 100% 50%; } }
@keyframes apung { 50% { transform: translateY(-8px); } }
@keyframes denyut { 50% { opacity: .45; } }
@keyframes pindai { 0% { top: 8%; } 50% { top: 88%; } 100% { top: 8%; } }

/* ───────── kerangka ───────── */
.kerangka { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sisi { background: linear-gradient(180deg, #fff 0%, #f7fbf9 100%); border-right: 1px solid var(--line); box-shadow: 4px 0 24px rgba(20,60,50,.04);
  padding: 20px 14px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 30; }
.merek { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; margin-bottom: 6px; border-bottom: 1px solid #e8f0ec; text-decoration: none; color: var(--ink); }
.merek img { border-radius: 12px; box-shadow: 0 6px 14px rgba(13,122,95,.25); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.merek:hover img { transform: rotate(-10deg) scale(1.08); }
.merek span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.merek small { font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #6aa593; margin-top: 4px; }
.sisi nav { display: grid; gap: 3px; margin-top: 6px; }
.sisi nav .grup { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8aa39a; margin: 12px 12px 6px; }
.sisi nav a, .nav-keluar { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 14px; color: #4a5f57; font: inherit; font-weight: 600;
  font-size: .94rem; text-decoration: none; background: transparent; border: 0; width: 100%; cursor: pointer; text-align: left; transition: background .18s, color .18s, transform .18s; }
.nv-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #eef4f1; color: #5b7a6f;
  transition: background .2s, color .2s, transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; }
.sisi nav a:hover { background: #f0f8f4; color: var(--pri-d); transform: translateX(3px); }
.sisi nav a:hover .nv-ic { background: #dff1e8; color: var(--pri); transform: scale(1.08) rotate(-5deg); }
.sisi nav a.aktif { background: linear-gradient(90deg, #e3f4ec, #f3fbf7); color: var(--pri-d); font-weight: 800; box-shadow: inset 0 0 0 1px #cfe8dc; }
.sisi nav a.aktif .nv-ic { background: linear-gradient(135deg, #0a6b52, #1fc08a); color: #fff; box-shadow: 0 6px 12px rgba(13,122,95,.3); transform: none; }
.sisi nav a.aktif::before { content: ""; position: absolute; left: -14px; top: 16%; bottom: 16%; width: 4px; border-radius: 0 5px 5px 0; background: linear-gradient(180deg, #1fc08a, #0a6b52); }
.sisi .kaki { margin-top: auto; padding-top: 14px; display: grid; gap: 8px; }
.ta { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #0b6b53, #12936f); color: #fff; box-shadow: 0 8px 18px rgba(13,122,95,.22); }
.ta .nv-ic { background: rgba(255,255,255,.18); color: #fff; width: 32px; height: 32px; }
.ta small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ta b { display: block; font-size: .86rem; line-height: 1.2; }
.nav-keluar .nv-ic { background: #fdeceb; color: var(--err); }
.nav-keluar:hover { background: var(--err-l); color: var(--err); }
.utama { min-width: 0; }
.atas { display: flex; align-items: center; gap: 12px; padding: 14px 26px 8px; background: rgba(246,250,248,.86); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
#buka-menu { display: none; border: 0; background: #fff; box-shadow: var(--sh); width: 40px; height: 40px; border-radius: 12px; padding: 0; place-items: center; color: var(--ink); }
.atas-tgl { color: var(--ink2); font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.saya { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); padding: 4px 8px 4px 4px; border-radius: 99px; background: #fff; box-shadow: var(--sh); transition: transform .15s; }
.saya:hover { transform: translateY(-1px); }
.saya-t { display: flex; flex-direction: column; line-height: 1.15; font-size: .86rem; padding-right: 6px; } .saya-t small { color: var(--ink3); }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.isi { padding: 10px 26px 40px; max-width: 1320px; }
.isi > * { animation: naik .45s cubic-bezier(.2,.7,.2,1) backwards; }
.isi > *:nth-child(2) { animation-delay: .05s; } .isi > *:nth-child(3) { animation-delay: .1s; } .isi > *:nth-child(n+4) { animation-delay: .15s; }
.kepala-hal { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.kepala-hal h1 { margin: 0; }
@media (max-width: 900px) {
  .kerangka { grid-template-columns: minmax(0, 1fr); }
  .sisi { position: fixed; left: -270px; width: 256px; transition: left .25s cubic-bezier(.2,.7,.2,1); }
  .sisi.buka { left: 0; box-shadow: 0 0 0 100vmax rgba(10,30,24,.45); }
  #buka-menu { display: grid; }
  .atas { padding: 10px 14px 8px; }
  .atas-tgl span { display: none; }
  .saya-t { display: none; } .saya { padding: 3px; }
  .isi { padding: 8px 14px 40px; }
}

/* ───────── komponen ───────── */
.kartu { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; margin-bottom: 16px; }
.kartu > h2:first-child { margin-bottom: 12px; }
.baris { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.kisi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.angka { display: flex; gap: 13px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 15px 16px; transition: transform .18s, box-shadow .18s; }
.angka:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,40,32,.1); }
.angka .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--pri-l); color: var(--pri); display: grid; place-items: center; flex: none; }
.angka .ico svg { width: 22px; height: 22px; }
.angka b { display: block; font-size: 1.75rem; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.angka span { color: var(--ink2); font-size: .85rem; }
.angka.t-gold .ico { background: var(--gold-l); color: #a87b00; } .angka.t-info .ico { background: var(--info-l); color: var(--info); }
.angka.t-err .ico { background: var(--err-l); color: var(--err); } .angka.t-ungu .ico { background: var(--ungu-l); color: var(--ungu); }
.judul-bagian { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin: 6px 2px 10px; }
.judul-bagian::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* banner */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 26px; margin-bottom: 18px; color: #fff; background: linear-gradient(130deg, #0a6b52, #0d8566 55%, #1fa37f); background-size: 200% 200%; animation: geser 16s ease-in-out infinite, naik .45s backwards; box-shadow: 0 14px 34px rgba(13,122,95,.25); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero::before { content: ""; position: absolute; right: -70px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 66%); }
.hero::after { content: ""; position: absolute; right: 90px; bottom: -110px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(217,165,33,.42), transparent 66%); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.hero p { margin: 0; color: #d6f3e8; }
.hero .av { width: 64px; height: 64px; font-size: 1.6rem; background: rgba(255,255,255,.18); border: 3px solid rgba(255,255,255,.7); }
.hero .jam-hero { margin-left: auto; text-align: right; }
.hero .jam-hero b { display: block; font-size: 2.3rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hero .jam-hero small { color: #cdebe0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 3px 12px; border-radius: 99px; font-size: .86rem; font-weight: 600; }
.chip.emas { background: var(--gold); border-color: var(--gold); color: #3a2a00; }
@media (max-width: 600px) { .hero { padding: 18px; } .hero .jam-hero { margin-left: 0; text-align: left; } .hero .jam-hero b { font-size: 1.8rem; } }

button, .tombol { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--line2); background: #fff; color: var(--ink); padding: 8px 15px; border-radius: var(--r-s); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.2; transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
button:hover, .tombol:hover { background: #f4f8f6; border-color: #b9c9c3; }
button:active { transform: scale(.97); }
button.utama-btn { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(13,122,95,.25); }
button.utama-btn:hover { box-shadow: 0 10px 22px rgba(13,122,95,.35); filter: brightness(1.05); }
button.bahaya { color: var(--err); border-color: #efc4be; } button.bahaya:hover { background: var(--err-l); }
button.mini, .tombol.mini { padding: 4px 10px; font-size: .84rem; border-radius: 9px; box-shadow: none; }
button.besar { padding: 14px 20px; font-size: 1.05rem; width: 100%; border-radius: 14px; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--line2); border-radius: var(--r-s); background: #fff; color: var(--ink); max-width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(13,122,95,.15); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { accent-color: var(--pri); width: 17px; height: 17px; vertical-align: -3px; }
label.medan { display: block; margin-bottom: 13px; }
label.medan > span { display: block; font-size: .86rem; font-weight: 600; color: var(--ink2); margin-bottom: 5px; }
label.medan input:not([type=checkbox]), label.medan select, label.medan textarea { width: 100%; }
label.medan small { color: var(--ink3); display: block; margin-top: 4px; }
form.baris label { font-size: .86rem; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 6px; }
#pilih-lembaga { border-radius: 99px; font-weight: 700; color: var(--pri-d); background: var(--pri-l); border-color: #cfe8dc; padding: 7px 12px; }

.gulir { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-s); }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid #edf2f0; text-align: left; vertical-align: middle; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); white-space: nowrap; background: #f3f8f6; border-bottom-color: var(--line); }
tbody tr { transition: background .12s; } tbody tr:hover { background: #fafdfc; }
td.angka-sel, th.angka-sel { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.aksi { white-space: nowrap; text-align: right; }
tr:last-child td { border-bottom: 0; }
.kosong { padding: 34px 12px; text-align: center; color: var(--ink3); }
.kosong svg { display: block; margin: 0 auto 8px; width: 38px; height: 38px; opacity: .45; }

.cap { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: #eef3f1; color: var(--ink2); white-space: nowrap; }
.cap::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.cap.H, .cap.selesai, .cap.disetujui { background: var(--ok-l); color: var(--ok); }
.cap.T, .cap.menunggu, .cap.buka { background: var(--warn-l); color: var(--warn); }
.cap.buka::before, .cap.menunggu::before { animation: denyut 1.2s infinite; }
.cap.A, .cap.kosong-jam, .cap.ditolak { background: var(--err-l); color: var(--err); }
.cap.S { background: var(--info-l); color: var(--info); }
.cap.I, .cap.D { background: var(--ungu-l); color: var(--ungu); }

/* modal & toast */
.tirai { position: fixed; inset: 0; background: rgba(10,30,24,.5); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 20px; padding: 22px; width: 100%; max-width: 470px; box-shadow: var(--sh-l); animation: pop .28s cubic-bezier(.2,.8,.2,1); }
.modal.lebar { max-width: 760px; }
.modal .kaki-modal { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
#toast div { background: #12342b; color: #fff; padding: 11px 20px; border-radius: 13px; box-shadow: var(--sh-l); max-width: 92vw; font-weight: 600; animation: naik .25s; }
#toast div.salah { background: var(--err); }

/* ───────── login ───────── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(1200px 600px at 10% -10%, #c8ecdd 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #f7e6b0 0, transparent 55%), #eef5f2; }
.lx { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; width: min(1000px, 100%); background: #fff; border-radius: 30px; padding: 26px; box-shadow: 0 30px 90px rgba(16,60,48,.18); animation: pop .6s cubic-bezier(.2,.8,.2,1) backwards; }
.lx-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 500px; border-radius: 34px 34px 34px 84px; padding: 34px 30px 24px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #0b6b53 0%, #0d8566 55%, #1fa37f 100%); background-size: 200% 200%; animation: geser 16s ease-in-out infinite; }
.lx-art::before { content: ""; position: absolute; right: -80px; top: -70px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 66%); }
.lx-art::after { content: ""; position: absolute; left: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(217,165,33,.38), transparent 66%); }
.lx-art > * { position: relative; z-index: 1; }
.lx-art h1 { color: #fff; font-size: 1.8rem; line-height: 1.25; margin: 0 0 10px; max-width: 340px; }
.lx-art p { color: #d6f3e8; margin: 0; max-width: 330px; line-height: 1.6; }
.lx-art .ilus { width: 100%; max-width: 330px; align-self: center; margin: 14px 0; animation: apung 6s ease-in-out infinite; }
.lx-art .chips { justify-content: center; }
.login { display: flex; flex-direction: column; justify-content: center; padding: 10px 22px; }
.lx-merek { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.22rem; font-weight: 800; margin-bottom: 16px; }
.lx-merek img { border-radius: 11px; box-shadow: 0 6px 14px rgba(13,122,95,.3); }
.login h2 { text-align: center; font-size: 1.9rem; margin: 0 0 6px; letter-spacing: -.02em; }
.login .sub { text-align: center; color: var(--ink3); margin: 0 0 22px; }
.login label.medan input { background: #f4f7f6; border-color: #e6ecea; border-radius: 14px; padding: 14px 16px; }
.login label.medan input:focus { background: #fff; }
.login button.besar { margin-top: 6px; box-shadow: 0 12px 24px rgba(13,122,95,.28); }
.login .catatan { text-align: center; color: var(--ink3); font-size: .82rem; margin-top: 18px; }
@media (max-width: 820px) {
  .lx { grid-template-columns: 1fr; padding: 14px; border-radius: 24px; gap: 8px; }
  .lx-art { min-height: 0; border-radius: 22px 22px 22px 54px; padding: 22px 20px; }
  .lx-art .ilus, .lx-art .chips { display: none; }
  .lx-art h1 { font-size: 1.35rem; }
  .login { padding: 16px 8px 10px; }
}

/* ───────── sesi kelas (HP guru) ───────── */
.hitung { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.batang { height: 9px; border-radius: 99px; background: #e3ece8; overflow: hidden; margin-top: 10px; }
.batang i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0a6b52, #1fc08a); transition: width .4s cubic-bezier(.2,.7,.2,1); }
#kamera { position: relative; width: 100%; max-width: 420px; margin: 0 auto 12px; border-radius: 18px; overflow: hidden; background: #0b1f18; }
#kamera:empty { display: none; }
#kamera video { display: block; width: 100% !important; }
.hasil-scan { padding: 12px 14px; border-radius: 13px; font-weight: 700; margin-bottom: 12px; text-align: center; min-height: 46px; background: #eef3f1; color: var(--ink2); transition: background .2s, color .2s; }
.hasil-scan.ok { background: var(--ok-l); color: var(--ok); animation: pop .25s; } .hasil-scan.salah { background: var(--err-l); color: var(--err); animation: pop .25s; } .hasil-scan.info { background: var(--warn-l); color: var(--warn); }
.daftar-murid { list-style: none; margin: 0; padding: 0; }
.daftar-murid li { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.daftar-murid li:hover { background: var(--pri-xl); }
.daftar-murid li + li { border-top: 1px solid #edf2f0; }
.daftar-murid .no { width: 34px; height: 34px; border-radius: 50%; background: #eef4f1; color: var(--ink2); display: grid; place-items: center; font-weight: 800; font-size: .84rem; flex: none; }
.daftar-murid li.hadir .no { background: var(--grad); color: #fff; }
.daftar-murid .nama { flex: 1; min-width: 0; font-weight: 600; }
.pilih-status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pilih-status button { padding: 13px; }
.item-jadwal { display: flex; gap: 14px; align-items: center; padding: 12px 10px; border-radius: 14px; flex-wrap: wrap; transition: background .12s; }
.item-jadwal:hover { background: var(--pri-xl); }
.item-jadwal + .item-jadwal { border-top: 1px solid #edf2f0; }
.item-jadwal .jam { font-weight: 800; min-width: 104px; padding: 7px 10px; border-radius: 11px; background: var(--pri-l); color: var(--pri-d); text-align: center; font-variant-numeric: tabular-nums; }
.item-jadwal .jam .redup { color: #4f7a6c; font-weight: 600; }
.item-jadwal .ket { flex: 1; min-width: 150px; }
.hari-judul { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 16px 2px 6px; color: var(--pri-d); }
.hari-judul::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ───────── kios ───────── */
.kios { position: relative; min-height: 100vh; color: #fff; display: flex; flex-direction: column; align-items: center; padding: 22px 18px; gap: 16px; overflow: hidden; border-radius: 0;
  background: radial-gradient(900px 500px at 0 0, rgba(31,192,138,.28), transparent 60%), radial-gradient(800px 500px at 100% 100%, rgba(217,165,33,.2), transparent 60%), #06261d; }
.isi .kios { min-height: calc(100vh - 110px); border-radius: 24px; }
.kios.redup-malam { filter: brightness(.25); }
.kios .merek-kios { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; opacity: .95; }
.kios .merek-kios img { border-radius: 10px; }
.kios .jam-besar { font-size: clamp(2.8rem, 10vw, 5.4rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-shadow: 0 6px 30px rgba(31,192,138,.35); }
.kios .tgl { color: #bfe6d8; font-size: 1.1rem; font-weight: 600; margin-top: 4px; }
.kios #kamera { max-width: 520px; border: 3px solid rgba(255,255,255,.22); border-radius: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.kios #kamera::after { content: ""; position: absolute; left: 8%; right: 8%; height: 3px; top: 8%; border-radius: 3px; background: linear-gradient(90deg, transparent, #1fc08a, transparent); box-shadow: 0 0 16px #1fc08a; animation: pindai 3s ease-in-out infinite; pointer-events: none; }
.kios .panel { width: 100%; max-width: 640px; border-radius: 22px; padding: 22px; text-align: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); min-height: 150px; display: flex; flex-direction: column; justify-content: center; transition: background .25s; }
.kios .panel.ok, .kios .panel.telat, .kios .panel.salah, .kios .panel.info { animation: pop .3s cubic-bezier(.2,.8,.2,1); border-color: transparent; }
.kios .panel.ok { background: linear-gradient(135deg, #0f8d62, #1fc08a); box-shadow: 0 16px 50px rgba(31,192,138,.4); }
.kios .panel.telat { background: linear-gradient(135deg, #a66a00, #d9a521); box-shadow: 0 16px 50px rgba(217,165,33,.35); }
.kios .panel.salah { background: linear-gradient(135deg, #9b2a1f, #d4503f); }
.kios .panel.info { background: linear-gradient(135deg, #14568f, #2f86d1); }
.kios .panel .nama { font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.kios .panel .ket { font-size: 1.15rem; opacity: .95; }
.kios .bawah { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: .85rem; color: #bfe6d8; flex-wrap: wrap; justify-content: center; }
.kios .bawah button { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.titik { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; margin-right: 6px; box-shadow: 0 0 0 4px rgba(61,220,132,.2); animation: denyut 1.6s infinite; }
.titik.mati { background: #ff6b5b; box-shadow: 0 0 0 4px rgba(255,107,91,.2); }

/* ───────── kartu absensi (85,6 × 54 mm) ───────── */
.lembar-kartu { display: grid; grid-template-columns: repeat(auto-fill, 85.6mm); gap: 5mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kartu-id { position: relative; width: 85.6mm; height: 54mm; border: .3mm solid #b9c9c3; border-radius: 3.2mm; background: #fff; color: #12211c; break-inside: avoid; overflow: hidden; display: flex; flex-direction: column; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kid-top { display: flex; align-items: center; gap: 2.4mm; padding: 1.6mm 3mm; height: 12.5mm; flex: none; color: #fff; background: linear-gradient(120deg, #0d7a5f, #075e49); position: relative; overflow: hidden; }
.kid-top::after { content: ""; position: absolute; right: -8mm; top: -10mm; width: 26mm; height: 26mm; border-radius: 50%; background: radial-gradient(circle, rgba(217,165,33,.55), transparent 66%); }
.kid-top img { width: 8.6mm; height: 8.6mm; border-radius: 2mm; flex: none; }
.kid-top b { display: block; font-size: 8.4pt; letter-spacing: .03em; line-height: 1.15; text-transform: uppercase; }
.kid-top span { display: block; font-size: 6pt; opacity: .9; letter-spacing: .08em; text-transform: uppercase; }
.kid-body { flex: 1; display: flex; gap: 3mm; align-items: center; padding: 2.4mm 3mm 2.6mm 3.4mm; min-height: 0; }
.kid-info { flex: 1; min-width: 0; }
.kid-info .nama { font-size: 11pt; font-weight: 800; line-height: 1.15; max-height: 13mm; overflow: hidden; overflow-wrap: anywhere; margin-bottom: 1.6mm; }
.kid-info .no { font-size: 7.4pt; color: #4b5f58; margin-bottom: 2mm; }
.kid-info .pil { display: inline-block; background: #e3f4ec; color: #075e49; border-radius: 1.4mm; padding: .7mm 2.2mm; font-size: 8pt; font-weight: 800; }
.kid-qr { width: 33mm; flex: none; text-align: center; }
.kid-qr svg { width: 33mm; height: 33mm; display: block; }
.kid-qr small { display: block; font-size: 5pt; color: #5a6f68; letter-spacing: .06em; text-transform: uppercase; margin-top: -.6mm; }
.kid-garis { height: 1.4mm; flex: none; background: linear-gradient(90deg, #0d7a5f 0 70%, #d9a521 70%); }

@media print {
  .sisi, .atas, .tanpa-cetak, #toast { display: none !important; }
  .kerangka { display: block; }
  body { background: #fff; }
  .isi { padding: 0; max-width: none; } .isi > * { animation: none; }
  .kartu, .angka { border: 0; padding: 0; box-shadow: none; }
  .gulir { border: 0; overflow: visible; }
  th, td { padding: 4px 6px; font-size: 10pt; }
  .hero { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
