/* @-mentions in notes (WI #4196): highlighted mentions and the suggestion list of note-mentions.js */

.note-mention {
  color: var(--bs-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* the viewer's own mention */
.note-mention--self {
  background-color: rgba(var(--bs-secondary-rgb), 0.12);
  border-radius: 0.25rem;
  padding: 0 0.2em;
}

/* above modals (1055) and offcanvases (1045): the list lives in <body>; .dropdown-menu to beat the theme's own rule */
.dropdown-menu.note-mention-menu {
  position: absolute;
  z-index: 1090;
  min-width: 16rem;
  max-width: 24rem;
  max-height: 18rem;
  overflow-y: auto;
}

.note-mention-menu .note-mention-option {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.note-mention-menu .note-mention-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
