/* Shared native document viewer. No DevExpress internal selectors. */
.dgl-embedded-page .deglar-topbar, .dgl-embedded-page .deglar-sidebar,
.dgl-embedded-page .dgl-dapebell { display:none !important; }
.dgl-embedded-page .deglar-shell, .dgl-embedded-page .deglar-body { height:100dvh; min-height:0; }
.dgl-embedded-page .deglar-content { width:100%; max-width:none; margin:0; padding:8px; }
.dgl-document-preview { display:flex; flex-direction:column; width:100%; min-height:0; min-width:0; }
.dgl-document-preview-toolbar { display:flex; flex:0 0 auto; gap:4px; align-items:center; padding:4px 6px; min-height:36px; border-bottom:1px solid var(--dgl-border-cool); background:#fff; }
.dgl-document-preview-toolbar strong { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.dgl-document-preview-toolbar .dgl-btn { flex-shrink:0; white-space:nowrap; font-size:11px; padding:3px 6px; }
.dgl-document-preview-toolbar [aria-pressed="true"] { background:var(--dgl-active-bg); color:var(--dgl-primary,#003366); }
.dgl-document-content { position:relative; display:flex; flex:1 1 auto; flex-direction:column; min-height:0; min-width:0; overflow:auto; background:#f3f4f6; }
.dgl-document-content-frame { flex:1 1 auto; min-height:0; width:100%; height:100%; border:0; background:#f3f4f6; }
.dgl-destination-frame { flex:1 1 auto; min-height:0; width:100%; height:100%; border:0; background:#fff; }
.dgl-destination-surface { position:relative; display:flex; flex:1 1 auto; min-height:0; min-width:0; background:#fff; }
.dgl-destination-loading { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:24px; text-align:center; color:var(--dgl-muted); font-size:13px; }
.dgl-destination-surface[data-loading="true"] > .dgl-destination-frame { visibility:hidden; }
.dgl-destination-surface[data-loading="false"] > .dgl-destination-loading { display:none; }
.dgl-document-content-image { display:block; max-width:100%; object-fit:contain; margin:auto; }
.dgl-document-content-message { padding:18px; text-align:center; font-size:12px; color:var(--dgl-muted); }
.dgl-document-content-alternatives { display:flex; flex:0 0 auto; flex-wrap:wrap; justify-content:center; align-items:center; gap:4px 16px; padding:4px 8px; font-size:11px; }
.dgl-document-content-alternatives:not(:has(a:not([hidden]))) { display:none; }
.dgl-document-content-fallback { align-self:center; margin:0; }
.dgl-document-content [hidden] { display:none !important; }
.dgl-pdf-reader { display:flex; flex:1 1 0; flex-direction:column; min-height:0; min-width:0; }
.dgl-pdf-reader.dgl-pdf-native { flex:0 0 auto; }
.dgl-pdf-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:4px; padding:5px; background:#fff; border-bottom:1px solid #ddd; }
.dgl-pdf-toolbar .dgl-btn, .dgl-pdf-toolbar span { font-size:11px; }
.dgl-pdf-toolbar input { width:48px; padding:3px; border:1px solid #ccc; border-radius:3px; }
.dgl-pdf-page { flex:1; min-height:0; overflow:auto; padding:12px 0; }
.dgl-pdf-page canvas { display:block; margin:auto; background:#fff; box-shadow:0 1px 5px #0003; }
.dgl-pdf-page details { padding:8px; font-size:12px; overflow-wrap:anywhere; }
.dgl-pdf-mobile-reading .dgl-pdf-toolbar { gap:4px; padding:4px; }
.dgl-pdf-mobile-reading .dgl-pdf-toolbar .dgl-btn { min-width:44px; min-height:44px; font-size:16px; padding:8px; }
.dgl-pdf-mobile-reading .dgl-pdf-toolbar output { font-size:14px; min-width:42px; text-align:center; }
.dgl-pdf-mobile-reading .dgl-pdf-toolbar input { font-size:16px; min-height:44px; }
.dgl-pdf-mobile-reading .dgl-pdf-page { padding:4px 0; overscroll-behavior:contain; touch-action:pan-x pan-y; }
.dgl-document-dialog { position:fixed; padding:0; border:1px solid var(--dgl-border-cool); border-radius:4px; background:#fff; color:var(--dgl-text,#333); box-shadow:0 6px 28px #0003; overflow:visible; }
.dgl-document-dialog:not([open]) { display:none; }
.dgl-document-dialog[open] { display:flex; flex-direction:column; }
.dgl-document-dialog[data-mode="popup"] { width:94vw; max-width:1600px; height:94dvh; max-height:94dvh; margin:auto; }
.dgl-document-dialog[data-mode="right"] { margin:0; max-width:none; max-height:none; z-index:450; }
.dgl-document-dialog::backdrop { background:#0006; }
.dgl-document-dialog .dgl-document-content { border-radius:0 0 4px 4px; }
.dgl-document-resize { display:none; }
.dgl-document-dialog[data-mode="right"] .dgl-document-resize { display:block; position:absolute; left:-9px; top:0; bottom:0; width:9px; cursor:col-resize; touch-action:none; }
.dgl-document-resize::after { content:""; position:absolute; left:3px; top:40%; height:20%; width:3px; border-radius:2px; background:#aeb8c4; }
.dgl-document-resize:focus-visible { outline:2px solid var(--dgl-interactive); }
.dgl-document-dialog.is-resizing iframe { pointer-events:none; }
@media (max-width:700px) {
    .dgl-document-preview-toolbar { flex-wrap:wrap; }
    .dgl-document-preview-toolbar strong { flex-basis:100%; }
    .dgl-document-dialog[data-mode="popup"] { width:98vw; height:96dvh; max-height:96dvh; }
}
