.explorer_layer_header {
  cursor: hand;
  cursor: pointer;
  height: 16px;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0);
  opacity: 1;
  flex-flow: row wrap;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.explorer_layer>.explorer_layer_header.explorer_layer_header-idle:hover {
  opacity: 0.85;
}

.colorsByTheme {
  & when not (@preferences-flat) {
    background: #414141;
  }
  & when (@preferences-flat) {
    background: rgb(101, 98, 98);
  }
}

.explorer_layer>.explorer_layer_header.explorer_layer_header-active,
.explorer_layer>.explorer_layer_header.explorer_layer_header-active:hover,
.explorer_layer>.explorer_layer_header.explorer_layer_header-idle:hover {
  .colorsByTheme;
}

/*
.explorer_layer > .explorer_layer_header.explorer_layer_header-active {
  background: #2D9BEF;
  height: 25px;
  opacity: 1;
}
*/

.explorer_layer-dragging {
  opacity: 0.8;
  position: absolute;
  z-index: 10000000000;
  background-color: rgba(255, 255, 255, 0.2);
  transition: none !important;
  transform: scale(1.2, 1.2);
  transform-origin: center;
  -webkit-box-shadow: -8px 5px 19px 1px rgba(31, 31, 31, 0.67);
  -moz-box-shadow: -8px 5px 19px 1px rgba(31, 31, 31, 0.67);
  box-shadow: -8px 5px 19px 1px rgba(31, 31, 31, 0.67);
  /*transform: "translate("+this.state.draggingPos.x+"px, "+this.state.draggingPos.y+"px)"*/
  /*left: this.state.draggingPos.x+"px";*/
  /*top: this.state.draggingPos.y+"px",*/
}

.explorer_layer.explorer_layer-dragTarget {
  opacity: 0.2;
  transition-delay: 0.5s;
  /*background-color: #8f8f8f;*/
  /*transform: "translate("+this.state.draggingPos.x+"px, "+this.state.draggingPos.y+"px)"*/
  /*left: this.state.draggingPos.x+"px";*/
  /*top: this.state.draggingPos.y+"px",*/
}

.explorerComponentColorsHover {
  /*stroke: white;*/
  border-color: white;
  color: white;
}

.explorerIconHover {
  use[stroke]:not([stroke=none]),
  g[stroke]:not([stroke=none]),
  path[stroke]:not([stroke=none]),
  rect[stroke]:not([stroke=none]) {
    stroke: white;
  }

  path[fill]:not([fill=none]),
  g[fill]:not([fill=none]),
  rect[fill]:not([fill=none]) {
    fill: white;
  }

  text {
    fill: white;
  }

  /*  polygon{
    fill: white;
  }
  
  text {
    fill: white;
  }
  rect {
  }
*/
}

.fill {
  stroke: none !important;
  fill: white;
}

.explorerComponentColors when (@preferences-flat) {
  /*fill: transparent;*/
  /*stroke: #8f8f8f;*/
  border-color: #8f8f8f;
  color: #8f8f8f;
}

.explorerComponentColors when not (@preferences-flat) {
  /*fill: transparent;*/
  /*stroke: #8f8f8f;*/
  border-color: #8f8f8f;
  color: #8f8f8f;
}

.explorer_layer.explorer_layer-root {
  i {
    .explorerComponentColors;
    fill: #2D9BEF;
    border-color: #2D9BEF;
    color: #2D9BEF;
  }
}

.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-active>.explorer_layer_header_text,
.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-active>.explorer_layer_header_icon path,
.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-idle:hover>.explorer_layer_header_text,
.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-idle:hover>.explorer_layer_header_icon path {
  fill: white;
  /*stroke: white;*/
  border-color: white;
  color: #8f8f8f;
  background: none;
}

.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-active>.explorer_layer_header_icon i,
.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-idle:hover>.explorer_layer_header_icon i {
  color: white;
}

.explorer_layer.explorer_layer-component>.explorer_layer_header.explorer_layer_header-active i {
  border-color: white;
  color: white;
}

.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-idle .explorer_layer_header_text,
.explorer_layer.explorer_layer-root>.explorer_layer_header.explorer_layer_header-idle .explorer_layer_header_icon path {
  fill: #2D9BEF;
  border-color: #2D9BEF;
  color: #2D9BEF;
}

.explorer_layer.explorer_layer-component>.explorer_layer_header.explorer_layer_header-idle {
  >.explorer_layer_header_text,
  >.explorer_layer_header_icon path {
    .explorerComponentColors;
  }
  &:hover {
    >.explorer_layer_tools_removeButton {
      .explorerComponentColorsHover;
    }
    >.explorer_layer_header_text,
    >.explorer_layer_header_icon path {
      .explorerComponentColorsHover;
    }
  }
}

.explorer_layer.explorer_layer-component>.explorer_layer_header.explorer_layer_header-active {
  >.explorer_layer_header_text,
  >.explorer_layer_header_icon {
    path,
    i {
      .explorerComponentColorsHover;
    }
    .explorerComponentColorsHover;
    .explorerIconHover;
  }
  >.explorer_layer_tools_removeButton {
    .explorerComponentColorsHover;
  }
  &:hover {
    >.explorer_layer_tools_removeButton {
      .explorerComponentColorsHover;
    }
    >.explorer_layer_header_text,
    >.explorer_layer_header_icon path,
    i {
      .explorerComponentColorsHover;
    }
  }
}

.explorer_layer_header_icon svg {
  margin-right: 4px;
  margin-left: 0px;
}

.explorer_layer_tools_switchInput {
  display: flex;
  height: 20px;
  width: 20px;
  align-self: center;
  align-items: center;
  justify-content: center;
}

.explorer_layer_tools_switchInput_activeItem {
  fill: rgb(69, 165, 255);
}

.explorer_layer_header_arrow {
  i {
    color: #8f8f8f;
  }
  flex-grow: 1;
  max-width: 20px;
  svg {
    width: 26px;
    height: 8px;
  }
}

.explorer_layer_tools_buttons {
  display: flex;
  justify-content: flex-end;
  height: 100%;
  flex-grow: 1;
  max-width: 62px;
  margin-right: 6px;
}

.explorer_layer_buttonIcon {
  fill: #CCCCCC;
  &:hover {
    fill: white;
  }
}

.explorer_layer_childrenContainer {
  margin: 0 0 0 13px;
  position: relative;
}

.explorer_layer_header_icon {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  max-width: 20px;
}

.explorer_layer,
.explorer_layer_header,
.explorer_layer_tools_removeButton {
  transform: translate(0, 0);
  transform: translate3d(0, 0, 0);
  transition-timing-function: cubic-bezier(0.175, 0.665, 0.320, 1), linear;
  transition: all 0.3s;
}

.explorer_layer {
  transition: 0.5s ease-out;
  width: 100%;
  svg,
  path,
  rect {
    shape-rendering: geometricPrecision;
  }

  div {
    user-select: none;
  }
}

.explorer_layer .explorer_layer_header_text {
  display: flex;
  cursor: pointer;
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 16px;
  font-size: 12px;
  height: 16px;
}

.explorer_layer_tools_removeButton {
  span {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome !important;
    font-size: inherit;
    text-rendering: auto;
    font-smoothing: antialiased;
    &:before {
      content: "\f014";
    }
  }
  &:hover {
    color: white !important;
    opacity: 1;
  }
  .explorerComponentColors;
  float: right;
  padding-top: 2px;
  opacity: 0.5;
}


.ui-editor-explorer-content {
  /*height: ~"calc(100% - 26px)"; */
  min-width: 166px;
  >div {
    top: 26px !important;
  }
}
