/* Keep close/download reachable while the worksheet itself scrolls. */
.confirm-modal.document-preview-modal:has(iframe[data-portal-excel]){display:flex;flex-direction:column;height:min(900px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden;min-width:0}
.document-preview-modal:has(iframe[data-portal-excel])>.confirm-head,.document-preview-modal:has(iframe[data-portal-excel])>.modal-actions{flex:none}
.document-preview-modal:has(iframe[data-portal-excel]) .confirm-head h2{overflow-wrap:anywhere;font-size:clamp(15px,2vw,22px);margin:4px 0}
.document-preview-modal:has(iframe[data-portal-excel]) .disposition-attachment-preview{display:flex;flex:1;min-height:0;min-width:0}
.document-preview-modal iframe[data-portal-excel]{display:block;flex:1;height:100%;min-height:0;min-width:0;width:100%;border:1px solid #d6e0eb;border-radius:8px;background:#fff}
