/* Pratinjau: dialog Buka ala macOS dan penampil teks. Tema gelap. */
.app-pratinjau { border-radius:16px; background:#1e1e21; }
.app-pratinjau .titlebar { position:absolute; top:0; left:0; right:0; z-index:5; height:52px; padding-left:20px; background:none; border:0; border-radius:16px 16px 0 0; }
.app-pratinjau .win-title { display:none; }
.app-pratinjau .win-body { position:relative; overflow:hidden; border-radius:16px; background:#1e1e21; }
.window.is-maximized.app-pratinjau .win-body { border-radius:0; }

.pv { --bg:#1e1e21; --pane:#28282b; --line:#38383c; --ink:#ececee; --mut:#98989f; --acc:#0a84ff;
  position:absolute; inset:0; color:var(--ink); background:var(--bg); outline:0; display:flex; flex-direction:column;
  font:13px/1.4 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif; }
:where(.pv) :where(button, input) { font:inherit; color:inherit; }
:where(.pv button) { background:none; }
.pv [hidden] { display:none !important; }
.pv :focus-visible { outline:2px solid #6aa9ff; outline-offset:1px; }
.pv svg { display:block; }
.pv-fill { flex:1; pointer-events:none !important; }
.pv-ic { display:inline-grid; place-items:center; flex:none; color:#6cb0ff; }
.pv-ib { display:inline-grid; place-items:center; min-width:30px; height:28px; padding:0 6px; border:0; border-radius:7px; color:var(--mut); cursor:default; } .pv-ib:hover:not(:disabled) { background:#ffffff14; color:var(--ink); } .pv-ib:disabled { opacity:.35; } .pv-ib.is-on { background:#ffffff22; color:var(--ink); }
.pv-aa { font-size:13px; font-weight:600; }
.pv-blank { flex:1; }

/* penampil */
.pv-view { flex:1; min-height:0; display:flex; flex-direction:column; }
.pv-bar { position:relative; z-index:6; pointer-events:none; flex:none; height:52px; display:flex; align-items:center; gap:6px; padding:0 14px 0 96px; border-bottom:1px solid var(--line); background:transparent; }
.pv-bar > * { pointer-events:auto; } .pv-bar > .pv-title { pointer-events:none; }
.pv-title { display:flex; flex-direction:column; line-height:1.2; min-width:0; margin-left:6px; } .pv-title b { font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .pv-title span { color:var(--mut); font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pv-fq { width:190px; }
.pv-content { flex:1; min-height:0; display:flex; position:relative; }
.pv-scroll { flex:1; min-width:0; overflow:auto; background:#19191b; outline:0; }
.pv-text { padding:10px 0 24px; font:var(--fs,13px)/1.5 ui-monospace,"SF Mono",Menlo,Consolas,monospace; }
.pv-line { display:flex; gap:14px; padding:0 18px 0 0; } .pv-line.is-hit { background:#ffd60a26; }
.pv-ln { flex:none; width:56px; text-align:right; color:#5f5f66; user-select:none; font-variant-numeric:tabular-nums; } .pv-lt { white-space:pre-wrap; overflow-wrap:anywhere; min-width:0; }
.pv-csv { border-collapse:collapse; margin:12px; font-size:var(--fs,13px); } .pv-csv th, .pv-csv td { padding:5px 12px; border:1px solid var(--line); text-align:left; white-space:nowrap; } .pv-csv th { background:#2a2a2e; position:sticky; top:0; } .pv-csv tr.is-hit td { background:#ffd60a26; }
.pv-img { display:block; max-width:calc(100% - 40px); max-height:calc(100% - 40px); margin:20px auto; background:#fff; border-radius:6px; }
.pv-more { padding:10px 20px; color:var(--mut); }
.pv-count { position:absolute; left:14px; bottom:12px; padding:4px 12px; border-radius:12px; background:#3a3a3eee; font-size:12px; }
.pv-info { flex:none; width:260px; padding:16px; border-left:1px solid var(--line); background:var(--pane); overflow:auto; } .pv-info h3 { margin:0 0 10px; font-size:14px; }
.pv-ir { display:flex; flex-direction:column; padding:6px 0; border-bottom:1px solid var(--line); } .pv-ik { color:var(--mut); font-size:11.5px; } .pv-iv { overflow-wrap:anywhere; }
.pv-note { color:var(--mut); font-size:12px; }
.pv-empty { padding:40px 20px; text-align:center; color:var(--mut); }
.pv-toast { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); z-index:30; padding:8px 16px; border-radius:16px; background:#3a3a3ef0; }

/* dialog Buka */
.pv-dlg-host { position:absolute; inset:0; z-index:20; display:grid; place-items:center; padding:46px 28px 28px; background:#0000002e; }
.pv-dlg { width:100%; max-width:960px; height:100%; max-height:520px; display:grid; grid-template-columns:168px minmax(0,1fr); grid-template-rows:minmax(0,1fr); border-radius:18px; background:#2b2b2f; border:1px solid #ffffff1f; box-shadow:0 20px 60px #000b; overflow:hidden; outline:0; }
.pv-dside { padding:12px 8px; overflow:auto; background:#232326; border-right:1px solid #0000004d; }
.pv-dsec { color:var(--mut); font-size:12px; font-weight:600; padding:12px 10px 4px; }
.pv-dsi { display:flex; align-items:center; gap:9px; width:100%; height:30px; padding:0 10px; border:0; border-radius:8px; text-align:left; cursor:default; } .pv-dsi:hover { background:#ffffff0e; } .pv-dsi.is-on { background:#ffffff1f; } .pv-dsi span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pv-dmain { position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; }
.pv-dtb { flex:none; display:flex; align-items:center; gap:10px; padding:12px 14px; }
.pv-dnav, .pv-seg { display:inline-flex; border-radius:10px; background:#ffffff12; }
.pv-path { display:inline-flex; align-items:center; gap:8px; height:30px; min-width:200px; padding:0 10px; border:0; border-radius:10px; background:#ffffff14; cursor:default; } .pv-path:hover { background:#ffffff1f; } .pv-path-t { flex:1; text-align:left; } .pv-path-u { color:var(--mut); }
.pv-dq { flex:0 1 auto; min-width:96px; display:flex; align-items:center; gap:6px; height:30px; padding:0 10px; border:1px solid var(--line); border-radius:10px; background:#ffffff0c; color:var(--mut); } .pv-dq:focus-within { border-color:#6aa9ff; color:var(--ink); }
.pv-dq input { width:170px; flex:1 1 40px; min-width:0; border:0; background:none; outline:0; } .pv-fq input { width:100%; }
.pv-dlist { flex:1; min-height:0; display:flex; flex-direction:column; border-top:1px solid var(--line); }
.pv-th { flex:none; display:grid; grid-template-columns:minmax(0,3fr) 90px 150px 170px; padding:0 16px 0 14px; border-bottom:1px solid var(--line); }
.pv-thc { display:flex; align-items:center; gap:4px; height:26px; padding:0 4px; border:0; color:var(--mut); font-size:12px; font-weight:600; text-align:left; cursor:default; } .pv-thc.is-on { color:var(--ink); } .pv-thc.pv-c-date { justify-content:flex-start; }
.pv-sortc { display:inline-grid; margin-left:auto; padding-right:2px; }
.pv-rows { flex:1; min-height:0; overflow:auto; padding:4px 8px; }
.pv-row { display:grid; grid-template-columns:minmax(0,3fr) 90px 150px 170px; align-items:center; height:24px; padding:0 8px; border-radius:6px; cursor:default; } .pv-row:nth-child(even) { background:#ffffff0a; } .pv-row:hover { background:#ffffff12; } .pv-row.is-sel { background:#0a84ff; color:#fff; } .pv-row.is-sel .pv-ic { color:#fff; }
.pv-filler { pointer-events:none; }
.pv-row > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:0 4px; } .pv-c-name { display:flex; align-items:center; gap:8px; } .pv-nm { overflow:hidden; text-overflow:ellipsis; } .pv-c-size, .pv-c-kind, .pv-c-date { font-variant-numeric:tabular-nums; }
.pv-dlist.is-grid { overflow:auto; } .pv-igrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; padding:14px; align-content:start; }
.pv-itile { display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 6px; border:0; border-radius:10px; cursor:default; } .pv-itile:hover { background:#ffffff10; } .pv-itile.is-sel { background:#ffffff22; } .pv-big { color:#6cb0ff; } .pv-iname { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pv-dfoot { flex:none; display:flex; justify-content:flex-end; gap:10px; padding:14px 18px; }
.pv-btn { min-width:80px; height:30px; padding:0 18px; border:0; border-radius:15px; background:#ffffff16; cursor:default; } .pv-btn:hover:not(:disabled) { background:#ffffff24; } .pv-primary { background:var(--acc); color:#fff; } .pv-primary:hover:not(:disabled) { background:#2b94ff; } .pv-btn:disabled { opacity:.45; }
.pv-pop { position:absolute; top:46px; z-index:25; min-width:210px; padding:5px; border-radius:10px; background:#3a3a3ff2; box-shadow:0 10px 30px #000a; }
.pv-pop-i { display:flex; align-items:center; gap:8px; width:100%; height:26px; padding:0 8px; border:0; border-radius:6px; text-align:left; cursor:default; } .pv-pop-i:hover { background:#0a84ff; color:#fff; } .pv-pop-i:hover .pv-ic { color:#fff; }
@media (prefers-reduced-motion: reduce) { .pv * { transition:none !important; animation:none !important; } }
/* Baris cocok yang sedang ditunjuk; penghitung di kanan bawah supaya tidak menutup kolom waktu. */
.pv-csv tr.is-current td, .pv-line.is-current { outline:2px solid #ffd60a; outline-offset:-2px; }
.pv-count { left:auto; right:14px; }
