$selected-color: #d8efdd;
$unselected-color: #f9f9f9;
$folder-fill: #666666;
$folder-line: #cccccc;

.dataset-icon {
  outline: none;
  vertical-align: middle;
  fill: $folder-fill;
  cursor: pointer;

  &.opened {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
  }

  &.empty {
    visibility: hidden;
  }
}

.ivh-treeview-node-content {
  vertical-align: middle;
  display: block;
  outline: none;
  font-size: 12px;
}

.dataset-track-format-title {
  margin-right: 2px;
  cursor: pointer;
  font-size: xx-small;
  display: inline-block;
  width: auto;
  min-width: 30px;
  background-color: $unselected-color;
  text-align: center;
  border-radius: 3px;
  border: 1px solid darken($unselected-color, 10%);
  overflow: hidden;

  &.selected {
    background-color: $selected-color;
    border-color: darken($selected-color, 20%);
  }
}

.dataset-info {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.dataset-genome {
  margin: 0px 10px;
  text-transform: uppercase;
  color: #888888;
  font-size: x-small;
}

.dataset-item-row {
  white-space: nowrap;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Chrome/Safari/Opera */
  -khtml-user-select: none; /* Konqueror */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently not supported by any browser */
  -o-user-select: none;
  height: 18px;

  &:hover {
    background-color: #f9f9f9;

    .dataset-genome {
      color: #444444;
    }
  }
}

.dataset-project-title {
  outline: none;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  height: 1rem;
  align-items: center;

  &.selected {
    font-weight: bold;
  }

  &.empty {
    margin-left: 0;
  }
}

.dataset-track-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  min-width: 100px;
  align-items: center;

  &.selected {
    font-weight: bold;
  }

  .file-hint {
    font-weight: normal;
    font-size: 12px;
    color: #595959;
    background-color: #f0f0f0;
    padding: 1px 5px;
    border-radius: 5px;
    margin-left: 5px;
  }

  .dataset-track-title-search {
    font-size: 0;

    & * {
      font-size: 12px;
    }
  }
}

.ngb-context-menu-opened {
  .dataset-track-title, .dataset-project-title {
    text-decoration: underline;
  }
}

.dataset-selectable {
  cursor: pointer;

  &:focus {
    outline: 0;
  }
}

.folder-vertical-line {
  width: 1px;
  background-color: $folder-line;
  position: relative;
  left: 9px;
  margin-bottom: 9px;
}

.folder-horizontal-line {
  display: block;
  height: 1px;
  position: relative;
  width: 7px;
  background-color: $folder-line;
  top: 10px;
  left: -7px;

  &.empty {
    width: 40px;

    &.invisible {
      display: none;
    }
  }
}

.ivh-treeview-checkbox-wrapper {
  &.track {
    margin-left: 1px;
  }

  &.empty {
    visibility: hidden;
  }
}

.dataset-project-title-structure-card {
  padding: 1px 4px 1px 4px;
  cursor: pointer;
  font-size: xx-small;
  display: inline-block;
  background-color: $unselected-color;
  text-align: center;
  border-radius: 3px;
  border: 1px solid darken($unselected-color, 10%);
  font-weight: normal;
  text-transform: uppercase;
}

.structure-card-search-result {
  padding: 1px 4px 1px 4px;
  margin: 1px 2px;
  cursor: pointer;
  font-size: xx-small;
  display: inline-block;
  background-color: $selected-color;
  text-align: center;
  border-radius: 3px;
  border: 1px solid darken($selected-color, 10%);
  font-weight: normal;
  box-sizing: border-box;
}

.metadata-info-row {
  background-color: transparent;
  display: inline-block;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: auto;
  height: 1rem;
}

.datasets-warning {
  padding-top: 20px;
  text-align: center;

  span {
    font-size: small;
    color: #999999;

    strong {
      color: #666666;
    }
  }
}

.md-button.md-icon-button.datasets-action {
  margin: 0;
  padding: 0;
  width: 30px;
  height: 30px;
}

.vertical-container {
  .md-virtual-repeat-offsetter {
    height: 100%;
  }

  height: 100%;
}

ul.treeview {
  padding-left: 15px;
  list-style-type: none;
}

.search-result {
  background-color: yellow;
}
