/* Workspace P2H — halaman 3. Breakdown. Mengikuti bahasa visual Breakdown (aksen oranye, header tabel merah muda). */
.p2h-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.p2h-view{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.p2h-workspace [hidden]{display:none!important}
.p2h-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.p2h-head h2{margin:0;color:#142238;font-size:19px;letter-spacing:-.015em}
.p2h-head p{margin:3px 0 0;color:#64748b;font-size:12px}
.p2h-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.p2h-btn-dark{background:#1c2333!important;border-color:#1c2333!important;color:#fff!important}
.p2h-subtabs{display:flex;gap:18px;border-bottom:1px solid #e2e8f0}
.p2h-subtabs button{height:34px;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:#64748b;font-weight:800;font-size:12px;cursor:pointer}
.p2h-subtabs button.is-active{color:#142238;border-bottom-color:#ea580c}
.p2h-empty-state{display:grid;gap:8px;justify-items:start;padding:28px 22px;border:1px dashed #cbd5e1;border-radius:12px;background:#fff}
.p2h-empty-state strong{color:#142238;font-size:15px}
.p2h-empty-state p{margin:0;max-width:78ch;color:#526176;font-size:12px;line-height:1.55}
.p2h-backbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #e2e8f0}
.p2h-backbar strong{color:#142238;font-size:16px}
.p2h-backbar-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}
.p2h-notice{margin:0;padding:8px 12px;border-radius:9px;background:#eff6ff;color:#1e40af;font-size:12px}
.p2h-notice[data-tone="success"]{background:#f0fdf4;color:#166534}
.p2h-notice[data-tone="warn"]{background:#fffbeb;color:#92400e}
.p2h-notice[data-tone="error"]{background:#fef2f2;color:#b91c1c}
.p2h-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.p2h-kpis article{padding:12px 13px;border:1px solid #dbe5f1;border-top:3px solid #ea580c;border-radius:11px;background:#fff}
.p2h-kpis article.is-info{border-top-color:#2563eb}.p2h-kpis article.is-warn{border-top-color:#d97706}.p2h-kpis article.is-danger{border-top-color:#dc2626}
.p2h-kpis span{display:block;color:#64748b;font-size:10px;font-weight:800}
.p2h-kpis strong{display:block;margin-top:6px;color:#0f172a;font-size:21px;font-weight:900;font-variant-numeric:tabular-nums}
.p2h-kpis small{display:block;margin-top:3px;color:#64748b;font-size:10px}
.p2h-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:14px;align-items:start}
.p2h-panel{min-width:0;overflow:hidden;border:1px solid #dbe4ef;border-radius:12px;background:#fff}
.p2h-panel>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px;border-bottom:1px solid #e2e8f0;background:#f8fafc}
.p2h-panel>header h3{margin:0;color:#0f172a;font-size:14px}
.p2h-panel>header p{margin:2px 0 0;color:#64748b;font-size:10px}
.p2h-muted{padding:18px 13px;color:#64748b;font-size:12px}
.p2h-search{padding:10px 13px;border-bottom:1px solid #e2e8f0}
.p2h-search input{width:100%;height:32px;box-sizing:border-box;padding:0 10px;border:1px solid #cbd5e1;border-radius:8px;font:500 12px var(--font-body)}
.p2h-coverage{max-height:640px;overflow:auto}
.p2h-cov-class{border-bottom:1px solid #e2e8f0}
.p2h-cov-row,.p2h-cov-model{display:flex;width:100%;align-items:center;gap:8px;border:0;background:#fff;text-align:left;cursor:pointer;font:inherit}
.p2h-cov-row{padding:10px 13px}.p2h-cov-model{padding:8px 13px 8px 32px;border-top:1px dashed #e2e8f0;font-size:12px}
.p2h-cov-row:hover{background:#fffbeb}.p2h-cov-model:hover{background:#f8fafc}
.p2h-cov-row.is-selected,.p2h-cov-model.is-selected{background:#fff7ed;box-shadow:inset 3px 0 0 #ea580c}
.p2h-cov-name{flex:1;min-width:0;font-weight:700;color:#142238}.p2h-cov-model .p2h-cov-name{font-weight:600}
.p2h-cov-units{color:#64748b;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.p2h-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}
.p2h-badge.is-active{background:#dcfce7;color:#166534}.p2h-badge.is-draft{background:#dbeafe;color:#1e40af}
.p2h-badge.is-archived,.p2h-badge.is-fallback{background:#f1f5f9;color:#475569}.p2h-badge.is-missing{background:#fee2e2;color:#b91c1c}
.p2h-src{color:#64748b;font:500 10px 'IBM Plex Mono',monospace;white-space:nowrap}
.p2h-accent{color:#9a3412}
.p2h-status-bar{padding:9px 13px;border-bottom:1px solid #bbf7d0;background:#f0fdf4;color:#166534;font-size:11px}
.p2h-status-bar.is-draft{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.p2h-status-bar.is-archived{background:#f8fafc;border-color:#e2e8f0;color:#475569}
.p2h-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:12px 13px;border-bottom:1px solid #e2e8f0}
.p2h-meta label,.p2h-form-grid label,.p2h-create-options label{display:grid;gap:4px;color:#64748b;font-size:10px;font-weight:800}
.p2h-meta input,.p2h-form-grid select,.p2h-create-options select{height:32px;box-sizing:border-box;padding:0 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font:500 12px var(--font-body)}
.p2h-meta input:disabled{background:#f8fafc;color:#475569}
.p2h-category{border-bottom:1px solid #e2e8f0}
.p2h-category>h4{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;padding:8px 13px;background:#fafaf9;color:#142238;font-size:12px}
.p2h-category>h4 small{color:#64748b;font-weight:500;font-size:10px}
.p2h-category-actions{display:flex;gap:4px;margin-left:auto}
.p2h-danger{color:#b91c1c!important}
.p2h-category-empty{padding:8px 13px 0 66px;color:#64748b;font-size:11px}
.p2h-item{display:grid;grid-template-columns:22px 24px minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 13px;border-top:1px solid #f1f5f9}
.p2h-item:hover{background:#fcfcfb}
.p2h-order{display:grid;gap:1px}
.p2h-order button{width:20px;height:13px;padding:0;border:0;border-radius:3px;background:transparent;color:#94a3b8;font-size:8px;cursor:pointer}
.p2h-order button:hover:not(:disabled){background:#f1f5f9;color:#142238}.p2h-order button:disabled{opacity:.3;cursor:default}
.p2h-no{color:#64748b;font:500 10px 'IBM Plex Mono',monospace}
.p2h-label{display:grid;gap:2px;min-width:0}
.p2h-label b{font-size:12px;font-weight:600;color:#142238}.p2h-label small{color:#64748b;font-size:10px}
.p2h-label input{height:26px;box-sizing:border-box;padding:0 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#142238;font:600 12px var(--font-body)}
.p2h-label input.p2h-guidance{height:22px;font-weight:400;font-size:10px;color:#526176}
.p2h-label input:hover{border-color:#e2e8f0}.p2h-label input:focus{border-color:#ea580c;background:#fff;outline:none}
.p2h-flags{display:flex;gap:5px;align-items:center}
.p2h-flag{height:24px;padding:0 9px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#64748b;font-size:10px;font-weight:800;cursor:pointer}
.p2h-flag.is-critical{background:#b91c1c;border-color:#b91c1c;color:#fff}
.p2h-flag.is-on{background:#1c2333;border-color:#1c2333;color:#fff}
.p2h-flag:disabled{opacity:.45;cursor:not-allowed}
.p2h-del{width:24px;height:24px;border:1px solid transparent;border-radius:999px;background:transparent;color:#94a3b8;font-size:12px;cursor:pointer}
.p2h-del:hover{border-color:#fecaca;background:#fee2e2;color:#b91c1c}
.p2h-add-item,.p2h-add-category{display:flex;gap:8px;padding:8px 13px 10px 66px}
.p2h-add-category{padding:12px 13px;border-bottom:1px solid #e2e8f0;background:#fafaf9}
.p2h-add-item input,.p2h-add-category input{flex:1;min-width:0;height:30px;box-sizing:border-box;padding:0 9px;border:1px dashed #cbd5e1;border-radius:8px;font:500 12px var(--font-body)}
.p2h-editor-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 13px;background:#f8fafc;color:#64748b;font-size:11px}
.p2h-history{padding:10px 13px 12px;border-top:1px solid #e2e8f0}
.p2h-history h4{margin:0;color:#0f172a;font-size:13px}.p2h-history>p{margin:2px 0 6px;color:#64748b;font-size:10px}
.p2h-history-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:7px 4px;border:0;border-bottom:1px dashed #e2e8f0;background:transparent;text-align:left;font:inherit;font-size:12px;cursor:pointer}
.p2h-history-row:hover{background:#f8fafc}.p2h-history-row.is-current{background:#fff7ed}
.p2h-history-row b{font:700 12px 'IBM Plex Mono',monospace}.p2h-history-row small{display:block;color:#64748b;font-size:10px}
.p2h-empty-editor{padding:16px 13px;display:grid;gap:12px}.p2h-empty-editor p{margin:0;color:#526176;font-size:12px}
.p2h-create-options{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
/* Modal generik (.modal) dibatasi 420 px; modal P2H melebarkan wadahnya sendiri. */
.modal:has(> .p2h-modal){max-width:min(600px,94vw)}
.modal:has(> .p2h-modal--wide){max-width:min(920px,96vw)}
.modal:has(> .p2h-photo-modal){max-width:min(800px,96vw)}
.p2h-modal{display:grid;gap:12px;min-width:0}
.p2h-modal h3{margin:0;color:#142238}.p2h-modal>p{margin:0;color:#526176;font-size:12px}
.p2h-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.p2h-modal-actions{display:flex;justify-content:flex-end;gap:8px}
.p2h-check{display:flex;gap:8px;align-items:center;font-size:12px;color:#142238}
.p2h-table-wrap{max-height:55vh;overflow:auto}
.p2h-table{width:100%;border-collapse:collapse;font-size:12px}
.p2h-table th{position:sticky;top:0;padding:8px;text-align:left;background:#fee2e2;color:#7f1d1d;font-size:10px}
.p2h-table td{padding:8px;border-bottom:1px solid #e2e8f0}
.p2h-table select{height:30px;border:1px solid #cbd5e1;border-radius:7px;padding:0 6px}
@media(max-width:1000px){.p2h-grid{grid-template-columns:1fr}.p2h-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.p2h-item{grid-template-columns:22px minmax(0,1fr)}.p2h-no{display:none}.p2h-flags{grid-column:2;flex-wrap:wrap}.p2h-add-item,.p2h-category-empty{padding-left:13px}.p2h-backbar-actions{margin-left:0}}

/* ===== Record & Kepatuhan P2H (tahap 2) ===== */
.p2h-count-pill{margin-left:4px;padding:1px 7px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:10px;font-variant-numeric:tabular-nums}
.p2h-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.p2h-filters label{display:grid;gap:4px;min-width:130px;color:#475569;font-size:10px;font-weight:800}
.p2h-filters label.is-grow{flex:1;min-width:180px}
.p2h-filters input,.p2h-filters select{height:32px;box-sizing:border-box;padding:0 9px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font:500 12px var(--font-body)}
.p2h-filters input:focus,.p2h-filters select:focus{border-color:#ea580c;outline:2px solid rgba(234,88,12,.15)}
.p2h-kpis article.is-ok{border-top-color:#16a34a}
.p2h-pill{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#fff7ed;color:#9a3412;font-size:10px;font-variant-numeric:tabular-nums}
.p2h-pill.is-danger{background:#fee2e2;color:#b91c1c}
.p2h-queue>header{background:#fef2f2}
.p2h-badge.is-warn{background:#fef3c7;color:#92400e}
.p2h-table-wrap .p2h-table{min-width:760px}
.p2h-table td{vertical-align:middle}
.p2h-table--click tbody tr{cursor:pointer}
.p2h-table--click tbody tr:hover,.p2h-table--click tbody tr:focus{background:#fff7ed;outline:none}
.p2h-table tr.is-done td{color:#94a3b8}
.p2h-sub{display:block;margin-top:2px;color:#64748b;font-size:10px;font-weight:500}
.p2h-sub-inline{color:#64748b;font-size:11px}
.p2h-nowrap{white-space:nowrap}
.p2h-mono{font:500 11px 'IBM Plex Mono',monospace;white-space:nowrap}
.p2h-num{font-variant-numeric:tabular-nums;text-align:right}
.p2h-empty-cell{padding:20px 12px!important;text-align:center;color:#64748b}
.p2h-skeleton td span{display:block;height:10px;border-radius:5px;background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);background-size:200% 100%;animation:p2hShimmer 1.2s linear infinite}
.p2h-skeleton-block{height:64px;margin-bottom:10px;border-radius:10px;background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);background-size:200% 100%;animation:p2hShimmer 1.2s linear infinite}
@keyframes p2hShimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.p2h-skeleton td span,.p2h-skeleton-block{animation:none}}
.p2h-thumb{position:relative;display:inline-grid;place-items:center;width:38px;height:30px;padding:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:6px;background:#f1f5f9;cursor:zoom-in}
.p2h-thumb.is-large{width:112px;height:76px;border-radius:8px}
.p2h-thumb img{width:100%;height:100%;object-fit:cover}
.p2h-thumb img.is-broken{visibility:hidden}
.p2h-thumb small{position:absolute;right:2px;bottom:1px;padding:0 3px;border-radius:4px;background:rgba(15,23,42,.7);color:#fff;font-size:9px}
.p2h-thumb:active,.p2h-link:active{transform:translateY(1px)}
.p2h-photo-frame{display:grid;place-items:center;min-height:240px;max-height:70vh;overflow:auto;border-radius:10px;background:#0f172a}
.p2h-photo-frame img{max-width:100%;max-height:68vh;object-fit:contain}
.p2h-link{padding:0;border:0;background:none;color:#9a3412;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
/* drawer */
.p2h-scrim{position:fixed;inset:0;z-index:1200;background:rgba(15,23,42,.35)}
.p2h-drawer{position:fixed;top:0;right:0;bottom:0;z-index:1201;display:flex;flex-direction:column;width:min(480px,100%);background:#fff;box-shadow:-12px 0 40px rgba(15,23,42,.2)}
.p2h-scrim[hidden],.p2h-drawer[hidden]{display:none!important}
.p2h-drawer>header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #e2e8f0}
.p2h-drawer>header h3{margin:0;color:#142238;font-size:16px}
.p2h-drawer-body{flex:1;overflow:auto;padding:12px 16px 24px}
.p2h-drawer-body h4{margin:16px 0 4px;color:#142238;font-size:12px}
.p2h-dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin:0}
.p2h-dl dt{color:#64748b;font-size:10px;font-weight:800}
.p2h-dl dd{margin:2px 0 0;color:#0f172a;font-size:12px}
.p2h-answers{margin:0;padding:0;list-style:none}
.p2h-answers li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #f1f5f9;font-size:12px}
.p2h-answers li>span:first-child{display:grid;gap:4px;min-width:0}
.p2h-answers li.is-nok{margin:0 -8px;padding:7px 8px;border-radius:7px;background:#fef2f2}
.p2h-answers li small{color:#7f1d1d;font-size:11px}
.p2h-ans{flex:0 0 auto;font-size:10px;font-weight:800}
.p2h-ans.is-ok{color:#15803d}.p2h-ans.is-na{color:#64748b}.p2h-ans.is-nok{color:#b91c1c}
.p2h-ans-label{display:block}
.p2h-crit-dot{display:inline-block;padding:0 4px;border-radius:4px;background:#fee2e2;color:#b91c1c;font-size:9px;font-weight:800}
.p2h-photo-row{display:flex;flex-wrap:wrap;gap:6px}
.p2h-finding-line{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
/* kepatuhan */
.p2h-grid--compliance{grid-template-columns:minmax(0,1.6fr) minmax(250px,.6fr)}
.p2h-rank{margin:0;padding:6px 13px 12px 32px}
.p2h-rank li{padding:8px 0;border-bottom:1px dashed #e2e8f0;font-size:12px}
.p2h-rank li span{font-weight:700;color:#142238}
.p2h-rank li b{float:right;color:#b91c1c;font-variant-numeric:tabular-nums}
.p2h-rank li small{display:block;color:#64748b;font-size:10px}
.p2h-rank .p2h-rank-empty{list-style:none;margin-left:-19px;border:0;color:#64748b}
/* akses APK */
.p2h-access-note{margin:0;max-width:90ch;color:#526176;font-size:12px}
.p2h-grid--access{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.p2h-grid--access .p2h-table{min-width:520px}
.p2h-field{display:grid;gap:4px;color:#475569;font-size:10px;font-weight:800}
.p2h-field input,.p2h-field textarea{box-sizing:border-box;padding:7px 9px;border:1px solid #cbd5e1;border-radius:8px;color:#0f172a;font:500 12px var(--font-body)}
.p2h-cand-list{display:grid;gap:4px;max-height:220px;overflow:auto;padding:4px;border:1px solid #e2e8f0;border-radius:9px}
.p2h-cand{display:flex;gap:8px;align-items:center;padding:6px 8px;border-radius:7px;cursor:pointer;font-size:12px}
.p2h-cand:hover{background:#fff7ed}.p2h-cand small{display:block;color:#64748b;font-size:10px}
.p2h-pin{justify-self:center;margin:4px 0;padding:10px 22px;border:1px dashed #ea580c;border-radius:12px;background:#fff7ed;color:#9a3412;font:800 30px 'IBM Plex Mono',monospace;letter-spacing:.3em}
@media(max-width:1000px){.p2h-grid--compliance,.p2h-grid--access{grid-template-columns:1fr}}
@media(max-width:560px){.p2h-filters label{min-width:calc(50% - 5px)}.p2h-filters label.is-grow{min-width:100%}.p2h-dl{grid-template-columns:1fr}.p2h-head .p2h-actions{width:100%}}
/* Impor akun massal (A5) */
.p2h-bulk-list{max-height:300px}
.p2h-bulk-all{border:1px solid #e2e8f0}
.p2h-cand[hidden]{display:none}
