.ExactSearchH5 {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--uikit-bg-color-operate);
  color: var(--uikit-text-color-primary);
}

// Search bar row: [input (flex:1)] [cancel button]
.ExactSearchH5__bar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  flex-shrink: 0;
}

.ExactSearchH5__input {
  flex: 1;
}

.ExactSearchH5__cancel {
  flex-shrink: 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--uikit-text-color-primary);
}

// Shared status line (loading / error / empty)
.ExactSearchH5__status {
  padding: 16px 0;
  font-size: 14px;
  text-align: center;
  color: var(--uikit-text-color-secondary);

  &--error {
    color: var(--uikit-text-color-error);
  }
}

// Results list
.ExactSearchH5__results {
  flex: 1;
  overflow-y: auto;
}

// Section: a labeled group of result rows (e.g. "Users", "Groups").
.ExactSearchH5__section {
  display: flex;
  flex-direction: column;
}

.ExactSearchH5__sectionHeader {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--uikit-bg-color-operate);

  h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--uikit-text-color-secondary);
  }
}

.ExactSearchH5__row {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.15s;
  -webkit-tap-highlight-color: transparent;

  &:active {
    background-color: var(--uikit-list-color-focused);
  }
}

.ExactSearchH5__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;

  &--withSub {
    justify-content: space-between;
  }
}

.ExactSearchH5__name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--uikit-text-color-primary);
}

.ExactSearchH5__sub {
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--uikit-text-color-secondary);
}
