.jso-modal-shell[open],.mail-reader-modal.jso-modal-shell{display:flex!important;flex-direction:column!important;padding:0!important;overflow:hidden!important;max-height:calc(100dvh - 32px)!important;border:1px solid #b5cfdf!important;border-radius:12px!important;gap:0!important;box-sizing:border-box!important;color:#17324a}
.jso-modal-shell>.jso-modal-head{position:relative!important;top:auto!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:54px!important;padding:12px 18px!important;margin:0!important;background:#dcebf5!important;color:#173b55!important;border-bottom:1px solid #b5cfdf!important;z-index:2;box-sizing:border-box}
.jso-modal-head h2,.jso-modal-head h3,.jso-modal-head b{margin:0!important;text-align:left!important;font-size:17px!important;line-height:1.3!important;min-width:0;overflow-wrap:anywhere}
.jso-modal-head .jso-modal-close{flex:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;margin:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#173b55!important;font-size:26px!important;line-height:1!important;cursor:pointer;text-decoration:none}
.jso-modal-close:hover{background:#c7deed!important}.jso-modal-close:focus-visible{outline:2px solid #286b9a;outline-offset:2px}
.jso-modal-shell>.jso-modal-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;padding:18px!important;box-sizing:border-box;width:100%}
.jso-modal-body>.release-dialog-body,.jso-modal-body>.scanner-body,.jso-modal-body>.ms-body{padding:0!important;overflow:visible!important;max-height:none!important}
.jso-modal-shell>.jso-modal-footer{flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:8px!important;padding:12px 18px!important;margin:0!important;background:#eef5fa!important;border-top:1px solid #bfd4e2!important;max-height:32dvh;overflow:auto;box-sizing:border-box}
.jso-modal-footer>.form-actions,.jso-modal-footer>.actions,.jso-modal-footer>.folder-create-actions,.jso-modal-footer>.camera-controls,.jso-modal-footer>.mail-message-actions{margin:0!important;padding:0!important;border:0!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
.jso-modal-footer button,.jso-modal-footer .btn{min-height:34px;font-size:14px}.jso-modal-footer form{margin:0!important;display:flex;flex-wrap:wrap;gap:6px}
.release-frame.jso-modal-shell>.jso-modal-body,.release-preview.jso-modal-shell>.jso-modal-body{display:flex;padding:0!important}.jso-modal-body iframe{max-width:100%;border:0}.release-frame .jso-modal-body>.release-dialog-body,.release-preview .jso-modal-body>.release-dialog-body{flex:1;display:flex;min-height:0}.release-frame .jso-modal-body iframe,.release-preview .jso-modal-body iframe{flex:1;width:100%;height:100%!important;min-height:55dvh}
.mail-rules-dialog.jso-modal-shell>.jso-modal-body,.attachment-preview-dialog.jso-modal-shell>.jso-modal-body{padding:0!important;display:flex}.mail-rules-dialog .jso-modal-body iframe,.attachment-preview-dialog .jso-modal-body iframe{width:100%;min-height:55dvh;height:100%!important}
.mail-reader-modal.jso-modal-shell{height:88dvh!important}.mail-reader-modal.maximized.jso-modal-shell{height:calc(100dvh - 16px)!important}.jso-modal-shell .mail-window-controls>div{display:flex;align-items:center;gap:6px}
@media(max-width:600px){.jso-modal-shell[open],.mail-reader-modal.jso-modal-shell{max-height:calc(100dvh - 16px)!important;max-width:calc(100vw - 16px)!important}.jso-modal-shell>.jso-modal-head,.jso-modal-shell>.jso-modal-footer{padding:10px 12px!important}.jso-modal-shell>.jso-modal-body{padding:12px!important}.jso-modal-footer button,.jso-modal-footer .btn{min-height:40px}.jso-modal-shell>.jso-modal-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}}

.jso-action-source{display:none!important}.jso-camera-actions{display:flex;gap:8px;flex-wrap:wrap}.jso-modal-footer [hidden]{display:none!important}
/* Keep submit controls visible in document forms opened inside modal frames. */
.embedded:not(.quick-preview) form.document-form>.form-actions{position:fixed!important;bottom:0;left:0;right:0;z-index:120;background:#eef5fa;border-top:1px solid #bfd4e2;padding:12px 18px!important;margin:0!important;display:flex;justify-content:flex-end;gap:8px}
.embedded:not(.quick-preview) form.document-form{padding-bottom:82px!important}
.jso-modal-footer .modal-action-context{font-size:12px;color:#426179;margin-right:4px}
