/**
 * Estilos do menu lateral do portal: navegação lateral (sidenav), itens de
 * menu, submenu (nav-dropdown) e botão de fechar.
 *
 * Responsabilidades:
 * - Estilizar o menu lateral deslizante e seus itens, incluindo o estado ativo.
 * - Estilizar o submenu e o comportamento em telas de baixa altura.
 *
 * CSS puro, editado à mão: o portal não tem Sass nem build do Tailwind. Depois
 * de editar, rode build-css.sh e comite o public/css/app.css gerado.
 *
 * @package Portal\Recursos\CSS
 * @llmdoc A posição deste arquivo na cascata está declarada em build-css.sh;
 *         não reordenar.
 */
@charset "UTF-8";

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #3A3A3A;
  overflow-x: hidden;
  transition: 0.5s;
}

.sidenav a {
  padding: 22px;
  text-decoration: none;
  color: #FFF;
  transition: 0.3s;
  border-top: 0.3px solid #686868;
  border-bottom: 0.3px solid #686868;
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  /* or 143% */
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
}

.sidenav a.active {
  background: #232323;
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
  color: #02CE6A;
}

.sidenav .closebtn {
  font-size: 36px;
  color: #FFF;
}

.nav-item {
  font-family: Montserrat;
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 18px;
  /* identical to box height, or 150% */
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
  /* typo-gray-900 */
  color: #232323;
}

.nav-item.active {
  font-weight: bold;
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }

  .sidenav a {
    font-size: 18px;
  }
}

.nav-dropdown {
  box-shadow: 0px 0.5px 3px rgba(0, 0, 0, 0.24), 0px 8px 18px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background-color: #FFF;
  position: absolute;
  top: 65px;
  right: 0;
  width: 230px;
  z-index: 50;
  display: none;
  transition: all 500ms ease-in-out;
}

.nav-dropdown a {
  /* 🖥 Desk - Small 4 */
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 18px;
  /* or 150% */
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
  /* typo-gray-700 */
  color: #515151;
  border-bottom: 0.3px solid #DCDCDC;
  border-top: 0.3px solid #DCDCDC;
  padding: 17px;
}

.nav-dropdown a.active {
  color: #02CE6A;
}

.nav-dropdown a:hover {
  background: #E0FFF0;
}

.nav-dropdown:hover {
  display: block;
}

.desktop-nav-button {
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.desktop-nav-button:hover + .nav-dropdown {
  display: block;
  transition: all 500ms ease-in-out;
}

.menu-dt {
  width: 45px;
  height: 35px;
  background: url("/svg/menu-black.svg") no-repeat;
}

.menu-dt:hover {
  width: 45px;
  height: 35px;
  background: url("/svg/menu-outline.svg") no-repeat;
}
