.dt-sidebar-subSidebar {
  display: block;
  position: relative;
  .dt-sidebar-sub .dt-sidebar-item {
    padding-left: 50px;
  }

  .dt-is-sub-drawer {
    .dt-sidebar-subSidebar-arrow {
      opacity: 0;
    }
  }
}

.dt-sidebar-inline-collapsed {
  .dt-sidebar-subSidebar:hover {
    .dt-sidebar-sub-detail {
      visibility: visible;
    }
  }
}

.dt-sidebar-subSidebar-open {
  .dt-sidebar-subSidebar-arrow {
    &::after {
      transform: rotate(-45deg) translateX(-2px);
    }
    &::before {
      transform: rotate(45deg) translateX(2px);
    }
  }

  & > .dt-sidebar-sub {
    //max-height: 400px;
    visibility: visible;
  }
}

.dt-sidebar-drawer {
  .dt-sidebar-sub {
    //max-height: 400px;
    visibility: visible;
  }
}

.dt-sidebar-sub {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: relative;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: all ease 300ms;
}

.dt-sidebar-subSidebar-title {
  a, a:link, a:visited, a:active {
    text-decoration: none;
  }
  a {
    display: block;
    color: #fff;
    text-decoration: none;
    &:before {
      position: absolute;
      background-color: transparent;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      content: "";
    }
  }
  &.dt-sidebar-item-selected {
    a {
      color: #fff;
      text-decoration: none;
    }
  }
}

.dt-sidebar-subSidebar-arrow::before,
.dt-sidebar-subSidebar-arrow::after {
  content: "";
  position: absolute;
  vertical-align: baseline;
  background: #8c949c;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  transition: background .3s cubic-bezier(.645, .045, .355, 1), transform .3s cubic-bezier(.645, .045, .355, 1), top .3s cubic-bezier(.645, .045, .355, 1);
}

.dt-sidebar-subSidebar-arrow {
  transform: translateY(-2px);
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;

  opacity: 1;
  transition: opacity ease 100ms;
  &::after {
    transform: rotate(45deg) translateX(-2px);
  }
  &::before {
    transform: rotate(-45deg) translateX(2px);
  }
}

.dt-sidebar-ul {
  .dt-sidebar-item-detail {
    display: none;
  }
  .dt-sidebar-sub-detail {
    visibility: hidden;
    position: absolute;
    border-radius: 4px;
    right: -4px;
    top: 0;
    transition: visibility 0ms ease 100ms;
    transform: translateX(100%);
    background: #262e39;
    min-width: 105px;

    white-space: nowrap;

    .dt-sidebar-sub-detail-title {
      height: 40px;
      line-height: 40px;
      padding: 0 20px;
      background: #354454;
      white-space: nowrap;
      border-radius: 4px 4px 0 0;
      i {
        display: none;
      }
    }
    .dt-sidebar-item {
      padding: 0 20px;
      white-space: nowrap;
    }
  }
}
