/* Daily Logistik v1.6 — tema minimalis: latar putih, kartu abu tipis, biru #5A7BF7 */
@font-face { font-family: 'Jakarta'; src: url(../fonts/pjs-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url(../fonts/pjs-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url(../fonts/pjs-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url(../fonts/pjs-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url(../fonts/pjs-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ungu: #5A7BF7;      /* biru utama (lampiran): tombol, pilihan aktif, ikon aktif */
  --ungu-t: #4B63D6;    /* biru untuk teks/link di atas putih (kontras AA) */
  --ungu-2: #4D5FE7;    /* isi bar progres */
  --ungu-d: #2F44A6;    /* biru tua: status Done, label */
  --lila: #A9BBFA;
  --lila-2: #D5DDFD;
  --lila-3: #EEF2FF;
  --bg: #FFFFFF;
  --soft: #F9F9FB;      /* isi kartu */
  --edge: #EFEFF4;      /* garis kartu */
  --track: #E9E9F1;     /* rel bar */
  --card: #FFFFFF;
  --ink: #171741;
  --ink-2: #4E4F6B;
  --ink-3: #6E6E80;
  --line: #E6E6EE;
  --ok: #5A7BF7;
  --ok-bg: #EEF2FF;
  --bad: #F04438;
  --s-belum: #BBC7F9;
  --s-prog: #5A7BF7;
  --s-done: #2F44A6;
  --peach: #EEF2FF;
  --peach-d: #A9BBFA;
  --peach-ink: #2F44A6;
  --r: 16px;
  --r-lg: 20px;
  --shadow: 0 24px 48px -28px rgba(23, 23, 65, .35);
  --shadow-sm: 0 1px 2px rgba(23, 23, 65, .05);
  --spring: cubic-bezier(.2, .9, .25, 1.2);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--ungu-t); }
code { font-size: .86em; background: var(--lila-3); padding: 1px 6px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt { margin-top: 14px; }
.muted { color: var(--ink-3); }
:focus-visible { outline: 3px solid rgba(90, 123, 247, .45); outline-offset: 2px; border-radius: 12px; }
.screen { position: relative; z-index: 1; }
svg.ic-wa { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- animasi (halus) ---------- */
.tap, .tap-soft { position: relative; overflow: hidden; transition: transform .25s var(--spring), background-color .2s, color .2s, border-color .2s; }
.tap:active { transform: scale(.95); }
.tap-soft:active { transform: scale(.985); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .12; transform: scale(0); animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.pop-in { animation: popIn .45s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.08); } }
.shake { animation: shake .42s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes denyut { 50% { transform: scale(1.08); } }
.pulse { animation: denyut 1.4s ease-in-out infinite; }
.lg-spark { transform-box: fill-box; transform-origin: center; animation: kerlip 2.8s ease-in-out infinite; }
@keyframes kerlip { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #fff; transition: opacity .45s var(--ease), visibility .45s; }
.splash.hilang { opacity: 0; visibility: hidden; }
.logo-box { width: 82px; height: 82px; margin: 0 auto 12px; border-radius: 24px; overflow: hidden; }
.splash .logo-box { width: 88px; height: 88px; }
.logo-box img, .logo-mini img, .empty-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.logo-box, .logo-mini, .empty-art { background: #fff; box-shadow: 0 0 0 1px var(--edge), 0 12px 26px -16px rgba(23, 23, 65, .35); }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.btn-primary { color: #fff; background: var(--ungu); }
@media (hover: hover) { .btn-primary:hover { background: #4A6AE8; } }
.btn-soft { color: var(--ungu-t); background: var(--lila-3); }
.btn-ghost { color: var(--ink-2); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.btn-danger { color: #fff; background: var(--bad); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); font-size: 16px; flex-shrink: 0; }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.icon-btn.ghost { background: none; box-shadow: none; }
a.icon-btn { text-decoration: none; }
.info-btn { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-3); font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--lila-3); color: var(--ungu-t); }

/* ---------- titik merah ---------- */
.rdot { position: absolute; top: 7px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }
.rdot.sm { width: 8px; height: 8px; top: 4px; right: 4px; border-width: 1.5px; }

/* ---------- auth: selamat datang · masuk · daftar (mengikuti UI lampiran) ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.auth-card { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: calc(16px + var(--safe-t)) 24px calc(22px + var(--safe-b)); background: #fff; }
.au-step { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.au-step.au-in { animation: auIn .45s var(--ease) both; }
@keyframes auIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.au-note { margin: 0 0 12px; }
.au-art { margin: 0 auto; width: 100%; max-width: 360px; }
.au-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.au-sambut { text-align: center; }
.au-geser { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 8px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.au-slides { display: grid; margin-top: 22px; }
.au-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.au-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease) .05s, transform .45s var(--ease), visibility 0s; }
.au-slide h1, .au-judul { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.au-slide p { max-width: 330px; margin: 10px auto 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.au-dots { display: flex; justify-content: center; gap: 6px; margin: 22px 0 28px; }
.au-dots button { position: relative; width: 9px; height: 6px; border-radius: 3px; background: #D9DFEB; transition: width .4s var(--spring), background-color .3s; }
.au-dots button::after { content: ''; position: absolute; inset: -12px -4px; }
.au-dots button.on { width: 26px; background: var(--ungu); }
.au-act { display: grid; gap: 12px; }
.btn.au-btn { min-height: 52px; border-radius: 12px; font-weight: 600; font-size: 15.5px; color: #fff; background: var(--ungu); box-shadow: 0 12px 24px -16px rgba(90, 123, 247, .95); }
.btn.au-btn.soft { color: var(--ink); background: #ECF1FE; box-shadow: none; }
.btn.au-btn.soft i { color: var(--ungu); }
@media (hover: hover) { .btn.au-btn:hover { background: #4A6AE8; } .btn.au-btn.soft:hover { background: #E2E9FD; } }
.au-form { text-align: left; }
.au-back { align-self: flex-start; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); background: #F3F5FA; font-size: 16px; flex-shrink: 0; }
.au-art.sm { max-width: min(250px, 28vh); margin-top: -18px; }
.au-judul { margin-top: 14px; text-align: center; }
.au-daftar .au-judul { margin-top: 6px; }
.au-sub { max-width: 300px; margin: 6px auto 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.auth-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; text-align: left; }
.fl { display: grid; gap: 7px; min-width: 0; }
.fl > label, .fl > span { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; }
.in-box { display: flex; align-items: center; min-width: 0; height: 50px; padding: 0 4px 0 14px; border-radius: 12px; background: #fff; border: 1.5px solid #E3E7F0; transition: border-color .2s, box-shadow .2s; }
.in-box:focus-within { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .16); }
.in-box input { flex: 1; min-width: 0; width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; }
.in-box input::placeholder { color: #A0A8BC; font-weight: 500; }
.in-box .eye { width: 40px; height: 40px; border-radius: 10px; }
.au-lupa { justify-self: end; margin: -6px 0 0; padding: 4px 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
/* v1.8 — Ingat login (sakelar) sejajar dengan Lupa PIN? */
.au-opsi { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 0; }
.au-opsi .au-lupa { margin: 0; }
.ingat { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; -webkit-user-select: none; }
.ingat input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ingat .sw { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 11px; background: #D9DDEA; transition: background-color .2s; }
.ingat .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23, 23, 65, .25); transition: transform .22s var(--spring, ease); }
.ingat input:checked + .sw { background: var(--ungu); }
.ingat input:checked + .sw::after { transform: translateX(16px); }
.ingat input:focus-visible + .sw { outline: 2px solid var(--ungu); outline-offset: 2px; }
@media (hover: hover) { .au-lupa:hover, .au-ganti button:hover { color: var(--ungu-t); text-decoration: underline; } }
.auth-form .au-btn { margin-top: 2px; }
.au-atau { display: flex; align-items: center; gap: 14px; margin: 18px 14px; font-size: 13px; color: var(--ink-3); }
.au-atau::before, .au-atau::after { content: ''; flex: 1; height: 1px; background: #E6E9F0; }
.au-ganti { margin-top: auto; padding-top: 22px; text-align: center; font-size: 14px; font-weight: 500; color: var(--ink); }
.au-ganti button { padding: 6px 2px; font-weight: 700; color: var(--ungu-t); }
.au-form .cab-field > span { padding: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.au-form .kat-pick.cab.mini button { height: 44px; border-radius: 12px; border-width: 1.5px; }
.au-form .kat-pick.cab.mini button.active { transform: none; }
.eye { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); flex-shrink: 0; }
.eye.on { color: var(--ungu); background: var(--lila-3); }
.auth-msg { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.auth-msg:empty { display: none; }
.auth-msg.err { color: var(--bad); font-weight: 600; }
.auth-msg.ok { color: var(--ok); font-weight: 600; }
.auth-form.busy { pointer-events: none; opacity: .65; }
@media (min-width: 560px) {
  .auth { place-items: center; padding: 20px; background: radial-gradient(55% 45% at 15% 12%, #F3F6FE 0%, rgba(243, 246, 254, 0) 70%), radial-gradient(50% 55% at 88% 85%, #C9D6F6 0%, rgba(201, 214, 246, 0) 70%), #E4EAFB; }
  .auth-card { max-width: 412px; min-height: min(820px, calc(100dvh - 40px)); padding: 22px 30px 24px; border-radius: 32px; box-shadow: 0 40px 80px -42px rgba(33, 61, 127, .5); }
  .au-art.sm { max-width: min(220px, 26vh); }
}
/* ---------- segmen, catatan ---------- */
.field input::placeholder, .field textarea::placeholder { color: #A0A0B2; font-weight: 500; }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.seg button { position: relative; z-index: 1; min-height: 40px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--ink-3); transition: color .25s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.seg button.active { color: var(--ink); font-weight: 700; }
.seg button.active i { color: var(--ungu); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(23, 23, 65, .08), inset 0 0 0 1px var(--edge); transition: transform .4s var(--spring), width .3s; }
.seg-filter { margin-bottom: 14px; }
.note-card { display: flex; gap: 12px; text-align: left; margin-top: 14px; padding: 13px; border-radius: 14px; font-size: 13px; }
.note-card.warn { background: #FFF4E5; color: #7A4B10; }
.note-card > i { font-size: 18px; margin-top: 2px; }

/* ---------- kerangka aplikasi ---------- */
.app { max-width: 560px; margin: 0 auto; padding: calc(18px + var(--safe-t)) 20px calc(104px + var(--safe-b)); min-height: 100vh; overflow-x: clip; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 20px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.who > div { min-width: 0; }
.who h2 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sapa { display: block; margin-top: 3px; font-size: 15px; font-weight: 500; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sapa .peran { display: inline-block; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--lila-3); color: var(--ungu-t); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.top-act { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--ungu-t); background: var(--lila-3); }
.avatar.c2 { background: #E7EEFF; color: #3556C9; }
.avatar.c3 { background: #ECEBFF; color: #4F46C8; }
.avatar.c4 { background: #E4F2FA; color: #1F6688; }
.avatar.c5 { background: #EFF0F5; color: #4E4F6B; }
.avatar.xl { width: 64px; height: 64px; font-size: 24px; }
.logo-mini { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.view { animation: viewIn .4s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* tombol form checklist: siluet putih membawa form */
.icon-btn.form { background: var(--ungu); color: #fff; box-shadow: none; }
.icon-btn.form svg { width: 28px; height: 28px; fill: #fff; }
.icon-btn.form .ic-ln { stroke: var(--ungu); }
.mode-pill { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ungu-t); background: var(--lila-3); }
.mode-pill i { font-size: 14px; }
.mode-pill.fptk-pill { color: var(--ungu-d); background: #E6EBFE; }

/* ---------- navigasi bawah (staff & manajer) ---------- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1fr 72px 1fr 1fr; align-items: center; height: calc(70px + var(--safe-b)); padding: 0 max(8px, calc(50% - 272px)) var(--safe-b); background: #fff; border-top: 1px solid var(--edge); box-shadow: 0 -10px 30px -24px rgba(23, 23, 65, .35); }
.nav-btn { position: relative; z-index: 1; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #75758A; font-size: 10.5px; font-weight: 600; transition: color .2s; }
.nav-btn i { font-size: 19px; transition: transform .3s var(--spring); }
.nav-btn.active { color: var(--ungu); }
.nav-btn.active span:not(.rdot) { color: var(--ungu-t); font-weight: 700; }
.nav-btn .rdot.sm { top: 7px; right: calc(50% - 17px); }
/* lingkaran merah berisi angka (jumlah yang belum) */
.rdot.angka { width: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; font-style: normal; }
.nav-btn .rdot.angka { top: 2px; left: calc(50% + 4px); right: auto; }
.nav-day .rdot.angka { top: 3px; left: 50%; right: auto; transform: translateX(-50%); min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; }
.month-head .nav-day .rdot.angka { top: -7px; left: auto; right: -7px; transform: none; }
.nav-pill { display: none; }
.fab { position: relative; justify-self: center; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; background: var(--ungu); box-shadow: 0 10px 20px -10px rgba(90, 123, 247, .9); overflow: visible; }
@media (hover: hover) { .fab:hover { background: #4A6AE8; } }
.fab:active { transform: scale(.9); }

/* ---------- strip hari (pil tanggal) ---------- */
.week { display: grid; grid-template-columns: 26px 1fr 26px; align-items: center; gap: 4px; }
.nav-day { position: relative; width: 26px; height: 64px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; overflow: visible; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dchip { position: relative; height: 68px; border-radius: 14px; display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 2px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-3); transition: background-color .2s, color .2s; overflow: visible; }
.dchip small { font-size: 12px; font-weight: 500; }
.dchip b { font-size: 18px; font-weight: 600; color: var(--ink-3); }
.dchip.today small, .dchip.today b { color: var(--ungu-t); }
.dchip.active { background: var(--ungu); box-shadow: none; color: #fff; }
.dchip.active small { color: rgba(255, 255, 255, .9); }
.dchip.active b { color: #fff; font-weight: 800; }
.dchip .mk { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; }
.dchip .mk.belum { background: var(--bad); }
.dchip .mk.done { background: var(--ungu); }
.dchip.active .mk.done { background: #fff; }
.dchip .rdot { top: -3px; right: -2px; }
.dchip .nb { position: absolute; top: -7px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--bad); box-shadow: 0 0 0 2px #fff; }
.dchip .nb.kosong { min-width: 10px; width: 10px; height: 10px; padding: 0; top: -3px; right: -2px; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 24px 0 14px; }
.day-head h3 { font-size: 20px; }
.day-head small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
#keHariIni { padding: 6px 0; background: none; color: var(--ungu-t); font-size: 14px; font-weight: 700; }
.btn-wa { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin: 0 0 14px; border-radius: 14px; color: var(--ink); font-weight: 700; font-size: 14.5px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.btn-wa .ic-wa { color: #25D366; width: 19px; height: 19px; }
.btn-wa i { font-size: 15px; color: var(--ungu); }

/* ---------- ringkasan & ring ---------- */
.sum-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); margin-bottom: 12px; }
.ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--track); stroke-width: 4.5; }
.ring .ring-val { stroke: var(--ungu); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 - 113.1 * var(--p) / 100); transition: stroke-dashoffset 1s var(--ease); }
.ring.full .ring-val { stroke: var(--ungu-2); }
.ring b { position: relative; font-size: 13.5px; font-weight: 800; }
.ring.big { width: 72px; height: 72px; }
.ring.big b { font-size: 16px; }
.sum-txt b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); }
.sc i { font-size: 10px; }
.sc.done { color: var(--ungu-d); }
.sc.prog { color: var(--ungu-t); }
.sc.belum { color: #B42318; }

/* ---------- composer ---------- */
.composer { margin: 0 0 18px; padding: 12px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.cmp-row { display: flex; align-items: center; gap: 8px; }
#cmpTeks { flex: 1; min-width: 0; width: 0; height: 46px; min-height: 46px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; font-weight: 500; line-height: 20px; color: var(--ink); resize: none; overflow: hidden; outline: 0; transition: border-color .2s, box-shadow .2s; }
.cmp-hint { display: none; }
/* v1.11 — Visit: kolom besar, Enter = baris baru, 1 baris = 1 activity */
.composer.visit { box-shadow: inset 0 0 0 1.5px rgba(90, 123, 247, .45); }
.composer.visit .cmp-row { flex-wrap: wrap; row-gap: 10px; }
.composer.visit .cmp-kat { order: 1; }
.composer.visit .cmp-hint { order: 2; flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink-3); }
.composer.visit .cmp-hint i { color: var(--ungu); font-size: 12px; }
.composer.visit .cmp-hint b { color: var(--ungu-t); font-weight: 800; }
@media (max-width: 360px) { .composer.visit .cmp-hint .ent { display: none; } }
.composer.visit .cmp-foto { order: 3; }
.composer.visit #cmpTeks { order: 4; flex: 1 0 100%; width: 100%; height: auto; min-height: 168px; max-height: 52vh; overflow-y: auto; padding: 11px 14px; line-height: 24px;
  background: #fff repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #EDF0FC 23px, #EDF0FC 24px); background-attachment: local; background-origin: content-box; background-clip: padding-box; }
.cmp-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 2px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--ungu-t); background: #fff; }
#cmpTeks::placeholder { color: #A0A0B2; }
#cmpTeks:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .14); }
.cmp-kat { display: flex; flex-shrink: 0; padding: 3px; gap: 2px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cmp-kat button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 48px; height: 40px; border-radius: 9px; font-size: 10.5px; font-weight: 700; color: var(--ink-3); transition: background-color .2s, color .2s; }
.cmp-kat button i { font-size: 13px; }
.cmp-kat button.active { color: #fff; background: var(--ungu); }
.cmp-foto { position: relative; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: var(--ungu); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cmp-foto.on { color: #fff; background: var(--ungu); box-shadow: none; }
.cmp-foto.busy i { animation: denyut 1s ease-in-out infinite; }
.cmp-foto b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--bad); box-shadow: 0 0 0 2px #fff; }
#cmpPrev { margin-top: 10px; }
#cmpTambah { margin-top: 10px; min-height: 46px; border-radius: 12px; }

/* ---------- kartu activity (gaya lampiran) ---------- */
.task-list { display: grid; gap: 12px; }
.task { position: relative; padding: 16px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); transition: opacity .3s, transform .3s var(--spring); }
.task.keluar { opacity: 0; transform: scale(.95); }
.task.baru { animation: popIn .45s var(--ease) both; }
.task .rdot { top: 9px; left: 9px; right: auto; width: 8px; height: 8px; border-width: 1.5px; }
.t-top { display: flex; align-items: flex-start; gap: 12px; }
.t-cek { order: 2; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px #D9D9E4; color: transparent; transition: background-color .25s, box-shadow .25s; }
.task.done .t-cek { background: var(--ungu); box-shadow: none; color: #fff; }
.task.prog .t-cek { box-shadow: inset 0 0 0 1.5px var(--ungu); }
.t-cek svg { width: 14px; height: 14px; }
.t-cek path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s .1s var(--ease); }
.task.done .t-cek path { stroke-dashoffset: 0; }
.t-main { flex: 1; min-width: 0; }
.t-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.tg { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-3); }
.tg i { font-size: 10px; }
.tg.visit { color: var(--ungu-t); }
.tg.mgr { background: var(--lila-3); box-shadow: none; color: var(--ungu-d); }
.tg.div { background: var(--lila-3); box-shadow: none; color: var(--ungu-d); }
.tg.nodiv { background: #FFF1D6; box-shadow: none; color: #8A5A00; }
.tg.spv { background: var(--ungu-d); box-shadow: none; color: #fff; }
.t-teks { display: block; width: 100%; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--ink); text-align: left; word-break: break-word; white-space: pre-line; }
.task.done .t-teks { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(110, 110, 128, .55); text-decoration-thickness: 1.5px; }
.t-status { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 3px; margin-top: 14px; padding: 3px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.t-status button { min-height: 32px; padding: 0 4px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; transition: background-color .2s, color .2s; }
.t-status button i { font-size: 11px; }
.t-status button.on { background: var(--lila-3); color: var(--ungu-t); font-weight: 700; }
.t-status button.on[data-st="done"] { background: var(--ungu); color: #fff; }
.t-status button.on[data-st="belum"] { background: #FEF0EF; color: #B42318; }
/* progres: tombol (bar tipis + "Progress  xx%") → pop up */
.t-prog { display: block; width: 100%; margin-top: 14px; padding: 0; text-align: left; background: none; }
.tp-bar { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--track); }
.tp-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ungu-2); transition: width .4s var(--ease); }
.tp-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.tp-lbl b { font-size: 13px; font-weight: 800; color: var(--ink); }
.tp-lbl em { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ungu-t); }
/* foto di kartu */
.t-foto { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.t-foto .ft { width: 54px; height: 54px; border-radius: 10px; }
.t-cam { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--ungu-t); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.t-cam i { font-size: 11px; }

/* ---------- kosong ---------- */
.empty { text-align: center; padding: 26px 18px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.empty h3 { font-size: 17px; margin: 12px 0 4px; }
.empty p { color: var(--ink-3); font-size: 13.5px; }
.empty-art { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; overflow: hidden; }

/* ---------- kalender bulanan ---------- */
.month-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 14px; }
.month-head h3 { text-align: center; font-size: 20px; }
.month-head .nav-day { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.card { padding: 16px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); margin-bottom: 14px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-head span { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding-bottom: 6px; }
.cal-head .min { color: var(--bad); }
.cday { position: relative; aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--soft); transition: background-color .2s; }
.cday.kosong { background: transparent; pointer-events: none; }
.cday.today { box-shadow: inset 0 0 0 1.5px var(--ungu); color: var(--ungu-t); }
.cday.active { background: var(--ungu); color: #fff; box-shadow: none; }
.cday .mk { display: block; width: 5px; height: 5px; border-radius: 50%; }
.cday .mk.belum { background: var(--bad); }
.cday .mk.done { background: var(--ungu); }
.cday.active .mk.done { background: #fff; }
.cday.tap { overflow: visible; }
.cday .ripple { display: none; }
.cday .nb { position: absolute; top: -5px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 9.5px; font-weight: 800; color: #fff; background: var(--bad); box-shadow: 0 0 0 2px #fff; z-index: 1; }
.cal-legend .rdot.angka { min-width: 17px; height: 17px; font-size: 9.5px; padding: 0 4px; }
.cday .n { font-size: 9.5px; font-weight: 600; color: var(--ink-3); }
.cday.active .n { color: rgba(255, 255, 255, .85); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .rdot { position: static; border: 0; }
.cal-legend .ok { color: var(--ungu); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px 12px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); min-width: 0; }
.stat b { display: block; font-size: 20px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ---------- manajer ---------- */
.mgr { max-width: 620px; }
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pill-bulan { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font-weight: 700; font-size: 14px; }
.pill-bulan i { color: var(--ungu); }
.pill-bulan .caret { font-size: 10px; color: var(--ink-3); }
.sync { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: #22B573; }
.sync[data-s="busy"] i { background: var(--ungu); animation: denyut 1s ease-in-out infinite; }
.sync[data-s="err"] { color: var(--bad); }
.sync[data-s="err"] i { background: var(--bad); }
.chip-scroll { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -2px -20px 16px; padding: 2px 20px 4px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-c { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); transition: background-color .2s, color .2s; }
.chip-c i { font-size: 11px; color: var(--ink-3); }
.chip-c.active { color: #fff; background: var(--ungu); box-shadow: none; font-weight: 700; }
.chip-c.active i { color: #fff; }
.hero { position: relative; padding: 18px; border-radius: var(--r-lg); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.hero-label { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.hero-big b { font-size: clamp(36px, 11vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.hero-big small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.hero-bar { height: 8px; margin: 12px 0 10px; border-radius: 4px; background: var(--track); overflow: hidden; }
.hero-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--ungu-2); transition: width .8s var(--ease); }
.hero-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.kpi { padding: 12px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); min-width: 0; }
.kpi .k-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.kpi .sw { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.kpi b { display: block; font-size: 22px; font-weight: 800; margin-top: 4px; }
.kpi small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.kpis.three { margin-top: 12px; }
.chart-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chart-card h4 { font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.kbar-row { margin-bottom: 14px; }
.kbar-row:last-child { margin-bottom: 2px; }
.kbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 13px; }
.kbar-top b { font-size: 14px; font-weight: 700; }
.kbar-top b i { color: var(--ungu); margin-right: 6px; }
.kbar-top span { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.kbar { display: flex; gap: 2px; height: 22px; }
.kbar > div { position: relative; min-width: 4px; display: grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 700; transform-origin: left; animation: tumbuhX .8s var(--ease) both; cursor: default; }
.kbar > div:first-child { border-radius: 6px 0 0 6px; }
.kbar > div:last-child { border-radius: 0 6px 6px 0; }
.kbar > div:only-child { border-radius: 6px; }
.kbar .kosong { flex: 1; background: var(--track); border-radius: 6px; color: var(--ink-3); }
.kbar span { white-space: nowrap; }
#mCabang .kbar-row { border-radius: 12px; padding: 4px 6px; margin: 0 -6px 6px; cursor: pointer; }
#mCabang .kbar-row:hover { background: var(--soft); }
.btn-ai { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 4px 0 8px; border-radius: var(--r); color: #fff; text-align: left; background: var(--ungu); }
@media (hover: hover) { .btn-ai:hover { background: #4A6AE8; } }
.btn-ai > span:nth-child(2) { flex: 1; min-width: 0; }
.btn-ai b { display: block; font-size: 15.5px; }
.btn-ai small { font-size: 12px; opacity: .88; }
.ai-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(255, 255, 255, .18); flex-shrink: 0; }
.btn-ai[disabled] { opacity: .6; pointer-events: none; }
.view-title { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; }
.view-title h3 { font-size: 20px; }
.count { padding: 2px 9px; border-radius: 999px; background: var(--lila-3); color: var(--ungu-t); font-weight: 700; font-size: 12.5px; }
.search { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-3); margin-bottom: 14px; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14.5px; }
.staff-list, .hist-list { display: grid; gap: 10px; }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 12px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); text-align: left; }
.srow.off { opacity: .55; }
.srow.spv { box-shadow: inset 0 0 0 1px #DCE3FD; }
.s-main { flex: 1; min-width: 0; }
.s-main b { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-main small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.mini-bar { display: flex; gap: 2px; height: 6px; margin-top: 8px; border-radius: 3px; overflow: hidden; background: var(--track); }
.mini-bar i { display: block; height: 100%; transform-origin: left; animation: tumbuhX .8s var(--ease) both; }
.srow .ring { width: 52px; height: 52px; }
.srow .ring b { font-size: 12.5px; }
.avatar.spv { position: relative; background: var(--ungu-d); color: #fff; font-size: 17px; overflow: visible; }
.av-badge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: var(--ungu-d); background: #fff; box-shadow: 0 0 0 1.5px var(--lila-2); }
.sec-lbl { display: flex; align-items: center; gap: 7px; margin: 6px 2px 2px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; grid-column: 1 / -1; }
.sec-lbl i { color: var(--ungu); }
.sec-lbl span { padding: 0 7px; border-radius: 999px; background: var(--lila-3); color: var(--ungu-t); font-size: 11px; }
.sec-lbl:first-child { margin-top: 0; }
/* tombol tengah manajer: Pemberitahuan */
.fab.toa i { font-size: 18px; }

/* histori */
.hcard { display: block; width: 100%; padding: 14px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); text-align: left; }
.h-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.h-top b { font-size: 15px; font-weight: 700; }
.h-top time { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.hcard p { font-size: 13px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.src { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); }
.src.ai { background: var(--lila-3); box-shadow: none; color: var(--ungu-t); }
.toa-card p { -webkit-line-clamp: unset; color: var(--ink); font-size: 14px; white-space: pre-wrap; }
.hcard .per { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px; background: var(--lila-3); color: var(--ungu-d); }
.hcard .per.harian { background: #E7EEFF; color: #3556C9; }
.hcard .per.mingguan { background: #ECEBFF; color: #4F46C8; }

/* ---------- halaman ---------- */
.page { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; background: #fff; animation: pageIn .35s var(--ease) both; }
.page.closing { animation: pageOut .28s var(--ease) both; }
@keyframes pageIn { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pageOut { to { transform: translateX(32px); opacity: 0; } }
.page-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); }
.page-title { flex: 1; min-width: 0; text-align: center; }
.page-title b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title small { display: block; color: var(--ink-3); font-size: 11.5px; font-weight: 500; }
.page-body { max-width: 600px; margin: 0 auto; padding: 16px 20px calc(40px + var(--safe-b)); overflow-x: clip; }
.profile { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.prof-main { flex: 1; min-width: 0; }
.prof-main h3 { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-main small { color: var(--ink-3); font-weight: 500; }
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
#psNama .tg { vertical-align: 3px; font-size: 11px; }
#psKelola .btn { min-height: 46px; font-size: 14px; }
.day-group { margin-bottom: 16px; }
.day-group h5 { margin: 0 0 8px 2px; font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.arow { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); margin-bottom: 8px; }
.arow .st-ic { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 10.5px; color: #fff; }
.arow .st-ic.done { background: var(--ungu); }
.arow .st-ic.progress { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ungu); color: var(--ungu); }
.arow .st-ic.belum { background: #fff; box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); }
.arow > div { flex: 1; min-width: 0; }
.arow p { font-size: 14px; font-weight: 600; word-break: break-word; }
.arow small { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.arow .del { width: 32px; height: 32px; border-radius: 10px; color: var(--ink-3); flex-shrink: 0; display: grid; place-items: center; }
.a-foto { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.a-foto .ft { width: 48px; height: 48px; border-radius: 10px; }
.note { padding: 12px 14px; border-radius: 14px; background: #FFFBEB; box-shadow: inset 0 0 0 1px #FDE7A9; margin-bottom: 8px; }
.note p { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.note small { font-size: 11.5px; color: #8A6A10; font-weight: 600; }

/* pengaturan */
.set-card { padding: 6px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); margin-bottom: 14px; }
.set-nama { padding: 14px; background: var(--soft); }
.set-nama .field { margin-bottom: 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 14px; text-align: left; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .menu-item:hover { background: var(--soft); } }
.menu-item > div { flex: 1; min-width: 0; }
.menu-item b { display: block; font-size: 14.5px; font-weight: 700; }
.menu-item small { color: var(--ink-3); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item > i { color: #B3B3C4; font-size: 12px; }
.mi-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lila-3); color: var(--ungu); flex-shrink: 0; }
.menu-item.danger .mi-ic { background: #FEF0EF; color: var(--bad); }
.menu-item.danger b { color: var(--bad); }
.versi { text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------- form ---------- */
.field { display: block; margin-bottom: 14px; position: relative; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 7px; }
.field input, .field textarea { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 12px 14px; font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s; resize: none; }
.field textarea { line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .14); }
.counter { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.kat-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kat-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
.kat-pick i { font-size: 20px; color: var(--ungu); }
.kat-pick b { font-size: 15px; font-weight: 700; }
.kat-pick small { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.kat-pick button.active { background: var(--lila-3); box-shadow: inset 0 0 0 1.5px var(--ungu); }
.kat-pick button[disabled] { opacity: .5; pointer-events: none; }
.kat-pick.tiga { grid-template-columns: repeat(3, 1fr); }
.kat-pick.mini { gap: 8px; margin: 0; }
.kat-pick.mini button { flex-direction: row; justify-content: center; gap: 7px; padding: 0 6px; height: 46px; border-radius: 12px; }
.kat-pick.mini i { font-size: 14px; }
.kat-pick.mini b { font-size: 14px; }
.kat-pick.cab { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kat-pick.cab button { flex-direction: row; justify-content: flex-start; gap: 9px; padding: 0 14px; height: 48px; border-radius: 12px; }
.kat-pick.cab i { font-size: 14px; }
.kat-pick.cab b { font-size: 14px; }
.kat-pick.cab button:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
.kat-pick.cab.mini { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kat-pick.cab.mini button { height: 42px; padding: 0 6px; justify-content: center; gap: 5px; border-radius: 12px; }
.kat-pick.cab.mini i { font-size: 12px; }
.kat-pick.cab.mini b { font-size: 12.5px; white-space: nowrap; }
.kat-pick.cab.mini button:last-child:nth-child(odd) { grid-column: auto; }
.kat-pick.cab.mini button:last-child { grid-column: 1 / -1; }
.kat-pick.cab.multi button { position: relative; }
.kat-pick.cab.multi .cek { margin-left: auto; font-size: 12px; color: transparent; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.kat-pick.cab.multi button.active .cek { color: #fff; background: var(--ungu); box-shadow: none; }
.kat-pick.cab.multi button:last-child:nth-child(odd) { justify-content: flex-start; }
.cab-field { display: grid; gap: 6px; }
.cab-field > span { font-size: 12px; font-weight: 700; color: var(--ink-3); padding-left: 4px; }
.cab-field.wajib .kat-pick button { box-shadow: inset 0 0 0 1.5px #FDA29B; }
#toaUntuk { margin: 0 -20px 12px; padding: 2px 20px 6px; }
.locked { padding: 10px 12px; border-radius: 12px; background: var(--lila-3); color: var(--ungu-d); font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.rl-lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 4px 0 8px; }
.rl-lbl small { font-weight: 500; color: var(--ink-3); }
.rl-info { margin: 0 2px 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.rl-info i { color: var(--ungu); }

/* ---------- lembar (bottom sheet) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(23, 23, 65, .32); animation: fade .3s ease both; }
.scrim.closing { animation: fade .25s ease reverse both; }
.sheet { position: fixed; left: 50%; bottom: 0; z-index: 51; width: min(100%, 560px); max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px calc(22px + var(--safe-b)); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -16px 40px -20px rgba(23, 23, 65, .35); transform: translateX(-50%); animation: sheetIn .42s var(--ease) both; }
.sheet.tall { max-height: 94vh; max-height: 94dvh; }
.sheet.closing { animation: sheetOut .26s var(--ease) both; }
@keyframes sheetIn { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes sheetOut { to { transform: translate(-50%, 100%); } }
.grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: #E1E1EA; margin: 0 auto 16px; }
.sheet h3 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.sheet h3 i { color: var(--ungu); }
.sheet-sub { color: var(--ink-3); font-size: 13.5px; margin: 4px 0 16px; }
.sheet-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 6px; }
.sheet-actions > :only-child, .sheet-actions > [hidden] + .btn { grid-column: 1 / -1; }
.dlg-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--lila-3); color: var(--ungu); margin-bottom: 12px; }
.dlg-ic.danger { background: #FEF0EF; color: var(--bad); }
.info-body { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.info-body ul { margin: 6px 0 0; padding-left: 18px; }
.info-body li { margin-bottom: 6px; }
.info-body b { color: var(--ink); }
.info-body .ex { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13px; }
.pin-besar { margin: 10px 0; padding: 14px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font-size: 32px; font-weight: 800; letter-spacing: 10px; text-align: center; user-select: all; -webkit-user-select: all; }
.year-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; }
.year-row button { flex-shrink: 0; padding: 8px 16px; border-radius: 11px; font-weight: 700; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-3); }
.year-row button.active { background: var(--ungu); box-shadow: none; color: #fff; }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.month-grid button { position: relative; height: 52px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 600; }
.month-grid button.ada::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ungu); }
.month-grid button.active { background: var(--ungu); box-shadow: none; color: #fff; }
.month-grid button.active::after { background: #fff; }

/* Lupa PIN: ringkas + tombol logo WhatsApp */
.sheet.lupa { text-align: center; padding-bottom: calc(30px + var(--safe-b)); }
.sheet.lupa h3 { justify-content: center; font-size: 22px; }
.lp-teks { margin: 6px 0 22px; font-size: 16px; color: var(--ink-2); }
.wa-btn { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 12px 24px -12px rgba(37, 211, 102, .9); text-decoration: none; }
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }
@media (hover: hover) { .wa-btn:hover { background: #1FB859; } }

/* notifikasi */
.notif-list { display: grid; gap: 9px; margin-top: 14px; }
.nitem { position: relative; display: flex; gap: 11px; padding: 12px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.nitem.baru { background: var(--lila-3); box-shadow: inset 0 0 0 1px #DCE3FD; }
.nitem .rdot { top: 10px; right: 10px; }
.n-ic { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ungu); }
.n-ic.toa { background: var(--ungu); box-shadow: none; color: #fff; }
.n-ic.catatan { background: #FEF3C7; box-shadow: none; color: #A16207; }
.n-ic.tugas { background: #fff; color: var(--ungu-d); }
.nitem > div { flex: 1; min-width: 0; padding-right: 10px; }
.nitem b { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.nitem p { font-size: 14px; margin: 2px 0 4px; white-space: pre-wrap; word-break: break-word; }
.nitem time { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.nitem .n-go { align-self: center; color: #B3B3C4; font-size: 12px; }
.nitem[data-ke] { cursor: pointer; }

/* pemberitahuan */
.toa-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.toa-head .sheet-sub { margin: 2px 0 0; }
.toa-ic { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--ungu); flex-shrink: 0; }
.toa-ic.ai { background: var(--ungu); }
.wave { position: absolute; right: -8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 3px solid transparent; border-right-color: var(--lila); animation: gelombang 1.8s ease-out infinite; }
.wave.w2 { animation-delay: .6s; }
@keyframes gelombang { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2) translateX(6px); opacity: 0; } }
.toa-ic.kirim .wave { animation-duration: .7s; }
#toaPesan { min-height: 120px; padding-bottom: 26px; }

/* analisis */
#apMode button { font-size: 13px; gap: 5px; }
.ap-pilih { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; padding: 10px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ap-pilih > div { flex: 1; min-width: 0; text-align: center; }
.ap-pilih b { display: block; font-size: 15px; color: var(--ink); }
.ap-pilih small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.ap-pilih .icon-btn { background: #fff; }
.ap-pilih .icon-btn[disabled] { opacity: .35; }
.an-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.an-head .dlg-ic { margin: 0; }
.an-head h3 { font-size: 19px; }
.an-head small { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.an-ring { font-size: 14px; line-height: 1.55; padding: 12px 14px; border-radius: 14px; background: var(--lila-3); margin-bottom: 12px; }
.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.an-grid div { padding: 10px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.an-grid b { display: block; font-size: 17px; font-weight: 800; }
.an-grid span { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.an-sec h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 16px 0 8px; }
.an-sec h4 i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; }
.an-sec.hip h4 i { background: #FEF3C7; color: #A16207; }
.an-sec.per h4 i { background: var(--lila-3); color: var(--ungu-d); }
.an-sec.stf h4 i { background: var(--lila-3); color: var(--ungu); }
.an-sec ol { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 7px; }
.an-sec li { counter-increment: n; position: relative; padding: 10px 12px 10px 42px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13.5px; line-height: 1.45; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.an-sec li::before { content: counter(n); position: absolute; left: 10px; top: 9px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ungu-t); }
.an-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.an-tbl th { text-align: left; font-size: 11px; color: var(--ink-3); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.an-tbl td { padding: 7px 4px; border-bottom: 1px dashed var(--line); }
.an-tbl td.num, .an-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.an-catatan { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.an-blok { padding: 14px; margin-bottom: 12px; }
.an-blok > .kbar-top { flex-wrap: wrap; gap: 6px; }
.an-aksi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.an-aksi .btn-wa { margin: 0; min-height: 50px; }

/* ---------- proses ---------- */
.proses { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 20px; background: rgba(23, 23, 65, .38); animation: fade .3s ease both; }
.proses-card { width: min(100%, 360px); padding: 26px 22px 22px; border-radius: 22px; background: #fff; text-align: center; box-shadow: var(--shadow); animation: popIn .4s var(--ease) both; }
.orbit { position: relative; width: 84px; height: 84px; margin: 0 auto 14px; display: grid; place-items: center; font-size: 24px; color: var(--ungu); }
.orbit i { animation: bump 1.2s ease-in-out infinite; }
.orbit span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--ungu); animation: spin 1.1s linear infinite; }
.orbit span:nth-child(2) { inset: 8px; border-top-color: var(--lila); animation-duration: 1.6s; animation-direction: reverse; }
.orbit span:nth-child(3) { inset: -6px; border-top-color: var(--ungu-d); animation-duration: 2.2s; }
.steps { list-style: none; text-align: left; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); transition: color .3s; }
.steps li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--lila-2); flex-shrink: 0; transition: all .3s var(--ease); }
.steps li.run { color: var(--ink); font-weight: 700; }
.steps li.run::before { border-color: var(--ungu); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { border-color: var(--ungu); background: var(--ungu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps li.fail::before { border-color: var(--bad); background: var(--bad); }
.bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--ungu-2); transition: width .5s var(--ease); }

/* ---------- grafik ---------- */
.chart { position: relative; min-height: 60px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid line { stroke: rgba(23, 23, 65, .07); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis text { font-size: 11px; fill: var(--ink-3); font-family: inherit; }
.chart text.val { font-size: 11.5px; fill: var(--ink); font-weight: 700; font-family: inherit; }
.chart .bar, .chart text.val { pointer-events: none; }
.chart .bar { transition: opacity .2s; transform-box: fill-box; transform-origin: bottom; animation: tumbuh .7s var(--ease) both; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:focus { outline: none; }
.chart .on { opacity: .75; }
@keyframes tumbuh { from { transform: scaleY(0); } }
@keyframes tumbuhX { from { transform: scaleX(0); } }
.hlist { display: grid; gap: 10px; }
.hrow { display: grid; grid-template-columns: minmax(84px, 36%) 1fr; align-items: center; gap: 10px; font-size: 13px; }
.hrow .hl { min-width: 0; }
.hrow .hl b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .hl small { color: var(--ink-3); font-size: 11px; font-weight: 500; }
.htrack { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hfill { height: 10px; border-radius: 0 5px 5px 0; background: var(--ungu); min-width: 3px; transform-origin: left; animation: tumbuhX .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.htrack em { font-style: normal; font-weight: 700; font-size: 12px; white-space: nowrap; }
.chart-empty { padding: 18px 4px; text-align: center; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.chart-empty i { display: block; font-size: 20px; color: var(--lila); margin-bottom: 6px; }
.chart-tip { position: fixed; z-index: 96; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; box-shadow: 0 12px 26px -12px rgba(23, 23, 65, .8); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }
.chart-tip b { display: block; font-size: 13.5px; }
.chart-tip span { opacity: .8; }

/* ---------- toast & konfeti ---------- */
.toast-wrap { position: fixed; top: calc(12px + var(--safe-t)); left: 0; right: 0; z-index: 99; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(calc(100vw - 32px), 440px); padding: 12px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 30px -14px rgba(23, 23, 65, .7); animation: toastIn .4s var(--ease) both; }
.toast.out { animation: toastOut .3s ease both; }
.toast i { font-size: 16px; color: var(--lila); }
.toast.ok i { color: #B9C8FF; }
.toast.err { background: #912018; }
.toast.err i { color: #FECDCA; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 3px; animation: jatuh linear forwards; }
@keyframes jatuh { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); } }
.burst { position: fixed; z-index: 95; pointer-events: none; width: 7px; height: 7px; border-radius: 50%; animation: burst .7s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }

/* ---------- foto ---------- */
.foto-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.foto-strip::-webkit-scrollbar { display: none; }
.ft { position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--lila-3); display: grid; place-items: center; color: var(--ungu); }
.ft img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.ft img.siap, .ft img[src^="data:"] { opacity: 1; }
.ft.gagal::after { content: '\f03e'; font: 900 16px 'Font Awesome 6 Free'; color: var(--ink-3); position: absolute; }
.ft.up { background: repeating-linear-gradient(-45deg, var(--lila-3) 0 8px, #F7F8FF 8px 16px); font-size: 16px; }
.ft.add { box-shadow: inset 0 0 0 1.5px var(--lila); background: #fff; flex-direction: column; gap: 2px; font-size: 16px; }
.ft.add small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.ft-img { width: 100%; height: 100%; display: block; }
.ft-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: rgba(23, 23, 65, .7); }
.foto-strip.besar .ft { width: 84px; height: 84px; border-radius: 14px; }
.foto-edit { margin: 0 0 14px; }
.foto-edit .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 7px; }
.foto-edit .lbl small { font-weight: 500; color: var(--ink-3); }
.foto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.foto-grid .ft { width: auto; height: auto; aspect-ratio: 1; }
/* penampil foto (tetap gelap agar foto menonjol) */
.foto-view { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: #0D0E24; color: #fff; animation: fade .25s ease both; }
.foto-view.closing { animation: fade .25s ease reverse both; }
.fv-bar { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--safe-t)) 14px 10px; }
.fv-bar .icon-btn, .fv-nav .icon-btn { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.fv-info { flex: 1; min-width: 0; }
.fv-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-info small { display: block; font-size: 12px; color: rgba(255, 255, 255, .65); font-weight: 500; }
#fvHapus.yakin { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; background: var(--bad); font-size: 13px; font-weight: 800; }
.fv-img { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 10px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fv-img img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px - var(--safe-t) - var(--safe-b)); object-fit: contain; border-radius: 12px; transition: filter .3s; }
.fv-img img:not([src]) { visibility: hidden; }
.fv-img img.buram { filter: blur(6px) brightness(.85); }
.fv-load { position: absolute; font-size: 26px; color: rgba(255, 255, 255, .85); }
.fv-nav { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 12px 14px calc(16px + var(--safe-b)); font-weight: 700; font-size: 14px; }
.fv-nav .icon-btn[disabled] { opacity: .3; }

/* lembar bagikan */
#shFoto { margin: 4px 0 12px; }
.sh-teks { margin: 0 0 10px; max-height: 32vh; overflow-y: auto; padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--edge); font: 500 12.5px/1.5 'Jakarta', system-ui, sans-serif; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.sh-status { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin: 0 2px 12px; }
.sh-status.err { color: var(--bad); }
.sh-aksi { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.sh-aksi .btn-wa { margin: 0; min-height: 50px; color: #fff; background: var(--ungu); box-shadow: none; }
.sh-aksi .btn-wa .ic-wa, .sh-aksi .btn-wa i { color: #fff; }
.sh-aksi .btn-wa[disabled] { opacity: .6; }

/* halaman form checklist (iframe) */
.page-form { display: flex; flex-direction: column; overflow: hidden; }
.form-wrap { position: relative; flex: 1; min-height: 0; margin: 0 auto; width: 100%; max-width: 760px; padding: 10px 10px 0; }
.form-wrap iframe { width: 100%; height: 100%; border: 0; border-radius: 16px 16px 0 0; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.form-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-3); font-weight: 600; font-size: 14px; pointer-events: none; }
.form-load i { font-size: 24px; color: var(--ungu); }
.page-fptk .page-bar { flex-shrink: 0; }
.fp-tab-wrap { flex-shrink: 0; padding: 4px 16px 10px; max-width: 760px; margin: 0 auto; width: 100%; }
.fp-progress { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(24px + var(--safe-b)); max-width: 760px; margin: 0 auto; width: 100%; }
.fp-tab-wrap[hidden] + .fp-progress { padding-top: 14px; } /* v1.11: manajer (tanpa tab) */
.fp-ring { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.fp-ring div { padding: 10px 10px 9px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.fp-ring b { display: block; font-size: 19px; font-weight: 800; }
.fp-ring span { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.fp-ring .merah b { color: #C4321F; }
.fp-alat { display: grid; gap: 8px; margin-bottom: 8px; }
.fp-cari { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.fp-cari i { color: var(--ink-3); font-size: 13px; }
.fp-cari input { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; }
.fp-info { margin: 4px 2px 10px; font-size: 12px; color: var(--ink-3); }
.fp-list { display: grid; gap: 10px; }
.fp-item { padding: 13px 14px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); text-align: left; width: 100%; color: inherit; }
.fp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.fp-top b { display: block; font-size: 15px; font-weight: 700; }
.fp-top small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.fp-st { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--ungu-t); background: var(--lila-3); }
.fp-st.close { color: #fff; background: var(--ungu-d); }
.fp-st.lewat { color: #fff; background: #C4321F; }
.fp-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.fp-bar .bar { flex: 1; }
.fp-bar .bar i { display: block; height: 100%; border-radius: 3px; background: var(--ungu-2); }
.fp-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.fp-meta i { margin-right: 4px; color: var(--ungu); }
.fp-meta .merah, .fp-meta .merah i { color: #C4321F; font-weight: 600; }
.fp-det { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-2); }
.fp-item.buka .fp-det { display: block; }
.fp-det table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.fp-det th, .fp-det td { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--edge); font-size: 12px; }
.fp-det th { color: var(--ink-3); font-weight: 600; }
.fp-det p { margin: 4px 0; }
.btn-kpi.fptk .kpi-ic { background: var(--lila-3); color: var(--ungu); }
@media (max-width: 380px) { .fp-ring { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-catatan { flex-shrink: 0; margin: 0; padding: 8px 16px calc(8px + var(--safe-b)); text-align: center; font-size: 11.5px; color: var(--ink-3); background: #fff; border-top: 1px solid var(--edge); }

/* pop up progres */
.pr-batal { margin: -4px 0 12px; padding: 9px 12px; border-radius: 12px; background: var(--lila-3); color: var(--ungu-d); font-size: 12.5px; font-weight: 600; }
.pr-besar { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 4px 0 12px; }
.pr-besar b { min-width: 120px; text-align: center; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.pr-besar .icon-btn[disabled] { opacity: .35; }
.pr-bar { position: relative; height: 8px; margin: 10px 14px 22px; border-radius: 4px; background: var(--track); }
.pr-isi { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ungu-2); transition: width .3s var(--ease); }
.pr-kereta { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--ungu-2), 0 2px 6px rgba(23, 23, 65, .18); transition: left .3s var(--ease); }
.pr-pilih { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 16px; }
.pr-pilih button { height: 42px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.pr-pilih button.active { color: #fff; background: var(--ungu); box-shadow: none; }
.pr-pilih button.done { color: var(--ungu-d); }
.pr-pilih button.done.active { color: #fff; background: var(--ungu-d); }
.pr-pilih button i { font-size: 11px; margin-right: 3px; }

/* galeri foto activity */
.gal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gal-tgl { flex: 1; min-width: 0; text-align: center; }
.gal-tgl b { display: block; font-size: 17px; font-weight: 800; }
.gal-tgl small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.gal-nav .icon-btn[disabled] { opacity: .35; }
.gal-hari { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.gchip { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 1px; padding: 9px 0 10px; border-radius: 13px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-3); }
.gchip small { font-size: 11px; font-weight: 500; }
.gchip b { font-size: 16px; font-weight: 600; color: var(--ink-3); }
.gchip em { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--ungu-d); box-shadow: 0 0 0 2px #fff; }
.gchip.active { background: var(--ungu); box-shadow: none; color: rgba(255, 255, 255, .9); }
.gchip.active b { color: #fff; font-weight: 800; }
.gchip.nanti { opacity: .4; }
.gal-grp { margin-bottom: 14px; padding: 12px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.gal-grp header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gal-grp header .avatar { width: 38px; height: 38px; font-size: 15px; }
.gal-grp header b { display: block; font-size: 14.5px; font-weight: 700; }
.gal-grp header small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gal-item { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--lila-3); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.gal-item img.siap, .gal-item img[src^="data:"] { opacity: 1; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 14px 6px 5px; font-size: 10.5px; font-weight: 700; color: #fff; text-align: left; background: linear-gradient(180deg, transparent, rgba(13, 14, 36, .78)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-cap i { font-size: 9px; flex-shrink: 0; }

/* lencana angka tidak terpotong (tombol tanpa riak) */
.cmp-foto.tap, .gchip.tap, .fab.tap { overflow: visible; }
.cmp-foto .ripple, .gchip .ripple, .fab .ripple { display: none; }

/* ---------- layar lebar ---------- */
@media (min-width: 900px) {
  .mgr { max-width: 1040px; padding-left: 28px; padding-right: 28px; }
  .mgr [data-view="dashboard"] { display: grid; grid-template-columns: 380px 1fr; grid-template-areas: "mode mode" "hero kat" "kpi kat" "cab hari" "cab stf" "fp stf" "kp stf" "ai stf"; grid-template-rows: auto auto auto auto auto auto auto 1fr; gap: 0 22px; align-items: start; }
  .mgr [data-view="dashboard"].harian { display: block; max-width: 760px; margin: 0 auto; }
  .mgr #mDash { grid-area: mode; max-width: 380px; }
  .mgr #btnKpi { grid-area: kp; }
  .mgr #btnFptk { grid-area: fp; }
  .mgr [data-view="dashboard"][hidden] { display: none !important; }
  .mgr [data-view="dashboard"] > .hero { grid-area: hero; }
  .mgr [data-view="dashboard"] > .kpis { grid-area: kpi; }
  .mgr #cCab { grid-area: cab; }
  .mgr #cKat { grid-area: kat; }
  .mgr #cHari { grid-area: hari; }
  .mgr #cStaff { grid-area: stf; }
  .mgr [data-view="dashboard"] > .btn-ai { grid-area: ai; margin-top: 0; }
  .staff-list, .hist-list { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  [data-view="galeri"] { max-width: 820px; margin: 0 auto; }
}
@media (max-width: 430px) {
  .mode-pill span { display: none; }
  .mode-pill { width: 42px; padding: 0; justify-content: center; }
  .topbar .mode-pill.fptk-pill { width: auto; padding: 0 11px; gap: 6px; }
  .topbar .mode-pill.fptk-pill span { display: inline; }
}
@media (max-width: 350px) { .topbar .mode-pill.fptk-pill { width: 40px; padding: 0; } .topbar .mode-pill.fptk-pill span { display: none; } }
@media (max-width: 420px) { .mgr .sync { width: 42px; padding: 0; justify-content: center; } .mgr .sync span { display: none; } }
@media (max-width: 400px) {
  .app { padding-left: 16px; padding-right: 16px; }
  .chip-scroll { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .who h2 { font-size: 22px; }
  .sapa { font-size: 14px; }
  .top-act { gap: 6px; }
  .topbar .icon-btn, .topbar .mode-pill, .topbar .sync { width: 40px; height: 40px; }
  .topbar .icon-btn.form svg { width: 26px; height: 26px; }
  .topbar .avatar { width: 42px; height: 42px; }
  .week-strip { gap: 4px; }
  .dchip { height: 62px; border-radius: 12px; }
  .dchip b { font-size: 16px; }
  .dchip small { font-size: 11px; }
  .cmp-kat button { width: 45px; }
  .t-status button { font-size: 11.5px; }
  .t-status button i { display: none; }
  .cmp-foto { width: 44px; }
  .kpi b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= v1.7: dashboard harian, KPI karyawan (PDF), lingkaran merah berangka ================= */
#mDash { margin-bottom: 16px; }
#vDash.harian > :not(#mDash):not(#mHarian) { display: none !important; }
#mhHariIni { padding: 6px 0; background: none; color: var(--ungu-t); font-size: 14px; font-weight: 700; }
.m-harian .day-head { margin-top: 20px; }
.mh-lbl { margin: 18px 2px 8px; }
.mh-list { display: grid; gap: 10px; }
.mh-card, .mh-belum { width: 100%; text-align: left; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; }
.mh-card { display: block; padding: 14px; }
.mh-top, .mh-belum { display: flex; align-items: center; gap: 12px; }
.mh-belum { padding: 12px 14px 12px 12px; }
.mh-top .avatar, .mh-belum .avatar { width: 40px; height: 40px; font-size: 15px; }
.mh-top > i, .mh-belum > i { color: #B3B3C4; font-size: 12px; }
.mh-tugas { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--edge); display: grid; gap: 10px; }
.mh-tugas li { display: flex; align-items: flex-start; gap: 10px; }
.mh-tugas p { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; word-break: break-word; }
.mh-tugas small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.mh-tugas .st-ic { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 9px; color: #fff; }
.mh-tugas .st-ic.done { background: var(--ungu); }
.mh-tugas .st-ic.progress { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ungu); color: var(--ungu); }
.mh-tugas .st-ic.belum { background: #fff; box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); }
.mh-kosong { padding: 14px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-3); font-size: 13.5px; text-align: center; }
.btn-kpi { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 4px 0 10px; border-radius: var(--r); text-align: left; color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.btn-kpi > span:nth-child(2) { flex: 1; min-width: 0; }
.btn-kpi b { display: block; font-size: 15.5px; font-weight: 700; }
.btn-kpi small { display: block; font-size: 12px; color: var(--ink-3); }
.btn-kpi > i { color: #B3B3C4; font-size: 12px; }
.kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--ungu); background: var(--lila-3); flex-shrink: 0; }
#mHarian .btn-kpi { margin-top: 18px; }
.kp-blok { margin-top: 14px; }
#kpJenis button { font-size: 13px; gap: 6px; }
.kp-tgl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kp-tgl .field { margin-bottom: 8px; }
.kp-tgl input, #kpTanggal { min-width: 0; font-weight: 600; }
#kpInfo.manual { color: #A16207; }
.kp-saran { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 6px 0; font-size: 13px; font-weight: 700; color: var(--ungu-t); }
.kp-lingkup { margin: 10px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.kp-lingkup i { color: var(--ungu); margin-right: 4px; }
.kp-catatan { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.hcard .per.kpi { background: var(--ungu-d); color: #fff; }
.sc.pdf { color: var(--ungu-t); background: var(--lila-3); box-shadow: none; }
#hTab button { font-size: 13px; gap: 6px; }
.chart.geser { overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chart.geser svg { max-width: none; }
.kpi .k-top { line-height: 1.2; }
@media (max-width: 400px) {
  #hTab button i, #kpJenis button i, #mDash button i { display: none; }
}

/* v1.8 — geser (swipe) strip tanggal & kalender */
.strip-clip { min-width: 0; overflow: hidden; padding: 10px 7px; margin: -10px -7px; }
.week-strip, .gal-hari, .cal-grid { touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; }
.week-strip.digeser, .gal-hari.digeser, .cal-grid.digeser { cursor: grabbing; }
.geser-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 8px 0 -10px; font-size: 12px; font-weight: 500; color: var(--ink-3); animation: fade .4s var(--ease) both; }
.geser-hint i { color: var(--ungu); animation: geserIsyarat 1.6s var(--ease) infinite; }
@keyframes geserIsyarat { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

/* v1.8 — tombol & pop up "Belum selesai" (staff & SPV) */
.aksi-hari { display: flex; gap: 8px; margin: 0 0 14px; }
.aksi-hari .btn-wa { flex: 1 1 0; min-width: 0; margin: 0; padding: 0 10px; gap: 8px; font-size: 14px; }
.aksi-hari .btn-wa > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sisa i { color: var(--ungu); font-size: 15px; }
.nb-in { flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; line-height: 1; color: #fff; background: var(--bad); }
@media (max-width: 440px) { .aksi-hari .ke { display: none; } .aksi-hari .btn-wa { padding: 0 8px; gap: 7px; } }
@media (max-width: 365px) { .aksi-hari .sh { display: none; } .aksi-hari .btn-wa { font-size: 13px; } }
@media (max-width: 340px) { .aksi-hari { flex-direction: column; } .aksi-hari .btn-wa { flex: 0 0 auto; } }
.ss-list { display: grid; gap: 8px; padding-bottom: 6px; }
.ss-tgl { margin: 8px 2px 0; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.ss-tgl:first-child { margin-top: 0; }
.ss-tgl.lewat { color: #C4321F; }
.ss-item { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.ss-buka { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; text-align: left; color: inherit; }
.ss-item .st-ic { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 10.5px; }
.ss-item .st-ic.progress { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ungu); color: var(--ungu); }
.ss-item .st-ic.belum { background: #fff; box-shadow: inset 0 0 0 1.5px var(--bad); color: var(--bad); }
.ss-txt { min-width: 0; }
.ss-txt b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.ss-txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.ss-done { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ungu-t); background: #fff; box-shadow: inset 0 0 0 1.5px var(--ungu); }
.ss-item.jadi .ss-done { color: #fff; background: var(--ungu); box-shadow: none; }
.ss-item.jadi .ss-txt b { text-decoration: line-through; color: var(--ink-3); }
.ss-item.jadi .st-ic { background: var(--ungu); color: #fff; box-shadow: none; }
.ss-item.hilang { opacity: 0; transform: translateX(36px); }
.ss-kosong { display: grid; justify-items: center; gap: 8px; padding: 26px 0 14px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.ss-kosong i { font-size: 34px; color: var(--ungu); }
.ss-kosong b { font-size: 16px; color: var(--ink); }
.ss-lagi { text-align: center; font-size: 12.5px; color: var(--ink-3); }

#fpMuat.putar i { animation: spin 1s linear infinite; }
.fp-no { color: var(--ink-3); font-size: 11.5px; }

/* v1.10 — form FPTK bergaya aplikasi (pertanyaan dibaca dari Google Form) */
.fp-isi { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px calc(28px + var(--safe-b)); max-width: 760px; margin: 0 auto; width: 100%; }
.fq-kepala { margin: 0 0 12px; padding: 14px 16px; border-radius: var(--r); background: var(--lila-3); }
.fq-kepala b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.fq-kepala p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); white-space: pre-line; }
.fq-bag { margin: 0 0 12px; padding: 14px 14px 4px; border-radius: var(--r); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); animation: rise .35s var(--ease) both; }
.fq-bag > h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14.5px; font-weight: 800; color: var(--ungu-t); }
.fq-bag > h4 i { font-size: 13px; }
.fq-bag > p.fq-bket { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-3); white-space: pre-line; }
.fq { margin: 0 0 14px; }
.fq > .fq-j { display: block; margin: 0 0 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fq > .fq-j em { font-style: normal; color: #C4321F; margin-left: 2px; }
.fq > .fq-k { display: block; margin: -3px 0 8px; font-size: 12px; color: var(--ink-3); white-space: pre-line; }
.fq input[type=text], .fq input[type=email], .fq input[type=date], .fq input[type=time], .fq textarea, .fq select { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 11px 13px; font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s; resize: vertical; -webkit-appearance: none; appearance: none; }
.fq select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.fq textarea { min-height: 76px; line-height: 1.45; }
.fq input:focus, .fq textarea:focus, .fq select:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .14); }
.fq-pil { display: flex; flex-wrap: wrap; gap: 8px; }
.fq-pil button { min-height: 40px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: left; transition: background-color .15s, box-shadow .15s, color .15s; }
.fq-pil button.on { background: var(--ungu); color: #fff; box-shadow: none; }
.fq-pil.centang button.on::before { content: '✓ '; }
.fq-lain { margin-top: 8px; }
.fq.salah > .fq-j { color: #C4321F; }
.fq.salah input, .fq.salah textarea, .fq.salah select { border-color: #E5484D; }
.fq.salah .fq-pil button:not(.on) { box-shadow: inset 0 0 0 1.5px #F2A9A6; }
.fq-err { display: none; margin-top: 6px; font-size: 12px; font-weight: 600; color: #C4321F; }
.fq.salah .fq-err { display: block; }
.fq-skala { display: flex; gap: 6px; }
.fq-skala button { flex: 1; height: 42px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; }
.fq-skala button.on { background: var(--ungu); color: #fff; box-shadow: none; }
.fq-aksi { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 30%); }
.fq-luar { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.fq-luar a { color: var(--ungu-t); font-weight: 600; }
.fq-catat { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; color: #8A4B00; background: #FFF6E5; }
.fq-ok { display: grid; justify-items: center; gap: 10px; padding: 34px 6px 16px; text-align: center; }
.fq-ok .ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--ungu); animation: popIn .45s var(--spring) both; }
.fq-ok h3 { margin: 4px 0 0; font-size: 19px; }
.fq-ok p { margin: 0; font-size: 13.5px; color: var(--ink-2); white-space: pre-line; }
.fq-ok dl { width: 100%; margin: 8px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); text-align: left; font-size: 13px; }
.fq-ok dt { color: var(--ink-3); font-size: 11.5px; margin-top: 6px; }
.fq-ok dt:first-child { margin-top: 0; }
.fq-ok dd { margin: 1px 0 0; font-weight: 600; color: var(--ink); }
.fq-ok .baris { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }

/* ---------- v1.11: laporan HTML (hasil KPI / analisis) ---------- */
.hcard.lap { padding: 0; overflow: hidden; }
.hcard.lap .h-main { display: block; width: 100%; padding: 14px 14px 12px; text-align: left; border-radius: 0; }
.h-aksi { display: flex; gap: 6px; padding: 0 12px 12px; }
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); transition: background-color .2s, color .2s; }
.h-btn i { font-size: 13px; }
.h-btn.mata { flex: 1 1 auto; color: #fff; background: var(--ungu); box-shadow: none; }
.h-btn.mata i { font-size: 14px; }
.h-btn.wa .ic-wa { width: 16px; height: 16px; }
.h-btn.busy i::before { content: "\f110"; }
.h-btn.busy i { animation: putar 1s linear infinite; }
.h-btn:disabled { opacity: .55; }
@media (hover: hover) { .h-btn:not(.mata):hover { background: var(--lila-3); color: var(--ungu-t); } .h-btn.mata:hover { background: #4A6AE8; } }
@media (max-width: 370px) { .h-btn { padding: 0 9px; } .h-btn:not(.mata) span { display: none; } .h-btn:not(.mata) { width: 40px; } }
.dlg-ic.ok { background: #E8EDFD; color: var(--ungu-d); }
.hs-file { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 12px; padding: 12px; border-radius: 16px; text-align: left; background: var(--soft); box-shadow: inset 0 0 0 1.5px rgba(90, 123, 247, .35); }
.hs-ic { position: relative; flex-shrink: 0; width: 46px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; color: var(--ungu-d); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.hs-ic em { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--ungu); }
.hs-nm { flex: 1; min-width: 0; }
.hs-nm b { display: block; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; line-height: 1.35; }
.hs-nm small { display: block; margin-top: 2px; font-size: 12px; color: var(--ungu-t); font-weight: 600; }
.hs-mata { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--ungu); }
.hs-aksi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hs-aksi .btn { min-height: 48px; }
.hs-aksi .btn.busy i::before { content: "\f110"; }
.hs-aksi .btn.busy i { animation: putar 1s linear infinite; }
#sheetHasil .btn-wa { margin: 10px 0 0; }
.hs-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; color: #7A4A05; background: #FFF7E8; }
.lap-view { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #EEF0F6; animation: fade .25s ease both; }
.lap-view.closing { animation: fade .25s ease reverse both; }
.lap-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; box-shadow: 0 1px 0 var(--edge); }
.lap-jd { flex: 1; min-width: 0; }
.lap-jd b, .lap-jd small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lap-jd b { font-size: 14.5px; font-weight: 800; }
.lap-jd small { font-size: 11.5px; color: var(--ink-3); }
.lap-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ungu-d); background: var(--lila-3); }
.lap-btn.pri { color: #fff; background: var(--ungu); }
.lap-btn.busy i::before { content: "\f110"; }
.lap-btn.busy i { animation: putar 1s linear infinite; }
@media (max-width: 360px) { .lap-btn span { display: none; } .lap-btn { width: 40px; justify-content: center; padding: 0; } }
#lapFrame { width: 100%; height: 100%; border: 0; background: #EEF0F6; }
@keyframes putar { to { transform: rotate(360deg); } }

/* ======================= v1.12: beranda bergaya referensi ======================= */
.home-top .who { gap: 12px; }
.home-top .avatar { width: 50px; height: 50px; font-size: 18px; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--lila-2); }
.home-top .who-txt { min-width: 0; }
.home-top .sapa { margin: 0 0 1px; font-size: 13px; }
.home-top h2 { font-size: 19px; line-height: 1.25; }
.home-top .peran { display: inline-block; max-width: 100%; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: var(--lila-3); color: var(--ungu-t); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn.bell { width: 44px; height: 44px; border-radius: 50%; font-size: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--edge); }
.icon-btn.bell .rdot.angka { top: -4px; right: -5px; border: 2px solid #fff; }
.icon-btn.bell.bump { animation: bump .5s var(--spring); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; }
.sec-head h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sec-head h3 i { color: var(--ungu); font-size: 15px; }
.sec-head small { color: var(--ink-3); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lihat { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px; font-size: 13.5px; font-weight: 700; color: var(--ungu-t); border-radius: 8px; }
.lihat i { font-size: 12px; }
/* banner progress (gaya "Special Offers") */
.promo { position: relative; display: flex; align-items: stretch; min-height: 168px; padding: 20px 0 20px 20px; border-radius: 26px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #93A9FF 0%, rgba(147, 169, 255, 0) 55%), linear-gradient(135deg, #6E8CFF 0%, #5A7BF7 45%, #4257D8 100%); box-shadow: 0 18px 34px -20px rgba(66, 87, 216, .8); }
.promo::before, .promo::after { content: ""; position: absolute; border-radius: 28px; background: rgba(255, 255, 255, .08); transform: rotate(32deg); pointer-events: none; }
.promo::before { width: 190px; height: 190px; right: 40px; top: -110px; }
.promo::after { width: 140px; height: 140px; right: -30px; bottom: -90px; }
.promo-txt { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.promo-lbl { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.promo-big { display: block; margin: 2px 0 2px; font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.promo h3 { color: #fff; font-size: 16px; line-height: 1.3; margin-bottom: 10px; }
.promo .sum-chips { margin-top: auto; }
.promo .sc { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: #fff; }
.promo .sc i { color: #fff; }
.promo-art { position: relative; z-index: 1; width: 150px; height: auto; flex-shrink: 0; align-self: flex-end; margin: 0 12px -8px 2px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(23, 23, 65, .22)); pointer-events: none; }
@media (max-width: 370px) { .promo-art { width: 112px; margin-right: 8px; } .promo-big { font-size: 38px; } }
/* grid menu (gaya "Services") */
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.mtile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px 0; border-radius: 16px; text-align: center; min-width: 0; }
.m-ic { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; transition: transform .2s var(--spring); }
.m-ic svg.ic-wa { width: 22px; height: 22px; }
.mtile:active .m-ic { transform: scale(.92); }
.m-lbl { font-size: 12px; line-height: 1.25; font-weight: 600; color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.mtile.aktif .m-ic { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px currentColor; }
.mtile.aktif .m-lbl { color: var(--ungu-t); font-weight: 800; }
.m-nb { position: absolute; top: -3px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--bad); box-shadow: 0 0 0 2px #fff; }
.m-biru { background: #EAF0FF; color: #4B63D6; }
.m-oranye { background: #FFF1E6; color: #E46A12; }
.m-hijau { background: #E6F7EE; color: #12955A; }
.m-merah { background: #FDECEC; color: #E5484D; }
.m-ungu { background: #F1EBFF; color: #7B4CE0; }
.m-langit { background: #E5F5FB; color: #0C8CB8; }
.m-kuning { background: #FFF6DB; color: #C08A00; }
.m-violet { background: #F7E9FB; color: #A53BC4; }
.m-teal { background: #E3F6F4; color: #138A7E; }
.menu-grup + .menu-grup { margin-top: 24px; }
.menu-grup h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.act-head { margin-top: 26px; }
.act-head + .week { margin-bottom: 2px; }
#vHarian .day-head { margin-top: 4px; }
#vHarian .day-head h3 { font-size: 15px; }
/* chip filter status (gaya "Most Popular Services") */
.st-filter { margin-bottom: 12px; }
.st-filter .chip-c { height: 34px; border-radius: 999px; padding: 0 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ungu); color: var(--ungu-t); }
.st-filter .chip-c em { font-style: normal; font-size: 11.5px; padding: 0 6px; border-radius: 999px; background: var(--lila-3); color: var(--ungu-t); }
.st-filter .chip-c.active { background: var(--ungu); color: #fff; }
.st-filter .chip-c.active em { background: rgba(255, 255, 255, .22); color: #fff; }
.filter-kosong { margin: 0 0 12px; padding: 14px; border-radius: 14px; background: var(--soft); color: var(--ink-3); font-size: 13.5px; text-align: center; }
/* manajer: grid menu di atas dashboard */
.m-menu-head { margin-top: 0; }
#mMenu { margin-bottom: 18px; padding: 14px 6px 10px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.mh-head { margin: 0 0 12px; }
.mh-head h3 { font-size: 16px; }
/* profil (gaya referensi) */
.prof-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 6px 0 18px; }
.prof-hero h3 { margin-top: 12px; font-size: 21px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-hero small { margin-top: 3px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.avatar.xxl { position: relative; width: 96px; height: 96px; font-size: 34px; overflow: visible; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--lila-2); }
.av-pen { position: absolute; right: -2px; bottom: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--ungu); box-shadow: 0 0 0 3px #fff; }
.prof-logo { width: 84px; height: 84px; border-radius: 24px; }
.prof-list { padding: 4px 6px; }
.prof-list .menu-item + .menu-item { border-top: 1px solid var(--edge); border-radius: 0; }
.prof-list .nb-in { margin-right: 6px; }
.set-nama { padding: 14px; }
/* dialog keluar (gaya "Logout") */
.dlg-keluar { text-align: center; }
.dlg-keluar .dlg-ic { display: none; }
.dlg-keluar h3 { justify-content: center; color: var(--bad); font-size: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--edge); }
.dlg-keluar .sheet-sub { margin: 16px 0 22px; font-size: 15px; color: var(--ink); font-weight: 600; }
.dlg-keluar .sheet-actions { grid-template-columns: 1fr 1fr; }
.dlg-keluar #dlgBatal { background: var(--lila-3); color: var(--ungu-t); box-shadow: none; border-radius: 999px; }
.dlg-keluar #dlgOk { border-radius: 999px; }
/* notifikasi berkelompok (Hari ini / Kemarin / tanggal) */
.n-grup { margin: 6px 2px -2px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.n-grup:first-child { margin-top: 0; }
#sheetNotif .n-ic { width: 44px; height: 44px; border-radius: 50%; font-size: 16px; }
#sheetNotif .nitem { background: #fff; box-shadow: 0 1px 2px rgba(23, 23, 65, .04), inset 0 0 0 1px var(--edge); align-items: center; }
#sheetNotif .nitem.baru { background: var(--lila-3); }

/* ======================= v1.12: Invoice ======================= */
.page-inv { display: flex; flex-direction: column; overflow: hidden; }
.inv-tab-wrap { flex-shrink: 0; padding: 4px 16px 10px; max-width: 760px; margin: 0 auto; width: 100%; }
.inv-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(28px + var(--safe-b)); max-width: 760px; margin: 0 auto; width: 100%; }
#pageInvDash .inv-body { padding-top: 14px; }
.inv-alat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-bottom: 10px; }
.inv-alat .in-box { height: 46px; }
@media (max-width: 360px) { .inv-alat { grid-template-columns: minmax(0, 1fr); } .sel-box select { max-width: none; flex: 1; } }
.sel-box { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 12px; background: var(--lila-3); color: var(--ungu-t); font-weight: 700; font-size: 13px; }
.sel-box select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: transparent; font-weight: 700; font-size: 13px; color: var(--ungu-d); padding-right: 14px; max-width: 150px; }
.sel-box .fa-chevron-down { position: absolute; right: 12px; font-size: 10px; pointer-events: none; }
.inv-info { margin: 0 2px 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.inv-info .warn, .lok-info .warn { color: #9A5B00; font-weight: 700; }
.lok-info .ok { color: var(--ungu-t); font-weight: 700; }
.inv-list { display: grid; gap: 8px; }
.inv-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.inv-ic { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 15px; background: #E6F7EE; color: #12955A; }
.inv-ic.ok { background: #12955A; color: #fff; }
.inv-txt { flex: 1; min-width: 0; }
.inv-txt b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.inv-txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.inv-st { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.inv-st em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.inv-st em.ok { background: #E6F7EE; box-shadow: none; color: #0E7A49; }
.inv-go { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--ungu); color: #fff; font-size: 14px; }
/* sheet wajib lokasi */
.gps-art { position: relative; width: 84px; height: 84px; margin: 4px auto 14px; display: grid; place-items: center; }
.gps-art span { position: absolute; inset: 0; border-radius: 50%; background: var(--lila-3); animation: gpsDenyut 1.8s ease-out infinite; }
.gps-art i { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--ungu); box-shadow: 0 10px 22px -10px rgba(66, 87, 216, .9); }
@keyframes gpsDenyut { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
#sheetGps h3, #sheetGps .sheet-sub { text-align: center; justify-content: center; }
.gps-site { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 12px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.gps-site > span:last-child { min-width: 0; }
.gps-site b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.gps-site small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.gps-ada { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #9A5B00; }
.gps-err { margin: 0 0 14px; padding: 11px 13px; border-radius: 12px; background: #FEF0EF; color: #B42318; font-size: 13px; font-weight: 600; line-height: 1.45; }
/* kamera */
.cam-view { position: fixed; inset: 0; z-index: 45; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0D0E24; color: #fff; animation: fade .25s ease both; }
.cam-view.closing { animation: fade .25s ease reverse both; }
.cam-bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; }
.cam-bar .icon-btn { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.cam-jd { flex: 1; min-width: 0; text-align: center; }
.cam-jd b, .cam-jd small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam-jd b { font-size: 15px; }
.cam-jd small { font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.cam-stage { position: relative; min-height: 0; overflow: hidden; display: grid; place-items: center; }
.cam-stage video, .cam-stage img { width: 100%; height: 100%; object-fit: cover; }
.cam-stage img { object-fit: contain; background: #000; }
.cam-stage video.cermin { transform: scaleX(-1); }
.cam-gps { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 14px; background: rgba(13, 14, 36, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 700; }
.cam-gps i { margin-top: 2px; color: #8FA5FF; }
.cam-gps small { display: block; margin-top: 2px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.cam-gps.lemah i { color: #FDB022; }
.cam-msg { position: absolute; left: 16px; right: 16px; top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(13, 14, 36, .78); font-size: 13px; line-height: 1.45; text-align: center; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.on { animation: kilat .35s ease-out; }
@keyframes kilat { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam-aksi { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 20px calc(18px + var(--safe-b)); }
.cam-aksi.hasil { grid-template-columns: 1fr 1.4fr; }
.cam-aksi.hasil .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.cam-tip { font-size: 11.5px; color: rgba(255, 255, 255, .65); line-height: 1.35; }
.cam-tip.kanan { text-align: right; color: #FDB022; font-weight: 600; }
.shutter { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 5px #fff; }
.shutter span { width: 60px; height: 60px; border-radius: 50%; background: #fff; transition: transform .15s; }
.shutter:active span { transform: scale(.86); }
.shutter:disabled { opacity: .45; }
/* riwayat invoice */
.ir-item { display: flex; gap: 12px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.ir-foto { position: relative; width: 78px; height: 78px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--soft); color: var(--ink-3); }
.ir-foto img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ir-foto img.siap { opacity: 1; }
.ir-txt { flex: 1; min-width: 0; }
.ir-txt b { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.ir-txt small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.ir-txt p { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ir-txt p i { color: var(--ungu); margin-right: 3px; }
.ir-tgl { padding: 1px 8px; border-radius: 999px; background: #E6F7EE; color: #0E7A49; }
.ir-tgl i { color: #12955A !important; }
.ir-txt .ir-gps { display: block; font-weight: 500; color: var(--ink-3); line-height: 1.4; }
/* dashboard pengiriman invoice */
.id-ring { margin-bottom: 12px; }
#idFilter { margin-bottom: 10px; }
.id-item { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.id-item.lewat, .id-item.telat { box-shadow: inset 3px 0 0 #E5484D, inset 0 0 0 1px var(--edge); }
.id-main { display: block; width: 100%; padding: 12px 14px; text-align: left; }
.id-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.id-top b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.id-main > small { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.id-st { flex-shrink: 0; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.id-st.ok { background: #E6F7EE; color: #0E7A49; }
.id-st.telat, .id-st.lewat { background: #FDECEC; color: #C4282D; }
.id-st.belum { background: var(--soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge); }
.id-tgl { display: flex; gap: 8px; margin-top: 10px; }
.id-tgl > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; padding: 7px 10px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.id-tgl > span.isi { background: #E6F7EE; box-shadow: none; }
.id-tgl i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.id-tgl b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-tgl .id-ubah { flex: 0 0 42px; align-items: center; justify-content: center; color: var(--ungu); background: var(--lila-3); box-shadow: none; }
.id-bukti { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px 10px; border-top: 1px dashed var(--edge); text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.id-bukti img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--soft); }
.id-bukti i { color: #12955A; margin-right: 3px; }
.ie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ie-grid input { text-align: center; font-size: 22px; font-weight: 800; }
.ie-lama { margin: 2px 0 10px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.ie-cepat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

/* ======================= v1.12: Lokasi site (peta) ======================= */
@media (prefers-reduced-motion: reduce) { .gps-art span, .pin-saya span { animation: none; } }


/* ======================= v1.13 ======================= */
/* header: judul "Activity" menggantikan sapaan saat di menu Activity */
.act-judul { flex: 1; min-width: 0; }
.act-judul h2 { font-size: 24px; line-height: 1.15; }
.act-judul small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-seg { margin: 4px 0 16px; }
.act-seg .rdot.angka { position: static; margin-left: 4px; transform: none; }
/* beranda: banner bisa diketuk → Activity */
#sumCard { cursor: pointer; text-align: left; }
#sumCard:focus-visible { outline: 3px solid rgba(90, 123, 247, .5); outline-offset: 3px; }
.promo-go { position: absolute; z-index: 2; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.promo .ripple { background: rgba(255, 255, 255, .35); }
#vBeranda .sec-head:first-of-type { margin-top: 24px; }
/* Visit: tanpa teks petunjuk; pilihan jadi satu / pisah */
.composer.visit .cmp-foto { margin-left: auto; }
.cmp-gabung { margin-top: 10px; background: #fff; }
.cmp-gabung button { min-height: 36px; font-size: 12.5px; padding: 0 6px; white-space: nowrap; }
.cmp-gabung button i { font-size: 12px; }
@media (max-width: 360px) { .cmp-gabung button { font-size: 11.5px; gap: 4px; } .cmp-gabung button i { display: none; } }
/* saran pencarian site */
.inv-alat { position: relative; }
.cari-wrap { min-width: 0; }
.saran { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; right: 0; max-height: 330px; overflow-y: auto; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -16px rgba(23, 23, 65, .45), inset 0 0 0 1px var(--edge); }
.inv-alat:has(.saran:not([hidden])) { z-index: 6; }
#pageInvDash .inv-body { padding-top: 2px; }
.saran-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 11px; text-align: left; }
.saran-item:hover, .saran-item.aktif { background: var(--lila-3); }
.saran-item > i { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #12955A; background: #E6F7EE; }
.saran-item > span { flex: 1; min-width: 0; }
.saran-item b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.saran-item b mark { background: none; color: var(--ungu-t); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.saran-item small { display: block; font-size: 11.5px; color: var(--ink-3); }
.saran-item em { flex-shrink: 0; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; color: #9A5B00; background: #FFF4DE; }
.saran-kosong { margin: 0; padding: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }
/* dashboard invoice: chip berangka, status sesuai / telat / lewat */
.id-filter { margin: 0 0 12px; }
.id-filter .chip-c.merah:not(.active) em { background: #FDECEC; color: #C4282D; }
.id-st.kirim { background: #E6F7EE; color: #0E7A49; }
.id-st.lewat { background: #fff; color: #C4282D; box-shadow: inset 0 0 0 1.5px #F2A7A9; }
.id-item.lewat { box-shadow: inset 3px 0 0 #F2A7A9, inset 0 0 0 1px var(--edge); }
.id-item.beda { box-shadow: inset 3px 0 0 #F5A524, inset 0 0 0 1px var(--edge); }
.id-beda { margin: 8px 0 0; font-size: 12px; font-weight: 600; color: #9A5B00; }
.id-beda i { margin-right: 4px; }
/* dashboard invoice: per staff */
.avatar.sm { width: 38px; height: 38px; font-size: 14px; }
.is-item { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.is-item.ada-telat { box-shadow: inset 3px 0 0 #E5484D, inset 0 0 0 1px var(--edge); }
.is-main { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 14px; text-align: left; }
.is-txt { flex: 1; min-width: 0; }
.is-txt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-txt small { display: block; font-size: 12px; color: var(--ink-3); }
.is-angka { display: flex; gap: 5px; flex-shrink: 0; }
.is-angka em { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.is-angka em i { font-size: 10px; margin-right: 2px; }
.is-angka em.ok { background: #E6F7EE; color: #0E7A49; }
.is-angka em.telat { background: #FDECEC; color: #C4282D; }
.is-panah { flex-shrink: 0; font-size: 12px; color: var(--ink-3); transition: transform .25s; }
.is-item.buka .is-panah { transform: rotate(180deg); }
.is-det { padding: 0 14px 10px; border-top: 1px solid var(--edge); }
.is-rata { margin: 10px 0 2px; font-size: 12px; font-weight: 700; color: #C4282D; }
.is-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--edge); }
.is-row:last-child { border-bottom: 0; }
.is-row > span:first-child { min-width: 0; }
.is-row b { display: block; font-size: 13px; overflow-wrap: anywhere; }
.is-row small { display: block; font-size: 11.5px; color: var(--ink-3); }
/* Lokasi site: tampilan seperti aplikasi Google Maps */
.page-lok { display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.lok-map-wrap { position: relative; flex: 0 0 60%; min-height: 240px; background: #E5E3DF; }
.lok-map, .lok-kanvas { position: absolute; inset: 0; }
.lok-map { z-index: 1; bottom: 16px; }   /* panel peta (z-index 400+) di bawah kotak cari; atribusi peta & logo Google tidak tertutup lembar daftar */
.lok-kanvas { background: #E5E3DF; }
.lok-map[data-mesin="osm"] .leaflet-tile-pane { filter: saturate(.82) brightness(1.03); }
.lok-load { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; color: var(--ink-3); font-size: 13px; text-align: center; background: #E8EAED; }
.lok-load i { font-size: 22px; color: #1A73E8; }
.lok-cari { position: absolute; z-index: 4; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; display: flex; align-items: center; gap: 4px; height: 50px; padding: 0 14px 0 4px; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(60, 64, 67, .3), 0 1px 2px rgba(60, 64, 67, .15); }
.lok-cari input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: #202124; }
.lok-cari input::placeholder { color: #70757A; }
.lok-cari > i { color: #70757A; font-size: 15px; }
.lok-back { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #5F6368; font-size: 17px; }
.lok-saya { position: absolute; z-index: 4; top: calc(74px + var(--safe-t)); right: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #1A73E8; background: #fff; box-shadow: 0 2px 6px rgba(60, 64, 67, .3); }
.lok-panel { position: relative; z-index: 5; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: -16px; padding: 8px 16px calc(24px + var(--safe-b)); border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -2px 10px rgba(60, 64, 67, .18); }
.lok-panel .grab { display: block; width: 36px; height: 4px; margin: 2px auto 12px; border-radius: 4px; background: #DADCE0; }
.lok-judul { margin: 0 2px 10px; font-size: 17px; color: #202124; }
.lok-judul small { font-size: 14px; font-weight: 600; color: #70757A; }
.lok-info { margin: 0 2px 10px; font-size: 12.5px; line-height: 1.45; }
.lok-info .warn { color: #B06000; font-weight: 600; }
.lok-list { display: grid; gap: 0; }
.lok-item { display: flex; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px solid #EEF0F2; border-radius: 0; background: none; box-shadow: none; }
.lok-item:last-child { border-bottom: 0; }
.lok-item.aktif .lok-txt b { color: #1A73E8; }
.lok-buka { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-radius: 12px; text-align: left; }
.lok-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #FCE8E6; }
.lok-ic svg { width: 15px; height: 24px; }
.lok-txt { flex: 1; min-width: 0; }
.lok-txt b { display: block; font-size: 14.5px; font-weight: 700; color: #202124; overflow-wrap: anywhere; }
.lok-txt small { display: block; margin-top: 1px; font-size: 12.5px; color: #70757A; }
.lok-rute { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: #1A73E8; text-decoration: none; }
.lok-rute i { font-size: 13px; }
.pin-gd svg { display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.pin-saya span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #4285F4; box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(0, 0, 0, .35); }
.pop-gd { min-width: 170px; font-family: 'Jakarta', system-ui, sans-serif; }
.pop-gd b { display: block; font-size: 14.5px; color: #202124; }
.pop-gd small { display: block; margin: 2px 0 10px; color: #70757A; font-size: 12.5px; }
.pop-gd a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #1A73E8; color: #fff !important; font-weight: 700; font-size: 13px; text-decoration: none; }
.leaflet-container { font-family: 'Jakarta', system-ui, sans-serif; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 2px 7px rgba(0, 0, 0, .3); }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; color: #5F6368; }
.leaflet-touch .leaflet-bar { border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); border-radius: 8px; overflow: hidden; }

/* =====================================================================
 * v1.14 — FPTK → HRIS, Kepala Cabang, ubah nama & hapus akun, kategori Site + Libur,
 *         tombol Done hijau #00FA9A, tambah lokasi gudang
 * ===================================================================== */
:root { --done: #00FA9A; --done-ink: #03402A; --libur: #0E8C7F; --libur-ink: #0B5B53; --libur-bg: #E3F6F3; --kc: #6D3FC8; }

/* ---------- Done = hijau #00FA9A (teks hijau tua agar terbaca) ---------- */
.t-status button.on[data-st="done"] { background: var(--done); color: var(--done-ink); font-weight: 800; }
.task.done .t-cek { background: var(--done); color: var(--done-ink); box-shadow: inset 0 0 0 1px rgba(3, 64, 42, .18); }
.arow .st-ic.done, .mh-tugas .st-ic.done { background: var(--done); color: var(--done-ink); }
.ss-item.jadi .ss-done { color: var(--done-ink); background: var(--done); box-shadow: none; }
.ss-item.jadi .st-ic { background: var(--done); color: var(--done-ink); box-shadow: none; }
.dchip .mk.done, .cday .mk.done, .dchip.active .mk.done, .cday.active .mk.done { background: var(--done); box-shadow: 0 0 0 1px rgba(3, 64, 42, .3); }
.cal-legend .ok { color: #00C47C; }

/* ---------- composer: 4 kategori di baris sendiri ---------- */
.composer .cmp-kat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; width: 100%; margin: 0 0 10px; }
.composer .cmp-kat button { width: auto; height: 38px; flex-direction: row; gap: 6px; font-size: 12.5px; }
.composer .cmp-kat button i { font-size: 12.5px; }
.composer .cmp-kat button.libur.active { background: var(--libur); }
@media (max-width: 370px) { .composer .cmp-kat button { flex-direction: column; gap: 1px; height: 42px; font-size: 11px; } .composer .cmp-kat button i { font-size: 12px; } }
/* Visit / Site: kolom besar bergaris, kamera di kanan atas */
.composer.visit .cmp-row { flex-wrap: nowrap; align-items: flex-start; }
.composer.visit #cmpTeks { order: 0; flex: 1 1 auto; width: 0; }
.composer.visit .cmp-foto { order: 1; }
/* Libur: tanpa kolom teks & foto */
.composer.libur { box-shadow: inset 0 0 0 1.5px rgba(14, 140, 127, .5); }
.composer.libur .cmp-row, .composer.libur #cmpPrev, .composer.libur #cmpGabung { display: none !important; }
.composer.libur #cmpTambah { background: var(--libur); }
.cmp-libur .field { margin: 10px 0 0; }
.cmp-libur .field small { font-weight: 500; color: var(--ink-3); }
.cl-info { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--libur-ink); background: var(--libur-bg); }
.cl-info i { margin-top: 2px; flex-shrink: 0; }
.cl-info.warn { color: #7A4300; background: #FFF4DE; }
.cl-info.err { color: #B42318; background: #FEF0EF; }

/* ---------- kartu hari Libur ---------- */
.libur-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px; margin: 0 0 18px; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, #E3F6F3, #F4FBFA); box-shadow: inset 0 0 0 1px #C5EAE4; animation: popIn .4s var(--ease) both; }
.lb-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; color: #fff; background: var(--libur); }
.lb-txt b { display: block; font-size: 17px; font-weight: 800; color: var(--libur-ink); }
.lb-txt p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #2E6B64; overflow-wrap: anywhere; }
.libur-card .btn { grid-column: 1 / -1; min-height: 42px; color: var(--libur-ink); background: #fff; box-shadow: inset 0 0 0 1px #BFE5DE; }
.dchip .mk-lb { position: absolute; top: 5px; right: 5px; font-size: 9px; line-height: 1; color: var(--libur); }
.dchip.active .mk-lb { color: #fff; }
.cday .mk-lb { font-size: 9.5px; line-height: 1; color: var(--libur); }
.cday.libur { background: var(--libur-bg); color: var(--libur-ink); }
.cday.libur.active { background: var(--libur); color: #fff; }
.cday.active .mk-lb { color: #fff; }
.cal-legend .lb { color: var(--libur); }
.sc.lb { color: var(--libur-ink); }
.tg.site { color: #8A5300; }
.tg.lb { background: var(--libur-bg); box-shadow: none; color: var(--libur-ink); }
.arow .st-ic.libur { background: var(--libur); color: #fff; }
.arow.libur p { font-weight: 700; color: var(--libur-ink); }
.mh-libur { background: #F4FBFA; }
.mh-libur .tg.lb { padding: 1px 6px; }

/* ---------- FPTK → HRIS (tutorial) ---------- */
.hr-langkah { list-style: none; margin: 2px 0 16px; padding: 0; display: grid; gap: 16px; }
.hr-langkah li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.hr-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--ungu); }
.hr-langkah b { display: block; margin-top: 4px; font-size: 15px; font-weight: 800; }
.hr-langkah p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.hr-langkah img { display: block; width: 100%; max-width: 340px; height: auto; margin-top: 10px; border-radius: 12px; border: 1px solid var(--edge); background: #fff; box-shadow: var(--shadow-sm); }
.hr-url { font-weight: 700; color: var(--ungu-t); overflow-wrap: anywhere; }
a.btn { text-decoration: none; }
.sheet.hris .sheet-actions { position: sticky; bottom: calc(-22px - var(--safe-b)); margin: 0 -20px calc(-22px - var(--safe-b)); padding: 12px 20px calc(16px + var(--safe-b)); background: linear-gradient(to bottom, rgba(255, 255, 255, .85), #fff 30%); }

/* ---------- Kepala Cabang ---------- */
.avatar.spv.kc { background: var(--kc); }
.tg.spv.kc { background: var(--kc); }
#rlPeran button { font-size: 13px; gap: 5px; padding: 0 4px; white-space: nowrap; }
@media (max-width: 400px) { #rlPeran button i { display: none; } }
#rlCab.satu .cek { border-radius: 50%; }
.act-row > :only-child, .act-row > [hidden] + :last-child, .act-row > :first-child:has(+ [hidden]:last-child) { grid-column: 1 / -1; }
.btn-ghost.bahaya { color: #B42318; }

/* ---------- beri tugas: pilih penerima ---------- */
.pg-untuk { margin: 0 0 14px; }
.pg-untuk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pg-untuk-top .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pg-untuk-top .lbl small { margin-left: 6px; font-weight: 600; color: var(--ink-3); }
.pg-orang { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.pg-o { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px; border-radius: 12px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
.pg-o .avatar.sm { width: 32px; height: 32px; font-size: 13px; flex-shrink: 0; }
.pg-n { flex: 1; min-width: 0; }
.pg-n b { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-n small { display: block; font-size: 11px; color: var(--ink-3); }
.pg-o .cek { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; display: grid; place-items: center; font-size: 11px; color: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.pg-o.active { background: var(--lila-3); box-shadow: inset 0 0 0 1.5px var(--ungu); }
.pg-o.active .cek { color: #fff; background: var(--ungu); box-shadow: none; }
.pg-o.libur { opacity: .62; }
.pg-o.libur small { color: var(--libur); font-weight: 700; }
.pg-o[disabled] { pointer-events: none; }

/* ---------- hapus akun ---------- */
#sheetHapusAkun .dlg-ic { font-size: 20px; }
.cek-baris { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); cursor: pointer; }
.cek-baris input { width: 20px; height: 20px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--bad); }
.cek-baris b { display: block; font-size: 14px; }
.cek-baris small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }
.cek-baris:has(input:checked) { background: #FEF0EF; box-shadow: inset 0 0 0 1px #FDA29B; }

/* ---------- lokasi: tambah gudang ---------- */
.lok-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; }
.lok-head .lok-judul { margin: 0; min-width: 0; }
.lok-tambah { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: #1A73E8; box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }
.lok-tambah i { font-size: 14px; }
.lt-koor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-koor .field { margin-bottom: 8px; }
.lt-gps { margin: 0 0 4px; }
.lt-gps[disabled] { opacity: .6; }
.lt-info { margin: 2px 0 14px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.lt-site .saran { top: calc(100% + 4px); }
@media (max-width: 400px) { .act-row .btn { padding: 0 10px; gap: 6px; font-size: 14.5px; } }
@media (max-width: 340px) { .act-row .btn { padding: 4px 8px; gap: 5px; font-size: 13.5px; white-space: normal; line-height: 1.2; text-align: left; } }

/* ---------- v1.15: Invoice — Site saya (tandai), hasil cari; grafik Pengiriman Invoice; cara tanggal PKS dibaca ---------- */
.inv-sub { display: flex; align-items: center; gap: 7px; margin: 2px 2px 0; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.inv-sub i { color: var(--ungu); font-size: 12px; }
.inv-sub em { font-style: normal; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--lila-3); color: var(--ungu-d); }
.inv-row { display: flex; align-items: stretch; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); overflow: hidden; }
.inv-row.saya { box-shadow: inset 3px 0 0 var(--ungu), inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.inv-row .inv-item { flex: 1; min-width: 0; box-shadow: none; border-radius: 0; background: transparent; padding-right: 10px; }
.inv-tanda { flex: 0 0 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px; border-left: 1px dashed var(--line); font-size: 10.5px; font-weight: 700; line-height: 1.2; color: var(--ungu-t); text-align: center; }
.inv-tanda i { font-size: 16px; color: var(--ungu); }
.inv-tanda.on { color: var(--ungu-d); background: var(--lila-3); }
.inv-tanda.on i { color: var(--ungu-d); }
.inv-item b mark { background: none; color: var(--ungu-t); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.inv-st em.telat { background: #FDECEC; box-shadow: none; color: #C4282D; }
.inv-kosong { display: grid; justify-items: center; gap: 6px; padding: 22px 16px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.inv-kosong .ik-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lila-3); color: var(--ungu); font-size: 18px; margin-bottom: 2px; }
.inv-kosong b { color: var(--ink); font-size: 14px; }
.inv-kosong em { font-style: normal; font-weight: 700; color: var(--ungu-d); white-space: nowrap; }
.inv-hilang { margin: 2px 2px 0; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.inv-hilang i { color: #9A5B00; margin-right: 4px; }
@media (max-width: 340px) { .inv-tanda { flex-basis: 58px; font-size: 10px; } .inv-row .inv-item { gap: 9px; padding-left: 10px; } .inv-row .inv-go { width: 32px; height: 32px; } }

.id-grafik { padding-bottom: 6px; }
.ig-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 14px; }
.ig-kpis .kpi b { font-size: 24px; }
.ig-kpis .kpi small { display: block; line-height: 1.35; margin-top: 1px; }
.ig-card header h4 small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.ig-rata { font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 3px 9px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); white-space: nowrap; }
.ig-sumbu { display: flex; justify-content: space-between; gap: 6px; margin: 2px 0 0 40px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.ig-sumbu i { font-size: 9px; }
.ig-daftar header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ig-daftar h4 { font-size: 15px; line-height: 1.35; }
.ig-daftar .chip { flex-shrink: 0; }
.ig-list { display: grid; gap: 6px; }
.ig-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); text-align: left; }
.ig-txt { flex: 1; min-width: 0; }
.ig-txt b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-txt small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htumpuk .hstack { display: flex; gap: 2px; height: 12px; min-width: 3px; flex-shrink: 0; transform-origin: left; animation: tumbuhX .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); border-radius: 0 4px 4px 0; overflow: hidden; outline: none; }
.htumpuk .hstack span { height: 100%; min-width: 3px; }
.htumpuk .hstack:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ungu); }
.ig-tabel { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 12px; }
.ig-tabel th { text-align: right; font-size: 10.5px; font-weight: 700; color: var(--ink-3); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.ig-tabel th:first-child, .ig-tabel td:first-child { text-align: left; }
.ig-tabel td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--edge); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ig-tabel td small { color: var(--ink-3); font-weight: 500; }
.ig-tabel tr.ini td { font-weight: 800; color: var(--ink); }
.ig-catat { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.ig-aturan { line-height: 1.5; }
.ie-aturan { margin: 12px 0 2px; }
.ie-aturan:empty { display: none; }
.ie-info { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 1.4; }
.ie-info i { color: var(--ungu); margin-right: 3px; }
.ie-baca { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ie-baca > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 11px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ie-baca i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.ie-baca b { font-size: 13.5px; overflow-wrap: anywhere; }
.ie-baca small { font-size: 11px; color: var(--ink-3); line-height: 1.35; }
.ie-hasil { margin: 8px 0 0; }
.ie-ro { margin: 12px 0 2px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); line-height: 1.45; }
.ie-ro i { color: var(--kc); margin-right: 4px; }
.inv-sub small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.ig-lagi { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 40px; margin-top: 2px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ungu-t); background: var(--lila-3); }
.ig-lagi i { font-size: 11px; }
.htumpuk .hrow { grid-template-columns: minmax(96px, 40%) 1fr; }
.inv-st em.mirip { background: #FFF6E0; box-shadow: none; color: #8A5300; }

/* ---------- v1.16: bagikan laporan sebagai link web (manajer) ---------- */
.h-btn.bagi { color: var(--ungu-t); }
.h-btn.bagi i { color: var(--ungu); }
.hs-link { margin: 0 0 12px; }
.bg-link { margin: 4px 0 12px; }
.bg-url { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--lila-3); box-shadow: inset 0 0 0 1px #DCE3FD; cursor: text; }
.bg-url i { color: var(--ungu); font-size: 15px; flex-shrink: 0; }
.bg-url input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ungu-d); outline: none; text-overflow: ellipsis; }
.bg-muat { display: flex; align-items: center; gap: 9px; min-height: 50px; padding: 12px 14px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13.5px; font-weight: 600; color: var(--ink-3); line-height: 1.4; }
.bg-muat i { color: var(--ungu); }
.bg-muat.gagal i { color: #B42318; }
.bg-wa { margin-bottom: 10px; }
.bg-aksi { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.bg-aksi .btn { width: 100%; }
#bgBaru { margin-bottom: 12px; }
.bg-info { margin: 0 2px 12px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.bg-info i { color: var(--ungu); margin-right: 3px; }
.bg-info b { color: var(--ink-2); }
.bg-bawah { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.bg-bawah:not(:has(button:not([hidden]))) { display: none; }
.bg-teks, .bg-cabut { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 4px; font-size: 13px; font-weight: 700; }
.bg-teks { color: var(--ink-2); }
.bg-teks .ic-wa { width: 16px; height: 16px; color: #25D366; }
.bg-cabut { color: #B42318; margin-left: auto; }
.bg-cabut:disabled { opacity: .5; }

/* ======================= v1.17: Pemenuhan Karyawan ======================= */
/* status: Outstanding merah · Done (terpenuhi) hijau · Done (kekurangan) oranye — selalu bersama ikon & label */
.pm-nb { font-style: normal; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 2px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; }
.pm-alat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 12px; }
.pm-alat .in-box { height: 46px; }
.pm-tambah { min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 14px; gap: 7px; }
@media (max-width: 359px) { .pm-tambah span { display: none; } .pm-tambah { width: 46px; padding: 0; } }
.inv-ic.pm { background: var(--lila-3); color: var(--ungu); }
.pm-site .inv-go { background: var(--lila-3); color: var(--ungu); }
.inv-row.pm-site.fav { box-shadow: inset 3px 0 0 #E0A100, inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.pm-fav { color: #8A6100; }
.pm-fav i { color: #C99A1A; }
.pm-fav.on { color: #7A5300; background: #FFF6DB; }
.pm-fav.on i { color: #E0A100; }
.inv-row.baru, .pm-item.baru { animation: pmSorot 2.6s var(--ease) both; }
@keyframes pmSorot { 0%, 35% { box-shadow: 0 0 0 3px rgba(90, 123, 247, .5), inset 0 0 0 1px var(--edge); background: #F5F7FF; } 100% { } }
.pm-saran { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
.pm-saran::-webkit-scrollbar { display: none; }
.pm-saran-item { flex: 0 0 auto; width: 188px; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 16px; text-align: left; scroll-snap-align: start;
  background: linear-gradient(160deg, #F2F5FF, #fff 70%); box-shadow: inset 0 0 0 1px var(--lila-2); }
.pm-saran-item .ps-hari { font-size: 11px; font-weight: 700; color: var(--ungu-t); display: flex; align-items: center; gap: 5px; }
.pm-saran-item b { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-saran-item small { font-size: 11.5px; color: var(--ink-3); }
.pm-saran-item .ps-jam { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-saran-item .ps-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ungu-t); }
.pm-tambah-cari { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; text-align: left; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--lila); border: 0; }
.pm-tambah-cari b { color: var(--ungu-t); overflow-wrap: anywhere; }
.pm-tambah-cari small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pm-tc-ic { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--ungu); color: #fff; }
.pm-kosong .btn { margin-top: 4px; }
.pm-filter .chip-c.merah:not(.active) { box-shadow: inset 0 0 0 1.5px #E5484D; color: #C4282D; }
.pm-filter .chip-c.merah:not(.active) em { background: #FDECEC; color: #C4282D; }
#pmList, #pmStatusList, #pmmList, .pm-dash-list, .pf-aktif { grid-template-columns: minmax(0, 1fr); }
.pm-item, .pmm-site, .pm-tambah-cari { min-width: 0; }
.pm-filter, .pmm-cab { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
.pm-hint { display: flex; align-items: flex-start; gap: 8px; padding: 2px 2px 4px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.pm-hint i { color: var(--ungu); margin-top: 2px; }
.pm-hint b { color: var(--ink-2); }

/* kartu permintaan */
.pm-item { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.pm-item.out { box-shadow: inset 3px 0 0 #E5484D, inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.pm-ic { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 15px; }
.pm-ic.out { background: #FDECEC; color: #D92D20; }
.pm-ic.ok { background: #E6F7EE; color: #0E7A49; }
.pm-ic.kurang { background: #FFF1DE; color: #B45309; }
.pm-txt { flex: 1; min-width: 0; }
.pm-txt b { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pm-txt b mark { background: none; color: var(--ungu-t); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.pm-txt small { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.pm-txt small i { width: 12px; flex-shrink: 0; font-size: 11px; text-align: center; }
.pm-txt small span { min-width: 0; overflow-wrap: anywhere; }
.pm-txt small.pm-shift span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-txt small.pm-ket span { font-style: italic; }
.pm-jml { flex-shrink: 0; min-width: 48px; text-align: right; }
.pm-jml b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.pm-jml small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.inv-st em.pm-st.out { background: #FDECEC; box-shadow: none; color: #C4282D; }
.inv-st em.pm-st.ok { background: #E6F7EE; box-shadow: none; color: #0E7A49; }
.inv-st em.pm-st.kurang { background: #FFF1DE; box-shadow: none; color: #9A4A08; }

/* form permintaan */
.page-pmf .page-body { padding-bottom: 24px; }
.pf-saran { margin-bottom: 16px; }
.pf-saran .sec-lbl { margin-bottom: 8px; }
.pf-saran-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; }
.pf-saran-list::-webkit-scrollbar { display: none; }
.pf-saran-item { flex: 0 0 auto; width: 200px; display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 14px; text-align: left; background: var(--lila-3); box-shadow: inset 0 0 0 1px var(--lila-2); }
.pf-saran-item .psi-top { font-size: 11px; font-weight: 700; color: var(--ungu-t); display: flex; align-items: center; gap: 5px; }
.pf-saran-item b { font-size: 13px; overflow-wrap: anywhere; }
.pf-saran-item small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-saran-item.on { background: #fff; box-shadow: inset 0 0 0 2px var(--ungu); }
.pf-saran-item.on .psi-top i { color: #12955A; }
.pf-help { font-size: 12px; color: var(--ink-3); margin-top: 7px; line-height: 1.45; }
.pf-help.salah { color: var(--bad); font-weight: 600; }
.pf-tgl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 4px; }
.pf-tgl .field { margin-bottom: 0; }
.pf-tgl-lbl { grid-column: 1 / -1; margin: 0 0 2px; font-weight: 600; color: var(--ink-2); }
.pf-cepat { display: flex; gap: 6px; padding-bottom: 9px; }
.pf-cepat .chip { background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); }
.pf-cepat .chip.on { background: var(--ungu); color: #fff; box-shadow: none; }
.pf-tgl2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pf-tgl2 .field { margin-bottom: 0; }
.pf-tgl2 .pf-help { grid-column: 1 / -1; margin: 0 0 4px; }
.page-pmf input[type=date] { -webkit-appearance: none; appearance: none; min-height: 50px; }
.pf-shift-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 18px 2px 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-shift-head i { color: var(--ungu); }
.pf-shift-head b { font-size: 13.5px; color: var(--ungu-t); white-space: nowrap; }
.pf-shift { display: grid; gap: 10px; }
.pf-row { padding: 12px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); animation: rise .35s var(--ease) both; }
.pf-row-top { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 8px; }
.pf-row-top b { font-size: 13.5px; }
.pf-dur { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-3); }
.pf-del { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); flex-shrink: 0; }
.pf-row-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 8px; }
.pf-row-in label { min-width: 0; }
.pf-row-in label span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row-in input { width: 100%; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font-size: 15px; font-weight: 600; outline: 0; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.pf-row-in input:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .14); }
.pf-row-in input.pf-jam { font-variant-numeric: tabular-nums; letter-spacing: .02em; text-align: center; }
.pf-row-in input.salah { border-color: var(--bad); background: #FFF6F6; box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
@media (max-width: 374px) { .pf-row-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pf-row-in label:last-child { grid-column: 1 / -1; } }
.pf-add { margin-top: 10px; min-height: 46px; }
.pf-ket { margin-top: 18px; }
.pf-ket small { font-weight: 500; color: var(--ink-3); }
.pf-aktif { display: grid; gap: 8px; margin-top: 6px; }
.pf-aktif .sec-lbl { margin: 0 2px 0; }
.pf-aksi { position: sticky; bottom: 0; z-index: 2; max-width: 600px; margin: 0 auto; padding: 12px 20px calc(14px + var(--safe-b)); background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 28%); }
.pf-fav.on i { color: #E0A100; }

/* tambah site */
.ps-mirip { margin: -4px 0 14px; padding: 10px; border-radius: 14px; background: #FFF8E6; }
.ps-mirip p { font-size: 12.5px; color: #7A4B10; margin: 0 2px 8px; display: flex; gap: 7px; }
.ps-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 6px; border-radius: 12px; background: #fff; text-align: left; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px #F4E3B5; }
.ps-item > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ps-item small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.ps-item i { color: #B07D00; }
.ps-item mark { background: none; color: var(--ungu-t); text-decoration: underline; }

/* ubah status */
#pstJudul span { min-width: 0; overflow-wrap: anywhere; }
.pst-shift { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.pst-shift span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); }
.pst-shift span i { color: var(--ungu); margin-right: 2px; }
.pst-shift p { width: 100%; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.pst-shift .pst-skr { color: var(--ink-2); }
.pst-opsi { display: grid; gap: 8px; margin-bottom: 14px; }
.pst-opsi button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1.5px var(--edge); transition: box-shadow .2s, background .2s; }
.pst-opsi button > span:nth-child(2) { flex: 1; min-width: 0; }
.pst-opsi button b { display: block; font-size: 14.5px; }
.pst-opsi button small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.po-ic { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; }
.po-ic.ok { background: #E6F7EE; color: #0E7A49; }
.po-ic.kurang { background: #FFF1DE; color: #B45309; }
.po-ic.out { background: #FDECEC; color: #D92D20; }
.po-cek { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 2px var(--line); }
.pst-opsi button.on .po-cek { box-shadow: inset 0 0 0 6px currentColor; }
.pst-opsi button.on[data-ps=ok] { box-shadow: inset 0 0 0 2px #12955A; background: #F4FBF7; color: #12955A; }
.pst-opsi button.on[data-ps=kurang] { box-shadow: inset 0 0 0 2px #D97706; background: #FFFAF2; color: #D97706; }
.pst-opsi button.on[data-ps=out] { box-shadow: inset 0 0 0 2px #E5484D; background: #FFF7F7; color: #E5484D; }
.pst-opsi button.on b { color: var(--ink); }
.pst-kurang .wajib { color: var(--bad); }
.pst-hitung { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pst-hitung.salah { color: var(--bad); }
.pst-hapus { color: var(--bad); }

/* kartu dashboard & halaman monitoring */
.pm-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pm-card h4 { display: flex; align-items: center; gap: 9px; font-size: 15px; min-width: 0; }
.pm-card h4 > i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #E6F7EE; color: #12955A; font-size: 14px; }
.pm-card h4 small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-top: 1px; }
.pm-card .lihat { flex-shrink: 0; white-space: nowrap; }
.pm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pm-tile { min-width: 0; padding: 10px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.pm-tile .pt-top { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-tile b { display: block; font-size: 21px; font-weight: 800; margin-top: 3px; }
.pm-tile small { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.3; overflow-wrap: anywhere; }
.pm-tile.out .pt-top i, .pm-tile.out b { color: #D92D20; }
.pm-tile.ok .pt-top i { color: #0E7A49; }
.pm-tile.kurang .pt-top i { color: #B45309; }
.pm-tile.rate .pt-top i { color: var(--ungu); }
.pm-tile.out { background: #FFF7F7; box-shadow: inset 0 0 0 1px #FBD9D7; }
@media (max-width: 459px) { .pm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-bar { display: flex; gap: 2px; height: 10px; margin: 12px 0 6px; border-radius: 6px; overflow: hidden; background: var(--track); }
.pm-bar i { display: block; height: 100%; min-width: 4px; }
.pm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-3); }
.pm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pm-legend i { width: 9px; height: 9px; border-radius: 3px; }
.pm-legend b { color: var(--ink); }
.pm-catatan { display: flex; gap: 7px; align-items: flex-start; margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: #FFF4E5; color: #7A4B10; font-size: 12.5px; }
.pm-lbl { margin: 14px 2px 8px; }
.pm-dash-list { display: grid; gap: 8px; }
.pm-kosong-dash { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--soft); color: var(--ink-3); font-size: 13px; }
.pm-kosong-dash i { color: var(--ungu); font-size: 18px; }
.pmm-cab { margin-top: 2px; }
#pmmBody { padding-top: 10px; }
.pmm-ring { margin-bottom: 12px; }
.pmm-cari { margin-bottom: 10px; }
.pmm-cari .in-box { height: 46px; }
.pmm-site { width: 100%; display: block; padding: 12px 14px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.pms-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pms-top b { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.pms-top b mark { background: none; color: var(--ungu-t); text-decoration: underline; }
.pms-top em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.pmm-site .pm-bar { margin: 8px 0 6px; height: 8px; }
.pmm-site small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.pmm-site .t-out { color: #C4282D; font-weight: 700; }
.pmm-site .t-kurang { color: #9A4A08; font-weight: 700; }

/* ===== v1.17.1: kehadiran (Done terpenuhi) & persentase pemenuhan ===== */
.pst-hadir-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 7px; }
.pst-hadir .wajib { color: var(--bad); }
.pst-hadir-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pst-hadir-row .chip { height: 50px; padding: 0 14px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); white-space: nowrap; }
.pst-hadir-row .chip.on { background: #12955A; color: #fff; box-shadow: none; }
.pst-help { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.pst-ke-kurang { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 11px 14px; border-radius: 12px; background: #FFFAF2; box-shadow: inset 0 0 0 1.5px #F5C98A; color: #9A4A08; font-size: 13.5px; font-weight: 700; text-align: left; }
.pst-ke-kurang span { min-width: 0; }
.pm-txt small.pm-hadir i { color: #0E7A49; }
.pm-tile small em { font-style: normal; font-weight: 800; color: var(--ink); }
.pm-persen { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.pm-persen.kosong { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); background: var(--soft); }
.pm-persen.kosong i { color: var(--ungu); }
.pp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 10px; }
.pp-head b { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.pp-head b i { color: var(--ungu); }
.pp-head small { font-size: 11.5px; color: var(--ink-3); }
.pp-dua { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pp-x { min-width: 0; padding: 10px 12px; border-radius: 14px; }
.pp-x.ok { background: #F4FBF7; box-shadow: inset 0 0 0 1px #CDEFDC; }
.pp-x.kurang { background: #FFFAF2; box-shadow: inset 0 0 0 1px #F8DDB5; }
.pp-x span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pp-x.ok span i { color: #0E7A49; }
.pp-x.kurang span i { color: #B45309; }
.pp-x b { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; margin-top: 2px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-x small { display: block; font-size: 11.5px; color: var(--ink-3); }
.pm-bar.pp-bar { margin: 10px 0 8px; height: 10px; }
.pp-rinci { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.pp-rinci li { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.pp-rinci li i { width: 14px; flex-shrink: 0; text-align: center; color: var(--ink-3); font-size: 11.5px; }
.pp-rinci li span { min-width: 0; overflow-wrap: anywhere; }
.pp-rinci li b { color: var(--ink); }
.pp-rinci li em { font-style: normal; color: var(--ink-3); }
.pp-rinci li.pp-out i { color: #D92D20; }
.pmm-site .t-ok { color: #0E7A49; font-weight: 700; }

/* ===== v1.18: Cek Rekening (staff & SPV) ===== */
#rkMuat.putar i { animation: putar 1s linear infinite; }
.rk-nb { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--lila-3); color: var(--ungu-d); }
#rkFiles, #rkList, #rkPerSite { grid-template-columns: minmax(0, 1fr); }
/* kotak status */
.rk-info { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 11px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); }
.rk-info > i { margin-top: 2px; font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; }
.rk-info > div { flex: 1; min-width: 0; }
.rk-info b { display: block; font-size: 13.5px; color: var(--ink); }
.rk-info span { display: block; overflow-wrap: anywhere; }
.rk-info.ok { background: #F4FBF7; box-shadow: inset 0 0 0 1px #CDEFDC; } .rk-info.ok > i { color: #0E7A49; }
.rk-info.warn { background: #FFFAF2; box-shadow: inset 0 0 0 1px #F8DDB5; } .rk-info.warn > i { color: #B45309; }
.rk-info.err { background: #FFF7F7; box-shadow: inset 0 0 0 1px #FBD9D7; } .rk-info.err > i { color: #D92D20; }
.rk-info.info > i, .rk-info.muat > i { color: var(--ungu); }
.rk-aksi { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 9px; }
.rk-aksi .btn { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.rk-link { display: inline; padding: 0; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--ungu-t); text-decoration: underline; text-underline-offset: 2px; }
.inv-sub .rk-link { margin: 0 0 0 auto; font-size: 12px; }
/* unggah */
.rk-drop { display: grid; justify-items: center; gap: 5px; margin-bottom: 14px; padding: 22px 18px; border-radius: 18px; text-align: center; cursor: pointer; background: #F8FAFF; border: 2px dashed #C7D2FB; transition: border-color .2s, background-color .2s; }
.rk-drop[hidden] { display: none; }
.rk-drop:focus-visible { outline: 2px solid var(--ungu); outline-offset: 2px; }
.rk-drop.over { border-color: var(--ungu); background: var(--lila-3); }
.rk-drop-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--ungu); color: #fff; margin-bottom: 4px; }
.rk-drop b { font-size: 15px; }
.rk-drop small { max-width: 420px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.rk-drop-pc { font-size: 12px; font-weight: 700; color: var(--ungu-t); }
@media (hover: none) { .rk-drop-pc { display: none; } }
.rk-files { margin-bottom: 14px; }
.rk-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.rk-f-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: #E6F7EE; color: #12955A; }
.rk-file.err { box-shadow: inset 3px 0 0 #E5484D, inset 0 0 0 1px var(--edge); }
.rk-file.err .rk-f-ic { background: #FDECEC; color: #D92D20; }
.rk-file.baca .rk-f-ic { background: var(--lila-3); color: var(--ungu); }
.rk-f-txt { min-width: 0; }
.rk-f-txt > b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.rk-f-txt > small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.rk-flag { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rk-flag span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.rk-flag .ya { background: #E6F7EE; color: #0E7A49; }
.rk-flag .tidak { background: #FFF4E5; color: #9A4A08; }
.rk-f-warn { margin-top: 6px; font-size: 12px; color: #9A4A08; line-height: 1.4; }
.rk-f-err { margin-top: 4px; font-size: 12.5px; color: #B42318; line-height: 1.45; overflow-wrap: anywhere; }
.rk-f-err b { color: #B42318; }
.rk-f-x { margin: -4px -4px 0 0; color: var(--ink-3); }
.rk-f-isi { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 10px; margin-top: 8px; }
.rk-f-isi .field { margin-bottom: 0; }
.rk-f-isi .field > span { margin-bottom: 5px; font-size: 12px; }
.rk-f-isi .field input { min-height: 44px; padding: 9px 12px; font-size: 14px; }
.rk-f-isi .field input.salah { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.rk-f-isi .wajib { color: var(--bad); }
@media (max-width: 459px) { .rk-f-isi { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.rk-run { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.rk-run[hidden] { display: none; }
.rk-simpan small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.rk-simpan[hidden] { display: none; }
.rk-cek { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
.rk-privasi { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.rk-privasi i { color: #0E7A49; margin-top: 2px; }
/* hasil */
.rk-hasil-sub { margin: 0 2px 10px; font-size: 12.5px; color: var(--ink-3); }
.rk-ring { margin-bottom: 12px; }
.rk-excel { width: 100%; margin-bottom: 12px; }
.rk-persite-btn { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.rk-persite-btn > i:first-child { color: var(--ungu); }
.rk-persite-btn em { font-style: normal; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--lila-3); color: var(--ungu-d); }
.rk-chev { margin-left: auto; font-size: 12px; color: var(--ink-3); transition: transform .25s var(--ease); }
.rk-persite-btn[aria-expanded=true] .rk-chev { transform: rotate(180deg); }
.rk-persite { margin-bottom: 14px; }
.rk-grup { margin-top: 4px; }
.rk-grup .chip-c.merah:not(.active) { box-shadow: inset 0 0 0 1.5px #E5484D; color: #C4282D; }
.rk-grup .chip-c.oranye:not(.active) { box-shadow: inset 0 0 0 1.5px #E0901A; color: #9A4A08; }
.rk-cari { margin: 2px 0 10px; }
.rk-cari .in-box { height: 46px; }
.rk-cari .in-box i { color: var(--ink-3); margin-right: 10px; }
.rk-site-chip { margin-bottom: 12px; }
.rk-site-chip .chip-c em { font-style: normal; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 999px; background: var(--lila-3); color: var(--ungu-t); }
.rk-site-chip .chip-c.active em { background: rgba(255, 255, 255, .22); color: #fff; }
.rk-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.rk-item.bad { box-shadow: inset 3px 0 0 #E5484D, inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.rk-item.cek { box-shadow: inset 3px 0 0 #E0901A, inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.rk-item .pm-txt small.rk-ket { margin-top: 6px; color: var(--ink-2); }
.rk-item .pm-txt small.rk-ket i { color: var(--ungu); }
.rk-kosong { font-style: normal; color: #B42318; font-weight: 600; }
.rk-pemilik { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 7px; padding: 7px 10px; border-radius: 10px; background: var(--soft); font-size: 12px; }
.rk-pemilik > span { width: 100%; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.rk-pemilik b { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.rk-pemilik.beda { background: #FFF7F7; box-shadow: inset 0 0 0 1px #FBD9D7; }
.rk-pemilik.beda b { color: #B42318; }
.rk-pemilik small { color: var(--ink-3); }
.rk-skor { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink-2); }
.pm-st.kurang, .pm-st.out, .pm-st.ok { white-space: nowrap; }
.rk-lagi-wrap { padding: 12px 0 4px; text-align: center; }
.rk-lagi { width: 100%; }
.rk-jml { font-size: 12px; color: var(--ink-3); }

/* ===== v1.19: paket (Total Delivery Non Jemari) di Cek Rekening + Monitoring Cek Payroll ===== */
.rk-paket { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: #FFF4E5; color: #7A4B10; font-size: 12.5px; line-height: 1.45; }
.rk-paket i { margin-top: 2px; color: #B45309; }
.rk-paket b { color: var(--ink); }
#pyMuat.putar i { animation: putar 1s linear infinite; }
#pyList, #pytList { grid-template-columns: minmax(0, 1fr); }
.py-bulan { margin-bottom: 12px; }
.py-filter { margin-top: 2px; }
.py-filter .chip-c.merah:not(.active) { box-shadow: inset 0 0 0 1.5px #E5484D; color: #C4282D; }
.py-filter .chip-c.hijau:not(.active) { box-shadow: inset 0 0 0 1.5px #12955A; color: #0E7A49; }
.py-card { padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.py-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 8px; }
.py-head b { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.py-head b i { color: #B45309; }
.py-head small { font-size: 11.5px; color: var(--ink-3); }
.py-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.py-hero > div { min-width: 0; }
.py-hero span { display: block; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.py-hero b { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.py-hero small { display: block; font-size: 12px; color: var(--ink-3); }
.py-banding { margin: 8px 0 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.py-banding b { color: #9A4A08; }
.py-catatan { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }
.py-catatan i { color: var(--ungu); margin-top: 2px; }
.py-delta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--soft); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--edge); }
.py-delta.naik { background: #E6F7EE; color: #0E7A49; box-shadow: none; }
.py-delta.turun { background: #FDECEC; color: #B42318; box-shadow: none; }
.py-delta.baru { font-weight: 700; color: var(--ink-3); }
/* grafik batang: satu seri, batang terakhir ditebalkan warnanya, nilai di atas batang */
.py-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 136px; margin-top: 12px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.py-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; min-width: 0; }
.py-val { font-size: 10.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.py-col.kini .py-val { color: var(--ink); }
.py-bar-w { position: relative; width: 100%; max-width: 34px; height: 100%; display: flex; align-items: flex-end; }
.py-bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--lila); }
.py-col.kini .py-bar { background: var(--ungu); }
.py-col.kosong .py-bar { background: transparent; }
.py-lbl { margin-top: 4px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.py-col.kini .py-lbl { color: var(--ink); font-weight: 700; }
.py-site { width: 100%; display: block; padding: 12px 14px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.py-site.turun { box-shadow: inset 3px 0 0 #E5484D, inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.py-site.naik { box-shadow: inset 3px 0 0 #12955A, inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.pys-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pys-top b { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pys-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.pys-angka { min-width: 0; }
.pys-angka b { display: block; font-size: 22px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pys-angka small { display: block; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.py-spark { flex-shrink: 0; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.py-spark i { display: block; width: 7px; border-radius: 3px 3px 0 0; background: var(--lila-2); }
.py-spark i.kini { background: var(--ungu); }
.py-spark i.kini.naik { background: #12955A; }
.py-spark i.kini.turun { background: #E5484D; }
.py-site > small, .py-rek > small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.45; overflow-wrap: anywhere; }
.py-site.kosong > small { margin-top: 4px; }
.py-rek .t-out { color: #C4282D; font-weight: 700; }
.py-rek .t-kurang { color: #9A4A08; font-weight: 700; }
.py-rek small.py-oleh { margin-top: 3px; }
.py-oleh i { margin-right: 5px; font-size: 10.5px; color: var(--ink-3); }
.py-site-grafik { margin: -4px 0 14px; }
.py-per-list { display: grid; gap: 8px; }
.py-per { padding: 11px 13px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.pyp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pyp-top b { min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.pyp-angka { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 4px 0 2px; }
.pyp-angka b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pyp-angka span { font-size: 12px; color: var(--ink-3); }
.pyp-angka .py-tanpa { color: #9A4A08; font-weight: 600; }
.py-per small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.py-per small.py-file, .rk-item small.py-file { display: flex; gap: 6px; color: var(--ink-3); }
.py-per small.py-file i { margin-top: 3px; color: #12955A; font-size: 11px; }
.py-tem { margin-top: 4px; }
.rk-f-paket { color: #9A4A08; }

/* ===== v1.20: Hint — panduan pertanyaan visit klien (tombol Isi: biru = belum, hijau = sudah diisi) ===== */
#hnMuat.putar i { animation: putar 1s linear infinite; }
.hn-intro { margin-bottom: 10px; }
.hn-intro i { color: #C08A00; }
.hn-gudang-f { margin-bottom: 10px; }
.hn-glbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 7px; }
.hn-gin { position: relative; }
.hn-help { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.hn-gudang-f.salah input { border-color: var(--bad); background: #FFF6F6; box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
.hn-gudang-f.salah .hn-help { color: var(--bad); font-weight: 600; }
.hn-draf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -2px 0 12px; font-size: 12px; color: var(--ink-3); }
.hn-draf i { color: var(--ungu); font-size: 11px; }
.hn-link { padding: 4px 0; font-size: 12px; font-weight: 700; color: var(--ungu-t); text-decoration: underline; text-underline-offset: 2px; }
.hn-prog { margin-bottom: 4px; }
.hn-prog-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 7px; }
.hn-prog-top b { font-size: 13.5px; }
.hn-prog-top small { font-size: 12px; color: var(--ink-3); }
.hn-bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.hn-bar i { display: block; height: 100%; border-radius: 99px; background: #12955A; transition: width .35s var(--ease); }
.hn-kat-h { margin: 16px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.hn-grup { display: grid; gap: 8px; }
.hn-q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 10px 11px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); cursor: pointer; }
.hn-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ungu-d); background: var(--lila-3); }
.hn-q.on .hn-no { color: var(--done-ink); background: #D6FBEA; }
.hn-teks { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.hn-isi { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 800; color: #fff; background: var(--ungu); box-shadow: 0 8px 16px -12px rgba(90, 123, 247, .9); }
.hn-isi i { font-size: 11.5px; }
.hn-isi.on { color: var(--done-ink); background: var(--done); box-shadow: inset 0 0 0 1px rgba(3, 64, 42, .16); }
.hn-isi.pop { animation: bump .45s var(--spring); }
.hn-aksi { display: grid; gap: 10px; margin-top: 20px; }
.hn-kirim .ic-wa { width: 19px; height: 19px; color: #fff; }
.hn-catat { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.hn-catat i { font-size: 11px; }
/* pop up isian */
.hn-kat { margin: 4px 0 4px; font-size: 12px; font-weight: 700; color: var(--ungu-t); }
.hn-sheet h3 { font-size: 18px; line-height: 1.35; }
.hn-petunjuk { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 16px; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: #5C4300; background: #FFF6DB; }
.hn-petunjuk i { margin-top: 2px; color: #C08A00; }
.hn-f { margin-bottom: 14px; }
.hn-pil { display: flex; flex-wrap: wrap; gap: 8px; }
.hn-opt { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.hn-opt.on, .hn-rt.on { color: #fff; background: var(--ungu); box-shadow: none; }
.hn-rate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hn-rt { display: grid; justify-items: center; gap: 2px; min-height: 60px; padding: 8px 2px; border-radius: 12px; color: var(--ink-2); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.hn-rt b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.hn-rt small { font-size: 10.5px; line-height: 1.2; text-align: center; color: inherit; opacity: .85; }
.field > span.hn-angka { display: flex; align-items: center; gap: 10px; margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
.hn-angka input { flex: 1; min-width: 0; }
.hn-angka em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.hn-isian textarea { min-height: 104px; }
/* riwayat */
.hn-cari { margin-bottom: 10px; }
.hn-tgl { margin: 14px 2px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.hn-rlist { display: grid; }
.hn-r { margin-bottom: 8px; padding: 6px 12px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.hn-r.baru { box-shadow: inset 0 0 0 1.5px #12955A, 0 1px 2px rgba(23, 23, 65, .03); }
.hn-gudang { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; text-align: left; color: var(--ungu-t); }
.hn-gudang > i:first-child { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; font-size: 13px; color: var(--ungu); background: var(--lila-3); }
.hn-gudang b { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; text-decoration: underline; text-decoration-color: var(--lila); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.hn-gudang mark { background: #FFF1A8; color: inherit; border-radius: 3px; }
.hn-chev { font-size: 12px; color: var(--ink-3); }
.hn-r > small { display: block; padding-left: 40px; font-size: 12px; color: var(--ink-3); line-height: 1.45; overflow-wrap: anywhere; }
/* pop up detail */
.hn-detail { display: grid; }
.hn-d { padding: 12px 0; border-top: 1px solid var(--line); }
.hn-d:first-child { border-top: 0; padding-top: 2px; }
.hn-d-kat { display: block; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.hn-d > b { display: block; font-size: 14px; line-height: 1.4; }
.hn-d-jawab { display: inline-block; margin: 7px 0 0; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ungu-d); background: var(--lila-3); overflow-wrap: anywhere; }
.hn-d-cat { margin: 7px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.hn-wa { margin: 14px 0 0; }
/* monitoring Hint (manajer & SPV): siapa yang mengisi */
#hmMuat.putar i, #heMuat.putar i { animation: putar 1s linear infinite; }
.hm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.hm-tiles .pm-tile .pt-top i { color: #C08A00; }
.hm-cari { margin-bottom: 10px; }
.hm-org { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.hm-av { width: 40px; height: 40px; font-size: 15px; }
.hm-main { flex: 1; min-width: 0; }
.hm-main b { display: block; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.hm-main b .tg { vertical-align: 2px; font-size: 10.5px; }
.hm-main small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.hm-n { flex-shrink: 0; display: grid; justify-items: center; min-width: 46px; padding: 5px 6px; border-radius: 12px; background: #FFF6DB; color: #8A6300; }
.hm-n b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.hm-n small { font-size: 10.5px; font-weight: 700; }
.hm-vlist { display: grid; gap: 8px; }
.hm-v { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.hm-v-tgl { flex-shrink: 0; width: 44px; display: grid; justify-items: center; padding: 4px 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.hm-v-tgl b { font-size: 17px; line-height: 1.1; }
.hm-v-tgl small { font-size: 10.5px; font-weight: 700; color: var(--ink-3); }
.hm-privasi { margin-top: 12px; }
.hm-privasi i { color: var(--ink-3); }
/* ubah pertanyaan Hint (manajer & SPV) */
.he-list { display: grid; gap: 8px; margin-top: 4px; }
.he-q { display: flex; align-items: stretch; gap: 6px; padding: 4px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.he-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 12px; text-align: left; }
.he-main .hn-no { flex-shrink: 0; margin-top: 1px; }
.he-isi { min-width: 0; }
.he-isi em { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.he-isi b { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.he-isi small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: var(--ungu-t); overflow-wrap: anywhere; }
.he-isi small.he-oleh { color: var(--ink-3); }
.he-oleh i { margin-right: 5px; font-size: 10px; }
.he-urut { flex-shrink: 0; display: grid; align-content: center; gap: 6px; padding: 4px 4px 4px 0; }
.he-urut .icon-btn { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.he-urut .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.he-tambah { margin-top: 16px; }
.ht-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 4px 0 8px; }
.ht-head b { font-size: 13px; color: var(--ink-2); }
.ht-head small { font-size: 11.5px; color: var(--ink-3); }
.ht-isian { display: grid; gap: 10px; }
.ht-f { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ht-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ht-top b { font-size: 12.5px; color: var(--ink-2); }
.ht-del { display: inline-flex; align-items: center; gap: 4px; color: var(--bad); text-decoration: none; }
.ht-jenis { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-jenis .hn-opt { min-height: 36px; padding: 0 12px; font-size: 13px; background: #fff; }
.ht-jenis .hn-opt.on { background: var(--ungu); }
.ht-f input { width: 100%; min-height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #fff; padding: 10px 12px; font-size: 14.5px; outline: 0; }
.ht-f input:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .14); }
.ht-tambah { margin: 10px 0 14px; min-height: 44px; }
.ht-hapus { color: var(--bad); }

/* v1.20.1: keterangan cara file payroll dibaca */
.rk-f-info { margin-top: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.rk-f-info i { color: var(--ungu); }
.rk-f-warn { overflow-wrap: anywhere; }

/* ===== v1.21: Detail karyawan (manajer) — tombol kelola akun pindah ke atas, ringkas ===== */
.ps-aksi { margin: 2px 0 16px; padding: 10px 12px 12px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ps-aksi-h { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ps-aksi-h i { font-size: 11px; color: var(--ungu); }
.ps-aksi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ps-aksi-grid > .act-row { display: contents; }
#psAksi .btn { min-height: 42px; padding: 0 10px; gap: 7px; font-size: 13.5px; border-radius: 12px; background: #fff; }
#psAksi .btn i { font-size: 13px; }
@media (max-width: 340px) { #psAksi .btn { font-size: 12.5px; white-space: normal; line-height: 1.2; } }

/* ===== v1.21: Pilih site (data site nasional) ===== */
.site-sheet { display: flex; flex-direction: column; height: 88vh; height: 88dvh; overflow: hidden; padding-bottom: calc(14px + var(--safe-b)); }
.site-sheet h3, .site-sheet .sheet-sub, .site-sheet .grab { flex-shrink: 0; }
.site-sheet .sheet-sub { margin-bottom: 10px; }
.sp-cari { flex-shrink: 0; margin-bottom: 10px; }
.sp-cab { flex-shrink: 0; margin-bottom: 8px; }
.sp-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -20px; padding: 2px 20px 8px; display: flex; flex-direction: column; gap: 6px; }
.sp-list > * { flex-shrink: 0; }   /* baris tidak boleh mengecil (tombol ber-overflow hidden) */
.sp-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--edge); }
.sp-row.on { background: #F2F6FF; box-shadow: inset 0 0 0 1.5px var(--ungu); }
.sp-row.mati .sp-main b { color: var(--ink-3); }
.sp-cek { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; border-radius: 7px; font-size: 11px; color: transparent; background: #fff; box-shadow: inset 0 0 0 1.5px #C9CEDD; transition: background-color .15s, box-shadow .15s; }
.sp-cek.radio { border-radius: 50%; }
.sp-row.on .sp-cek { color: #fff; background: var(--ungu); box-shadow: none; }
.sp-main { flex: 1; min-width: 0; }
.sp-main b { display: block; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.sp-main small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.sp-main mark { background: #FFF1A8; color: inherit; border-radius: 3px; }
.sp-st { font-style: normal; font-weight: 700; color: #B42318; }
.sp-lebih { margin: 6px 2px; font-size: 12px; color: var(--ink-3); text-align: center; }
.sp-semua { align-self: center; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin: 6px 0 2px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--ungu-t); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.sp-aksi { flex-shrink: 0; margin-top: 10px; }

/* ===== v1.21: Pengiriman Chemical ===== */
#chMuat.putar i, #cmMuat.putar i, #ctMuat.putar i, #cmtMuat.putar i { animation: putar 1s linear infinite; }
.ch-jenis { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; padding: 10px 12px; border-radius: 14px; background: #E5F5FB; }
.ch-jenis-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 16px; color: #0C8CB8; background: #fff; }
.ch-jenis small { display: block; font-size: 11.5px; font-weight: 600; color: #3C6E80; }
.ch-jenis b { display: block; font-size: 15.5px; color: #064B63; }
.ch-f { margin-bottom: 16px; }
.ch-lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 7px; }
.ch-lbl small { font-weight: 500; color: var(--ink-3); }
.ch-pilih { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 12px; text-align: left; color: var(--ink-2); background: #fff; border: 1.5px dashed #C9CEDD; }
.ch-pilih > i:first-child { color: var(--ungu); font-size: 15px; }
.ch-pilih b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ch-pilih.isi { border-style: solid; border-color: var(--ungu); background: #F7F9FF; color: var(--ungu-t); }
.ch-pilih:disabled { opacity: .6; }
.ch-chev { font-size: 12px; color: var(--ink-3); }
.ch-f.salah .ch-pilih, .ch-f.salah input[type="date"] { border-color: var(--bad); background: #FFF6F6; }
.ch-f.salah .ch-lbl { color: var(--bad); }
.ch-chips { display: grid; gap: 6px; margin-top: 8px; }
.ch-chip { display: flex; align-items: center; gap: 8px; padding: 7px 6px 7px 12px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ch-chip > span { flex: 1; min-width: 0; }
.ch-chip b { display: block; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ch-chip small { display: block; font-size: 11.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.ch-chip button { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); }
.ch-cepat { margin-bottom: 10px; }
.ch-f input[type="date"] { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 12px 14px; font-size: 15px; outline: 0; }
.ch-f input[type="date"]:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .14); }
.ch-help { display: block; margin-top: 7px; font-size: 12.5px; color: var(--ink-3); }
.ch-simpan { margin-top: 6px; }
.ch-simpan + .hn-catat { margin-top: 10px; }
.ch-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 2px 4px; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.ch-sec span { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.ch-tgl { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 12px 2px 7px; font-size: 13px; }
.ch-tgl span { font-weight: 700; color: var(--ink); }
.ch-tgl em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ch-tgl.ini span { color: #0C8CB8; }
.ch-r { display: flex; align-items: center; gap: 12px; margin-bottom: 7px; padding: 10px 8px 10px 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.ch-r.baru { box-shadow: inset 0 0 0 1.5px #12955A, 0 1px 2px rgba(23, 23, 65, .03); }
.ch-r.lalu { background: var(--soft); }
.ch-r.lalu .ch-ic { color: var(--ink-3); background: #EEF0F5; }
.ch-ic { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; font-size: 14px; color: #0C8CB8; background: #E5F5FB; }
.ch-main { flex: 1; min-width: 0; }
.ch-main b { display: block; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ch-main small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.ch-main mark { background: #FFF1A8; color: inherit; border-radius: 3px; }
.ch-del { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 11px; color: var(--ink-3); }
.ch-del:hover { color: var(--bad); }
.cm-tiles .pm-tile .pt-top i { color: #0C8CB8; }

/* ===== v1.21: Control Site ===== */
.ct-site { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: #F4F2FF; box-shadow: inset 0 0 0 1.5px #D9D0FB; }
.ct-site.mati { background: #FFF7F7; box-shadow: inset 0 0 0 1.5px #FBD9D7; }
.ct-site-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 16px; color: #7B4CE0; background: #fff; }
.ct-site-main { flex: 1; min-width: 0; }
.ct-site-main b { display: block; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ct-site-main small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.ct-ganti { flex-shrink: 0; min-height: 38px; padding: 0 14px; font-size: 13px; }
.ct-tm-n { font-weight: 700; color: #B42318; }
.ct-grup { margin-top: 14px; }
.ct-grup-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ct-grup-h em { flex-shrink: 0; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 0; padding: 2px 8px; border-radius: 8px; color: var(--ink-3); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ct-grup-h em.lengkap { color: var(--done-ink); background: #D6FBEA; box-shadow: none; }
.ct-q { margin-bottom: 8px; padding: 11px 12px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.ct-q.salah { box-shadow: inset 0 0 0 1.5px var(--bad); background: #FFF8F8; }
.ct-q.on.bad { box-shadow: inset 0 0 0 1.5px #F8B4AE; }
.ct-lbl { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 9px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.ct-st { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0; display: grid; place-items: center; border-radius: 50%; font-size: 9px; color: #C9CEDD; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ct-st .fa-circle { font-size: 6px; }
.ct-q.on .ct-st { font-size: 10px; color: var(--done-ink); background: #D6FBEA; box-shadow: none; }
.ct-q.on.bad .ct-st { color: #B42318; background: #FDECEC; }
.ct-q.on.net .ct-st { color: var(--ungu-d); background: var(--lila-3); }
.ct-q.salah .ct-st { font-size: 10px; color: #fff; background: var(--bad); box-shadow: none; }
.ct-lbl > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ct-pil { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px 10px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink-2); background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ct-opt i { font-size: 12px; }
.ct-opt.on.ok { color: var(--done-ink); background: var(--done); box-shadow: inset 0 0 0 1px rgba(3, 64, 42, .16); font-weight: 800; }
.ct-opt.on.bad { color: #fff; background: #E5484D; box-shadow: none; font-weight: 800; }
.ct-opt.on.net { color: #fff; background: var(--ungu); box-shadow: none; font-weight: 800; }
.ct-opt.pop { animation: bump .45s var(--spring); }
.ct-ket-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin-top: 6px; padding: 0 2px; font-size: 12.5px; font-weight: 700; color: var(--ungu-t); }
.ct-ket-btn i { font-size: 10.5px; }
.ct-ket { display: block; margin-top: 9px; }
.ct-ket span { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ct-ket textarea { width: 100%; min-height: 60px; border-radius: 11px; border: 1px solid var(--line); background: #fff; padding: 10px 12px; font-size: 14px; line-height: 1.45; outline: 0; resize: none; }
.ct-ket textarea:focus { border-color: var(--ungu); box-shadow: 0 0 0 4px rgba(90, 123, 247, .14); }
.ct-catatan { margin-top: 18px; }
.ct-catatan textarea { min-height: 104px; }
.ct-catatan.salah textarea { border-color: var(--bad); background: #FFF6F6; box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
.ct-catatan.salah .ch-lbl { color: var(--bad); }
#ctSiteF.salah .ch-pilih { border-color: var(--bad); background: #FFF6F6; }
#ctSiteF.salah .ch-lbl { color: var(--bad); }
/* riwayat & monitoring */
.ct-r { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 11px 12px; border-radius: 16px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--edge), 0 1px 2px rgba(23, 23, 65, .03); }
.ct-r.baru { box-shadow: inset 0 0 0 1.5px #12955A, 0 1px 2px rgba(23, 23, 65, .03); }
.ct-r-ic { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 15px; }
.ct-r-ic.ok { color: #12955A; background: #E6F7EE; }
.ct-r-ic.bad { color: #E5484D; background: #FDECEC; }
.ct-r-main { flex: 1; min-width: 0; }
.ct-r-main b { display: block; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ct-r-main small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.4; overflow-wrap: anywhere; }
.ct-r-main small i { font-size: 10.5px; }
.ct-r-main mark { background: #FFF1A8; color: inherit; border-radius: 3px; }
.ct-r-n { flex-shrink: 0; display: grid; justify-items: center; min-width: 50px; padding: 5px 6px; border-radius: 12px; }
.ct-r-n b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.ct-r-n b i { font-size: 15px; }
.ct-r-n small { font-size: 10.5px; font-weight: 700; }
.ct-r-n.ok { color: var(--done-ink); background: #E6F7EE; }
.ct-r-n.bad { color: #B42318; background: #FDECEC; }
.cmt-tiles .pm-tile .pt-top i { color: #7B4CE0; }
.ct-top header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ct-top header small { font-size: 12px; color: var(--ink-3); }
.ct-top-r { display: grid; grid-template-columns: minmax(0, 1fr) 70px 26px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ct-top-r:first-of-type { border-top: 0; }
.ct-top-r span:first-child { overflow-wrap: anywhere; line-height: 1.35; }
.ct-top-r small { display: block; font-size: 11px; color: var(--ink-3); }
.ct-top-bar { height: 7px; border-radius: 99px; background: var(--track); overflow: hidden; }
.ct-top-bar i { display: block; height: 100%; border-radius: 99px; background: #E5484D; }
.ct-top-r b { text-align: right; font-size: 14px; }
/* detail */
.ct-sheet h3 { font-size: 18px; line-height: 1.35; }
.ct-d-org { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--edge); }
.ct-d-org > span:last-child { flex: 1; min-width: 0; }
.ct-d-org b { display: block; font-size: 14px; }
.ct-d-org small { display: block; font-size: 12px; color: var(--ink-3); }
.ct-tm { margin-bottom: 12px; padding: 10px 12px 4px; border-radius: 14px; background: #FFF7F7; box-shadow: inset 0 0 0 1px #FBD9D7; }
.ct-tm h5 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 13.5px; color: #B42318; }
.ct-aman { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--done-ink); background: #F4FBF7; box-shadow: inset 0 0 0 1px #CDEFDC; }
.ct-d-cat, .ct-d-foto { margin-bottom: 12px; }
.ct-d-cat h5, .ct-d-foto h5 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ct-d-cat p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-d-h { margin-top: 16px; }
.ct-d-grup { display: grid; }
.ct-d { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ct-d-grup .ct-d:first-child, .ct-tm .ct-d:first-of-type { border-top: 0; }
.ct-tm .ct-d { border-top-color: #FBD9D7; }
.ct-d-l { font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.ct-d-l small { display: block; font-size: 11px; color: #B42318; opacity: .8; }
.ct-d-v { justify-self: end; padding: 3px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-align: right; color: var(--ink-2); background: var(--soft); }
.ct-d-v.ok { color: var(--done-ink); background: #E6F7EE; }
.ct-d-v.bad { color: #fff; background: #E5484D; }
.ct-d-v.net { color: var(--ungu-d); background: var(--lila-3); }
.ct-d-ket { grid-column: 1 / -1; margin: 0; padding: 6px 10px; border-radius: 9px; font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 360px) { .ct-opt { font-size: 13px; padding: 4px 6px; } .ct-top-r { grid-template-columns: minmax(0, 1fr) 46px 22px; } }

/* ======================= v2.0: layanan & struktur jabatan ======================= */
:root { --nas: #0F6B8F; }
.lbl-ket { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
.avatar.spv.nas { background: var(--nas); }
.tg.spv.nas { background: var(--nas); }
/* tag layanan: ikon berwarna layanan, teks tetap warna tinta */
.tg.ly { background: #F4F5FA; box-shadow: none; color: var(--ink-2); }
.tg.ly i { color: var(--ly, var(--ink-3)); }
/* chip filter layanan (menu tim, pemberitahuan) */
.chip-c.chip-ly i { color: var(--ly, var(--ink-3)); font-size: 12px; }
.chip-c.chip-ly.active i { color: #fff; }
#mCab:not([hidden]) + #mLay { margin-top: -8px; }
.sheet .chip-lay { margin-top: -6px; }
/* pilihan layanan (pendaftaran, role, ubah activity) */
.kat-pick.cab.mini.lay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kat-pick.cab.mini.lay button { justify-content: flex-start; padding: 0 10px; gap: 8px; }
.kat-pick.lay button > i:first-child { color: var(--ly, var(--ungu)); }
.kat-pick.cab.mini.lay.multi .cek { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.kat-pick.lay b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.au-form .lay-field .kat-pick.lay button { height: 42px; }
#rlLayWrap { margin-bottom: 4px; }
#rlLayWrap .kat-pick { margin-bottom: 12px; }
.kat-pick.cab.mini.rl-peran { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.kat-pick.cab.mini.rl-peran button { height: 46px; justify-content: flex-start; padding: 0 12px; gap: 8px; }
.kat-pick.cab.mini.rl-peran b { white-space: normal; text-align: left; line-height: 1.15; }
.kat-pick.cab.mini.lay button:last-child, .kat-pick.cab.mini.rl-peran button:last-child { grid-column: auto; }
#rlPeran.rl-peran button { padding: 0 12px; gap: 8px; white-space: normal; font-size: 13px; }
#rlPeran.rl-peran button i { display: inline-block; font-size: 14px; }
.t-lay { margin: 0 0 12px; }
.t-lay .lbl { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.t-lay .kat-pick { margin: 0; }
.kat-pick.lay button[disabled] { opacity: .55; }
/* composer: baris layanan di atas kategori */
.cmp-lay { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; min-width: 0; }
.cmp-lay .cl-lbl { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cmp-lay .cl-lbl i { font-size: 11px; }
.cmp-lay .cl-pil { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; margin: -2px; }
.cmp-lay .cl-pil::-webkit-scrollbar { display: none; }
.cmp-lay button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
.cmp-lay button i { font-size: 11.5px; color: var(--ly, var(--ungu)); }
.cmp-lay button.active { color: var(--ink); background: var(--lila-3); box-shadow: inset 0 0 0 1.5px var(--ungu); }
.cmp-lay.satu button { pointer-events: none; box-shadow: none; background: #fff; }
.composer.libur .cmp-lay { display: none; }
/* diagram per layanan (dashboard) */
.lay-card h4 { display: flex; align-items: center; gap: 9px; font-size: 15px; min-width: 0; }
.lay-card h4 > i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--lila-3); color: var(--ungu); font-size: 14px; }
.lay-card h4 small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-top: 1px; }
.lay-card .chart { margin-bottom: 10px; }
.lay-rows .kbar-row, #mhLay .kbar-row { border-radius: 12px; padding: 4px 6px; margin: 0 -6px 6px; cursor: pointer; }
@media (hover: hover) { .lay-rows .kbar-row:hover, #mhLay .kbar-row:hover { background: var(--soft); } }
.lay-rows .kbar-row:focus-visible, #mhLay .kbar-row:focus-visible { outline: 2px solid var(--ungu); outline-offset: 1px; }
.lay-rows .kbar-top b, #mhLay .kbar-top b { flex-shrink: 0; display: inline-flex; align-items: center; white-space: nowrap; }
.kbar-top b .ly-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 8px; background: #F4F5FA; }
.kbar-top b .ly-ic i { margin: 0; font-size: 11.5px; color: var(--ly); }
.kbar-top { min-width: 0; }
.kbar-top span { text-align: right; }
#mhLayWrap { margin: 0 0 14px; }
#mhLay { padding: 12px 14px 10px; }
#mhLay .lay-lg { margin-top: 4px; }
/* riwayat analisa */
.view-title #hKembali { flex-shrink: 0; }
.seg-h .pdk { display: none; }
@media (max-width: 420px) { .seg-h button { font-size: 12.5px; gap: 5px; } }
@media (max-width: 380px) { .seg-h button i { display: none; } .seg-h .pjg { display: none; } .seg-h .pdk { display: inline; } }
