/* Menu lateral restaurado para o modelo anterior, preservando o restante do painel moderno. */
:root{--sidebar-width:250px;--legacy-menu-blue:#248bff;--legacy-menu-blue-strong:#0d6efd}

body.panel-modern .sidebar-wrapper{
  width:250px!important;
  background:linear-gradient(180deg,#0a0a0a 0%,#111 60%,#090909 100%)!important;
  border-right:1px solid rgba(36,139,255,.40)!important;
  box-shadow:0 0 2rem rgba(3,17,31,.30)!important;
  overflow:hidden!important;
  transition:width .2s ease-out,transform .24s ease!important;
}
body.panel-modern .sidebar-header{
  width:250px!important;
  min-height:60px!important;
  height:60px!important;
  padding:0 15px!important;
  gap:0!important;
  background:transparent!important;
  border-bottom:1px solid rgba(36,139,255,.42)!important;
  transition:width .2s ease-out!important;
}
body.panel-modern .legacy-logo-wrap{width:45px;height:45px;display:grid;place-items:center;flex:0 0 45px}
body.panel-modern .sidebar-header .logo-icon{width:45px!important;height:45px!important;object-fit:contain!important;border-radius:8px!important;margin:0!important;padding:0!important;background:transparent!important}
body.panel-modern .legacy-logo-copy{min-width:0;overflow:hidden}
body.panel-modern .sidebar-header .logo-text{font-size:20px!important;margin:0 0 0 6px!important;letter-spacing:.6px!important;color:#fff!important;font-weight:800!important;white-space:nowrap!important}
body.panel-modern .sidebar-header .toggle-icon{
  width:auto!important;height:auto!important;padding:4px!important;border:0!important;background:transparent!important;
  color:var(--legacy-menu-blue)!important;font-size:24px!important;display:grid!important;place-items:center!important;cursor:pointer!important;box-shadow:none!important
}
body.panel-modern .sidebar-nav{
  flex:1;min-height:0;padding:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  scrollbar-width:thin;scrollbar-color:rgba(36,139,255,.72) rgba(255,255,255,.04);
  overscroll-behavior:contain
}
body.panel-modern .sidebar-nav::-webkit-scrollbar{width:7px}
body.panel-modern .sidebar-nav::-webkit-scrollbar-track{background:rgba(255,255,255,.04)}
body.panel-modern .sidebar-nav::-webkit-scrollbar-thumb{background:rgba(36,139,255,.72);border-radius:999px}
body.panel-modern .sidebar-nav::-webkit-scrollbar-thumb:hover{background:var(--legacy-menu-blue)}
body.panel-modern .sidebar-nav .simplebar-wrapper,
body.panel-modern .sidebar-nav .simplebar-content-wrapper{overflow:visible!important;height:auto!important}
body.panel-modern .sidebar-nav .simplebar-track{display:none!important}
body.panel-modern .sidebar-wrapper .metismenu{
  display:flex!important;flex-direction:column!important;margin:60px 0 0!important;padding:10px!important;
  border-left:8px solid var(--legacy-menu-blue-strong)!important;border-image-slice:1!important;
  border-image-source:linear-gradient(180deg,#111,var(--legacy-menu-blue),var(--legacy-menu-blue-strong))!important
}
body.panel-modern .sidebar-wrapper .metismenu>li{display:flex!important;flex-direction:column!important;position:relative!important}
body.panel-modern .sidebar-wrapper .metismenu li+li{margin-top:5px!important}
body.panel-modern .sidebar-wrapper .metismenu .legacy-credit-row{padding:4px 12px 7px!important;color:#fff!important;font-weight:700!important;letter-spacing:.3px!important}
body.panel-modern .sidebar-wrapper .metismenu .menu-label{
  margin:0!important;padding:20px 15px 5px 5px!important;color:rgba(255,255,255,.68)!important;
  text-transform:uppercase!important;font-size:12px!important;font-weight:700!important;letter-spacing:.5px!important
}
body.panel-modern .sidebar-wrapper .metismenu a{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
  min-height:0!important;margin:0!important;padding:8px 15px!important;border-radius:10px!important;
  border:0!important;border-left:5px solid rgba(36,139,255,.62)!important;
  color:rgba(255,255,255,.92)!important;background:transparent!important;box-shadow:none!important;
  font-size:15px!important;font-weight:700!important;letter-spacing:.25px!important;overflow:hidden!important
}
body.panel-modern .sidebar-wrapper .metismenu a:hover,
body.panel-modern .sidebar-wrapper .metismenu a:focus,
body.panel-modern .sidebar-wrapper .metismenu a:active,
body.panel-modern .sidebar-wrapper .metismenu .mm-active>a,
body.panel-modern .sidebar-wrapper .metismenu a.active{
  color:#fff!important;text-decoration:none!important;border-left-color:var(--legacy-menu-blue)!important;
  background:linear-gradient(90deg,rgba(36,139,255,.28) 0%,rgba(36,139,255,.10) 65%,rgba(0,0,0,0) 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(36,139,255,.18)!important
}
body.panel-modern .sidebar-wrapper .metismenu .parent-icon{
  width:auto!important;height:auto!important;min-width:24px!important;border-radius:0!important;display:grid!important;place-items:center!important;
  background:transparent!important;color:var(--legacy-menu-blue)!important;font-size:23px!important
}
body.panel-modern .sidebar-wrapper .metismenu .parent-icon i{color:inherit!important;font-size:inherit!important}
body.panel-modern .sidebar-wrapper .metismenu a:hover .parent-icon,
body.panel-modern .sidebar-wrapper .metismenu .mm-active>a .parent-icon,
body.panel-modern .sidebar-wrapper .metismenu a.active .parent-icon{color:#fff!important;background:transparent!important}
body.panel-modern .sidebar-wrapper .metismenu .menu-title{margin-left:10px!important;color:inherit!important;flex:1!important;min-width:0!important}
body.panel-modern .sidebar-wrapper .metismenu ul{
  margin:4px 0 4px!important;padding:5px!important;border:1px solid rgba(36,139,255,.20)!important;
  border-left:1px solid rgba(36,139,255,.20)!important;background:rgba(255,255,255,.05)!important;border-radius:12px!important
}
body.panel-modern .sidebar-wrapper .metismenu ul a{
  min-height:0!important;margin:0!important;padding:7px 12px!important;border:0!important;border-radius:8px!important;
  color:rgba(255,255,255,.86)!important;font-size:14px!important;font-weight:600!important;background:transparent!important
}
body.panel-modern .sidebar-wrapper .metismenu ul a:hover,
body.panel-modern .sidebar-wrapper .metismenu ul a.active{color:#fff!important;background:rgba(36,139,255,.18)!important}
body.panel-modern .sidebar-wrapper .metismenu ul a i{margin-right:9px!important;color:var(--legacy-menu-blue)!important;font-size:15px!important}
body.panel-modern .sidebar-wrapper .metismenu .has-arrow:after{right:16px!important;width:.5em!important;height:.5em!important;border-color:var(--legacy-menu-blue)!important}
body.panel-modern .sidebar-wrapper .simplebar-scrollbar:before{background:rgba(36,139,255,.55)!important}

@media (min-width:1025px){
  body.panel-modern .wrapper.toggled .sidebar-wrapper{width:70px!important;transform:none!important}
  body.panel-modern .wrapper.toggled .sidebar-header{width:70px!important;padding:0!important;justify-content:center!important}
  body.panel-modern .wrapper.toggled .legacy-logo-wrap,
  body.panel-modern .wrapper.toggled .legacy-logo-copy{display:none!important}
  body.panel-modern .wrapper.toggled .sidebar-header .toggle-icon{margin:0!important;display:grid!important}
  body.panel-modern .wrapper.toggled .sidebar-wrapper .metismenu{padding:10px 5px!important;border-left-width:5px!important}
  body.panel-modern .wrapper.toggled .sidebar-wrapper .metismenu>li>a{justify-content:center!important;padding:9px 6px!important;border-left-width:3px!important}
  body.panel-modern .wrapper.toggled .sidebar-wrapper .metismenu .menu-title,
  body.panel-modern .wrapper.toggled .sidebar-wrapper .metismenu li ul,
  body.panel-modern .wrapper.toggled .sidebar-wrapper .metismenu li.menu-label,
  body.panel-modern .wrapper.toggled .sidebar-wrapper .metismenu .legacy-credit-row,
  body.panel-modern .wrapper.toggled .sidebar-wrapper .metismenu .has-arrow:after{display:none!important}
  body.panel-modern .wrapper.toggled .topbar{left:70px!important}
  body.panel-modern .wrapper.toggled .page-wrapper,
  body.panel-modern .wrapper.toggled .page-footer{margin-left:70px!important}
}

@media (max-width:1024px){
  body.panel-modern .sidebar-wrapper{width:250px!important}
  body.panel-modern .sidebar-header{width:250px!important}
  body.panel-modern .sidebar-wrapper .metismenu{margin-top:60px!important}
  body.panel-modern .sidebar-header .toggle-icon{color:var(--legacy-menu-blue)!important}
}
