#sidebar {
  width: 18rem;
  height: 100vh;
  z-index: 1000;
  transition: all 0.4s ease-in-out;
  background-color: #fff;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  display: flex;
  flex-direction: column;
  position: fixed;
}

/* * {
  scrollbar-width: none;
} */

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-bottom: 1.5rem!important;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
    background: #F4F4F4;
}

.sidebar-nav::-webkit-scrollbar-track {
    background-color: #F4F4F4;
    border-radius: 20px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0,105,183, 0.4);
    border-radius: 20px;
}

a.sidebar-link, button.sidebar-link {
  width: 100%;
  padding: 0.6rem 0.5rem;
  color: var(--cor-primaria);
  display: inline-flex;
  font-size: 1rem;
  font-weight: bolder;
  white-space: nowrap;
  border-left: 4px solid transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  gap: 0.5rem;
  background: none;
}

a.sidebar-link:hover, button.sidebar-link:hover {
  background-color: rgba(0, 0, 0, 0.075);
  border-left: 4px solid var(--cor-primaria);
  box-sizing: border-box;
  color: rgb(0,105,183);
}

.sidebar-item a.active, .sidebar-item button.active {
  background-color: rgba(0, 0, 0, 0.075);
  border-left: 4px solid var(--cor-primaria);
  box-sizing: border-box;
}

a.sidebar-link > span, button.sidebar-link > span {
  opacity: 1;
  transition: all 0.4s;
}

.menu-categorias li{
    position: relative;
    width: 100%;
}

/* .menu-categorias li a{
    position: absolute;
    inset: 0;
} */

.menu-categorias li:hover{
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.btn-menu,
.btn-search,
.nav-mobile {
  display: none;
}

.input-search.active {
  transition: all 0.4s;
  display: flex !important;
}

.nav-mobile {
  width: 20rem;
  height: 90vh;
  z-index: 1000;
  top: 5.7rem;
  left: -25rem;
  background-color: #fff;
  padding: 1rem 0.5rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
    rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  border-radius: 4px;
  position: absolute;
  transition: left 0.4s ease-in-out;
  overflow-x: hidden;
  overflow-y: auto;
}

.nav-mobile::-webkit-scrollbar {
    width: 4px;
    background: #F4F4F4;
}

.nav-mobile::-webkit-scrollbar-track {
    background-color: #F4F4F4;
    border-radius: 20px;
}

.nav-mobile::-webkit-scrollbar-thumb {
    background: rgba(0,105,183, 0.4);
    border-radius: 20px;
}

.nav-mobile.active {
  transition: left 0.4s ease-in-out;
  left: 0.6rem;
}

.nav-mobile ul a.sidebar-link > span {
  display: inline-flex;
}

.input-search > .search::placeholder {
  color: var(--cor-primaria);
  font-weight: 500;
}

@media (max-width: 991px) {
  #sidebar {
    width: 3rem;
  }

  a.sidebar-link > span {
    transition: all 0.4s;
    opacity: 0;
    visibility: hidden;
  }

  .main {
    transition: margin 0.4s;
    margin-left: 3rem !important;
  }

  .input-search {
    display: none !important;
  }

  /* a.sidebar-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 0.1rem;
    left: 3.5rem;
    background: var(--cor-primaria);
    color: #fff;
    padding: 0.4rem 1rem;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    display: none;
  }

  a.sidebar-link:hover::after {
    display: inline;
  } */
}

@media (max-width: 576px) {
  #sidebar {
    display: none;
  }

  .main {
    transition: margin 0.4s;
    margin-left: 0rem !important;
  }

  .nav-mobile ul a.sidebar-link > span {
    opacity: 1;
    visibility: visible;
  }

  .btn-menu,
  .btn-search,
  .nav-mobile {
    display: block;
  }

  a.sidebar-link:hover::after {
    display: none;
  }
}
