/* Q62: a conventional two-level navigation and compact, always-visible master entry. */
body.classic .app-shell{grid-template-columns:176px minmax(0,1fr)}
body.classic .sidebar{width:176px;padding:10px 0 0;height:100dvh;overflow:hidden;background:#f6f7f8;position:sticky;top:0}
body.classic .sidebar .brand{flex:none;padding:3px 17px 12px}
body.classic .sidebar nav{display:block;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;margin:8px 0 0;padding:0 7px 8px;scrollbar-width:thin}
body.classic .sidebar nav button{font-size:12px;line-height:18px;min-height:29px;padding:5px 11px;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:0;text-align:left}
body.classic .sidebar nav>button{margin-bottom:6px}
body.classic .sidebar .erp-nav-group{margin:0 0 4px}
body.classic .sidebar button.erp-nav-heading{display:flex;justify-content:space-between;align-items:center;font-weight:600;background:#eef0f2;color:#414d59;min-height:31px;gap:7px}
body.classic .sidebar .erp-nav-heading span{font-size:12px}
body.classic .sidebar .erp-nav-heading:hover{background:#e5e9ed}
body.classic .sidebar .erp-nav-chevron{color:#788590;display:block}
body.classic .sidebar .erp-nav-heading[aria-expanded=false] .erp-nav-chevron{transform:rotate(-90deg)}
body.classic .sidebar .erp-nav-items{border-left:1px solid #d7dde3;margin:3px 0 4px 13px;padding-left:0}
body.classic .sidebar .erp-nav-items button{padding-left:14px;border-left:3px solid transparent;min-height:28px}
body.classic .sidebar .erp-nav-items button.active{border-left-color:#4b6e8d;background:#e4ecf3;color:#284e71;font-weight:600}
body.classic .sidebar .contains-current>.erp-nav-heading{color:#284e71}
body.classic .sidebar .sidebar-footer{flex:none;margin:0;padding:7px;border-top:1px solid #d7dde3}
body.classic .sidebar .sidebar-footer button{font-size:12px;min-height:30px}
body.classic #workspaceMenuToggle{display:none}
body.classic .topbar h1{font-size:12px;color:#4b5a68}
body.classic .document-tabs{flex-wrap:wrap}
body.classic .document-open-switcher{display:flex;align-items:center;gap:5px;margin:2px 0 2px auto;font-size:11px;min-width:0}
body.classic .document-open-switcher[data-overflow=false]{display:none}
body.classic .document-open-switcher select{width:145px;max-width:100%;height:27px;min-height:27px;padding:2px 5px;font-size:12px;border:1px solid #c7d0db;background:white}
body.classic #app .section-intro:has(+.panel #masterForm),body.classic #app .section-intro:has(+.panel #foundationForm),body.classic #app .section-intro:has(+.panel #uomForm){padding:0;margin-bottom:8px}
body.classic #app .section-intro .back-link{font-size:11px;padding:2px 5px;min-height:22px;margin-bottom:5px}
body.classic #app .panel:has(>#masterForm),body.classic #app .panel:has(>#foundationForm),body.classic #app .panel:has(>#uomForm){padding:10px;margin-top:8px}
body.classic #app .panel:has(>#masterForm) .section-head,body.classic #app .panel:has(>#foundationForm) .section-head,body.classic #app .panel:has(>#uomForm) .section-head{margin:0 0 8px;min-height:0}
body.classic #app :is(#masterForm,#foundationForm,#uomForm){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;align-items:start;margin:0;padding:0}
body.classic #app :is(#masterForm,#foundationForm,#uomForm)>*{grid-area:auto;min-width:0;align-self:start}
body.classic #app :is(#masterForm,#foundationForm,#uomForm)>label{display:flex;flex-direction:column;gap:3px;margin:0;font-size:12px}
body.classic #app :is(#masterForm,#foundationForm,#uomForm)>:is(p,.form-hint,.form-error){font-size:11px;line-height:1.5;margin:0;grid-column:1/-1}
body.classic #app :is(#masterForm,#foundationForm,#uomForm)>.form-hint{order:2}
body.classic #app :is(#masterForm,#foundationForm,#uomForm)>.form-error:empty{display:none}
body.classic #app :is(#masterForm,#foundationForm,#uomForm)>button[type=submit]{align-self:end;width:auto;justify-self:start;min-width:88px;max-width:100%}
body.classic #app :is(#masterForm,#foundationForm,#uomForm) textarea{height:29px;min-height:29px;resize:vertical;max-height:120px}
body.classic #app :is(#masterForm,#foundationForm,#uomForm) input:not([type=checkbox]),body.classic #app :is(#masterForm,#foundationForm,#uomForm) select{height:28px;min-height:28px;font-size:12px}
body.classic #app :is(#masterForm,#foundationForm,#uomForm) small{font-size:11px;line-height:1.4}
body.classic #app #foundationForm .party-role-options{display:flex;flex-wrap:wrap;gap:4px}
body.classic #app #foundationForm .party-role-options label{padding:3px 6px;border-radius:0;min-height:28px}
body.classic #app #foundationForm fieldset{padding:0;margin:0;min-width:0;border:0}
body.classic #app #foundationForm fieldset label{font-size:12px}
body.classic #app .master-data-table .master-grid-actions .record-actions{display:flex;flex-wrap:wrap;align-items:center;gap:3px}
body.classic #app .master-grid-actions button{padding:3px 6px;min-height:24px}
@media(min-width:701px) and (max-width:1099px){
 body.classic .app-shell{grid-template-columns:158px minmax(0,1fr)}body.classic .sidebar{width:158px}
 body.classic #app :is(#masterForm,#foundationForm,#uomForm){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 body.classic .document-tabs .document-tab:not(.active){display:none}
 body.classic .document-tabs .document-open-switcher{display:flex;flex:1 1 180px;justify-content:flex-end}
 body.classic .app-shell{display:block}
 body.classic #workspaceMenuToggle{display:block;min-height:40px;padding:8px 12px}
 body.classic .sidebar{display:none;position:fixed;inset:0 auto 0 0;width:min(280px,80vw);z-index:80;height:100dvh;border-right:1px solid #bcc6d1;box-shadow:6px 0 20px #0002}
 body.classic.workspace-menu-open .sidebar{display:flex}
 body.classic.workspace-menu-open #workspaceMenuToggle{position:fixed;left:min(285px,81vw);top:8px;z-index:81;background:white}
 body.classic .sidebar nav{display:block}
 body.classic .sidebar nav button:not([hidden]){min-height:42px;font-size:14px}
 body.classic .sidebar .erp-nav-heading span{font-size:14px}
 body.classic .workspace{padding:0 8px 16px}
 body.classic .topbar{gap:8px;justify-content:start}
 body.classic .topbar-actions{margin-left:auto}
 body.classic #app :is(#masterForm,#foundationForm,#uomForm){grid-template-columns:minmax(0,1fr)}
 body.classic #app :is(#masterForm,#foundationForm,#uomForm) input:not([type=checkbox]),body.classic #app :is(#masterForm,#foundationForm,#uomForm) select,body.classic #app :is(#masterForm,#foundationForm,#uomForm)>button{min-height:44px;height:auto;font-size:16px}
}
@media print{body.classic #workspaceMenuToggle{display:none!important}}
