/* Absen APPku – tema biru, mobile-first */
:root{--b:#1d4ed8;--b2:#2563eb;--bl:#dbeafe;--bd:#1e3a8a;--ok:#15803d;--okl:#dcfce7;--warn:#b45309;--warnl:#fef3c7;--bad:#b91c1c;--badl:#fee2e2;--tx:#0f172a;--mu:#64748b;--bg:#f1f5f9;--card:#fff;--line:#e2e8f0;--r:12px}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--tx);background:var(--bg)}
a{color:var(--b2)}h1{font-size:1.4rem;margin:.2em 0 .6em}h2{font-size:1.15rem;margin:1.2em 0 .5em}
img{max-width:100%}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--b);color:#fff;padding:.5rem 1rem}
.brand{display:flex;align-items:center;gap:.5rem;color:#fff;text-decoration:none;font-weight:700}.brand img{border-radius:8px;background:#fff}
.navtoggle{background:none;border:0;color:#fff;font-size:1.6rem;cursor:pointer}
.nav{display:none;width:100%;flex-direction:column;padding:.5rem 0}.nav.open{display:flex}
.nav a,.nav .linklike{color:#fff;text-decoration:none;padding:.55rem .4rem;border-radius:8px;text-align:left}.nav a.active,.nav a:hover{background:var(--bd)}
@media(min-width:900px){.navtoggle{display:none}.nav{display:flex;flex-direction:row;flex-wrap:wrap;width:auto;padding:0;gap:.1rem}.nav a,.nav .linklike{padding:.4rem .6rem;font-size:.92rem}}
.linklike{background:none;border:0;font:inherit;cursor:pointer;color:var(--b2);padding:0}
.wrap{max-width:1100px;margin:0 auto;padding:1rem}.narrow{max-width:440px;margin:2rem auto}
.card{background:var(--card);border-radius:var(--r);padding:1rem;margin-bottom:1rem;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.foot{text-align:center;color:var(--mu);font-size:.8rem;padding:1.5rem 1rem}
.row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-end;margin:.5rem 0}.between{justify-content:space-between;align-items:center}
.grid2,.grid3{display:grid;gap:.75rem;grid-template-columns:1fr}@media(min-width:700px){.grid2{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:repeat(3,1fr)}}
label{display:flex;flex-direction:column;font-size:.9rem;color:#334155;gap:.2rem;margin:.25rem 0}
label.check{flex-direction:row;align-items:center;gap:.5rem}
input,select,textarea{font:inherit;padding:.55rem .65rem;border:1px solid #cbd5e1;border-radius:8px;background:#fff;min-width:0;max-width:100%}
input:focus,select:focus,textarea:focus{outline:2px solid var(--b2);border-color:var(--b2)}
input[type=checkbox]{width:1.15rem;height:1.15rem}
textarea{min-height:80px;width:100%}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.3rem;background:var(--b);color:#fff;border:0;border-radius:10px;padding:.6rem 1rem;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;min-height:44px}
.btn:hover{background:var(--bd)}.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.ghost{background:#fff;color:var(--b);border:1px solid var(--b)}.btn.danger{background:var(--bad)}.btn.small{padding:.3rem .6rem;min-height:32px;font-size:.85rem}
.btn.huge{font-size:1.35rem;padding:1rem 1.4rem;min-height:64px;border-radius:14px}.btn.block{display:flex;width:100%}
.inline{display:inline}
.alert{padding:.7rem 1rem;border-radius:10px;margin-bottom:1rem;border:1px solid}.alert.ok{background:var(--okl);border-color:#86efac}.alert.warn{background:var(--warnl);border-color:#fcd34d}.alert.bad{background:var(--badl);border-color:#fca5a5}.alert.info{background:var(--bl);border-color:#93c5fd}
.badge{display:inline-block;padding:.1rem .5rem;border-radius:999px;font-size:.78rem;font-weight:600;background:#e2e8f0;color:#334155;white-space:nowrap}
.badge.ok{background:var(--okl);color:var(--ok)}.badge.warn{background:var(--warnl);color:var(--warn)}.badge.bad{background:var(--badl);color:var(--bad)}.badge.info{background:var(--bl);color:var(--b)}.badge.muted{color:var(--mu)}
.muted{color:var(--mu)}.small{font-size:.85rem}.center{text-align:center}.mono,.code{font-family:ui-monospace,Consolas,monospace}.code{font-size:1.8rem;letter-spacing:.3em;font-weight:700;color:var(--b)}
.pre{white-space:pre-wrap;background:#f8fafc;padding:.8rem;border-radius:8px;font-family:ui-monospace,monospace;font-size:.85rem;overflow:auto}
.tablewrap{overflow-x:auto;margin:.5rem 0}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{padding:.45rem .5rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{background:#f8fafc;font-weight:600;white-space:nowrap}
.num{text-align:right}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.6rem;margin:.6rem 0}.stats>div{background:var(--bl);border-radius:10px;padding:.7rem;font-size:.85rem;color:var(--bd)}.stats b{display:block;font-size:1.35rem}
.tile{display:block;background:#fff;border-radius:var(--r);padding:1.1rem;text-align:center;font-weight:600;text-decoration:none;box-shadow:0 1px 3px rgba(15,23,42,.08)}
.filters{background:#f8fafc;border-radius:10px;padding:.5rem}
.thumb{width:56px;height:56px;object-fit:cover;border-radius:8px}
.props{display:grid;grid-template-columns:auto 1fr;gap:.2rem 1rem}
.checklist label{flex-direction:row;gap:.4rem}
.sub{color:var(--mu);font-size:.85rem}
/* absen HP */
.attend .clock{font-size:3rem;font-weight:800;text-align:center;color:var(--b);font-variant-numeric:tabular-nums}
.gps{background:#f8fafc;border-radius:8px;padding:.5rem;font-size:.85rem;margin:.5rem 0}
.camwrap{background:#0f172a;border-radius:12px;overflow:hidden;aspect-ratio:4/3;margin:.6rem 0;display:flex;align-items:center;justify-content:center}.camwrap video,.camwrap img{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.result{margin-top:.7rem;padding:.8rem;border-radius:10px;font-weight:600}.result:empty{display:none}.result.ok{background:var(--okl);color:var(--ok)}.result.warn{background:var(--warnl);color:var(--warn)}.result.bad{background:var(--badl);color:var(--bad)}
/* kios */
.kioskbody{background:var(--bd);color:#fff}.kiosk{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem}
.kpanel{width:100%;max-width:720px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.8rem}.kpanel[hidden]{display:none}
.khead{width:100%;display:flex;justify-content:space-between;align-items:center;font-weight:600}
.kclock{font-size:4.5rem;font-weight:800;font-variant-numeric:tabular-nums;line-height:1}.kdate{opacity:.85}
.kcam{position:relative;width:100%;max-width:560px;aspect-ratio:4/3;background:#000;border-radius:18px;overflow:hidden;border:4px solid #60a5fa}.kcam video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.kscan{position:absolute;left:0;right:0;bottom:0;background:rgba(15,23,42,.7);padding:.6rem;font-size:1.1rem}
.khint{opacity:.85}.kmsg{min-height:1.5em;font-weight:600}.kfoot{opacity:.6;margin-top:1rem}
.kiosk .btn{background:#fff;color:var(--bd)}.kiosk .btn.ghost{background:transparent;color:#fff;border-color:#fff}
.bigin{font-size:2rem;text-align:center;letter-spacing:.3em;width:14rem}
.pindots{font-size:2.6rem;letter-spacing:.3em}
.keypad{display:grid;grid-template-columns:repeat(3,96px);gap:.8rem}.key{height:84px;font-size:2rem;font-weight:700;border-radius:18px;border:0;background:#fff;color:var(--bd);cursor:pointer}.key:active{background:var(--bl)}
.ricon{width:140px;height:140px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:5rem;font-weight:800;background:#fff}.ricon.ok{color:var(--ok)}.ricon.warn{color:var(--warn)}.ricon.bad{color:var(--bad)}
#r-title{font-size:2.4rem;margin:0}.kdetail{font-size:1.4rem}
/* kartu ID & slip */
.idcard{width:54mm;min-height:85.6mm;border:1px solid #cbd5e1;border-radius:10px;padding:8px;text-align:center;background:#fff;margin:0 auto}
.idhead{display:flex;align-items:center;gap:6px;justify-content:center;background:var(--b);color:#fff;border-radius:6px;padding:4px;font-weight:700;font-size:12px}.idhead img{width:22px;height:22px;background:#fff;border-radius:4px}
.idphoto{width:26mm;height:30mm;object-fit:cover;border-radius:6px;margin:6px auto;display:block;background:#e2e8f0}.idname{font-weight:700}.qr{width:34mm;height:34mm;image-rendering:pixelated;display:block;margin:4px auto}
.slip{max-width:780px;margin:0 auto}.sliptable td:last-child,.sliptable th:last-child{text-align:right}.tot td{font-weight:700;border-top:2px solid var(--tx)}
.printonly{display:none}
body.wide .wrap{max-width:1280px}
.daylist{list-style:none;padding:0;margin:0}
.daylist li{display:flex;justify-content:space-between;gap:.6rem;padding:.55rem 0;border-bottom:1px solid var(--line)}
.daylist li.today{background:var(--bl);margin:0 -.35rem;padding:.55rem .35rem;border-radius:8px}
table.roster{border-collapse:separate;border-spacing:0;font-size:.78rem}
table.roster th,table.roster td{text-align:center;min-width:2.6rem;padding:.2rem}
table.roster th.sticky,table.roster td.sticky,table.roster th.sticky{position:sticky;left:0;background:#fff;z-index:1;text-align:left;min-width:7.5rem}
table.roster a{display:block;text-decoration:none;color:inherit;border-radius:6px;padding:.25rem .1rem;min-height:1.6rem}
table.roster .off{background:#f1f5f9;color:var(--mu)}
table.roster .empty{color:#cbd5e1}
table.roster .s0{background:#dbeafe}table.roster .s1{background:#dcfce7}table.roster .s2{background:#fef3c7}
table.roster .s3{background:#ede9fe}table.roster .s4{background:#ffedd5}table.roster .s5{background:#fce7f3}
table.roster .today{box-shadow:inset 0 0 0 2px var(--b)}
@media print{.topbar,.foot,.noprint,.alert,.nav{display:none!important}.printonly{display:block}body{background:#fff!important;color:#0f172a!important}.card{box-shadow:none;padding:0;background:#fff!important;color:#0f172a!important;border:0!important}.wrap{padding:0;max-width:none}a{color:inherit;text-decoration:none}table.roster{font-size:7pt}table.roster th,table.roster td{min-width:0;padding:1px;background:#fff!important;color:#0f172a!important}th,td{color:#0f172a!important;background:#fff!important}@page{margin:10mm}}

/* Tema gelap — latar buku tulis, kartu kaca, satu warna aksen */
html.theme-dark body{color:#f8fafc;background:#070b18 radial-gradient(900px 520px at 50% -10%, #1a2458 0%, #070b18 58%)}
html.theme-dark body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background:url("../img/stationery-bg.svg") center/cover no-repeat;opacity:.55}
html.theme-dark .topbar,html.theme-dark main,html.theme-dark .foot,html.theme-dark .kiosk{position:relative;z-index:1}
html.theme-dark .topbar{background:rgba(7,11,24,.9);border-bottom:1px solid rgba(255,255,255,.1);backdrop-filter:blur(10px)}
html.theme-dark .nav a.active,html.theme-dark .nav a:hover{background:color-mix(in srgb, var(--b) 42%, transparent)}
html.theme-dark .brand img{background:transparent}
html.theme-dark a{color:color-mix(in srgb, var(--b) 62%, white)}
html.theme-dark .topbar .brand,html.theme-dark .topbar .brand:hover{color:#fff}
html.theme-dark .linklike{color:color-mix(in srgb, var(--b) 62%, white)}
html.theme-dark .card{background:rgba(16,24,48,.78);border:1px solid rgba(255,255,255,.16);box-shadow:0 16px 40px rgba(0,0,0,.28);color:#f8fafc}
html.theme-dark label{color:#e8eef7}
html.theme-dark input,html.theme-dark select,html.theme-dark textarea{background:rgba(255,255,255,.06);color:#f8fafc;border-color:rgba(255,255,255,.28)}
html.theme-dark input::placeholder,html.theme-dark textarea::placeholder{color:#94a3b8}
html.theme-dark .btn.ghost{background:transparent;color:#f8fafc;border-color:rgba(255,255,255,.4)}
html.theme-dark .muted,html.theme-dark .sub,html.theme-dark .foot{color:#c5d0e0}
html.theme-dark th{background:rgba(255,255,255,.06);color:#f8fafc}
html.theme-dark td{color:#e8eef7;border-color:rgba(255,255,255,.12)}
html.theme-dark .filters,html.theme-dark .pre,html.theme-dark .gps{background:rgba(255,255,255,.05);color:#e8eef7}
html.theme-dark .tile{background:rgba(16,24,48,.78);color:#f8fafc;border:1px solid rgba(255,255,255,.14)}
html.theme-dark .stats>div{background:rgba(255,255,255,.06);color:#f8fafc;border:1px solid rgba(255,255,255,.1)}
html.theme-dark .badge{background:rgba(255,255,255,.1);color:#f8fafc}
html.theme-dark .badge.muted{color:#c5d0e0}
html.theme-dark table.roster th.sticky,html.theme-dark table.roster td.sticky{background:#12182c;color:#f8fafc}
html.theme-dark table.roster .off{background:rgba(255,255,255,.06);color:#c5d0e0}
html.theme-dark table.roster .s0{background:color-mix(in srgb, var(--b) 32%, #12182c)}
html.theme-dark table.roster .s1{background:rgba(34,197,94,.22)}
html.theme-dark table.roster .s2{background:rgba(245,158,11,.22)}
html.theme-dark table.roster .s3{background:rgba(139,92,246,.25)}
html.theme-dark table.roster .s4{background:rgba(249,115,22,.24)}
html.theme-dark table.roster .s5{background:rgba(236,72,153,.24)}
html.theme-dark .daylist li.today{background:rgba(255,255,255,.06)}
html.theme-dark .checklist label,html.theme-dark .props{color:#e8eef7}
html.theme-dark body.kioskbody{background:#070b18;color:#f8fafc}
html.theme-dark .kiosk .btn{background:var(--b);color:#fff}
html.theme-dark .kiosk .btn.ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.45)}
html.theme-dark .key{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.16)}
html.theme-dark .kcam{border-color:var(--b)}
html.theme-dark .ricon{background:rgba(255,255,255,.08)}
body.scene{min-height:100vh}
.login-card{max-width:420px;margin:7vh auto 1rem;padding:1.5rem 1.2rem 1.1rem}
html.theme-dark .login-card{background:rgba(17,25,52,.72);border:1px solid rgba(255,255,255,.22);border-radius:28px;box-shadow:0 24px 60px rgba(0,0,0,.35);backdrop-filter:blur(16px)}
.wordmark{width:min(100%,280px);height:auto;display:block;margin:0 auto .4rem}
.wordmark.preview{width:min(100%,320px);margin:0}
.login-logo{border-radius:16px;background:#fff}
.login-lead{margin:.2rem 0 .8rem}
.tagline{margin:0;font-weight:700;letter-spacing:.04em}
.field{position:relative;display:block}
.field .fico{position:absolute;left:.75rem;top:50%;width:1.15rem;height:1.15rem;transform:translateY(-50%);color:var(--b);pointer-events:none}
.field input{width:100%;padding-left:2.5rem}
.remember{margin:.35rem 0 .8rem}
.loginbtn{text-transform:uppercase;letter-spacing:.08em;border-radius:12px;box-shadow:0 10px 28px color-mix(in srgb, var(--b) 45%, transparent)}
.kpanel .wordmark{width:min(100%,240px)}
.kiosk-link a{color:var(--b);font-weight:700}
html.theme-dark .kiosk-link a{color:color-mix(in srgb, var(--b) 70%, white)}
@media(min-width:800px){.login-card{max-width:460px;margin-top:11vh;padding:2rem 1.7rem 1.3rem}.wordmark{width:min(100%,320px)}}
