/* Shell aplikasi inAPP: bar atas putih, menu samping, tombol + mengambang.
   Mobile first. Tampilan modul (rapat, admin, dan lainnya) mengisi area .view. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: #F6F8FC; color: #1F1F1F;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; }

/* Pemberitahuan offline (tidak menempel, agar tidak menutupi bar atas) */
.offline { background: #FFF4E5; color: #7A4B00; font-size: 13px; padding: 8px 16px; text-align: center; }

/* Bar atas */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  min-height: 56px; padding: env(safe-area-inset-top) 8px 0;
  background: #fff; box-shadow: 0 1px 0 #E0E3EB;
}
.topbar h1 {
  flex: 1; margin: 0 4px; font-size: 20px; font-weight: 500; color: #1F1F1F;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; padding: 0;
  display: grid; place-items: center; cursor: pointer; color: #444746;
}
.icon-btn:hover, .icon-btn:focus-visible { background: #F1F3F4; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.avatar.has-photo, .prof-av.has-photo { background-size: cover; background-position: center; color: transparent; }
.avatar {
  width: 36px; height: 36px; margin-right: 4px; border: 0; border-radius: 50%;
  background: #1F3A6E; color: #fff; font-weight: 600; cursor: pointer;
}

/* Menu samping (mobile: geser dari kiri; desktop: tetap terlihat) */
.scrim { position: fixed; inset: 0; background: rgba(32, 33, 36, .4); z-index: 25; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 30;
  width: 280px; max-width: 84vw; background: #fff;
  display: flex; flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-100%); transition: transform .2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.drawer.open { transform: none; }
.brand { font-size: 18px; font-weight: 600; color: #1F3A6E; padding: 8px 24px 16px; }
.brand-btn { display: block; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
/* Menu fitur: kisi ikon seperti layar aplikasi Android */
.nav-list {
  list-style: none; margin: 0; padding: 4px 12px; flex: 1; overflow: auto; align-content: start;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 4px;
}
.app-tile {
  width: 100%; border: 0; background: none; padding: 6px 2px; border-radius: 16px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: #202124;
}
.app-tile:hover, .app-tile:focus-visible { background: #F1F3F4; }
.app-tile.active { background: #E8EEF9; }
.app-ico {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.app-ico svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.app-name {
  font-size: 12px; line-height: 1.25; text-align: center; max-width: 84px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-tile.active .app-name { font-weight: 600; color: #1F3A6E; }
/* Beranda bersih */
.home { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.home-logo { width: 88px; height: 88px; border-radius: 22px; opacity: .9; }
.home-hint { color: #5F6368; font-size: 14px; }
.nav-item {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 0 24px 24px 0; background: none; color: #202124;
  font-size: 14px; text-align: left; cursor: pointer;
}
.nav-item:hover { background: #F1F3F4; }
.nav-item.active { background: #DDE6F5; color: #1F3A6E; font-weight: 600; }
.nav-ico { display: inline-flex; width: 22px; height: 22px; flex: none; }
.nav-ico svg.ico-fill { fill: currentColor; stroke: none; }
.nav-ico svg, .fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawer-foot { border-top: 1px solid #E0E3EB; padding: 10px 16px 4px; display: flex; justify-content: center; gap: 8px; }
.drawer-foot .nav-item { width: 48px; height: 48px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; color: #444746; }
.drawer-foot .nav-item .nav-ico { width: 24px; height: 24px; }
.drawer-foot .nav-item svg { width: 24px; height: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Area modul */
.view { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(110px + env(safe-area-inset-bottom)); }

/* Bar bawah dengan tombol Scan di tengah (seperti QRIS) */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 18;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  height: calc(64px + env(safe-area-inset-bottom)); padding: 0 12px env(safe-area-inset-bottom);
  background: #fff; box-shadow: 0 -1px 0 #E0E3EB, 0 -4px 12px rgba(0, 0, 0, .04);
}
.tab {
  height: 64px; border: 0; background: none; cursor: pointer; color: #5F6368;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px;
}
.tab svg { width: 24px; height: 24px; fill: currentColor; }
.tab.active { color: #1F3A6E; font-weight: 600; }
.tab-scan {
  width: 88px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 8px; gap: 4px; color: #1F3A6E; font-size: 12px; font-weight: 600; text-decoration: none;
}
.scan-circle {
  width: 64px; height: 64px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #C8202F, #9E1622); color: #fff;
  border: 4px solid #fff; box-shadow: 0 4px 12px rgba(200, 32, 47, .35);
}
.scan-circle svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scan-circle .scan-line { stroke: #FFE08A; }
.tab-scan:active .scan-circle { transform: scale(.95); }
.card { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(60, 64, 67, .12); }
.card h2 { margin: 0 0 10px; font-size: 18px; font-weight: 500; color: #1F3A6E; }
.field { display: block; margin: 12px 0; }
.field span { display: block; font-size: 13px; color: #444746; margin-bottom: 4px; }
.field input, .field select { width: 100%; padding: 12px; font-size: 16px; border: 1px solid #C4C7C5; border-radius: 8px; background: #fff; }
.pri {
  width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 24px;
  background: #1F3A6E; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.ghost {
  min-height: 36px; padding: 0 14px; border: 1px solid #747775; border-radius: 18px;
  background: #fff; color: #1F3A6E; font-size: 13px; cursor: pointer;
}
.err { color: #B3261E; font-size: 14px; min-height: 20px; margin-top: 8px; }
.urow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #E8EAED; flex-wrap: wrap; }
.umeta { display: block; font-size: 13px; color: #5F6368; }
.uact { display: flex; gap: 6px; flex-wrap: wrap; }

/* Tombol tambah (mengambang) */
.fab {
  position: fixed; z-index: 15;
  right: calc(16px + env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border: 0; border-radius: 16px;
  background: #1F3A6E; color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
  display: grid; place-items: center; cursor: pointer;
}

/* Notifikasi singkat */
.app-toast {
  position: fixed; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 50; max-width: 90vw; padding: 12px 18px; border-radius: 8px;
  background: #323232; color: #fff; font-size: 14px;
}

/* Dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(92vw, 440px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
dialog::backdrop { background: rgba(32, 33, 36, .45); }
.dlg { padding: 20px; }
.dlg h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: #1F3A6E; }
.dlg h3 { margin: 14px 0 2px; font-size: 14px; color: #1F1F1F; }
.dlg p, .dlg li { font-size: 14px; color: #444746; line-height: 1.55; }
.dlg ol { margin: 4px 0 0; padding-left: 20px; }

/* Halaman masuk */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.login .card { width: 100%; max-width: 380px; }
.login .brand { padding: 0 0 12px; text-align: center; }

/* Layar lebar: menu samping selalu terlihat */
@media (min-width: 960px) {
  .drawer { transform: none; box-shadow: none; border-right: 1px solid #E0E3EB; padding-top: 72px; }
  .scrim { display: none !important; }
  #menuBtn { display: none; }
  #shell .topbar { padding-left: 296px; }
  .view { margin-left: 280px; margin-right: auto; }
  .fab { right: 32px; }
  .bottombar { left: 280px; }
}

/* Profil: data akun, Tanda tangan saya, Tanda tangani PDF */
.prof-head { flex-direction: row; display: flex; align-items: center; gap: 14px; }
.prof-head b { font-size: 17px; }
.prof-photo { position: relative; flex: none; width: 64px; height: 64px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.prof-photo .prof-av { width: 64px; height: 64px; font-size: 26px; }
.prof-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #1F3A6E; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.prof-cam svg { width: 16px; height: 16px; fill: currentColor; }
.prof-photo-act { display: flex; gap: 14px; margin-top: 4px; }
.prof-photo-act button { border: 0; background: none; padding: 0; color: #1F3A6E; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.prof-photo-act button.del { color: #B3261E; }
.prof-av { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #1F3A6E; color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 600; }
.grow { flex: 1; min-width: 0; }
.sig-box { position: relative; background: #fff; border: 1.5px solid #CFD6E2; border-radius: 12px; min-height: 140px; display: flex; align-items: center; justify-content: center; padding: 10px; margin: 6px 0 10px; }
.sig-box img { max-width: 100%; max-height: 150px; }
.sig-box.pad { height: 180px; padding: 0; border-style: dashed; border-color: #9AA6B8; }
.sig-pad { width: 100%; height: 100%; touch-action: none; cursor: crosshair; display: block; }
.sig-hint { position: absolute; left: 12px; bottom: 8px; font-size: 12px; color: #9AA0A6; pointer-events: none; }
.prof-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prof-row .ghost, .prof-file, .prof-cancel, .prof-out { min-height: 44px; border-radius: 22px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.prof-file { cursor: pointer; border: 1px solid #747775; background: #fff; color: #1F3A6E; }
.prof-del { color: #B3261E; border-color: #F0C4C9; }
.prof-cancel { width: 100%; margin-top: 8px; }
.prof-link { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.prof-link .app-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.prof-link .app-ico svg { width: 26px; height: 26px; }
.prof-out { width: 100%; margin-top: 4px; color: #B3261E; border-color: #F0C4C9; }
.pri:disabled { opacity: .5; cursor: default; }

/* Ajakan pasang aplikasi (tampil selama belum terpasang) */
.install-bar {
  position: fixed; z-index: 19; left: 12px; right: 12px; bottom: calc(108px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px;
  background: #1F3A6E; color: #fff; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  max-width: 560px; margin: 0 auto;
}
body:has(#shell[hidden]) .install-bar { bottom: calc(16px + env(safe-area-inset-bottom)); }
.install-ico { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-txt b { font-size: 14px; }
.install-txt span { font-size: 12px; opacity: .85; line-height: 1.35; }
.install-go { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #fff; color: #1F3A6E; font-weight: 700; font-size: 13px; cursor: pointer; }
.install-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
@media (min-width: 960px) { #shell:not([hidden]) ~ .install-bar { left: 292px; } }

/* Pilihan perusahaan MSM / MDM (satu akun bisa bekerja untuk keduanya) */
.co-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 16px 14px; padding: 4px; background: #EEF1F6; border-radius: 14px; }
.co-switch button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: #5F6368; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .5px; cursor: pointer; }
.co-switch button[aria-checked="true"][data-co="MSM"] { background: #C8202F; color: #fff; box-shadow: 0 2px 6px rgba(200, 32, 47, .3); }
.co-switch button[aria-checked="true"][data-co="MDM"] { background: #1F3A6E; color: #fff; box-shadow: 0 2px 6px rgba(31, 58, 110, .3); }
.co-chip { flex: none; min-height: 28px; padding: 0 10px; margin-right: 6px; border: 0; border-radius: 14px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .5px; cursor: pointer; }
.co-chip.co-msm { background: #FDE7E9; color: #9E1622; }
.co-chip.co-mdm { background: #E3EDFB; color: #1F3A6E; }

/* Angka belum dibaca */
.app-ico { position: relative; }
.app-badge { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #D93025; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; border: 2px solid #fff; }
#menuBtn { position: relative; }
#menuBtn.has-badge::after { content: ''; position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: #D93025; border: 2px solid #fff; }

/* Chat */
.chat-new { margin: 0 0 12px; }
.chat-list { padding: 4px 0; }
.chat-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.chat-row + .chat-row { border-top: 1px solid #EEF0F3; }
.chat-row:hover { background: #F6F8FC; }
.chat-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-av { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #1E8E5A; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.chat-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-top small { color: #5F6368; font-size: 12px; flex: none; }
.chat-last { display: flex; gap: 8px; align-items: center; color: #5F6368; font-size: 13px; }
.chat-last .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat-row.unread b, .chat-row.unread .chat-last { color: #1F1F1F; font-weight: 600; }
.chat-row.unread .chat-top small { color: #1E8E5A; font-weight: 700; }
.chat-unread { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #1E8E5A; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.chat-empty { padding: 18px 16px; color: #5F6368; font-size: 14px; text-align: center; }
.chat-search { width: 100%; padding: 12px 14px; margin-bottom: 10px; font-size: 16px; border: 1px solid #C4C7C5; border-radius: 24px; background: #fff; }
.chat-back { border: 0; background: none; padding: 4px 0 10px; color: #1F3A6E; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chat-msgs { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.chat-day { align-self: center; margin: 8px 0 4px; padding: 3px 10px; border-radius: 10px; background: #E8EAED; color: #444746; font-size: 12px; }
.bubble { max-width: 80%; align-self: flex-start; padding: 8px 12px 6px; border-radius: 4px 16px 16px 16px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 2px; }
.bubble.mine { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: #DCF3E6; }
.bubble .btxt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.bubble small { align-self: flex-end; color: #5F6368; font-size: 11px; }
/* Saat percakapan terbuka: kotak ketik menggantikan bar bawah */
body.chat-open .bottombar, body.chat-open .install-bar { display: none; }
body.chat-open .view { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.chat-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #F6F8FC; border-top: 1px solid #E0E3EB; }
.chat-bar textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 16px; border: 1px solid #C4C7C5; border-radius: 22px; font: inherit; font-size: 16px; resize: none; background: #fff; }
.chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #1E8E5A; color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send svg { width: 22px; height: 22px; fill: currentColor; }
.chat-send:disabled { opacity: .5; }
@media (min-width: 960px) { .chat-bar { left: 280px; } }

/* Hapus pesan / chat */
.chat-head { display: flex; justify-content: space-between; align-items: center; }
.chat-clear { border: 0; background: none; padding: 4px 0 10px; color: #B3261E; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bubble.mine { cursor: pointer; }
.bubble.deleted { background: #F1F3F4; cursor: default; }
.bubble.deleted .btxt { font-style: italic; color: #5F6368; font-size: 14px; }
.bdel { display: none; align-self: flex-end; margin-top: 4px; padding: 4px 10px; border: 1px solid #F0C4C9; border-radius: 12px; background: #fff; color: #B3261E; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.bubble.sel .bdel { display: inline-block; }
.bubble.sel { box-shadow: 0 0 0 2px #1E8E5A; }

/* Halaman masuk: pindah ke Daftar */
.link-switch { display: block; width: 100%; margin-top: 14px; border: 0; background: none; color: #444746; font: inherit; font-size: 14px; cursor: pointer; }
.link-switch b { color: #1F3A6E; }
.reg-title { margin: 0 0 4px; font-size: 18px; font-weight: 500; color: #1F3A6E; text-align: center; }

/* Radio */
.radio-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 10px; background: #EEF1F6; border-radius: 14px; }
.radio-tabs button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: #5F6368; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.radio-tabs button[aria-selected="true"] { background: #fff; color: #E8710A; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.radio-list { padding: 4px 0; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; cursor: pointer; }
.radio-row + .radio-row { border-top: 1px solid #EEF0F3; }
.radio-row:hover { background: #F6F8FC; }
.radio-row.on { background: #FFF3E8; }
.radio-row.on b { color: #B85600; }
.radio-row .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.radio-row .grow b, .radio-row .chat-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.rb-logo { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #E8710A; color: #fff; display: grid; place-items: center; overflow: hidden; }
.rb-logo.big { width: 48px; height: 48px; border-radius: 12px; }
.rb-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.rb-logo svg { width: 60%; height: 60%; fill: currentColor; }
.radio-fav { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: #C4C7C5; display: grid; place-items: center; cursor: pointer; }
.radio-fav svg { width: 24px; height: 24px; fill: currentColor; }
.radio-fav.on { color: #F9AB00; }
/* Pemutar mini: di atas bar bawah, tetap tampil di semua menu */
.radio-bar { position: fixed; z-index: 19; left: 8px; right: 8px; bottom: calc(104px + env(safe-area-inset-bottom)); max-width: 600px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 14px; background: #2B2D31; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.radio-bar[hidden] { display: none; }
.rb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0; }
.rb-info b, .rb-info small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-info b { font-size: 14px; }
.rb-info small { font-size: 12px; opacity: .75; }
.rb-btn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #E8710A; color: #fff; display: grid; place-items: center; cursor: pointer; }
.rb-btn.ghosty { background: transparent; width: 36px; height: 36px; opacity: .8; }
.rb-btn svg { width: 24px; height: 24px; fill: currentColor; }
.rb-btn.ghosty svg { width: 20px; height: 20px; }
body.radio-on .view { padding-bottom: calc(200px + env(safe-area-inset-bottom)); }
body.radio-on .app-toast { bottom: calc(176px + env(safe-area-inset-bottom)); }
body.radio-on .install-bar { bottom: calc(178px + env(safe-area-inset-bottom)); }
body.chat-open .radio-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
body.chat-open.radio-on .view { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
body:has(#shell[hidden]) .radio-bar { display: none; }
@media (min-width: 960px) { .radio-bar { left: 292px; } }

/* Pemutar radio diperkecil: tombol bulat di pojok kanan */
.radio-dot { position: fixed; z-index: 19; left: 14px; bottom: calc(108px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%;
  background: #E8710A; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); cursor: grab; padding: 0;
  touch-action: none; user-select: none; -webkit-user-select: none; transition: left .22s ease, top .22s ease; }
.radio-dot.dragging { transition: none; cursor: grabbing; transform: scale(1.1); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.radio-dot[hidden] { display: none; }
.radio-dot > svg { width: 24px; height: 24px; fill: currentColor; }
.radio-dot.error { background: #80868B; }
.rd-eq { position: absolute; right: -4px; top: -4px; display: none; gap: 2px; align-items: flex-end; height: 16px; padding: 3px 4px; border-radius: 8px; background: #2B2D31; }
.rd-eq i { width: 3px; height: 4px; background: #FDBA74; border-radius: 1px; animation: rdEq 0.9s ease-in-out infinite; }
.rd-eq i:nth-child(2) { animation-delay: .2s; } .rd-eq i:nth-child(3) { animation-delay: .4s; }
.radio-dot.playing .rd-eq { display: flex; }
@keyframes rdEq { 0%, 100% { height: 4px; } 50% { height: 10px; } }
@media (prefers-reduced-motion: reduce) { .rd-eq i { animation: none; height: 8px; } }
body.chat-open .radio-dot { bottom: calc(76px + env(safe-area-inset-bottom)); }
body:has(#shell[hidden]) .radio-dot { display: none; }

/* ---------- Halaman masuk: bersih, lembut, enak dipandang ---------- */
.login {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: calc(32px + env(safe-area-inset-top)) 20px calc(110px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% -10%, #DCE6F7 0%, rgba(220, 230, 247, 0) 70%),
    linear-gradient(180deg, #F3F6FC 0%, #F8F9FC 55%, #FBF7F7 100%);
}
.login-deco { position: absolute; inset: 0; pointer-events: none; }
.login-deco i { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55; }
.login-deco .b1 { width: 300px; height: 300px; left: -110px; top: -70px; background: #9DB7E6; }
.login-deco .b2 { width: 240px; height: 240px; right: -90px; top: 32%; background: #F6B3B9; opacity: .45; }
.login-deco .b3 { width: 260px; height: 260px; left: 10%; bottom: -120px; background: #BFD1F2; opacity: .5; }
.login-hero, .login .card, .login-foot { position: relative; }
.login-hero { text-align: center; animation: loginIn .5s ease both; }
.login-logo { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 10px 24px rgba(31, 58, 110, .28); }
.login-name { margin: 12px 0 2px; font-size: 28px; font-weight: 700; letter-spacing: .3px; color: #1F3A6E; }
.login-tag { margin: 0; font-size: 14px; color: #5F6B7E; }
.login .card {
  width: 100%; max-width: 380px; margin: 0; padding: 22px 22px 18px; border-radius: 24px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px rgba(31, 58, 110, .10), 0 2px 6px rgba(31, 58, 110, .06);
  animation: loginIn .5s .08s ease both;
}
.login .field { margin: 14px 0; }
.login .field span { font-size: 13px; font-weight: 600; color: #3C4858; margin-bottom: 6px; }
.login .field input {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid #E1E6EF; background: #F6F8FC;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.login .field input::placeholder { color: #A0A8B5; }
.login .field input:focus { outline: none; border-color: #1F3A6E; background: #fff; box-shadow: 0 0 0 4px rgba(31, 58, 110, .12); }
.login .pri {
  height: 52px; margin-top: 8px; border-radius: 16px; font-size: 16px; letter-spacing: .2px;
  background: linear-gradient(135deg, #2A4E8F, #1F3A6E); box-shadow: 0 8px 18px rgba(31, 58, 110, .28);
}
.login .pri:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(31, 58, 110, .25); }
.login .err { text-align: center; }
.login .link-switch { margin-top: 6px; padding: 8px; }
.login .reg-title { margin: 2px 0 2px; font-size: 20px; font-weight: 700; }
.reg-sub { margin: 0 0 4px; text-align: center; font-size: 13px; color: #5F6B7E; }
.login-foot { margin: 0; font-size: 12px; color: #8A93A3; text-align: center; animation: loginIn .5s .16s ease both; }
@keyframes loginIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .login-hero, .login .card, .login-foot { animation: none; } }
@media (max-height: 640px) { .login { justify-content: flex-start; } .login-tag { display: none; } }

/* Chat: foto profil, judul percakapan, ajakan notifikasi */
.chat-av.has-photo { background-size: cover; background-position: center; color: transparent; }
.chat-av.sm { width: 34px; height: 34px; font-size: 15px; }
.chat-head { gap: 8px; }
.chat-head .chat-back { padding: 4px 10px 10px 0; font-size: 24px; line-height: 1; }
.chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.chat-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.notif-card { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: #FFF8E1; border: 1px solid #FDE7A6; color: #5C4400; font-size: 13px; line-height: 1.4; }
.notif-ico { font-size: 20px; }
.notif-on { flex: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #1F3A6E; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

.prof-notif { display: flex; align-items: center; gap: 12px; }
.prof-notif .grow { display: flex; flex-direction: column; gap: 2px; }
.prof-notif .ghost, .prof-notif .pri.sm { flex: none; width: auto; min-height: 40px; padding: 0 16px; border-radius: 20px; font-size: 14px; margin: 0; }

/* Tombol Chat melayang (Beranda), di atas tab Akun */
.chat-fab {
  position: fixed; z-index: 16; right: calc(16px + env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: linear-gradient(145deg, #27A86B, #1E8E5A); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(30, 142, 90, .38), 0 2px 4px rgba(0, 0, 0, .12);
  transition: transform .15s ease;
}
.chat-fab[hidden] { display: none; }
.chat-fab:active { transform: scale(.94); }
.chat-fab svg { width: 28px; height: 28px; fill: currentColor; }
.chat-fab-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #D93025; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.chat-fab-badge[hidden] { display: none; }
body.radio-on .chat-fab { bottom: calc(180px + env(safe-area-inset-bottom)); }
body:has(#shell[hidden]) .chat-fab { display: none; }
@media (min-width: 960px) { .chat-fab { right: 32px; } }
/* jangan tertutup banner "Pasang inAPP" */
body:has(#installBar:not([hidden])) .chat-fab { bottom: calc(206px + env(safe-area-inset-bottom)); }
body.radio-on:has(#installBar:not([hidden])) .chat-fab { bottom: calc(276px + env(safe-area-inset-bottom)); }

/* Chat: status kirim */
.bubble small.bfail { color: #B3261E; }
.bretry { align-self: flex-end; margin-top: 4px; padding: 4px 10px; border: 1px solid #F0C4C9; border-radius: 12px; background: #fff; color: #B3261E; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }

/* Before/After: lampiran foto 1 halaman (maks. 6 foto) */
.ba-head .field { margin: 10px 0; }
.ba-head .field input { width: 100%; }
.ba-head .field input:disabled { background: #F1F3F4; color: #444746; }
.ba-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-fit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; color: #444746; }
.ba-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; background: #EEF1F6; border-radius: 12px; }
.ba-seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #5F6368; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ba-seg button[aria-checked="true"] { background: #fff; color: #0B8A8A; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ba-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 8px 28px; }
.ba-cols span { text-align: center; padding: 5px 0; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.ba-cols .b { background: #C7212E; } .ba-cols .a { background: #1E8E5A; }
.ba-row { display: grid; grid-template-columns: 20px 1fr; gap: 6px 8px; margin-bottom: 14px; }
.ba-no { grid-row: 1 / span 2; align-self: start; margin-top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #1F3A6E; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-slot { position: relative; aspect-ratio: 4 / 3; border: 2px dashed #B9C1CE; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; overflow: hidden; color: #5F6368; }
.ba-slot:focus-visible { outline: 3px solid rgba(11, 138, 138, .4); }
.ba-slot.has { border: 1px solid #DADCE0; background: #F6F8FC; }
.ba-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-slot.busy::after { content: 'Memproses…'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.85); font-size: 12px; }
.ba-plus { font-size: 28px; line-height: 1; color: #0B8A8A; }
.ba-lbl { font-size: 12px; font-weight: 600; }
.ba-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(32, 33, 36, .7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ba-kets { grid-column: 2; }
.ba-ket { width: 100%; min-height: 52px; padding: 8px 10px; font: inherit; font-size: 13px; line-height: 1.35; border: 1px solid #DADCE0; border-radius: 10px; background: #fff; resize: none; }
.ba-cap { position: absolute; left: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 9px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ba-cap[hidden] { display: none; }
.ba-count { margin: 4px 0 12px; font-size: 12px; color: #5F6368; text-align: center; }
.ba-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.ba-actions .pri, .ba-actions .ghost { margin: 0; min-height: 48px; }
.ba-actions .ghost[hidden] { display: none; }
.ba-actions:has(.ghost[hidden]) { grid-template-columns: 1fr; }
.ba-reset { display: block; margin: 14px auto 0; border: 0; background: none; color: #B3261E; font: inherit; font-size: 13px; cursor: pointer; }

/* Kwitansi */
.kw-card .field input, .kw-card .field textarea { width: 100%; }
.kw-card textarea { padding: 10px 12px; font: inherit; font-size: 15px; border: 1px solid #C4C7C5; border-radius: 8px; resize: vertical; }
.kw-co { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5F6368; margin-bottom: 4px; }
.kw-terb { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #FFF4E5; color: #7A4100; font-size: 13px; font-style: italic; line-height: 1.4; }
.kw-sig { margin-top: 6px; }
.kw-sl { display: block; font-size: 13px; color: #444746; margin-bottom: 4px; }
.kw-sb { width: 100%; min-height: 40px; border-radius: 20px; }
.kw-mine { width: 100%; margin-top: 8px; }
.kw-met { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.kw-met input { width: 20px; height: 20px; }
.kw-hint { margin-top: 4px; font-size: 12px; color: #5F6368; line-height: 1.4; }

/* Profil: stempel MSM & MDM */
.stamp-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #EEF0F3; }
.stamp-box { width: 88px; height: 88px; flex: none; border-radius: 10px; border: 1px solid #DADCE0; display: grid; place-items: center;
  background: repeating-conic-gradient(#F1F3F4 0% 25%, #fff 0% 50%) 0 0 / 12px 12px; }
.stamp-box img { max-width: 80px; max-height: 80px; }
.stamp-act { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stamp-act .ghost { min-height: 38px; border-radius: 19px; font-size: 13px; }
.stamp-add { flex: 1; min-height: 64px; border: 2px dashed #B9C1CE; border-radius: 12px; background: #fff; color: #1F3A6E; font: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }

.stamp-lock { flex: 1; font-size: 13px; color: #5F6368; line-height: 1.4; }

/* Kelola user: izin fitur */
.uperm { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.uperm .perm { min-height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid #C9CED6; background: #fff; color: #5F6368; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.uperm .perm.on { background: #E8F0FE; border-color: #1F3A6E; color: #1F3A6E; }

/* Aplikasi UJI */
.uji-band { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #C8202F; color: #fff; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 0 calc(3px + env(safe-area-inset-bottom)); pointer-events: none; }
html.mode-uji .bottombar { bottom: 20px; }

/* ---------- Audit Internal ---------- */
.au { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.au-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; border: 1px solid #C9CED6; background: #fff; color: #1F3A6E; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.au-btn.pri { background: #0B6E4F; border-color: #0B6E4F; color: #fff; }
.au-btn.navy { background: #1F3A6E; border-color: #1F3A6E; color: #fff; }
.au-btn.wa { background: #1E8E4A; border-color: #1E8E4A; color: #fff; }
.au-btn.ghost { background: #fff; }
.au-btn.sm { min-height: 40px; font-size: 14px; }
.au-btn:disabled { opacity: .5; }
.au-new span { font-size: 20px; line-height: 1; }
.au-link { background: none; border: 0; color: #1F3A6E; font: inherit; font-size: 13px; font-weight: 600; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.au-link.danger { color: #C62828; align-self: center; }
.au-card, .au-item, .au-step, .au-sec { background: #fff; border: 1px solid #E3E6EA; border-radius: 14px; padding: 12px 14px; }
.au-item { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.au-item .t, .au-card .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.au .m { font-size: 13px; color: #5F6368; }
.au .nc { color: #C62828; font-weight: 700; }
.au-st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: #EEF0F3; color: #5F6368; white-space: nowrap; }
.au-st.st-berjalan { background: #FFF4D6; color: #8A5A00; }
.au-st.st-selesai { background: #E3F4EA; color: #1E7A45; }
.au-bar { height: 6px; background: #EEF0F3; border-radius: 3px; overflow: hidden; }
.au-bar i { display: block; height: 100%; background: #0B6E4F; border-radius: 3px; }
.au-empty { text-align: center; color: #5F6368; font-size: 14px; padding: 24px 12px; display: flex; flex-direction: column; gap: 6px; }
.au-empty b { color: #14264A; font-size: 15px; }
.au-note { font-size: 13px; color: #3C4A5E; background: #F3F6FB; border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.au-note.ok { background: #E3F4EA; color: #1E5E3A; }
.au-note.warn { background: #FDECEC; color: #8E1C1C; }
.au-sync { font-size: 11px; color: #1E7A45; margin-top: 4px; }
.au-sync.wait { color: #8A5A00; }
.au-sync:empty { display: none; }
.au-head .m { margin-top: 2px; }
.au-step, .au-sec { display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.au-step .n, .au-sec .n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #EEF0F3; color: #5F6368; }
.au-step .n.s-run { background: #FFF4D6; color: #8A5A00; }
.au-step .n.s-done, .au-sec .n.ok { background: #0B6E4F; color: #fff; }
.au-step .w, .au-sec .w { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-step small, .au-sec small { font-size: 12px; color: #5F6368; }
.au-step .c, .au-sec .c { color: #9AA4B5; font-size: 20px; }
.au-step.lock { opacity: .55; cursor: default; }
.au-step.lock .c { font-size: 11px; font-weight: 700; }
.au-form { gap: 12px; }
.au-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #3C4A5E; }
.au-f > span { display: flex; justify-content: space-between; align-items: center; }
.au-f input { min-height: 46px; border: 1px solid #C9CED6; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 400; color: #14264A; background: #fff; }
.au-f small { font-weight: 400; color: #7A8394; }
.au-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.au-seg { display: flex; gap: 8px; }
.au-seg button { flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid #C9CED6; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #5F6368; cursor: pointer; }
.au-seg button[aria-pressed=true] { background: #E6F2EC; border-color: #0B6E4F; color: #0B6E4F; }
.au-err { color: #C62828; font-size: 13px; min-height: 1em; }
.au-err:empty { display: none; }
.au-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.au-qr #qr { width: 220px; height: 220px; }
.au-qr #qr svg { width: 100%; height: 100%; }
.au-qr .au-g2 { width: 100%; }
.au-rh { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.au-rh span { font-size: 13px; color: #5F6368; }
.au-list { background: #fff; border: 1px solid #E3E6EA; border-radius: 14px; overflow: hidden; }
.au-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid #EEF0F3; }
.au-row:first-child { border-top: 0; }
.au-row .no { width: 22px; color: #9AA4B5; font-size: 13px; text-align: right; }
.au-row .w { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.au-row small { font-size: 12px; color: #5F6368; }
.au-row .t { font-size: 12px; color: #5F6368; white-space: nowrap; }
.au-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #FDECEC; color: #C62828; font-size: 18px; cursor: pointer; }
.au-pad { position: relative; height: 170px; background: #fff; border: 1px dashed #8C96A8; border-radius: 10px; touch-action: none; }
.au-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 10px; touch-action: none; }
.au-pad .base { position: absolute; left: 16px; right: 16px; bottom: 26px; border-bottom: 1px solid #C9CED6; pointer-events: none; }
.au-pad .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #7A8394; font-size: 14px; font-weight: 400; pointer-events: none; }
.au-q { min-height: calc(100vh - 190px); }
.au-qtop { display: flex; justify-content: space-between; font-size: 13px; color: #5F6368; }
.au-qtop .au-sync { margin: 0; }
.au-qno { font-size: 14px; font-weight: 700; color: #0B6E4F; margin-top: 6px; }
.au-qid { font-size: 19px; font-weight: 600; line-height: 1.4; color: #14264A; margin: 0; }
.au-qen { font-size: 14px; font-style: italic; color: #5F6368; line-height: 1.4; margin: 0; }
.au-qref { font-size: 12px; color: #7A8394; }
.au-ans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 8px; }
.au-ans button { min-height: 64px; border-radius: 14px; border: 2px solid #C9CED6; background: #fff; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.au-ans .a-Y { color: #1E7A45; } .au-ans .a-N { color: #C62828; } .au-ans .a-NA { color: #5F6368; }
.au-ans .a-Y.on { background: #1E7A45; border-color: #1E7A45; color: #fff; }
.au-ans .a-N.on { background: #C62828; border-color: #C62828; color: #fff; }
.au-ans .a-NA.on { background: #5F6368; border-color: #5F6368; color: #fff; }
.au-qnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.au { padding-bottom: 96px; }
.au-g2 > * { min-width: 0; }
.au-f input { width: 100%; min-width: 0; box-sizing: border-box; }
/* Contoh hasil PDF */
.cth-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; border-radius: 12px; border: 1px dashed #8C96A8; background: #F7F9FC; color: #1F3A6E; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cth-btn svg { width: 20px; height: 20px; fill: currentColor; }
body.cth-open { overflow: hidden; }
.cth { position: fixed; inset: 0; z-index: 10000; background: #3C4350; display: flex; flex-direction: column; }
.cth-bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: #14264A; color: #fff; }
.cth-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cth-t b { font-size: 16px; } .cth-t span { font-size: 12px; opacity: .8; }
.cth-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; cursor: pointer; }
.cth-note { background: #FFF4D6; color: #6B4700; font-size: 12px; padding: 8px 14px; line-height: 1.4; }
.cth-pages { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; -webkit-overflow-scrolling: touch; }
.cth-pages figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cth-pages canvas { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); max-width: 100%; height: auto; }
.cth-pages figcaption { color: #D5DAE3; font-size: 11px; }
.cth-load { color: #fff; margin-top: 40px; font-size: 14px; text-align: center; }
.cth-foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #14264A; }
.cth-dl { width: 100%; min-height: 46px; border-radius: 12px; border: 0; background: #fff; color: #14264A; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cth-dl:disabled { opacity: .5; }
/* Audit Internal tahap 2 */
.au-f textarea { width: 100%; box-sizing: border-box; border: 1px solid #C9CED6; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 400; color: #14264A; resize: vertical; }
.au-g2 input { width: 100%; box-sizing: border-box; min-height: 46px; border: 1px solid #C9CED6; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; color: #14264A; }
.au-ncbox { display: flex; align-items: center; gap: 10px; background: #FDECEC; border-radius: 12px; padding: 10px 12px; }
.au-ncbox > div { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #8E1C1C; }
.au-ncbox small { font-size: 12px; color: #6B2A2A; line-height: 1.35; }
.au-ncbox .au-btn { flex: none; padding: 0 14px; }
.au-cat { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 4px; }
.au-cat.c-Major { background: #C62828; color: #fff; } .au-cat.c-Minor { background: #FFE2E2; color: #A61B1B; } .au-cat.c-Obs { background: #FFF4D6; color: #8A5A00; }
.au-nc { display: flex; flex-direction: column; gap: 5px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid #E3E6EA; border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.au-nc .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.au-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.au-flag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #EEF0F3; color: #7A8394; }
.au-flag.ok { background: #E3F4EA; color: #1E7A45; font-weight: 600; }
.au-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.au-ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EEF0F3; border: 1px solid #E3E6EA; }
.au-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-ph .au-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; font-size: 16px; }
.au-ph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed #B9C1CE; background: #fff; color: #1F3A6E; font: inherit; cursor: pointer; }
.au-ph.add span { font-size: 24px; line-height: 1; } .au-ph.add small { font-size: 12px; font-weight: 600; }
.au-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.au-chips button { min-height: 34px; padding: 0 10px; border-radius: 17px; border: 1px solid #C9CED6; background: #fff; font: inherit; font-size: 12px; font-weight: 600; color: #1F3A6E; cursor: pointer; }
.au-cap { border: 1px solid #E3E6EA; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #FAFBFC; }
.au-cap .hd { display: flex; justify-content: space-between; align-items: center; }
.au-cap .hd b { width: 24px; height: 24px; border-radius: 50%; background: #1F3A6E; color: #fff; display: grid; place-items: center; font-size: 12px; }
.au-sigrow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E3E6EA; border-radius: 12px; padding: 10px 12px; }
.au-sigrow > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.au-sigrow small { font-size: 12px; color: #5F6368; }
.au-sigrow .au-btn { padding: 0 16px; flex: none; }
.au-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.au-stats > div { background: #F3F6FB; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.au-stats small { font-size: 11px; color: #5F6368; } .au-stats b { font-size: 20px; }
/* Audit Internal tahap 3 */
.au-ncst { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.au-follow { font-size: 13px; font-weight: 700; color: #0B6E4F; padding: 6px 0 2px 10px; }
.au-st2 { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.au-st2.s-open { background: #E8F0FE; color: #1F3A6E; } .au-st2.s-late { background: #C62828; color: #fff; }
.au-st2.s-verif { background: #FFF4D6; color: #8A5A00; } .au-st2.s-close { background: #E3F4EA; color: #1E7A45; }
.au-ca { background: #fff; border: 1px solid #E3E6EA; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.au-ca .t { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.au-ca .t b { font-size: 14px; line-height: 1.35; }
.au-st3 { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; background: #EEF0F3; color: #5F6368; }
.au-st3.c-sent { background: #E8F0FE; color: #1F3A6E; } .au-st3.c-review { background: #FFF4D6; color: #8A5A00; }
.au-st3.c-back { background: #FDECEC; color: #A61B1B; } .au-st3.c-done { background: #E3F4EA; color: #1E7A45; }
.au-ev { background: #F7F9FC; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.au-fotos.sm { grid-template-columns: repeat(4, 1fr); }
.au-chips2 { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.au-chips2 button { flex: none; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid #C9CED6; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #5F6368; cursor: pointer; }
.au-chips2 button[aria-pressed=true] { background: #14264A; border-color: #14264A; color: #fff; }
/* Audit: bank kalimat temuan (acuan resmi) */
.au-bank { align-self: flex-start; min-height: 38px; padding: 0 14px; font-size: 13px; margin-bottom: 4px; }
.au-sheet { position: fixed; inset: 0; z-index: 70; background: rgba(11,29,46,.45); display: flex; align-items: flex-end; justify-content: center; }
.au-sheet-in { width: 100%; max-width: 560px; max-height: 82vh; background: #fff; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.au-sheet .hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.au-sheet .hd b { font-size: 15px; color: #14264A; }
.au-sheet .ls { overflow-y: auto; padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.au-sheet .op { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid #DADFE6; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: #14264A; line-height: 1.4; cursor: pointer; }
.au-sheet .op small { font-size: 11.5px; color: #5F6368; line-height: 1.35; }
.au-sheet .op.ex { background: #F3F6FB; font-weight: 600; color: #1F3A6E; }
/* Audit: jadwal pelaksanaan 06.06 */
.au-qaud { font-size: 12.5px; color: #5F6368; margin: 4px 0 2px; }
.au-qaud b { color: #14264A; }
.au-pels { display: flex; flex-direction: column; gap: 6px; }
.au-peld { font-size: 12px; font-weight: 700; color: #1F3A6E; margin: 8px 2px 0; text-transform: capitalize; }
.au-pel { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #E3E7ED; border-radius: 12px; padding: 10px 12px; }
.au-pel.sec { border-left: 4px solid #1F3A6E; }
.au-pel .j { font-weight: 700; font-variant-numeric: tabular-nums; color: #14264A; min-width: 44px; font-size: 14px; }
.au-pel .w { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #14264A; line-height: 1.35; }
.au-pel .w b { font-weight: 600; }
.au-pel .w small { font-size: 12px; color: #5F6368; }
.au-pel .w small.aud { color: #14264A; }
.au-pel .b { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.au-audc button[aria-pressed=true], .au-kegc button:active { background: #14264A; border-color: #14264A; color: #fff; }
/* Audit: pilihan analisa & tindakan */
.au-pkg { font-size: 12px; font-weight: 700; color: #1F3A6E; margin: 10px 2px 2px; text-transform: uppercase; letter-spacing: .02em; }
.au-pk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #DADFE6; border-radius: 12px; background: #fff; font-size: 14px; color: #14264A; line-height: 1.4; cursor: pointer; }
.au-pk input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: #14264A; }
.au-pk span { display: flex; flex-direction: column; gap: 3px; }
.au-pk small { font-size: 11.5px; color: #5F6368; }
.au-pk:has(input:checked) { border-color: #14264A; background: #F3F6FB; }
/* Audit: persiapan, panduan, sampel, sertifikat */
.au-qsa { font-size: 13px; color: #333C4B; background: #F3F6FB; border-radius: 8px; padding: 6px 10px; margin: 4px 0; }
.au-qsa .a-Y, .au-item .a-Y { color: #1E7A46; } .au-qsa .a-N, .au-item .a-N { color: #B01C2A; } .au-qsa .a-NA, .au-item .a-NA { color: #5F6368; }
.au-guide { border: 1px solid #E3E7ED; border-radius: 10px; background: #fff; margin: 6px 0; }
.au-guide summary { padding: 9px 12px; font-size: 13.5px; font-weight: 600; color: #1F3A6E; cursor: pointer; }
.au-guide .in { padding: 0 12px 10px; font-size: 13px; color: #333C4B; line-height: 1.45; }
.au-guide .in ul { margin: 3px 0 8px; padding-left: 18px; } .au-guide .in p { margin: 3px 0 0; } .au-guide .in b { font-size: 12px; color: #14264A; text-transform: uppercase; letter-spacing: .02em; }
.au-samp { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed #9FB0CC; border-radius: 10px; padding: 8px 10px; margin: 4px 0 6px; }
.au-samp span { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #14264A; }
.au-samp i { font-style: normal; background: #E8EEF8; border-radius: 6px; padding: 2px 7px; font-weight: 600; } .au-samp small { color: #5F6368; }
.au-cert { background: #fff; border: 1px solid #E3E7ED; border-left: 4px solid #C9D2DE; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.au-cert.ok { border-left-color: #1E7A46; } .au-cert.warn { border-left-color: #D9A400; } .au-cert.bad { border-left-color: #B01C2A; }
.au-cert .n { border: 0; font: inherit; font-size: 14px; font-weight: 600; color: #14264A; padding: 2px 0; background: transparent; }
.au-cert .ad { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5F6368; }
.au-cert small { font-size: 12px; color: #5F6368; } .au-cert.bad small { color: #B01C2A; font-weight: 600; } .au-cert.warn small { color: #8A6500; font-weight: 600; }
.au-qrbox { width: 180px; margin: 6px auto; } .au-qrbox svg { width: 100%; height: auto; display: block; }
.au-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.au-cert .ad input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: #B01C2A; }
.au-cert .au-g2 { align-items: center; }
.au-warn-t { color: #8A6500; font-weight: 600; }
