*{box-sizing:border-box}body{font-family:Arial;background:#f1f5f9;margin:0;padding:14px;color:#172033}.box,.top{max-width:900px;margin:14px auto;padding:20px;border-radius:12px}.box{background:white;box-shadow:0 2px 10px #0002}.top{background:#166534;color:white}button,input,select{width:100%;padding:12px;margin:6px 0;border-radius:8px;border:1px solid #ccc;font-size:16px}button{background:#166534;color:white;border:0;font-weight:bold}.secondary{background:#475569}.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.camera{background:#111;border-radius:10px;overflow:hidden}video,#preview{width:100%;max-height:480px;object-fit:contain}#preview{display:none}canvas{display:none}.msg{padding:10px;margin-top:8px;border-radius:8px}.ok{background:#dcfce7;color:#166534}.err{background:#fee2e2;color:#991b1b}.warn{background:#fef3c7;color:#92400e}.gps{background:#eff6ff;padding:12px;line-height:1.8;border-radius:8px}table{width:100%;border-collapse:collapse}th,td{border:1px solid #ddd;padding:8px}.scroll{overflow:auto}
.danger{background:#b91c1c} td button{margin:2px;min-width:80px}

.santri-card{border:1px solid #ddd;border-radius:12px;padding:14px;margin:12px 0;line-height:1.6}.santri-card button{width:100%;margin-top:8px}

.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.status-grid button{width:100%;min-width:0}

.camera-wrap video,.camera-wrap .preview{width:100%;max-height:360px;object-fit:cover;border-radius:12px;background:#111;margin:8px 0}.already{display:inline-block;margin-top:8px;padding:5px 8px;background:#e8f7ed;border-radius:7px;font-weight:bold}

/* V8.4.4 - tombol yang terkunci tampil MERAH */
button:disabled, .btn:disabled {
  background:#b91c1c !important;
  color:#ffffff !important;
  cursor:not-allowed !important;
  opacity:1 !important;
  filter:none !important;
  box-shadow:none !important;
}
select:disabled, input:disabled {
  background:#e5e7eb !important;
  color:#6b7280 !important;
  cursor:not-allowed !important;
}

/* V8.6 - tabel master horizontal */
.wide-box{max-width:1200px}.master-table{min-width:900px}.master-table th{white-space:nowrap;background:#f8fafc}.master-table td{vertical-align:middle}.face-thumb{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid #cbd5e1;display:block;margin:auto}.no-photo,.no-location{color:#92400e;font-size:13px}.master-table button{min-width:90px;margin:0}.master-table small{white-space:nowrap;color:#475569}@media(max-width:600px){.wide-box{padding:14px}.master-table{font-size:14px}.master-table th,.master-table td{padding:7px}.face-thumb{width:58px;height:58px}}

/* V8.6.1 */
.status-select{min-width:120px;padding:10px 8px;font-weight:700}.action-buttons{display:flex;gap:8px;min-width:190px}.action-buttons button{margin:0;padding:10px 14px}.action-buttons .danger,.danger{background:#c51f24!important;color:#fff!important}


/* V8.8.2 - tabel lembur lebih nyaman di HP */
.lembur-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid #d9dee7;
  border-radius:12px;
  margin-top:12px;
}
.lembur-table{
  min-width:1280px;
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.lembur-table th,.lembur-table td{
  padding:9px 10px;
  white-space:nowrap;
  vertical-align:middle;
}
.lembur-table th{
  position:sticky;
  top:0;
  background:#f4f6f8;
  z-index:2;
}
.lembur-table th:nth-child(1),.lembur-table td:nth-child(1){
  position:sticky;left:0;z-index:3;background:#fff;min-width:46px;
}
.lembur-table th:nth-child(2),.lembur-table td:nth-child(2){
  position:sticky;left:46px;z-index:3;background:#fff;min-width:105px;
}
.lembur-table th:nth-child(1),.lembur-table th:nth-child(2){background:#f4f6f8;z-index:4}
.scroll-hint{font-size:13px;margin:8px 0;color:#596579}
.badge-ok{display:inline-block;padding:4px 9px;border-radius:999px;background:#dcfce7;font-weight:700}
.badge-no{display:inline-block;padding:4px 9px;border-radius:999px;background:#fee2e2;font-weight:700}
.badge-wait{display:inline-block;padding:4px 9px;border-radius:999px;background:#fef3c7;font-weight:700}
@media(max-width:600px){
 .lembur-table{font-size:13px}
 .lembur-table th,.lembur-table td{padding:8px}
}


/* V8.8.3 - filter range tanggal & jumlah lembur */
.date-filter{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}
.date-filter label{display:flex;flex-direction:column;gap:5px;min-width:160px}
.date-filter input{padding:10px;border:1px solid #cfd5dd;border-radius:8px;font-size:15px}
.date-filter button{width:auto;min-width:130px}
.summary-lembur{padding:14px 16px;margin:10px 0 14px;background:#eaf7ef;border-radius:10px;font-size:17px}
@media(max-width:600px){.date-filter label,.date-filter button{width:100%;min-width:0}}

.date-filter select{padding:10px;border:1px solid #cfd5dd;border-radius:8px;font-size:15px;background:white}

.filters89{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px;align-items:end;margin:14px 0}
.filters89 label{display:flex;flex-direction:column;gap:5px}.filters89 input,.filters89 select{padding:10px;border:1px solid #cfd5dd;border-radius:8px;font-size:15px;background:#fff}
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:700px){.filters89{grid-template-columns:1fr}}

.total903{margin:10px 0 12px;padding:14px;background:#e8f7ec;border:1px solid #b9dfc2;border-radius:10px;line-height:1.8}
.export903{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.export903 button{width:auto;min-width:170px}
