.portal-sidebar {
  background: #051727;
  color: #fff;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */

.portal-sidebar__header {
  padding: 30px 50px;
}

.portal-sidebar__brand {
  margin-bottom: 23px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(13, 70, 121, 0.4);
}

.portal-sidebar__brand img{
    width:100%;
}

.portal-sidebar__logo {
  display: block;
  font-weight: 600;
  letter-spacing: 1px;
}

.portal-sidebar__sub {
  font-size: 11px;
  opacity: 0.6;
}

.portal-sidebar__user {
  display: flex;
  flex-direction: column;
}

.portal-sidebar__greeting {
    color: #0D4679;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 117%;
}

.portal-sidebar__name {
    color: #9CBEDB;
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

/* NAV */

.portal-sidebar__nav {
  flex: 1;
  padding: 10px 0;
}

.portal-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 25px 50px;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.portal-sidebar__item:hover {
  background: rgba(255,255,255,0.05);
}

.portal-icon {
  width: 26px;
  height: 26px;
  display: inline-block;

  background: currentColor;

  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

.portal-icon.portal-icon--sair{
    width: 20px;
    height: 20px; 
}

.portal-icon--menu {
  width: 46px;
  height: 46px;
}


.portal-sidebar__nav .portal-sidebar__label{
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 117%
}

.portal-sidebar__brand {
  max-width: 100%;
}

.portal-sidebar__header {
  position: relative;
}


/* ABRIR SIDEBAR */

.sidebar-toggle {
  border: none;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D4679;
  cursor: pointer;
}

/* BOTÃO CLOSE */

.portal-sidebar__close {
  position: static;
  width: 25px;
  height: 25px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding:0;
  text-align: right;
  float: right;
  transform: translateY(-8px);
}

/* LOGO */

.portal-sidebar__logo {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ACTIVE */

.portal-sidebar__item.is-active {
  background: #0D4679;
  color: #9CBEDB;
}

.portal-sidebar__item.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: #9CBEDB;
}

/* BADGE */

.portal-sidebar__badge {
  margin-left: auto;
  background: #e63946;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}


/* OVERLAY */

.portal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 9998;
}

.portal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* FOOTER */

.portal-sidebar__footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
}

/* MOBILE FIRST = BASE JÁ É MOBILE */

/* DESKTOP */

@media (min-width: 1000px) {
  .portal-sidebar {
    width: 360px;
    position: relative;
    position: sticky;
    top: 0;
    height: 100vh;
  }
  
  .portal-sidebar__close,
  .sidebar-toggle{
    display: none;
  }
}

/* MOBILE */

@media (max-width: 999px){

  .portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 9999;
  }

  .portal-sidebar.open {
    transform: translateX(0);
  }

  .portal-sidebar__header {
    padding: 20px;
  }

  .portal-sidebar__item {
    padding: 18px 20px;
  }
  
  .portal-sidebar__greeting {
    font-size: 18px;
}

.portal-sidebar__name {
    font-size: 28px;
}

}