/* ==========================================================
   LesYuk - stylesheet utama
   Mobile-first. Tanpa framework eksternal supaya halaman tetap
   ringan di jaringan 3G/4G lemah yang umum di wilayah pedesaan.
   ========================================================== */

:root {
    --hijau: #157f52;
    --hijau-tua: #0f5f3d;
    --hijau-muda: #e6f4ed;
    --kuning: #f5a524;
    --merah: #d33a3a;
    --merah-muda: #fdeaea;
    --biru: #2563eb;
    --teks: #1f2933;
    --teks-lembut: #52606d;
    --garis: #dde3ea;
    --latar: #f6f8fa;
    --putih: #ffffff;
    --radius: 10px;
    --bayangan: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --lebar-maks: 1100px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--teks);
    background: var(--latar);
}

img { max-width: 100%; height: auto; }

a { color: var(--hijau); }
a:hover { color: var(--hijau-tua); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }

.wrap {
    width: 100%;
    max-width: var(--lebar-maks);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------------- Header ---------------- */

.topbar {
    background: var(--putih);
    border-bottom: 1px solid var(--garis);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 56px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--hijau);
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px; height: 32px;
    background: var(--hijau);
    color: #fff;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
}

.topnav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }

.topnav a, .topnav button {
    font-size: .92rem;
    padding: .45rem .7rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--teks-lembut);
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.topnav a:hover, .topnav button:hover { background: var(--latar); color: var(--teks); }
.topnav a.active { color: var(--hijau); background: var(--hijau-muda); font-weight: 600; }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .6rem .3rem .3rem;
    border: 1px solid var(--garis);
    border-radius: 999px;
    font-size: .85rem;
}

.avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--hijau);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .75rem;
    font-weight: 700;
}

/* ---------------- Layout ---------------- */

main { padding: 1.25rem 0 3rem; }

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.card {
    background: var(--putih);
    border: 1px solid var(--garis);
    border-radius: var(--radius);
    box-shadow: var(--bayangan);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .85rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--garis);
}

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 720px) {
    body { font-size: 15px; }
    h1 { font-size: 1.75rem; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- Statistik ---------------- */

.stat {
    background: var(--putih);
    border: 1px solid var(--garis);
    border-radius: var(--radius);
    padding: .9rem;
}

.stat-label { font-size: .78rem; color: var(--teks-lembut); text-transform: uppercase; letter-spacing: .03em; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }

/* ---------------- Form ---------------- */

.field { margin-bottom: 1rem; }

label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.hint { font-size: .8rem; color: var(--teks-lembut); margin-top: .3rem; }

input[type="text"], input[type="tel"], input[type="password"], input[type="email"],
input[type="number"], input[type="search"], select, textarea {
    width: 100%;
    padding: .7rem .75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--teks);
    background: var(--putih);
    border: 1px solid var(--garis);
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2352606d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    background-size: 12px;
    padding-right: 2rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--hijau);
    box-shadow: 0 0 0 3px rgba(21, 127, 82, .15);
}

input.has-error, select.has-error { border-color: var(--merah); }

.error-text { color: var(--merah); font-size: .82rem; margin-top: .3rem; }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .88rem;
    font-weight: 400;
}

.checkbox input { width: 18px; height: 18px; margin-top: .15rem; flex: none; }

/* ---------------- Tombol ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .72rem 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    background: var(--hijau);
    color: #fff;
    min-height: 44px; /* target sentuh nyaman di ponsel */
}

.btn:hover { background: var(--hijau-tua); color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .7rem; font-size: .85rem; min-height: 36px; }

.btn-outline { background: var(--putih); color: var(--teks); border-color: var(--garis); }
.btn-outline:hover { background: var(--latar); color: var(--teks); }

.btn-danger { background: var(--merah); }
.btn-danger:hover { background: #b32d2d; }

.btn-google {
    background: var(--putih);
    color: var(--teks);
    border-color: var(--garis);
}
.btn-google:hover { background: var(--latar); color: var(--teks); }

/* ---------------- Notifikasi ---------------- */

.alert {
    padding: .8rem .95rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .92rem;
    border: 1px solid transparent;
}

.alert-success { background: var(--hijau-muda); border-color: #b7dfc9; color: #0f5f3d; }
.alert-error { background: var(--merah-muda); border-color: #f3bcbc; color: #9b2222; }
.alert-info { background: #e8f1fe; border-color: #bcd6fb; color: #1c4ed8; }
.alert-warning { background: #fff5e5; border-color: #fadfae; color: #91600b; }

/* ---------------- Badge ---------------- */

.badge {
    display: inline-block;
    padding: .18rem .55rem;
    font-size: .76rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--latar);
    color: var(--teks-lembut);
    border: 1px solid var(--garis);
}

.badge-success { background: var(--hijau-muda); color: var(--hijau-tua); border-color: #b7dfc9; }
.badge-warning { background: #fff5e5; color: #91600b; border-color: #fadfae; }
.badge-danger { background: var(--merah-muda); color: #9b2222; border-color: #f3bcbc; }
.badge-info { background: #e8f1fe; color: #1c4ed8; border-color: #bcd6fb; }

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

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }

th, td {
    padding: .6rem .55rem;
    text-align: left;
    border-bottom: 1px solid var(--garis);
    vertical-align: top;
}

th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--teks-lembut); white-space: nowrap; }

tbody tr:hover { background: var(--latar); }

.dl { margin: 0; font-size: .92rem; }
.dl div { display: flex; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--garis); }
.dl div:last-child { border-bottom: 0; }
.dl dt { flex: 0 0 42%; color: var(--teks-lembut); margin: 0; }
.dl dd { flex: 1; margin: 0; font-weight: 500; word-break: break-word; }

/* ---------------- Halaman auth ---------------- */

.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem 2.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--putih);
    border: 1px solid var(--garis);
    border-radius: 12px;
    box-shadow: var(--bayangan);
    padding: 1.5rem 1.25rem;
}

.auth-head { text-align: center; margin-bottom: 1.25rem; }
.auth-head p { color: var(--teks-lembut); font-size: .92rem; margin: .25rem 0 0; }

.auth-foot { text-align: center; font-size: .9rem; margin-top: 1.1rem; }

.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.1rem 0;
    color: var(--teks-lembut);
    font-size: .82rem;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--garis);
}

/* ---------------- Beranda ---------------- */

.hero {
    background: linear-gradient(160deg, var(--hijau) 0%, var(--hijau-tua) 100%);
    color: #fff;
    padding: 2.5rem 0 2.75rem;
}

.hero h1 { font-size: 1.6rem; margin-bottom: .6rem; }
.hero p { opacity: .92; margin-bottom: 1.35rem; }
.hero .btn-outline { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-outline:hover { background: rgba(255,255,255,.24); color: #fff; }

.hero-actions { display: flex; flex-direction: column; gap: .6rem; }

@media (min-width: 560px) {
    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: row; }
}

.steps { counter-reset: langkah; list-style: none; padding: 0; margin: 0; }

.steps li {
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 1rem;
}

.steps li::before {
    counter-increment: langkah;
    content: counter(langkah);
    position: absolute;
    left: 0; top: 0;
    width: 26px; height: 26px;
    background: var(--hijau-muda);
    color: var(--hijau-tua);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
}

/* ---------------- Utilitas ---------------- */

.muted { color: var(--teks-lembut); }
.small { font-size: .85rem; }
.tiny { font-size: .78rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.center { text-align: center; }
.right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.flex-between { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.nowrap { white-space: nowrap; }

.footer {
    border-top: 1px solid var(--garis);
    background: var(--putih);
    padding: 1.25rem 0;
    font-size: .85rem;
    color: var(--teks-lembut);
}

.pagination { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }

.pagination a, .pagination span {
    padding: .4rem .7rem;
    border: 1px solid var(--garis);
    border-radius: 6px;
    font-size: .85rem;
    text-decoration: none;
    background: var(--putih);
}

.pagination .current { background: var(--hijau); color: #fff; border-color: var(--hijau); }

.filters { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-bottom: 1rem; }

@media (min-width: 720px) {
    .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
}

.error-page { text-align: center; padding: 3rem 1rem; }
.error-code { font-size: 3.5rem; font-weight: 800; color: var(--hijau); line-height: 1; }

.locked-note {
    border-left: 4px solid var(--kuning);
    background: #fff9ef;
    padding: .85rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: .92rem;
}

.settings-group { margin-bottom: 1.5rem; }

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: .5rem;
    top: .5rem;
    z-index: 100;
    background: var(--putih);
    padding: .5rem .8rem;
    border-radius: 6px;
    border: 1px solid var(--hijau);
}

/* ==========================================================
   BP02 - profil, siswa, dan verifikasi
   ========================================================== */

/* Indikator kelengkapan profil */

.progress {
    height: 10px;
    background: var(--garis);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--hijau);
    border-radius: 999px;
    transition: width .3s ease;
}

.progress-bar.is-low { background: var(--merah); }
.progress-bar.is-mid { background: var(--kuning); }

.checklist { list-style: none; padding: 0; margin: 0; }

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--garis);
    font-size: .9rem;
}

.checklist li:last-child { border-bottom: 0; }

.check-mark {
    flex: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .7rem;
    font-weight: 700;
    background: var(--latar);
    color: var(--teks-lembut);
    border: 1px solid var(--garis);
}

.check-mark.is-done {
    background: var(--hijau-muda);
    color: var(--hijau-tua);
    border-color: #b7dfc9;
}

/* Grid pilihan (mata pelajaran, jenjang kelas) */

.option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
}

@media (min-width: 560px) {
    .option-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .option-grid { grid-template-columns: repeat(3, 1fr); }
}

.option-grid label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border: 1px solid var(--garis);
    border-radius: 8px;
    font-weight: 400;
    font-size: .9rem;
    margin: 0;
    cursor: pointer;
    background: var(--putih);
}

.option-grid label:hover { border-color: var(--hijau); }
.option-grid input { width: 18px; height: 18px; flex: none; }

.option-group-title {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--teks-lembut);
    margin: 1rem 0 .4rem;
}

/* Foto profil */

.photo-frame {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--garis);
    background: var(--latar);
}

.photo-placeholder {
    width: 96px; height: 96px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--hijau-muda);
    color: var(--hijau-tua);
    font-size: 1.6rem;
    font-weight: 700;
    border: 1px dashed #b7dfc9;
}

/* Daftar entri (siswa, pengalaman, dokumen) */

.entry {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .8rem 0;
    border-bottom: 1px solid var(--garis);
}

.entry:last-child { border-bottom: 0; }
.entry-body { flex: 1; min-width: 0; }
.entry-title { font-weight: 600; margin: 0 0 .15rem; }
.entry-meta { font-size: .82rem; color: var(--teks-lembut); }
.entry-actions { display: flex; gap: .35rem; flex-wrap: wrap; flex: none; }

.entry.is-inactive .entry-title,
.entry.is-inactive .entry-meta { opacity: .55; }

/* Linimasa verifikasi */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
    position: relative;
    padding: 0 0 1rem 1.5rem;
    border-left: 2px solid var(--garis);
}

.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline li::before {
    content: "";
    position: absolute;
    left: -6px; top: .35rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--hijau);
}

.timeline-time { font-size: .78rem; color: var(--teks-lembut); }
.timeline-note {
    background: var(--latar);
    border-radius: 6px;
    padding: .5rem .65rem;
    font-size: .85rem;
    margin-top: .35rem;
}

/* Tab navigasi bagian profil */

.subnav {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.subnav a {
    white-space: nowrap;
    padding: .45rem .8rem;
    border: 1px solid var(--garis);
    border-radius: 999px;
    font-size: .88rem;
    text-decoration: none;
    color: var(--teks-lembut);
    background: var(--putih);
}

.subnav a.active {
    background: var(--hijau);
    border-color: var(--hijau);
    color: #fff;
    font-weight: 600;
}

/* ---------- Keuangan (BP04) ---------- */

.badge-muted { background: var(--abu-muda, #f1f3f5); color: var(--teks-lembut); border-color: var(--garis); }

.amount-credit { color: var(--hijau-tua); font-weight: 600; white-space: nowrap; }
.amount-debit  { color: #9b2222; font-weight: 600; white-space: nowrap; }

.balance-card {
    background: linear-gradient(135deg, var(--hijau) 0%, var(--hijau-tua) 100%);
    color: #fff;
    border-radius: var(--radius, 12px);
    padding: 1.2rem 1.1rem;
    margin-bottom: 1rem;
}

.balance-card .balance-label { font-size: .8rem; opacity: .85; text-transform: uppercase; letter-spacing: .03em; }
.balance-card .balance-value { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin: .15rem 0 .5rem; }
.balance-card .balance-meta { font-size: .82rem; opacity: .9; }

.wizard {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0;
    list-style: none;
}

.wizard li {
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    border: 1px solid var(--garis);
    color: var(--teks-lembut);
    background: var(--putih);
}

.wizard li.is-current { background: var(--hijau); border-color: var(--hijau); color: #fff; font-weight: 600; }
.wizard li.is-done { background: var(--hijau-muda); border-color: #b7dfc9; color: var(--hijau-tua); }

.choice {
    display: block;
    border: 1px solid var(--garis);
    border-radius: var(--radius, 12px);
    padding: .8rem;
    margin-bottom: .6rem;
    background: var(--putih);
    cursor: pointer;
}

.choice input { margin-right: .5rem; }
.choice.is-selected { border-color: var(--hijau); box-shadow: 0 0 0 1px var(--hijau) inset; }
.choice-title { font-weight: 600; }
.choice-meta { font-size: .82rem; color: var(--teks-lembut); }

.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.summary-row.is-total { border-top: 1px solid var(--garis); margin-top: .4rem; padding-top: .6rem; font-weight: 700; }

/* ---------- Asesmen (BP06) ---------- */

/* Medan yang disembunyikan skrip harus tetap tersembunyi meski kelasnya
   mengatur display sendiri (.field, .checkbox, .grid). */
[hidden] { display: none !important; }

.question-block {
    border: 1px solid var(--garis);
    border-radius: var(--radius, 12px);
    padding: .9rem;
    margin-bottom: .8rem;
    background: var(--putih);
}

.question-head { display: flex; gap: .6rem; justify-content: space-between; align-items: baseline; }
.question-number { font-weight: 700; color: var(--hijau-tua); flex: none; }
.question-prompt { font-weight: 500; margin: 0 0 .6rem; }

.mastery-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--garis); }
.mastery-row:last-child { border-bottom: 0; }
.mastery-row .mastery-label { flex: 1 1 40%; min-width: 0; font-size: .9rem; }
.mastery-row .progress { flex: 1 1 30%; }
.mastery-row .mastery-value { flex: none; font-size: .82rem; color: var(--teks-lembut); white-space: nowrap; }

.timer-note { font-variant-numeric: tabular-nums; }

/* ---------- Laporan les akhir & referral (BP08) ---------- */

.print-sheet { background: var(--putih); padding: 1.2rem; border-radius: var(--radius, 12px); }
.print-sheet h2 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.print-sheet table { width: 100%; margin-bottom: .8rem; }

.print-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 2px solid var(--hijau);
    padding-bottom: .6rem;
    margin-bottom: 1rem;
}

.print-qr { flex: none; }
.print-qr svg { width: 96px; height: 96px; }

.referral-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--hijau-tua);
    word-break: break-all;
}

.referral-link {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
    word-break: break-all;
    background: var(--latar);
    border: 1px solid var(--garis);
    border-radius: 8px;
    padding: .5rem .6rem;
    display: block;
}

/* ---------------- Pusat kendali admin ---------------- */

.section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25rem 0 .6rem;
    color: var(--teks-lembut);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.section-title:first-of-type { margin-top: 0; }

a.stat { display: block; color: inherit; text-decoration: none; }
a.stat:hover { border-color: var(--hijau); }

.stat-note { font-size: .75rem; color: var(--teks-lembut); margin-top: .2rem; }
.stat-money { font-size: 1.15rem; word-break: break-word; }

/* Antrean yang berisi pekerjaan diberi warna supaya tidak terlewat. */
.stat-alert { border-color: #fadfae; background: #fff9ef; }
.stat-alert .stat-value { color: #91600b; }

.recon-row-bad td { background: var(--merah-muda); }
.import-row-invalid td { background: var(--merah-muda); }

.qr-frame {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--garis);
    border-radius: var(--radius);
    padding: .75rem;
    max-width: 100%;
}

.qr-frame svg { display: block; width: 100%; height: auto; max-width: 320px; }

/* Peringatan pemulihan sengaja dibuat mencolok - tindakannya tidak bisa dibatalkan. */
.danger-zone {
    border: 2px solid #f3bcbc;
    background: #fffafa;
}

/* Yang tampil di layar tetapi tidak perlu ikut tercetak. */
@media print {
    .no-print, .topbar, .footer { display: none !important; }
    .print-sheet { padding: 0; }
    body { background: #fff; }

    /* Wadah gulir hanya berguna di layar; saat dicetak ia dapat memotong isi. */
    .table-scroll { overflow: visible !important; }
}
