.oh-entry{display:flex;justify-content:flex-end;margin:0 0 16px}
.oh-entry .oh-open{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.oh-dialog{--oh-bg:#fff;--oh-panel:#f4f7fc;--oh-line:#dbe4ef;--oh-text:#172331;--oh-muted:#50647d;--oh-accent:#235ce9;position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;padding:0;border:1px solid var(--oh-line);border-radius:20px;background:var(--oh-bg);color:var(--oh-text);width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 32px);box-shadow:0 24px 80px #0c1b334a;overflow:hidden}
.oh-dialog[open]{display:flex;flex-direction:column}
.oh-dialog [hidden]{display:none!important}
.oh-dialog::backdrop{background:#0b14299c;backdrop-filter:blur(3px)}
.oh-header{display:flex;align-items:center;gap:16px;padding:22px 24px;border-bottom:1px solid var(--oh-line)}
.oh-emblem{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:14px;background:#245be917;color:var(--oh-accent)}
.oh-emblem .ui-icon{width:24px;height:24px}
.oh-header small,.oh-footer small{font-size:12px;color:var(--oh-muted)}
.oh-header small{font-weight:700;letter-spacing:.06em}
.oh-header h2{font-size:clamp(20px,3vw,27px);line-height:1.2;margin:4px 0;color:var(--oh-text)}
.oh-header p{font-size:13px;margin:0;color:var(--oh-muted)}
.oh-close{margin-left:auto;font-size:21px;align-self:flex-start}
.oh-filters,.oh-detail-nav{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:14px 24px;background:var(--oh-panel);border-bottom:1px solid var(--oh-line)}
.oh-filters label{min-width:0;display:grid;flex:1 1 120px;gap:5px;font-size:12px;color:var(--oh-muted);font-weight:700}
.oh-filters .oh-search{flex:2 1 190px}
.oh-filters input,.oh-filters select{width:100%;min-width:0;height:40px;padding:0 9px;border:1px solid var(--oh-line);border-radius:9px;background:var(--oh-bg);color:var(--oh-text);font:inherit;font-weight:500}
.oh-filter-buttons,.oh-footer>div{display:flex;flex-wrap:wrap;gap:8px}
.oh-content{flex:1 1 auto;min-height:110px;overflow:auto;padding:14px 24px}
.oh-message{margin:0 0 10px;color:var(--oh-muted)}
.oh-message:empty{display:none}
.oh-list{display:grid;gap:7px}
.oh-row{width:100%;display:grid;grid-template-columns:112px minmax(0,1fr) auto 12px;gap:14px;align-items:center;text-align:left;border:1px solid var(--oh-line);border-radius:12px;background:var(--oh-bg);padding:10px 12px;color:var(--oh-text);cursor:pointer;font:inherit}
.oh-row:hover,.oh-row:focus-visible{border-color:var(--oh-accent);background:var(--oh-panel)}
.oh-row-name{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.oh-row small,.oh-row time{color:var(--oh-muted);font-size:12px}
.oh-chevron{font-size:23px;color:var(--oh-accent)}
.oh-tag{justify-self:start;font-size:12px;font-weight:700;padding:4px 8px;border-radius:999px;background:#245be918;color:var(--oh-accent)}
.oh-tag[data-action=create]{background:#0f9f6c18;color:#138254}
.oh-tag[data-action=delete]{background:#f34a5e19;color:#be2c49}
.oh-tabs{display:flex;gap:5px;padding:4px;background:var(--oh-bg);border:1px solid var(--oh-line);border-radius:10px}
.oh-tabs button{padding:8px 11px;color:var(--oh-muted);border:0;border-radius:6px;background:none;font:inherit;cursor:pointer}
.oh-tabs [aria-pressed=true]{background:var(--oh-panel);color:var(--oh-accent);font-weight:700}
.oh-detail h3{color:var(--oh-text);margin:4px 0 12px}
.oh-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin:0 0 12px}
.oh-summary>div,.oh-payload{padding:11px;border:1px solid var(--oh-line);border-radius:10px}
.oh-summary dt{color:var(--oh-muted);font-size:12px}
.oh-summary dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}
.oh-payload{margin-bottom:8px}
.oh-payload summary{cursor:pointer;font-weight:700}
.oh-json{white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;margin:8px 0 0;border-radius:10px;background:var(--oh-panel);color:var(--oh-text);font:13px/1.6 ui-monospace,monospace}
.oh-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--oh-line);padding:12px 24px}
html[data-theme=dark] .oh-dialog,body[data-ui-mode=dark] .oh-dialog,body.dark .oh-dialog,body[data-admin-theme=dark-mode] .oh-dialog{--oh-bg:#141d2a;--oh-panel:#1e2939;--oh-line:#35445a;--oh-text:#f0f5ff;--oh-muted:#b1c2d8;--oh-accent:#8caaff}
body[data-ui-mode=dark] .oh-tag[data-action=create]{color:#7ae2b4}
body[data-ui-mode=dark] .oh-tag[data-action=delete]{color:#ffa0b0}
@media(max-width:620px){
 .oh-header,.oh-filters,.oh-detail-nav,.oh-content,.oh-footer{padding-left:12px;padding-right:12px}
 .oh-header{gap:9px}
 .oh-emblem{width:36px;height:36px}
 .oh-filters{gap:6px}
 .oh-filters label{flex-basis:105px}
 .oh-filters input,.oh-filters select{height:34px}
 .oh-row{grid-template-columns:auto minmax(0,1fr) 12px;gap:4px 8px}
 .oh-row time{grid-column:2}
 .oh-chevron{grid-column:3;grid-row:1/3}
 .oh-footer .btn{padding:6px 8px}
}


/* Riwayat is mounted outside page-specific wrappers so their popup rules cannot reposition it. */
html body dialog#ohDialog.oh-dialog[open]{
 position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;translate:none!important;
 width:min(960px,calc(100vw - 28px))!important;min-width:0!important;max-width:calc(100vw - 28px)!important;
 height:min(740px,calc(100dvh - 28px))!important;min-height:0!important;max-height:calc(100dvh - 28px)!important;
 padding:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;
 border-radius:20px!important;box-sizing:border-box!important
}
#ohDialog>.oh-header,#ohDialog>.oh-footer{position:static!important;inset:auto!important;flex:none!important;width:auto!important;height:auto!important;min-height:0!important;box-shadow:none!important}
#ohDialog .oh-content{min-height:0}
#ohDialog .oh-filters{display:grid;grid-template-columns:minmax(160px,1.4fr) repeat(4,minmax(105px,1fr))}
#ohDialog .oh-filters[hidden],#ohDialog [hidden]{display:none!important}
.oh-latest{margin:12px 24px 0;padding:10px 14px;border:1px solid var(--oh-line);border-radius:12px;background:var(--oh-panel);display:flex;align-items:center;justify-content:space-between;gap:12px}
.oh-latest div{display:grid;gap:3px;min-width:0}.oh-latest small{color:var(--oh-muted)}
.oh-results{overflow:auto;margin:12px 0;border:1px solid var(--oh-line);border-radius:10px}
.oh-results table{width:100%;border-collapse:collapse;font-size:12px}
.oh-results :is(td,th){padding:9px;text-align:left;border-bottom:1px solid var(--oh-line);white-space:nowrap}
.oh-results th{background:var(--oh-panel)}
.oh-result-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#ohDialog .oh-summary>div{display:grid;gap:4px}
#ohDialog .oh-summary dd{text-align:left;margin:0}
#ohDialog .oh-tab-button{white-space:nowrap}
@media(max-width:700px){
 #ohDialog .oh-filters{grid-template-columns:repeat(2,minmax(0,1fr));overflow:auto;max-height:28dvh;flex:none}
 #ohDialog .oh-search{grid-column:1/-1}
 .oh-latest{margin:8px 12px 0}
 #ohDialog .oh-header{padding-top:12px;padding-bottom:12px}
 #ohDialog .oh-footer{flex-wrap:wrap}
}

.oh-entry.oh-inline{margin:0;display:inline-flex}
.oh-result-controls input{border:1px solid var(--oh-line);border-radius:8px;background:var(--oh-bg);color:var(--oh-text);padding:7px 9px;max-width:100%}
