.sidebar-menu {
  min-width: 23%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sidebar-menu.grey-bg {
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .sidebar-menu.grey-bg {
    background: #f4f8fe;
    margin-top: -40px;
    padding-top: 40px;
    margin-right: 64px;
    /* padding-right: 55px; */
    position: relative;
    z-index: 1;
  }
  .sidebar-menu.grey-bg::before {
    position: absolute;
    content: '';
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100%;
    background: #f4f8fe;
    z-index: -1;
  }
  .sidebar-menu__container {
    position: sticky;
    top: 100px;
    margin-bottom: 80px;
  }
}

@media (max-width: 768px) {
  .sidebar-menu {
    width: 215px;
  }
}
.sidebar__version {
  padding-bottom: 24px;
}
.sidebar__button {
  background-color: var(--color-blue);

  margin: 24px 15px 30px 0;
  padding: 12px 0;
  text-align: center;
  border-radius: 12px;
  width: 100%;
}
.sidebar__button a {
  white-space: nowrap;
}
@media screen and (max-width: 991px) {
  .sidebar__button-link {
    display: none;
  }
  .sidebar__button {
    display: none;
  }
  .sidebar__version {
    display: none;
  }
  .page-container .sidebar-menu {
    background-color: var(--color-white);
  }
}
.sidebar__button:hover {
  background-color: #0032b2;
}

.sidebar__button:active {
  background-color: #0138c7;
}

.sidebar__button > a {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin: 0 20px;
  color: var(--color-white);
  text-transform: uppercase;
  outline: none;
}

@media screen and (max-width: 1024px) {
  .sidebar__button {
    max-width: 215px;
  }

  .sidebar__button > a {
    margin: 0;
  }
}
.page-container .sidebar-menu .main-menu {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  margin-bottom: 20px;
  height: max(300px, 100vh - 300px);
  overflow-y: auto;
  overflow-x: hidden;
}
.has-sub {
  padding-left: 20px;
  margin-bottom: 20px;
}
.has-sub ul li.active > a {
  color: #002ea6 !important;
  font-weight: bold;
}
.has-sub::before {
  position: absolute;
  content: url('../images/expand.svg');
  left: 0;
}
.has-sub.opened::before {
  transform: rotate(90deg);
}
.sidebar__button-mobile {
  display: none;
  background-color: var(--color-white);
  border: 1px solid var(--color-grey);
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-black);
  padding: 12px 26px;
}
.sidebar__button-mobile img {
  margin-right: 12px;
}

@media screen and (max-width: 991px) {
  .sidebar__button-mobile {
    display: block;
  }
}
@media screen and (max-width: 991px) {
  .page-container .sidebar-menu ul {
    display: none;
  }
}

.sidebar-menu__container > .sidebar__button-link {
  text-decoration: underline;
  color: var(--color-blue);
  font-size: 16px;
}
.sidebar-menu__container > .sidebar__version {
  border-bottom: 1px solid #d8d9dd;
}

.page-container .sidebar-menu .main-menu li a {
  transition: 0.2s;
}
.page-container .sidebar-menu .main-menu li:hover > a {
  color: #002ea6 !important;
}

.has-sub a {
  display: inline-block;
}
.has-sub.opened > a {
  color: #002ea6 !important;
  border: 1px solid rgba(211, 220, 228, 1);
  padding-left: 30px;
  padding-right: 20px;
  margin-left: -30px;
  width: 100%;
}
.has-sub {
  position: relative;
}
.has-sub > ul:after {
  height: 0%;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transition: height linear 0.4s;
}
.has-sub.opened > ul {
  padding-left: 10px !important;
  margin-left: -10px !important;
}
.has-sub.opened > ul:after {
  height: 100%;
  width: 1px;
  background-color: rgba(211, 220, 228, 1);
}

.page-container .sidebar-menu .main-menu::-webkit-scrollbar {
  width: 4px;
}

.page-container .sidebar-menu .main-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.page-container .sidebar-menu .main-menu::-webkit-scrollbar-thumb {
  background: #002ea6;
}
