@layer feedbackFiveLayout {
/* Approved feedback 5 layout. Preserve geometry in future releases unless requested. */
@media screen and (min-width:900px){
 body.zace-desktop #modal#modal#modal#modal:has(#tradeForm) .modal-content{min-height:0!important}
 body.zace-desktop #modal#modal#modal#modal #tradeForm>.form-grid{gap:5px 10px!important;padding:8px!important}
 body.zace-desktop #modal#modal#modal#modal #tradeForm>.actions{position:sticky!important;top:auto!important;bottom:0!important;z-index:45;background:#e4eef9!important;border:1px solid #9fb9d8;padding:7px!important;display:flex!important;gap:8px;flex-wrap:wrap}
 body.zace-desktop #modal#modal#modal#modal #tradeForm>.table-wrap:has(#tradeLines){min-height:180px!important;max-height:clamp(180px,36dvh,430px)!important;overflow:auto!important;scrollbar-gutter:stable;overflow-anchor:none}
 body.zace-desktop #modal#modal#modal#modal #tradeForm #tradeTotal{font-size:15px!important;font-weight:bold;margin:5px 0!important;min-height:22px}
 body.zace-desktop #modal#modal#modal#modal:has(#multiManufacturingForm){max-height:calc(100dvh - 150px)!important}
 body.zace-desktop #modal#modal#modal#modal #multiManufacturingForm>.mf-saved-actions{position:sticky!important;top:0!important;z-index:40!important;order:-1;margin:0 0 6px!important;padding:7px!important;background:#e4eef9!important}
 body.zace-desktop #modal#modal#modal#modal #multiManufacturingForm>.mf-saved-actions p{font-size:11px!important}
 body.zace-desktop #modal#modal#modal#modal .mf-record-navigation{position:sticky!important;top:0!important;z-index:45;background:#e4eef9!important;padding:7px;display:flex;flex-wrap:wrap;gap:7px}
 body.zace-desktop #modal#modal#modal#modal .mf-raw-overview{max-height:105px!important;overflow:auto!important;scrollbar-gutter:stable}
 #modalBody{scrollbar-gutter:stable;overflow-anchor:none}
}

 .feedback5-line-tools{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;margin:5px 0!important}.feedback5-line-tools>*{width:auto!important;flex:0 0 auto!important}.feedback5-line-tools .document-row-insertion{display:inline-flex!important} }
@layer feedbackFiveLayout {.feedback5-totals{display:block!important;flex-basis:100%;font:600 12px/1.7 Tahoma;color:#153c70;white-space:normal;overflow-wrap:anywhere}.feedback5-line-tools>[data-purchase-new-item]{min-width:120px!important}}@layer feedbackFiveLayout {
/* User annotated manufacturing screen, 24 Nov: one raw-material grid, no repeated overview. */
body.zace-desktop #modal#modal#modal#modal #multiManufacturingForm.manufacturing-reference-form .manufacturing-reference-section>.manufacturing-reference-grid{height:auto!important;min-height:80px!important;max-height:clamp(180px,42dvh,520px)!important;overflow:auto!important}
body.zace-desktop #modal#modal#modal#modal #multiManufacturingForm .manufacturing-reference-footer{min-height:0!important;height:auto!important;gap:4px!important;margin-bottom:0!important;padding:5px!important}
}
