.search-item {
  display: flex;
  position: relative;
  flex-flow: row nowrap;
  align-items: center;
  margin: var(--spacing-mini);
  border-radius: var(--border-radius-small);
}

.search-item.active {
  background: var(--background-color);
}

.search-item.active .search-item-title {
  font-weight: var(--font-weight-bold);
}

.search-item:not(:last-child)::after {
  content: '';
  position: absolute;
  display: block;
  width: calc(100% - 64px);
  height: 1px;
  bottom: -4px;
  right: -4px;
  background: var(--surface-border-color);
}

@media (pointer: fine) {
  .search-item:hover {
    cursor: pointer;
    background: var(--background-color);
  }

  .search-item:hover .search-item-title {
    color: var(--link-color);
  }
}

.search-item-image {
  width: 38px;
  height: 38px;
  border: 1px solid var(--surface-border-color);
  margin: var(--spacing-small);
  overflow: hidden;
}

.search-item-image img {
  display: block;
  width: 38px;
  height: 38px;
}

.search-item-content {
  flex: 1;
  margin-top: var(--spacing-small);
  margin-bottom: var(--spacing-small);
  margin-left: var(--spacing-mini);
  margin-right: var(--spacing-small);
  overflow: hidden;
}

.search-item-content span {
  display: block;
  font-size: var(--font-size-tiny);
  line-height: var(--line-height-tiny);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-item-title {
  color: var(--on-surface-primary-color);
  margin-bottom: var(--spacing-mini);
}

.search-item-code {
  color: var(--on-surface-secondary-color);
  font-weight: var(--font-weight-normal);
}

.search-item-button {
  text-align: center;
  line-height: 32px;
  width: 100px;
  height: 32px;
  border: 0;
  font-size: 0.875rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  background: var(--background-color);
  color: var(--on-background-secondary-color);
}

.search-item-button::before {
  content: 'Selecionar';
}

.search--item.active .search-item-button::before {
  content: 'Remover';
}