/* Visor de adjuntos (3.5.2; .fn8-visor del sistema anterior). Encima de todo, también de un modal. */
.erp-viewer-overlay { position: fixed; inset: 0; z-index: 20000; display: none; flex-direction: column; background: rgba(15, 23, 42, .88); }
.erp-viewer-overlay.is-open { display: flex; }
.erp-viewer__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: #fff; flex: 0 0 auto; }
.erp-viewer__title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.erp-viewer__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff !important; cursor: pointer; text-decoration: none !important; }
.erp-viewer__btn:hover, .erp-viewer__btn:focus { background: rgba(255, 255, 255, .25); outline: none; }
.erp-viewer__body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 0 14px 14px; }
.erp-viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; cursor: zoom-in; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.erp-viewer__img.is-zoom { max-width: none; max-height: none; cursor: zoom-out; align-self: flex-start; }
.erp-viewer__frame { width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }
.erp-viewer__note { flex: 0 0 auto; padding: 0 14px 12px; color: rgba(255, 255, 255, .8); font-size: 12px; text-align: center; }
.erp-viewer__note:empty { display: none; }
.erp-viewer__note a { color: #fff; text-decoration: underline; }
