/* Match DeltaWeb app.css / entry-screens.css: 654px above 850px,
   Product / Engineering width 1120px, standard master width 800px. */
body .locksmith-panel.entry-screen { padding:0; width:100%; margin-inline:auto; }
body .master-workbench.entry-screen { max-width:800px; }
body .product-workbench.entry-screen { max-width:1120px; }
body .bulk-master-workbench.entry-screen { max-width:800px; }
body :is(.account-workbench,.opening-stock-workbench).entry-screen { max-width:800px; }
/* Owner's BOM-specific reference: SanprasWeb uses the wider 1280px BOM frame. */
body .bom-workbench.entry-screen { max-width:1280px; }
body .locksmith-entry-content { min-width:0; }
body .entry-screen .master-fields { padding:12px; gap:7px 12px; }
body .entry-screen .structured-fields { padding:12px; gap:7px 12px; }
body .entry-screen .structured-field { gap:3px; }
body .entry-screen .master-list { margin:8px 12px; }
body .entry-screen .master-paging { padding:8px 12px; gap:8px; }
body .entry-screen .product-identity { padding:8px 12px; gap:8px; }
body .entry-screen .product-tabs { padding:8px 12px; gap:6px; }
body .entry-screen .product-field-grid { padding:12px; gap:7px 12px; }
body .entry-screen .product-editor-field { gap:3px; }
body .entry-screen .product-record-grid { margin:8px 12px; }
body .entry-screen .product-child-grid { padding:12px; }
body .entry-screen .bulk-search { padding:12px; gap:8px; }
body .entry-screen .bulk-master-grid { margin:0 12px; }
body .entry-screen > .master-actions { border-radius:0; }
body .entry-screen .locksmith-status { margin:6px 12px; }
@media(min-width:851px) {
 body .entry-screen.compact-entry { height:654px; min-height:0; display:flex; flex-direction:column; overflow:hidden; box-sizing:border-box; }
 body .entry-screen.compact-entry > :is(.vfp-title,.master-actions) { flex:0 0 auto; }
 body .entry-screen.compact-entry > .locksmith-entry-content { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
 body .entry-screen.compact-entry > .product-content { display:flex; flex-direction:column; overflow:hidden; }
 body .product-content > :is(.product-identity,.product-tabs,.master-paging,.locksmith-status) { flex:0 0 auto; }
 body .product-content > :is(.product-field-grid,.product-child-grid) { flex:1 1 auto; min-height:0; max-height:none; overflow:auto; }
 body .product-content > .product-record-grid { flex:0 1 130px; min-height:70px; max-height:130px; overflow:auto; }
 body .entry-screen.compact-entry .bulk-master-grid { max-height:none; overflow:auto; }
}
@media(max-width:850px) {
 body .entry-screen.compact-entry { height:auto; overflow:visible; }
 body .entry-screen.compact-entry > .locksmith-entry-content { overflow:visible; }
 body .entry-screen.compact-entry .product-field-grid { max-height:none; overflow:visible; }
 body .entry-screen.compact-entry :is(.product-record-grid,.bulk-master-grid,.product-child-grid) { max-height:300px; overflow:auto; }
}

body .stores-workbench.entry-screen { max-width:800px; }
body .stores-workbench .quality-control { min-width:0; }
