/* ===== v1.5 · Logo, bottom sheet, navbar ikon, filter dasbor, notifikasi, WA, wajib ganti sandi, font HP ===== */
.login-brand img, .boot-logo { object-fit: contain; flex-shrink: 0; }
.boot-logo { background: #fff; padding: 4px; }
.sheet-backdrop { z-index: 1046; }
.bottom-sheet { z-index: 1047; }
.sheet-profile { width: 100%; border: 0; text-align: left; color: inherit; cursor: pointer; }
.sheet-profile:hover, .sheet-profile:focus-visible { background: var(--primary-soft); }
.db-per-hp { display: none; }
#appModal.wajib .btn-close { display: none; }
.wa-preview { white-space: pre-wrap; font-size: 13px; line-height: 1.5; background: #E7F8EE; color: #0F2E1C; border-radius: 12px 12px 12px 2px; padding: 12px 14px; max-height: 280px; overflow: auto; border: 1px solid #C9EED8; }
[data-theme="dark"] .wa-preview { background: #12301F; color: #D8F5E3; border-color: #1E5134; }
.btn-success-wa { background: #1FAF54; color: #fff; border: 0; }
.btn-success-wa:hover { background: #17964A; color: #fff; }
.seg-tabs .count.warn { background: var(--warning, #F59E0B); color: #fff; }
/* v1.8.3 · daftar WA penerima honor */
.wa-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--inset); }
.wa-row .meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wa-row .meta b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-row .meta small { display: block; color: var(--text-2); font-size: 12px; }
.tb-pj-banner { cursor: pointer; }
.text-warning-ui { color: #B45309; }
.nf-ask { position: fixed; right: 16px; bottom: 16px; z-index: 1045; max-width: 420px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; box-shadow: var(--shadow-3); animation: nfIn .3s var(--ease); }
.nf-ask b { display: block; font-size: 14px; }
.nf-ask small { display: block; color: var(--text-2); font-size: 12px; line-height: 1.35; }
@keyframes nfIn { from { transform: translateY(20px); opacity: 0; } }
#bellBtn.ring i { animation: bellRing .9s ease-in-out 2; transform-origin: 50% 0; display: inline-block; }
@keyframes bellRing { 0%,100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-6deg); } }
.notif-menu .nf-sound { font-size: 12px; min-height: 28px; padding: 0 8px; }
@media (max-width: 991.98px) {
  .bottom-nav button { font-size: 0; gap: 0; }
  .bottom-nav button i { font-size: 23px; }
  .nf-ask { left: 12px; right: 12px; bottom: calc(var(--bottomnav-h) + 12px + env(safe-area-inset-bottom)); max-width: none; flex-wrap: wrap; }
  .nf-ask > .d-flex { width: 100%; justify-content: flex-end; }
}
@media (max-width: 575.98px) {
  /* Filter tanggal dasbor dilipat seperti filter tabel */
  .db-actions { width: 100%; }
  .db-filter { width: 100%; }
  .db-filter > .db-per-hp { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; min-height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-ctrl); padding: 0 12px; font-weight: 600; font-size: 13px; color: var(--text); text-align: left; }
  .db-filter > .db-per-hp i { color: var(--primary-text); }
  .db-filter > .db-per-hp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .db-filter.open > .btn { flex: 1 1 45%; }
  .db-filter .date-range { width: 100%; }
  /* Font HP sedikit lebih kecil */
  body { font-size: 13px; }
  .form-control, .form-select { font-size: 14px; min-height: 42px; }
  .input-lg .form-control { font-size: 14px; min-height: 46px; }
  .btn { font-size: 13px; }
  .btn-sm { font-size: 12px; }
  .page-title { font-size: 18px !important; line-height: 24px !important; }
  .page-sub { font-size: 12.5px; }
  .card-head h3, .card-title { font-size: 14.5px; line-height: 21px; }
  .dropdown-item { font-size: 13px; }
  .pill { font-size: 11px; }
  .kpi-label { font-size: 10.5px; }
  .tbl.has-m td.m-card .mc-t { font-size: 13.5px; }
  .tbl.has-m td.m-card .mc-s { font-size: 12px; }
  .tbl.has-m td.m-card .mc-a { font-size: 13.5px; }
  .kv { font-size: 13px; }
  .form-label { font-size: 12.5px; }
  .modal-title { font-size: 16px; }
  .mobile-title { font-size: 15px; }
  .login-brand img { width: 52px; height: 52px; }
  .login-hero h1 { font-size: 19px; }
  .sheet-link { font-size: 12px; }
}
/* ===== v1.5 · Asisten bantuan bawaan ===== */
.as-btn i { color: var(--primary-text); }
.as-backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 1048; opacity: 0; pointer-events: none; transition: opacity .2s; }
.as-backdrop.show { opacity: 1; pointer-events: auto; }
.as-panel { position: fixed; top: 12px; right: 12px; bottom: 12px; width: 400px; max-width: calc(100vw - 24px); z-index: 1049; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; transform: translateX(110%); transition: transform .28s var(--ease); }
.as-panel.show { transform: none; }
.as-head { display: flex; gap: 10px; align-items: center; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); }
.as-head b { display: block; font-size: 15px; }
.as-head small { display: block; color: var(--muted); font-size: 11.5px; }
.as-av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #3B82F6, #1D4ED8); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.as-av.lg { width: 38px; height: 38px; font-size: 17px; }
.as-log { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--canvas); }
.as-msg { display: flex; gap: 8px; align-items: flex-end; }
.as-msg.u { justify-content: flex-end; }
.as-bub { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; background: var(--surface); border: 1px solid var(--border); }
.as-msg.u .as-bub { background: var(--primary); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; }
.as-msg.a .as-bub { border-bottom-left-radius: 4px; }
.as-card > b { display: block; margin-bottom: 4px; }
.as-card ol { padding-left: 18px; margin: 6px 0; display: grid; gap: 4px; }
.as-tip { background: var(--primary-soft); color: var(--primary-text); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; margin-top: 6px; }
.as-warn { background: var(--inset); color: var(--text-2); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; margin: 4px 0; }
.as-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.as-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.as-chip { border: 1px solid var(--border); background: var(--surface); color: var(--primary-text); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; text-align: left; }
.as-chip:hover { background: var(--primary-soft); border-color: var(--primary); }
.as-in { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.as-in .form-control { min-height: 42px; }
@media (max-width: 575.98px) {
  .as-panel { top: 0; right: 0; bottom: 0; left: 0; width: auto; max-width: none; border-radius: 0; border: 0; transform: translateY(105%); }
  .as-bub { font-size: 13px; }
}
/* ===== v1.6 · Zebra data, navbar modern, kartu lipat, KPI ringkas, pratinjau foto besar, font HP lebih kecil ===== */
:root { --zebra: #EEF4FF; --zebra-b: #D6E2FB; }
[data-theme="dark"] { --zebra: #15213A; --zebra-b: #22335A; }
.tbl tbody tr:nth-child(even) { background: var(--zebra); }
.tbl tbody tr:nth-child(even):hover { background: color-mix(in srgb, var(--zebra) 70%, var(--inset-2)); }
.log-row:nth-child(even) { background: var(--zebra); border-color: var(--zebra-b); }
.tbl.cards tbody tr:nth-child(even) { background: var(--zebra) !important; border-color: var(--zebra-b); }
.lr-kertas { padding: 22px 24px; }
/* Navbar bawah: ikon garis → terisi + latar pil saat aktif (gaya Material 3) */
@media (max-width: 991.98px) {
  .bottom-nav button.active::before { content: none; }
  .bottom-nav .nb-ic { position: relative; width: 56px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .2s var(--ease), transform .2s var(--ease); }
  .bottom-nav .nb-ic i { font-size: 21px; line-height: 1; grid-area: 1 / 1; transition: opacity .15s; }
  .bottom-nav .nb-ic .f { opacity: 0; }
  .bottom-nav button.active .nb-ic { background: var(--primary-soft); color: var(--primary-text); }
  .bottom-nav button.active .nb-ic .o { opacity: 0; }
  .bottom-nav button.active .nb-ic .f { opacity: 1; }
  .bottom-nav button:active .nb-ic { transform: scale(.92); }
}
/* Kartu buka-tutup */
.lipat > .card-head { cursor: pointer; user-select: none; }
.lipat-btn { flex-shrink: 0; width: 34px; height: 34px; min-height: 34px; }
.lipat-btn i { transition: transform .2s var(--ease); display: inline-block; }
.lipat.tutup .lipat-btn i { transform: rotate(-90deg); }
.lipat.tutup > :not(.card-head) { display: none !important; }
.lipat.tutup > .card-head { margin-bottom: 0 !important; }
.card-ui.p-0.lipat.tutup > .card-head { padding-bottom: 18px; }
/* Pratinjau foto unggahan lebih besar (klik untuk memperbesar) */
.file-chip { align-items: center; }
.file-chip img, .file-chip .fi { width: 104px; height: 78px; border-radius: 10px; }
.file-chip img { cursor: zoom-in; }
.fu-foto img { cursor: zoom-in; }
@media (max-width: 575.98px) {
  .file-chip { flex-wrap: wrap; }
  .file-chip img { width: 100%; height: auto; max-height: 240px; object-fit: contain; background: var(--surface); }
  .file-chip img + .meta { flex: 1 1 60%; }
  /* KPI ringkas di semua menu: label + angka saja */
  .kpi .kpi-sub, .kpi .kpi-foot, .kpi .kpi-progress, .kpi .kpi-icon { display: none !important; }
  .kpi-body { padding: 10px 12px !important; }
  .card-ui.kpi { padding: 0 !important; min-height: 0 !important; }
  .kpi-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpi-label { font-size: 10px !important; letter-spacing: .04em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kpi-value { font-size: 15px !important; line-height: 20px !important; margin-top: 3px !important; }
  .kpi-value small { font-size: 10.5px !important; }
  .kpi-value span[style] { font-size: 14px !important; }
  .grid.grid-4 { gap: 8px !important; }
  .kpi.hero .kpi-body { padding: 12px !important; }
  /* Log email ringkas */
  .log-row { padding: 8px 10px; gap: 8px; }
  .log-row .avatar, .log-row > .bi-check2-all { display: none; }
  .log-row .meta strong { font-size: 12px; }
  .log-row .meta small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .log-row .st { font-size: 10.5px; }
  .log-row .st .pill { font-size: 10px; padding: 1px 6px; }
  .log-row + .log-row { margin-top: 6px; }
  /* Font HP diperkecil lagi */
  body { font-size: 12.5px; }
  .form-control, .form-select { font-size: 13.5px; min-height: 40px; }
  .input-lg .form-control { font-size: 13.5px; min-height: 44px; }
  .btn { font-size: 12.5px; min-height: 38px; }
  .btn-sm { font-size: 11.5px; min-height: 30px; }
  .page-title { font-size: 16.5px !important; line-height: 22px !important; }
  .page-sub { font-size: 12px; }
  .card-head h3, .card-title { font-size: 13.5px; line-height: 19px; }
  .card-head p { font-size: 11.5px; }
  .dropdown-item { font-size: 12.5px; }
  .pill { font-size: 10.5px; }
  .tbl.has-m td.m-card .mc-t { font-size: 12.5px; }
  .tbl.has-m td.m-card .mc-s, .tbl.has-m td.m-card .mc-m2 { font-size: 11px; }
  .tbl.has-m td.m-card .mc-a { font-size: 12.5px; }
  .kv { font-size: 12.5px; }
  .form-label { font-size: 12px; }
  .modal-title { font-size: 15px; }
  .modal-sub { font-size: 11.5px; }
  .mobile-title { font-size: 14px; }
  .seg-tabs button { font-size: 12px; }
  .tbl-foot { font-size: 11.5px; }
  .toast-ui { font-size: 12.5px; }
  .job-card h4, .job-card .jt { font-size: 13.5px; }
  .as-bub { font-size: 12.5px; }
}
