/* Same entry-first composition as Locksmith AccountMasterWorkbench and Chemspec source masters. */
body .entry-screen.master-workbench.source-master-frame{width:100%;max-width:800px;margin:0 auto;padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden;border:1px solid var(--locksmith-border);border-radius:8px;background:var(--locksmith-panel);color:var(--form-text);font:var(--form-size)/1.4 var(--form-font),'Nirmala UI',Mangal,sans-serif;box-shadow:0 8px 28px #203c2318}
body .entry-screen.master-workbench.source-master-frame.account-master{width:100%;max-width:1000px;height:auto;min-height:0;font-size:var(--form-size)}
body .entry-screen.master-workbench.source-master-frame.product-master{max-width:1120px}
body .source-master-frame>.section-heading.vfp-title{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:5px 12px;background:linear-gradient(110deg,var(--skin-header),var(--skin-header-end));color:#fff;border:0}
body .source-master-frame>.section-heading h1{font:700 19px/1.3 var(--form-font),'Nirmala UI',sans-serif;margin:0;color:inherit}
body .source-master-frame>.master-entry-body{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden;padding:0}
body .source-master-frame .master-tabs{display:flex;flex:0 0 auto;gap:4px;padding:8px 12px 4px;margin:0;border-bottom:1px solid var(--locksmith-border);background:var(--skin-soft);flex-wrap:wrap}
body .source-master-frame .master-tabs [aria-selected=true]{outline:none;box-shadow:inset 0 -3px var(--locksmith-green)!important;font-weight:700}
body .source-master-frame .master-editor-page{flex:1 1 auto;min-height:0;overflow:auto;padding:12px;background:var(--locksmith-panel);scrollbar-gutter:stable;overscroll-behavior:contain}
body .entry-screen.source-master-frame .master-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;align-content:start;padding:0;margin:0;border:0;background:none;overflow:visible}
body .source-master-frame .master-field{display:grid;grid-template-columns:110px minmax(0,1fr);gap:6px;align-items:start;min-width:0}
body .source-master-frame .master-field-wide{grid-column:1/-1}
body .source-master-frame .master-field label{margin:0;padding-top:5px;text-align:right;font:var(--form-size)/1.3 var(--form-font),'Nirmala UI',sans-serif;color:var(--form-text)}
body .source-master-frame .master-control{min-width:0}
body .source-master-frame :is(.master-control input:not([type=checkbox]),.master-control select){box-sizing:border-box;width:100%;min-width:0;height:var(--form-height);min-height:var(--form-height);padding:3px 7px;border:1px solid var(--locksmith-border);border-radius:4px;font:var(--form-size)/1.3 var(--form-font),'Nirmala UI',sans-serif;color:var(--form-text)}
body .source-master-frame .master-control input[type=checkbox]{width:17px;height:17px;margin:5px 0}
body .source-master-frame .master-control textarea{width:100%;min-height:100px;padding:6px;font:var(--form-size)/1.4 var(--form-font),'Nirmala UI',sans-serif}
body .source-master-frame .master-control small{display:block;grid-column:auto;font:11px/1.3 var(--form-font),'Nirmala UI',sans-serif;margin:3px 0;color:var(--skin-muted)}
body .source-master-frame .master-compact-lookup{display:grid;grid-template-columns:52px minmax(0,1fr) 28px 28px;gap:4px;align-items:center;min-width:0}
body .source-master-frame .master-compact-lookup button[data-ui-button][data-ui-button][data-ui-button]{width:28px;min-width:28px;min-height:var(--form-height);height:var(--form-height);font-size:0!important;padding:4px;gap:0;border-radius:4px}
body .source-master-frame .master-compact-lookup button::before{width:16px;height:16px;flex-basis:16px}
body .entry-screen.source-master-frame>.master-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;position:static;margin:0;padding:9px 10px;background:var(--skin-soft);border-top:1px solid var(--locksmith-border);min-height:48px}
body .entry-screen.source-master-frame>.master-actions>button{flex:0 0 auto;min-width:0;white-space:nowrap}
body .entry-screen.source-master-frame :is(.master-actions,.master-tabs) [data-ui-button][data-ui-button][data-ui-button]{font:600 var(--form-size)/1.2 var(--form-font),'Nirmala UI',sans-serif;min-height:32px;padding:6px 10px;gap:5px;border-radius:5px}
body .source-master-frame .master-record-status{display:flex;flex:0 0 auto;justify-content:space-between;gap:12px;padding:5px 12px;border-top:1px solid var(--locksmith-border);font-size:12px;color:var(--skin-muted);background:var(--locksmith-panel)}
body .source-master-frame .account-opening-more{margin:12px 0 0;max-height:none;overflow:visible;padding:7px 8px;border:1px solid var(--locksmith-border)}
body .source-master-frame .master-empty{padding:20px}
body .master-record-search{width:min(850px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;min-height:0;padding:12px}
body .master-record-search>.vfp-title{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--skin-soft);padding:7px 10px}
body .master-record-search h2{font-size:18px;margin:0}
body .master-record-search .search-bar{flex:0 0 auto;margin:10px 0;gap:8px}
body .master-record-search .search-bar input{flex:1;min-width:100px;width:auto;height:var(--form-height);padding:4px 7px}
body .master-record-search .master-browser{flex:1 1 auto;min-height:0;padding:0}
body .master-record-search .master-list{max-height:min(380px,48dvh);min-height:120px;margin:0;border:1px solid var(--locksmith-border)}
body .master-record-search :is(th,td){padding:5px 8px;font:var(--form-size)/1.4 var(--form-font),'Nirmala UI',sans-serif}
body .master-record-search .paging{flex:0 0 auto;padding:8px 0;margin:0;gap:8px}
body .master-record-search>.actions{flex:0 0 auto;padding:8px 0;margin:0}
@media(min-width:851px){body .entry-screen.master-workbench.source-master-frame,body .entry-screen.master-workbench.source-master-frame.account-master{height:654px;max-height:none;min-height:0}}
@media(max-width:850px){body .entry-screen.master-workbench.source-master-frame,body .entry-screen.master-workbench.source-master-frame.account-master{height:auto;max-height:none;min-height:0}body .source-master-frame>.master-entry-body{overflow:visible}body .source-master-frame .master-editor-page{overflow:visible}body .source-master-frame .master-fields{grid-template-columns:1fr}body .source-master-frame .master-field-wide{grid-column:auto}body .source-master-frame .master-field{grid-template-columns:100px minmax(0,1fr)}body .source-master-frame .master-actions{justify-content:flex-start}body .master-record-search .search-bar label{flex-basis:100%}}
@media(max-width:430px){body .source-master-frame .master-field{grid-template-columns:90px minmax(0,1fr)}body .source-master-frame .master-compact-lookup{grid-template-columns:42px minmax(0,1fr) 26px 26px;gap:3px}body .source-master-frame .master-compact-lookup button[data-ui-button][data-ui-button][data-ui-button]{width:26px;min-width:26px}body .source-master-frame .master-editor-page{padding:10px 7px}}
body .source-master-frame.product-master>.master-entry-body>.product-detail-layout{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}body .source-master-frame.product-master .product-panel:not([hidden]){flex:1 1 auto;min-height:0;overflow:auto}body .source-master-frame.product-master :is(.product-identity,.product-tabs){flex:0 0 auto}

body .source-master-frame>.vfp-title .eyebrow{display:none}body .source-master-frame.city-master .entry-fields{display:grid;grid-template-columns:1fr;gap:12px;max-width:620px;padding:0;margin:0 auto}body .source-master-frame.city-master .entry-fields>div{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:8px}body .source-master-frame.city-master .entry-fields label{margin:0;text-align:right}body .source-master-frame.city-master .entry-fields input{min-height:var(--form-height);height:var(--form-height);padding:3px 7px}body .source-master-frame.grid-master-frame>.master-entry-body{padding:12px;gap:8px}body .grid-master-frame .master-entry-body>:is(label,.lookup-field,.search-bar,p,.paging,.master-actions){flex:0 0 auto;margin:0}body .grid-master-frame .master-entry-body>:is(.bulk-grid,.stock-grid){flex:1 1 auto;min-height:150px;max-height:none;margin:0}body .grid-master-frame .master-entry-body>.master-actions{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0;margin-top:auto}body .source-master-frame .master-actions>button{white-space:nowrap}@media(max-width:850px){body .grid-master-frame>.master-entry-body{overflow:visible}body .grid-master-frame .master-entry-body>:is(.bulk-grid,.stock-grid){max-height:55dvh}body .source-master-frame.city-master .entry-fields>div{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:850px){body .entry-screen.master-workbench.source-master-frame .master-fields{grid-template-columns:minmax(0,1fr)}body .entry-screen.master-workbench.source-master-frame .master-field-wide{grid-column:auto}body .entry-screen.master-workbench.source-master-frame .master-field{min-width:0}}
