html {
  scrollbar-gutter: stable;
}

.gufo-select {
  background-color: var(--md-default-bg-color);
  border: 1px solid var(--md-typeset-color);
  padding: 6px 2.5rem 6px 0.75rem;
  border-radius: 4px;
  min-width: 10rem;
  font: inherit;
  line-height: 1.2;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.gufo-select option {
  min-width: 10rem;
}

.gufo-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0;
  padding: 0.5rem 0;
  position: sticky;
  top: var(--gufo-sticky-top);
  background: var(--md-default-bg-color);
  z-index: 2;
}

.gufo-search-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.gufo-search-input {
  border: none;
  border-bottom: 1px solid var(--md-typeset-color);
  padding: 4px;
  background-color: transparent;
  outline: none;
  flex: 1;
  min-width: 0;
}

.gufo-search-label {
  display: inline-block;
  width: 6.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.gufo-search-row:first-child {
  flex: 2 1 0;
}

.gufo-search-row:last-child {
  flex: 1 1 0;
}

.gufo-search-row .gufo-select {
  flex: 1;
  min-width: 0;
}

@media (max-width: 600px) {
  .gufo-search {
    flex-direction: column;
    align-items: stretch;
  }

  .gufo-search-row {
    width: 100%;
  }

  .gufo-search-input,
  .gufo-select {
    width: 100%;
    margin-right: 0;
  }

  .gufo-search-label {
    width: auto;
  }
}

.gufo-group-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.gufo-group-badge-wrapper {
  display: inline-flex;
  gap: 15px;
}

:root {
  --gufo-sticky-top: 2.4rem;
}

@media screen and (min-width: 76.25em) {
  :root {
    --gufo-sticky-top: calc(2.4rem + 2.4rem); 
  }
}