: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}
