.sidebar {
  display: flex;
  background-color: var(--c-secondary);
}

@media screen and (max-width:991px) {
  .sidebar {
    position: fixed;
    top: 5.8rem;
    left: 0;
    width: 100%;
    height: calc(100% - 5.8rem);
    z-index: 100;
    transform: translateX(100%);
  }

  .sidebar.isOpen {
    transform: translateX(0);
  }
}

.sidebar__wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media screen and (min-width:992px) {
  .sidebar__wrapper {
    max-width: 11.8rem;
    min-width: 11.8rem;
    border-right: 1px solid var(--c-border-grey);

  }
.sidebar {
	overflow: auto;
    max-width: 11.8rem;
    min-width: 11.8rem;
  }
}

.sidebar__list {
  padding: 4rem 1.6rem;
  overflow-y: auto
}

@media screen and (max-width:991px) {
  .sidebar__list {
    padding: 0 1.6rem;
    margin-top: 6.6rem;
  }
}

@media screen and (min-width:992px) {
  .sidebar__list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent
  }

  .sidebar__list::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    min-width: 8px;
    max-height: 8px;
    margin: 2px;
    background-color: var(--c-primary);
    background-clip: padding-box;
    border-radius: 4px
  }

  .sidebar__list::-webkit-scrollbar-track {
    display: none
  }
}

.sidebar__element {
  display: flex;
  width: 100%;
}

@media screen and (max-width:991px) {

  /* CLIENTS */
  .sidebar__list--clients .sidebar__element:nth-child(1) svg {
    width: 18px;
    height: 22px;
  }

  .sidebar__list--clients .sidebar__element:nth-child(2) svg {
    width: 21.5px;
    height: 18px;
  }

  .sidebar__list--clients .sidebar__element:nth-child(3) svg {
    width: 18px;
    height: 21px;
  }

  .sidebar__list--clients .sidebar__element:nth-child(4) svg {
    width: 18px;
    height: 18px;
  }

  .sidebar__list--clients .sidebar__element:nth-child(5) svg {
    width: 18.5px;
    height: 18px;
  }

  .sidebar__list--clients .sidebar__element:nth-child(6) svg {
	width: 18px;
    height: 18.5px;
  }

  .sidebar__list--clients .sidebar__element:nth-child(7) svg {
    width: 18px;
    height: 18.4px;
  }

  .sidebar__list--clients .sidebar__element:nth-child(8) svg {
    width: 18px;
    height: 18px;
  }

  /* BROKER */
  .sidebar__list--broker .sidebar__element:nth-child(1) svg {
    width: 18px;
    height: 22px;
  }

  .sidebar__list--broker .sidebar__element:nth-child(2) svg {
    width: 18px;
    height: 18px;
  }

  .sidebar__list--broker .sidebar__element:nth-child(3) svg {
    width: 19px;
    height: 18px;
  }
  .sidebar__list--broker .sidebar__element:nth-child(4) svg {
    width: 17.4px;
    height: 17.4px;
  }
  .sidebar__list--broker .sidebar__element:nth-child(5) svg {
    width: 19px;
    height: 18px;
  }

  .sidebar__list--broker .sidebar__element:nth-child(6) svg {
    width: 18px;
    height: 19px;
  }

  .sidebar__list--broker .sidebar__element:nth-child(7) svg {
    width: 18px;
    height: 19px;
  }

  .sidebar__list--broker .sidebar__element:nth-child(8) svg {
    width: 18px;
    height: 18.4px;
  }

  .sidebar__list--broker .sidebar__element:nth-child(9) svg {
    width: 18px;
    height: 18px;
  }

  .sidebar__element-logout svg {
    width: 13.5px;
    height: 13.5px;
  }
}

@media screen and (max-width:991px) {
  .sidebar__element {
    border-bottom: 1px solid var(--c-border-grey);
  }

  .sidebar__element:last-child {
    border-bottom: 0;
  }
}

.sidebar__element-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: .8rem;
  padding: .8rem .6rem;
  border-radius: 6px;
  transition: background-color .2s ease;
}

@media screen and (max-width:991px) {
  .sidebar__element-link {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 1.6rem;
  }
}

.sidebar__element-link svg path,
.sidebar__element-logout svg path {
  transition: fill .2s ease;
}

.sidebar__element-link:hover svg path,
.sidebar__element-logout:hover svg path {
  fill: var(--c-white);
}

@media screen and (min-width:992px) {
  .sidebar__element-link.active {
    background-color: var(--c-grey-hover);
  }
}

.sidebar__element-link.active svg path {
  fill: var(--c-primary);
}

.sidebar__element-link:hover .sidebar__element-title {
  color: var(--c-white);
}

.sidebar__element-link.active .sidebar__element-title {
  font-weight: var(--fw-sembibold);
  color: var(--c-white);
}

.sidebar__element-title {
  font-size: 1.1rem;
  line-height: 1.6rem;
  color: var(--c-grey);
  margin-top: .8rem;
  transition: color .2s ease;
  text-align: center;
  text-transform: uppercase;
}

@media screen and (max-width:991px) {
  .sidebar__element-title {
    display: inline-flex;
    font-size: 1.4rem;
    line-height: 1.6rem;
    margin: 0 0 0 1.6rem;
  }
}

.sidebar__element-logout {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2.4rem;
  border-top: 1px solid var(--c-border-grey);
}

.sidebar__element-logout .sidebar__element-title {
  display: none;
}

@media screen and (max-width:991px) {
  .sidebar__element-logout {
    justify-content: flex-start;
    padding: 2.4rem 3.2rem;
    background-color: #272626;

  }

  .sidebar__element-logout .sidebar__element-title {
    color: var(--c-regular-grey);
    display: inline-flex;
    ;
  }
}

@media screen and (max-width:991px) {
  #changeacct {
    position: fixed;
    top: 9.4rem;
    left: 1.6rem;
    width: calc(100% - 3.2rem);
    display: none;
  }

  #changeacct.isOpen {
    display: block;
  }


  #changeacct .chosen-container {
    max-width: 100%;
    min-width: 100%;
  }
}
#clientpaneldiv .sidebar__element-logout {
	display: none;
}
