/* Tambahan khusus halaman preview statis (di atas style.css dari compare tool). */

.pv .cmp-layout.is-bulk { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 1100px) { .pv .cmp-layout.is-bulk { grid-template-columns: minmax(0, 1fr); } }

.pv-list-panel { position: sticky; top: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.pv-list-panel .panel-body { flex: 1; min-height: 0; display: flex; }
.pv-list-panel .panel-body.stack { flex-direction: column; }
.pv-captures { flex: 1; min-height: 160px; max-height: none; }
@media (max-width: 1100px) { .pv-list-panel { position: static; max-height: none; } .pv-captures { max-height: 50vh; } }

/* tanpa tombol hapus → kolom terakhir dibuang */
.pv .cmp-cap { grid-template-columns: 64px minmax(0, 1fr) auto auto auto; }
.pv .cmp-cap:focus-visible { outline-offset: -2px; }

/* ringkasan jumlah */
.pv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.pv-stats:empty { display: none; }
.pv-stats div { padding: 10px 16px; border-left: 1px solid var(--line-soft); }
.pv-stats div:first-child { border-left: 0; }
.pv-stats span { display: block; font: 700 10px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.pv-stats b { display: block; font: 700 24px/1.2 var(--mono); margin-top: 2px; }
.pv-stats .ok b { color: var(--ok); }
.pv-stats .bad b { color: var(--bad); }

/* Expected Result & Catatan: hanya baca */
.pv-expected { display: flex; align-items: center; min-height: 36px; padding: 6px 10px; border: 1px solid var(--ink); background: var(--panel); font-weight: 700; font-size: 13px; }
.pv-expected.ok { color: var(--ok); }
.pv-expected.bad { color: var(--bad); }
.pv-expected small { margin-left: 8px; font-weight: 400; color: var(--ink-3); font-size: 11px; }
.pv-note { min-height: 36px; max-height: 120px; overflow: auto; padding: 6px 8px; border: 1px solid var(--ink); background: var(--panel); font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-note.auto { color: var(--ink-3); }
.cmp-review .field > label span { float: right; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); }

/* tombol salin di header kolom JSON */
.pv .cmp-side-h { display: flex; align-items: center; gap: 0; }
.pv .cmp-side-h span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pv-copy { appearance: none; flex: none; border: 0; background: transparent; font: 700 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; cursor: pointer; }
.pv-copy:hover { background: var(--ink); color: var(--paper); }
.pv-copy.done { background: var(--ok); color: #fff; }

.pv .cmp-view { overflow: auto; min-height: 0; flex: 1; }
.pv-empty-data { max-width: 640px; margin: 60px auto; text-align: left; }
.pv-empty-data code { background: var(--panel-2); padding: 1px 4px; }
