/* ==========================================================================
   CORNER HRIS — Penyegaran UI 2026 (dimuat setelah style.css)
   Token warna, form login NIK/PIN, ikon SVG, navbar bawah, bingkai deteksi wajah.
   ========================================================================== */

:root {
  --ui-bg: #0b0f14;
  --ui-surface: #12181f;
  --ui-surface-2: #18202a;
  --ui-border: rgba(255, 255, 255, 0.08);
  --ui-border-strong: rgba(255, 255, 255, 0.14);
  --ui-text: #eef2f6;
  --ui-muted: #8b98a7;
  --ui-primary: #3b82f6;
  --ui-primary-strong: #2563eb;
  --ui-success: #22c55e;
  --ui-warning: #f59e0b;
  --ui-danger: #ef4444;
  --ui-radius: 16px;
  --ui-nav-h: 64px;
  --ui-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Login NIK / Gmail + PIN ---------- */
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--ui-muted);
  font-size: 11.5px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ui-border-strong);
}
.nik-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.nik-login-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.nik-login-row {
  display: flex;
  gap: 8px;
}
.nik-login-row .form-control {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 12px;
  font-size: 15px; /* >=16px tidak memicu zoom iOS pada sebagian versi; 15px + maximum-scale aman */
  background: #0d1117;
  border: 1px solid var(--ui-border-strong);
  color: var(--ui-text);
  padding: 0 14px;
}
.nik-login-row .form-control:focus {
  outline: none;
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.btn-pick-staff {
  flex-shrink: 0;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--ui-border-strong);
  background: var(--ui-surface-2);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-login-submit {
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-strong));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.btn-login-submit:disabled {
  opacity: 0.6;
}

/* ---------- Ikon SVG ---------- */
.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.ic-sm { width: 16px; height: 16px; }
.ic.spin { animation: ui-spin 0.9s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }

/* ---------- Kerangka halaman: ruang untuk navbar bawah ---------- */
body.is-logged-in .app-wrapper {
  padding-bottom: calc(var(--ui-nav-h) + var(--ui-safe-bottom) + 24px);
}

/* Header ringkas */
.app-header {
  padding: 4px 0 12px;
  margin-bottom: 12px;
}
.brand-info h1 { font-size: 16px; }
.brand-sub { font-size: 11px; }
.header-clock { padding: 6px 10px; }
.clock-time { font-size: 15px; }

/* Kartu GPS: tidak perlu tampil sebelum login */
body:not(.is-logged-in) #gpsStatusCard { display: none; }
#gpsStatusCard {
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}
.gps-title { font-size: 12px; letter-spacing: 0.2px; }
.gps-card.free-radius {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.12);
}
.gps-card.free-radius .gps-dot { background: #818cf8; box-shadow: 0 0 8px rgba(129, 140, 248, 0.7); }
.gps-card.free-radius .gps-title,
.gps-card.free-radius .gps-subtitle { color: #c7d2fe; }

/* Kartu profil (di menu Profil): tombol Keluar tampil di sini (menu bawah tanpa Keluar sejak 24 Okt 2026) */
#userProfileCard { padding: 12px 14px !important; margin-bottom: 12px !important; min-height: 0 !important; height: auto !important; }

/* ---------- Halaman Absen ---------- */
.ui-day-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
}
.ui-day-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  flex-shrink: 0;
}
.ui-day-meta { min-width: 0; }
.ui-day-date {
  font-size: 15px;
  font-weight: 800;
  color: var(--ui-text);
}
.ui-day-shift {
  margin-top: 2px;
  font-size: 12px;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.ui-day-shift.is-setting { color: #fbbf24; }

.ui-status-grid {
  padding-top: 0 !important;
  border-top: 0 !important;
  margin-bottom: 14px;
  gap: 10px !important;
}
.ui-status-grid .status-box {
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}
.ui-status-grid .status-box-header { gap: 6px; }
.ui-status-grid .box-icon { width: 16px; height: 16px; color: var(--ui-muted); }
.ui-status-grid .status-time { font-size: 20px; }
.ui-status-grid .status-tag {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Aksi utama: 2 kolom, tidak bertumpuk */
.ui-primary-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
  margin-bottom: 18px !important;
}
.ui-primary-actions .btn-action {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  min-height: 132px;
  border-radius: 18px;
}
.ui-primary-actions .btn-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.ui-primary-actions .action-title { font-size: 15px; }
.ui-primary-actions .action-sub {
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ui-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ui-muted);
  margin: 0 2px 8px;
}
.ui-secondary-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.ui-secondary-actions .btn-action { flex: 1 1 0; min-width: 0; }
.ui-secondary-actions .btn-action {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 6px;
  min-height: 112px;
  border-radius: 16px;
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  color: var(--ui-text) !important;
  box-shadow: none !important;
}
.ui-secondary-actions .btn-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 0 !important;
}
.ui-secondary-actions .btn-sick .btn-action-icon { color: #c4b5fd; background: rgba(139, 92, 246, 0.16); }
.ui-secondary-actions .btn-leave .btn-action-icon { color: #fcd34d; background: rgba(245, 158, 11, 0.16); }
.ui-secondary-actions .btn-erp-login .btn-action-icon { color: #a5b4fc; background: rgba(99, 102, 241, 0.18); }
.ui-secondary-actions .action-title {
  font-size: 13px !important;
  color: var(--ui-text) !important;
}
.ui-secondary-actions .action-sub {
  font-size: 10.5px !important;
  color: var(--ui-muted) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ui-secondary-actions .btn-action:disabled { opacity: 0.45; }

/* ---------- Riwayat Saya ----------
   style.css lama memaksa #userSubViewHistory selalu tersembunyi (!important), sehingga tombol
   Riwayat di navbar selalu membuka layar kosong. Tampilkan saat tab Riwayat dipilih. */
body.is-logged-in #userSubViewHistory[style*="block"] { display: block !important; }

/* ---------- Hadir Hari Ini: kotak ringkasan = filter ---------- */
.u-summary-chip {
  border-radius: 14px !important;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.u-summary-chip:active { transform: scale(0.97); }
.u-summary-chip.is-active {
  border-color: var(--ui-primary) !important;
  background: rgba(59, 130, 246, 0.14) !important;
  box-shadow: inset 0 0 0 1px var(--ui-primary);
}

/* ---------- Navbar bawah (tetap di bawah layar) ---------- */
.ui-navbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: calc(var(--ui-nav-h) + var(--ui-safe-bottom));
  padding: 6px 8px var(--ui-safe-bottom);
  display: none;
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--ui-border-strong);
  z-index: 900;
}
.ui-navbar .nav-dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ui-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.15s, background 0.15s;
}
.ui-navbar .nav-dock-item .ic { width: 22px; height: 22px; }
.ui-navbar .nav-dock-item.active {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
}
.ui-navbar .nav-dock-logout { color: #fca5a5; flex: 0.8; }
.ui-navbar .dock-label { line-height: 1.1; text-align: center; }

body.admin-panel-open .ui-navbar { display: none !important; }

/* Modal di atas navbar */
.modal-overlay { z-index: 1000; }
#cameraModal { z-index: 10000; }

/* ---------- Kamera: bingkai mengikuti deteksi wajah ---------- */
.camera-viewfinder-wrapper .oval-guide {
  width: 62%;
  height: 64%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-style: solid;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: -6%;
}
.face-state-wait .oval-guide { border-color: rgba(251, 191, 36, 0.9); border-style: dashed; }
.face-state-none .oval-guide { border-color: rgba(251, 191, 36, 0.95); border-style: dashed; }
.face-state-bad .oval-guide { border-color: #f87171; }
.face-state-ok .oval-guide {
  border-color: #4ade80;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45), 0 0 24px rgba(74, 222, 128, 0.7);
}
.face-state-off .oval-guide { border-color: rgba(255, 255, 255, 0.7); border-style: dashed; }

.face-live-pill {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.face-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fbbf24;
}
.face-state-bad .face-live-dot { background: #f87171; }
.face-state-ok .face-live-dot { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.face-state-off .face-live-dot { background: #cbd5e1; }
/* Saat pratinjau foto tampil, petunjuk langsung disembunyikan */
.snapshot-preview[style*="block"] ~ .face-guide-overlay,
.camera-viewfinder-wrapper:has(.snapshot-preview[style*="block"]) .face-guide-overlay { display: none; }

.btn-snap { opacity: 0.55; transition: opacity 0.2s, transform 0.15s, border-color 0.2s; }
.btn-snap.is-ready { opacity: 1; border-color: #4ade80; }
.btn-snap.is-ready .snap-inner { background: #4ade80; }
.btn-cam-close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
#cameraReviewControls { gap: 10px; }
.btn-cam-retake,
.btn-cam-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.btn-cam-send { flex: 1; font-size: 15px; }

/* ---------- Layar kecil ---------- */
@media (max-width: 360px) {
  .ui-secondary-actions { flex-wrap: wrap; }
  .ui-secondary-actions .btn-action { flex-basis: calc(50% - 4px); }
  .ui-primary-actions .btn-action { min-height: 120px; }
}

/* ---------- Keypad PIN: ketukan cepat tidak boleh dianggap ketuk-ganda zoom (angka sempat hilang) ---------- */
.key-btn, .lock-key-btn, #adminPinModal button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.key-btn:active { transform: scale(0.94); background: #30363d; }

/* ---------- Absen untuk rekan ---------- */
.proxy-open-btn {
  width: 100%; margin-top: 10px; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--ui-surface); border: 1px dashed var(--ui-border-strong); color: var(--ui-text);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.proxy-open-btn .ic { width: 22px; height: 22px; color: #93c5fd; flex-shrink: 0; }
.proxy-open-btn span { display: flex; flex-direction: column; gap: 2px; }
.proxy-open-btn b { font-size: 14px; }
.proxy-open-btn small { font-size: 11.5px; color: var(--ui-muted); }
#proxyPickerModal { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#proxyPickerModal .proxy-dialog {
  max-width: 520px; width: calc(100% - 24px); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--ui-bg) !important; border: 1px solid var(--ui-border-strong); border-radius: 18px; overflow: hidden;
}
#proxyPickerModal .modal-header h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.proxy-body { padding: 12px 14px 16px; overflow-y: auto; }
.proxy-rules {
  font-size: 12px; line-height: 1.5; color: #fde68a; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35);
}
.proxy-list { display: flex; flex-direction: column; gap: 6px; }
.proxy-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--ui-surface); border: 1px solid var(--ui-border);
}
.proxy-item-id { flex: 1; min-width: 0; }
.proxy-item-name { font-weight: 800; font-size: 13.5px; color: var(--ui-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proxy-item-sub { font-size: 11.5px; color: var(--ui-muted); margin-top: 2px; }
.proxy-st.in { color: #4ade80; } .proxy-st.done { color: #60a5fa; } .proxy-st.leave { color: #c084fc; }
.proxy-act { flex-shrink: 0; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer; border: 1px solid; }
.proxy-act.in { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.5); color: #4ade80; }
.proxy-act.out { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.5); color: #93c5fd; }
.proxy-done { font-size: 11px; color: var(--ui-muted); flex-shrink: 0; }
.feed-status-badge.rekan { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.proxy-compare { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.proxy-compare figure { margin: 0; cursor: pointer; text-align: center; }
.proxy-compare img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ui-border-strong); display: block; }
.proxy-compare figcaption { font-size: 10.5px; color: var(--ui-muted); margin-top: 3px; }

/* ==========================================================================
   PANEL ADMIN 2026: menu samping (layar lebar) / tab geser (HP), kartu grid
   ========================================================================== */
#adminPanelModal .admin-dashboard-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
  border: 0;
  background: var(--ui-bg);
  display: flex;
  flex-direction: column;
}
#adminPanelModal .admin-top-nav {
  height: 60px;
  padding: 0 16px;
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-border);
  gap: 12px;
}
#adminPanelModal .admin-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
#adminPanelModal .admin-title-wrap h2 { font-size: 16px; font-weight: 800; margin: 0; color: var(--ui-text); }
.adm-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  flex-shrink: 0;
}
.adm-brand-sub { font-size: 11px; color: var(--ui-muted); margin-top: 1px; }
#adminPanelModal .admin-top-actions { display: flex; align-items: center; gap: 8px; }
.adm-btn-ghost-danger {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(248, 113, 113, 0.35) !important;
  background: rgba(239, 68, 68, 0.1) !important;
  color: #fca5a5 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.adm-btn-icon {
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center;
  border-radius: 10px !important;
  border: 1px solid var(--ui-border-strong) !important;
  background: var(--ui-surface-2) !important;
  color: var(--ui-text) !important;
  padding: 0 !important;
  cursor: pointer;
}

/* Menu: label pendek hanya di navbar bawah (HP); label panjang di menu samping (layar lebar) */
#adminPanelModal .adm-nav-icon { position: relative; display: inline-grid; place-items: center; }
#adminPanelModal .adm-nav-short { display: none; }

/* HP: menu admin menjadi navbar bawah, tampilannya sama dengan navbar aplikasi karyawan */
@media (max-width: 899px) {
  #adminPanelModal .adm-nav {
    order: 99;
    display: flex !important;
    justify-content: space-around;
    align-items: stretch;
    gap: 2px !important;
    height: calc(var(--ui-nav-h) + var(--ui-safe-bottom));
    padding: 6px 6px var(--ui-safe-bottom) !important;
    background: rgba(13, 17, 23, 0.96) !important;
    border-top: 1px solid var(--ui-border-strong);
    border-bottom: 0 !important;
    overflow: visible !important;
  }
  #adminPanelModal .adm-nav .admin-tab-btn {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  #adminPanelModal .adm-nav .admin-tab-btn .ic { width: 22px; height: 22px; }
  #adminPanelModal .adm-nav .admin-tab-btn.active { background: rgba(59, 130, 246, 0.14) !important; color: #93c5fd !important; }
  #adminPanelModal .adm-nav .adm-nav-label { display: none; }
  #adminPanelModal .adm-nav .adm-nav-short { display: block; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* Angka jadi titik merah kecil di pojok ikon */
  #adminPanelModal .adm-nav .adm-nav-count {
    position: absolute;
    top: -6px;
    right: -12px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 10px;
    background: var(--ui-danger) !important;
    border-color: var(--ui-danger) !important;
    color: #fff !important;
  }
  #adminPanelModal .adm-nav .adm-nav-count.is-zero,
  #adminPanelModal .adm-nav #badgeAdminEmpCount { display: none; }
  #adminPanelModal .admin-view { padding-bottom: 20px; }
}

/* Menu: tab geser (HP) */
#adminPanelModal .adm-nav {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-border);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
#adminPanelModal .adm-nav::-webkit-scrollbar { display: none; }
#adminPanelModal .adm-nav .admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
#adminPanelModal .adm-nav .admin-tab-btn .ic { width: 18px; height: 18px; }
#adminPanelModal .adm-nav .admin-tab-btn:hover { background: var(--ui-surface-2); color: var(--ui-text); }
#adminPanelModal .adm-nav .admin-tab-btn.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
}
.adm-nav-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border-strong);
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 800;
}
.admin-tab-btn.active .adm-nav-count { background: var(--ui-primary); border-color: var(--ui-primary); color: #fff; }

#adminPanelModal .admin-view {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

/* Layar lebar: menu samping + konten */
@media (min-width: 900px) {
  #adminPanelModal .admin-dashboard-dialog {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: 60px minmax(0, 1fr);
  }
  #adminPanelModal .admin-top-nav { grid-column: 1 / -1; grid-row: 1; padding: 0 20px; }
  #adminPanelModal .adm-nav {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    gap: 4px;
    padding: 14px 12px;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 1px solid var(--ui-border);
  }
  #adminPanelModal .adm-nav .admin-tab-btn { width: 100%; padding: 10px 12px; }
  #adminPanelModal .adm-nav .adm-nav-label { flex: 1; text-align: left; }
  #adminPanelModal .admin-view {
    grid-column: 2;
    grid-row: 2;
    padding: 24px 28px 40px;
  }
}

/* Kartu filter: rapi satu baris di layar lebar */
#adminPanelModal .admin-filter-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  padding: 14px;
  box-shadow: none;
}
#adminPanelModal .admin-filter-card .form-control,
#adminPanelModal .admin-select {
  height: 42px;
  border-radius: 10px;
  background: var(--ui-bg);
  border: 1px solid var(--ui-border-strong);
  color: var(--ui-text);
  font-size: 13px;
}
#adminPanelModal .filter-select-wrapper label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ui-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#adminPanelModal .search-box .search-icon { display: grid; place-items: center; color: var(--ui-muted); }
@media (min-width: 900px) {
  #adminViewEmployees .admin-filter-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
  }
  #adminViewEmployees .admin-filter-card .filter-dropdowns-row { margin-top: 0; }
}

/* Kartu karyawan: grid */
#adminEmpListContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
#adminEmpListContainer > .feed-empty { grid-column: 1 / -1; }
.adm-emp-card {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 14px !important;
  margin: 0 !important;
  border-radius: var(--ui-radius) !important;
  background: var(--ui-surface) !important;
  border: 1px solid var(--ui-border) !important;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.adm-emp-card:hover { border-color: rgba(59, 130, 246, 0.45) !important; }
.adm-emp-card.is-inactive { opacity: 0.6; }
.adm-emp-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid rgba(59, 130, 246, 0.5);
  background: var(--ui-surface-2);
  overflow: visible;
  flex-shrink: 0;
  cursor: pointer;
}
.adm-avatar img,
.adm-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #bfdbfe;
  overflow: hidden;
}
.adm-avatar-cam {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ui-primary-strong);
  color: #fff;
  border: 2px solid var(--ui-surface);
}
.adm-avatar-cam .ic { width: 11px; height: 11px; }
.adm-emp-id { min-width: 0; flex: 1; }
.adm-emp-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ui-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-emp-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.adm-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ui-surface-2);
  border: 1px solid var(--ui-border-strong);
  color: #cbd5e1;
  white-space: nowrap;
}
.adm-chip-nik { color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.1); }
.adm-chip-ok { color: #86efac; border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.1); }
.adm-chip-bad { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.1); }
.adm-emp-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--ui-bg);
  border: 1px solid var(--ui-border);
  color: #a7f3d0;
  font-size: 12.5px;
  min-width: 0;
}
.adm-emp-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-emp-mail.is-missing { color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.adm-emp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--ui-border-strong);
  background: var(--ui-surface-2);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
}
.adm-act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-act:hover { border-color: rgba(59, 130, 246, 0.45); color: var(--ui-text); }
.adm-act.is-ok { color: #86efac; border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.08); }
.adm-act.is-warn { color: #fcd34d; border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }

/* Riwayat: kartu statistik & daftar grid */
#adminPanelModal .today-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#adminPanelModal .stat-card {
  border-radius: 14px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  padding: 14px 10px;
}
#adminPanelModal .stat-card.active { border-color: var(--ui-primary); box-shadow: inset 0 0 0 1px var(--ui-primary); }
#adminPanelModal .stat-num { font-size: 22px; }
#adminHistoryListContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}
#adminHistoryListContainer > .feed-empty { grid-column: 1 / -1; }
#adminHistoryListContainer .admin-history-card {
  margin: 0;
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
}
#adminPanelModal .btn-export-csv,
#adminPanelModal .btn-manual-attendance {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-weight: 700;
}
@media (max-width: 520px) {
  #adminPanelModal .today-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #adminEmpListContainer, #adminHistoryListContainer { grid-template-columns: 1fr; }
}

/* Kartu filter kehadiran: 8 kartu, 4 kolom (HP) / 8 kolom (layar lebar) */
#adminPanelModal .adm-status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
@media (min-width: 1200px) { #adminPanelModal .adm-status-grid { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; } }
#adminPanelModal .adm-status-grid .stat-card { padding: 10px 6px; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#adminPanelModal .adm-status-grid .stat-num { font-size: 20px; font-weight: 900; line-height: 1.1; }
#adminPanelModal .adm-status-grid .stat-lbl { font-size: 10.5px; font-weight: 700; color: var(--ui-muted); margin-top: 2px; line-height: 1.2; letter-spacing: -0.1px; }
@media (max-width: 380px) { #adminPanelModal .adm-status-grid .stat-lbl { font-size: 10px; } }
#adminPanelModal .adm-status-grid .stat-card.success .stat-num { color: #4ade80; }
#adminPanelModal .adm-status-grid .stat-card.warning .stat-num { color: #fbbf24; }
#adminPanelModal .adm-status-grid .stat-card.amber .stat-num { color: #fb923c; }
#adminPanelModal .adm-status-grid .stat-card.info .stat-num { color: #60a5fa; }
#adminPanelModal .adm-status-grid .stat-card.purple .stat-num { color: #c084fc; }
#adminPanelModal .adm-status-grid .stat-card.slate .stat-num { color: #cbd5e1; }
#adminPanelModal .adm-status-grid .stat-card.danger .stat-num { color: #f87171; }
#adminPanelModal .adm-status-grid .stat-card.active { background: rgba(59, 130, 246, 0.12); }
.adm-filter-active {
  align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin: -4px 0 10px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: var(--ui-text);
  background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3);
}
.adm-filter-active button {
  border: 0; background: transparent; color: #93c5fd; font-weight: 700; font-size: 12px; cursor: pointer; padding: 2px 4px;
}
#adminHistoryListContainer .admin-history-card.is-absent { border-style: dashed; opacity: 0.92; }
.history-absent-note { font-size: 12px; color: var(--ui-muted); margin-top: 8px; }
.feed-status-badge.belum { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.35); }

/* ==========================================================================
   KERJA: scan resi produksi (Scan 1 terima, Scan 2 kirim) + hitungan harian
   ========================================================================== */
.kerja-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kerja-head .sub-view-desc { margin: 4px 0 0; font-size: 12px; color: var(--ui-muted); }
.kerja-refresh {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; cursor: pointer;
  background: var(--ui-surface-2); border: 1px solid var(--ui-border); color: var(--ui-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.kerja-counter { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin-bottom: 8px; }
.kerja-count-main, .kerja-count-side {
  border-radius: var(--ui-radius); padding: 14px; border: 1px solid var(--ui-border);
  display: flex; flex-direction: column; gap: 2px;
}
.kerja-count-main { background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.05)); border-color: rgba(34, 197, 94, 0.35); }
.kerja-count-side { background: var(--ui-surface); }
.kerja-count-val { font-size: 40px; line-height: 1; font-weight: 900; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.kerja-count-val.small { font-size: 28px; color: var(--ui-warning); }
.kerja-count-lbl { font-size: 12px; color: var(--ui-muted); font-weight: 600; }
.kerja-station-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kerja-chip {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--ui-surface-2); border: 1px solid var(--ui-border); color: var(--ui-text);
}
.kerja-chip b { color: var(--ui-success); margin-left: 4px; }
/* Antrean harus dikirim hari ini */
.kerja-antrean {
  padding: 10px 12px; margin-bottom: 10px; border-radius: 12px;
  background: var(--ui-surface-2); border: 1px solid var(--ui-border);
}
.kerja-antrean-title { font-size: 13px; font-weight: 800; color: var(--ui-text); margin-bottom: 6px; }
.kerja-antrean-title .late { color: #f87171; }
.kerja-antrean .kerja-station-chips { margin-bottom: 6px; }
.kerja-antrean .kerja-chip b { color: var(--ui-text); }
.kerja-antrean .kerja-chip small { font-weight: 600; color: var(--ui-muted); margin-left: 4px; }
.kerja-antrean .kerja-chip .late { color: #f87171; margin-left: 4px; }
.kerja-antrean-note { font-size: 11.5px; color: var(--ui-muted); line-height: 1.4; }
.kerja-chip-btn { cursor: pointer; font-family: inherit; }
.kerja-chip-btn:active { transform: scale(0.97); }
.kerja-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ui-primary, #60a5fa); text-decoration: underline; cursor: pointer; }
.kerja-antrean-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.kerja-antrean-list-head { font-size: 12.5px; line-height: 1.5; color: var(--ui-text); }
.kerja-antrean-list-head .kerja-link { float: right; margin-left: 10px; }
.kerja-antrean-list .kerja-item.late { border-color: rgba(239, 68, 68, 0.55); }
.kerja-item-tag.late { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.kerja-antrean-list-head .late { color: #f87171; font-weight: 700; }
.kerja-rekap-jenis { border-radius: 12px; border: 1px solid var(--ui-border); background: var(--ui-surface); padding: 8px 10px; }
.kerja-rekap-jenis-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--ui-text); margin-bottom: 4px; }
.kerja-rekap-warna { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px dashed var(--ui-border); font-size: 13px; }
.kerja-rekap-jenis-head + .kerja-rekap-warna { border-top: 0; }
.kerja-rekap-warna-nama { min-width: 72px; font-weight: 700; color: var(--ui-muted); }
.kerja-rekap-ukuran { display: inline-block; margin: 0 10px 2px 0; color: var(--ui-text); }
.kerja-rekap-ukuran b { color: var(--ui-success); }
.kerja-rekap-ukuran.late b { color: #f87171; }
.kerja-rekap-jenis.late { border-color: rgba(239, 68, 68, 0.55); }
.kerja-approve-actions { display: flex; gap: 8px; margin-top: 8px; }
.kerja-approve-actions .kerja-btn { flex: 1; }
.kerja-return-swap { display: grid; gap: 6px; }
.kerja-rekap-jenis-head .late { color: #f87171; }
.kerja-rekap-jenis .kerja-rekap-warna-nama { min-width: 120px; }
.kerja-rule {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--ui-muted); padding: 8px 10px; margin-bottom: 10px;
  border-radius: 12px; background: rgba(59, 130, 246, 0.08); border: 1px dashed rgba(59, 130, 246, 0.35);
}
.kerja-rule b { color: var(--ui-text); }
.kerja-rule-arrow { color: var(--ui-primary); font-weight: 900; }
.kerja-scanner {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 46vh; border-radius: var(--ui-radius);
  overflow: hidden; background: #000; border: 2px solid var(--ui-border-strong); transition: border-color 0.2s;
}
.kerja-scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kerja-scanner.is-live { border-color: var(--ui-primary); }
.kerja-scanner.flash-ok { border-color: var(--ui-success); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35); }
.kerja-scanner.flash-bad { border-color: var(--ui-danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.35); }
.kerja-scan-line {
  position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; display: none;
  background: var(--ui-danger); box-shadow: 0 0 10px var(--ui-danger);
}
.kerja-scanner.is-live .kerja-scan-line { display: block; }
.kerja-scanner-idle {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--ui-muted); font-size: 13px;
}
.kerja-scanner-idle .ic { width: 40px; height: 40px; opacity: 0.6; }
.kerja-scanner.is-live .kerja-scanner-idle { display: none; }
.kerja-actions { margin: 10px 0 8px; }
.kerja-btn { width: 100%; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; }
.kerja-manual { display: flex; gap: 8px; margin-bottom: 10px; }
.kerja-manual .form-control { flex: 1; min-width: 0; height: 44px; text-transform: uppercase; }
.kerja-btn-send {
  width: 48px; height: 44px; flex-shrink: 0; border-radius: 10px; cursor: pointer;
  background: var(--ui-surface-2); border: 1px solid var(--ui-border-strong); color: var(--ui-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.kerja-result {
  border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--ui-border); background: var(--ui-surface); color: var(--ui-text);
}
.kerja-result.ok { border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.1); }
.kerja-result.start { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.1); }
.kerja-result.bad { border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.1); }
.kerja-result small { display: block; margin-top: 4px; color: var(--ui-muted); font-weight: 500; }
.kerja-section-title { font-size: 12px; font-weight: 800; color: var(--ui-muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 6px; }
.kerja-list { display: flex; flex-direction: column; gap: 6px; }
/* Rekap produksi harian (menu Info): judul dengan tombol geser tanggal */
.rekap-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rekap-nav-btn { width: 34px; height: 30px; border-radius: 10px; border: 1px solid var(--ui-border, rgba(255,255,255,0.12)); background: transparent; color: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.rekap-nav-btn:disabled { opacity: 0.3; cursor: default; }
.kerja-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  background: var(--ui-surface); border: 1px solid var(--ui-border); font-size: 13px;
}
.kerja-item-resi { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kerja-item-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.kerja-item-tag.done { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.kerja-item-tag.start { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.kerja-item-time { font-size: 12px; color: var(--ui-muted); font-variant-numeric: tabular-nums; }
.kerja-empty { font-size: 12.5px; color: var(--ui-muted); padding: 8px 2px; }
/* Varian resi (warna · ukuran × qty) & rekap resi yang sedang dipegang — supaya kaos yang diambil/dikerjakan tidak salah */
.kerja-varian { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kerja-varian-chip {
  padding: 6px 10px; border-radius: 10px; background: #fff; color: #1e1b4b; font-size: 16px; font-weight: 900; line-height: 1.15;
}
.kerja-varian-chip b { color: #4f46e5; }
.kerja-varian-chip small { display: block; margin-top: 0; font-size: 10.5px; font-weight: 600; color: #64748b; }
.kerja-item-varian { display: block; font-size: 12px; font-weight: 700; color: var(--ui-text); margin-top: 2px; white-space: normal; }
.kerja-recap { border-radius: 12px; border: 1px solid var(--ui-border); background: var(--ui-surface); overflow: hidden; }
.kerja-recap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kerja-recap th { font-size: 10.5px; text-transform: uppercase; color: var(--ui-muted); text-align: left; padding: 6px 10px; }
.kerja-recap td { padding: 6px 10px; border-top: 1px solid var(--ui-border); font-weight: 700; }
.kerja-recap td.num, .kerja-recap th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kerja-recap td.qty { font-size: 17px; font-weight: 900; color: #818cf8; }
.kerja-recap tr.total td { font-weight: 900; border-top: 2px solid var(--ui-border-strong); }
.kerja-count-lbl #kerjaTotalPcs:not(:empty)::before { content: ' · '; }

/* Mode menu Kerja: Kerjakan / Cek Resi / Tercecer */
.kerja-modes {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-bottom: 10px;
  border-radius: 12px; background: var(--ui-surface-2); border: 1px solid var(--ui-border);
}
.kerja-mode {
  height: 38px; border: 0; border-radius: 9px; cursor: pointer; font-weight: 800; font-size: 13px;
  background: transparent; color: var(--ui-muted); touch-action: manipulation;
}
.kerja-mode.active { background: var(--ui-primary); color: #fff; }
/* Pilihan grup Superadmin/Owner di Info (pemilik 2 Nov 2026): tombol segmen, bisa digeser bila nama panjang */
.grup-pilih {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none;
  border-radius: 12px; background: var(--ui-surface-2); border: 1px solid var(--ui-border);
}
.grup-pilih::-webkit-scrollbar { display: none; }
.grup-chip {
  flex: 1 0 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; cursor: pointer; white-space: nowrap;
  font-weight: 800; font-size: 13px; background: transparent; color: var(--ui-muted); touch-action: manipulation;
}
.grup-chip.active { background: var(--ui-primary); color: #fff; }
.kerja-rule-cek { justify-content: flex-start; text-align: left; }

/* Hasil Cek Resi */
.kerja-cek {
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
  background: var(--ui-surface); border: 1px solid var(--ui-border-strong);
}
.kerja-cek-resi { font-size: 12px; color: var(--ui-muted); font-weight: 700; font-variant-numeric: tabular-nums; word-break: break-all; }
.kerja-cek-station { font-size: 26px; line-height: 1.15; font-weight: 900; color: var(--ui-text); margin: 6px 0 2px; }
.kerja-cek-posisi { font-size: 13.5px; font-weight: 600; color: var(--ui-text); }
.kerja-cek.is-off .kerja-cek-station { color: #f87171; }
.kerja-cek-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.kerja-cek-meta span {
  padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--ui-surface-2); border: 1px solid var(--ui-border); color: var(--ui-text);
}
.kerja-cek-meta span.warn { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
.kerja-cek-timeline { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.kerja-cek-timeline div { display: flex; gap: 8px; font-size: 12px; color: var(--ui-muted); }
.kerja-cek-timeline b { color: var(--ui-text); font-weight: 700; }
.kerja-cek-timeline .t-jam { flex-shrink: 0; width: 76px; font-variant-numeric: tabular-nums; }
.kerja-cek-timeline .t-cacat b { color: #f87171; }
.kerja-defect-toggle {
  margin-top: 12px; width: 100%; height: 40px; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 13px;
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5;
}
.kerja-defect-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.kerja-defect-form .form-control { height: 42px; }
.kerja-defect-form p { margin: 0; font-size: 11.5px; color: var(--ui-muted); }

/* Resi tercecer */
.kerja-stray-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12.5px; color: var(--ui-muted); font-weight: 600; }
.kerja-stray-head .form-control { width: auto; height: 36px; padding: 0 10px; }
.kerja-item-sub { display: block; font-size: 11px; color: var(--ui-muted); font-weight: 500; margin-top: 2px; white-space: normal; }
.kerja-item-tag.stray { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

/* Pita peringatan resi tertahan di menu Kerja */
.kerja-warn {
  width: 100%; display: flex; align-items: flex-start; gap: 8px; text-align: left; cursor: pointer;
  padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.4;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.45); color: #fecaca;
}
.kerja-warn .ic { flex-shrink: 0; margin-top: 1px; color: #f87171; }
.kerja-warn b { color: #fff; }

/* Lonceng pemberitahuan di kartu profil */
.info-bell-btn {
  position: relative; width: 38px; height: 34px; flex-shrink: 0; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.35); color: #93c5fd;
}
.info-bell-btn .ic { width: 18px; height: 18px; }
.info-bell-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
  background: var(--ui-primary); color: #fff; border: 2px solid #0d1117;
}
.info-bell-count.is-resi { background: var(--ui-danger); }

/* Daftar pemberitahuan (karyawan & admin) */
.info-item {
  padding: 11px 12px; border-radius: 12px; background: var(--ui-surface); border: 1px solid var(--ui-border);
  display: flex; flex-direction: column; gap: 5px;
}
.info-item.unread { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.08); }
.info-item.important { border-color: rgba(239, 68, 68, 0.5); }
.info-item.withdrawn { opacity: 0.55; }
.info-item-top { display: flex; align-items: baseline; gap: 6px; }
.info-item-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; color: var(--ui-text); }
.info-item-time { font-size: 11px; color: var(--ui-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.info-item-body { font-size: 12.5px; color: var(--ui-text); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.info-item-meta { font-size: 11px; color: var(--ui-muted); }
.info-tag { font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 6px; background: var(--ui-danger); color: #fff; }
.info-ack, .info-withdraw {
  align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800;
  background: var(--ui-surface-2); border: 1px solid var(--ui-border-strong); color: var(--ui-text);
}
.info-withdraw { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }

/* Jendela pengumuman penting */
.important-notice-dialog { max-width: 420px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.important-notice-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; color: #f87171; text-transform: uppercase; letter-spacing: 0.04em; }
.important-notice-dialog h3 { margin: 0; font-size: 18px; color: var(--ui-text); }
.important-notice-time { font-size: 11.5px; color: var(--ui-muted); }
.important-notice-body { font-size: 14px; line-height: 1.55; color: var(--ui-text); white-space: pre-wrap; word-break: break-word; max-height: 50vh; overflow-y: auto; margin-bottom: 6px; }

/* Panel admin: form pemberitahuan */
.adm-info-form { padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.adm-info-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--ui-text); }
.adm-info-note { margin: 0; font-size: 12px; color: var(--ui-muted); line-height: 1.5; }
.adm-info-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-info-targets label, .adm-info-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--ui-text); background: var(--ui-surface-2); border: 1px solid var(--ui-border);
}
.adm-info-chip small { color: var(--ui-muted); font-weight: 600; }
.adm-info-divisions { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-info-important { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ui-text); cursor: pointer; }
.adm-info-form textarea.form-control { resize: vertical; min-height: 90px; }

/* Peringatan APK lama: minta pegawai memasang versi terbaru */
.apk-update-banner {
  position: sticky; top: 0; z-index: 950; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #7c2d12; color: #fff7ed; border-bottom: 1px solid #fb923c;
  font-size: 12.5px; line-height: 1.35;
}
.apk-update-banner div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.apk-update-banner span { opacity: 0.9; }
.apk-update-banner a {
  flex-shrink: 0; padding: 8px 14px; border-radius: 10px; background: #fb923c; color: #1c1917;
  font-weight: 800; text-decoration: none;
}

/* Poin kerja (1 poin per pcs tiap bagian selesai; pcs bonus = poin ÷ 8) */
.kerja-poin { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; padding: 8px 12px; border-radius: 12px; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .35); font-size: 13px; }
.kerja-poin-val { font-size: 20px; font-weight: 900; color: #10b981; }
.kerja-poin-note { opacity: .7; font-size: 11px; }
.kerja-poin-target { flex-basis: 100%; font-size: 12px; opacity: .9; }

/* Buku kasbon dari ERP (riwayat kasbon & pembayaran + saldo berjalan) */
.kasbon-buku-head { font-size: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); margin-bottom: 6px; }
.kasbon-buku-row { padding: 8px 10px; border-bottom: 1px solid var(--ui-border, rgba(127,127,127,.2)); font-size: 12px; }
.kasbon-buku-main { display: flex; gap: 8px; align-items: baseline; }
.kasbon-buku-date { font-family: ui-monospace, monospace; opacity: .75; }
.kasbon-buku-jenis { flex: 1; font-weight: 700; }
.kasbon-buku-jenis.is-kasbon { color: #f59e0b; }
.kasbon-buku-jenis.is-bayar { color: #10b981; }
.kasbon-buku-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.kasbon-buku-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; opacity: .7; margin-top: 2px; }
.kasbon-buku-sub span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kasbon-buku-sub span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Peringatan resi tertahan per toko (ketuk untuk rincian) */
.resi-toko { border: 1px solid var(--ui-border, rgba(127,127,127,.25)); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.resi-toko > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; font-weight: 700; }
.resi-toko > summary::-webkit-details-marker { display: none; }
.resi-toko[open] > summary { border-bottom: 1px solid var(--ui-border, rgba(127,127,127,.25)); }
.resi-toko-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resi-mp-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: #fff; flex-shrink: 0; }
.resi-mp-text { font-size: 10px; font-weight: 800; opacity: .8; }
.resi-toko .kerja-item { padding-left: 12px; padding-right: 12px; }
/* Lonceng di menu bawah */
.nav-dock-item .info-bell-count { position: absolute; top: 2px; right: 18%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
/* Langkah pemakaian menu Kerja */
.kerja-steps { margin: 4px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.55; opacity: .85; }
.kerja-poin { justify-content: space-around; }
.kerja-poin-box { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 80px; }
.kerja-poin-val.is-penalti { color: #ef4444; }

/* Tarik untuk memuat ulang (pengganti tombol refresh) */
.ptr-hint { position: fixed; top: 6px; left: 50%; transform: translate(-50%, 0); z-index: 9999; padding: 6px 14px; border-radius: 999px; background: rgba(37, 99, 235, .95); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ptr-hint.show { opacity: 1; }
/* SOP kerja stasiun */
.sop-card { border: 1px solid var(--ui-border, rgba(127,127,127,.25)); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.sop-card > summary { padding: 12px 14px; font-weight: 800; font-size: 14px; cursor: pointer; list-style: none; }
.sop-card > summary::-webkit-details-marker { display: none; }
.sop-card[open] > summary { border-bottom: 1px solid var(--ui-border, rgba(127,127,127,.25)); }
.sop-list { margin: 10px 14px 12px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.sop-list ul { padding-left: 16px; margin: 4px 0; }
.sop-list li { margin-bottom: 4px; }
.sop-card { color: #e6edf3; background: rgba(22, 27, 34, .85); } .sop-card > summary { color: #fff; } .sop-list b { color: #fff; }

/* Boot dengan sesi tersimpan: langsung tampil layar pegawai, layar login tidak berkedip */
html.has-session #authLoginSection { display: none !important; }
html.has-session #authProfileSection { display: block !important; }
/* SOP: tertutup bawaan (angka + judul), panah kanan V buka / ^ tutup */
.sop-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sop-card > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s; flex-shrink: 0; opacity: .8; }
.sop-card[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

/* ===== 25 Okt 2026: Profil (poin, kasbon), Info (order hari ini) ===== */
.profil-block { margin-bottom: 14px; }
/* Bubble poin */
#kerjaPoin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; background: none; border: 0; margin: 0 0 8px; }
#kerjaPoin[hidden] { display: none; }
#kerjaPoin .kerja-poin-box { min-width: 0; padding: 12px 6px; border-radius: 14px; background: rgba(22, 27, 34, .85); border: 1px solid rgba(255,255,255,.08); color: #e6edf3; cursor: pointer; font: inherit; }
#kerjaPoin .kerja-poin-box.active { border-color: #3b82f6; background: rgba(59, 130, 246, .14); }
#kerjaPoin .kerja-poin-val { font-size: 22px; font-weight: 900; color: #34d399; line-height: 1.1; }
#kerjaPoin .kerja-poin-val.is-penalti { color: #f87171; }
#kerjaPoin .kerja-poin-note { font-size: 11px; opacity: .75; }
.poin-harian { border-radius: 14px; background: rgba(22, 27, 34, .85); border: 1px solid rgba(255,255,255,.08); padding: 8px 12px; margin-bottom: 10px; color: #e6edf3; }
.poin-harian-head { font-size: 12px; font-weight: 800; opacity: .8; padding: 4px 0 6px; }
.poin-harian-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.poin-harian-row small { display: block; font-size: 11px; opacity: .65; }
.poin-harian-row b { font-size: 15px; color: #34d399; }
.poin-harian-row b.is-penalti { color: #f87171; }
.scan-today > summary { font-size: 13px; }
.scan-today-count { font-size: 11px; font-weight: 600; opacity: .7; margin-left: auto; margin-right: 8px; }
.scan-today .kerja-station-chips, .scan-today .kerja-list { padding: 8px 12px; }
/* Kasbon */
.kasbon-hero { border-radius: 18px; padding: 16px; background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(16, 185, 129, .14)); border: 1px solid rgba(255,255,255,.1); color: #f8fafc; margin-bottom: 10px; }
.kasbon-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kasbon-hero-label { font-size: 12px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.kasbon-eye { font-size: 11px !important; padding: 5px 10px !important; border-radius: 999px !important; }
.kasbon-hero-amount { font-size: 28px; font-weight: 900; margin: 8px 0 14px; letter-spacing: .5px; }
.kasbon-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kasbon-act { padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 800; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.kasbon-act.primary { background: #2563eb; border-color: #3b82f6; }
.kasbon-tabs { display: flex; gap: 6px; padding: 10px 12px 4px; }
.kasbon-tabs button { flex: 1; padding: 8px; border-radius: 10px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,.1); background: transparent; color: #8b949e; cursor: pointer; }
.kasbon-tabs button.active { background: #21262d; color: #f0f6fc; border-color: #388bfd; }
.kasbon-riwayat .kasbon-requests-list { padding: 4px 12px 12px; }
.kasbon-buku-head { margin: 6px 0 4px; }
.kasbon-buku-row { padding: 10px 0; }
.presensi-riwayat > summary { font-size: 14px; }
.presensi-riwayat > *:not(summary) { margin-left: 12px; margin-right: 12px; }
/* Order harus dikirim hari ini */
#kerjaAntrean { border-radius: 18px; padding: 14px; background: rgba(22, 27, 34, .9); border: 1px solid rgba(59, 130, 246, .35); color: #e6edf3; margin-bottom: 12px; }
.ant-title { font-size: 15px; font-weight: 900; margin-bottom: 10px; }
.ant-title small { font-weight: 600; opacity: .6; font-size: 11px; }
.ant-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ant-stats > div { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,.05); }
.ant-stats b { display: block; font-size: 22px; font-weight: 900; color: #60a5fa; }
.ant-stats span { font-size: 11px; opacity: .7; }
.ant-stats .is-late b { color: #f87171; }
.ant-rows { display: flex; flex-direction: column; gap: 6px; }
.ant-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ant-row-name { font-weight: 800; font-size: 14px; flex: 1; }
.ant-row-val { font-size: 12px; opacity: .85; }
.ant-row-val b { font-size: 14px; color: #fff; }
.ant-late { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: rgba(239, 68, 68, .2); color: #fca5a5; }
.ant-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .6; }
.ant-note { font-size: 11px; opacity: .65; margin-top: 10px; line-height: 1.5; }
.kasbon-hero-label { white-space: nowrap; } .kasbon-hero .kasbon-eye { width: auto !important; flex: 0 0 auto !important; margin: 0 !important; background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.2) !important; color: #fff !important; }

/* Basmalah di atas status lokasi */
.bismillah { text-align: center; font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', 'Traditional Arabic', serif; font-size: 24px; line-height: 1.6; color: #fde68a; margin: 2px 0 8px; letter-spacing: 0; }
/* Penalti selalu merah */
#kerjaPoin .kerja-poin-box:nth-child(2) .kerja-poin-note { color: #fca5a5; opacity: 1; }
/* Saldo kasbon rahasia: buram, ketuk untuk melihat */
.kasbon-confidential { font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #fff; background: #dc2626; padding: 4px 10px; border-radius: 999px; }
.kasbon-hero-amount { cursor: pointer; transition: filter .2s; user-select: none; -webkit-user-select: none; }
.kasbon-hero-amount.is-blurred { filter: blur(9px); }
/* Basmalah gaya mushaf (seperti MyQuran): Amiri Quran, hijau tua di latar hijau muda */
.bismillah { font-family: 'Amiri Quran', 'Amiri', 'Noto Naskh Arabic', serif !important; font-size: 26px !important; line-height: 2 !important; color: #14532d !important; background: #c6f6c6; border-radius: 14px; padding: 4px 12px 8px; margin: 2px 0 10px !important; }
/* Basmalah: warna mengikuti tema aplikasi (pemilik: font & bentuk sama, warna tidak harus) */ .bismillah { background: transparent !important; color: #f1f5f9 !important; padding: 0 8px 4px !important; }
.apk-soft-update { position: fixed; left: 12px; right: 12px; bottom: 86px; z-index: 9998; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #1e3a8a; color: #fff; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); } .apk-soft-update span { flex: 1; } .apk-soft-update a { background: #22c55e; color: #04120a; font-weight: 800; padding: 6px 12px; border-radius: 10px; text-decoration: none; } .apk-soft-update button { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.kasbon-hero-amount { touch-action: none; -webkit-touch-callout: none; }
#bismillahText { display: inline-block; white-space: nowrap; } .bismillah { font-size: 30px !important; line-height: 1.7 !important; overflow: hidden; }
/* Basmalah: tidak terpotong (harakat atas/bawah) */ .bismillah { overflow: visible !important; line-height: 2.1 !important; padding: 6px 4px !important; max-width: 100%; }
#bismillahText { transform-origin: center center; }
/* Menu bawah ditahan tak terlihat sampai bentuk akhirnya diketahui (pembukaan pertama) */ #bottomNavDock.dock-pending { visibility: hidden; }
/* Menu Scan untuk akun tanpa stasiun produksi: hanya keterangan */ #userSubViewKerja .kerja-locked { display: none !important; } .kerja-noaccess { margin-top: 24px; text-align: center; padding: 28px 16px; }
/* Rekap daftar hadir hari ini di halaman Absen */
.hadir-rekap { margin-bottom: 12px; }
.hadir-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hadir-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--bg-card, #161b22); border: 1px solid var(--border-color, #30363d); color: #c9d1d9; cursor: pointer; font: inherit; }
.hadir-chip b { font-size: 18px; font-weight: 900; line-height: 1.1; }
.hadir-chip span { font-size: 10.5px; color: #8b949e; white-space: nowrap; }
.hadir-chip.green b { color: #3fb950; } .hadir-chip.amber b { color: #d29922; } .hadir-chip.purple b { color: #bc8cff; } .hadir-chip.slate b { color: #94a3b8; }
.hadir-chip.active { border-color: #388bfd; background: rgba(56, 139, 253, 0.12); }
.hadir-list { margin-top: 8px; border-radius: 12px; border: 1px solid var(--border-color, #30363d); background: var(--bg-card, #161b22); overflow: hidden; }
.hadir-list-head { padding: 8px 12px; font-size: 11px; font-weight: 800; color: #8b949e; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border-color, #30363d); }
.hadir-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.hadir-row:last-child { border-bottom: 0; }
.hadir-row.is-me { background: rgba(56, 139, 253, 0.08); }
.hadir-no { flex: 0 0 24px; font-size: 11px; font-weight: 800; color: #58a6ff; text-align: center; }
.hadir-nama { flex: 1; min-width: 0; font-weight: 700; color: #f0f6fc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hadir-nama small { display: block; font-weight: 500; font-size: 10.5px; color: #8b949e; }
.hadir-ket { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11.5px; font-weight: 700; color: #c9d1d9; flex-shrink: 0; }
.hadir-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; }
.hadir-tag.amber { background: rgba(210,153,34,.15); color: #d29922; } .hadir-tag.purple { background: rgba(188,140,255,.15); color: #bc8cff; } .hadir-tag.slate { background: rgba(148,163,184,.12); color: #94a3b8; }
.poin-harian-row small i.is-penalti { font-style: normal; color: #f87171; }
/* Basmalah paling atas halaman login (pemilik 25 Okt 2026); jarak basmalah–header–kartu login seimbang (20px) */
.login-bismillah { text-align: center; font-family: 'Amiri Quran', 'Amiri', 'Noto Naskh Arabic', serif; font-size: clamp(32px, 11vw, 52px); line-height: 1.5; color: #f1f5f9; white-space: nowrap; padding-top: 6px; margin: 0 0 calc(0.6em + 16px); }
/* Jarak tinta basmalah ke kotak login = 20px, sama dengan kotak login ke kutipan (harakat bawah turun ±0,6em di bawah kotak teks) */
body.is-logged-in .login-bismillah, html.has-session .login-bismillah { display: none; }


/* SOP di Profil: satu baris buka-tutup berisi 8 bagian */
.sop-profil .sop-profil-body { margin-top: 10px; }
.sop-profil .sop-profil-body .sop-card { margin-bottom: 8px; background: rgba(255,255,255,.02); }




/* Halaman login (pemilik 25 Okt 2026): jam di dalam kotak login sebelah kanan logo Corner; tanpa keterangan portal & keamanan */
html:not(.has-session) body:not(.is-logged-in) .app-header { display: none; }
body:not(.is-logged-in) #authLoginSection { margin-top: 0 !important; padding: 24px 20px 26px !important; }
.login-head { margin-bottom: 22px; }
.login-head-row { display: flex; align-items: center; justify-content: center; gap: 16px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.login-logo { flex: 0 0 76px; height: 76px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: rgba(37, 99, 235, 0.15); border: 1px solid rgba(59, 130, 246, 0.35); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25); }
.login-logo img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.login-clock { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 76px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.12); }
.login-clock-time { font-size: 36px; font-weight: 900; line-height: 1; color: #f8fafc; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.login-clock-date { margin-top: 8px; font-size: 12.5px; font-weight: 800; color: #ef4444; white-space: nowrap; }
.login-title { font-size: 22px; font-weight: 900; color: #f8fafc; margin: 18px 0 0; letter-spacing: .5px; }

/* Kutipan Al-Qur'an acak di bawah kotak login: terjemah saja */
.ayat-acak-wrap { max-width: 440px; margin: 0 auto 20px; }
.ayat-tema-row { display: flex; gap: 8px; margin-bottom: 8px; }
.ayat-tema { position: relative; flex: 1; min-width: 0; }
.ayat-tema-btn { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(165, 180, 252, .28); background: linear-gradient(135deg, rgba(79, 70, 229, .22), rgba(30, 27, 75, .6)); color: #e0e7ff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-align: left; }
.ayat-tema-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ayat-tema-chev { flex-shrink: 0; color: #a5b4fc; transition: transform .15s; }
.ayat-tema-btn[aria-expanded="true"] { border-color: #818cf8; }
.ayat-tema-btn[aria-expanded="true"] .ayat-tema-chev { transform: rotate(180deg); }
.ayat-tema-list { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 40; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 16px; border: 1px solid rgba(165, 180, 252, .3); background: #161536; box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.ayat-tema-list[hidden] { display: none; }
.ayat-tema-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #e0e7ff; font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.ayat-tema-opt small { color: #a5b4fc; font-weight: 700; font-size: 11px; }
.ayat-tema-opt:hover, .ayat-tema-opt:active { background: rgba(129, 140, 248, .14); }
.ayat-tema-opt.active { background: #4f46e5; color: #fff; }
.ayat-tema-opt.active small { color: #e0e7ff; }
.ayat-ganti { flex: 0 0 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 1px solid rgba(165, 180, 252, .28); background: #4f46e5; color: #fff; cursor: pointer; }
.ayat-ganti.spin svg { animation: ui-spin .6s linear; }
.ayat-acak { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; padding: 14px 18px; border-radius: 18px; border: 1px solid rgba(165, 180, 252, .22); background: linear-gradient(135deg, rgba(79, 70, 229, .18), rgba(30, 27, 75, .45)); color: #e0e7ff; text-align: left; font: inherit; cursor: pointer; box-sizing: border-box; }
.ayat-acak-tr { font-size: 13.5px; line-height: 1.6; font-style: italic; color: #e0e7ff; }
.ayat-acak-ref { align-self: flex-end; font-size: 11.5px; font-weight: 800; color: #a5b4fc; }
body.is-logged-in .ayat-acak-wrap, html.has-session .ayat-acak-wrap { display: none !important; }

/* Al-Qur'an (komponen Baperan) layar penuh di atas aplikasi, dibuka dari menu bawah / kutipan */
.quran-frame-wrap { position: fixed; inset: 0; z-index: 10050; background: #f8fafc; }
.quran-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
body.quran-frame-open { overflow: hidden; }.quran-frame-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #4f46e5; font-weight: 800; font-size: 13px; background: #f8fafc; transition: opacity .2s; }
.quran-frame-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #c7d2fe; border-top-color: #4f46e5; animation: ui-spin .8s linear infinite; }
.quran-frame-wrap.ready .quran-frame-loading { opacity: 0; pointer-events: none; }
