.graph-explorer-class-tree {
  flex: auto;
  display: flex;
  flex-direction: column;

  &__filter {
    flex-shrink: 0;
    margin: 10px 0 10px 0;
  }

  &__filter-group {
    margin-left: 10px;
    margin-right: 10px;
  }

  &__only-creatable {
    display: block;
    margin-top: 5px;
  }

  &__tree {
    border-top: 1px solid var(--ge-border);
    padding: 6px 8px;
    overflow: auto;
  }

  &__spinner {
    align-self: center;
    /* center vertically in flexbox */
    margin: auto;
  }
}

.graph-explorer-class-leaf {
  margin: 1px 0;

  &__row {
    display: flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
    > * { flex-shrink: 0; }
  }

  &__body {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: var(--ge-radius-sm);
    transition: background var(--ge-transition), border-color var(--ge-transition);
    &:hover {
      background: var(--ge-surface-3);
      border-color: transparent;
      cursor: pointer;
    }
    &--selected {
      background-color: var(--ge-accent-soft);
      border-color: var(--ge-accent-soft-border);
    }
    &--selected:hover {
      background-color: var(--ge-accent-soft);
    }
  }

  &__icon-container {
    height: 18px;
  }

  &__icon {
    display: block;
    height: 100%;
  }

  &__label {
    margin-left: 7px;
    color: var(--ge-text);
  }

  &__highlighted-term {
    font-weight: bold;
  }

  &__count {
    margin-left: 5px;
  }

  &__children {
    margin-left: 20px;
  }

  &__no-toggle {
    display: inline-block;
    width: 22px;
    height: 22px;
  }

  &__toggle {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 5px;
    border-radius: var(--ge-radius-sm);
    &:hover:not(:empty) {
      background: var(--ge-surface-3);
      cursor: pointer;
    }
  }

  &__toggle-icon {
    display: block;
    height: 100%;
  }

  &__create {
    margin-left: 5px;
    > button {
      cursor: move;
    }
  }
}
