/* OSPrimeApp 5.7 — Base / layout global */
body.premium-ui .main {
  min-width: 0 !important;
  max-width: 100% !important;
}
body.premium-ui .topbar.glass-header > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.page-tabs {
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-x: visible;
  overflow-y: visible;
  padding: 0 2px;
}

/* 5.7.3: estas condições prevalecem sobre o display dos componentes. */
html body.premium-ui #nav .hidden,
html body.premium-ui #nav .desktop-section-item-hidden:not(.desktop-search-hidden),
html body.premium-ui .sidebar .hidden { display:none !important; }
html body.premium-ui #nav.desktop-searching .desktop-section-item-hidden:not(.hidden):not(.desktop-search-hidden) { display:grid !important; }
@media(min-width:769px){
 html body.premium-ui .main > #page-orders,
 html body.premium-ui .main > #page-clients,
 html body.premium-ui .main > #page-parts,
 html body.premium-ui .main > #page-finance {width:100% !important;max-width:none !important;margin-left:0 !important;margin-right:0 !important;}
}
#partsTable th:last-child,#partsTable td:last-child,
#clientsTable th:last-child,#clientsTable td:last-child,
#financeTable th:last-child,#financeTable td:last-child {position:sticky;right:0;background:var(--bg-surface,#101d30);z-index:2;box-shadow:-6px 0 12px rgba(0,0,0,.12);}
html body.premium-ui :is(#partsTable,#clientsTable,#financeTable) :is(th,td):last-child {background:#101a2b !important;}
html body.premium-ui.theme-light :is(#partsTable,#clientsTable,#financeTable) :is(th,td):last-child {background:#fff !important;}
/* Os mesmos filtros permanecem na faixa com contadores. */
html body.premium-ui #orderFilterBar {display:none !important;}
form[aria-busy="true"] button[type="submit"]{cursor:wait;opacity:.7;}
