/* ASN ERP 4.9.94 — correção canônica de navegação; carregar por último no HEAD. */
:root{--asn-side-compact:68px;--asn-side-expanded:226px;--asn-side-bkg:#071521;
 --asn-side-border:#1b3142;--asn-side-active:#d62f4b;}
html body.asn-nav-ready.asn-layout-v4994{margin:0!important;max-width:100vw!important;box-sizing:border-box!important;}
@media (min-width:901px){
 html body.asn-nav-ready.asn-layout-v4994{--asn-nav-w:var(--asn-side-compact)!important;--sidebar-width:var(--asn-nav-w)!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-side-expanded{--asn-nav-w:var(--asn-side-expanded)!important;--sidebar-width:var(--asn-nav-w)!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar.asn-sidebar.sidebar{
  width:var(--asn-nav-w)!important;min-width:var(--asn-nav-w)!important;max-width:var(--asn-nav-w)!important;
  left:0!important;right:auto!important;top:0!important;bottom:0!important;height:100dvh!important;
  padding:0!important;box-sizing:border-box!important;overflow:hidden!important;
  position:fixed!important;z-index:10020!important;
  background:var(--asn-side-bkg)!important;box-shadow:3px 0 15px rgba(7,21,33,.14)!important;
  transition:width .18s ease,min-width .18s ease,max-width .18s ease!important;
 }
 /* Classe explícita adicionada a todos os containers de tela, inclusive os sem main-content. */
 html body.asn-nav-ready.asn-layout-v4994 > .asn-app-main{
  margin-left:var(--asn-nav-w)!important;margin-right:0!important;
  width:calc(100% - var(--asn-nav-w))!important;max-width:calc(100vw - var(--asn-nav-w))!important;
  min-width:0!important;box-sizing:border-box!important;
  flex:1 1 auto!important;position:relative;
  padding-left:clamp(16px,2.1vw,30px)!important;padding-right:clamp(16px,2.1vw,30px)!important;
 }
 html body.asn-nav-ready.asn-layout-v4994 .asn-app-main > :is(.grid,.cards,.stats,.toolbar,.table-container){min-width:0;max-width:100%;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar .asn-nav-brand{
  height:69px!important;min-height:69px!important;flex:0 0 69px!important;
  padding:9px 11px!important;gap:9px!important;box-sizing:border-box!important;
 }
 html body.asn-nav-ready.asn-layout-v4994 #sidebar .asn-nav-mark{
  width:35px!important;min-width:35px!important;height:35px!important;font-size:16px!important;border-radius:10px!important;
 }
 html body.asn-nav-ready.asn-layout-v4994 #sidebar nav{padding:7px 6px 8px!important;overflow-x:hidden!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar a.asn-nav-link{
  min-height:40px!important;margin:2px 0!important;gap:9px!important;
  padding:8px!important;font:700 11px/1.3 Inter,system-ui,sans-serif!important;
 }
 html body.asn-nav-ready.asn-layout-v4994 #sidebar a.asn-nav-link .asn-nav-icon{width:23px!important;min-width:23px!important;flex:0 0 23px!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar a.asn-nav-link .asn-nav-icon svg{width:19px!important;height:19px!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar .asn-nav-company{margin:8px 7px 3px!important;padding:8px!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar .asn-nav-group{padding:11px 8px 5px!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar .asn-nav-footer{padding:6px 7px 7px!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar .asn-nav-footer-grid{gap:4px!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar .asn-nav-footer-grid button{
  box-sizing:border-box!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:35px!important;
  padding:6px 3px!important;font-size:11px!important;
 }
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-brand{
  padding:9px 7px!important;justify-content:center!important;
 }
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-brand-text,
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-company,
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-group,
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-label,
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-chip,
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-cloud,
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-user{display:none!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar a.asn-nav-link{justify-content:center!important;padding:8px 3px!important;gap:0!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar .asn-nav-footer-grid button{font-size:0!important;height:33px!important;min-height:33px!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-side-expanded #sidebar .asn-nav-label{display:block!important;font-size:11px!important;line-height:1.3!important;white-space:normal!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-side-expanded #sidebar .asn-nav-brand-text{display:block!important;min-width:0!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-side-expanded #sidebar .asn-nav-company{display:block!important;}
}
/* O botão é sempre parte do rodapé da barra. Sem largura herdada de botões das telas. */
html body.asn-nav-ready.asn-layout-v4994 #sidebar #asn-side-mode-toggle{
 all:unset!important;display:grid!important;place-items:center!important;position:static!important;
 box-sizing:border-box!important;width:31px!important;height:31px!important;
 min-width:31px!important;max-width:31px!important;min-height:31px!important;max-height:31px!important;
 margin:0 0 5px auto!important;padding:0!important;overflow:hidden!important;
 border:1px solid #425569!important;background:#152637!important;color:#dce6f2!important;
 border-radius:8px!important;box-shadow:none!important;cursor:pointer!important;
 font:inherit!important;line-height:1!important;transform:none!important;
}
html body.asn-nav-ready.asn-layout-v4994.asn-side-collapsed #sidebar #asn-side-mode-toggle{margin:0 auto 5px!important;}
html body.asn-nav-ready.asn-layout-v4994 #sidebar #asn-side-mode-toggle:hover{background:#273c4d!important;border-color:#7792a5!important;}
html body.asn-nav-ready.asn-layout-v4994 #sidebar #asn-side-mode-toggle:focus-visible{outline:2px solid #e35c74!important;outline-offset:2px!important;}
html body.asn-nav-ready.asn-layout-v4994 #sidebar #asn-side-mode-toggle svg{display:block!important;width:17px!important;height:17px!important;pointer-events:none!important;}
html body.asn-nav-ready.asn-layout-v4994 > #asn-side-mode-toggle{display:none!important;}
html body.asn-nav-ready.asn-layout-v4994 .asn-app-main :is(.table-container,.table-responsive,.table-wrap,.scroll,.data-table-wrap){max-width:100%;overflow-x:auto;}
html body.asn-nav-ready.asn-layout-v4994 .asn-app-main :is(.card,.panel,.metric-card){min-width:0;}
@media(max-width:900px){
 html body.asn-nav-ready.asn-layout-v4994{--asn-nav-w:0px!important;--sidebar-width:0px!important;}
 html body.asn-nav-ready.asn-layout-v4994 #sidebar.asn-sidebar.sidebar{
   width:min(280px,calc(100vw - 44px))!important;
   min-width:0!important;max-width:min(280px,calc(100vw - 44px))!important;
   height:100dvh!important;top:0!important;bottom:0!important;transform:translateX(-105%)!important;
   transition:transform .18s ease!important;
 }
 html body.asn-nav-ready.asn-layout-v4994 #sidebar.asn-sidebar.sidebar.show,
 html body.asn-nav-ready.asn-layout-v4994 #sidebar.asn-sidebar.sidebar.open{transform:translateX(0)!important;}
 html body.asn-nav-ready.asn-layout-v4994 > .asn-app-main{
   margin:0!important;width:100%!important;max-width:100vw!important;min-width:0!important;
   box-sizing:border-box!important;flex:1 1 auto!important;
   padding-left:clamp(12px,3.5vw,22px)!important;padding-right:clamp(12px,3.5vw,22px)!important;
   padding-top:max(72px,env(safe-area-inset-top))!important;
 }
 html body.asn-nav-ready.asn-layout-v4994 #asn-side-mode-toggle{display:none!important;}
 html body.asn-nav-ready.asn-layout-v4994 #asn-nav-mobile{width:39px!important;height:39px!important;min-width:39px!important;min-height:39px!important;
 top:12px!important;left:12px!important;z-index:10040!important;line-height:1!important;padding:0!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-mobile-menu-open{overflow:hidden!important;}
 html body.asn-nav-ready.asn-layout-v4994.asn-mobile-menu-open #asn-nav-mobile{
   left:calc(min(280px,100vw - 44px) - 48px)!important;
   background:#263a4d!important;
 }
 @media(max-width:600px){
  html body.asn-nav-ready.asn-layout-v4994 > .asn-app-main :is(.cards,.kpi-grid,.metrics-grid){
   grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;
  }
  html body.asn-nav-ready.asn-layout-v4994 > .asn-app-main :is(.header-actions,.toolbar){flex-wrap:wrap;}
 }
}
@media(prefers-reduced-motion:reduce){html body.asn-nav-ready.asn-layout-v4994 #sidebar.asn-sidebar.sidebar{transition:none!important;}}
