.sidebar{
  margin: 0;
  /*padding: 0;*/
  box-sizing: border-box;
  font-family: "Mulish", sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 78px;
  padding: 6px 14px;
  z-index: 20;
  transition: all 0.5s ease;
  background-color: #475281;
}
.sidebar.active{
  width: 240px;
}
.sidebar .logo_content .logo{
  display: flex;
  height: 50px;
  width: 100%;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
  color: #FFFFFF;
}
.sidebar.active .logo_content .logo{
  opacity: 1;
  pointer-events: none;
}
.logo_content .logo .logo_name{
  font-size: 20px;
  font-weight: 400;
}
.sidebar #btn{
  position: absolute;
  color: #B2B2C4;
  top: 6px;
  left: 50%;
  font-size: 22px;
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 50px;
  transform: translateX(-50%);
  cursor: pointer;
}
.sidebar.active #btn{
  left: 90%;
}
.sidebar ul{
  margin-top: 10px;
  padding-left: 0;
}
.sidebar ul li{
  position: relative;
  min-height: 45px;
  width: 100%;
  margin: 5px 0;
  list-style: none;
  line-height: 45px;
  /*border: 1px solid #C8CAE6;*/
  border-radius: 8px;
  color: #B2B9E1;
}
.sidebar ul li .tooltip{
  position: absolute;
  left: 125px;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  height: 35px;
  width: 120px;
  background: #fff;
  line-height: 35px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  transition: 0s;
  opacity: 0;
  pointer-events: none;
  display: block;
}
.sidebar ul li .tooltip::before{
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #fff;
  position: absolute;
  left: -8px;
  top: 7px;
}
.sidebar.active ul li .tooltip{
  display: none;
}
.sidebar ul li:hover .tooltip{
  transition: all 0.5s ease;
  opacity: 1;
  top: 50%;
  color: #1E293B;
}
.sidebar ul li input{
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  border-radius: 12px;
  outline: none;
  border: none;
  background: #1d1b31;
  padding-left: 50px;
  font-size: 18px;
  color: #fff;
}
.sidebar ul li .bx-search{
  position: relative;
  z-index: 20;
  color: #fff;
  font-size: 22px;
  transition: all 0.5s ease;
}
.sidebar ul li a, .sidebar ul li button{
  color: #B2B9E1;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.4s ease;
}
.sidebar ul li a.active {
  color: #fff;
  /*background: #6D71F9;*/
  border-radius: 7px;
}
.sidebar ul li a:hover{
  color: #475281;
  background: #fff;
}
.sidebar ul li svg{
  font-size: 18px;
  font-weight: 400;
  height: 22px;
  min-width: 50px;
  border-radius: 12px;
  line-height: 45px;
  text-align: center;
}
.sidebar .links_name{
  font-size: 15px;
  font-weight: 400;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.sidebar.active .links_name{
  transition: 0s;
  opacity: 1;
  pointer-events: auto;
}
.sidebar .content{
  position: absolute;
  color: #fff;
  bottom: 0;
  left: 0;
  width: 100%;
}
.sidebar .content .user{
  position: relative;
  padding: 10px 6px;
  height: 60px;
  background: none;
  transition: all 0.4s ease;
}
.sidebar.active .content .user{
  background: #272848;
}
.content .user .user_details{
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.4s ease;
}
.sidebar.active .user .user_details{
  opacity: 1;
  pointer-events: auto;
}
.content .user .user_details img{
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 12px;
}
.name_job{
  margin-left: 10px;
}
.user_details .name{
  font-size: 15px;
  font-weight: 400;
}
.user_details .job{
  font-size: 12px;
}
#log_out{
  position: absolute;
  bottom: 5px;
  left: 20%;
  transform: translateX(-50%);
  min-width: 50px;
  line-height: 50px;
  font-size: 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
}
.sidebar.active .user #log_out{
  left: 80%;
  background: none;
}
.sidebar.active ~ .main{
  z-index: 20;
  width: calc(100% - 240px);
  left: 240px;
}
/* Смещает кнопки в навбаре при открытии сайдбара. Не лучшее решение. */
/*.sidebar.active ~ .main .user-buttons{*/
/*  position: relative;*/
/*  right: 175px;*/
/*}*/
.main{
  font-family: "Mulish" , sans-serif;
  font-style: normal;
  position: absolute;
  min-height: 100%;
  width: calc(100% - 78px);
  left: 78px;
  background-color: #f3f3f9;
  /*padding: 0 20px;*/
  transition: all 0.5s ease;
}
@media (max-width: 768px) {
  .main{
    width:100% !important;
    left:0 !important;
    /*padding:10px;*/
  }
  .sidebar {
    display: none;
  }
  .hide-sm {
    display: none;
  }
}
