:root{
  --bg:#ffffff; --panel:#ffffff; --border:#e5e7eb; --muted:#6b7280; --text:#111827;
  --primary:#2563eb; --primary-600:#1d4ed8;
  --grad1:#6d28d9; --grad2:#22d3ee;
  --radius:16px; --shadow:0 8px 24px rgba(0,0,0,.08);
    --badge:#f9fafb; /* ← tambahan */
    --label:#535353; /* ← tambahan */
}
:root { --safe-top: env(safe-area-inset-top); }
.topbar{ padding-top: calc(10px + var(--safe-top, 0px)); }
/* === APP MODE: blokir seleksi teks & callout iOS (global) === */
html, body, #app {
  -webkit-user-select: none; /* Safari/iOS */
  -ms-user-select: none;     /* Edge lama */
  user-select: none;         /* Standar */
  -webkit-touch-callout: none;            /* blokir long-press menu iOS */
  -webkit-tap-highlight-color: transparent; /* hilangkan highlight tap */
}

/* Hindari drag konten tak perlu (gambar, teks) */
* {
  -webkit-user-drag: none;
}

/* Tetap responsif untuk klik/tap UI */
a, button {
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation; /* kurangi delay tap */
}

/* === PENGECUALIAN (boleh seleksi/blok) ===
   - Input, textarea, select
   - Konten editable
   - Area yang kamu beri class .selectable (opsional)
*/
input, textarea, select, [contenteditable="true"], .selectable {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
}
a{color:var(--primary); text-decoration:none}
a, a * {
  -webkit-touch-callout: none;
}
.container > :first-child { margin-top: 0; }
/* HEADER BAR (baru) */
.topbar{
  position:sticky; top:0; z-index:60;
  background: var(--primary, #2563eb); /* ← ikuti tema */
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px;
  max-width:480px;margin:0 auto; color:#FFF;

  border-bottom:none;
  box-shadow:none;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* Pastikan ikon/link di area topbar kontras (putih) */
.topbar .actions a,
.topbar a { color: rgba(255,255,255,.95); }
.form-item{
	font-weight: 600;
    color: var(--label);
}
.topbar .title{font-weight:800;font-size:16px}
.topbar .left{display:flex;align-items:center;gap:10px}
.topbar img.logo{width:28px;height:28px;border-radius:8px}
.topbar .actions a{font-size:18px;margin-left:12px;color:#FFF}

/* LAYOUT */
.container{max-width:480px;margin:0 auto;padding:14px 14px 96px;}
.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.card.pad{padding:16px}

/* === Hero Modern (Pegawai) === */
.hero-modern{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;

  /* ===== Background baru: layered + lebih “jelas” ===== */
  background:
    radial-gradient(900px 420px at -10% -20%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(700px 360px at 110% 0%,   rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(135deg, #dbeafe 0%, #c7d2fe 45%, #a5f3fc 100%);

  border: 1px solid rgba(99,102,241,.18); /* indigo subtle */
  box-shadow: 0 10px 30px rgba(2,132,199,.10), 0 2px 8px rgba(0,0,0,.04);
  overflow: hidden;
}

/* Glow lembut kiri-bawah */
.hero-modern::before{
  content:"";
  position:absolute; left:-50px; bottom:-60px;
  width:220px; height:220px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0));
  filter: blur(6px);
  pointer-events: none;
}

/* Highlight kanan-atas */
.hero-modern::after{
  content:"";
  position:absolute; right:-40px; top:-40px;
  width:180px; height:180px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0));
  filter: blur(4px);
  pointer-events:none;
}
.hero-modern .hello{
  font-size: 14px;
  color: #475569;
  letter-spacing:.2px;
}
.hero-modern .name{
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
  color: #0f172a;
}
.hero-modern .stats{
  display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:12px;
}
.hero-modern .stat-card{
  background:#ffffffa8;
  border:1px solid rgba(0,0,0,.05);
  border-radius:14px;
  padding:10px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  backdrop-filter: blur(3px);
}
.hero-modern .stat-label{
  font-size:10px; opacity:.9; color:#334155;
}
.hero-modern .stat-value{
  font-size:14px; font-weight:600; margin-top:4px; color:#0f172a;
  white-space: nowrap;
}

.hero-modern .h-right{
  display:flex; align-items:center; justify-content:center;
}
.avatar-wrap{
  width:76px; height:76px; border-radius:50%;
  display:inline-grid; place-items:center;
  background: linear-gradient(135deg,#fff, #f1f5f9);
  border:1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(2,132,199,.18);
  padding:3px;
  cursor: pointer;
  transition: transform .12s ease;
}
.avatar-wrap:hover{ transform: translateY(-1px); }
.avatar{
  width:100%; height:100%;
  border-radius:50%;
  object-fit: cover;
  background:#fff;
}

/* Responsif kecil: tumpuk */
@media (max-width: 520px){
  .hero-modern{ grid-template-columns: 1fr auto; }
}

/* HERO */
.hero{
  background:linear-gradient(135deg,var(--grad1),var(--grad2));
  color:#fff; border-radius:20px; padding:18px; display:grid;
  grid-template-columns:1fr 1fr; gap:16px; align-items:center;
}
.hero .hello{font-weight:600;font-size:17px;opacity:.9}
.hero .name{font-size:20px;font-weight:600}
.hero .box{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);
  border-radius:14px;padding:10px}
.hero .big{font-size:16px;font-weight:700}




/* GRID MENU — ikon di dalam kartu kecil, label di luar */
.grid-menu{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:25px;
}

.menu-float{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  color:#111827;
  text-decoration:none;
  gap:8px;
}

.menu-float .bubble{
  width:56px; height:56px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 3px 10px rgba(0,0,0,.05);
}

.menu-float .emoji{
  font-size:22px; line-height:1;
}

.menu-float .label{
  font-size:12px; font-weight:400; color:#111827;
}

/* Responsif: tetap 4 kolom di HP kecil supaya mirip referensi */
@media (max-width:480px){
  .grid-menu{ gap:17px }
  .menu-float .bubble{ width:52px; height:52px; border-radius:14px }
  .menu-float .emoji{ font-size:20px }
  .menu-float .label{ font-size:11px }
}


/* BOTTOM NAV */
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--border);
  display:grid;grid-template-columns:1fr 1fr auto 1fr 1fr; align-items:center; padding:8px 10px; z-index:50;max-width:480px;margin:0 auto;
}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;font-size:13px;color:#374151}
.bottom-nav .fab{
  width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--grad1),var(--grad2)); color:#fff; font-size:30px;
  margin-top:-36px; box-shadow:0 8px 24px rgba(0,0,0,.15)
}

/* Login */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px}
.login-card{width:100%;max-width:420px}
.input{width:100%;padding:12px 12px;border:0px solid var(--border);border-bottom:1px solid var(--border);border-radius:0px;font-size:15px}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--primary);color:#fff;border:0;border-radius:12px;padding:12px 14px;font-weight:700;cursor:pointer}
.btn:active{transform:translateY(1px)}
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}

/* === Login Modern === */
.login-page{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px;overflow:hidden}
.login-bg{
  position:absolute;inset:0;z-index:0;
  background:
    radial-gradient(800px 400px at 10% 10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(700px 400px at 90% 20%, rgba(29,78,216,.10), transparent 60%),
    radial-gradient(600px 350px at 50% 90%, rgba(99,102,241,.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
}
.glass{
  background:rgba(255,255,255,.80);
  border:1px solid rgba(229,231,235,.7);
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  backdrop-filter:saturate(160%) blur(10px);
}
.login-card{position:relative;z-index:1;width:100%;max-width:420px;border-radius:18px;padding:22px 18px}
.login-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.login-logo{
  width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, var(--primary), var(--primary-600));
  color:#fff;font-size:26px;box-shadow:0 8px 16px rgba(37,99,235,.25)
}
.login-title h2{margin:0;font-size:22px;letter-spacing:.2px}
.login-title p{margin:2px 0 0 0;color:#6b7280}

/* Floating label */
.field{position:relative}
.input.floating{
  width:100%;padding:16px 12px 12px 12px;height:52px;
  border:1px solid var(--border);border-radius:12px;font-size:15px;background:#fff
}
.field > label{
  position:absolute;left:12px;top:14px;padding:0 6px;border-radius:6px;
  color:#6b7280;background:#fff;transform-origin:left top;
  transition:transform .16s ease, color .16s ease, top .16s ease
}
.input.floating:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.input.floating:focus + label{color:var(--primary)}
.input.floating:not(:placeholder-shown) + label,
.input.floating:focus + label{
  top:-8px;transform:scale(.88)
}

/* Button enhancements */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:12px 14px;font-weight:700;cursor:pointer}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-600));color:#fff}
.btn-primary:hover{filter:brightness(.98)}
.btn:active{transform:translateY(1px)}
.wfull{width:100%}

/* Spacing utilities (keep existing) */
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}


/* Responsive */
@media (max-width:640px){
  .hero{grid-template-columns:1fr}
  .grid-menu{grid-template-columns:repeat(4,1fr)}
}

/* ====== BERITA ====== */
.news-list{display:grid;gap:12px;margin-top:12px}
.news-item{
  display:flex;gap:12px;align-items:flex-start;
  background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.03)
}
.news-thumb{width:80px;height:68px;border-radius:10px;object-fit:cover;background:#f3f4f6}
.news-meta{flex:1;min-width:0}
.news-title{font-weight:800;font-size:14px;margin:0 0 6px}
.news-date{color:var(--muted);font-size:12px;margin-bottom:10px}

/* MODAL generik */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;z-index:100}
.modal.show{display:block}
.modal-dialog{
  background:#fff;max-width:900px;margin:6vh auto;padding:0;border-radius:16px;border:1px solid var(--border);
  width:calc(100% - 24px);box-shadow:0 20px 60px rgba(0,0,0,.2);max-height:88vh;overflow:auto
}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--border)}
.modal-title{font-weight:800;font-size:16px}
.modal-close{border:0;background:#eef2ff;color:#111827;border-radius:10px;padding:6px 10px;cursor:pointer}
.modal-body{padding:16px}
.news-content img{max-width:100%;height:auto;border-radius:8px}
.news-content table{width:100%;border-collapse:collapse}
.news-content table, .news-content th, .news-content td{border:1px solid #e5e7eb}
.news-content th, .news-content td{padding:6px}
/* Tombol Back di Topbar */
.topbar .back{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:10px;
  border:1px solid var(--border); margin-right:8px;
  color:#374151; background:#fff; text-decoration:none;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
}
.topbar .back:active{ transform:translateY(1px) }
.news-thumb{background:#f3f4f6}

/* ===== Presensi ===== */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.presensi-btn{
  display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;
  border:1px solid var(--border);border-radius:14px;background:#fff;padding:18px;cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.03); font-weight:700;
}
.presensi-btn:active{transform:translateY(1px)}
.circle-icon{
  width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--border);background:#f9fafb;font-size:28px
}
.list .item{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  border:1px solid var(--border);border-radius:12px;padding:10px;margin-bottom:8px;background:#fff
}
.item-title{font-weight:800}
.item-sub{font-size:12px;color:var(--muted)}
.btn-primary{background:#2563eb;border:1px solid #1d4ed8;color:#fff}
.btn-light{background:#fff;border:1px solid var(--border);color:#6b7280}
.btn:hover{filter:brightness(0.98)}
.btn.danger{border-color:#ef4444;background:#ef4444}
.muted{color:#6b7280}

/* Kamera */
.cam-wrap{display:flex;flex-direction:column;gap:10px;align-items:center}
#camVideo{width:100%;max-width:420px;border-radius:12px;border:1px solid var(--border);background:#000}
#camCanvas{width:100%;max-width:420px;border-radius:12px;border:1px solid var(--border)}
.cam-actions{display:flex;gap:8px}

/* Presensi: method cards */
.method-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.method-card{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;
  padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.03);font-weight:700}
.method-card .icon{font-size:28px}

/* Camera modal */
.cam-dialog .modal-body{padding:12px}
.cam-frame{position:relative;width:100%;max-width:420px;margin:0 auto;aspect-ratio:3/4;overflow:hidden;border-radius:20px;background:#000}
.cam-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.oval-mask{
  position: absolute;
  pointer-events: none;
  display: block;
  margin: auto;
  width: 68%;
  height: 82%;
  border: 3px dashed rgba(255,255,255,.9);
  border-radius: 50% / 45%;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}
.center{text-align:center}

/* === Toast Notification (Android-like) === */
.toast-container{
  position: fixed; top:12px; left:0; right:0;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  z-index: 9999; pointer-events:none; padding:0 12px;
}
.toast{
  pointer-events:auto;
  background:#ffffff; color:#111827;
  border:1px solid #e5e7eb; border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; width:min(420px, 100%);
  animation: toastSlideIn .22s ease-out;
}
.toast.hide{ animation: toastSlideOut .18s ease-in forwards; }
.toast .toast-emoji{ font-size:18px; line-height:1; }
.toast .toast-text{ flex:1; font-size:14px; }
.toast .toast-close{
  appearance:none; border:0; background:transparent; cursor:pointer;
  font-size:18px; line-height:1; opacity:.5;
}
.toast.info    { border-left:4px solid #3b82f6; }
.toast.success { border-left:4px solid #16a34a; }
.toast.warn    { border-left:4px solid #f59e0b; }
.toast.error   { border-left:4px solid #ef4444; }

@keyframes toastSlideIn{
  from { transform: translateY(-10px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
@keyframes toastSlideOut{
  from { transform: translateY(0); opacity:1; }
  to   { transform: translateY(-8px); opacity:0; }
}

/* === Akun Page === */
.account-card{ display:flex; gap:12px; align-items:center }
.avatar-row{ display:flex; gap:14px; align-items:center }
.avatar-wrap{ position:relative; width:65px; height:65px }
.avatar{
  width:65px; height:65px; object-fit:cover; border-radius:50%;
  border:2px solid var(--border); background:#f3f4f6;
}
.avatar-edit{
  position:absolute; right:-6px; bottom:-6px; width:36px; height:36px;
  border-radius:50%; border:0; background:var(--primary); color:#fff; cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.15); font-size:16px;
}
.account-meta .meta-name{ font-weight:800; font-size:18px }
.account-meta .meta-sub{ color:var(--muted); font-size:13px }

.form-grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
}
.form-item-full{ grid-column:1 / -1 }
.form-actions{ grid-column:1 / -1; display:flex; gap:8px; justify-content:flex-end }
.btn-danger{ background:#ef4444 }

/* Kamera lonjong (modal) */
.cam-dialog{ max-width:520px }
.cam-box{
  position:relative; width:100%; aspect-ratio:3/4;
  border-radius:16px; overflow:hidden; background:#000;
}
#avaVideo, #avaCanvas{ width:100%; height:100%; object-fit:cover; }
#avaVideo{ transform:scaleX(-1); } /* mirror kamera depan */
.oval-frame{
  position:absolute; pointer-events:none;
  display:block; margin:auto;
  width:68%; height:82%;
  border:3px dashed rgba(255,255,255,.9);
  border-radius:50% / 45%;
  left:50%; top:50%; transform:translate(-50%,-50%);
}
.cam-actions{ display:flex; gap:8px; justify-content:center; margin-top:12px }

/* ====== LAYOUT UTAMA ====== */
.stack > * + * { margin-top: 16px; }         /* spasi vertikal seragam antar card  */
.card + .card { margin-top: 16px; }          /* jaga jarak kalau tak pakai .stack */

/* ====== AKUN ====== */
.account-card{ display:flex; gap:12px; align-items:center }
.avatar-row{ display:flex; gap:14px; align-items:center }
.avatar-wrap{ position:relative; width:78px; height:78px }
.avatar{
  width:78px; height:78px; object-fit:cover; border-radius:50%;
  border:2px solid var(--border); background:#f3f4f6;
}
.avatar-edit{
  position:absolute; right:-6px; bottom:-6px; width:36px; height:36px;
  border-radius:50%; border:0; background:var(--primary); color:#fff; cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.15); font-size:16px;
}
.account-meta .meta-name{ font-weight:800; font-size:18px }
.account-meta .meta-sub{ color:var(--muted); font-size:13px }

/* grid form rapi dan responsif */
.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
.form-item-full{ grid-column:1 / -1 }
.form-actions{ grid-column:1 / -1; display:flex; gap:8px; justify-content:flex-end }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr } }

/* ====== MODAL KAMERA PROFIL ====== */
.cam-dialog{ max-width:520px }
.cam-box{
  position:relative; width:100%; aspect-ratio:3/4;
  border-radius:16px; overflow:hidden; background:#000; margin-top:6px;
}
#avaVideo, #avaCanvas{ width:100%; height:100%; object-fit:cover }
#avaVideo{ transform:scaleX(-1); } /* mirror front cam */

.cam-actions{ display:flex; gap:8px; justify-content:center; margin-top:12px }

/* ====== IZIN LIST ====== */
.izin-item{ display:grid; grid-template-columns:88px 1fr; gap:12px; align-items:center; padding:12px;
  border:1px solid var(--border); border-radius:14px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.03) }
.izin-thumb{ width:88px; height:88px; object-fit:cover; border-radius:12px; background:#f3f4f6; border:1px solid var(--border) }
.izin-sub{ color:var(--muted); font-size:13px; margin-top:2px }
.badge{ display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700 }
.badge.pengajuan{ background:#fffbeb; color:#92400e; border:1px solid #fde68a }
.badge.laporan{ background:#fffbeb; color:#92400e; border:1px solid #fde68a }
.badge.diizinkan{ background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0 }
.badge.diterima{ background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0 }
.badge.tidak_diizinkan{ background:#fef2f2; color:#991b1b; border:1px solid #fecaca }
.badge.ditolak{ background:#fef2f2; color:#991b1b; border:1px solid #fecaca }
.badge.revisi{ background:#fef200; color:#991b00; border:1px solid #fecaca }

/* ====== SEGMENTED ====== */
.seg-btn{ flex:1; border:1px solid var(--border); background:#f9fafb; color:#111827; border-radius:999px; padding:8px 12px; font-weight:700; cursor:pointer }
.seg-btn.active{ background:var(--primary); color:#fff; border-color:var(--primary) }

/* ====== FAB TAMBAH ====== */
/* FAB +: selalu ‘terangkat’ di atas bottom-nav, aman untuk iOS notch */

.fab-plus{position:fixed;right:18px;bottom:18px;width:56px;height:56px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:28px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(0,0,0,.18);cursor:pointer}

/* ====== UPLOADER ====== */
.uploader{ display:flex; gap:12px; align-items:center }
.uploader img{ width:110px; height:110px; object-fit:cover; border-radius:12px; border:1px solid var(--border); background:#f3f4f6 }

/* ====== SHEET ====== */
/* Sheet di atas modal (modal = z-index:100) */
.sheet{
  position:fixed; inset:0;
  background:rgba(0,0,0,.25);
  z-index:200;                    /* ← kunci agar di atas modal */
  opacity:0; pointer-events:none;
  transition:opacity .2s;
}
.sheet.show{ opacity:1; pointer-events:auto }

/* Reuse */
.stack > * + * { margin-top: 14px; }

/* ===== IZIN PAGE ===== */
.tabs{display:flex;gap:8px;padding:8px}
.tab{flex:1;border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px;font-weight:700;cursor:pointer}
.tab.active{background:var(--badge);border-color:#dbe2ea}

.izin-item{display:grid;grid-template-columns:88px 1fr;gap:12px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;margin-bottom:10px;text-decoration:none;color:inherit}
.izin-thumb{width:88px;height:88px;object-fit:cover;border-radius:12px;border:1px solid var(--border)}
.izin-sub{color:#6b7280;margin-top:2px}

.badge{display:inline-block;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800;border:1px solid var(--border)}
.badge.pengajuan{background:#fff7ed}
.badge.diizinkan{background:#ecfeff}
.badge.tidak_diizinkan{background:#fff1f2}


.sheet{position:fixed;inset:0;background:rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:opacity .2s}
.sheet.show{opacity:1;pointer-events:auto}
/* Kontainer isi bawah (alias) */
.sheet-dialog, .sheet-panel{
  position:absolute; left:0; right:0; bottom:0;
  background:#fff;
  border-top-left-radius:18px; border-top-right-radius:18px;
  box-shadow:0 -10px 24px rgba(0,0,0,.15);
  max-height:75vh; overflow:auto; padding:12px;
}
.sheet-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border);margin-bottom: 10px;}
.sheet-title{font-weight:800}
.sheet-close{border:1px solid var(--border);background:#fff;border-radius:10px;padding:8px 12px;font-weight:700;cursor:pointer}
.sheet-list{padding:10px}
.sheet-list .item{border-bottom:1px solid var(--border);padding:12px 14px;cursor:pointer}
.sheet-list .item:last-child{border-bottom:0}
.pad{padding:12px}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.form-item-full{grid-column:1 / -1}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}

.btn-muted{background:#f3f4f6;color:#111;border:1px solid var(--border)}


/* ===========================
   JADWAL — list, badge, siswa, sheet, FAB
   =========================== */

/* Kartu list jadwal */
#jadwalList .jadwal-card{
  display:flex; gap:12px; align-items:center;
  background:#fff; border:1px solid var(--border); border-radius:14px;
  padding:12px; margin:10px 0; box-shadow: var(--shadow);
  text-decoration:none; color:inherit;
}
#jadwalList .jadwal-card:hover{ transform:translateY(-1px); transition:.15s ease; }
#jadwalList .jadwal-card .jadwal-left{
  width:44px; height:44px; border-radius:10px;
  background:#f9fafb; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:14px; border:1px solid var(--border);
}
#jadwalList .jadwal-card .jadwal-main{ flex:1; min-width:0; }
#jadwalList .jadwal-card .jadwal-title{
  font-weight:700; font-size:15px; line-height:1.2; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#jadwalList .jadwal-card .jadwal-sub{
  font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#jadwalList .jadwal-card .jadwal-badge{ margin-left:auto; }

/* Warna status baris jadwal */
#jadwalList .jadwal-card.today{ background:#fee2e2; border-color:#fecaca; }
#jadwalList .jadwal-card.done { background:#ecfdf5; border-color:#a7f3d0; }

/* Badge umum */
.badge{
  display:inline-block; padding:2px 8px; border-radius:999px;
  border:1px solid var(--border); background:#f9fafb;
  font-size:12px; font-weight:600; line-height:1.6;
}
.badge.today{ background:#fee2e2; border-color:#fecaca; color:#991b1b; }
.badge.done { background:#dcfce7; border-color:#bbf7d0; color:#065f46; }

/* Badge presensi siswa */
.p-badge{
  display:inline-block; padding:2px 8px; border-radius:8px; font-size:12px; font-weight:600;
  border:1px solid transparent;
}
.p-badge.hadir{ background:#dcfce7; color:#065f46; border-color:#bbf7d0; }
.p-badge.izin { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.p-badge.alfa { background:#fef3c7; color:#92400e; border-color:#fde68a; }
.p-badge.sakit{ background:#e0f2fe; color:#075985; border-color:#bae6fd; }

/* List siswa di modal */
.siswa-list .siswa-item{
  display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center;
  background:#fff; border:1px solid var(--border); border-radius:10px;
  padding:10px 12px; margin:8px 0;
}
.siswa-item .siswa-name{ font-weight:600; }
.siswa-item .siswa-nis { font-size:12px; color:var(--muted); }

/* Tombol bar modal */
.modal .modal-footer{
  display:flex; justify-content:flex-end; gap:10px; padding:12px 0 0;
}
.btn.ghost{ background:#fff; border:1px solid var(--border); color:var(--text); }


.sheet.show{ bottom:0; }
.sheet .sheet-head{
  padding:12px 16px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between;
}
.sheet .sheet-body{ padding:12px 16px; max-height:70vh; overflow:auto; }


/* ===========================
   LAPORAN KERJA — scoped styles
   =========================== */

/* Utilitas kecil yang belum ada */
.date-pill{
  background:#f3f4f6;border:1px solid var(--border);
  border-radius:999px;padding:4px 10px;font-weight:700
}
.icon-btn{
  border:1px solid var(--border);background:#fff;border-radius:10px;
  padding:6px 10px;cursor:pointer
}

/* List kartu laporan */
.lk-list{display:flex;flex-direction:column;gap:10px;padding:12px}
.lk-item{
  background:#fff;border:1px solid var(--border);
  border-radius:14px;box-shadow:var(--shadow);overflow:hidden;
  text-decoration:none;color:inherit;display:block
}
.lk-top{
  display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px
}
.lk-title{font-weight:800}
.lk-sub{color:var(--muted);font-size:13px;margin-top:2px}
.lk-bot{padding:10px;border-top:1px solid var(--border)}

/* Baris foto kecil (scroll horizontal) */
.photos-row{display:flex;gap:8px;overflow-x:auto}
.thumb{
  width:64px;height:64px;border-radius:10px;border:1px solid var(--border);
  object-fit:cover;flex:0 0 auto;cursor:zoom-in;background:#f9fafb
}

/* Badge status — pakai .badge global, tambah modifier khusus enum */
.badge.Laporan{background:#eef2ff;color:#3730a3;border:1px solid #e0e7ff}
.badge.Selesai{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.badge.Tidak\ Selesai{background:#fef2f2;color:#7f1d1d;border:1px solid #fecaca}

/* Modal header/Sheet header alias agar cocok dgn markup halaman */
.modal-header{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 14px;border-bottom:1px solid var(--border)
}
.sheet-hd{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 14px;border-bottom:1px solid var(--border);font-weight:800
}

/* Form pilih tugas (button select) */
.select-btn{
  width:100%;display:flex;justify-content:space-between;align-items:center;
  border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff;cursor:pointer
}

/* Grid foto pada modal input */
.photos-grid{display:flex;flex-wrap:wrap;gap:10px}
.photo-add{
  width:70px;height:70px;display:inline-flex;justify-content:center;align-items:center;
  border:2px dashed var(--border);border-radius:12px;color:#6b7280;cursor:pointer;font-weight:800
}
.photo-chip{position:relative}
.photo-chip img{
  width:70px;height:70px;border-radius:12px;border:1px solid var(--border);object-fit:cover;background:#f9fafb
}
.photo-chip button{
  position:absolute;top:-6px;right:-6px;border:0;background:#ef4444;color:#fff;
  border-radius:999px;width:22px;height:22px;font-weight:800;cursor:pointer
}

/* Catatan tugas tampilan chat */
.chat-list{display:flex;flex-direction:column;gap:8px;padding:8px 0;max-height:48vh;overflow:auto}
.chat-bubble{max-width:75%;padding:8px 12px;border-radius:14px;font-size:13px;}
.chat.me{align-self:flex-end}
.chat.me .chat-bubble{background:#dcfce7;border:1px solid #86efac}
.chat.other .chat-bubble{background:#f3f4f6;border:1px solid var(--border)}
.chat-meta{color:#6b7280;font-size:10px;margin-top:2px}
.chat-input{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}


/* === Kunjungan List === */
.list-wrap{display:flex;flex-direction:column;gap:10px;padding:12px}
.kj-item{display:grid;grid-template-columns:86px 1fr;gap:12px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:10px;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.kj-photo{width:86px;height:86px;border-radius:10px;object-fit:cover;border:1px solid #e5e7eb;background:#f8fafc}
.kj-right{display:flex;flex-direction:column;justify-content:center}
.kj-title{font-weight:800;line-height:1.2}
.kj-sub{color:#6b7280;font-size:13px;margin-top:2px}
.badge{display:inline-block;padding:3px 8px;border-radius:9999px;border:1px solid #e5e7eb;background:#f9fafb;font-size:12px;font-weight:700;text-transform:capitalize}
.badge.disetujui{border-color:#16a34a33;background:#16a34a11}
.badge.laporan{border-color:#2563eb33;background:#2563eb11}

.icon-btn{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;cursor:pointer}
.icon-btn:hover{background:#f9fafb}


.photo-preview img{max-width:100%;border-radius:10px;border:1px solid #e5e7eb;margin-top:8px}

/* Modal wide untuk detail */
.modal .modal-dialog.wide{max-width:720px}

/* kosong state */
.empty{background:#fff;border:1px dashed #e5e7eb;border-radius:14px;padding:24px;text-align:center;color:#6b7280}



/* === Pelanggaran (pegawai) ===================================== */
/* List */
#pelanggaranPage .list-wrap{display:flex;flex-direction:column;gap:10px;padding:14px}
.pl-item{
  display:flex;gap:12px;align-items:flex-start;
  background:#fff;border:1px solid #e5e7eb;border-radius:14px;
  padding:10px; box-shadow:0 2px 8px rgba(0,0,0,.03); cursor:pointer;
}
.pl-item:active{transform:translateY(1px)}
.pl-photo{
  width:96px; height:72px; flex:0 0 auto;
  border-radius:10px; object-fit:cover; background:#f3f4f6; border:1px solid #e5e7eb;
}
.pl-right{flex:1 1 auto; min-width:0}
.pl-title{font-weight:800; font-size:15px; line-height:1.3; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pl-sub{color:#6b7280; font-size:12px; line-height:1.4}
.pl-meta{display:flex; gap:8px; align-items:center; margin-top:6px; flex-wrap:wrap}

/* Empty state */
#pelanggaranPage .empty{
  text-align:center; color:#6b7280; padding:28px 10px; font-size:14px;
}

/* Badge status (pakai sama dengan modul lain bila sudah ada .badge) */
.badge{
  display:inline-block; padding:4px 8px; font-size:12px; border-radius:999px;
  background:#f3f4f6; color:#374151; border:1px solid #e5e7eb; font-weight:700;
}
.badge.dilaporkan{ background:#fffbeb; color:#92400e; border-color:#fde68a } /* amber */
.badge.ditindak  { background:#ecfdf5; color:#065f46; border-color:#a7f3d0 } /* emerald */

/* Form foto (reuse pola kunjungan) */
#plPhotoPreview{min-height:90px; border:1px dashed #d1d5db; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:10px; background:#fafafa}
#plPhotoPreview img{max-width:100%; border-radius:10px}
.photo-add{
  display:inline-flex; width:42px; height:42px; border-radius:10px; align-items:center; justify-content:center;
  border:1px solid #e5e7eb; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.04); cursor:pointer; user-select:none;
}
.photo-add span{font-size:22px; line-height:1}
.photo-add:active{transform:translateY(1px)}

/* Detail modal image */
.pl-detail-img{
  width:100%; height:auto; max-height:360px; object-fit:contain; border-radius:10px;
}

/* Responsif */
@media (min-width:640px){
  .pl-photo{width:120px; height:90px}
  .pl-title{font-size:16px}
}

/* === Kegiatan Siswa === */
.kg-item{
  display:flex; gap:12px; align-items:center;
  background:#fff; border:1px solid var(--border);
  border-radius:14px; padding:12px; margin-bottom:10px; box-shadow:var(--shadow);
}
.kg-icon{ width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; background:#f3f4f6; }
.kg-main{ flex:1; min-width:0 }
.kg-title{ font-weight:800; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.kg-sub{ color:#6b7280; font-size:12px; margin-top:2px }
.kg-meta{ display:flex; gap:10px; align-items:center; margin-top:6px; color:#374151; font-size:12px }
.kg-badge{ background:#f9fafb; border:1px solid var(--border); border-radius:999px; padding:3px 8px; font-weight:700 }

.kg-detail-list .row{
  display:flex; justify-content:space-between; align-items:center;
  border:1px solid var(--border); border-radius:12px; padding:10px; margin-bottom:8px; background:#fff;
}
.kg-detail-list .row .left{ display:flex; flex-direction:column }
.kg-detail-list .row .right{ display:flex; align-items:center; gap:8px }
.status-badge{ border-radius:999px; border:1px solid var(--border); padding:2px 8px; font-size:12px; font-weight:700 }
.status-badge.hadir{ background:#ecfdf5; border-color:#a7f3d0 }
.status-badge.izin{ background:#eff6ff; border-color:#bfdbfe }
.status-badge.alfa{ background:#fef2f2; border-color:#fecaca }
.status-badge.sakit{ background:#fefce8; border-color:#fde68a }

.sheet .sheet-list .item{
  padding:10px; border:1px solid var(--border); border-radius:12px; margin-bottom:8px; background:#fff; cursor:pointer;
}
.sheet .sheet-list .line1{ font-weight:700 }
.sheet .sheet-list .line2{ color:#6b7280; font-size:12px }
.icon-btn.danger { color:#ef4444 }

.modal-hd{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border)}
.modal-bd{padding:16px 14px}
.modal-ft{display:flex;gap:10px;justify-content:flex-end;padding:12px 14px;border-top:1px solid var(--border)}
.icon-close{border:0;background:transparent;font-size:18px;cursor:pointer;opacity:.7}
.icon-close:hover{opacity:1}


/* === Kesehatan (ks*) === */
.ks-list{display:grid;gap:12px}
.ks-item{display:grid;grid-template-columns:92px 1fr;gap:12px;padding:10px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:var(--shadow);text-decoration:none;color:inherit}
.ks-left{width:92px;height:92px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#f9fafb;display:flex;align-items:center;justify-content:center}
.ks-left img{width:100%;height:100%;object-fit:cover}
.ks-right{display:flex;flex-direction:column;gap:6px}
.ks-title{font-weight:800;font-size:15px}
.ks-sub{color:#6b7280;font-size:12px}
.ks-badge{display:inline-block;border:1px solid var(--border);background:#f9fafb;border-radius:999px;padding:4px 8px;font-size:12px}

/* foto preview form */
.ks-photo-wrap{display:flex;align-items:center;gap:10px}
.ks-prev{width:120px;height:120px;border:1px solid var(--border);border-radius:12px;object-fit:cover;background:#f9fafb}


/* FAB */
.fab-ks{position:fixed;right:18px;bottom:18px;width:56px;height:56px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:28px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(0,0,0,.18);cursor:pointer}

/* modal ks (hindari bentrok) */
.modal.ks .modal-dialog{width:min(560px,94vw)}


/* === Prestasi (list 2 kolom ala aplikasi) === */
.pr-list { display: grid; gap: 10px; }
.pr-item { display:flex; gap:12px; align-items:center; background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px; text-decoration:none; }
.pr-left img{ width:72px; height:72px; object-fit:cover; border-radius:10px; border:1px solid var(--border); background:#f9fafb; }
.pr-right .pr-title{ font-weight:700; }
.pr-right .pr-sub{ color:#6b7280; font-size:14px; margin-top:2px; }
.pr-right .pr-badge{ display:inline-block; margin-top:6px; padding:3px 8px; border:1px solid var(--border); border-radius:999px; font-size:12px; color:#374151; background:#f9fafb; }

.fab-pr{ position:fixed; right:16px; bottom:16px; width:56px; height:56px; border-radius:50%; border:none; box-shadow:var(--shadow); background:var(--primary); color:#fff; font-size:28px; font-weight:800; cursor:pointer; }
.fab-pr:active{ transform:translateY(1px); }


/* ===== Izin Siswa (unik: is-*, isz-*) ===== */
.is-controls{display:flex;justify-content:flex-end;margin:10px 0}
.is-filter{max-width:240px}

.is-list{display:flex;flex-direction:column;gap:10px}
.is-item{display:grid;grid-template-columns:80px 1fr;gap:12px;align-items:center;
  background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.is-left img{width:78px;height:78px;border-radius:10px;object-fit:cover;border:1px solid var(--border)}
.is-right .is-title{font-weight:800;margin-bottom:2px}
.is-right .is-sub{color:#6b7280;font-size:13px;margin-bottom:6px}
.is-right .is-badges{display:flex;flex-wrap:wrap;gap:6px}
.is-badge{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;padding:4px 8px;font-size:12px;background:#f9fafb}

.status-badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;border:1px solid var(--border)}
.status-badge.pengajuan{background:#fff7ed}
.status-badge.diizinkan{background:#ecfdf5}
.status-badge["tidak diizinkan"], .status-badge.tidak\ diizinkan{background:#fef2f2}

.modal.isz .modal-dialog{border-radius:16px}
.modal.isz .modal-hd{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding:10px 12px}
.modal.isz .modal-title{font-weight:800}
.modal.isz .modal-bd{padding:12px}

.is-flex{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:720px){ .is-flex{grid-template-columns:1fr} }

.is-photo{border:1px solid var(--border);border-radius:12px;overflow:hidden}
.is-photo img{width:100%;height:auto;display:block;cursor:zoom-in}

.is-details .row{margin-bottom:10px}
.is-details label{display:block;color:#6b7280;font-size:13px;margin-bottom:2px}
.is-details .val{font-weight:550}

.is-action{margin-top:14px;border-top:1px solid var(--border);padding-top:12px}
.is-action-btns{display:flex;gap:10px;justify-content:flex-end}
.btn-danger:hover{filter:brightness(.95)}


/* ===== Pertemuan (unik: pt-*, ptz-*) ===== */
.pt-list{display:flex;flex-direction:column;gap:10px}
.pt-item{display:grid;grid-template-columns:80px 1fr;gap:12px;align-items:center;
  background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.pt-left img{width:78px;height:78px;border-radius:10px;object-fit:cover;border:1px solid var(--border)}
.pt-right .pt-title{font-weight:600;margin-bottom:2px}
.pt-right .pt-sub{color:#6b7280;font-size:13px;margin-bottom:6px}
.pt-right .pt-badges{display:flex;flex-wrap:wrap;gap:6px}
.pt-badge{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;padding:4px 8px;font-size:12px;background:#f9fafb}

.ptz .modal-dialog{border-radius:16px}
.ptz .modal-hd{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding:10px 12px}
.ptz .modal-title{font-weight:800}
.ptz .modal-bd{padding:12px}

.pt-top .pt-title-big{font-weight:700;font-size:16px;margin-bottom:10px}
.pt-top .row{margin-bottom:13px}
.pt-top label{display:block;color:#6b7280;font-size:13px}
.pt-top .val{font-weight:500}
.pt-status{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;border:1px solid var(--border)}
.pt-status.rutin{background:#ecfeff}
.pt-status.penting{background:#fff7ed}
.pt-status.mendesak{background:#fef2f2}

.pt-scan-wrap{margin-top:10px;display:flex;flex-direction:column;align-items:center}
.pt-scan-btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px}
.pt-scan-box{position:relative;background:#000;border-radius:12px;overflow:hidden;border:1px solid var(--border)}
.pt-scan-box video{width:100%;height:auto;display:block}
.pt-scan-ctrl{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}

.pt-part-hd{font-weight:800;margin-bottom:8px}
.pt-peserta-list{display:flex;flex-direction:column;gap:8px}
.pt-peserta{display:grid;grid-template-columns:1fr auto;gap:8px;border:1px solid var(--border);border-radius:12px;padding:10px;background:#fff}
.pt-peserta .name{font-weight:600}
.pt-peserta .time{color:#6b7280;font-size:11px}
.pt-tag{padding:4px 8px;border-radius:999px;border:1px solid var(--border);font-size:12px}
.pt-tag.hadir{background:#ecfdf5}
.pt-tag.terlambat{background:#fff7ed}
.pt-tag.tidak{background:#fef2f2}
/* === Pertemuan Scan Modal === */
.pt-scan-modal .modal-dialog{max-width:640px;border-radius:16px;overflow:hidden}
.pt-scan-modal .modal-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--border,#e5e7eb);background:#fff}
.pt-scan-modal .modal-head .title{font-weight:800}
.pt-scan-modal .modal-head .close{border:0;background:transparent;font-size:18px;line-height:1;padding:6px 8px;cursor:pointer}
.pt-scan-modal .modal-body{padding:12px;background:#fff}
.pt-scan-modal .cam-wrap{position:relative;border-radius:16px;overflow:hidden;background:#000}
.pt-scan-modal .cam-wrap .preview{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}
.pt-scan-modal .cam-wrap .overlay{position:absolute;inset:0;pointer-events:none;display:grid;place-items:center}
.pt-scan-modal .cam-wrap .overlay .reticle{
  width:64%;max-width:360px;aspect-ratio:1;border:2px solid #10b981;border-radius:16px;
  box-shadow:0 0 0 9999px rgba(0,0,0,.25) inset
}

/* === Buat Penugasan === */
.pen-item{border:1px solid #becff0;border-radius:12px;padding:12px;margin:10px 0;background:#fff}
.pen-top{padding:10px 12px;display:flex;justify-content:space-between;border-bottom:1px dashed #becff0;align-items:center;gap:10px}
.pen-top .nama{font-weight:700}
.pen-top .divisi{font-size:12px;color:#6b7280}
.pen-del{border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;opacity:.8}
.pen-del:hover{opacity:1;transform:scale(1.05)}
.pen-bottom{padding:10px 12px;margin-top:6px}
.pen-bottom .judul{font-weight:600;margin-bottom:4px}
.pen-bottom .tgl{font-size:12px;color:#6b7280}

.pen-actions{
  display:flex; gap:10px; justify-content:flex-end; margin-top: 12px;
}

.pen-modal .modal-dialog{max-width:720px}
/* === Buat Pertemuan === */
.per-item{border:1px solid #becff0;border-radius:12px;padding:12px;margin:10px 0;background:#fff}
.per-top{padding:10px 12px;display:flex;justify-content:space-between;border-bottom:1px dashed #becff0;align-items:center;gap:10px}
.per-top .nama{font-weight:700}
.per-top .divisi{font-size:12px;color:#6b7280}
.per-del{border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;opacity:.8}
.per-del:hover{opacity:1;transform:scale(1.05)}
.per-bottom{padding:10px 12px;margin-top:6px}
.per-bottom .judul{font-weight:500;margin-bottom:4px}
.per-bottom .tgl{font-size:12px;color:#6b7280}

.per-actions{
  display:flex; gap:10px; justify-content:flex-end; margin-top: 12px;
}

.per-modal .modal-dialog{max-width:720px}
.grid2{display:grid;grid-template-columns:1fr 1fr}
.gap10{gap:10px}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{display:inline-flex;align-items:center;gap:6px;background:#f3f4f6;border:1px solid #becff0;border-radius:999px;padding:5px 10px}
.chip .x{cursor:pointer;border:none;background:transparent;font-weight:800}


.badge{display:inline-block;border:1px solid #e5e7eb;border-radius:999px;padding:4px 9px;font-size:12px}
.badge.status-Penugasan{background:#fff7ed;border-color:#fdba74}
.badge.status-Diterima{background:#ecfeff;border-color:#67e8f9}
.badge.status-Dikerjakan{background:#fef9c3;border-color:#fde047}
.badge.status-Diselesaikan{background:#eaffea;border-color:#86efac}

/* tombol next status */
.btn-accept{background:#22c55e;color:#fff;border-color:#16a34a}
.btn-work{background:#f59e0b;color:#111827;border-color:#d97706}
.btn-done{background:#3b82f6;color:#fff;border-color:#2563eb}

/* timeline */
.timeline .tl-item{display:grid;grid-template-columns:56px 1fr;gap:10px;padding:10px 0;border-bottom:2px dashed #b6cefd}
.timeline .tl-item:last-child{border-bottom:none}
.timeline .tl-photo{width:56px;height:56px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#f9fafb}
.timeline .tl-photo img{max-width:100%;height:auto;display:block}
.timeline .tl-head{display:flex;align-items:baseline;gap:8px;margin-bottom:4px}
.timeline .tl-status{font-size:12px;border-radius:999px;padding:2px 8px;border:1px solid #e5e7eb}
.timeline .tl-meta{font-size:11px;color:#6b7280}

/* Modal gambar fullscreen */
.det-img-modal .modal-dialog{max-width:min(860px,96vw)}
.det-img-modal .modal-bd{padding:0;background:#000}
.imgzoom-wrap{position:relative}
.imgzoom{width:100%;max-height:80vh;object-fit:contain;display:block;background:#000}
.imgzoom-cap{
  position:absolute;left:0;right:0;bottom:0;padding:8px 12px;font-size:12px;color:#fff;
  background:linear-gradient(transparent,rgba(0,0,0,.6))
}
.imgzoom-tools{position:absolute;top:8px;right:8px;display:flex;gap:8px}
.imgzoom-btn{background:rgba(0,0,0,.5);color:#fff;border:0;border-radius:10px;padding:6px 10px;font-weight:600}


button[disabled]{
  opacity:.55;
  cursor:not-allowed;
  pointer-events:auto; /* tetap bisa menunjukkan tooltip title */
}



/* ===========================
   ASRAMA — list, badge, siswa, sheet, FAB
   =========================== */

/* Kartu list asrama */
#asramaList .asrama-card{
  display:flex; gap:12px; align-items:center;
  background:#fff; border:1px solid var(--border); border-radius:14px;
  padding:12px; margin:10px 0; box-shadow: var(--shadow);
  text-decoration:none; color:inherit;
}
#asramaList .asrama-card:hover{ transform:translateY(-1px); transition:.15s ease; }
#asramaList .asrama-card .asrama-left{
  width:44px; height:44px; border-radius:10px;
  background:#f9fafb; display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:18px; border:1px solid var(--border);
}
#asramaList .asrama-card .asrama-main{ flex:1; min-width:0; }
#asramaList .asrama-card .asrama-title{
  font-weight:700; font-size:15px; line-height:1.2; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#asramaList .asrama-card .asrama-sub{
  font-size:12.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#asramaList .asrama-card .asrama-badge{ margin-left:auto; }

/* Warna status baris asrama */
#asramaList .asrama-card.today{ background:#fee2e2; border-color:#fecaca; }
#asramaList .asrama-card.done { background:#ecfdf5; border-color:#a7f3d0; }