/* ═══════════════════════════════════════════════════════════
   MUTUKAWI APPS — mobile-first, responsif sampai desktop
   Warna dominan: biru #2553a0 & oranye #e5873a
   ═══════════════════════════════════════════════════════════ */
:root {
    --blue: #2553a0;
    --blue-d: #1a3e7e;
    --blue-l: #3a6bc4;
    --blue-50: #eef3fc;
    --blue-100: #dbe6f8;
    --orange: #e5873a;
    --orange-d: #c96f25;
    --orange-50: #fdf2e8;
    --bg: #f3f6fc;
    --card: #ffffff;
    --text: #172036;
    --muted: #64748b;
    --line: #e4e9f2;
    --green: #15965c;
    --green-50: #e7f6ee;
    --red: #d63b3b;
    --red-50: #fdecec;
    --amber: #b7791f;
    --amber-50: #fdf6e3;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(23, 32, 54, .04), 0 6px 20px rgba(37, 83, 160, .07);
    --nav-h: 68px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.ic { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Kerangka ─────────────────────────────────────────────── */
.shell { min-height: 100vh; }
.sidebar { display: none; }
.main { min-width: 0; }
.content {
    padding: 16px 16px calc(var(--nav-h) + 36px + var(--safe-b));
    max-width: 1180px; margin: 0 auto;
}

/* App bar (HP) */
.appbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    background: rgba(243, 246, 252, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.appbar-logo { width: 32px; height: 32px; object-fit: contain; }
.appbar-title { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
    width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px;
    border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.avatar {
    width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
    background: linear-gradient(135deg, var(--blue), var(--blue-l)); color: #fff; font-weight: 700; font-size: 15px;
}
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar-lg { width: 76px; height: 76px; font-size: 26px; box-shadow: 0 0 0 4px rgba(255,255,255,.35); }

/* ── Navigasi bawah (HP) ─────────────────────────────────── */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: calc(var(--nav-h) + var(--safe-b)); padding: 0 6px var(--safe-b);
    background: #fff; border-radius: 22px 22px 0 0;
    box-shadow: 0 -6px 24px rgba(23, 32, 54, .08);
}
.bn-item {
    height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: #8a96ab; font-size: 11.5px; font-weight: 500; position: relative;
}
.bn-item .ic { width: 23px; height: 23px; }
.bn-item.active { color: var(--blue); font-weight: 700; }
.bn-item.active:not(.bn-absen)::after {
    content: ''; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.bn-item.active:not(.bn-absen) .ic { margin-top: 6px; }
.bn-absen { justify-content: flex-end; padding-bottom: 9px; }
.bn-fab {
    position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, #f09a4e, var(--orange) 45%, var(--orange-d));
    box-shadow: 0 0 0 6px #fff, 0 10px 22px rgba(229, 135, 58, .45);
    transition: transform .15s ease;
}
.bn-fab .ic { width: 30px; height: 30px; stroke-width: 1.8; }
.bn-absen .bn-label { color: var(--blue); font-weight: 700; font-size: 12px; }
.bn-absen:active .bn-fab { transform: translateX(-50%) scale(.94); }
.bn-absen.active .bn-fab { background: linear-gradient(145deg, var(--blue-l), var(--blue) 50%, var(--blue-d)); box-shadow: 0 0 0 6px #fff, 0 10px 22px rgba(37, 83, 160, .4); }

/* ── Kartu & tipografi ───────────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card, .section + .section, .card + .section, .section + .card { margin-top: 16px; }
/* Jarak antar kotak di HP: kolom kiri & kanan ditumpuk → beri jarak; kotak setelah daftar/form/kelompok kotak juga diberi jarak */
.layout-2 > .col + .col { margin-top: 16px; }
.layout-2 > .col > .card:first-child { margin-top: 0; }
.card + form, .card + .list, .card + .pgm-daftar, .pgm-daftar + .card, form + .card, .list + .card,
.stats + .card, .card + .stats, .chips + .card, .card + .chips, .alert + .card, .card + .alert,
.card + script + .card, .card + script + form, .card + style + .card { margin-top: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; margin: 22px 2px 10px; flex-wrap: wrap; }
.section-head h2 { flex: none; }
.section-head h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.link-more { color: var(--blue); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.link-more .ic { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Hero sapaan */
.hero {
    position: relative; overflow: hidden; border-radius: 22px; padding: 20px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, var(--blue-l) 0%, var(--blue) 45%, var(--blue-d) 100%);
    box-shadow: 0 12px 28px rgba(37, 83, 160, .28);
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero::before { width: 180px; height: 180px; right: -50px; top: -70px; }
.hero::after { width: 120px; height: 120px; right: 60px; bottom: -70px; background: rgba(229,135,58,.28); }
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: center; gap: 12px; }
.hero small { opacity: .8; font-size: 12.5px; }
.hero h2 { font-size: 19px; font-weight: 700; line-height: 1.25; }
.hero { padding-bottom: 46px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12px; font-weight: 500; }
.hero-chip .ic { width: 15px; height: 15px; }

/* Kartu status absen di beranda */
.absen-card { display: flex; align-items: center; gap: 14px; margin-top: -26px; position: relative; z-index: 2; margin-left: 10px; margin-right: 10px; }
.absen-card .ab-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-d); flex: none; }
.absen-card .ab-txt { flex: 1; min-width: 0; }
.absen-card b { display: block; font-size: 14px; }
.absen-card .ab-times { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.absen-card .ab-times > span { display: flex; gap: 6px; }
.absen-card .ab-times > span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); align-self: center; }
.absen-card .ab-times > span + span::before { background: var(--blue); }
.absen-card .ab-times strong { color: var(--text); font-weight: 600; margin-left: auto; min-width: 42px; }
.absen-card .ab-times { max-width: 150px; }

/* Pintasan */
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 11.5px; font-weight: 500; padding: 4px 0; }
.shortcut .sc-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); color: var(--blue); }
.shortcut .sc-ic.o { color: var(--orange-d); }

/* Daftar */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.list-item:first-child { padding-top: 2px; }
.li-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; }
.li-ic.o { background: var(--orange-50); color: var(--orange-d); }
.li-ic.g { background: var(--green-50); color: var(--green); }
.li-ic .ic { width: 20px; height: 20px; }
.li-main { flex: 1; min-width: 0; }
.li-main b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main span.badge { display: inline-flex; width: auto; }
.li-end { text-align: right; font-size: 12px; color: var(--muted); flex: none; }
.li-end .ic { width: 18px; height: 18px; color: #b3bdcc; }

/* Lencana */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.b-blue { background: var(--blue-50); color: var(--blue); }
.b-orange { background: var(--orange-50); color: var(--orange-d); }
.b-green { background: var(--green-50); color: var(--green); }
.b-red { background: var(--red-50); color: var(--red); }
.b-amber { background: var(--amber-50); color: var(--amber); }
.b-gray { background: #eef1f6; color: var(--muted); }

/* Tombol */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
    border-radius: 14px; border: 0; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 19px; height: 19px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,83,160,.25); }
.btn-primary:hover { background: var(--blue-d); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(229,135,58,.3); }
.btn-orange:hover { background: var(--orange-d); }
.btn-soft { background: var(--blue-50); color: var(--blue); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--red-50); color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 11px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Form */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.input, .select, textarea.input {
    width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
    outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
.input:focus, .select:focus { border-color: var(--blue-l); box-shadow: 0 0 0 4px rgba(58,107,196,.12); }
.input-ic { position: relative; }
.input-ic > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #9aa6b8; pointer-events: none; }
.input-ic .input { padding-left: 44px; }
.input-ic .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Cari */
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #9aa6b8; }
.search .input { padding-left: 44px; background: #fff; border-color: transparent; box-shadow: var(--shadow); }

/* Chip / tab */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 12px -16px 0; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #e6ebf5; }
.tab { text-align: center; padding: 9px 6px; border-radius: 11px; font-weight: 600; font-size: 13px; color: var(--muted); }
.tab.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(23,32,54,.08); }

/* Alert */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.alert .ic { width: 19px; height: 19px; margin-top: 1px; }
.alert-success { background: var(--green-50); color: #0f7046; }
.alert-error { background: var(--red-50); color: #a62b2b; }
.alert-info { background: var(--blue-50); color: var(--blue-d); }
.alert-warn { background: var(--amber-50); color: #8a5a12; }

/* Kosong */
.empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 12px; color: var(--muted); font-size: 12.5px; }
.empty b { color: var(--text); font-size: 14px; }
.empty-ic { width: 40px; height: 40px; color: #b8c3d6; margin-bottom: 6px; }

/* Statistik kecil */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: #fff; border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; }
.stat span { font-size: 11px; color: var(--muted); }
.stat.s-blue b { color: var(--blue); } .stat.s-orange b { color: var(--orange-d); } .stat.s-red b { color: var(--red); } .stat.s-green b { color: var(--green); }

/* ── Absensi ─────────────────────────────────────────────── */
.absen-hero { text-align: center; padding: 22px 18px 24px; }
.clock { font-size: 44px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); line-height: 1.1; font-variant-numeric: tabular-nums; }
.clock-date { color: var(--muted); font-size: 13px; margin-top: 2px; }
.absen-mode { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.absen-btn {
    width: 172px; height: 172px; margin: 22px auto 6px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 15px;
    background: linear-gradient(145deg, #f3a35c, var(--orange) 45%, var(--orange-d));
    box-shadow: 0 0 0 10px var(--orange-50), 0 0 0 20px rgba(253,242,232,.5), 0 18px 36px rgba(229,135,58,.4);
    transition: transform .15s;
}
.absen-btn .ic { width: 58px; height: 58px; stroke-width: 1.6; }
.absen-btn.pulang { background: linear-gradient(145deg, var(--blue-l), var(--blue) 50%, var(--blue-d)); box-shadow: 0 0 0 10px var(--blue-50), 0 0 0 20px rgba(238,243,252,.5), 0 18px 36px rgba(37,83,160,.35); }
.absen-btn:active { transform: scale(.96); }
.absen-btn[disabled] { background: #c9d2e0; box-shadow: 0 0 0 10px #eef1f6; cursor: not-allowed; }
.absen-btn.loading .ic { animation: pulse 1s infinite; }
/* Sedang mencari lokasi / mengirim: warna tetap + garis melengkung berputar mengelilingi tombol */
.absen-btn { position: relative; }
.absen-btn.loading[disabled] { background: linear-gradient(145deg, #f3a35c, var(--orange) 45%, var(--orange-d)); box-shadow: 0 0 0 10px var(--orange-50), 0 0 0 20px rgba(253,242,232,.5), 0 18px 36px rgba(229,135,58,.4); cursor: progress; }
.absen-btn.pulang.loading[disabled] { background: linear-gradient(145deg, var(--blue-l), var(--blue) 50%, var(--blue-d)); box-shadow: 0 0 0 10px var(--blue-50), 0 0 0 20px rgba(238,243,252,.5), 0 18px 36px rgba(37,83,160,.35); }
.absen-btn.loading::after {
    content: ''; position: absolute; inset: -16px; border-radius: 50%;
    border: 5px solid transparent; border-top-color: var(--blue); border-right-color: var(--blue);
    animation: putar-cincin .9s linear infinite;
}
.absen-btn.pulang.loading::after { border-top-color: var(--orange); border-right-color: var(--orange); }
@keyframes putar-cincin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
.loc-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.loc-line .ic { width: 16px; height: 16px; }
.loc-ok { color: var(--green); } .loc-bad { color: var(--red); }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.time-box { border-radius: 16px; padding: 14px; background: var(--blue-50); }
.time-box.o { background: var(--orange-50); }
.time-box small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.time-box small .ic { width: 15px; height: 15px; }
.time-box b { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; }

/* Lapor tidak hadir (di dalam kartu absen, di bawah info radius) */
.lapor { text-align: left; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.lapor-judul { display: block; font-size: 14px; text-align: center; color: var(--text); }
.lapor-aktif { margin-top: 10px; padding: 10px 12px !important; border: 0 !important; border-radius: 14px; background: var(--orange-50); }
.lapor-pilih { margin-top: 12px !important; }
/* Kotak cuti bisa diketuk → pop-up detail */
.cuti-item { cursor: pointer; transition: box-shadow .15s; }
.cuti-item:hover, .cuti-item:focus-visible { box-shadow: 0 0 0 2px var(--orange) inset; outline: 0; }
.cuti-badis { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cuti-lihat { font-size: 11px; color: var(--orange); font-weight: 600; }
.cuti-item .li-chev { color: var(--orange); display: grid; place-items: center; flex: none; }
.sheet.cuti-sheet { text-align: left; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.cuti-sheet .sheet-ic, .cuti-sheet h3 { text-align: center; }
.cuti-sheet h3 + .badge { display: table; margin: 6px auto 0; }
.cuti-rinci { margin: 16px 0 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cr-baris { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.cr-baris:first-child { border-top: 0; }
.cr-baris > small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.cr-baris > b { font-size: 14px; font-weight: 600; word-break: break-word; }
.cr-admin { background: var(--blue-50); }
.cr-hari { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.cr-hari > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; }
.sheet .cuti-aksi { display: grid; align-items: stretch; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.sheet .cuti-aksi .btn { width: 100%; justify-content: center; }
.lapor-pilih { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 14px; }
.lapor-opsi { display: flex; }
.lapor-opsi input { position: absolute; opacity: 0; pointer-events: none; }
.lapor-opsi span {
    flex: 1; justify-content: center; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 12px; cursor: pointer;
    background: #f3f6fb; color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: center; border: 1.5px solid transparent;
}
.lapor-opsi span .ic { width: 20px; height: 20px; }
.lapor-opsi input:checked + span { background: var(--orange-50); color: var(--orange-d); border-color: var(--orange); }
.lapor-opsi.lp-D input:checked + span { background: var(--blue-50); color: var(--blue); border-color: var(--blue-l); }
.lapor-opsi.lp-A input:checked + span { background: var(--red-50); color: var(--red); border-color: var(--red); }
.lapor-opsi input:focus-visible + span { outline: 2px solid var(--blue-l); outline-offset: 2px; }
/* ── Pengumuman (kartu menonjol di atas Beranda) ── */
.pgm-wrap { display: grid; gap: 12px; margin-bottom: 16px; }
.pgm { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 16px; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #e5873a 45%, #d9480f 100%); box-shadow: 0 12px 28px -12px rgba(217, 72, 15, .55); animation: pgm-masuk .5s ease; }
.pgm.pgm-biru { background: linear-gradient(135deg, #3b82f6 0%, #2553a0 55%, #1e3a8a 100%); box-shadow: 0 12px 28px -12px rgba(30, 58, 138, .55); }
.pgm::before { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pgm::after { content: ""; position: absolute; right: 40px; bottom: -70px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.pgm-ikon { position: relative; z-index: 1; flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); animation: pgm-goyang 2.4s ease-in-out infinite; }
.pgm-ikon svg { width: 26px; height: 26px; }
.pgm-isi { position: relative; z-index: 1; min-width: 0; flex: 1; }
.pgm-label { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; background: rgba(255, 255, 255, .22); padding: 3px 9px; border-radius: 99px; }
.pgm h3 { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 7px 0 4px; }
.pgm p { font-size: 13.5px; line-height: 1.55; margin: 0; opacity: .96; word-break: break-word; }
.pgm-tgl { display: flex; align-items: center; gap: 5px; font-size: 11.5px; margin-top: 10px; opacity: .85; }
.pgm-tgl .ic { width: 14px; height: 14px; }
@keyframes pgm-masuk { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pgm-goyang { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 85% { transform: rotate(10deg); } 92% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .pgm, .pgm-ikon { animation: none; } }
#pengumuman { scroll-margin-top: 80px; }

/* ── Admin: Pengaturan bertab ── */
.chips.set-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.set-tabs::-webkit-scrollbar { display: none; }
.set-tabs .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.set-tabs .chip .ic { width: 16px; height: 16px; }
.set-isi { margin-top: 14px; }
.set-card { max-width: 760px; }
.layout-2 .set-card { max-width: none; }
.set-card h2 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
/* Jam presensi: satu jam per baris, berurutan */
.jam-daftar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.jam-kelompok { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--orange-d); margin-top: 6px; }
.jam-kelompok.pulang { color: var(--blue); margin-top: 12px; }
.jam-kelompok .ic { width: 16px; height: 16px; }
.jam-baris { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.jam-baris:focus-within { border-color: var(--blue-l, #93c5fd); box-shadow: 0 0 0 3px var(--blue-50); }
.jam-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--blue-50); color: var(--blue); }
.jam-teks { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.jam-teks b { font-size: 14px; font-weight: 600; }
.jam-teks small { font-size: 12px; color: var(--muted); }
.jam-baris .input { flex: none; width: 132px; text-align: center; font-weight: 700; font-size: 15px; }
@media (max-width: 420px) { .jam-baris .input { width: 112px; } }
.jam-alur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--blue-50); font-size: 11.5px; }
.jam-alur span { display: flex; flex-direction: column; align-items: center; line-height: 1.25; color: var(--muted); }
.jam-alur b { font-size: 14px; color: var(--blue); }
.jam-alur i { font-style: normal; color: var(--muted); }
.sasaran-pilih { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -6px 0 14px; }
.sasaran-pilih input { position: absolute; opacity: 0; pointer-events: none; }
.sasaran-pilih span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; }
.sasaran-pilih span .ic { width: 20px; height: 20px; color: var(--muted); }
.sasaran-pilih input:checked + span { border-color: var(--orange); background: var(--orange-50); color: var(--orange-d); }
.sasaran-pilih input:checked + span .ic { color: var(--orange-d); }
.sasaran-pilih input:focus-visible + span { outline: 2px solid var(--blue-l); outline-offset: 2px; }
/* Daftar pengumuman admin: satu kartu per pengumuman, baris-baris tersusun */
.pgm-daftar { display: flex; flex-direction: column; gap: 10px; }
.pgm-item { padding: 14px 16px !important; }
.pgm-item.diubah { box-shadow: 0 0 0 2px var(--orange) inset; }
.pgm-item-atas { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pgm-item-judul { font-size: 14.5px; font-weight: 700; line-height: 1.35; min-width: 0; word-break: break-word; }
.pgm-item-atas .badge { flex: none; }
.pgm-item-isi { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 6px 0 8px; word-break: break-word; }
.pgm-item-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.pgm-item-info span { display: inline-flex; align-items: center; gap: 5px; }
.pgm-item-info .ic { width: 14px; height: 14px; }
.pgm-item-aksi { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line); }
.pgm-item-aksi .hapus { color: var(--red); margin-left: auto; }
/* Log presensi guru: satu baris per percobaan, geser ke samping */
.tbl-log th, .tbl-log td { white-space: nowrap; vertical-align: middle; }
/* Kartu unduh laporan di rekap admin */
.unduh-rekap { margin-top: 12px; }
.unduh-judul { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.unduh-judul > div { display: flex; flex-direction: column; }
.unduh-judul b { font-size: 14.5px; }
.unduh-judul span:not(.li-ic) { font-size: 12.5px; color: var(--muted); }
.unduh-pilih { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.unduh-pilih .field { margin: 0; }
.unduh-pilih .btn { justify-content: center; height: 46px; }
@media (max-width: 600px) { .unduh-pilih { grid-template-columns: 1fr 1fr; } .unduh-pilih .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .unduh-pilih { grid-template-columns: 1fr; } }

/* ── Pita "Hari ini hari ujian" di Beranda ── */
.info-ujian { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 10px 14px; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #e5873a 50%, #d9480f 100%); box-shadow: 0 10px 22px -14px rgba(217, 72, 15, .8); }
.info-ujian-ikon { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.info-ujian-ikon .ic { width: 20px; height: 20px; }
.info-ujian-isi { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.info-ujian-isi small { font-size: 11.5px; font-weight: 600; opacity: .92; }
.info-ujian-isi b { font-size: 14.5px; font-weight: 800; }
.info-ujian > .ic { opacity: .85; flex: none; }

/* ── Agenda sekolah ── */
.ujian-kepala.agenda-kepala { background: linear-gradient(135deg, #f59e0b, #e5873a 55%, #d9480f); box-shadow: 0 10px 24px -14px rgba(217, 72, 15, .7); }
.ujian-kepala + .card, .ujian-kepala + .seg-tabs { margin-top: 12px; }
.agenda-daftar { padding: 6px 16px !important; }
.agenda-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda-item:first-child { border-top: 0; }
.agenda-ikon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-d); }
.agenda-ikon .ic { width: 20px; height: 20px; }
.agenda-isi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agenda-isi b { font-size: 14.5px; }
.agenda-tgl { font-size: 12.5px; color: var(--orange-d); font-weight: 600; }
.agenda-isi p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 4px 0 0; word-break: break-word; }
.agenda-lewat { opacity: .6; }
.agenda-presensi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.agenda-presensi .btn { min-width: 120px; justify-content: center; }
.agenda-presensi small { font-size: 11.5px; }
.agenda-presensi .badge .ic { width: 13px; height: 13px; }
.agenda-hadir-ringkas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.agenda-hadir-ringkas .badge .ic { width: 13px; height: 13px; }
.agenda-hadir-daftar { margin-bottom: 8px; font-size: 13px; }
.agenda-hadir-daftar summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 12.5px; }
.agenda-hadir-daftar ol { margin: 8px 0 0 18px; line-height: 1.7; }
.isian-presensi { margin: -4px 0 12px 30px; padding-left: 12px; border-left: 2px solid var(--orange-50); }
.cek-baris { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.cek-baris input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin-top: 1px; }
.cek-baris span { display: flex; flex-direction: column; gap: 2px; }
.cek-baris small { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ── Jadwal ujian ── */
.ujian-kepala { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 14px 16px; border-radius: 18px; color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2553a0 60%, #1e3a8a); box-shadow: 0 10px 24px -14px rgba(30, 58, 138, .7); scroll-margin-top: 80px; }
.ujian-kepala .li-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.ujian-kepala > div { display: flex; flex-direction: column; min-width: 0; }
.ujian-kepala b { font-size: 15.5px; }
.ujian-kepala span:not(.li-ic) { font-size: 12.5px; opacity: .9; }
.ujian-daftar .sched-bar { background: var(--blue); }
.ujian-daftar .ujian-btq .sched-bar { background: var(--green); }
.ujian-daftar .ujian-praktek .sched-bar, .ujian-daftar .ujian-lain .sched-bar { background: var(--orange); }
.ujian-impor { margin-bottom: 12px; }
.ujian-impor form { margin-top: 4px; }
.ujian-periode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.ujian-periode > div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.ujian-periode-aksi { display: flex; gap: 6px; }
.ujian-ubah-periode { flex-basis: 100%; }
.ujian-ubah-periode summary { list-style: none; display: inline-flex; cursor: pointer; }
.ujian-ubah-periode summary::-webkit-details-marker { display: none; }
.ujian-ubah-periode form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); max-width: 520px; }
.ujian-sesi + .ujian-sesi { margin-top: 10px; }
.ujian-sesi-atas { display: flex; align-items: flex-start; gap: 12px; }
.ujian-sesi-atas > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ujian-sesi-atas b { font-size: 14.5px; }
.ujian-jam { flex: none; font-weight: 700; font-size: 13px; color: var(--blue); background: var(--blue-50); padding: 5px 9px; border-radius: 10px; }
.ujian-sesi.jenis-btq .ujian-jam { color: var(--green); background: var(--green-50); }
.ujian-pengawas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.ujian-pengawas span { display: flex; gap: 6px; min-width: 0; }
.ujian-pengawas b { flex: none; width: 24px; color: var(--muted); }
/* Satu baris = satu kelas: [✓] 1A [cari pengawas…] */
.ujian-kelas-pilih { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ujian-kelas:has(input[type=checkbox]:not(:checked)) .input { opacity: .5; }
.ujian-kelas-cepat { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.ujian-kelas { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; }
.ujian-kelas input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue); flex: none; }
.ujian-kelas b { width: 28px; font-size: 14px; flex: none; }
.ujian-kelas .input { flex: 1; min-height: 40px; padding: 6px 10px; font-size: 14px; min-width: 0; }
.alias-daftar { display: flex; flex-direction: column; gap: 6px; }
.alias-baris { display: block; padding: 9px 0; border-top: 1px solid var(--line); }
.alias-baris:first-child { border-top: 0; }
.alias-nama { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.alias-nama small { color: var(--muted); font-size: 11.5px; }
.alias-nama small b { color: var(--text); }
.alias-nama { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.alias-nama > b { font-size: 13.5px; font-weight: 700; min-width: 0; }
.alias-baris.belum .alias-nama > b { color: var(--red); font-weight: 600; font-size: 12.5px; }
.alias-jumlah { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-50); padding: 3px 8px; border-radius: 99px; }
.alias-jumlah .ic { width: 13px; height: 13px; }
.alias-baris .input { min-height: 38px; padding: 6px 10px; font-size: 13px; }
.alias-baris.belum b { color: var(--red); }
.alias-baris.belum .input { border-color: var(--red); }

/* Nilai rapor siswa (urut seperti buku rapor) */
.rapor-siswa { max-width: 760px; margin-top: 4px; }
.kokuri-item { align-items: flex-start; }
/* Ekstrakurikuler: nama & deskripsi tampil utuh (tidak dipotong "…") */
.ekskul-item { align-items: flex-start; }
.ekskul-item .li-main b, .ekskul-item .li-main span { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; }
.ekskul-item .li-main span { margin-top: 3px; font-size: 12.5px; line-height: 1.5; }
.ekskul-item .badge { flex: none; margin-top: 2px; }
.kokuri-teks { display: block; margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text); white-space: normal; }

/* Jurnal kelas (LMS) */
.jurnal-filter { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 14px; }
.jurnal-filter .field { margin: 0; }
@media (max-width: 520px) { .jurnal-filter { grid-template-columns: 1fr; } }
.jurnal-slot { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.jurnal-slot .sched-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--blue); flex: none; }
.jurnal-slot > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jurnal-slot b { font-size: 15px; }
.jurnal-slot span:not(.badge):not(.sched-bar) { font-size: 12.5px; color: var(--muted); }
.jurnal-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; font-family: inherit; }
.jurnal-aksi { display: flex; gap: 10px; justify-content: flex-end; }
.jurnal-aksi .btn-primary { flex: 1; justify-content: center; max-width: 320px; }
.list-item.jurnal-aktif { background: var(--blue-50); }
.jurnal-baca + .jurnal-baca { margin-top: 10px; }
.jurnal-baca p { margin: 0; font-size: 14px; line-height: 1.6; white-space: normal; }
/* Rekap absen kelas */
.rekap-form .field { margin-bottom: 12px; }
@media (max-width: 480px) { .rekap-form .grid-2 { grid-template-columns: 1fr; gap: 0; } }
.rekap-aksi { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.rekap-aksi .btn { justify-content: center; }
.tbl.rekap-kelas th:nth-child(n+3), .tbl.rekap-kelas td:nth-child(n+3) { text-align: center; font-weight: 600; width: 44px; }
/* Sudah absen datang → pilihan lapor dikunci */
.lapor-pilih.terkunci .lapor-opsi span { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.lapor-pilih.terkunci .lapor-opsi { pointer-events: none; }
.lapor-kunci { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: -4px 0 4px; }
.lapor-kunci .ic { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 1px; }

/* Kotak Datang/Pulang ringkas (halaman Absensi) */
.kartu-waktu { padding: 10px; }
.kartu-waktu .times { gap: 8px; }
.kartu-waktu .time-box { padding: 8px 12px; border-radius: 12px; }
.kartu-waktu .time-box small { font-size: 11px; }
.kartu-waktu .time-box small .ic { width: 13px; height: 13px; }
.kartu-waktu .time-box b { display: inline-block; font-size: 18px; margin: 1px 6px 0 0; vertical-align: middle; }
.kartu-waktu .time-box .badge, .kartu-waktu .time-box > span.small { vertical-align: middle; font-size: 10.5px; padding: 2px 7px; }

/* Riwayat absen */
.hist-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: 0; }
.hist-date { width: 46px; text-align: center; flex: none; }
.hist-date b { display: block; font-size: 18px; line-height: 1.1; }
.hist-date span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.hist-main { flex: 1; display: flex; gap: 16px; font-size: 13px; }
.hist-main small { display: block; color: var(--muted); font-size: 11px; }

/* Absensi kelas (wali kelas) */
.stu { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stu:last-child { border-bottom: 0; }
.stu-no { width: 24px; text-align: center; color: var(--muted); font-size: 12px; flex: none; }
.stu-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.3; }
.stu-name small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.seg { display: inline-grid; grid-template-columns: repeat(4, 34px); gap: 4px; flex: none; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: #eef1f6; color: #7b879b; cursor: pointer; user-select: none; }
.seg input:checked + label.H { background: var(--green); color: #fff; }
.seg input:checked + label.S { background: var(--amber); color: #fff; }
.seg input:checked + label.I { background: var(--blue); color: #fff; }
.seg input:checked + label.A { background: var(--red); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--blue-l); outline-offset: 2px; }
.sticky-save { position: sticky; bottom: calc(var(--nav-h) + 42px + var(--safe-b)); margin-top: 14px; z-index: 5; }

/* ── Perpus ─────────────────────────────────────────────── */
.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.book { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.book-cover { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: linear-gradient(150deg, var(--blue-100), var(--blue-50)); box-shadow: var(--shadow); position: relative; display: grid; place-items: center; color: var(--blue); }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.book-cover .ic { width: 38px; height: 38px; opacity: .55; }
.book-cover .badge { position: absolute; left: 8px; top: 8px; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.book b { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.loan { display: flex; gap: 12px; align-items: center; }
.loan + .loan { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.loan-cover { position: relative; width: 48px; height: 64px; border-radius: 9px; overflow: hidden; background: var(--blue-50); flex: none; display: grid; place-items: center; color: var(--blue); }
.loan-cover img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* Tab jenis koleksi (sama dengan perpus web) */
.kol-tabs {
    display: flex; gap: 4px; margin-top: 16px; padding: 6px; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
    overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.kol-tabs::-webkit-scrollbar { display: none; }
.kol-tabs, .chips, .seg-tabs { position: relative; }
.kol-pendek { display: none; }
.kol-tab {
    flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 14px; border-radius: 13px;
    color: #64748b; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background .15s, color .15s;
}
.kol-tab .ic { width: 17px; height: 17px; }
.kol-tab b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef1f6; color: #64748b; font-size: 11px; font-weight: 700; text-align: center; }
.kol-tab:hover { color: var(--blue); background: var(--blue-50); }
.kol-tab.active { color: #fff; background: linear-gradient(90deg, var(--blue-d), #3b7be0); box-shadow: 0 6px 16px rgba(37,83,160,.28); }
.kol-tab.active b { background: rgba(255,255,255,.25); color: #fff; }

/* ── LMS / jadwal ───────────────────────────────────────── */
.sched { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sched:last-child { border-bottom: 0; }
.sched-time { width: 54px; flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.35; }
.sched-time b { color: var(--text); font-size: 13px; display: block; }
.sched-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--blue); flex: none; }
.sched-main { flex: 1; min-width: 0; }
.sched-main b { display: block; font-size: 13.5px; font-weight: 600; }
.sched-main span { font-size: 12px; color: var(--muted); }
.sched.now { background: var(--orange-50); margin: 0 -10px; padding: 10px; border-radius: 12px; border-bottom-color: transparent; }
.sched.now .sched-bar { background: var(--orange); }

/* ── Profil ─────────────────────────────────────────────── */
.profile-head { text-align: center; color: #fff; padding: 26px 16px 22px; border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, var(--blue-l), var(--blue) 50%, var(--blue-d)); box-shadow: 0 12px 28px rgba(37,83,160,.28); }
.profile-head .avatar { margin: 0 auto 10px; background: linear-gradient(135deg, var(--orange), var(--orange-d)); }
.profile-head h2 { font-size: 17px; font-weight: 700; }
.profile-head p { opacity: .82; font-size: 12.5px; margin-top: 2px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 13.5px; cursor: pointer; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row > span:not(.li-ic) { flex: 1; }
.menu-row small { font-weight: 400; font-size: 11.5px; }
.menu-row .ic:last-child { width: 18px; height: 18px; color: #b3bdcc; }
.menu-row.danger { color: var(--red); }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 60;
    max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: #172036; color: #fff; font-size: 13px; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--green); } .toast.err { background: var(--red); }

/* Lembar hasil absen */
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 70; display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.show { display: flex; animation: fade .2s; }
.sheet { width: 100%; max-width: 440px; background: #fff; border-radius: 26px 26px 0 0; padding: 26px 22px calc(22px + var(--safe-b)); text-align: center; animation: up .25s ease; }
.sheet-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--green-50); color: var(--green); }
.sheet-ic .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.sheet-ic.err { background: var(--red-50); color: var(--red); }
.sheet-ic.warn { background: var(--amber-50); color: var(--amber); }
.sheet h3 { font-size: 18px; font-weight: 700; }
.sheet p { color: var(--muted); font-size: 13.5px; margin: 6px 0 18px; }
.sheet .big { font-size: 34px; font-weight: 800; color: var(--blue); margin: 2px 0 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* Layar pembuka MUTUKAWIAPPS (sekali setiap aplikasi dibuka) */
#splash { display: none; }
.pakai-splash #splash {
    display: flex; position: fixed; inset: 0; z-index: 300; align-items: center; justify-content: center;
    background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--bg) 60%, #e9effa 100%);
    transition: opacity .4s ease;
}
.pakai-splash body { overflow: hidden; }
#splash.hilang { opacity: 0; pointer-events: none; }
.splash-isi { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px; animation: splashMasuk .6s ease both; }
.splash-logo { width: 104px; height: 104px; border-radius: 30px; background: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(37,83,160,.18); margin-bottom: 8px; }
.splash-logo img { width: 80px; height: 80px; object-fit: contain; }
.splash-teks { font-size: 34px; font-weight: 800; letter-spacing: .03em; color: var(--blue); line-height: 1.1; }
.splash-teks em { font-style: normal; color: var(--orange); }
.splash-isi small { color: var(--muted); font-size: 12.5px; }
.splash-muat { width: 120px; height: 4px; border-radius: 4px; background: var(--blue-100); overflow: hidden; margin-top: 14px; }
.splash-muat i { display: block; width: 40%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--orange)); animation: splashJalan 1.1s ease-in-out infinite; }
@keyframes splashMasuk { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes splashJalan { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
@media (prefers-reduced-motion: reduce) { .splash-isi, .splash-muat i { animation: none; } }

/* Login */
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.login-top {
    padding: calc(34px + env(safe-area-inset-top, 0px)) 24px 70px; color: #fff; text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(120% 140% at 100% 0%, var(--blue-l), var(--blue) 50%, var(--blue-d));
}
.login-top::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; bottom: -110px; background: rgba(229,135,58,.6); }
.login-top img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 12px; background: #fff; border-radius: 20px; padding: 8px; position: relative; z-index: 1; }
.login-top h1 { font-size: 22px; font-weight: 800; position: relative; z-index: 1; }
.login-top p { font-size: 12.5px; opacity: .85; position: relative; z-index: 1; }
.login-card { margin: -46px 16px 24px; position: relative; z-index: 2; padding: 22px 18px; }
.login-side { display: none; }

/* Tabel (komputer) */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8fafd; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.only-desktop { display: none; }

/* ── Navbar: merek + nama halaman ───────────────────────── */
.appbar-brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.appbar-brand span { font-weight: 800; font-size: 16px; letter-spacing: .02em; color: var(--blue); white-space: nowrap; }
.appbar-brand span b { color: var(--orange); font-weight: 800; }
.appbar-title { display: none; }
.page-chip {
    flex: none; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
    background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(37,83,160,.22);
}

/* ── Lonceng pengingat ──────────────────────────────────── */
.notif { position: relative; flex: none; }
.notif-btn { position: relative; }
.notif-btn.ada { color: var(--orange-d); }
.notif-btn.ada .ic { animation: goyang 1.6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes goyang { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(12deg); } 20%, 40% { transform: rotate(-12deg); } }
.notif-badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.notif-panel {
    position: fixed; left: 12px; right: 12px; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 50;
    background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(23,32,54,.2); overflow: hidden;
}
.notif-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.notif-head b { display: block; font-size: 14px; }
.notif-head .small { display: block; }
.notif-list { max-height: 50vh; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; }
.notif-item.baru { background: var(--orange-50); }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-body b { display: block; font-size: 13px; }
.notif-body span { display: block; font-size: 12px; color: var(--muted); }
.notif-body .notif-st { font-weight: 600; margin-top: 2px; }
.notif-st.segera { color: var(--orange-d); } .notif-st.jalan { color: var(--green); } .notif-st.selesai { color: #94a3b8; }
.notif-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; }
.notif-select { border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: #fff; margin: 0 2px; }

/* ── Progres rapor & nilai ──────────────────────────────── */
.progress-hero { display: flex; align-items: center; gap: 16px; position: relative; }
.ring { width: 96px; height: 96px; transform: rotate(-90deg); flex: none; }
.ring-bg { fill: none; stroke: var(--blue-50); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--orange); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .6s; }
.ring-fg.done { stroke: var(--green); }
.ring-txt { position: absolute; left: 16px; width: 96px; text-align: center; line-height: 1.1; }
.ring-txt b { display: block; font-size: 19px; font-weight: 800; color: var(--blue); }
.ring-txt span { font-size: 10.5px; color: var(--muted); }
.prog-item { border-bottom: 1px solid var(--line); }
.prog-item:last-child { border-bottom: 0; }
.prog-item summary { list-style: none; cursor: pointer; padding: 12px 0; display: block; }
.prog-item summary::-webkit-details-marker { display: none; }
.prog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prog-top b { font-size: 13.5px; font-weight: 600; }
.bar { display: block; height: 8px; border-radius: 8px; background: #eef1f6; overflow: hidden; margin: 8px 0 5px; }
.bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--orange), #f3a35c); }
.bar span.done { background: var(--green); }
.prog-detail { padding: 0 0 14px; }
.prog-detail .kv { font-size: 12.5px; padding: 8px 0; }
.prog-detail p { line-height: 1.55; }
.jurnal-item .loan { align-items: flex-start; }
.jurnal-item .li-main span.badge { display: inline-flex; width: auto; }
.jurnal-isi { font-size: 13.5px; line-height: 1.65; background: var(--bg); border-radius: 12px; padding: 12px 14px; white-space: normal; }
.score { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-size: 26px; font-weight: 800; flex: none; }

/* Pilihan jadwal saya / per kelas */
.seg-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg-tabs a .ic { width: 16px; height: 16px; }
.seg-tabs a.active { background: var(--orange); color: #fff; }

/* ── Panel admin: sidebar + navbar ─────────────────────────── */
.adm .content { padding-bottom: 40px; max-width: 1240px; }
.adm-bar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    background: rgba(243, 246, 252, .9); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
}
.adm-judul { flex: 1; min-width: 0; }
.adm-judul h1 { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-judul small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-user { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.adm-nama { display: none; }
/* Sidebar sebagai laci di HP */
.adm .sidebar {
    display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 80;
    padding: 22px 16px; background: #fff; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(15,23,42,.18);
}
.adm-buka .sidebar { transform: none; }
.adm-latar { display: none; }
.adm-buka .adm-latar { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, .45); }
.adm .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.adm .brand img { width: 40px; height: 40px; object-fit: contain; }
.adm .brand b { display: block; font-size: 16px; color: var(--blue); font-weight: 800; }
.adm .brand b em { font-style: normal; color: var(--orange); }
.adm .brand small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.adm .side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.adm .side-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #5b6a82; font-weight: 500; }
.adm .side-link:hover { background: var(--blue-50); color: var(--blue); }
.adm .side-link.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,83,160,.25); font-weight: 600; }
.adm .side-link span { flex: 1; }
.side-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.adm-menu { position: relative; }
.adm-menu .side-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 10px; }
.cuti-kartu { display: flex; flex-direction: column; gap: 10px; }
.cuti-kartu + .cuti-kartu { margin-top: 12px; }
.cuti-aksi { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cuti-aksi .input { flex: 1 1 200px; min-height: 40px; padding: 8px 12px; font-size: 13.5px; }
.adm .pasang-admin { margin-top: 8px; border: 1.5px dashed var(--orange); background: var(--orange-50); color: var(--orange-d); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.adm .side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--bg); }
.adm .side-user-txt { flex: 1; min-width: 0; }
.adm .side-user-txt b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm .side-user-txt small { display: block; font-size: 11px; color: var(--muted); }
.adm .side-user .avatar { width: 38px; height: 38px; font-size: 13px; }

/* Data guru / siswa */
.cari-baris { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.cari-baris .search { flex: 1 1 220px; }
.cari-baris select { flex: 0 1 200px; min-height: 48px; }
.tbl td.aksi { text-align: right; white-space: nowrap; }
.tbl tr:hover td { background: #f8fafd; }
.tbl .nm b { display: block; font-weight: 600; }
.tbl .nm small { color: var(--muted); }
.kartu-data { display: none; }
.detail-kepala { display: flex; align-items: center; gap: 16px; }
.detail-kepala .avatar { width: 64px; height: 64px; font-size: 22px; }
.detail-kepala h2 { font-size: 18px; font-weight: 700; }
.halaman-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
@media (max-width: 767px) {
    .tabel-data { display: none; }
    .kartu-data { display: block; }
}

/* ═══ Tablet ═══ */
@media (min-width: 640px) {
    .books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shortcuts { grid-template-columns: repeat(4, 1fr); max-width: 520px; }
    .absen-card { margin-left: 18px; margin-right: 18px; }
}

/* ═══ Komputer: sidebar menggantikan navigasi bawah ═══ */
@media (min-width: 1024px) {
    body { font-size: 14.5px; }
    .shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
    .sidebar {
        display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 16px;
        background: #fff; border-right: 1px solid var(--line);
    }
    .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
    .brand img { width: 40px; height: 40px; object-fit: contain; }
    .brand b { display: block; font-size: 16px; color: var(--blue); font-weight: 800; letter-spacing: -.01em; }
    .brand b em { font-style: normal; color: var(--orange); }
    .brand small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
    .side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
    .side-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #5b6a82; font-weight: 500; transition: background .15s, color .15s; }
    .side-link:hover { background: var(--blue-50); color: var(--blue); }
    .side-link.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,83,160,.25); font-weight: 600; }
    .side-link.is-absen { background: var(--orange-50); color: var(--orange-d); font-weight: 600; margin: 6px 0; }
    .side-link.is-absen.active { background: linear-gradient(135deg, var(--orange), var(--orange-d)); color: #fff; box-shadow: 0 6px 16px rgba(229,135,58,.32); }
    .side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--bg); }
    .side-user-txt { flex: 1; min-width: 0; }
    .side-user-txt b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .side-user-txt small { display: block; font-size: 11px; color: var(--muted); }
    .side-user .avatar { width: 38px; height: 38px; font-size: 13px; }

    .bottom-nav { display: none; }
    .appbar { padding: 18px 32px; background: rgba(243,246,252,.9); }
    .appbar-title { font-size: 21px; }
    .appbar-brand, .page-chip { display: none; }
    .appbar-title { display: block; }
    .notif-panel { position: absolute; left: auto; right: 0; top: 48px; width: 380px; }
    .seg-tabs { margin: 14px 0 0; padding: 2px 2px 4px; flex-wrap: wrap; }
    .kol-tab { flex: 1; padding: 12px 14px; font-size: 14px; }
    .adm .sidebar { position: sticky; transform: none; box-shadow: none; width: auto; z-index: 1; border-right: 1px solid var(--line); }
    .adm-menu { display: none; }
    .adm-bar { padding: 16px 32px; }
    .adm-judul h1 { font-size: 21px; }
    .adm-nama { display: inline; }
    .content { padding: 8px 32px 40px; }
    .toast { bottom: 28px; }
    .sticky-save { bottom: 16px; }

    .chips { margin: 12px 0 0; padding-left: 2px; padding-right: 2px; flex-wrap: wrap; }
    .hscroll { margin: 0; padding: 2px 2px 8px; grid-auto-columns: 150px; }
    .books { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }

    .layout-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
    .layout-2 > .col + .col { margin-top: 0; }
    .layout-2 > .col > .card:first-child, .layout-2 > .col > .section-head:first-child { margin-top: 0; }
    .layout-2 > .col > .section-head:first-child { margin-top: 2px; }
    .absen-card { margin: 16px 0 0; }
    .hero { padding: 26px 28px; }
    .hero h2 { font-size: 24px; }
    .only-desktop { display: block; }
    .only-mobile { display: none !important; }

    .sheet-bg { align-items: center; }
    .sheet { border-radius: 26px; }

    .login-wrap { flex-direction: row; align-items: center; justify-content: center; padding: 32px; background: linear-gradient(135deg, #eef3fc, #fdf2e8); }
    .login-box { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 920px; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(23,32,54,.12); }
    .login-top { padding: 48px 40px; text-align: left; display: flex; flex-direction: column; justify-content: center; }
    .login-top img { margin: 0 0 18px; }
    .login-top h1 { font-size: 30px; }
    .login-side { display: block; margin-top: 18px; position: relative; z-index: 1; font-size: 13.5px; opacity: .9; }
    .login-side li { margin: 6px 0; }
    .login-card { margin: 0; box-shadow: none; padding: 44px 40px; border-radius: 0; }
}
@media (min-width: 1280px) {
    .shell { grid-template-columns: 280px minmax(0, 1fr); }
}

/* Presensi agenda di menu Presensi + tautan peta (admin) */
.presensi-agenda { margin-bottom: 16px; }
.presensi-agenda .agenda-presensi small { display: inline-flex; align-items: center; gap: 4px; }
.presensi-agenda .agenda-presensi small .ic, .presensi-agenda .agenda-presensi small svg { width: 13px; height: 13px; }
.agenda-peta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--blue); margin-left: 4px; }
.agenda-peta svg { width: 12px; height: 12px; }

/* Presensi kegiatan di tombol besar + pop-up peta */
.absen-btn.agenda { background: linear-gradient(145deg, #f3a25f, var(--orange) 50%, #c96a22); }
.absen-btn.agenda span { font-size: 15px; }
.absen-agenda-judul { text-align: center; margin: -4px 0 18px; }
.absen-agenda-judul b { display: block; font-size: 16px; font-weight: 800; color: var(--text, #1e293b); }
.absen-agenda-judul span { font-size: 12.5px; color: var(--orange); font-weight: 600; }
.absen-agenda-hadir { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--green); background: var(--green-50); border-radius: 999px; padding: 6px 12px; margin: 0 auto 10px; width: fit-content; max-width: 100%; }
.absen-agenda-hadir.nanti { color: var(--orange); background: #fdf1e7; }
.absen-agenda-hadir svg { width: 14px; height: 14px; flex: none; }
.peta-agenda-sheet { text-align: left; }
.peta-agenda-sheet h3 { text-align: center; }
.peta-agenda-sheet .peta-agenda-sub { text-align: center; margin: 2px 0 12px; }
.peta-agenda { height: 260px; border-radius: 16px; overflow: hidden; background: #eef1f6; z-index: 0; }
.peta-gagal { height: 100%; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--muted); }
.peta-agenda-info { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); margin: 10px 2px 16px; }
.peta-agenda-info span { font-weight: 700; color: var(--text, #1e293b); }
.peta-agenda-info .dekat { color: var(--green); }
.peta-agenda-info .jauh { color: var(--red); }
.peta-agenda-info small, .peta-agenda-info b { flex-basis: 100%; }
.pin-saya { width: 22px; height: 22px; border-radius: 50%; background: var(--orange, #e5873a); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(229,135,58,.35), 0 2px 6px rgba(0,0,0,.3); }
.pin-sekolah { width: 26px; height: 26px; border-radius: 50%; background: var(--blue, #2553a0); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }.peta-alamat { flex-basis: 100%; display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; font-weight: 700; color: var(--text, #1e293b); line-height: 1.4; }
.peta-alamat svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--orange, #e5873a); }
.peta-alamat .memuat { color: var(--muted); font-weight: 500; font-style: italic; }

/* Hapus satu kehadiran agenda (admin) */
.agenda-hadir-daftar li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 4px 0; }
.hadir-hapus { display: inline; margin-left: auto; }
.btn-hapus-hadir { display: inline-flex; align-items: center; gap: 3px; border: 1px solid #f5c2c2; background: #fff; color: var(--red); font: inherit; font-size: 11.5px; font-weight: 700; border-radius: 8px; padding: 2px 8px; cursor: pointer; }
.btn-hapus-hadir:hover { background: var(--red-50); }
.btn-hapus-hadir svg { width: 12px; height: 12px; }.agenda-hadir-daftar ol { counter-reset: hadir; }
.agenda-hadir-daftar li::before { counter-increment: hadir; content: counter(hadir) '.'; font-weight: 700; color: var(--muted); min-width: 16px; }

/* Pengaturan lokasi: Kampus 1 & Kampus 2 */
.kampus-kotak { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 14px 14px 4px; margin-bottom: 14px; background: #fbfcfe; }
.kampus-judul { display: flex; align-items: center; gap: 6px; font-size: 14.5px; margin-bottom: 10px; flex-wrap: wrap; }
.kampus-judul svg { width: 16px; height: 16px; color: var(--orange); }
/* Admin: Guru belum presensi */
.belum-info p{margin:0 0 4px;font-size:13px}
.belum-daftar{display:flex;flex-direction:column;gap:8px}
.belum-item{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;padding:12px 14px}
.belum-nama{flex:1;min-width:180px;display:flex;flex-direction:column}
.belum-aksi{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.belum-form{display:flex;gap:4px;align-items:center;margin:0}
.belum-jam{width:7.2rem;padding:6px 8px;font-variant-numeric:tabular-nums}
.belum-ket{width:auto;padding:6px 8px}
.belum-lupa{color:var(--green)}