/* Halaman hasil visit (/hasil/<Visit ID>). Gaya "ledger": chrome ink + abu, satu warna data (aksen app), status hanya pada titik/chip kecil.
   Empat tampilan: .dk.in (desktop interaktif) .dk.st (desktop statis) .mb.in (HP interaktif) .mb.st (HP statis). Semua selector di bawah .rp. */
body.rpbody { background: #f5f5f3; }
body.hlock { overflow: hidden; }
.rp {
  --ink: #1f2430; --mu: #5b6474; --bd: #e4e4e0; --rule: #eeede9; --g: #f5f5f3; --sf: #fff;
  --ac: #f0582d; --act: #c8401a; --gd: #15803d; --rd: #d92d20;
  min-height: 100dvh; background: var(--g); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased;
}
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp h1, .rp h2, .rp h3, .rp p, .rp dl, .rp dd, .rp figure { margin: 0; }
.rp button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rp button:focus-visible, .rp a:focus-visible, .rp summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rp .num { font-variant-numeric: tabular-nums; }
.rp .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.rp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp .h-mu { color: var(--mu); }
.rp .nw { white-space: nowrap; }
.rp .h-pad { padding: 14px; }
.rp small { font-size: 12px; color: var(--mu); }

/* ---------- komponen dasar ---------- */
.rp .h-card { background: var(--sf); border: 1px solid var(--bd); border-radius: 10px; padding: 14px 16px; }
.rp .h-card.flush { padding: 0; overflow: hidden; }
.rp .h-card > h2, .rp .h-ch h2 { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; }
.rp .h-card > h2 small { font-weight: 500; margin-left: auto; }
.rp .h-cnt { font-weight: 600; color: var(--mu); }
.rp .h-sub { font-size: 12px; font-weight: 600; color: var(--mu); margin: 12px 0 6px; }
.rp .h-cs, .rp .h-ch p { font-size: 12.5px; color: var(--mu); }
.rp .h-ic { width: 22px; height: 22px; flex: none; display: block; filter: grayscale(1) brightness(.35); opacity: .88; }
.rp .h-ic.xs { width: 15px; height: 15px; }
.rp .h-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; line-height: 1; white-space: nowrap; flex: none; background: #f0f0ed; color: #3f4556; }
.rp .h-chip.crit { background: #fdeceb; color: #b42318; }
.rp .h-chip.bad { background: #fff3dc; color: #8a4b0a; }
.rp .h-chip.ok, .rp .h-chip.c-fix { background: #e6f5ea; color: #166534; }
.rp .h-chip.ink { background: var(--ink); color: #fff; }
.rp .h-chip.c-new { background: #fff0ea; color: #b23812; }
.rp .h-chip.c-rep { background: #f0f0ed; color: #3f4556; }
.rp .h-chip.cat-h { background: #fdeceb; color: #b42318; }
.rp .h-chip.cat-m { background: #fff3dc; color: #8a4b0a; }
.rp .h-chip.cat-l { background: #e6f5ea; color: #166534; }
.rp .h-dl { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rp .h-dl.gd { color: var(--gd); } .rp .h-dl.bd { color: var(--rd); } .rp .h-dl.eq { color: var(--mu); font-weight: 600; }
.rp .h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 10px; border: 1px solid var(--bd); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; }
.rp .h-btn.ic { width: 34px; padding: 0; }
.rp .h-btn:hover { background: #f7f7f5; }
.rp .h-btn.pri { background: var(--ink); color: #fff; border-color: var(--ink); }
.rp .h-btn small { color: var(--mu); font-weight: 500; }
.rp .h-seg { display: inline-flex; padding: 2px; background: #ecece8; border-radius: 9px; gap: 2px; }
.rp .h-seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font-size: 13px; font-weight: 600; color: var(--mu); }
.rp .h-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--bd); }
.rp .h-back { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 6px; border: 1px solid var(--bd); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; flex: none; }
.rp .h-back:hover { background: #f7f7f5; }
.rp .h-lnk { display: inline-flex; align-items: center; gap: 2px; color: var(--act); font-weight: 600; text-decoration: none; }

/* ---------- angka utama (satu kontainer berpembatas) ---------- */
.rp .h-kpi { padding: 0; display: grid; overflow: hidden; }
.rp .h-k { padding: 12px 16px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rp .h-kl { font-size: 12px; font-weight: 600; color: var(--mu); }
.rp .h-kv { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rp .h-kv b { font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.rp .h-kv i { font-style: normal; font-size: 14px; color: var(--mu); }
.rp .h-k.lead .h-kv b { font-size: 46px; }
.rp .h-k small { line-height: 1.35; }
.rp .h-vs { font-size: 12px; color: var(--mu); }
.rp .h-cc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.rp .h-cc .h-chip { white-space: normal; flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; height: auto; min-height: 20px; padding: 3px 7px; line-height: 1.25; }
.rp .h-kpi.stack, .rp .h-kpi.phone { grid-template-columns: 1fr 1fr; }
.rp .h-kpi.stack .h-k.lead, .rp .h-kpi.phone .h-k.lead { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); }
.rp .h-kpi.stack .h-k:nth-child(3), .rp .h-kpi.phone .h-k:nth-child(3) { border-left: 1px solid var(--rule); }
.rp .h-kpi.stack .h-k:nth-child(4), .rp .h-kpi.phone .h-k:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
.rp .h-kpi.strip { grid-template-columns: 1.35fr 1fr 1.4fr 1fr; }
.rp .h-kpi.strip .h-k + .h-k { border-left: 1px solid var(--rule); }
.rp .h-kpi.strip .h-k { padding: 14px 20px; }
.rp .h-kpi.strip .h-kpi-x { display: none; }
.rp .h-kpi.phone .h-k.lead .h-kv b { font-size: 42px; }

.rp .h-tallyc { padding: 12px 16px; }
.rp .h-tallyc h2 { margin-bottom: 8px; }
.rp .h-tally { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.rp .h-tc { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 0; background: #fff; text-align: left; min-height: 44px; }
.rp .h-tc + .h-tc { border-left: 1px solid var(--rule); }
.rp .h-tc b { font-size: 22px; line-height: 1.1; font-weight: 700; }
.rp .h-tc span { font-size: 12px; color: var(--mu); font-weight: 600; }
.rp .h-tc.c-new b { color: var(--act); } .rp .h-tc.c-fix b { color: var(--gd); }
.rp button.h-tc:hover { background: #f7f7f5; }
.rp .h-tallyi { display: flex; align-items: center; gap: 12px; }
.rp .h-tallyi > b { font-size: 12.5px; color: var(--mu); font-weight: 600; }
.rp .h-tallyi .h-tally { min-width: 280px; }

/* ---------- identitas ---------- */
.rp .h-id { padding: 2px 2px 0; }
.rp .h-idl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); font-weight: 600; }
.rp .h-id h1 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 4px; }
.rp .h-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--mu); }
.rp .h-meta b { color: var(--ink); font-weight: 600; }

/* ---------- radar ---------- */
.rp .h-ch { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rp .h-ch h2 { margin-bottom: 2px; }
.rp .h-rcard { display: flex; flex-direction: column; min-height: 0; }
.rp .h-rbody { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; }
.rp .h-radar { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; }
.rp .h-radar > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rp .h-rg { fill: none; stroke: #e2e2dd; stroke-width: .25; }
.rp .h-rprev { fill: none; stroke: #8b93a1; stroke-width: .45; stroke-dasharray: 1.6 1.2; stroke-linejoin: round; }
.rp .h-rnow { fill: rgba(240, 88, 45, .13); stroke: var(--ac); stroke-width: .6; stroke-linejoin: round; }
.rp .h-rdot { stroke: #fff; stroke-width: .3; }
.rp .h-node { position: absolute; transform: translate(-50%, -50%); width: 60px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: none; border: 0; padding: 0; }
.rp .h-radar.nm .h-node { width: 104px; }
.rp .h-node-i { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2.5px solid var(--c, var(--ink)); display: grid; place-items: center; }
.rp .h-node-i .h-ic { width: 20px; height: 20px; }
.rp .h-node.tap .h-node-i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.rp .h-node.tap:hover .h-node-i { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--c); }
.rp .h-node-i.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--c); }
.rp .h-node-p { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.rp .h-node-p .h-dl { font-size: 11px; }
.rp .h-node-t { font-size: 12px; line-height: 1.2; color: #3a4051; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rp .h-node-c { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; background: #f0f0ed; color: #3f4556; }
.rp .h-node-c.c-new { background: #fff0ea; color: #b23812; } .rp .h-node-c.c-fix { background: #e6f5ea; color: #166534; }
.rp .h-rscale { position: absolute; right: 0; bottom: 0; font-size: 11px; color: var(--mu); }
.rp .h-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12px; color: var(--mu); margin-top: 6px; }
.rp .h-leg > span { display: inline-flex; align-items: center; gap: 5px; }
.rp .h-leg .lg { width: 16px; height: 0; border-top: 2.5px solid var(--ac); display: inline-block; }
.rp .h-leg .lg.old { border-top: 2px dashed #8b93a1; }
.rp .h-leg-h { margin-left: auto; }
.rp .h-leg-h i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin: 0 3px 0 8px; }
.rp .h-leg-h i:first-child { margin-left: 0; }
.rp .h-rrows { display: grid; gap: 2px; width: 100%; }
.rp .h-rr { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border: 0; background: none; width: 100%; text-align: left; border-radius: 8px; min-height: 44px; }
.rp .h-rr .h-node-i { width: 32px; height: 32px; }
.rp .h-rr-n { flex: 1; font-weight: 600; }

/* ---------- daftar baris ---------- */
.rp .h-frs { display: block; }
.rp .h-fr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto 14px; align-items: center; column-gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; min-height: 58px; }
.rp .h-fr.tap:hover { background: #f8f8f6; }
.rp .h-fr-i { display: grid; place-items: center; width: 28px; height: 28px; align-self: start; margin-top: 2px; }
.rp .h-fr-i.lg { width: 36px; height: 36px; align-self: center; margin: 0; }
.rp .h-fr-i.lg .h-ic { width: 28px; height: 28px; }
.rp .h-fr-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rp .h-fr-t b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.rp .h-fr-s { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.rp .h-fr-s small { display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; }
.rp .h-fr-n { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; }
.rp .h-fr-n svg { color: var(--rd); }
.rp .h-fr-p { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--mu); min-width: 28px; }
.rp .h-fr-g { color: #98a0ae; display: grid; }
.rp .h-flt { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; }
.rp .h-flt::-webkit-scrollbar { display: none; }
.rp .h-fc { height: 32px; padding: 0 12px; border: 1px solid var(--bd); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; }
.rp .h-fc b { font-weight: 700; color: var(--mu); margin-left: 2px; }
.rp .h-fc[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rp .h-fc[aria-pressed="true"] b { color: #fff; }
.rp .h-ph2 { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.rp .h-ph2t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp .h-ph2t b { font-size: 14px; }
.rp .h-lrs { display: block; }
.rp .h-lr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto 56px 14px; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; min-height: 48px; }
.rp .h-lr.tap:hover { background: #f8f8f6; }
.rp .h-lr-n { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp .h-lr-d { text-align: right; }
.rp .h-lr svg:last-child { color: #98a0ae; }
.rp .h-lrs.st .h-lr { grid-template-columns: 28px minmax(0, 1fr) auto 56px; min-height: 40px; padding: 7px 4px; }

/* ---------- rincian section ---------- */
.rp .h-sh { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); min-width: 0; }
.rp .h-sht { min-width: 0; flex: 1; }
.rp .h-sht h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.rp .h-sht small { display: flex; align-items: center; gap: 5px; }
.rp .h-shc { display: flex; gap: 4px; flex: none; }
.rp .h-cn { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--rule); background: #fafaf8; }
.rp .h-sd { padding: 12px 14px 16px; }
.rp .h-q { font-size: 13px; color: var(--mu); margin-bottom: 8px; }
.rp .h-grp { margin: 0 0 12px; }
.rp .h-gh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin-bottom: 4px; }
.rp .h-x { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; font-size: 13.5px; }
.rp .h-xi { flex: none; color: var(--rd); margin-top: 4px; display: grid; }
.rp .h-x.ok .h-xi { color: var(--gd); }
.rp .h-grp.okg summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mu); padding: 4px 0; list-style: none; }
.rp .h-grp.okg summary::before { content: '+ '; }
.rp .h-grp.okg[open] summary::before { content: '− '; }
.rp .h-grp.okg summary::-webkit-details-marker { display: none; }
.rp .h-okb { margin: 4px 0 8px; }
.rp .h-okb small { display: block; font-weight: 600; margin-bottom: 2px; }
.rp .h-note { margin-top: 10px; padding: 10px 12px; background: #f6f6f3; border-radius: 8px; font-size: 13.5px; }
.rp .h-lab { font-size: 12px; font-weight: 600; color: var(--mu); margin-bottom: 3px; }
.rp .h-dl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; }
.rp .h-dl2 dt { font-size: 11.5px; color: var(--mu); font-weight: 600; }
.rp .h-dl2 dd { font-size: 13px; }
.rp .h-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; margin-top: 10px; }
.rp .h-ph .lvph { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--bd); background: #ececE8; }
.rp .h-ph.sm { grid-template-columns: repeat(auto-fill, 72px); margin-top: 0; }
.rp .h-subl { margin-top: 4px; }

/* ---------- tabel ---------- */
.rp .h-tw { overflow-x: auto; }
.rp .h-tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp .h-tb th { text-align: left; font-size: 12px; font-weight: 600; color: var(--mu); padding: 8px 12px; border-bottom: 1px solid var(--bd); white-space: nowrap; }
.rp .h-tb td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rp .h-tb .n { text-align: right; }
.rp .h-tb tr.cur td { background: #faf8f4; }
.rp .h-tb tr.crit td:first-child b { color: #b42318; }
.rp .h-src { display: block; font-size: 11.5px; color: var(--mu); font-weight: 600; margin-bottom: 1px; }
.rp .h-an { display: inline-flex; align-items: center; gap: 8px; }
.rp .h-an .h-ic { width: 20px; height: 20px; }
.rp .h-tb.at td, .rp .h-tb.at th { padding-top: 7px; padding-bottom: 7px; }
.rp .h-stat { min-width: 70px; }
.rp .h-acats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-bottom: 1px solid var(--rule); }
.rp .h-acat { padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; }
.rp .h-acat + .h-acat { border-left: 1px solid var(--rule); }
.rp .h-acat span { font-size: 12px; color: var(--mu); font-weight: 600; }
.rp .h-acat b { font-size: 20px; }
.rp .h-acat.tot b { color: var(--act); }
.rp .h-sum { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rp .h-sum li { font-size: 13.5px; }

/* tabel bertumpuk: di panel desktop dan di HP, baris menjadi kartu */
.rp .h-pane .h-tb.rt, .rp.mb .h-tb.rt { display: block; }
.rp .h-pane .h-tb.rt thead, .rp.mb .h-tb.rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rp .h-pane .h-tb.rt tbody, .rp.mb .h-tb.rt tbody { display: block; }
.rp .h-pane .h-tb.rt tr, .rp.mb .h-tb.rt tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.rp .h-pane .h-tb.rt td, .rp.mb .h-tb.rt td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
.rp .h-pane .h-tb.rt td::before, .rp.mb .h-tb.rt td::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--mu); font-weight: 600; }
.rp .h-pane .h-tb.rt td:first-child, .rp.mb .h-tb.rt td:first-child { grid-column: 1 / -1; }
.rp .h-pane .h-tb.rt td:first-child::before, .rp.mb .h-tb.rt td:first-child::before { display: none; }
.rp .h-pane .h-tb.rt.pl td:nth-child(2), .rp.mb .h-tb.rt.pl td:nth-child(2) { grid-column: 1 / -1; }
.rp .h-pane .h-tb.rt.as td:nth-child(4), .rp.mb .h-tb.rt.as td:nth-child(4) { grid-column: 1 / -1; }
.rp .h-pane .h-tb.rt .n, .rp.mb .h-tb.rt .n { text-align: left; }

/* ---------- tren ---------- */

/* ---------- bilah atas desktop ---------- */
.rp .h-top { position: sticky; top: 0; z-index: 20; height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--bd); }
.rp .h-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.rp .h-crumb { display: flex; align-items: baseline; gap: 8px; padding-left: 14px; margin-left: 2px; border-left: 1px solid var(--bd); min-width: 0; }
.rp .h-crumb b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp .h-sp { flex: 1; }
.rp .h-act { display: flex; gap: 6px; }

/* ---------- desktop interaktif ---------- */
.rp.dk.in .h-dk { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-areas: 'l r' 'm r'; grid-template-rows: auto 1fr; gap: 12px; padding: 12px; align-items: start; }
.rp.dk.in .h-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.rp.dk.in .h-col.l > * { flex: none; }
.rp.dk.in .h-col.l { grid-area: l; }
.rp.dk.in .h-col.m { grid-area: m; }
.rp.dk.in .h-col.r { grid-area: r; position: sticky; top: 60px; height: calc(100dvh - 72px); }
.rp.dk.in .h-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.rp .h-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--bd); overflow-x: auto; flex: none; scrollbar-width: none; }
.rp .h-tab { height: 44px; padding: 0 10px; border: 0; background: none; color: var(--mu); font-size: 13.5px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rp .h-tab b { font-weight: 700; margin-left: 2px; }
.rp .h-tab:hover { color: var(--ink); }
.rp .h-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rp .h-pane-b { flex: 1; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.rp.dk.in .h-pane .h-leg { padding: 0; }
@media (min-width: 1200px) {
  .rp.dk.in { height: 100dvh; display: flex; flex-direction: column; min-height: 0; }
  .rp.dk.in .h-dk { flex: 1; min-height: 0; grid-template-columns: 300px minmax(360px, 1fr) 450px; grid-template-areas: 'l m r'; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  .rp.dk.in .h-col.l { overflow: auto; padding-right: 2px; }
  .rp.dk.in .h-col.r { position: static; height: auto; }
  .rp.dk.in .h-col.m .h-rcard { flex: 1; }
  .rp.dk.in .h-radar { width: min(100%, calc(100dvh - 230px)); max-width: none; }
}
@media (max-width: 1199.98px) {
  .rp.dk.in .h-radar { max-width: 520px; }
}

/* ---------- desktop statis ---------- */
.rp.dk.st .h-doc { max-width: 1200px; margin: 0 auto; padding: 20px 24px 40px; display: grid; gap: 12px; }
.rp.dk.st .h-dhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 2px; }
.rp.dk.st .h-id h1 { font-size: 26px; }
.rp.dk.st .h-r2 { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 12px; align-items: start; }
.rp.dk.st .h-r2 > div { display: grid; gap: 12px; }
.rp.dk.st .h-r5 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.rp.dk.st .h-card .h-tw { margin: 0 -16px; }
.rp.dk.st .h-card .h-tw:last-child { margin-bottom: -6px; }
.rp.dk.st .h-radar { max-width: 400px; }
.rp .h-abs { column-gap: 14px; }
.rp.dk.st .h-abs { column-count: 3; }
.rp .h-ab { display: block; width: 100%; padding: 4px 0 8px; margin: 0 0 10px; }
.rp .h-abh { break-after: avoid; padding-bottom: 4px; border-bottom: 1px solid var(--bd); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rp .h-abh h3 { font-size: 14px; font-weight: 700; flex: 1; min-width: 0; }
.rp .h-abp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rp .h-sb { break-inside: avoid; padding: 8px 0 4px; border-bottom: 1px solid var(--rule); }
.rp .h-sbh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.rp .h-sbh b { font-size: 13.5px; }
.rp .h-sb .h-grp { margin-bottom: 6px; }
.rp .h-sb .h-x { font-size: 13px; padding: 1px 0; }
.rp .h-sb .h-ph { grid-template-columns: repeat(auto-fill, 64px); margin-top: 6px; }
.rp .h-line { font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--rule); color: #3a4051; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.rp .h-cleanl { margin-top: 2px; }
.rp .h-foot { font-size: 12px; color: var(--mu); padding: 6px 2px; }
@media (max-width: 1099.98px) {
  .rp.dk.st .h-abs { column-count: 2; }
  .rp.dk.st .h-r2, .rp.dk.st .h-r5 { grid-template-columns: 1fr; }
  .rp.dk.st .h-kpi.strip { grid-template-columns: 1fr 1fr; }
  .rp.dk.st .h-kpi.strip .h-k:nth-child(3) { border-left: 0; }
}

/* ---------- HP ---------- */
.rp .h-mtop { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 0 16px; background: #fff; border-bottom: 1px solid var(--bd); }
.rp .h-mt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rp .h-mt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp .h-mtop .h-btn.ic { width: 44px; height: 44px; border: 0; background: none; }
.rp .h-mmain { padding: 12px 12px calc(84px + env(safe-area-inset-bottom, 0px)); }
.rp .h-mp { display: grid; gap: 12px; }
.rp.mb .h-card { padding: 14px; }
.rp.mb .h-card.h-kpi { padding: 0; }
.rp.mb .h-card.flush { padding: 0; }
.rp.mb .h-flt { padding: 0 0 2px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.rp.mb .h-fc { height: 40px; padding: 0 14px; }
.rp .h-mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--bd); padding-bottom: env(safe-area-inset-bottom, 0px); }
.rp .h-mnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; border: 0; background: none; color: var(--mu); font-size: 11.5px; font-weight: 600; }
.rp .h-mnav button[aria-current="page"] { color: var(--ink); box-shadow: inset 0 2px 0 var(--ink); }
.rp.mb .h-radar { max-width: 360px; }
.rp.mb .h-node { width: 52px; }
.rp.mb .h-node-i { width: 34px; height: 34px; border-width: 2.5px; }
.rp.mb .h-node-i .h-ic { width: 18px; height: 18px; }
.rp.mb .h-node-p { font-size: 12px; }
.rp.mb .h-node-c { display: none; }
.rp.mb .h-back { height: 40px; }
.rp.mb .h-ch { flex-wrap: wrap; }

/* lembar bawah + menu */
.rp .h-ov { position: fixed; inset: 0; z-index: 60; }
.rp .h-bd { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); }
.rp .h-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); animation: hup .2s ease-out; }
@keyframes hup { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.rp .h-grab { width: 36px; height: 4px; border-radius: 2px; background: #d4d4cf; margin: 8px auto 0; flex: none; }
.rp .h-sheet-h { display: flex; align-items: center; gap: 4px; padding-right: 4px; border-bottom: 1px solid var(--rule); flex: none; }
.rp .h-sheet-h .h-sh { flex: 1; border: 0; padding: 8px 4px 8px 14px; }
.rp .h-sheet-h > b { flex: 1; padding: 12px 14px; font-size: 15px; }
.rp .h-xbtn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; flex: none; }
.rp .h-sheet-b { overflow: auto; min-height: 0; padding-bottom: env(safe-area-inset-bottom, 0px); overscroll-behavior: contain; }
.rp .h-menu { padding: 4px 0 8px; }
.rp .h-menu-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 8px 16px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; font-weight: 600; }
.rp .h-menu-r b { color: var(--mu); font-weight: 600; font-size: 13px; }

/* HP statis */
.rp.mb.st .h-mdoc { padding: 14px 12px 32px; display: grid; gap: 12px; }
.rp.mb.st .h-id h1 { font-size: 20px; }
.rp.mb.st .h-tallyi { flex-direction: column; align-items: stretch; gap: 6px; }
.rp.mb.st .h-tallyi .h-tally { min-width: 0; }
.rp.mb.st .h-abs { column-count: 1; }
.rp.mb.st .h-ab { padding: 10px 12px 4px; }
.rp.mb.st .h-card .h-tw { margin: 0 -14px; }
.rp.mb.st .h-card .h-tw:last-child { margin-bottom: -6px; }

/* muat + kosong */
.rp .h-skel { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.rp .h-skg { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.rp .h-empty { max-width: 460px; margin: 40px auto; display: grid; gap: 10px; justify-items: start; }

@media (prefers-reduced-motion: reduce) { .rp .h-sheet { animation: none; } }
@media print {
  @page { size: A4; margin: 10mm; }
  body.rpbody, .rp { background: #fff; }
  .rp .h-top, .rp .h-mtop, .rp .h-mnav, .rp .h-ov { display: none !important; }
  .rp.dk.st .h-doc { max-width: none; padding: 0; }
  .rp.dk.st .h-r2, .rp.dk.st .h-r5 { grid-template-columns: 1fr; }
  .rp.dk.st .h-abs { column-count: 2; }
  .rp.dk.st .h-kpi.strip { grid-template-columns: 1fr 1fr; }
  .rp .h-card { break-inside: avoid; border-color: #ccc; }
  .rp .h-card.h-find, .rp .h-card:has(.h-tb) { break-inside: auto; }
}

.rp.mb.st .h-radar { max-width: 300px; }
.rp.mb.st .h-tb.rt tr { padding: 10px 14px; gap: 4px 14px; }


/* HP statis: dokumen dipadatkan */
.rp.mb.st .h-mdoc { gap: 10px; }
.rp.mb.st .h-card { padding: 12px; }
.rp.mb.st .h-card.h-kpi { padding: 0; }
.rp.mb.st .h-k { padding: 10px 14px; }
.rp.mb.st .h-note { margin-top: 6px; padding: 6px 10px; font-size: 13px; }
.rp.mb.st .h-grp { margin-bottom: 4px; }
.rp.mb.st .h-sb { padding: 6px 0 2px; }
.rp.mb.st .h-q { margin-bottom: 4px; }
.rp.mb.st .h-ph { margin-top: 6px; grid-template-columns: repeat(auto-fill, 56px); }
.rp.mb.st .h-tb.rt.pl tr { grid-template-columns: auto auto auto 1fr; gap: 4px 12px; }
.rp.mb.st .h-tb.rt.pl td:nth-child(1), .rp.mb.st .h-tb.rt.pl td:nth-child(2) { grid-column: 1 / -1; }
.rp.mb.st .h-tb.rt.pl td:nth-child(2) { margin-bottom: 2px; }

/* ---------- radar padat: ikon satu lingkaran, nama di samping ---------- */
.rp .h-radar.cp .h-node { width: 32px; height: 32px; display: block; }
.rp .h-radar.cp .h-node-i { position: absolute; inset: 0; width: 32px; height: 32px; }
.rp .h-radar.cp .h-node-i .h-ic { width: 17px; height: 17px; }
.rp .h-lbl { position: absolute; display: flex; flex-direction: column; gap: 1px; width: 86px; line-height: 1.1; }
.rp .h-lbl .h-node-p { font-size: 12px; }
.rp .h-lbl .h-node-t { font-size: 11px; line-height: 1.1; }
.rp .h-node.sd-r .h-lbl { left: calc(100% + 4px); top: 50%; transform: translateY(-50%); text-align: left; align-items: flex-start; }
.rp .h-node.sd-l .h-lbl { right: calc(100% + 4px); top: 50%; transform: translateY(-50%); text-align: right; align-items: flex-end; }
.rp .h-node.sd-t .h-lbl, .rp .h-node.sd-b .h-lbl { width: 62px; left: 50%; transform: translateX(-50%); text-align: center; align-items: center; }
.rp .h-node.sd-t .h-lbl { bottom: calc(100% + 2px); }
.rp .h-node.sd-b .h-lbl { top: calc(100% + 2px); }
.rp .h-node.up .h-lbl { transform: translateY(-95%); }
.rp .h-node.dn .h-lbl { transform: translateY(8%); }
.rp .h-node.mu .h-lbl { transform: translateY(-38%); }
.rp .h-node.md .h-lbl { transform: translateY(-72%); }
.rp .h-radar.sd .h-node { width: 26px; height: 26px; }
.rp .h-radar.sd .h-node-i { width: 26px; height: 26px; border-width: 2px; }
.rp .h-radar.sd .h-node-i .h-ic { width: 14px; height: 14px; }
.rp .h-radar.sd .h-lbl { width: 56px; }
.rp .h-radar.sd .h-node-p { font-size: 10px; }
.rp .h-radar.sd .h-node-t { font-size: 9px; }
.rp .h-radar.sd .h-node.sd-t .h-lbl, .rp .h-radar.sd .h-node.sd-b .h-lbl { width: 44px; }
.rp .h-radar.sd .h-node.sd-t .h-node-t, .rp .h-radar.sd .h-node.sd-b .h-node-t { font-size: 8px; }
.rp .h-node-b { font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: #eef0f4; color: #3f4556; width: fit-content; white-space: nowrap; line-height: 1.5; }
.rp .h-radar.sd .h-node-b { font-size: 9px; padding: 0 3px; }

/* ---------- indikator ---------- */
.rp .ii0 { --ic: #0369a1; } .rp .ii1 { --ic: #a21caf; } .rp .ii2 { --ic: #7c4a1d; } .rp .ii3 { --ic: #3730a3; } .rp .ii4 { --ic: #a16207; } .rp .ii5 { --ic: #0e7490; }
.rp .h-ind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #3a4051; background: #fff; border: 1px solid var(--bd); border-radius: 999px; padding: 1px 8px 1px 6px; line-height: 1.5; white-space: nowrap; }
.rp .h-ind > i { width: 8px; height: 8px; border-radius: 50%; background: var(--ic); flex: none; }
.rp .h-ind b { font-weight: 700; }
.rp .h-ind.fx { color: var(--mu); text-decoration: line-through; text-decoration-color: #9aa0ab; }
.rp .h-ist { font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 4px; text-decoration: none; display: inline-block; }
.rp .h-ist.c-new { background: #fff0ea; color: #b23812; } .rp .h-ist.c-rep { background: #f0f0ed; color: #3f4556; } .rp .h-ist.c-fix { background: #e6f5ea; color: #166534; }
.rp .h-ib { margin: 10px 14px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; }
.rp .h-ibl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rp .h-ibl.line { margin: 2px 0 6px; }
.rp .h-ibl.area { padding: 8px 14px 10px; border-bottom: 1px solid var(--rule); }
.rp .h-ibx { margin-top: 8px; }
.rp .h-ibp { font-size: 12px; color: var(--mu); margin-left: 4px; }
.rp .h-ibp i { font-style: normal; padding: 0 2px; }
.rp .h-fr-ind { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.rp .h-fr-ind .h-ind { font-size: 11px; padding: 0 7px 0 5px; }
.rp .h-is { display: grid; gap: 8px; }
.rp .h-isr { display: grid; grid-template-columns: minmax(96px, 170px) minmax(0, 1fr) 26px; align-items: center; gap: 10px; }
.rp .h-isn { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.rp .h-isb { display: flex; gap: 2px; height: 22px; }
.rp .h-isb i { background: var(--ic); color: #fff; font: 700 11px/22px var(--font); font-style: normal; text-align: center; min-width: 0; overflow: hidden; }
.rp .h-isb i:first-child { border-radius: 5px 0 0 5px; } .rp .h-isb i:last-child { border-radius: 0 5px 5px 0; } .rp .h-isb i:only-child { border-radius: 5px; }
.rp .h-ist2 { text-align: right; }
.rp .h-isl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rp .h-tb.mx th.n { text-align: center; }
.rp .h-tb.mx tr.ar th, .rp .h-tb.mx tr.ar td { background: #f7f7f4; }
.rp .h-tb.mx th.sc { padding-left: 28px; font-weight: 500; color: var(--ink); font-size: 13px; }
.rp .h-tb.mx td.n { text-align: center; min-width: 74px; }
.rp .h-tb.mx td.v1 { background: rgba(240, 88, 45, .14); } .rp .h-tb.mx td.v2 { background: rgba(240, 88, 45, .30); } .rp .h-tb.mx td.v3 { background: rgba(240, 88, 45, .50); }
.rp .h-tb.mx .h-z { color: #c0c3ca; }

/* ---------- papan perbandingan dua visit ---------- */
.rp .h-board { display: grid; }
.rp .h-bh { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.rp .h-bh .r { text-align: right; }
.rp .h-bh small { display: block; } .rp .h-bh b { font-size: 14px; }
.rp .h-bnp { padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.rp .h-br { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 1.5fr) minmax(70px, 1fr); grid-template-areas: 'l m r' 'l d r' 'b b b'; align-items: center; column-gap: 8px; padding: 12px 0 10px; border-bottom: 1px solid var(--rule); }
.rp .h-brv { font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.rp .h-brv.l { grid-area: l; color: var(--mu); text-align: left; }
.rp .h-brv.r { grid-area: r; text-align: right; }
.rp .h-br.gd .h-brv.r { color: var(--gd); } .rp .h-br.bd .h-brv.r { color: var(--rd); }
.rp .h-brm { grid-area: m; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 600; color: #3a4051; }
.rp .h-brd { grid-area: d; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--mu); }
.rp .h-br.gd .h-brd { color: var(--gd); } .rp .h-br.bd .h-brd { color: var(--rd); }
.rp .h-bar { grid-area: b; display: flex; gap: 3px; height: 6px; margin-top: 10px; }
.rp .h-bar i { border-radius: 3px; min-width: 3px; }
.rp .h-bar i.l { background: #cfd1d6; }
.rp .h-bar i.r { background: #9aa0ab; }
.rp .h-br.gd .h-bar i.r { background: var(--gd); } .rp .h-br.bd .h-bar i.r { background: var(--rd); }
.rp .h-bar.none { display: none; }
.rp .h-bsub { margin: 16px 0 0; padding-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--mu); border-bottom: 1px solid var(--bd); }
.rp .h-board.solo .h-br { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'm r'; padding: 10px 0; }
.rp .h-board.solo .h-brv.l { display: none; }
.rp .h-board.solo .h-brm { justify-content: flex-start; text-align: left; }
.rp .h-board.solo .h-brv { font-size: 22px; }
@media (max-width: 480px) { .rp .h-brv { font-size: 24px; } .rp .h-br { grid-template-columns: minmax(54px, 1fr) minmax(0, 1.6fr) minmax(54px, 1fr); } }

.rp .h-br.ar { padding: 8px 0 7px; }
.rp .h-br.ar .h-brv { font-size: 20px; }
.rp .h-br.ar .h-bar { margin-top: 6px; height: 5px; }
.rp .h-radar.sd.few .h-node-p { font-size: 11px; }
.rp .h-radar.sd.few .h-node-t { font-size: 10px; }
.rp .h-radar.sd.few .h-lbl { width: 62px; }
.rp .h-radar.sd.few .h-node { width: 30px; height: 30px; }
.rp .h-radar.sd.few .h-node-i { width: 30px; height: 30px; }
.rp .h-radar.sd.few .h-node-i .h-ic { width: 16px; height: 16px; }
