// This file is part of Indico.
// Copyright (C) 2002 - 2026 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

@use 'base/palette' as *;

.header {
  min-height: 4.55rem;
}

.search-buttons :global(.dropdown) {
  margin-left: 1em;
}

:global(.icon).event-person {
  color: $blue;
}

.staged-label :global {
  animation: highlight 0.5s ease-out;
}

.staged-list-item {
  display: flex;
  justify-content: space-between;

  > :global(.icon) {
    margin-left: auto;
  }
}

.search-content {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.search-content .form {
  flex-grow: 1;
  margin-right: 2em;
}

.search-content .results {
  flex: 1 1 60%;
}

.search-results.disabled {
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.search-results .list {
  max-height: 490px;
  overflow-y: auto;
}

.has-avatar {
  margin-left: 8px;
}

:global(.ui.list .item).result-item:first-child {
  padding-top: 0.6em;
}

:global(.ui.list .item).result-item:last-child {
  padding-bottom: 0.6em;
}

:global(.ui.list .item).result-item:hover {
  cursor: pointer;
  background: $light-gray;
}
