/* SIKEPO - Izin Keluar (mobile-first). Semua kelas berawalan "izin-" */
.izin-wrap { padding: 12px 14px 90px; max-width: 640px; margin: 0 auto; }
.izin-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 16px; margin-bottom: 14px; }
.izin-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.izin-muted { color: #8a8d99; font-size: 13px; }
.izin-label { display: block; font-size: 12px; font-weight: 700; color: #6b6e7b; text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 6px; }
.izin-input { width: 100%; border: 1.5px solid #dcdce9; border-radius: 12px; padding: 12px 14px; font-size: 16px; background: #fff; color: #1e1e2d; -webkit-appearance: none; appearance: none; }
.izin-input:focus { border-color: #FF396F; outline: 0; box-shadow: 0 0 0 3px rgba(255,57,111,.15); }
textarea.izin-input { min-height: 74px; resize: vertical; }
.izin-row2 { display: flex; gap: 10px; }
.izin-row2 > div { flex: 1; min-width: 0; }

/* tombol */
.izin-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; padding: 15px 16px; font-size: 17px; font-weight: 700; color: #fff; background: #FF396F; text-decoration: none; cursor: pointer; line-height: 1.2; }
.izin-btn:active { transform: scale(.985); }
.izin-btn[disabled] { opacity: .55; cursor: not-allowed; }
.izin-btn-hijau { background: #1DCC70; }
.izin-btn-biru { background: #6236FF; }
.izin-btn-abu { background: #eceef3; color: #3b3e4d; }
.izin-btn-garis { background: #fff; color: #FF396F; border: 2px solid #FF396F; }
.izin-btn-sm { width: auto; padding: 9px 14px; font-size: 14px; border-radius: 10px; display: inline-flex; }
.izin-btn-besar { padding: 20px 16px; font-size: 20px; border-radius: 18px; }
.izin-btn ion-icon { font-size: 22px; }
.izin-aksi { display: flex; gap: 10px; margin-top: 12px; }
.izin-aksi > * { flex: 1; }

/* chips */
.izin-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.izin-pilih { border: 1.5px solid #dcdce9; background: #fff; color: #3b3e4d; border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; }
.izin-pilih.aktif { border-color: #FF396F; background: #fff0f4; color: #FF396F; font-weight: 700; }
.izin-chip { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.izin-chip-biru { background: #e8e2ff; color: #4a24d6; }
.izin-chip-hijau { background: #d9f7e8; color: #0a8f4a; }
.izin-chip-merah { background: #ffe0e8; color: #d4154c; }
.izin-chip-oranye { background: #fff0cf; color: #a46a00; }
.izin-chip-abu { background: #eceef3; color: #5b5e6c; }

/* langkah */
.izin-langkah { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: 13px; color: #8a8d99; }
.izin-langkah b { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #dcdce9; color: #fff; align-items: center; justify-content: center; font-size: 13px; }
.izin-langkah .on b { background: #FF396F; }
.izin-langkah .on { color: #1e1e2d; font-weight: 700; }
.izin-langkah i { flex: 1; height: 2px; background: #dcdce9; }

/* info */
.izin-info { display: flex; gap: 10px; align-items: flex-start; background: #eef3ff; color: #2d3f7a; border-radius: 12px; padding: 11px 13px; font-size: 13px; line-height: 1.45; margin-top: 14px; }
.izin-info ion-icon { font-size: 20px; flex: 0 0 auto; margin-top: 1px; }
.izin-peringatan { background: #fff4e0; color: #7a4b00; }
.izin-bahaya { background: #ffe9ee; color: #a3123a; }
details.izin-detail { margin-top: 14px; border: 1.5px dashed #dcdce9; border-radius: 12px; padding: 10px 12px; }
details.izin-detail summary { font-weight: 700; font-size: 14px; cursor: pointer; }

/* swafoto */
.izin-kamera { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; background: #11131c; border-radius: 16px; overflow: hidden; }
.izin-kamera video, .izin-kamera img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.izin-kamera video { transform: scaleX(-1); }
.izin-kamera .sf-pesan { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px; font-size: 15px; line-height: 1.5; background: rgba(17,19,28,.6); }
.izin-kamera .sf-oval { position: absolute; left: 14%; right: 14%; top: 10%; bottom: 22%; border: 3px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }
.izin-gps { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: #f4f5f9; }
.izin-titik { width: 10px; height: 10px; border-radius: 50%; background: #c2c5d1; flex: 0 0 auto; }
.izin-titik.ok { background: #1DCC70; box-shadow: 0 0 0 0 rgba(29,204,112,.6); animation: izin-denyut 1.8s infinite; }
.izin-titik.lemah { background: #FFB400; }
.izin-titik.mati { background: #FF396F; }
@keyframes izin-denyut { 70% { box-shadow: 0 0 0 9px rgba(29,204,112,0); } 100% { box-shadow: 0 0 0 0 rgba(29,204,112,0); } }

/* halaman pelacakan */
.izin-status { border-radius: 18px; padding: 16px; color: #fff; background: linear-gradient(135deg, #6236FF, #8f6bff); margin-bottom: 14px; }
.izin-status.lewat { background: linear-gradient(135deg, #FF396F, #ff7a9c); }
.izin-status.selesai { background: linear-gradient(135deg, #1DCC70, #5fe3a1); }
.izin-status.tutup { background: linear-gradient(135deg, #6b6e7b, #9a9dab); }
.izin-status .judul { font-size: 13px; opacity: .9; }
.izin-status .besar { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 2px 0; font-variant-numeric: tabular-nums; }
.izin-status .kecil { font-size: 13px; opacity: .95; }
.izin-peta { width: 100%; height: 52vh; min-height: 300px; border-radius: 16px; overflow: hidden; background: #e8ebf2; z-index: 1; }
.izin-peta-tinggi { height: 68vh; }
.izin-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f1f5; font-size: 14px; }
.izin-kv:last-child { border-bottom: 0; }
.izin-kv span:first-child { color: #8a8d99; flex: 0 0 auto; }
.izin-kv span:last-child { text-align: right; font-weight: 600; word-break: break-word; }
.izin-ikuti { position: absolute; z-index: 500; right: 10px; bottom: 10px; background: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.izin-peta-bungkus { position: relative; }

/* penanda peta ala ojek online */
.gj-pin { position: relative; width: 44px; height: 44px; }
.gj-pin .badan { position: absolute; left: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; background: #FF396F; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.gj-pin .cincin { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,57,111,.35); animation: gj-denyut 1.8s ease-out infinite; z-index: 1; }
.gj-pin.biru .badan { background: #6236FF; } .gj-pin.biru .cincin { background: rgba(98,54,255,.35); }
.gj-pin.abu .badan { background: #8a8d99; } .gj-pin.abu .cincin { display: none; }
@keyframes gj-denyut { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.gj-label { background: #1e1e2d; color: #fff; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.gj-titik { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45); }
.gj-kantor { font-size: 24px; text-shadow: 0 1px 3px rgba(0,0,0,.4); line-height: 1; }

/* daftar */
.izin-item { display: block; color: inherit; text-decoration: none; padding: 12px 0; border-bottom: 1px solid #f0f1f5; }
.izin-item:last-child { border-bottom: 0; }
.izin-item .atas { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.izin-item .judul { font-weight: 700; font-size: 15px; }
.izin-item .sub { font-size: 13px; color: #8a8d99; margin-top: 3px; }
.izin-item .tautan { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.izin-kosong { text-align: center; color: #8a8d99; padding: 22px 8px; font-size: 14px; }

/* layar penuh (swafoto kembali) */
.izin-modal { position: fixed; inset: 0; z-index: 9990; background: #f4f5f9; overflow-y: auto; display: none; }
.izin-modal.buka { display: block; }
.izin-modal-kepala { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; position: sticky; top: 0; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.izin-modal-kepala button { border: 0; background: #eceef3; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; }
.izin-modal-kepala b { font-size: 16px; }
