#cms-sidebar {
  float: left;
  line-height: 2.5;
  margin-left:  -24px;
  margin-top: -24px;
  overflow-x: hidden;
  width: 30%;

  .collapse-button {
    margin-left: -3px;
  }

  ul.packed {
    display: none;
  }

  li {
    white-space: nowrap;
  }

  & + #tab-content {
    @include border-bottom-left-radius(0);
    &.sticked {
      overflow-y: auto;
      top: 24px !important;
    }
  }
}

.cms-sidebar-listing {
  border-bottom: 1px solid $border-color;
  border-right: 1px solid $border-color;

  h3 {
    margin: 0;
    padding-top: 36px;
  }

  ul {
    font-size: 13px;
    list-style: none;
  }

  li.no-results {
    display: none;
  }

  &.empty {
    li.no-results {
      display: list-item;
    }
  }

  .fa-folder-open-o:hover:before {
    content: '\f07c';
  }

  .fa-folder-o:hover:before {
    content: '\f07b';
  }

  .fa {
    cursor: pointer;
    margin-left: -10px;
    padding: 10px 0 10px 10px;
    position: relative;
    z-index: 100;

    &:hover {
      color: $link-color;
    }
  }

  .fa-folder-o,
  .fa-folder-open-o {
    color: $brand-blue;
    position: absolute;

    &:hover {
      color: $brand-blue;
    }

    &+ a {
      text-indent: 21px;
      vertical-align: top;
    }
  }

  a {
    @include ellipsis;
    color: $font-color;
    display: inline-block;
    vertical-align: middle;
    width: 100%;

    &:hover,  &.current {
      color: $link-color;
    }
  }

  li {
    border-top: 1px solid $border-color;

    ul {
      margin-left: 15px;
    }

    &.empty {
      margin-left: 14px;
    }

    &.dragged {
      list-style: none;
      z-index: 9999;
    }

    &.ui-state-hover {
      background-color: $tab-menu-hover-bg-color;
    }

    &.dirty a {
      font-style: italic;
    }

    &.cms-section {
      position: relative;

      &:after {
        background-image: image-url('/assets/tree-line.png');
        background-position: 2px;
        background-repeat: repeat-y;
        bottom: 1px;
        content: '';
        position: absolute;
        top: 19px;
        width: 16px;
      }
    }
  }
}

@import 'provider/admin/cms/sidebar/filter';
