.lang-switcher a {
  border-bottom: 3px solid transparent;
  color: $main-ui-text-color;
  &.active {
    border-color: $main-ui-color;
  }
}

.lang-pane {
  display: none;
  &.active {
    display: block;
  }
}

.contain-gallery,
.contain-layout {
  margin-top: 10px;
  border: 2px dashed #ccc;
  min-height: 20px;
  padding-top: 10px;
  padding-bottom: 10px;

  .layout-element {
    border: 1px solid #d2d6de;
    margin-bottom: 10px;
    min-height: 20px;
    padding-top: 10px;
    background: white;
    .form-group {
      position: relative;
    }
    label {
      position: absolute;
      margin-top: -11px;
      margin-left: 12px;
      background: white;
      padding: 0 5px;
      z-index: 10;
    }
    input::placeholder {
      color: transparent;
    }
  }

  .block-content {
    border: 1px solid transparent;
    min-height: 40px;
    margin: 10px 0;
    padding: 10px 0;
    position: relative;

    .block-overlay {
      background: #eaeaea;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: none;
      z-index: 1000;
    }
    &:hover,
    &:focus-within {
      .block-overlay {
        display: none;
      }
    }

    textarea {
      min-height: 200px;
    }
  }

  .layout-options {
    padding: 10px 0;
    select {
      max-width: 49.5%;
      display: inline-block;
    }
  }
}

.block-panner {
  .block-panner-pane {
    display: none;
    padding-top: 1em;
    &.active {
      display: block;
    }
  }
  .block-panner-selector {
    list-style-type: none;
    margin:0;
    padding:0;

    li {
      display: inline-block;
      padding: .5em 1em;
      background-color: #ededed;
      cursor: pointer;
      &.active {
        background-color: $main-ui-color;
        color: white;
      }
    }
  }
}

.template-preview {
  img {
    width: 100%;
  }
}

.logo-preview {
  text-align: center;
  img {
    width: 50%;
  }
}

.block-delete {
  z-index: 1000;
  position: absolute;
  top: -5px;
  right: -5px;
  background: white;
  border: 1px solid #dedede;
  padding: 5px 10px;
  cursor: pointer;
}

.block-drag {
  z-index: 1000;
  position: absolute;
  top: -5px;
  right: 30px;
  background: white;
  border: 1px solid #dedede;
  padding: 5px 10px;
  cursor: pointer;
}

.block-drag-placeholder {
  border: 3px dashed #dedede !important;
  min-height: 50px !important;
  border-radius: 10px !important;;

}

.block-drag-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -8px;
}

.inline-video-preview,
.inline-image-preview {
  display: none;
  padding: 5px 0;
  img,
  video {
    width: 100%;
    border: 1px solid #ededed;
    padding: 5px;
  }
}

.contain-gallery .block-content {
  margin-top: 0;
  padding-top: 0;
}

.contain-gallery .inline-video-preview,
.contain-gallery .inline-image-preview {
  display: inline-block !important;
  height: 100px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 5px;
  border: 1px solid #d2d6de;
  padding: 0;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 0;
  img,
  video {
    width: auto;
    border: none;
    max-height: 100% !important;
  }
}

.bootstrap-tagsinput {
  width: 100%;
  border-radius: 0;
  border-color: #d2d6de;
  box-shadow: none;
  padding: 4px 4px 6px;
  .tag {
    background-color: $main-ui-color !important;
    font-size: .9em;
    border-radius: 1px;
  }
}

@media (max-width: 767px) {
  #employees-table_wrapper,
  #clients-table_wrapper {
    div.dataTables_length {
      display: none;
    }
    div.dataTables_filter label {
      font-size: 0;
      width: 100%;
    }
    div.dataTables_filter label input {
      font-size: 12px;
      width: 100%;
      margin-left: 0;
    }
  }
}