.b-app-nav {
  position: fixed;
  top: 60px;
  right: auto;
  bottom: auto;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 240px;
  z-index: 500;
  padding: 0;
  font-size: 1rem;
  text-align: left;
  background: #eee;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 100px 0 rgba(0, 0, 0, 0.1);
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  @media only screen and (max-width: 1140px) {
    top: 0;
    transform: translateX(-100%);
    padding: 1rem 0;
  }
}

.b-app-nav.is-toggled {
  @media only screen and (max-width: 1140px) {
    transform: translateX(0);
  }
}

.b-app-nav-overlay {
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  cursor: pointer;
}

.b-app-nav-menu {
  margin: 0;
  padding: 1rem 0 6rem 0;
  list-style-type: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  li,
  svg,
  span {
    pointer-events: none;
  }
  a {
    pointer-events: all;
  }
}

.b-app-nav-menu-link {
  display: flex;
  align-items: center;
  padding: 0.825rem;
  font-size: 1.125rem;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease-in-out;
  color: #6c757d;
  outline: none;
  &:hover,
  &:focus {
    color: #555;
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
  }
}

.b-app-nav-menu-item.is-parent > .b-app-nav-menu-link {
  justify-content: space-between;
  color: #6c757d;
  .nav-title {
    margin-right: auto;
  }
}

.b-app-nav-menu-item.is-parent.is-active {
  .b-app-nav-menu-link-arrow {
    transform: rotateX(180deg);
  }
}

.b-app-nav-menu-icon-container {
  display: flex;
  align-items: center;
  width: 2.25rem;
  & > svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    stroke-width: 4px;
    transition: all 0.3s ease-in-out;
  }
}

.b-app-nav-menu-link .b-app-nav-menu-link-arrow {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: auto;
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
  stroke-width: 4;
}

.b-app-nav-menu-item.is-active {
  .b-app-nav-menu-icon-container > * {
    color: #00abf7;
    fill: #00abf7;
    stroke: #00abf7;
  }
  .b-app-nav-menu-link {
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: #00abf7;
    box-shadow: inset 4px 0 #00abf7;
  }
  .b-app-nav-sub-menu {
    opacity: 1;
    max-height: 100%;
    transition: all 0.4s ease-in-out;
  }
}

.b-app-nav-sub-menu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  width: 100%;
  overflow-y: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
  list-style-type: none;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease-in;
}

.b-app-nav-sub-menu-link {
  display: flex;
  padding: 0.33rem 0 0.33rem 1rem;
  opacity: 1;
  min-width: 100%;
  text-decoration: none;
  font-size: 0.9rem;
  color: #6c757d;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow: inset 4px 0 #bbb;
  &:hover {
    background: rgba(0, 0, 0, 0.03);
  }
}

.b-app-nav-sub-menu-item.is-active > a {
  color: #00abf7;
  background: #d9d9d9;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: inset 4px 0 #00abf7;
}

.b-app-nav-menu.is-expanded {
  .b-app-nav-link {
    cursor: default;
  }
  &.is-active .b-app-nav-link {
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    color: #6c757d;
  }
  .b-app-nav-menu-link {
    justify-content: start;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  .b-app-nav-menu-link-arrow {
    display: none;
  }
  .b-app-nav-sub-menu {
    opacity: 1;
    max-height: 400px;
    transition: all 0.3s ease-in;
  }
}
