.mfn-document-preview-actions { display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
.mfn-document-preview-actions .dx-button { min-height:32px; }
.mfn-document-preview { display:flex; flex-direction:column; height:100%; min-height:0; gap:10px; }
.mfn-document-preview__header { overflow:hidden; color:var(--mfn-primary); font-size:13px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.mfn-document-preview__toolbar { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; }
.mfn-document-preview__toolbar > div:nth-child(2) { min-width:110px; color:var(--mfn-primary); font-size:13px; font-weight:800; text-align:center; }
.mfn-document-preview__canvas-wrap { position:relative; display:flex; min-height:0; flex:1 1 auto; align-items:flex-start; justify-content:center; overflow:auto; padding:14px; border:1px solid var(--mfn-line); border-radius:12px; background:#eef1f8; user-select:none; }
.mfn-document-preview__canvas-wrap.is-loading::after { position:absolute; inset:0; display:grid; place-items:center; color:var(--mfn-primary); background:rgba(238,241,248,.78); content:'Preparando página protegida…'; font-size:14px; font-weight:700; }
.mfn-document-preview__canvas { display:block; width:auto; max-width:none; height:auto; border-radius:4px; background:#fff; box-shadow:0 10px 28px rgba(27,43,85,.16); pointer-events:none; }
.mfn-document-preview__note { color:var(--mfn-muted); font-size:11px; }
.mfn-document-preview__canvas-wrap.is-fit-page { align-items:center; }
.mfn-document-preview--solo-imagen { position:relative; gap:0; }
.mfn-document-preview--solo-imagen .mfn-document-preview__canvas-wrap { padding:8px; border:0; border-radius:0; }
.mfn-document-preview__pagina { position:absolute; right:16px; bottom:12px; padding:3px 10px; border-radius:12px; color:#fff; background:rgba(27,43,85,.7); font-size:12px; font-weight:700; pointer-events:none; }

@media (max-width:640px) {
  .mfn-document-preview-actions { align-items:flex-start; flex-direction:column; }
  .mfn-document-preview-actions .dx-button { width:100%; }
  .mfn-document-preview__toolbar { justify-content:stretch; }
  .mfn-document-preview__toolbar > div { flex:1 1 auto; }
  .mfn-document-preview__toolbar .dx-button { width:100%; }
  .mfn-document-preview__canvas-wrap { padding:8px; }
}

@media print {
  .mfn-document-preview { display:none !important; }
}
