:root{--navy:#0e2a57;--navy2:#173b75;--sky:#6ea8ff;--bg:#f5f7fb;--ink:#1c2c43;--muted:#708198;--line:#e5eaf1;--green:#13795b;--red:#d24154;--orange:#b76b17}*{box-sizing:border-box}body{margin:0;font:14px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a{color:var(--navy)}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:white}.login-art{position:relative;background:linear-gradient(125deg,#081d40,#0e2a57 57%,#23508e);padding:53px 9%;color:white;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.login-art:after{content:"";position:absolute;width:480px;height:480px;border:65px solid #ffffff08;border-radius:50%;right:-230px;top:13%}.brand{display:flex;gap:12px;align-items:center;color:white}.mark{background:#fff;border-radius:14px;color:var(--navy);width:45px;height:45px;display:grid;place-items:center;font-size:27px;font-weight:900;position:relative}.mark span{font-size:10px;position:absolute;right:4px;top:3px;color:#5c91d8}.brand b{font-size:14px;letter-spacing:1.1px;line-height:1.15;display:block}.brand small{display:block;opacity:.65;font-size:10px;margin-top:4px}.login-copy{position:relative;z-index:1}.eyebrow{letter-spacing:2px;font-size:11px;color:#9ec4ff;font-weight:700}.login-copy h1{font-size:clamp(30px,3.4vw,52px);line-height:1.2;max-width:650px;letter-spacing:-1.8px;margin:20px 0}.login-copy p{color:#d0daea;font-size:16px;max-width:490px}.pill{border:1px solid #ffffff40;border-radius:30px;display:inline-block;padding:8px 17px;margin-top:25px;font-size:12px}.decor{opacity:.3;font-size:12px;letter-spacing:3px}.decor span{float:right}.login-form{padding:60px 14%;display:flex;flex-direction:column;justify-content:center;max-width:670px;width:100%;margin:auto}.mini-brand{font-size:12px;letter-spacing:2px;color:var(--muted);margin-bottom:33px}.mini-brand strong{color:var(--navy)}.login-form h2{font-size:31px;margin:0 0 4px}.login-form>p{color:var(--muted);margin:0 0 26px}.login-form label,.form-grid label{display:block;font-weight:600;font-size:13px;margin-bottom:17px}.login-form input,.form-grid input,.form-grid select,.form-grid textarea,.filter{width:100%;padding:12px 13px;margin-top:6px;border:1px solid #dce3ec;border-radius:10px;background:white;color:var(--ink);outline:none}.login-form input:focus,.form-grid input:focus,.filter:focus{border-color:var(--sky);box-shadow:0 0 0 3px #6ea8ff22}.btn{border:1px solid #dce3ec;background:white;color:var(--ink);border-radius:9px;padding:10px 17px;font-weight:700}.btn.primary{background:var(--navy);border-color:var(--navy);color:white}.btn.danger{background:#fff2f3;color:var(--red);border-color:#f9d7dc}.btn.ghost{background:#f7f9fc}.btn.sm{font-size:12px;padding:6px 10px}.btn.wide{width:100%;padding:13px}.btn:hover{filter:brightness(.97)}.small-note{font-size:12px;color:var(--muted);margin-top:18px}.error{padding:10px 12px;color:#9b2234;background:#fff0f1;border-radius:8px;margin-top:15px}.app{display:flex;min-height:100vh}.sidebar{width:255px;flex-shrink:0;background:var(--navy);color:white;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;padding:27px 16px;z-index:5}.sidebar .brand{padding:0 12px 37px}.nav-label{color:#9eb5d6;letter-spacing:1.5px;font-size:10px;font-weight:800;padding:0 14px;margin-bottom:12px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-btn{border:0;background:transparent;color:#c1d3eb;border-radius:10px;padding:12px 15px;text-align:left;display:flex;align-items:center;gap:12px;font-weight:600;width:100%}.nav-btn .emoji{font-size:18px;width:23px}.nav-btn.active,.nav-btn:hover{background:#ffffff1d;color:white}.side-footer{margin-top:auto;border-top:1px solid #ffffff24;padding:19px 5px 0;display:flex;align-items:center;gap:10px}.avatar{background:#d9e9ff;border-radius:12px;color:var(--navy);font-weight:900;display:grid;place-items:center;width:40px;height:40px;flex-shrink:0}.avatar.small{width:36px;height:36px}.user-mini{min-width:0;flex:1}.user-mini strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-mini small{font-size:11px;color:#aac4e9}.icon-btn{border:0;background:transparent;font-size:20px;color:inherit;padding:5px}.main{margin-left:255px;flex:1;min-width:0;display:flex;flex-direction:column}.topbar{background:white;padding:20px 34px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.topbar h1{font-size:23px;margin:2px 0 0;letter-spacing:-.5px}.breadcrumb{color:var(--muted);font-size:11px}.header-right{display:flex;gap:19px;align-items:center}.clock{color:var(--navy);font-weight:700;background:#eff5ff;padding:8px 13px;border-radius:8px;font-size:12px}.content{padding:30px 34px;flex:1;max-width:1500px;width:100%;margin:auto;overflow-x:hidden}.footer{text-align:center;padding:18px;color:#9aa6b6;font-size:11px}.page-intro{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:24px}.page-intro h2{font-size:20px;margin:0}.page-intro p{margin:2px 0;color:var(--muted);font-size:13px}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.grid{display:grid;gap:17px}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:22px}.two-col{grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr)}.two-col>*{min-width:0}.stat,.panel{background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 8px #1a345309}.stat{padding:20px;min-height:135px}.stat .stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat .stat-icon{background:#f0f5ff;border-radius:10px;padding:7px;font-size:20px}.stat strong{display:block;font-size:31px;color:var(--navy);margin:8px 0 0;line-height:1.2}.stat small{font-size:11px;color:#91a0b1}.panel{padding:22px;margin-bottom:18px}.panel h3{font-size:15px;margin:0 0 16px}.panel-sub{color:var(--muted);font-size:12px;margin:-10px 0 18px}.table-wrap{overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch}.data-table{width:100%;border-collapse:collapse;text-align:left;min-width:620px}.data-table th{font-size:11px;text-transform:uppercase;color:#718198;letter-spacing:.5px;background:#f8fafd;padding:12px}.data-table td{padding:13px 12px;border-bottom:1px solid #eef1f5;font-size:12px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table strong{font-size:12px}.tag{display:inline-block;border-radius:20px;padding:4px 10px;font-size:11px;font-weight:750;background:#edf2fa;color:#536279;white-space:nowrap}.tag.hadir,.tag.approved{background:#e4f8ee;color:#167453}.tag.terlambat,.tag.pending{background:#fff2d9;color:#996011}.tag.izin,.tag.cuti{background:#eaf1ff;color:#285a9e}.tag.sakit{background:#f0eaff;color:#7251ad}.tag.alpa,.tag.rejected{background:#ffe8eb;color:#c4374e}.tag.lapangan{background:#eaf6ff;color:#1871aa}.tag.kantor{background:#f0f3f9;color:#536279}.chart-row{display:flex;align-items:center;gap:12px;margin:13px 0}.chart-label{width:102px;font-size:12px;color:var(--muted)}.bar-bg{height:11px;background:#eef2f7;border-radius:20px;overflow:hidden;flex:1}.bar-fill{height:100%;border-radius:20px;background:var(--navy)}.chart-val{font-size:12px;width:30px;text-align:right;font-weight:700}.empty{padding:30px 5px;text-align:center;color:var(--muted)}.info{padding:14px 16px;border-radius:9px;background:#edf5ff;color:#2c588b;font-size:12px;margin-bottom:18px}.warning{background:#fff5e4;color:#8d621b}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}.form-grid .full{grid-column:1/-1}.form-grid textarea{min-height:75px;resize:vertical}.modal-backdrop{position:fixed;inset:0;background:#071b36a8;z-index:15;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:white;width:100%;max-width:650px;max-height:92vh;overflow:auto;border-radius:18px;padding:24px;box-shadow:0 30px 80px #081a3530}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-head h3{margin:0;font-size:19px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.camera-wrap{background:#09192e;border-radius:12px;overflow:hidden;min-height:220px;display:grid;place-items:center}.camera-wrap video{width:100%;max-height:310px;object-fit:cover;display:block}.preview{width:100%;max-height:310px;object-fit:contain}.gps-status{font-size:12px;padding:9px;background:#f4f7fb;border-radius:8px;margin:10px 0}.input-row{display:flex;align-items:center;gap:10px}.filter{width:auto;min-width:150px;margin:0}.mobile-menu{display:none}.readonly{color:#7d899a}.split-stat{display:flex;gap:10px;flex-wrap:wrap}.split-stat .tag{padding:8px 12px}#toast{position:fixed;right:20px;top:15px;z-index:30;background:#0e2a57;color:white;border-radius:10px;padding:13px 18px;box-shadow:0 12px 40px #0002;display:none;max-width:400px}#toast.show{display:block}@media(max-width:1120px){.stats-grid{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){.login-wrap{grid-template-columns:1fr}.login-art{padding:24px;min-height:230px}.login-art .brand,.decor{display:none}.login-copy h1{font-size:26px;margin:12px 0}.login-copy p{font-size:12px}.pill{margin:8px 0}.login-form{padding:35px 24px 55px}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.topbar{padding:16px;gap:12px}.topbar h1{font-size:19px}.mobile-menu{display:block;border:0;background:none;font-size:23px}.breadcrumb{font-size:10px}.header-right .clock{font-size:10px;padding:6px}.header-right .avatar{display:none}.content{padding:18px 13px}.stats-grid{gap:10px}.stat{padding:14px;min-height:115px}.stat strong{font-size:25px}.panel{padding:17px 13px}.page-intro{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.modal{padding:18px}.filter{min-width:120px}}

/* Brand Logo Image */
.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border: 1.5px solid #38bdf8;
  box-shadow: 0 4px 12px rgba(8, 121, 202, 0.25);
  flex-shrink: 0;
}
.brand.large .brand-logo-img {
  width: 52px;
  height: 52px;
}

/* --- Perbaikan audit 2026-11-19 --- */
.side-backdrop {
  position: fixed;
  inset: 0;
  background: #04122a9c;
  z-index: 4;
}
.map-link {
  font-size: 11px;
  color: #1668d6;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.map-link:hover { text-decoration: underline; }
.camera-wrap { position: relative; }
.camera-wrap .preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #09192e;
}
.info.warning b { color: #8d621b; }

/* Profil & foto profil (2026-11-19) */
.side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  border-radius: 12px;
  color: inherit;
  text-align: left;
}
.side-profile:hover { background: #ffffff14; }
.avatar.has-photo { padding: 0; overflow: hidden; background: #0b1f3d; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar-btn { border: 0; padding: 0; overflow: hidden; background: var(--navy); color: #fff; }
.avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.photo-actions { flex: 1; min-width: 180px; }
.file-btn { display: inline-flex; align-items: center; justify-content: center; margin: 4px 8px 4px 0; cursor: pointer; }

/* Penyempurnaan visual 2026-11-19 */
.tag { display: inline-flex; align-items: center; gap: 6px; }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.tag.sakit { background: #eaf1ff; color: #285a9e; }
.tag.libur, .tag.belum-absen { background: #eef1f5; color: #66758a; }

.device-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.device-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #eef1f5; color: #5f6f86; }
.device-chip.ok { background: #e4f8ee; color: #13795b; }
.device-chip.warn { background: #fff2d9; color: #996011; }
.device-chip.off { background: #ffe8eb; color: #c4374e; }
.shot-row { display: flex; align-items: center; gap: 14px; padding: 12px; background: #f5f8fd; border: 1px solid #e1e9f5; border-radius: 12px; margin-bottom: 12px; }
.shot-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: #0b1f3d; }
.shot-info strong { color: #13795b; font-size: 13px; }
.shot-info .btn { margin-top: 8px; }

#toast { border-radius: 12px; font-weight: 600; }
#toast.toast-success { background: #13795b; }
#toast.toast-error { background: #c4374e; }
#toast.toast-info { background: #0e2a57; }

.password-wrap { position: relative; display: block; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 17px; padding: 6px 8px; line-height: 1; }
.password-wrap input { padding-right: 46px !important; }
.error { border-left: 3px solid #d24154; font-weight: 600; }

.profile-hero { background: transparent; border: 0; border-radius: 16px; box-shadow: none; margin-bottom: 6px; }
.profile-cover { height: 100px; background: linear-gradient(120deg, #0e2a57, #23508e 60%, #3a7bd5); position: relative; border-radius: 16px 16px 0 0; }
.profile-cover:after { content: ""; position: absolute; width: 220px; height: 220px; border: 40px solid #ffffff12; border-radius: 50%; right: -60px; top: -90px; }
.profile-hero-body { display: flex; gap: 14px; align-items: center; padding: 0 14px 10px; position: relative; }
.profile-hero-avatar { width: 84px; height: 84px; border-radius: 20px; background: var(--navy); color: #fff; font-size: 28px; font-weight: 800; display: grid; place-items: center; overflow: hidden; border: 4px solid #fff; box-shadow: 0 8px 24px #0e2a5733; flex: 0 0 auto; margin-top: -38px; }
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-hero-info { min-width: 0; }
.profile-eyebrow { font-size: 10px; letter-spacing: 1.3px; font-weight: 800; color: #2c588b; margin-bottom: 2px; }
.profile-hero-info h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.profile-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.profile-since { font-size: 12px; color: var(--muted); }

.login-preview { margin-top: 26px; width: min(430px, 100%); background: #ffffff0c; border: 1px solid #ffffff20; border-radius: 16px; padding: 16px; opacity: .75; transform: perspective(900px) rotateY(-8deg) rotateX(3deg); box-shadow: 0 25px 50px #0002; }
.lp-top { display: flex; gap: 6px; margin-bottom: 14px; }
.lp-top span { width: 26px; height: 5px; border-radius: 5px; background: #ffffff30; display: block; }
.lp-top span:first-child { background: #6ea8ff; }
.lp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.lp-cards i { height: 52px; border-radius: 8px; background: #ffffff14; display: block; }
.lp-chart { display: flex; align-items: flex-end; gap: 7px; height: 62px; padding: 8px 10px; background: #ffffff0c; border-radius: 8px; }
.lp-chart b { flex: 1; display: block; border-radius: 4px 4px 0 0; background: #6ea8ff55; height: 40%; }
.lp-chart b:nth-child(2) { height: 65%; } .lp-chart b:nth-child(3) { height: 48%; } .lp-chart b:nth-child(4) { height: 80%; }
.lp-chart b:nth-child(5) { height: 58%; } .lp-chart b:nth-child(6) { height: 72%; } .lp-chart b:nth-child(7) { height: 52%; } .lp-chart b:nth-child(8) { height: 88%; }
.lp-row { display: flex; gap: 8px; margin-top: 12px; }
.lp-row em { height: 8px; border-radius: 5px; background: #ffffff14; display: block; flex: 1; }
.lp-row em:first-child { flex: 2; }
.profile-hint { margin-top: 10px; font-size: 12px; color: var(--muted); }
.profile-note { font-size: 12px; color: var(--muted); margin: -4px 2px 12px; }
.accordion-list { display: grid; gap: 10px; }
.acc-item { padding: 0 !important; margin-bottom: 0 !important; overflow: hidden; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: transparent; border: 0; color: inherit; font-weight: 700; font-size: 14px; text-align: left; }
.acc-head:hover { background: #f7faff; }
.acc-title { display: flex; align-items: center; gap: 10px; }
.acc-ic { width: 28px; height: 28px; border-radius: 9px; background: #edf5ff; color: #2c588b; display: grid; place-items: center; font-size: 14px; }
.acc-chev { color: var(--muted); font-size: 12px; transition: transform .2s; }
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-body { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.acc-body .form-grid { margin-top: 2px; }

.logout-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.logout-row .btn { flex: 0 0 auto; }
@media(max-width:760px){
  .login-preview { display: none; }
  .profile-hero-body { padding: 0 15px 16px; }
  .profile-hero-avatar { width: 76px; height: 76px; font-size: 26px; }
}

