.layers-tools {
  background-color: $color-gray-darker;
  bottom: 0;
  display: flex;
  height: 30px;
  justify-content: center;
  position: absolute;
  width: 100%;

  .layers-tools-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0;
    width: 80px;

    li {
      cursor: pointer;

      svg {
        fill: $color-gray;
        height: 16px;
        width: 16px;

        &:hover {
          fill: $color-white;
        }

      }

      &.delete-layer {

        svg {

          &:hover {
            fill: $color-danger;
          }

        }

      }

    }

  }

}

.element-list {
  margin: 0;
  width: 100%;

  ul {
    margin: 0;
  }

  li {
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;

    &.open {

      ul {

        li {

          .element-list-body {
            border-style: dashed;
          }

        }

      }

    }

    .element-list-body {
      align-items: center;
      border-bottom: 1px solid $color-gray-darker;
      box-sizing: border-box;
      background-color: $color-gray-dark;
      display: flex;
      padding: $small;
      width: 100%;

      svg {
        fill: $color-gray;
        height: 13px;
        margin-right: 8px;
        width: 13px;
      }

      .element-actions {
        align-items: center;
        display: flex;
        flex-shrink: 0;
        width: 62px;
      }

      .element-icon,
      .sublevel-element {

        svg {
          fill: $color-gray-darker;
        }

      }

      .toggle-content {
        margin-left: auto;
        width: 12px;

        svg {
          fill: $color-gray-darker;
          transform: rotate(90deg);
          width: 12px;
        }

        &.inverse {
          svg { transform: rotate(270deg); }
        }

        &:hover {

          svg {
            fill: $color-white;
          }

        }

      }

      &.group {

        &.open {

          .toggle-content {
            flex-shrink: 0;

            svg {
              transform: rotate(270deg);
            }

          }

        }

      }

      span {
        color: darken($color-gray-darker, 8%);
        font-size: $fs13;
        overflow-x: hidden;
        text-overflow: ellipsis;
      }

      &.selected {
        background-color: lighten($color-gray-darker, 5%);

        .element-icon {

          svg {
            fill: $color-primary;
          }

        }

        span {
          color: $color-primary;
        }

      }

      .selected {

        svg {
          fill: $color-gray-lighter;
        }

      }

      &:hover {
        border-color: $color-gray-light;

        .element-icon {

          svg {
            fill: $color-gray-lighter;
          }

        }

        span {
          color: $color-gray-lighter;
        }

      }

      &.drag-top {
        border-top: 2px solid $color-primary;
      }

      &.drag-bottom {
        border-bottom: 2px solid $color-primary;
      }

      &.drag-inside {
        border: 2px solid $color-primary;
      }

    }

  }

}
