:root{--ink:#17332f;--muted:#61716e;--bg:#f3f7f5;--card:#fff;--brand:#0f766e;--brand2:#115e59;--line:#dce6e2;--danger:#b42318;--warn:#b54708;--ok:#067647;--blue:#175cd3;--shadow:0 14px 35px rgba(18,55,48,.09)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);overflow-x:hidden}body{margin:0;min-width:0}body.menu-open{overflow:hidden}a{color:inherit}.app-shell{min-height:100vh}.topbar{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.topbar-inner{max-width:1440px;margin:auto;display:flex;align-items:center;gap:18px;padding:11px 22px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}.brand-mark{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--brand),#22a98c);color:#fff;font-weight:900}.brand>span:last-child{display:grid;line-height:1.15}.brand b{font-size:15px}.brand small{font-size:11px;color:var(--muted);font-weight:500;margin-top:3px}.userbar{margin-left:auto;display:flex;align-items:center;gap:12px}.user-copy{font-size:12px;text-align:right;max-width:220px}.user-copy strong,.user-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-copy span{color:var(--muted)}.menu-toggle{position:relative;width:44px;height:44px;border:1px solid #bdd0ca;border-radius:13px;background:#fff;color:var(--ink);font-size:22px;cursor:pointer}.menu-toggle:hover{background:#eaf4f1}.menu-badge,.item-badge{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;font-size:10px}.menu-badge{position:absolute;right:-7px;top:-7px;border:2px solid #fff}.device-indicators{display:flex;gap:7px;margin-left:auto}.device-pill{border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;background:#eef2f1;color:#52625f}.device-pill.ready{background:#dcfae6;color:var(--ok)}.device-pill.outside,.device-pill.poor,.device-pill.stale{background:#fffaeb;color:var(--warn)}.device-pill.rejected{background:#fef3f2;color:var(--danger)}
.menu-backdrop{position:fixed;inset:0;z-index:39;background:rgba(15,32,29,.46);backdrop-filter:blur(2px)}.menu-drawer{position:fixed;z-index:40;right:0;top:0;bottom:0;width:min(390px,92vw);background:#f9fcfb;box-shadow:-24px 0 60px rgba(10,40,35,.2);transform:translateX(105%);transition:transform .22s ease;display:flex;flex-direction:column}.menu-drawer.open{transform:none}.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--line);background:#123b36;color:#fff}.drawer-head strong,.drawer-head small{display:block}.drawer-head small{color:#a6d5cc;font-size:11px;margin-top:3px}.drawer-head button{border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:10px;width:38px;height:38px;font-size:24px;cursor:pointer}.drawer-nav{padding:12px 14px 24px;overflow:auto}.menu-group{border-bottom:1px solid var(--line)}.menu-group summary{padding:13px 7px;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#42645e;cursor:pointer;list-style:none}.menu-group summary::-webkit-details-marker{display:none}.menu-group summary:after{content:'+';float:right;font-size:17px}.menu-group[open] summary:after{content:'−'}.menu-group>div{padding:0 0 9px}.menu-group a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 11px;border-radius:10px;text-decoration:none;font-size:14px}.menu-group a:hover,.menu-group a.active{background:#e2f2ed;color:#075e54;font-weight:750}.drawer-logout{padding:18px 5px}.drawer-logout .btn{width:100%}
.main{min-width:0}.content-wrap{width:min(1400px,100%);margin:auto;padding:24px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:4px 0 22px}.page-head h1{font-size:28px;line-height:1.1;margin:0;letter-spacing:-.03em}.page-head p,.section-copy{color:var(--muted);margin:7px 0 18px}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow)}.grid{display:grid;gap:18px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.role-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.metric{padding:18px;background:linear-gradient(145deg,#fff,#f8fcfa);border:1px solid var(--line);border-radius:18px}.metric small{color:var(--muted);display:block}.metric strong{font-size:30px;display:block;margin-top:7px}.quick{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}.quick a{text-decoration:none}.flash{padding:13px 16px;border-radius:12px;margin-bottom:14px;border:1px solid}.flash-success{background:#ecfdf3;color:var(--ok);border-color:#abefc6}.flash-error{background:#fef3f2;color:var(--danger);border-color:#fecdca}.flash-info{background:#eff8ff;color:var(--blue);border-color:#b2ddff}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse;font-size:13px;background:#fff}th,td{padding:11px 13px;text-align:left;border-bottom:1px solid #edf1ef;white-space:nowrap;vertical-align:top}th{background:#f1f7f4;color:#31554f;position:sticky;top:0;z-index:1}tr:hover td{background:#fbfdfc}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}label{font-size:13px;font-weight:700}.input,select,textarea,input[type=date],input[type=month],input[type=time],input[type=email],input[type=password],input[type=file]{width:100%;border:1px solid #bfcfca;border-radius:11px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}textarea{min-height:100px;resize:vertical}.btn{border:0;border-radius:12px;padding:11px 16px;background:var(--brand);color:#fff;font-weight:750;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:var(--brand2)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:#e8f1ee;color:#244b45}.btn-danger{background:var(--danger)}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.status-pill{display:inline-block;border-radius:999px;padding:4px 9px;background:#e8f7f3;color:#087060;font-size:11px;font-weight:800}.empty{padding:32px;text-align:center;color:var(--muted)}.empty-inline{color:var(--muted);font-size:13px}.hint{font-size:12px;color:var(--muted)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.section-head h2{margin:0;font-size:18px}.section-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.section-head a{font-size:13px;color:var(--brand);font-weight:750}.filter-bar{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr)) auto;gap:12px;align-items:end;margin-bottom:18px}.month-filter{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.month-filter p{margin:4px 0 0;color:var(--muted)}.narrow-card{max-width:720px}
.attendance-hero{display:flex;justify-content:space-between;align-items:end;gap:24px;padding:12px 2px 22px}.attendance-hero h1{font-size:clamp(28px,5vw,45px);letter-spacing:-.045em;margin:5px 0}.attendance-hero p{margin:4px 0;color:var(--muted)}.attendance-hero .assignment{font-size:14px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.14em;color:var(--brand)}.today-status{flex:0 0 auto;padding:15px 18px;border:1px solid #a7d8cc;background:#eaf9f4;border-radius:16px;text-align:right}.today-status small,.today-status strong{display:block}.today-status strong{margin-top:5px;color:#086b5e}.attendance-focus{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);gap:18px}.camera-card{padding:12px}.camera{background:#0b2421;border-radius:16px;overflow:hidden;aspect-ratio:4/3;position:relative}.camera video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.camera-status{position:absolute;bottom:12px;left:12px;right:12px;padding:9px 12px;background:rgba(0,0,0,.62);color:#fff;border-radius:10px;font-size:13px}.camera-card .hint{margin:12px 5px 3px}.action-card{display:flex;flex-direction:column;gap:12px}.gps-state,.detected-location{padding:15px;border-radius:14px;background:#f4f7f5;border:1px solid var(--line)}.gps-state strong,.gps-state span,.detected-location strong,.detected-location span{display:block}.gps-state strong,.detected-location strong{font-size:17px;margin:3px 0}.gps-state span,.detected-location span{color:var(--muted);font-size:12px}.gps-state.inside{background:#ecfdf3;border-color:#abefc6}.gps-state.outside,.gps-state.poor,.gps-state.stale{background:#fffaeb;border-color:#fedf89}.gps-state.rejected{background:#fef3f2;border-color:#fecdca}.attendance-actions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:auto}.attendance-btn{min-height:96px;border:0;border-radius:16px;color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 12px 24px rgba(15,118,110,.2)}.attendance-btn span{font-size:20px;font-weight:900}.attendance-btn small{margin-top:4px;opacity:.85}.attendance-btn.checkin{background:linear-gradient(135deg,#0f8a79,#0f766e)}.attendance-btn.checkout{background:linear-gradient(135deg,#315f7a,#24495e)}.attendance-btn:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.checkpoint-btn{width:100%}.inline-result{padding:11px 13px;border-radius:11px;font-size:13px}.inline-result.waiting{background:#f2f4f7}.inline-result.success{background:#ecfdf3;color:var(--ok)}.inline-result.error{background:#fef3f2;color:var(--danger)}.today-proof{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.proof-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}.proof-card small,.proof-card strong,.proof-card span{display:block}.proof-card strong{font-size:24px;margin:5px 0}.proof-card span{font-size:12px;color:var(--muted)}.transfer-list{display:grid;gap:9px}.transfer-list>div{display:grid;grid-template-columns:55px 1fr;gap:10px;border-top:1px solid #edf1ef;padding-top:9px;font-size:13px}.transfer-list time{font-weight:800;color:var(--brand)}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 20%,#c9f2e6 0,transparent 35%),linear-gradient(135deg,#eff8f4,#e5efec)}.auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--line);border-radius:26px;padding:30px;box-shadow:0 24px 70px rgba(15,70,61,.15)}.auth-card h1{margin:0 0 6px;font-size:30px}.auth-card>p{color:var(--muted);margin:0 0 24px}.auth-card .field{margin:14px 0}.auth-brand{display:flex;gap:12px;align-items:center;margin-bottom:25px}
@media(max-width:1050px){.filter-bar{grid-template-columns:repeat(3,1fr)}.attendance-focus{grid-template-columns:1fr}.camera-card{max-width:760px;width:100%;margin:auto}.device-indicators{margin-left:auto}.user-copy{display:none}}
@media(max-width:760px){.topbar-inner{padding:9px 13px;gap:8px}.content-wrap{padding:15px 12px}.brand b{font-size:13px}.brand small{display:none}.device-indicators{position:absolute;top:62px;left:12px;right:12px;justify-content:flex-end;pointer-events:none}.attendance-hero{padding-top:37px;display:block}.today-status{margin-top:14px;text-align:left;width:max-content;max-width:100%}.attendance-actions,.today-proof{grid-template-columns:1fr}.filter-bar{grid-template-columns:1fr 1fr}.filter-bar .btn{grid-column:1/-1}.metrics{grid-template-columns:1fr 1fr}.month-filter{display:block}.month-filter label{display:block;margin-top:14px}.card{padding:15px;border-radius:16px}.page-head h1{font-size:24px}.menu-drawer{width:min(370px,94vw)}}
@media(max-width:430px){.brand>span:last-child{max-width:165px}.brand b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metrics{grid-template-columns:1fr}.metric strong{font-size:26px}.filter-bar{grid-template-columns:1fr}.filter-bar .btn{grid-column:auto}.attendance-hero h1{font-size:30px}.attendance-focus{gap:12px}.attendance-actions{grid-template-columns:1fr 1fr}.attendance-btn{min-height:88px}.attendance-btn span{font-size:17px}}

/* Layar absensi HP/APK: satu viewport penuh tanpa scroll atau geser. */
@media(max-width:760px){
body.attendance-screen,body.attendance-screen .app-shell{height:100dvh;min-height:100dvh;overflow:hidden;overscroll-behavior:none}
body.attendance-screen .topbar{height:58px;min-height:58px}
body.attendance-screen .topbar-inner{height:58px;padding-top:max(7px,env(safe-area-inset-top));padding-bottom:7px}
body.attendance-screen .main{height:calc(100dvh - 58px);overflow:hidden}
body.attendance-screen .content-wrap{height:100%;padding:7px 10px max(7px,env(safe-area-inset-bottom));display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:7px;overflow:hidden}
body.attendance-screen .device-indicators{top:60px;left:auto;right:10px;gap:4px;z-index:2}
body.attendance-screen .device-pill{font-size:9px;padding:4px 6px}
body.attendance-screen .attendance-hero{padding:4px 0 3px;display:flex;align-items:center;min-height:70px;gap:8px;overflow:hidden}
body.attendance-screen .attendance-hero .eyebrow{font-size:8px}
body.attendance-screen .attendance-hero h1{font-size:clamp(20px,6vw,27px);margin:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:66vw}
body.attendance-screen .attendance-hero p{font-size:10px;margin:1px 0}
body.attendance-screen .attendance-hero .assignment{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:68vw}
body.attendance-screen .today-status{margin:20px 0 0 auto;padding:7px 9px;border-radius:10px;max-width:31vw;overflow:hidden}
body.attendance-screen .today-status small{font-size:8px}
body.attendance-screen .today-status strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.attendance-screen .attendance-focus{min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(88px,18vh) minmax(0,1fr);gap:7px;overflow:hidden}
body.attendance-screen .camera-card{height:100%;max-width:none;padding:5px;overflow:hidden}
body.attendance-screen .camera{height:100%;aspect-ratio:auto;border-radius:11px}
body.attendance-screen .camera-status{bottom:5px;left:5px;right:5px;padding:4px 7px;font-size:9px}
body.attendance-screen .camera-card .hint{display:none}
body.attendance-screen .action-card{min-height:0;padding:7px;gap:5px;box-shadow:none;overflow:hidden}
body.attendance-screen .gps-state,body.attendance-screen .detected-location{padding:6px 8px;border-radius:9px;min-height:39px;overflow:hidden}
body.attendance-screen .gps-state small,body.attendance-screen .detected-location small{font-size:8px}
body.attendance-screen .gps-state strong,body.attendance-screen .detected-location strong{font-size:11px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.attendance-screen .gps-state span,body.attendance-screen .detected-location span{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.attendance-screen .attendance-actions{margin-top:0;gap:6px;min-height:64px}
body.attendance-screen .attendance-btn{min-height:64px;height:100%;border-radius:11px}
body.attendance-screen .attendance-btn span{font-size:15px}
body.attendance-screen .attendance-btn small{font-size:9px}
body.attendance-screen .checkpoint-btn{padding:7px 9px;min-height:31px;font-size:10px}
body.attendance-screen .inline-result{position:fixed;z-index:35;left:10px;right:10px;bottom:calc(66px + env(safe-area-inset-bottom));padding:8px 10px;font-size:10px;box-shadow:var(--shadow)}
body.attendance-screen .today-proof{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-height:58px;max-height:64px;overflow:hidden}
body.attendance-screen .proof-card{padding:6px 7px;border-radius:10px;overflow:hidden}
body.attendance-screen .proof-card small{font-size:8px;white-space:nowrap}
body.attendance-screen .proof-card strong{font-size:15px;margin:1px 0}
body.attendance-screen .proof-card span{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.attendance-screen .transfer-card{display:none}
}
@media(max-width:380px),(max-height:650px){
body.attendance-screen .brand small{display:none}
body.attendance-screen .attendance-focus{grid-template-rows:minmax(72px,15vh) minmax(0,1fr)}
body.attendance-screen .attendance-hero{min-height:60px}
body.attendance-screen .attendance-hero .assignment{display:none}
body.attendance-screen .gps-state span,body.attendance-screen .detected-location span{display:none}
body.attendance-screen .gps-state,body.attendance-screen .detected-location{min-height:31px;padding:4px 7px}
body.attendance-screen .today-proof{min-height:52px;max-height:55px}
}

/* Revisi Absen Sekarang: map authoritative + kamera thumbnail on-demand. */
.attendance-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(390px,.65fr);gap:16px;min-height:0}
.map-card{padding:14px;min-width:0;overflow:hidden}.map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.map-heading small,.map-heading strong{display:block}.map-heading small{font-size:9px;letter-spacing:.12em;font-weight:900;color:var(--brand)}.map-heading strong{font-size:15px;margin-top:2px}.radius-badge{padding:6px 10px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap;background:#fff7e6;color:#9a5b00;border:1px solid #f2c66d}.radius-badge.inside{background:#eaf9ef;color:#166534;border-color:#86d3a0}.radius-badge.outside{background:#fff0f0;color:#b42318;border-color:#f3aaa4}.radius-badge.warning,.radius-badge.waiting{background:#fff7e6;color:#9a5b00;border-color:#f2c66d}
#attendanceMap{height:clamp(260px,32vh,340px);border-radius:14px;border:1px solid var(--line);background:#dce9e5;overflow:hidden;z-index:1}.map-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:9px;font-size:10px;color:var(--muted)}.map-legend span{display:flex;align-items:center;gap:5px}.map-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-user{background:#0ea5e9;border:2px solid #075985}.legend-inside{background:#22c55e}.legend-outside{background:#ef4444}.legend-warning{background:#f59e0b}
.attendance-control-card{min-width:0;display:flex;flex-direction:column;gap:10px;padding:14px}.attendance-control-top{display:grid;grid-template-columns:150px minmax(0,1fr);gap:11px;min-height:0}.selfie-panel{min-width:0}.selfie-thumbnail{width:140px;height:160px;max-width:100%;margin:auto;position:relative;overflow:hidden;border-radius:16px;background:#0b2421;border:1px solid #315650}.selfie-thumbnail video,.selfie-thumbnail img{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.selfie-thumbnail img{transform:none}.camera-placeholder{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(145deg,#123b36,#071b18)}.camera-placeholder span{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#0f766e;color:#fff;font-weight:900}.selfie-thumbnail .camera-status{bottom:6px;left:6px;right:6px;padding:5px 7px;border-radius:8px;font-size:9px;text-align:center}.selfie-actions{display:grid;grid-template-columns:1fr;gap:6px;margin-top:7px}.selfie-actions .btn{padding:8px 9px;font-size:11px}.location-panel{display:flex;min-width:0;flex-direction:column;gap:8px}.location-panel .gps-state,.location-panel .detected-location{padding:10px 11px}.location-panel .gps-state strong,.location-panel .detected-location strong{font-size:13px}.refresh-location{margin-top:auto;padding:8px 10px;font-size:11px}.gps-state.inside,.detected-location.inside{background:#ecfdf3;border-color:#86d3a0}.gps-state.outside,.detected-location.outside{background:#fff0f0;border-color:#f3aaa4}.gps-state.poor,.gps-state.stale,.gps-state.blocked,.detected-location.poor,.detected-location.stale,.detected-location.blocked{background:#fff7e6;border-color:#f2c66d}.action-reason{min-height:18px;margin:0;color:var(--muted);font-size:11px;line-height:1.35}.attendance-control-card .attendance-actions{margin-top:auto}.attendance-control-card .checkpoint-btn{min-height:37px}.attendance-control-card .inline-result:empty{display:none}
@media(max-width:1050px){.attendance-workspace{grid-template-columns:1fr}.map-card{min-height:330px}}
@media(max-width:760px){
body.attendance-screen .attendance-workspace{height:100%;min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(218px,40%) minmax(0,1fr);gap:6px;overflow:hidden}
body.attendance-screen .map-card{min-height:0;height:100%;padding:5px;border-radius:12px;box-shadow:none;display:grid;grid-template-rows:auto minmax(0,1fr)}
body.attendance-screen .map-heading{margin:0 3px 4px}.map-heading strong{font-size:10px}.map-heading small{font-size:7px}.radius-badge{padding:3px 6px;font-size:8px}
body.attendance-screen #attendanceMap{height:100%;min-height:0;border-radius:9px}.map-legend{display:none}
body.attendance-screen .attendance-control-card{height:100%;min-height:0;padding:6px;gap:5px;border-radius:12px;box-shadow:none;overflow:hidden}
body.attendance-screen .attendance-control-top{grid-template-columns:106px minmax(0,1fr);gap:6px;min-height:112px;max-height:126px}
body.attendance-screen .selfie-thumbnail{width:96px;height:96px;border-radius:11px}.selfie-thumbnail .camera-status{bottom:4px;left:4px;right:4px;padding:3px 4px;font-size:7px}.camera-placeholder span{width:34px;height:34px;border-radius:10px;font-size:11px}
body.attendance-screen .selfie-actions{margin-top:4px;gap:3px}.selfie-actions .btn{padding:5px 6px;min-height:24px;font-size:8px;border-radius:7px}
body.attendance-screen .location-panel{gap:4px}.location-panel .gps-state,.location-panel .detected-location{padding:4px 6px;min-height:32px;border-radius:8px}.location-panel .gps-state small,.location-panel .detected-location small{font-size:7px}.location-panel .gps-state strong,.location-panel .detected-location strong{font-size:9px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.location-panel .gps-state span,.location-panel .detected-location span{font-size:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.refresh-location{padding:4px 6px;min-height:24px;font-size:8px;border-radius:7px}
body.attendance-screen .attendance-control-card .attendance-actions{min-height:53px;height:53px;gap:5px}body.attendance-screen .attendance-control-card .attendance-btn{min-height:53px;border-radius:9px}.attendance-control-card .attendance-btn span{font-size:13px}.attendance-control-card .attendance-btn small{font-size:7px}
body.attendance-screen .attendance-control-card .checkpoint-btn{padding:5px 7px;min-height:26px;font-size:8px;border-radius:8px}.action-reason{font-size:8px;min-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.attendance-control-card .inline-result{bottom:calc(61px + env(safe-area-inset-bottom))}
}
@media(max-width:380px),(max-height:700px){body.attendance-screen .attendance-workspace{grid-template-rows:minmax(185px,36%) minmax(0,1fr)}body.attendance-screen .attendance-control-top{grid-template-columns:90px minmax(0,1fr);min-height:91px;max-height:99px}body.attendance-screen .selfie-thumbnail{width:78px;height:72px}.selfie-actions .btn{min-height:20px;padding:3px 5px}.location-panel .gps-state,.location-panel .detected-location{min-height:27px;padding:3px 5px}.location-panel .gps-state span,.location-panel .detected-location span{display:none}}

/* Periode kerja, shift assignment, dan kontrol refresh lokasi. */
[hidden]{display:none!important}
.device-indicators{align-items:center}.device-indicators .device-pill{pointer-events:none}.device-refresh{width:28px;height:28px;display:grid;place-items:center;border:1px solid #b9d1cb;border-radius:999px;background:#e8f1ee;color:#0f766e;font-size:18px;font-weight:900;line-height:1;cursor:pointer}.device-refresh:hover{background:#d8ebe5}.attendance-control-card .attendance-actions{margin-top:18px}.movement-head-actions{display:flex;align-items:center;gap:10px}.correction-mini{padding:6px 9px;border-radius:8px;font-size:10px}.mobile-correction-alert{display:none}.shift-admin-grid{grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr)}.workday-options{border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-flow:row wrap;gap:9px 14px}.workday-options legend{font-size:13px;font-weight:800;padding:0 5px}.workday-options label{font-weight:600}.workday-options small{flex-basis:100%;color:var(--muted)}.policy-checks{display:grid;gap:11px;margin-top:18px;padding:14px;border-radius:12px;background:#f4f7f5}.correction-grid{grid-template-columns:minmax(340px,.8fr) minmax(0,1.2fr)}.required-correction-card{margin-bottom:18px;border-color:#f5b7b1}.required-period-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.required-period-list a{display:grid;gap:4px;padding:12px;border:1px solid #f5b7b1;border-radius:12px;background:#fff4f2;text-decoration:none}.required-period-list span{font-size:11px;color:var(--muted)}.required-period-list b{font-size:11px;color:var(--danger)}input[type=datetime-local]{width:100%;border:1px solid #bfcfca;border-radius:11px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}
@media(max-width:760px){.device-indicators{pointer-events:auto!important}.device-refresh{width:24px;height:24px;font-size:15px}body.attendance-screen .attendance-control-card .attendance-actions{grid-template-columns:1fr 1fr!important;margin-top:10px!important}.mobile-correction-alert:not(:empty){display:flex}.mobile-correction-alert .correction-mini{width:100%;min-height:24px;padding:4px 7px;font-size:8px}.shift-admin-grid,.correction-grid{grid-template-columns:1fr}.movement-head-actions{gap:6px}.movement-head-actions .correction-mini{font-size:9px}}

/* User/role actions keep their own columns so reset never overlaps role saving. */
.user-role-table{min-width:1180px}.user-role-table th:nth-child(1){width:235px}.user-role-table th:nth-child(2){width:220px}.user-role-table th:nth-child(5){width:190px}.user-role-table th:nth-child(6){width:360px}.user-role-table th:nth-child(7){width:155px}.user-role-list{white-space:normal;line-height:1.45}.user-role-form{display:grid;grid-template-columns:minmax(190px,1fr) auto;align-items:center;gap:8px;min-width:340px}.user-role-form select{min-width:190px}.user-role-form .btn,.user-reset-form .btn{margin:0;white-space:nowrap;min-height:40px}.user-reset-form{display:block;min-width:145px}
.password-reset-result{display:grid;grid-template-columns:minmax(240px,1fr) minmax(320px,1.2fr);gap:18px;margin-bottom:18px;padding:20px;border:1px solid #79cdbd;border-radius:18px;background:linear-gradient(135deg,#ecfdf8,#fff);box-shadow:var(--shadow)}.password-reset-result h2{margin:9px 0 5px;font-size:20px}.password-reset-result p{margin:0;color:var(--muted)}.temporary-password-box{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.temporary-password-box>span{grid-column:1/-1;color:var(--muted);font-size:12px;font-weight:750}.temporary-password-box code{min-width:0;padding:12px 14px;border:1px dashed #55aa9b;border-radius:11px;background:#fff;color:#123b36;font-size:18px;font-weight:850;letter-spacing:.05em;overflow-wrap:anywhere}.temporary-password-box .btn{min-height:45px}.password-reset-result .reset-warning{grid-column:1/-1;padding-top:12px;border-top:1px solid #cce8e1;color:#704a00;font-size:12px}.self-account-label{display:inline-flex;align-items:center;min-height:40px;padding:0 10px;border-radius:10px;background:#f1f5f3;color:var(--muted);font-size:12px;font-weight:750}
@media(max-width:760px){.password-reset-result{grid-template-columns:1fr;padding:16px}.temporary-password-box{grid-template-columns:1fr}.temporary-password-box .btn{width:100%}.password-reset-result .reset-warning{grid-column:auto}}

/* Direktori dan editor penugasan lokasi per pegawai. */
.location-filter-card{margin-bottom:14px}.text-link{font-size:12px;text-decoration:none;color:var(--brand);font-weight:800}.location-filter-grid{display:grid;grid-template-columns:minmax(230px,1.4fr) repeat(3,minmax(150px,1fr)) auto;gap:12px;align-items:end}.location-filter-submit{min-height:42px;white-space:nowrap}
.location-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px}.location-summary-card{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:2px 12px;padding:15px 16px;border:1px solid var(--line);border-radius:16px;background:#fff;text-decoration:none;box-shadow:0 8px 22px rgba(18,55,48,.05);transition:.16s ease}.location-summary-card:hover,.location-summary-card.selected{border-color:#72b9aa;background:#eaf7f3;transform:translateY(-1px)}.location-summary-card span{font-size:12px;font-weight:800}.location-summary-card strong{grid-row:1/3;grid-column:2;font-size:28px;color:var(--brand);align-self:center}.location-summary-card small{font-size:10px;color:var(--muted)}
.location-directory-card{padding:20px}.scope-pill,.location-primary-badge,.location-empty-badge,.assignment-type,.period-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:850;white-space:nowrap}.scope-pill,.location-primary-badge{background:#dcf4ec;color:#09685b}.location-empty-badge{background:#fff0d5;color:#8a5a00}.location-employee-table{min-width:1040px}.location-employee-table td{vertical-align:middle}.location-employee-table td small,.location-history-card td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.location-person{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:285px}.location-person:hover strong{color:var(--brand)}.location-avatar{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#dff2ed;color:var(--brand);font-weight:900}.location-avatar img,.location-hero-avatar img{width:100%;height:100%;object-fit:cover}.allowed-location-list{display:block;max-width:310px;white-space:normal;line-height:1.4;color:#3f5752}.row-action{color:var(--brand);font-weight:850;text-decoration:none;white-space:nowrap}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding:18px 0 0;font-size:12px}.pagination a{color:var(--brand);font-weight:800;text-decoration:none}
.location-detail-toolbar{display:flex;justify-content:space-between;gap:10px;margin-bottom:14px}.location-employee-hero{display:flex;align-items:center;gap:16px;margin-bottom:16px}.location-hero-avatar{width:66px;height:66px;flex:0 0 66px;border-radius:18px;display:grid;place-items:center;overflow:hidden;background:#153f51;color:#fff;font-size:24px;font-weight:900}.location-employee-hero h2{margin:4px 0;font-size:22px}.location-employee-hero p{margin:0;color:var(--muted);font-size:12px}.location-current-primary{margin-left:auto;min-width:210px;padding:13px 15px;border-radius:14px;background:#e9f6f2;text-align:right}.location-current-primary small,.location-current-primary strong{display:block}.location-current-primary small{font-size:9px;color:var(--muted);letter-spacing:.08em}.location-current-primary strong{margin-top:5px;color:var(--brand)}
.location-detail-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.65fr);gap:16px;align-items:start}.location-history-card{min-width:0}.location-history-card table{min-width:720px}.location-history-card tr.editing-row td{background:#edf8f5}.assignment-primary{background:#dff4ec;color:#09685b}.assignment-allowed{background:#e9f1ff;color:#2456a6}.assignment-administrative{background:#f0ebff;color:#6842a5}.status-aktif-sekarang{background:#dcfce7;color:#167044}.status-terjadwal{background:#e8f1ff;color:#2456a6}.status-berakhir,.status-nonaktif{background:#edf1f0;color:#66746f}.location-editor-card{position:sticky;top:84px}.location-editor-card form{display:grid;gap:14px}.location-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.location-active-check{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f7faf9}.location-active-check input{margin-top:3px}.location-active-check span,.location-active-check strong,.location-active-check small{display:block}.location-active-check small{font-weight:500;color:var(--muted);margin-top:3px}.location-note{padding:10px 12px;border-radius:10px;background:#fff7e6;color:#8a5a00;font-size:11px;line-height:1.45}
@media(max-width:1080px){.location-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.location-filter-submit{grid-column:1/-1}.location-detail-grid{grid-template-columns:1fr}.location-editor-card{position:static}}
@media(max-width:650px){.location-filter-grid{grid-template-columns:1fr}.location-filter-submit{grid-column:auto}.location-summary{grid-template-columns:1fr 1fr}.location-employee-hero{align-items:flex-start;flex-wrap:wrap}.location-current-primary{margin-left:0;width:100%;text-align:left}.location-date-grid{grid-template-columns:1fr}.location-detail-toolbar{align-items:stretch;flex-direction:column}.location-directory-card{padding:14px}}
@media(max-width:430px){.location-summary{grid-template-columns:1fr}}
.profile-completion-card{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,2fr) auto;gap:18px;align-items:center}.profile-completion-card h2{margin:5px 0}.profile-completion-card p{margin:0;color:var(--muted);font-size:12px}.profile-completion-card .section-actions{display:flex;gap:8px;flex-wrap:wrap}.completion-meter{height:9px;border-radius:99px;background:#e4eeeb;overflow:hidden}.completion-meter span{display:block;height:100%;background:linear-gradient(90deg,var(--brand),#22a892);border-radius:inherit}
@media(max-width:820px){.profile-completion-card{grid-template-columns:1fr}}

/* Personalia shell: sidebar lengkap di desktop, drawer di tablet/HP. */
.app-shell{min-height:100vh;display:grid;grid-template-columns:286px minmax(0,1fr);background:#f2f6f5}
.app-workspace{min-width:0;min-height:100vh;display:flex;flex-direction:column}
.app-sidebar{position:sticky;top:0;height:100vh;z-index:40;display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#0c3043 0%,#0b2939 100%);color:#eaf5f4;border-right:1px solid rgba(255,255,255,.06);box-shadow:12px 0 32px rgba(7,31,43,.08)}
.sidebar-brand{min-height:82px;display:flex;align-items:center;gap:12px;padding:18px 19px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.1)}
.sidebar-brand .brand-mark{background:#dda62f;color:#102f3d;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.sidebar-brand>span:last-child{display:grid;min-width:0;line-height:1.15}
.sidebar-brand b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-brand small{font-size:10px;color:#9fc5cf;margin-top:4px}
.sidebar-user{display:grid;grid-template-columns:39px minmax(0,1fr) auto;align-items:center;gap:10px;margin:15px 14px 6px;padding:12px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.055)}
.sidebar-user>span:nth-child(2){display:grid;min-width:0}
.sidebar-user strong,.sidebar-user small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sidebar-user strong{font-size:12px;color:#fff}.sidebar-user small{font-size:9px;color:#8fb7c1;margin-top:3px;text-transform:uppercase;letter-spacing:.06em}
.sidebar-avatar,.topbar-avatar{display:grid;place-items:center;border-radius:12px;background:#d9f0eb;color:#0d665c;font-weight:900}.sidebar-avatar{width:39px;height:39px}
.sidebar-user button{display:none;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:9px;width:32px;height:32px;font-size:20px;cursor:pointer}
.sidebar-nav{min-height:0;overflow-y:auto;padding:9px 13px 20px;scrollbar-width:thin;scrollbar-color:#416575 transparent}
.sidebar-nav .menu-group{border:0;margin:0 0 7px}.sidebar-nav .menu-group summary{padding:10px 9px 7px;color:#81acb7;font-size:9px;letter-spacing:.14em}
.sidebar-nav .menu-group summary:after{color:#709aa6;font-size:13px}.sidebar-nav .menu-group>div{display:grid;gap:3px;padding:0}
.sidebar-nav .menu-group a{position:relative;justify-content:flex-start;min-height:38px;padding:9px 10px;color:#d9e9ec;border-radius:10px;font-size:12px}
.sidebar-nav .menu-group a:hover{background:rgba(255,255,255,.075);color:#fff}
.sidebar-nav .menu-group a.active{background:linear-gradient(90deg,#0e8c7e,#0d776e);color:#fff;font-weight:800;box-shadow:0 8px 20px rgba(5,30,35,.2)}
.nav-dot{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#5d8792;box-shadow:0 0 0 3px rgba(255,255,255,.025)}
.menu-group a.active .nav-dot{background:#f1c24c;box-shadow:0 0 0 3px rgba(241,194,76,.15)}
.nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-nav .item-badge{margin-left:auto}
.sidebar-logout{margin-top:10px;padding-top:13px;border-top:1px solid rgba(255,255,255,.1)}
.sidebar-logout button{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(255,255,255,.12);border-radius:11px;padding:10px;background:rgba(255,255,255,.055);color:#d9e9ec;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.sidebar-logout button:hover{background:rgba(255,255,255,.1);color:#fff}
.topbar{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.94);backdrop-filter:blur(15px);border-bottom:1px solid var(--line)}
.topbar-inner{max-width:none;min-height:70px;padding:11px 24px}.menu-toggle{display:none}
.mobile-brand{display:none;text-decoration:none;align-items:center;gap:8px}.mobile-brand .brand-mark{width:35px;height:35px;flex-basis:35px;border-radius:10px}.mobile-brand b{font-size:13px}
.topbar-title{display:grid;line-height:1.08}.topbar-title small{font-size:8px;font-weight:900;letter-spacing:.15em;color:var(--brand)}.topbar-title strong{font-size:15px;margin-top:4px;color:#14342f}
.topbar-avatar{width:38px;height:38px;flex:0 0 38px}.main{flex:1;min-height:0}.content-wrap{width:100%;max-width:1600px;padding:25px 28px}

/* Login bergaya HRD/SIMPEG. */
.auth-page-hrd{display:block;min-height:100vh;padding:0;background:#fff}
.auth-layout{width:100%;min-height:100vh;display:grid;grid-template-columns:minmax(0,1.72fr) minmax(430px,.78fr)}
.auth-story{position:relative;min-height:100vh;overflow:hidden;background:radial-gradient(circle at 88% 12%,rgba(35,102,122,.25),transparent 33%),linear-gradient(145deg,#0d354a 0%,#0b2a3a 68%,#082432 100%);color:#fff}
.auth-story-rings,.auth-story-rings:before,.auth-story-rings:after{position:absolute;border-radius:50%;border:1px solid rgba(115,190,202,.09);content:""}
.auth-story-rings{width:610px;height:610px;right:-75px;top:-275px;box-shadow:0 0 0 70px rgba(80,159,174,.035),0 0 0 140px rgba(80,159,174,.025)}
.auth-story-rings:before{inset:70px}.auth-story-rings:after{inset:145px;background:rgba(5,32,45,.12)}
.auth-story-content{position:absolute;z-index:1;left:clamp(46px,5vw,86px);right:clamp(46px,11vw,185px);bottom:clamp(54px,8vh,98px)}
.auth-school,.auth-kicker{font-size:10px;font-weight:900;letter-spacing:.15em}.auth-school{color:#f0b632;margin:0 0 24px}
.auth-story h1{max-width:720px;margin:0;font-size:clamp(43px,4.1vw,66px);line-height:1.05;letter-spacing:-.035em;font-weight:720}
.auth-story-copy{max-width:720px;margin:24px 0 0;color:#b9d8df;font-size:clamp(14px,1.2vw,17px);line-height:1.75}
.auth-values{display:flex;gap:34px;margin-top:65px;color:#74adba;font-size:9px;letter-spacing:.14em}
.auth-panel{display:grid;place-items:center;min-height:100vh;padding:48px clamp(36px,4vw,68px);background:#fff}
.auth-form-wrap{width:min(390px,100%)}.auth-brand-stacked{display:grid;gap:26px;margin:0 0 15px}.auth-brand-mark{width:43px;height:43px;flex-basis:43px;border-radius:11px;background:#dda62f;color:#133342}
.auth-kicker{color:#008678;font-size:9px}.auth-form-wrap h2{margin:0;font-size:30px;letter-spacing:-.035em;color:#122f40}.auth-intro{margin:8px 0 24px;color:#758380;font-size:14px}
.auth-form{display:grid;gap:14px}.auth-form .field{gap:6px}.auth-form label{font-size:11px}.auth-form input[type=email],.auth-form input[type=password]{min-height:43px;border-color:#c6d4dd;background:#eef4ff;border-radius:10px}
.auth-form-options{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:10px}.auth-form-options a{color:#08786d}.remember-option{display:flex;align-items:center;gap:7px;font-size:10px!important;font-weight:550}.remember-option input{margin:0}
.auth-submit{width:100%;min-height:43px;margin-top:2px;border-radius:10px;background:#0c8b80;font-size:12px}.auth-help{margin:20px 0 0;text-align:center;color:#7d8a87;font-size:10px;line-height:1.6}.auth-security{margin:8px 0 0;text-align:center;color:#9caaa7;font-size:9px}

@media(max-width:1000px){
  .app-shell{display:block}.app-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(300px,88vw);height:100dvh;transform:translateX(-104%);transition:transform .22s ease;box-shadow:24px 0 55px rgba(5,27,38,.28)}.app-sidebar.open{transform:none}.sidebar-user button{display:grid;place-items:center}.menu-toggle{display:grid;place-items:center;order:-1}.mobile-brand{display:flex}.topbar-title{display:none}.app-workspace{min-height:100vh}.content-wrap{padding:22px 18px}.menu-backdrop{z-index:39}
  .auth-layout{grid-template-columns:minmax(0,1.25fr) minmax(400px,.75fr)}.auth-story-content{right:55px}.auth-story h1{font-size:43px}.auth-values{margin-top:45px;gap:22px}
}
@media(max-width:760px){
  .topbar-inner{min-height:58px}.topbar-avatar{display:none}.content-wrap{padding:15px 12px}
  .auth-page-hrd{background:#fff}.auth-layout{display:block}.auth-story{display:none}.auth-panel{min-height:100dvh;padding:32px 24px}.auth-form-wrap{max-width:430px}.auth-brand-stacked{gap:20px}.auth-form-wrap h2{font-size:29px}.auth-intro{margin-bottom:22px}
}
