/* Shared reserved-area overlays: one scroll region, flexible headers and unobstructed fields. */
body.ftaps-app .ft435-page-dialog[open]{display:flex!important;flex-direction:column;width:min(1200px,calc(100vw - 16px))!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;box-sizing:border-box}
body.ftaps-app .ft435-page-header{flex:0 0 auto;min-width:0;flex-wrap:wrap;gap:10px!important}
body.ftaps-app .ft435-page-header strong{flex:1 1 180px;min-width:0;overflow-wrap:anywhere;line-height:1.4}
body.ftaps-app .ft435-page-header button{flex:0 0 auto;margin:0!important;min-height:44px!important}
body.ftaps-app .ft435-page-frame{flex:1 1 0;min-height:0!important;height:auto!important;width:100%!important}
body.ftaps-app .ft435-page-dialog::backdrop{background:#10243b88}
body.ftaps-app .ftaps-modal>header{display:flex;align-items:flex-start;flex-wrap:nowrap;gap:12px;box-sizing:border-box}
body.ftaps-app .ftaps-modal>header h2{font-size:clamp(18px,2.5vw,24px)!important;line-height:1.35!important;margin:0;overflow-wrap:anywhere}
body.ftaps-app .ftaps-modal>header>div{flex:1 1 auto;min-width:0}
body.ftaps-app .ftaps-modal-close{flex:0 0 44px!important;width:44px!important;min-height:44px!important;padding:0!important;margin:0!important}
/* Multiple sticky action rows used to cover one another and the final inputs. */
body.ftaps-app .ft415-editor-body :is(.ftdoc-savebar,.form-actions,.ftm-form-actions,.oq-calendar-form-actions),
body.ftaps-app .ft415-editor-footer{position:static!important;gap:10px!important}
body.ftaps-app :is(.ft415-editor-body,.ftaps-form-body) :is(select,textarea,input){box-sizing:border-box;max-width:100%}
body.ftaps-app :is(.ft415-editor-body,.ftaps-form-body) select{white-space:normal;height:auto;line-height:1.4}
body.ftaps-app .ft429-row-menu{overscroll-behavior:contain;touch-action:pan-y}
body.ftaps-app .ft429-row-menu :is(a,button,summary){white-space:normal!important;overflow-wrap:anywhere;line-height:1.4!important;min-height:44px!important;height:auto!important}
body.ftaps-app :is(.ft415-editor-footer,.ftaps-form-footer){display:flex;flex-wrap:wrap;align-items:center;gap:10px!important}
body.ftaps-app :is(.ft415-editor-footer,.ftaps-form-footer)>:is(button,a){margin:0!important;min-width:0;max-width:100%;white-space:normal!important}
@media(max-width:700px){
 body.ftaps-app .ftaps-modal>header{padding:12px!important}
 body.ftaps-app .ft415-editor-body{padding:14px!important}
 body.ftaps-app :is(.ft415-editor-footer,.ftaps-form-footer)>:is(button,a){flex:1 1 140px;min-height:44px!important}
 body.ftaps-app :is(.ft415-editor-body,.ftaps-form-body) :is(input,textarea,select){font-size:16px!important}
 body.ftaps-app .ft430-manager{max-height:calc(100dvh - 24px)!important;overflow:auto;overscroll-behavior:contain}
}
