/* Navegação lateral NEPO+: camada visual isolada, sem alterar rotas ou permissões. */
body .sidebar.sidebar-pro{
  display:flex;flex-direction:column;box-sizing:border-box;width:270px!important;padding:14px 10px 10px!important;
  background:radial-gradient(circle at 20% 0,rgba(28,111,216,.18),transparent 30%),linear-gradient(180deg,#04162e 0%,#062140 52%,#031a34 100%);
  box-shadow:10px 0 28px rgba(1,12,29,.13);color:#fff;overflow:hidden!important;
}
.sidebar-pro .sidebar-top-row{margin:0 2px 10px!important}
.sidebar-pro .sidebar-home-shortcut{
  position:relative;min-height:44px;margin:0!important;padding:8px 12px!important;
  border:1px solid rgba(72,145,242,.25);border-radius:14px!important;background:rgba(22,93,191,.14);
  color:#dceaff!important;font-size:.82rem;font-weight:750;letter-spacing:0;overflow:hidden;
}
.sidebar-pro .sidebar-home-shortcut::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#ff9d16;opacity:0}
.sidebar-pro .sidebar-home-shortcut svg{width:20px;height:20px;stroke-width:1.85}
.sidebar-pro .sidebar-home-shortcut:hover{border-color:rgba(89,159,245,.48);background:rgba(26,107,218,.22)!important;color:#fff!important;transform:none}
.sidebar-pro .sidebar-home-shortcut.active{border-color:rgba(61,135,235,.5);background:linear-gradient(90deg,rgba(26,112,230,.3),rgba(15,66,147,.2))!important;color:#fff!important}
.sidebar-pro .sidebar-home-shortcut.active::before{opacity:1}

.sidebar-pro .sidebar-company-profile{margin:0 2px 12px}
.sidebar-pro .sidebar-company-profile>.brand-pro{
  min-height:78px!important;margin:0!important;padding:11px!important;gap:11px!important;
  border:1px solid rgba(128,174,224,.19);border-radius:15px!important;background:rgba(7,37,73,.56)!important;
  box-shadow:none!important;
}
.sidebar-pro .sidebar-company-profile>.brand-pro:hover,.sidebar-pro .sidebar-company-profile[open]>.brand-pro{
  border-color:rgba(117,174,235,.38)!important;background:rgba(12,51,94,.82)!important;box-shadow:none!important;
}
.sidebar-pro .brand-mark{width:50px!important;height:50px!important;flex-basis:50px!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}
.sidebar-pro .sidebar-brand-copy>strong{font-size:.91rem!important;font-weight:750!important;letter-spacing:0!important}
.sidebar-pro .sidebar-brand-copy>small{margin-top:3px!important;color:#9db8d9!important;font-size:.75rem!important;font-weight:550!important}
.sidebar-pro .sidebar-company-chevron{width:20px;height:20px;flex-basis:20px;stroke:#a9c3e2;stroke-width:2}
.sidebar-pro .sidebar-company-profile[open] .sidebar-company-chevron{stroke:#fff}

.sidebar-pro .sidebar-search-trigger{
  min-height:48px;width:calc(100% - 4px);margin:0 2px 18px;padding:10px 12px;
  border:1px solid rgba(125,169,213,.24);border-radius:14px;background:rgba(3,25,53,.32);color:#afc5e0;
  font-size:.84rem;font-weight:550;
}
.sidebar-pro .sidebar-search-trigger:hover{border-color:rgba(135,187,240,.5);background:rgba(22,71,123,.36);color:#edf6ff}
.sidebar-pro .sidebar-search-trigger svg{width:20px;height:20px;stroke-width:1.8}
.sidebar-pro .sidebar-search-trigger kbd{padding:5px 7px;border-radius:8px;background:rgba(89,139,201,.16);color:#c4d7ee;font-size:.67rem;font-weight:650}
.sidebar-pro .sidebar-nav-pro .sidebar-printer-shortcut{position:relative;display:flex!important;order:23;align-items:center;gap:10px;min-height:60px;width:100%;max-width:100%;box-sizing:border-box;margin:2px 0!important;padding:8px 9px!important;border:1px solid rgba(110,161,215,.18)!important;border-radius:12px!important;background:rgba(5,35,69,.24)!important;color:#fff!important;box-shadow:none!important}.sidebar-pro .sidebar-printer-shortcut:hover,.sidebar-pro .sidebar-printer-shortcut.active{border-color:rgba(104,169,239,.34)!important;background:rgba(12,56,106,.36)!important;color:#fff!important}.sidebar-pro .sidebar-printer-shortcut .side-icon{display:grid!important;place-items:center;width:36px!important;height:36px!important;flex:0 0 36px!important;margin:0!important;border:1px solid rgba(109,162,221,.14)!important;border-radius:50%!important;background:rgba(65,119,178,.17)!important;color:#b6d2f3!important}.sidebar-pro .sidebar-printer-shortcut .side-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar-pro .sidebar-printer-shortcut strong{min-width:0;flex:1;color:#f8fbff!important;font-size:.9rem;font-weight:700;line-height:1.12}.sidebar-pro .sidebar-printer-shortcut strong small{display:block;margin-top:4px;overflow:hidden;color:#b6cce4!important;font-size:.73rem;font-weight:550;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.sidebar-pro .sidebar-printer-shortcut .side-chevron{display:grid!important;place-items:center;width:22px;height:28px;flex:0 0 22px;margin-left:auto!important;color:#d1e1f3!important}.sidebar-pro .sidebar-printer-shortcut .side-chevron::after{content:"";width:9px;height:9px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}

/* Sobrescreve a grade legada: em uma grade as linhas eram comprimidas para
   caber na altura do menu e os cards ficavam visualmente cortados. */
body .sidebar.sidebar-pro .sidebar-nav-pro.side-accordion{display:flex!important;width:100%;max-width:100%;align-self:stretch;box-sizing:border-box;flex:1 1 auto;flex-direction:column;gap:0!important;min-height:0;margin:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain}
.sidebar-pro .sidebar-nav-pro::-webkit-scrollbar{display:none}
.sidebar-pro .side-section-label{order:1;margin:16px 1px 8px;padding:0;color:#7ea8dc;font-size:.67rem;font-weight:800;letter-spacing:.16em}
.sidebar-pro .side-section-label:after{margin-left:4px;background:rgba(142,191,239,.16)}
.sidebar-pro .side-section-label:first-child{margin-top:0}
 .sidebar-pro .side-accordion-group{position:relative;order:2;flex:0 0 auto;width:100%;max-width:100%;align-self:stretch;box-sizing:border-box;margin:2px 0!important;border:1px solid rgba(110,161,215,.18)!important;border-radius:12px!important;background:rgba(5,35,69,.24)!important;overflow:hidden!important;box-shadow:none!important;transition:border-color .16s ease,background .16s ease}
.sidebar-pro .side-accordion-summary{
  position:relative;display:flex!important;width:100%;max-width:100%;min-width:0;box-sizing:border-box;align-items:center;gap:12px;min-height:63px;padding:9px 8px!important;
  border:0!important;border-radius:11px!important;background:transparent!important;color:#fff!important;cursor:pointer;list-style:none;
  transition:background .16s ease,color .16s ease;
}
body .sidebar.sidebar-pro .sidebar-nav-pro.side-accordion .side-accordion-summary{min-height:60px!important;padding:8px 9px!important;gap:10px!important}
.sidebar-pro .side-accordion-summary::-webkit-details-marker{display:none}
.sidebar-pro .side-accordion-summary::before{content:"";position:absolute;inset:6px auto 6px -1px;width:3px;border-radius:3px;background:#ff9d16;opacity:0;transition:opacity .16s}
.sidebar-pro .side-accordion-group:hover{border-color:rgba(104,169,239,.34)!important;background:rgba(12,56,106,.36)!important}.sidebar-pro .side-accordion-group:hover>.side-accordion-summary{background:rgba(33,99,179,.15)!important}
.sidebar-pro .side-accordion-group.is-current{border-color:rgba(61,139,236,.4)!important;background:rgba(13,68,132,.3)!important}.sidebar-pro .side-accordion-group.is-current>.side-accordion-summary{background:linear-gradient(90deg,rgba(26,108,220,.34),rgba(23,79,150,.13))!important;box-shadow:inset 0 0 0 1px rgba(57,139,239,.18)}
.sidebar-pro .side-accordion-group.is-current>.side-accordion-summary::before{opacity:1}
.sidebar-pro .side-accordion-group.is-current>.side-accordion-summary strong{color:#fff!important}
.sidebar-pro .side-accordion-group.is-current .side-icon{border-color:rgba(71,158,251,.42)!important;background:rgba(18,105,216,.26)!important;color:#b9dbff!important}
body .sidebar.sidebar-pro .sidebar-nav-pro.side-accordion .side-accordion-summary .side-icon{
  display:grid!important;place-items:center;width:36px!important;height:36px!important;flex:0 0 36px!important;margin:0!important;
  border:1px solid rgba(109,162,221,.14)!important;border-radius:50%!important;background:rgba(65,119,178,.17)!important;color:#b6d2f3!important;
}
.sidebar-pro .side-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-pro .side-accordion-summary strong{min-width:0;flex:1;color:#f8fbff!important;font-size:.9rem;font-weight:700;line-height:1.12}
.sidebar-pro .side-accordion-summary strong small{display:block;margin-top:4px;overflow:hidden;color:#b6cce4!important;font-size:.73rem;font-weight:550;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
/* O HTML legado ainda possui o caractere &rsaquo;. Mantemos somente a seta
   desenhada abaixo, evitando que as duas apareçam ao mesmo tempo. */
body .sidebar.sidebar-pro .sidebar-nav-pro.side-accordion .side-chevron{display:grid!important;place-items:center;width:22px;height:28px;flex:0 0 22px;margin-left:auto!important;color:#d1e1f3!important;font-size:0!important;line-height:0!important;opacity:.95}
.sidebar-pro .side-chevron::after{content:"";width:9px;height:9px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);transition:transform .16s ease,color .16s ease}
.sidebar-pro .side-accordion-group[open]>.side-accordion-summary .side-chevron{color:#fff!important}.sidebar-pro .side-accordion-group[open]>.side-accordion-summary .side-chevron::after{transform:rotate(135deg)}
.sidebar-pro .side-menu-badge{min-width:25px;height:25px;margin-left:0;padding:0 7px;background:#ef4444;box-shadow:0 4px 10px rgba(239,68,68,.2);font-size:.69rem}
.sidebar-pro .side-submenu{display:grid;gap:2px;margin:0 0 7px 61px!important;padding:2px 0 5px!important;border:0!important;background:transparent!important}
.sidebar-pro .side-submenu-link{min-height:30px;margin:0!important;padding:6px 9px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#a9c3df!important;font-size:.72rem!important;font-weight:600!important}
.sidebar-pro .side-submenu-link:hover,.sidebar-pro .side-submenu-link.active{background:rgba(57,129,221,.18)!important;color:#fff!important;box-shadow:inset 2px 0 0 #ff9d16!important}
.sidebar-pro .side-submenu-heading{margin:8px 0 3px;color:#78a6d9;font-size:.59rem}.sidebar-pro .side-submenu-heading:after{background:rgba(142,191,239,.14)}

/* Ordem visual da área operacional sem mudar links, condições ou submenus. */
.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Vendas"]){order:2}
.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Orçamentos"]){order:3}
.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Clientes e Veículos"]){order:4}
.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Produtos e Estoque"]){order:5}
.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Serviços"]){order:6}
.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Financeiro"]){order:7}
.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Agenda"]),.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="WhatsApp"]){order:8}
.sidebar-pro .side-section-label:nth-of-type(2){order:20}.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Catálogo"]){order:21}.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Relatórios"]){order:22}
.sidebar-pro .side-section-label:nth-of-type(3){order:30}.sidebar-pro .side-nav-link[href$="/settings/printers"]{order:31}.sidebar-pro .side-accordion-group:has(.side-accordion-summary[data-label="Administração"]){order:32}

.sidebar-pro .sidebar-footer{position:sticky;z-index:2;bottom:0;display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;margin:12px 2px 0!important;padding:8px 0 0!important;border:0!important;border-top:1px solid rgba(139,185,230,.18)!important;border-radius:0!important;background:#031a34!important}
.sidebar-pro .side-bottom-toggle{margin-left:auto!important;border-color:rgba(126,171,219,.2)!important;background:rgba(52,106,166,.13)!important;color:#aec8e5!important}

@media(min-width:1001px){body .main{margin-left:270px}}
body.sidebar-collapsed .sidebar.sidebar-pro{width:270px!important;padding:14px 10px 10px!important}
body.sidebar-collapsed .sidebar-pro .sidebar-nav-pro{overflow:hidden}
@media(max-width:1000px){
  body .sidebar.sidebar-pro{width:min(260px,84vw);padding:13px 10px 10px}
  body .sidebar.sidebar-pro .sidebar-nav-pro.side-accordion{overflow-y:auto!important;overflow-x:hidden!important}
}
