
/* Own PI upload is a fitted workspace; only overflowing form content scrolls. */
body:has([data-screen="proformas"]:not(.hidden) [data-proforma-editor]:not(.hidden) [data-proforma-form][data-pi-mode="upload"]:not([hidden])){overflow:hidden!important;overscroll-behavior:none;}
[data-screen="proformas"]:not(.hidden) [data-proforma-editor]:not(.hidden):has([data-proforma-form][data-pi-mode="upload"]:not([hidden])){
 position:fixed!important;top:calc(var(--pi-upload-top,80px) + 10px)!important;bottom:max(12px,env(safe-area-inset-bottom))!important;left:calc(var(--pi-upload-left,0px) + 12px)!important;right:12px!important;
 width:auto!important;max-width:880px!important;height:auto!important;min-height:0!important;margin:0 auto!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;z-index:60;padding:0!important;transform:none!important;
}
[data-proforma-editor]:has([data-proforma-form][data-pi-mode="upload"]:not([hidden]))>.panel-head{flex:0 0 auto!important;margin:0!important;padding:14px 18px!important;gap:12px!important;}
[data-proforma-editor]:has([data-proforma-form][data-pi-mode="upload"]:not([hidden]))>.panel-head h2{margin:0!important;font-size:clamp(18px,3vw,24px)!important;}
[data-proforma-editor] [data-proforma-form][data-pi-mode="upload"]:not([hidden]){flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;max-width:100%;padding:0 18px 18px!important;scroll-behavior:auto!important;}
[data-proforma-form][data-pi-mode="upload"] [data-pi-instruction]{margin:8px 0 12px!important;}
@media(max-width:600px){[data-proforma-editor]:has([data-proforma-form][data-pi-mode="upload"]:not([hidden]))>.panel-head{padding:12px!important;}[data-proforma-editor] [data-proforma-form][data-pi-mode="upload"]:not([hidden]){padding:0 12px 12px!important;}}
