@use "scss/colors";
@use "scss/variables";
@use "./gridColumns";

.connectorGrid {
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  grid-auto-rows: 68px;
  gap: variables.$spacing-md;

  @include gridColumns.responsive-grid;

  &__noMatches {
    display: flex;
    flex-direction: column;
    gap: variables.$spacing-lg;
    padding: variables.$spacing-xl 0 variables.$spacing-2xl;
  }

  &__suggestedConnectors {
    grid-column: 2 / 3;
    margin-inline: calc(-1 * variables.$spacing-md);
  }
}

.connectorList {
  & .connectorListButton {
    padding-left: variables.$spacing-lg;
    padding-right: variables.$spacing-md;
    height: 60px;
  }
}

.countAndSort {
  position: sticky;
  top: 0;
  z-index: 2;
  grid-column: 2 / 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: variables.$spacing-xl;
}

.sortHeader {
  font-size: variables.$font-size-sm;
  color: colors.$grey-400;
}

.sortButton {
  padding: 0;
  height: 16px;
}

.activeSortColumn {
  color: colors.$blue;
}
